/* Grocery Select onboarding portal.
   Brand: charcoal #111827, gold #D4AF37, ivory #FFF8E7, warm beige #8B7D6B, leaf green from the logo. */
:root {
  --ink: #111827; --ink-2: #1B2438; --ivory: #FFF8E7; --gold: #D4AF37; --beige: #8B7D6B; --leaf: #4C7F2A;
  --bg: #F6F0E1; --card: #FFFEFA; --card-2: #FBF5E6; --line: #E6DABF; --line-2: #D8C9A5;
  --text: #1C2230; --muted: #675C4C; --gold-ink: #876A08; --focus: #1B6FD6;
  --ok: #2F6B1E; --ok-bg: #E4F0D8; --warn: #835A00; --warn-bg: #FAEBC2; --bad: #A02525; --bad-bg: #F8DCD8; --info: #1F4E70; --info-bg: #DAE9F4; --mute-bg: #EEE6D2;
  --shadow: 0 1px 2px rgba(60,45,10,.06), 0 8px 24px -12px rgba(60,45,10,.18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif; --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #0C111B; --card: #141B2A; --card-2: #19213A; --line: #27304A; --line-2: #36415F;
  --text: #F2E9D2; --muted: #A89D88; --gold-ink: #E2C25B;
  --ok: #9ED684; --ok-bg: #1D3318; --warn: #F0CF74; --warn-bg: #3A2F0E; --bad: #FF9E94; --bad-bg: #411B1B; --info: #9CC8EA; --info-bg: #15293B; --mute-bg: #222B40;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -14px rgba(0,0,0,.6);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.6 var(--sans); color: var(--text); background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 .8em; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.ic { flex: none; vertical-align: -.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); } .mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; } .spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: 500 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--ivory); } .btn.primary:hover { background: #232d46; }
[data-theme="dark"] .btn.primary { background: var(--ivory); color: var(--ink); } [data-theme="dark"] .btn.primary:hover { background: #fff; }
.btn.gold { background: var(--gold); color: #1c1707; } .btn.gold:hover { background: #e1bd48; box-shadow: 0 6px 18px -8px rgba(212,175,55,.8); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); } .btn.ghost:hover { background: var(--card-2); }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; } .btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--card-2); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); } .chip.mute { background: var(--mute-bg); color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 600 13px var(--sans); flex: none; }
[data-theme="dark"] .avatar { background: var(--gold); color: var(--ink); }
.badge { margin-left: auto; background: var(--gold); color: #1c1707; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }

.fgrid { display: flex; flex-wrap: wrap; gap: 16px 18px; }
.field { flex: 1 1 100%; min-width: 0; } .field.half { flex: 1 1 calc(50% - 9px); min-width: 220px; }
.lbl { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 6px; } .req { color: var(--bad); }
.field input:not([type=checkbox]), .field select, .field textarea, .plain-input { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--beige); }
.field input:focus, .field select:focus, .field textarea:focus, .plain-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.3); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--card-2); color: var(--muted); cursor: not-allowed; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.help { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; } .err { font-size: 12.5px; color: var(--bad); margin: 5px 0 0; font-weight: 500; }
.field.check label { display: flex; gap: 10px; align-items: center; cursor: pointer; } .field.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; } .pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; background: var(--card); transition: all .15s; }
.pick input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
[data-theme="dark"] .pick input:checked + span { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick input:disabled + span { opacity: .7; cursor: not-allowed; }

/* ---------- public pages ---------- */
body.pub { background: var(--ink); color: var(--ivory); }
.pub a { color: inherit; }
.p-top { display: flex; align-items: center; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 22px 28px; }
.p-top .plate { background: var(--ivory); border-radius: 12px; padding: 6px 12px; display: inline-flex; } .p-top .plate img { display: block; height: 44px; width: auto; }
.p-top .help-link { color: #d9cdb3; font-size: 13.5px; text-decoration: none; } .p-top .help-link:hover { color: var(--gold); }

.hero { max-width: 1240px; margin: 0 auto; padding: 12px 28px 0; }
.hero h1 { text-wrap: balance; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--ivory); max-width: 22ch; letter-spacing: -.02em; }
.hero p.lead { color: #d3c8b0; font-size: clamp(1rem, 1.5vw, 1.1rem); max-width: 56ch; margin: 16px 0 0; line-height: 1.65; }

.arcade { max-width: 1240px; margin: 36px auto 0; padding: 0 28px; display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; position: relative; }
.arcade::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.grp { display: flex; gap: 18px; flex: 1; } .grp.staff { flex: .66; }
.door { position: relative; flex: 1 1 0; min-width: 0; height: 372px; display: block; text-decoration: none; color: var(--ink); isolation: isolate; border-radius: 999px 999px 0 0; background: radial-gradient(120% 90% at 50% 100%, #f7e29a 0%, var(--gold) 55%, #a98618 100%); padding: 0 0 2px; }
.door .leaf { position: absolute; inset: 0 0 2px 0; border-radius: 999px 999px 0 0; background: var(--ivory); transform-origin: 0 50%; transition: transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .55s; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 18px 24px; box-shadow: inset 0 0 0 1px rgba(17,24,39,.12), inset 0 0 0 9px var(--ivory), inset 0 0 0 10px rgba(139,125,107,.45); }
.door.staff .leaf { background: #E9DEC3; box-shadow: inset 0 0 0 1px rgba(17,24,39,.12), inset 0 0 0 9px #E9DEC3, inset 0 0 0 10px rgba(139,125,107,.5); }
.door .glyph { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); margin-bottom: 18px; }
.door h2 { font-size: 1.55rem; color: var(--ink); } .door p { font-size: 13px; color: #4b4333; margin: 10px 0 0; line-height: 1.55; }
.door .go { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: var(--ivory); padding: 10px 20px; border-radius: 999px; font-weight: 500; font-size: 13.5px; }
.door:hover .leaf, .door:focus-visible .leaf { transform: perspective(1100px) rotateY(-24deg); box-shadow: 14px 0 30px -12px rgba(0,0,0,.55), inset 0 0 0 9px var(--ivory), inset 0 0 0 10px rgba(139,125,107,.45); }
.door:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.arc-cap { max-width: 1240px; margin: 14px auto 0; padding: 0 28px; display: flex; gap: 20px; justify-content: space-between; color: #bfb396; font-size: 13px; }
.arc-cap div:first-child { flex: 3 1 0; } .arc-cap div:last-child { flex: 2 1 0; padding-left: 20px; }
.apply-line { max-width: 1240px; margin: 34px auto 0; padding: 0 28px; color: #d3c8b0; }
.apply-line a { color: var(--gold); font-weight: 500; }

.sect { max-width: 1240px; margin: 0 auto; padding: 96px 28px 0; }
.sect h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ivory); max-width: 20ch; }
.sect .sub { color: #c8bca3; max-width: 60ch; margin-top: 14px; }
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid rgba(212,175,55,.35); }
.track { padding: 28px 28px 8px 0; } .track + .track { padding-left: 28px; border-left: 1px solid rgba(212,175,55,.2); }
.track h3 { font-size: 1.3rem; color: var(--gold); margin-bottom: 4px; } .track .t { color: #bfb396; font-size: 13px; margin-bottom: 18px; }
.track ol { margin: 0; padding: 0; list-style: none; counter-reset: s; } .track li { counter-increment: s; position: relative; padding: 0 0 18px 38px; color: #e8dfc9; font-size: 14px; }
.track li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 12px; }
.track li b { display: block; font-weight: 500; color: var(--ivory); }
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.privacy div { background: var(--ink-2); border: 1px solid rgba(255,248,231,.08); border-radius: 14px; padding: 24px; } .privacy .ic { color: var(--gold); margin-bottom: 12px; }
.privacy h3 { font-size: 1.12rem; color: var(--ivory); margin-bottom: 8px; } .privacy p { color: #c8bca3; font-size: 13.5px; margin: 0; }
.p-foot { max-width: 1240px; margin: 96px auto 0; padding: 28px; border-top: 1px solid rgba(255,248,231,.1); color: #a79c86; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) 6fr; background: var(--ivory); color: var(--text); }
.login-art { background: var(--ink); color: var(--ivory); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art .plate { background: var(--ivory); border-radius: 12px; padding: 6px 12px; display: inline-flex; align-self: flex-start; } .login-art .plate img { height: 44px; width: auto; display: block; }
.arch-art { width: min(300px, 70%); aspect-ratio: 3/4.2; margin: 24px auto; border-radius: 999px 999px 0 0; border: 2px solid var(--gold); display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 100%, rgba(212,175,55,.38), transparent 70%); position: relative; }
.arch-art::before { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 0 0; border: 1px solid rgba(212,175,55,.45); }
.arch-art .glyph { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.login-art h2 { font-size: 1.9rem; max-width: 18ch; } .login-art p { color: #cbbfa6; max-width: 40ch; margin-top: 10px; }
.login-form { display: grid; place-items: center; padding: 36px 24px; }
.login-card { width: 100%; max-width: 420px; }
.login-card h1 { font-size: 2.1rem; margin-bottom: 8px; } .login-card .sub { color: var(--muted); margin-bottom: 26px; }
.login-card .field { margin-bottom: 16px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.alert.error { background: var(--bad-bg); color: var(--bad); } .alert.info { background: var(--info-bg); color: var(--info); } .alert.success { background: var(--ok-bg); color: var(--ok); } .alert.warn { background: var(--warn-bg); color: var(--warn); }
.switcher { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.switcher a { margin-right: 14px; display: inline-block; }
.pwwrap { position: relative; } .pwwrap button { position: absolute; right: 6px; top: 6px; }

/* ---------- app shell ---------- */
body.app { display: block; }
.side { position: fixed; inset: 0 auto 0 0; width: 268px; background: var(--ink); color: var(--ivory); display: flex; flex-direction: column; padding: 20px 14px; z-index: 40; overflow-y: auto; transition: transform .25s; }
.brandplate { display: block; background: var(--ivory); border-radius: 12px; padding: 8px 12px; margin-bottom: 18px; } .brandplate img { display: block; width: 100%; height: auto; }
.side-role { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; padding: 0 12px 12px; border-bottom: 1px solid rgba(255,248,231,.1); margin-bottom: 12px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #dcd1b8; text-decoration: none; font-size: 14px; background: none; border: 0; width: 100%; font-family: inherit; cursor: pointer; text-align: left; }
.side a:hover, .side-foot button:hover { background: rgba(255,248,231,.07); color: #fff; }
.side a.on { background: rgba(212,175,55,.16); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,248,231,.1); display: flex; flex-direction: column; gap: 2px; }
.shell { margin-left: 268px; min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .menu { display: none; } .crumb { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); }
.me { display: flex; align-items: center; gap: 10px; padding-left: 10px; } .me b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.2; } .me small { color: var(--muted); font-size: 12px; }
.main { flex: 1; padding: 30px 32px 40px; width: 100%; max-width: 1180px; }
.foot { padding: 18px 32px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.scrim { display: none; }
.pagehead { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; }
.pagehead h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); } .pagehead p { color: var(--muted); margin: 6px 0 0; max-width: 62ch; } .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.card + .card, .stack > * + * { margin-top: 20px; }
.card h2 { font-size: 1.3rem; margin-bottom: 4px; } .card .sub { color: var(--muted); margin-bottom: 18px; font-size: 13.5px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; } .cols > .card + .card { margin-top: 0; }
.cols.even { grid-template-columns: 1fr 1fr; }

/* hero card on dashboards */
.welcome { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--ink); color: var(--ivory); border: 0; position: relative; overflow: hidden; }
.welcome h2 { font-size: 1.7rem; color: var(--ivory); } .welcome p { color: #d3c8b0; margin: 8px 0 0; max-width: 52ch; }
.welcome .ring .trk { stroke: rgba(255,248,231,.14); } .welcome .ring .num { color: var(--ivory); }
.ring { position: relative; width: var(--s); height: var(--s); flex: none; } .ring svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 8; } .ring .trk { stroke: var(--line); } .ring .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ring b { font: 600 calc(var(--s) * .24) var(--serif); line-height: 1; } .ring small { font-size: 11px; opacity: .75; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--gold); } .kpi .k-ic { color: var(--gold-ink); } .kpi b { font: 600 2rem/1.1 var(--serif); } .kpi span { color: var(--muted); font-size: 13px; }

/* journey / steps */
.journey { list-style: none; margin: 0; padding: 0; position: relative; }
.journey .st { position: relative; padding-bottom: 6px; } .journey .st::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: -4px; width: 2px; background: var(--line); }
.journey .st:last-child::before { display: none; } .journey .st-done::before { background: var(--leaf); }
.journey .st > * { display: flex; gap: 14px; align-items: center; padding: 8px 10px 8px 0; color: inherit; text-decoration: none; border-radius: 12px; }
.journey a:hover .tx b { text-decoration: underline; text-underline-offset: 3px; }
.journey .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 2px solid var(--line-2); color: var(--muted); flex: none; position: relative; z-index: 1; }
.journey .tx b { display: block; font-weight: 500; } .journey .tx small { color: var(--muted); font-size: 12.5px; }
.st-done .dot { background: var(--leaf); border-color: var(--leaf); color: #fff; } .st-review .dot { background: var(--info-bg); border-color: var(--info); color: var(--info); }
.st-attention .dot { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); } .st-locked { opacity: .6; }
.st.now > * { background: color-mix(in srgb, var(--gold) 14%, transparent); padding-left: 8px; margin-left: -8px; } .st.now .dot { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.st.now .tx small { color: var(--gold-ink); font-weight: 500; }

/* documents */
.doclist { display: flex; flex-direction: column; gap: 12px; } .doclist + .doclist { margin-top: 16px; }
.doc { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.doc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); flex: none; }
.doc-approved .doc-ic { background: var(--ok-bg); color: var(--ok); } .doc-rejected { border-color: var(--bad); } .doc-rejected .doc-ic { background: var(--bad-bg); color: var(--bad); } .doc-pending .doc-ic { background: var(--info-bg); color: var(--info); }
.doc-body { flex: 1; min-width: 0; } .doc h3 { font: 500 15px var(--sans); } .doc h3 small { color: var(--muted); font-weight: 400; } .doc-body p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.doc-file { color: var(--text) !important; } .doc-reason { display: flex; gap: 6px; color: var(--bad) !important; margin-top: 6px !important; }
.doc-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; } .upl { margin: 0; }

/* wizard */
.wsteps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; overflow-x: auto; }
.wsteps li { flex: 1 1 0; min-width: 120px; } .wsteps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; font: 500 13.5px var(--sans); color: var(--muted); cursor: pointer; text-align: left; }
.wsteps .n { width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 12px; flex: none; }
.wsteps button.cur { background: var(--ink); color: var(--ivory); border-color: var(--ink); } .wsteps button.cur .n { background: var(--gold); color: var(--ink); }
[data-theme="dark"] .wsteps button.cur { background: var(--gold); color: var(--ink); } [data-theme="dark"] .wsteps button.cur .n { background: var(--ink); color: var(--gold); }
.wsteps button.bad { border-color: var(--bad); } .wsteps button.bad .n { background: var(--bad); color: #fff; }
.wizard fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: none; } .wizard fieldset.on { display: block; }
.wizard legend { font: 600 1.35rem var(--serif); margin-bottom: 4px; padding: 0; } .step-intro { color: var(--muted); margin-bottom: 20px; }
.wactions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: linear-gradient(transparent, var(--card) 18px); }
.g-perm.hide { display: none; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; } .banner > div { flex: 1; } .banner b { display: block; font-weight: 600; }
.banner.info { background: var(--info-bg); color: var(--info); } .banner.ok { background: var(--ok-bg); color: var(--ok); } .banner.bad { background: var(--bad-bg); color: var(--bad); } .banner.warn { background: var(--warn-bg); color: var(--warn); }

/* tables and lists */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; } .tabs a.on { background: var(--ink); color: var(--ivory); } [data-theme="dark"] .tabs a.on { background: var(--gold); color: var(--ink); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 12px 16px; background: var(--card-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; } tr:last-child td { border-bottom: 0; } tbody tr:hover { background: var(--card-2); }
.who { display: flex; align-items: center; gap: 12px; } .who b { display: block; font-weight: 500; line-height: 1.3; } .who small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.bar-s { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 90px; } .bar-s i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); } .empty .ic { color: var(--gold-ink); margin-bottom: 10px; } .empty b { display: block; color: var(--text); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.dl-h { font: 600 1rem var(--serif); margin: 22px 0 8px; color: var(--gold-ink); } .dl-h:first-child { margin-top: 0; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; margin: 0; } .dl dt { font-size: 12px; color: var(--muted); } .dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; } .timeline li:last-child { border: 0; }
.timeline .tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; } .timeline small { color: var(--muted); display: block; }
.revform { display: flex; flex-direction: column; gap: 10px; } .revform .row { display: flex; gap: 8px; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }
.secret { font: 600 1.05rem ui-monospace, Menlo, Consolas, monospace; background: var(--ink); color: var(--gold); padding: 12px 16px; border-radius: 10px; letter-spacing: .04em; word-break: break-all; }
.chart-bars { display: flex; flex-direction: column; gap: 12px; } .cb { display: grid; grid-template-columns: 140px 1fr 36px; gap: 12px; align-items: center; font-size: 13.5px; } .cb .track-b { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; } .cb .track-b i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--gold)); border-radius: 99px; } .cb b { text-align: right; font-weight: 600; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; } .spark i { flex: 1; background: var(--gold); border-radius: 4px 4px 0 0; min-height: 3px; opacity: .85; } .spark-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* toasts */
.toasts { position: fixed; top: 76px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 32px -10px rgba(0,0,0,.35); animation: toast-in .35s cubic-bezier(.2,.8,.2,1); }
.toast.success { border-left: 4px solid var(--leaf); } .toast.error { border-left: 4px solid var(--bad); } .toast.info { border-left: 4px solid var(--info); } .toast span { flex: 1; font-size: 13.5px; } .toast .x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.pub .toasts { top: 16px; }

@media (max-width: 1100px) {
  .arcade { flex-wrap: wrap; justify-content: center; } .grp, .grp.staff { flex: 1 1 100%; } .door { height: 380px; }
  .arc-cap { display: none; } .arcade::after { display: none; }
  .tracks, .privacy { grid-template-columns: 1fr; } .track, .track + .track { padding: 24px 0 8px; border-left: 0; border-top: 1px solid rgba(212,175,55,.2); }
}
@media (max-width: 960px) {
  .side { transform: translateX(-100%); } body.menu-open .side { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .2s; } body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .shell { margin-left: 0; } .top { padding: 10px 16px; } .top .menu { display: inline-grid; } .main { padding: 22px 16px 32px; } .foot { padding: 16px; }
  .cols, .cols.even { grid-template-columns: 1fr; } .welcome { grid-template-columns: 1fr; text-align: left; } .me div { display: none; }
  .login { grid-template-columns: 1fr; } .login-art { padding: 24px; } .arch-art { display: none; } .login-art h2 { margin-top: 18px; }
}
@media (max-width: 640px) {
  .hero, .arcade, .sect, .apply-line, .p-top { padding-left: 18px; padding-right: 18px; } .hero { padding-top: 14px; }
  .arcade { margin-top: 36px; gap: 14px; flex-direction: column; align-items: stretch; } .grp { flex-direction: column; gap: 14px; }
  .door { height: auto; border-radius: 28px; padding: 0; } .door .leaf { position: relative; inset: auto; border-radius: 26px; flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; padding: 20px; gap: 4px 16px; box-shadow: none; }
  .door .glyph { margin: 0; } .door h2 { flex: 1; } .door p { flex: 1 1 100%; } .door .go { margin-top: 10px; } .door:hover .leaf { transform: none; }
  .doc { flex-wrap: wrap; } .doc-act { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .cb { grid-template-columns: 100px 1fr 30px; } .wactions .btn { flex: 1; } .p-top .help-link { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .door:hover .leaf { transform: none; } }

/* Public pages and sign-in always use the brand's fixed palette. */
.login { --text: #1C2230; --muted: #675C4C; --card: #FFFEFA; --card-2: #FBF5E6; --line: #E6DABF; --line-2: #D8C9A5; --gold-ink: #876A08; --ok: #2F6B1E; --ok-bg: #E4F0D8; --warn: #835A00; --warn-bg: #FAEBC2; --bad: #A02525; --bad-bg: #F8DCD8; --info: #1F4E70; --info-bg: #DAE9F4; }

.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
