/* ══ DEPENDS ON: nothing (root tokens) — USED BY: index.html, print.html, tracker.html, shop.html (loaded on every page, always first) ══ */
/* ══════════════════════════════════════════
   INFINITE LIBRARY — shared design system
   Used by: index.html, print.html, tracker.html, shop.html
   ══════════════════════════════════════════ */
:root {
  /* The site is light-only; this is also declared as <meta name="color-scheme">
     in every page's <head> (that copy matters more — the browser reads it before
     this stylesheet has even loaded). Without either one, a device in dark mode
     paints its own dark background for the blank frame between page loads,
     which is the "black flash" between navigating pages. */
  color-scheme: light;

  /* Change a colour here to update that colour on every page. Example: --blue changes all blue buttons and highlights. */
  --ink:        #15151a;
  --ink-soft:   #4a4a53;
  --ink-dim:    #83838c;
  --bg:         #f5f3ec;
  --surface:    #ffffff;
  --line:       #15151a;
  --line-soft:  #d9d5c8;
  --blue:       #2451ff;
  --blue-dim:   #e7ecff;
  --lime:       #c6ff4b;
  --lime-dim:   #eaffc4;
  --red:        #e0393e;
  --green:      #1f8a4c;

  /* Display face. It was Anton (condensed, effectively caps-only) until the
     August 2026 redesign; it is now the same Inter as the body text, at
     weight 800 with tight tracking. Inter 800 sets about 30% wider than
     Anton at the same px, which is why every heading below was resized
     when this changed — if you swap the face again, resize them too. */
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 10px;
  --radius-lg: 18px;
  /* Width of .wrap, .nav and .footer-inner. Raised from 1280 so wide screens
     do not sit inside huge side margins. */
  --container: 1520px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  /* Users who ask their device for less motion will see almost no animations. */
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── EYEBROW / LABEL ── */
.eyebrow {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.778rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ══════════════════════════════════════════
   TOP BAR (promo strip)
   ══════════════════════════════════════════ */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.778rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 7px 10px;
}
.topbar span { color: var(--lime); }

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
.site-header {
  /* Keep the navigation at the top while scrolling. z-index: 100 stops page content covering it. */
  border-bottom: 2px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  max-width: var(--container); margin: 0 auto;
  gap: 26px;
}
.brand {
  /* The wordmark is the one place that does NOT use --font-display. Archivo is
     a squarer grotesk than Inter — flatter sides on the O and the C — which is
     what gives the logo its own character. Everything else on the site stays
     Inter. */
  font-family: 'Archivo', var(--font-display);
  font-weight: 800;
  font-size: 1.95rem;
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
/* Same blue glow the round nav buttons get on hover, applied to the wordmark
   now that there is no logo shape to light up. */
.brand:hover {
  color: var(--blue);
  text-shadow: 0 0 18px rgba(36, 81, 255, 0.55);
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  border-radius: 4px;
  transform: rotate(0deg);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.brand:hover .brand-mark { background: var(--blue); box-shadow: 0 0 16px rgba(36,81,255,0.5); }
.nav-links {
  display: flex; gap: 36px; align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 4px 2px; color: var(--ink); transition: color 0.15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 11px;
  border: 1px solid rgba(21, 21, 26, 0.15); border-radius: 999px;
  padding: 12px 20px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  background: var(--surface);
}
.nav-search-icon { flex-shrink: 0; width: 19px; height: 19px; color: var(--ink); }
.nav-search:focus-within { border-color: var(--blue); }
.nav-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
}
.nav-search input::placeholder { color: #9a9aa4; }
/* ── Header search results ──
   Injected by shell.js under the search box. Searches every shop category. */
.nav-search { position: relative; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  max-height: 60vh; overflow-y: auto;
  background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(21, 21, 26, 0.18);
}
.sr-hit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
  transition: background 0.12s;
}
.sr-hit:last-child { border-bottom: 0; }
.sr-hit:hover { background: var(--bg); }
/* Every cell is placed explicitly. Left auto-placed, the row-spanning category
   badge claimed column 1 and pushed the name across. */
.sr-name {
  grid-area: 1 / 1; font-size: 0.85rem; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sr-detail {
  grid-area: 2 / 1; color: var(--ink-dim); font-size: 0.72rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sr-cat {
  grid-area: 1 / 2 / span 2 / 2; align-self: center;
  padding: 3px 9px; border-radius: 30px; background: var(--blue-dim);
  color: var(--blue); font-family: var(--font-body); font-weight: 600; font-size: 0.626rem;
  white-space: nowrap;
}
.sr-empty { padding: 14px; color: var(--ink-dim); font-size: 0.8rem; text-align: center; }

/* Hairline between the links and the icon cluster. A pseudo-element, so no
   extra markup is needed in a header shell.js reads. */
.nav-icons { display: flex; gap: 4px; align-items: center; }
.nav-icons::before {
  content: ''; align-self: center;
  width: 1px; height: 27px; margin-right: 14px;
  background: rgba(21, 21, 26, 0.15);
}
/* Flat line icons rather than outlined round buttons. */
.nav-icon {
  position: relative;
  width: 48px; height: 48px; border-radius: 9px;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; background: transparent; color: var(--ink);
  transition: all 0.15s;
}
.nav-icon svg { width: 25px; height: 25px; stroke-width: 1.65; }
.nav-icon:hover { background: transparent; color: var(--blue); box-shadow: none; transform: translateY(-1px); }
/* Little blue count bubble on the heart / cart icons. */
.nav-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 10px; background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.648rem;
}
/* shell.js hides an empty badge with `badge.hidden = true`, but the browser's
   own `[hidden] { display: none }` loses to the `display: grid` above — so
   without this line every page shows a blue "0" on the heart and the cart
   while both are empty. Any rule that sets `display` on an element that also
   gets toggled with `hidden` needs the same guard. */
.nav-badge[hidden] { display: none; }

/* ── BURGER (only visible on narrow screens) ── */
.nav-burger {
  display: none;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.15s;
}
.nav-burger span { display: block; width: 15px; height: 1.8px; background: var(--ink); transition: background 0.15s; }
.nav-burger:hover { background: var(--ink); }
.nav-burger:hover span { background: var(--bg); }

@media (max-width: 900px) {
  .nav-search { display: none; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-icons::before { display: none; }
  /* Brand + icons + burger have to fit a 360px phone without pushing the page
     sideways, so everything shrinks and the brand truncates before it overflows. */
  .nav { gap: 10px; padding: 12px 16px; }
  .brand { min-width: 0; font-size: 1.42rem; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 26px; height: 26px; flex-shrink: 0; font-size: 0.9rem; }
  .nav-icons { gap: 6px; }
  .nav-icon, .nav-burger { width: 38px; height: 38px; font-size: 0.9rem; }
  .nav-icon svg, #navAccount svg { width: 20px; height: 20px; }
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 30px;
  border: 1.5px solid var(--line);
  /* Inter, not the mono face: at these sizes JetBrains Mono was noticeably
     harder to read than the same label on the home page. */
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--ink);
}
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.btn-outline:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #173bd6; transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { border-color: var(--line-soft); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-sm { padding: 9px 16px; font-size: 0.68rem; }
.btn-round { width: 40px; height: 40px; border-radius: 50%; padding: 0; justify-content: center; }

/* ══════════════════════════════════════════
   CARDS / PANELS (shared boxed style)
   ══════════════════════════════════════════ */
.box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.box-lg { border-radius: var(--radius-lg); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  border-top: 2px solid var(--line);
  margin-top: 90px;
  padding: 26px 28px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Archivo', var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.25rem; }
.footer-tag { color: var(--ink-dim); font-size: 0.82rem; margin-top: 2px; }
.footer-links { display: flex; gap: 22px; font-family: var(--font-body); font-weight: 600; font-size: 0.778rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 0.72rem; color: var(--ink-dim); text-align: right; }

/* ══════════════════════════════════════════
   TOAST (lightweight notice, used by shop/coming-soon)
   ══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg);
  font-family: var(--font-body); font-weight: 600; font-size: 0.842rem; letter-spacing: 0.04em;
  padding: 13px 22px; border-radius: 30px;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
  z-index: 4000; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════
   SHELL DRAWERS — mobile menu, cart, saved cards
   Markup is injected by assets/js/shell.js on every page, so these
   classes have no counterpart in the .html files. Do not rename
   without updating shell.js.
   ══════════════════════════════════════════ */
.shell-scrim {
  position: fixed; inset: 0; z-index: 149;
  border: 0; padding: 0; cursor: default;
  background: rgba(14, 13, 17, 0.6); backdrop-filter: blur(2px);
}

.drawer, .menu-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.2);
}
.drawer { width: min(440px, 94vw); }
.menu-drawer { width: min(330px, 86vw); }
.drawer.open, .menu-drawer.open { transform: translateX(0); }

.drawer-head, .menu-head {
  min-height: 96px; padding: 24px 26px 18px;
  border-bottom: 2px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.drawer-head { align-items: flex-start; }
.drawer-eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 0.713rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 4px;
}
.drawer-head h2, .menu-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.65rem; line-height: 1; }
.drawer-close {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1.5px solid var(--line); border-radius: 50%; background: transparent;
  font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.drawer-close:hover { background: var(--ink); color: var(--bg); }
.drawer-body { flex: 1; overflow-y: auto; }

/* ── Mobile menu ── */
.menu-links { display: flex; flex-direction: column; padding: 8px 0; }
.menu-links a {
  padding: 16px 26px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-body); font-weight: 600; font-size: 0.886rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); transition: all 0.15s;
}
.menu-links a:hover { background: var(--ink); color: var(--bg); }
.menu-links a.active { color: var(--ink); border-left: 3px solid var(--blue); }
.menu-foot { margin-top: auto; padding: 18px 26px 26px; border-top: 2px solid var(--line); display: grid; gap: 9px; }
.menu-action {
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 15px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-family: var(--font-body); font-weight: 600; font-size: 0.778rem; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.15s;
}
.menu-action:hover { background: var(--ink); color: var(--bg); }
.menu-action b { margin-left: auto; color: var(--blue); }
.menu-action:hover b { color: var(--lime); }

/* ── One line inside the cart / saved drawers ── */
.drawer-line {
  padding: 16px 26px; border-bottom: 1.5px solid var(--line-soft);
  display: grid; grid-template-columns: 54px 1fr auto; align-items: start; gap: 13px;
}
.line-thumb { width: 54px; aspect-ratio: 488 / 680; border-radius: 4px; overflow: hidden; background: #24222a; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-thumb-empty { display: grid; place-items: center; color: var(--lime); font-size: 1.1rem; }
.line-copy { min-width: 0; display: grid; gap: 5px; }
.line-copy b { font-size: 0.84rem; }
.line-copy > span { color: var(--ink-dim); font-family: var(--font-body); font-weight: 600; font-size: 0.648rem; text-transform: uppercase; }
.line-right { display: grid; justify-items: end; gap: 6px; }
.line-right strong, .drawer-line > strong { font-family: var(--font-mono); font-size: 0.84rem; }
.line-add {
  justify-self: start; margin-top: 2px; padding: 5px 10px;
  border: 1.5px solid var(--line); background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.648rem; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.line-add:hover { background: var(--ink); color: var(--bg); }
.line-remove {
  width: 22px; height: 22px; border: 0; background: transparent;
  color: var(--ink-dim); font-size: 1rem; cursor: pointer; line-height: 1;
}
.line-remove:hover { color: var(--red); }

.quantity {
  margin-top: 6px; width: max-content;
  display: inline-grid; grid-template-columns: 27px 28px 27px; align-items: center;
  border: 1.5px solid var(--line);
}
.quantity button { height: 26px; border: 0; background: transparent; cursor: pointer; font-size: 0.9rem; }
.quantity button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.quantity button:disabled { opacity: 0.3; cursor: default; }
.quantity span { text-align: center; font-family: var(--font-mono); font-size: 0.6rem; }

/* ── Cart totals ── */
.drawer-summary { padding: 22px 26px 26px; border-top: 2px solid var(--line); background: var(--surface); }
.drawer-summary p { margin: 0 0 10px; display: flex; justify-content: space-between; font-size: 0.74rem; }
.drawer-summary p span { color: var(--ink-dim); }
.drawer-summary .total { margin-top: 18px; padding-top: 15px; border-top: 1.5px solid var(--line); font-size: 0.95rem; font-weight: 700; }
.drawer-summary button {
  width: 100%; min-height: 48px; margin-top: 10px;
  border: 1.5px solid var(--line); background: var(--blue); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 0.756rem; letter-spacing: 0.08em;
  cursor: pointer; transition: background 0.15s;
}
.drawer-summary button:hover { background: #173bd6; }
.drawer-summary small { display: block; margin-top: 9px; color: var(--ink-dim); font-family: var(--font-body); font-weight: 600; font-size: 0.648rem; text-align: center; }

/* ── Empty state shared by both drawers ── */
.drawer-empty {
  padding: 50px 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.drawer-empty > span { font-size: 2.4rem; color: var(--ink-dim); }
.drawer-empty h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.25rem; text-transform: uppercase; }
.drawer-empty p { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.6; }
.drawer-empty-btn {
  margin-top: 10px; min-height: 40px; padding: 11px 18px;
  border: 1.5px solid var(--line); background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.691rem; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.drawer-empty-btn:hover { background: var(--ink); color: var(--bg); }

/* ── "You are not signed in" strip at the top of the drawers ── */
.guest-notice {
  padding: 14px 26px; border-bottom: 1.5px solid var(--line-soft);
  background: var(--blue-dim);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.guest-notice p { margin: 0; flex: 1; min-width: 160px; color: var(--ink-soft); font-size: 0.7rem; line-height: 1.5; }
.guest-notice b { color: var(--ink); }
.guest-notice button {
  flex-shrink: 0; min-height: 32px; padding: 0 12px;
  border: 1.5px solid var(--blue); background: var(--blue); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 0.648rem; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; transition: background 0.15s;
}
.guest-notice button:hover { background: #173bd6; }

/* ══════════════════════════════════════════
   ACCOUNT — the ⏻ button and the sign-in dialog
   Markup injected by assets/js/auth-ui.js.
   ══════════════════════════════════════════ */

/* The power symbol is drawn as an SVG, not the ⏻ character: U+23FB is missing
   from most Android system fonts, so on Firefox for Android the emoji version
   rendered as an empty box. Strokes inherit `currentColor`, so the icon follows
   the button's colour in every state. */
#navAccount svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2.1;
  stroke-linecap: round; pointer-events: none;
}

/* Signed out the button is a plain outline like its neighbours. Signed in it
   goes solid blue, and turns red on hover because clicking leads to signing out. */
#navAccount.signed-in { background: transparent; border: 0; color: var(--blue); }
#navAccount.signed-in:hover { background: transparent; color: var(--red); box-shadow: none; }

/* Name of the signed-in user, next to the button. Hidden on narrow screens,
   where the header has no room to spare. */
.nav-user {
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: 0.864rem; letter-spacing: 0.02em;
  color: var(--ink-soft); padding-right: 6px;
}
.nav-user b { color: var(--ink); font-weight: 600; }
@media (max-width: 1100px) { .nav-user { display: none; } }

.auth-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.auth-modal[hidden] { display: none; }
.auth-scrim {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: default;
  background: rgba(14, 13, 17, 0.66); backdrop-filter: blur(3px);
}
.auth-box {
  position: relative; z-index: 1;
  width: min(400px, 100%); max-height: 90vh; overflow-y: auto;
  padding: 34px 30px 30px;
  background: var(--bg); border: 1.5px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 50%;
  background: transparent; font-size: 1.05rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.auth-close:hover { background: var(--ink); color: var(--bg); }
.auth-screen { display: flex; flex-direction: column; }
.auth-screen[hidden] { display: none; }
.auth-eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 0.67rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.auth-box h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.6rem; line-height: 1; margin-bottom: 8px; }
.auth-note { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.55; margin-bottom: 18px; }
.auth-note strong { color: var(--ink); }
.auth-input {
  width: 100%; margin-bottom: 10px; padding: 11px 13px;
  border: 1.5px solid var(--line-soft); border-radius: 8px; background: var(--surface);
  color: var(--ink); font-family: var(--font-body); font-size: 0.9rem; outline: none;
  transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--blue); }
.auth-primary, .auth-danger {
  width: 100%; min-height: 46px; margin-top: 6px;
  border: 1.5px solid var(--blue); background: var(--blue); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 0.778rem; letter-spacing: 0.06em;
  cursor: pointer; transition: background 0.15s;
}
.auth-primary:hover { background: #173bd6; }
.auth-danger { border-color: var(--red); background: var(--red); }
.auth-danger:hover { background: #b92e32; }
.auth-primary:disabled, .auth-danger:disabled { opacity: 0.55; cursor: wait; }
.auth-link {
  margin-top: 12px; padding: 4px; border: 0; background: transparent;
  color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; font-size: 0.702rem;
  text-decoration: underline; cursor: pointer;
}
.auth-link:hover { color: var(--blue); }
/* Two links side by side under the sign-in button ("Create one" / "Forgot password?"). */
.auth-link-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-link-row .auth-link { margin-top: 12px; padding: 4px 0; }
.auth-account-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px;
}
.auth-account-facts span {
  padding: 11px 13px; border: 1.5px solid var(--line-soft); background: var(--surface);
  display: grid; gap: 3px;
}
.auth-account-facts small { color: var(--ink-dim); font-family: var(--font-body); font-weight: 600; font-size: 0.626rem; text-transform: uppercase; letter-spacing: 0.1em; }
.auth-account-facts b { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.25rem; line-height: 1; }
