:root {
  color-scheme: light;
  --navy: #12243a;
  --blue: #176b87;
  --blue-dark: #0d536d;
  --paper: #ffffff;
  --canvas: #f2f5f7;
  --ink: #17212b;
  --muted: #667483;
  --line: #dce3e8;
  --danger: #a52a2a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem clamp(1rem, 4vw, 3rem); color: white; background: var(--navy); }
.site-header h1, .site-header p { margin: 0; }
.eyebrow { margin: 0 0 .3rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--blue); }
.site-header .eyebrow { color: #81c7db; }
main { width: min(1100px, calc(100% - 2rem)); margin: 2rem auto 4rem; }
.card { padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 24px rgba(18, 36, 58, .06); }
.login-card { width: min(430px, 100%); margin: 8vh auto 0; }
h2, h3 { margin: 0 0 .45rem; }
.muted { color: var(--muted); line-height: 1.55; }
form { display: grid; gap: .7rem; margin-top: 1.5rem; }
label { font-weight: 700; font-size: .9rem; }
input { width: 100%; padding: .82rem .9rem; border: 1px solid #b8c4cd; border-radius: 8px; color: var(--ink); background: white; }
input:focus { outline: 3px solid rgba(23, 107, 135, .18); border-color: var(--blue); }
button { padding: .78rem 1rem; border: 0; border-radius: 8px; font-weight: 800; color: white; background: var(--blue); }
button:hover { background: var(--blue-dark); }
button:disabled { opacity: .65; cursor: wait; }
.quiet { color: white; border: 1px solid rgba(255,255,255,.45); background: transparent; }
.message { min-height: 1.25rem; margin: .2rem 0 0; color: var(--danger); }
.welcome-row, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.status, .count { font-size: .82rem; font-weight: 800; color: var(--blue-dark); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-top: 1rem; }
.item { padding: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.item h4 { margin: 0 0 .35rem; }
.item-meta { min-height: 1.2rem; margin: 0; color: var(--muted); font-size: .84rem; }
.price { margin: .8rem 0 0; font-size: 1.12rem; font-weight: 850; color: var(--navy); }
.empty-state { padding: 2rem 0; text-align: center; color: var(--muted); }
.next-step { margin-top: 1rem; }

@media (max-width: 600px) {
  main { width: min(100% - 1rem, 1100px); margin-top: 1rem; }
  .welcome-row, .section-heading { align-items: flex-start; flex-direction: column; }
}

