/* Bero Ausrüstung — the kit room's ledger. Club navy and blue, a bib-yellow signal, jersey-number headings. */
:root {
  --navy: #0a1a45;
  --navy-2: #12285f;
  --club: #0044bb;
  --club-2: #1d5ae0;
  --signal: #d6f53a;
  --signal-ink: #0a1a45;
  --paper: #f1f3f8;
  --card: #ffffff;
  --ink: #0b1d3a;
  --ink-2: #4a5878;
  --ink-3: #7d89a6;
  --line: #dde3ef;
  --line-2: #eef1f7;
  --tint: #e7eefc;
  --ok: #138a52;
  --ok-bg: #e2f5ea;
  --warn: #b26a00;
  --warn-bg: #fff3d6;
  --bad: #c62f2f;
  --bad-bg: #fde7e7;
  --info-bg: #e7eefc;
  --shadow: 0 1px 2px rgba(10, 26, 69, .06), 0 6px 20px rgba(10, 26, 69, .07);
  --radius: 14px;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #060e24; --card: #0d1a3a; --ink: #e8eefc; --ink-2: #a8b5d4; --ink-3: #7584a8; --line: #1f2f5a;
    --line-2: #152450; --tint: #132a62; --ok-bg: #0f3324; --warn-bg: #3a2a07; --bad-bg: #3d1414; --info-bg: #132a62;
    --ok: #4fd18d; --warn: #f2b443; --bad: #ff7b7b; --club: #4d84ff; --club-2: #6d9bff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #060e24; --card: #0d1a3a; --ink: #e8eefc; --ink-2: #a8b5d4; --ink-3: #7584a8; --line: #1f2f5a;
  --line-2: #152450; --tint: #132a62; --ok-bg: #0f3324; --warn-bg: #3a2a07; --bad-bg: #3d1414; --info-bg: #132a62;
  --ok: #4fd18d; --warn: #f2b443; --bad: #ff7b7b; --club: #4d84ff; --club-2: #6d9bff; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--body);
  min-height: 100vh; overflow-x: hidden;
}
a { color: var(--club); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(30px, 6vw, 44px); text-transform: uppercase; }
h2 { font-size: 24px; text-transform: uppercase; }
h3 { font-size: 19px; }
.mono, .num { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.small { font-size: 13px; }
.hide { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }

/* ---------- shell */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--navy); color: #fff;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px);
  border-bottom: 3px solid var(--club);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: var(--display); font-size: 21px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #b9c6ea; margin-top: -2px; }
.topbar .spacer { flex: 1; }
.iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
}
.iconbtn:hover { background: rgba(255,255,255,.16); }
.iconbtn svg { width: 21px; height: 21px; }
.dot {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--signal); color: var(--signal-ink); font: 700 11px/17px var(--mono); text-align: center;
}
.teampick {
  display: flex; align-items: center; gap: 6px; max-width: 46vw; padding: 7px 12px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font-weight: 700; font-size: 13px;
}
.teampick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.layout { display: block; }
.side { display: none; }
main { padding: 18px 16px calc(var(--nav-h) + 28px); max-width: 1180px; margin: 0 auto; width: 100%; min-width: 0; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: var(--nav-h);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a, .bottomnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 11px; font-weight: 700; border: 0; background: none; cursor: pointer; position: relative;
}
.bottomnav a:hover { text-decoration: none; }
.bottomnav svg { width: 22px; height: 22px; }
.bottomnav .on { color: var(--club); }
.bottomnav .on::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--club);
}
.bottomnav .dot { top: 6px; right: calc(50% - 22px); }

@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: 236px 1fr; }
  .side {
    display: block; position: sticky; top: 61px; height: calc(100vh - 61px); overflow: auto; padding: 18px 12px;
    border-right: 1px solid var(--line); background: var(--card);
  }
  .side a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2);
    font-weight: 700; position: relative;
  }
  .side a:hover { background: var(--line-2); text-decoration: none; }
  .side a.on { background: var(--tint); color: var(--club); }
  .side a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--club); }
  .side svg { width: 20px; height: 20px; }
  .side .dot { position: static; margin-left: auto; }
  .side .sep { height: 1px; background: var(--line); margin: 12px 4px; }
  .side .label { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 6px 12px; }
  .bottomnav { display: none; }
  main { padding: 26px 32px 60px; }
}

/* ---------- page head */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head .kicker { font: 700 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--club); margin-bottom: 6px; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; font-size: 14px; }

/* ---------- cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card h3 { margin-bottom: 10px; }
.card.pad0 { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: 14px !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.section-title h2 { font-size: 20px; }

/* stat tiles */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink);
  position: relative; overflow: hidden;
}
.tile:hover { text-decoration: none; border-color: var(--club); }
.tile b { display: block; font: 800 34px/1 var(--display); }
.tile span { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.tile.hot { background: var(--navy); color: #fff; border-color: var(--navy); }
.tile.hot span { color: #c5d2f5; }
.tile.hot b { color: var(--signal); }

/* ---------- buttons, inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; background: var(--club); color: #fff; font-weight: 800; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: transform .06s, background .15s;
}
.btn:hover { background: var(--club-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--club); border-color: var(--line); }
.btn.ghost:hover { background: var(--tint); }
.btn.signal { background: var(--signal); color: var(--signal-ink); }
.btn.signal:hover { filter: brightness(.96); }
.btn.dark { background: var(--navy); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--line); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.big { min-height: 52px; font-size: 16px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; }
label.f { display: block; font-weight: 700; font-size: 13px; color: var(--ink-2); margin: 12px 0 6px; }
.in, select.in, textarea.in {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); outline: none;
}
.in:focus { border-color: var(--club); box-shadow: 0 0 0 3px color-mix(in srgb, var(--club) 22%, transparent); }
textarea.in { min-height: 84px; resize: vertical; }
.in.sm { min-height: 34px; padding: 5px 8px; font-size: 13px; border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--club); flex: none; }
.formgrid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* segmented & chips */
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(10,26,69,.14); }
.scrollx { overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.scrollx::-webkit-scrollbar { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); white-space: nowrap;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button {
  min-width: 48px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card);
  font: 700 13px var(--mono); cursor: pointer; color: var(--ink);
}
.sizes button.on { border-color: var(--club); background: var(--tint); color: var(--club); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--line-2); font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper input { width: 52px; height: 40px; border: 0; text-align: center; font: 700 15px var(--mono); background: var(--card); }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--club); }
.badge.signal { background: var(--signal); color: var(--signal-ink); }
.badge.dark { background: var(--navy); color: #fff; }

/* ---------- budget meter */
.budget { display: grid; gap: 10px; }
.budget .big { font: 800 40px/1 var(--display); }
.meter { height: 12px; border-radius: 999px; background: var(--line-2); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.meter .spent { background: var(--club); }
.meter .open { background: repeating-linear-gradient(135deg, var(--club) 0 4px, color-mix(in srgb, var(--club) 45%, transparent) 4px 8px); }
.meter.over .spent, .meter.over .open { background: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.teamcard { position: relative; overflow: hidden; }
.teamcard .stripe {
  position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, var(--tint) 0 6px, transparent 6px 14px); opacity: .9;
}

/* ---------- catalogue: hang tags */
.catgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (min-width: 700px) { .catgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.tag {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px 16px 14px 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: var(--ink);
  transition: transform .15s, box-shadow .15s; animation: rise .4s both;
}
.tag:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tag .pic {
  position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center; padding: 14px;
  background: var(--tint) repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.35) 10px 12px);
}
.tag .pic svg, .tag .pic img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(10,26,69,.18)); }
.tag .hole {
  position: absolute; top: 10px; left: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(10,26,69,.3);
}
.tag .hole::after {
  content: ""; position: absolute; left: 6px; top: -30px; width: 2px; height: 34px; background: var(--ink-3); transform: rotate(-24deg); transform-origin: bottom;
}
.tag .flag { position: absolute; top: 10px; right: 10px; }
.tag .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tag .name { font-weight: 800; line-height: 1.25; }
.tag .model { font-size: 12px; color: var(--ink-3); }
.tag .foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag .price { font: 700 15px var(--mono); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- lists */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink);
}
.item:last-child { border-bottom: 0; }
a.item:hover, .item.click:hover { background: var(--line-2); text-decoration: none; cursor: pointer; }
.item .thumb {
  width: 52px; height: 52px; flex: none; border-radius: 10px; background: var(--tint); display: grid; place-items: center; padding: 5px;
}
.item .thumb svg, .item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.item .main { flex: 1; min-width: 0; }
.item .title { font-weight: 800; }
.item .sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.item .end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---------- order tracker */
.tracker { display: flex; align-items: flex-start; gap: 0; margin: 6px 0 2px; }
.tracker .st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: center; }
.tracker .st::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.tracker .st:first-child::before { display: none; }
.tracker .st i { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); z-index: 1; }
.tracker .st.done { color: var(--ink-2); }
.tracker .st.done i { background: var(--club); border-color: var(--club); }
.tracker .st.done::before { background: var(--club); }
.tracker .st.now { color: var(--ink); }
.tracker .st.now i { background: var(--signal); border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 40%, transparent); }
.tracker .st.now::before { background: var(--club); }
.tracker.small .st { font-size: 0; gap: 0; }
.tracker.small .st i { width: 12px; height: 12px; border-width: 2px; }
.tracker.small .st::before { top: 5px; height: 2px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--club); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }

/* ---------- tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tr.click:hover td { background: var(--line-2); cursor: pointer; }
.tblwrap { overflow-x: auto; }

/* ---------- receipt (handover) */
.slip {
  position: relative; background: var(--card); border-radius: 4px; padding: 22px 18px 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.slip::before, .slip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 7px 5px, var(--paper) 4.5px, transparent 5px) 0 0 / 14px 10px repeat-x;
}
.slip::before { top: -5px; }
.slip::after { bottom: -5px; }
.slip .no { font: 700 14px var(--mono); color: var(--club); }
.slip dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0; font-size: 14px; }
.slip dt { color: var(--ink-3); }
.slip dd { margin: 0; font-weight: 700; }
.slip .stamp {
  position: absolute; right: 16px; top: 18px; transform: rotate(8deg); border: 3px solid currentColor; border-radius: 8px;
  padding: 4px 10px; font: 800 16px var(--display); text-transform: uppercase; letter-spacing: .08em; opacity: .85;
}
.stamp.ok { color: var(--ok); } .stamp.warn { color: var(--warn); } .stamp.bad { color: var(--bad); }
.photo { max-width: 260px; border-radius: 10px; border: 1px solid var(--line); }
.sigimg { max-height: 120px; background: #fff; border-radius: 6px; border-bottom: 2px solid var(--ink); padding: 4px; }

/* signature pad */
.sigpad { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: #fff; touch-action: none; }
.sigpad canvas { display: block; width: 100%; height: 190px; border-radius: 12px; cursor: crosshair; }
.sigpad .line { position: absolute; left: 20px; right: 20px; bottom: 40px; border-bottom: 1.5px solid #9aa6c3; pointer-events: none; }
.sigpad .hint { position: absolute; left: 22px; bottom: 16px; font-size: 12px; color: #7d89a6; pointer-events: none; }

/* ---------- sheet (modal) */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(6, 14, 36, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .24s cubic-bezier(.2,.8,.2,1);
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }
.sheet .x { float: right; }
@media (min-width: 700px) {
  .scrim { align-items: center; }
  .sheet { border-radius: 18px; padding: 18px 24px 24px; }
  .sheet .grab { display: none; }
}
.sheet.wide { max-width: 860px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.prodsheet { display: grid; gap: 18px; }
@media (min-width: 700px) { .prodsheet { grid-template-columns: 240px 1fr; } }
.prodsheet .pic { border-radius: 14px; background: var(--tint); aspect-ratio: 1; display: grid; place-items: center; padding: 18px; }
.prodsheet .pic svg, .prodsheet .pic img { width: 100%; height: 100%; object-fit: contain; }
.rule { background: var(--line-2); border-left: 4px solid var(--club); border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--line); margin-top: 12px; }
.sum b { font: 800 26px var(--display); }

/* cart fab */
.fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px); z-index: 35; display: flex; align-items: center; gap: 10px;
  padding: 0 18px 0 14px; height: 54px; border-radius: 27px; border: 0; background: var(--signal); color: var(--signal-ink);
  font-weight: 800; box-shadow: 0 8px 24px rgba(10, 26, 69, .3); cursor: pointer; animation: up .3s;
}
.fab svg { width: 22px; height: 22px; }
.fab .num { background: var(--navy); color: #fff; border-radius: 12px; padding: 2px 8px; font-size: 13px; }
@media (min-width: 960px) { .fab { bottom: 24px; right: 28px; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%); z-index: 70; background: var(--navy);
  color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
  animation: up .2s;
}
.toast.bad { background: var(--bad); }

/* empty */
.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); }
.empty svg { width: 76px; height: 76px; opacity: .8; margin-bottom: 8px; }
.empty b { display: block; font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }

/* ---------- login & public */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy); border-radius: 22px; padding: 30px 22px;
  background-image: radial-gradient(circle at 85% 20%, rgba(61, 116, 255, .55), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 10px);
}
.hero h1 { font-size: clamp(38px, 9vw, 72px); line-height: .92; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p { color: #c9d4f4; max-width: 520px; }
.hero .art { position: absolute; right: -20px; bottom: -26px; width: 230px; opacity: .95; transform: rotate(-8deg); }
@media (max-width: 640px) { .hero .art { width: 150px; right: -26px; bottom: -20px; opacity: .45; } }
.doors { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.door { display: block; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); position: relative; overflow: hidden; }
.door:hover { text-decoration: none; border-color: var(--club); }
.door h2 { margin: 6px 0 6px; }
.door .go { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; color: var(--signal-ink); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.loginbox { max-width: 420px; margin: 6vh auto 0; }
.codein { font: 700 28px var(--mono); letter-spacing: .3em; text-align: center; }
.publicbar a { color: #fff; font-weight: 700; }

/* misc */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 700; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.pill-n { font: 700 12px var(--mono); background: var(--line-2); padding: 1px 7px; border-radius: 8px; color: var(--ink-2); }
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.searchbar .in { flex: 1; min-width: 180px; }
.prose { max-width: 760px; }
.prose h3 { margin: 18px 0 6px; }
.prose li { margin: 4px 0; }
.loading { padding: 40px; text-align: center; color: var(--ink-3); }
.loading::after { content: ""; display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--club); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -4px; margin-left: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .topbar, .side, .bottomnav, .fab { display: none !important; } main { padding: 0; } }
.back svg, .item > svg, .chip svg { width: 18px; height: 18px; flex: none; }
.thumb.ic { color: var(--club); }
.item .thumb.ic svg { width: 24px; height: 24px; }
.item .thumb svg { width: 100%; height: 100%; }
.item > svg { width: 20px; height: 20px; color: var(--ink-2); }
.grid > .card + .card, .stack > .card + .card { margin-top: 0; }
.brand span { min-width: 0; }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.tag .foot { flex-wrap: wrap; }
.mobile-only { display: none; }
@media (max-width: 760px) { .desk-only { display: none !important; } .mobile-only { display: block; } }
