/* RISE Connect — design system (mobile-first) */

/* ============ Tokens ============ */
:root {
  color-scheme: light;
  --brand: #1297F5;            /* logo sky blue — accents, marks */
  --brand-strong: #0A74C9;     /* buttons & active states (4.8:1 with white) */
  --brand-ink: #0A63AD;        /* links & brand text */
  --on-brand: #FFFFFF;
  --brand-50: #EEF7FF; --brand-100: #DCEEFE; --brand-200: #B9DDFC;
  --ink: #0B1B2B; --ink-2: #364657; --ink-3: #5B6A7C; --ink-4: #8795A6;
  --bg: #F2F5F9; --surface: #FFFFFF; --surface-2: #F7F9FC; --surface-3: #ECF1F6;
  --line: #E1E7EF; --line-2: #CFD8E3;
  --ok: #067A55; --ok-bg: #E6F5EE; --warn: #A14A06; --warn-bg: #FEF3E3; --bad: #C53030; --bad-bg: #FDECEC; --gray-bg: #EDF1F5;
  /* Business Circles — one ordinal blue ramp (validated: monotone L, light end ≥ 2:1) */
  --c-summit: #0d366b; --c-growth: #1c5cab; --c-rising: #3987e5; --c-emerging: #86b6ef;
  --series-need: #2a78d6; --series-offer: #eb6834;
  --tier-summit-bg: #0d366b; --tier-summit-fg: #FFFFFF;
  --tier-growth-bg: #1c5cab; --tier-growth-fg: #FFFFFF;
  --tier-rising-bg: #D6E7FB; --tier-rising-fg: #13457F;
  --tier-emerging-bg: #EAF3FD; --tier-emerging-fg: #275B98;
  --hero-1: #1297F5; --hero-2: #0A56A0;
  --shadow-1: 0 1px 2px rgba(16, 37, 63, .06), 0 1px 1px rgba(16, 37, 63, .03);
  --shadow-2: 0 8px 24px rgba(16, 37, 63, .08), 0 2px 6px rgba(16, 37, 63, .05);
  --shadow-3: 0 24px 64px rgba(16, 37, 63, .22);
  --r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --side-w: 264px; --rail-w: 92px; --top-h: 60px; --tab-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #3BA9F7; --brand-strong: #3BA9F7; --brand-ink: #7CC6FA; --on-brand: #04121F;
  --brand-50: #0E2440; --brand-100: #12304F; --brand-200: #1B4572;
  --ink: #EAF1F8; --ink-2: #BBC8D6; --ink-3: #93A4B7; --ink-4: #6E8094;
  --bg: #0A121D; --surface: #111C2B; --surface-2: #152234; --surface-3: #1B2A3E;
  --line: #21324A; --line-2: #2D405B;
  --ok: #34D399; --ok-bg: #0E2E25; --warn: #FBBF24; --warn-bg: #33270E; --bad: #F87171; --bad-bg: #3A1B1E; --gray-bg: #1B2939;
  --c-summit: #9ec5f4; --c-growth: #5598e7; --c-rising: #2a78d6; --c-emerging: #184f95;
  --series-need: #3987e5; --series-offer: #d95926;
  --tier-summit-bg: #9ec5f4; --tier-summit-fg: #08182B;
  --tier-growth-bg: #5598e7; --tier-growth-fg: #06172A;
  --tier-rising-bg: #183B66; --tier-rising-fg: #D1E4FB;
  --tier-emerging-bg: #13263F; --tier-emerging-fg: #A8C8EE;
  --hero-1: #0E5EA6; --hero-2: #0A2D56;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, .55);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-xs { width: 14px; height: 14px; vertical-align: -2px; }
.ic-lg { width: 26px; height: 26px; }
.ic-xl { width: 40px; height: 40px; }
.ic-brand { color: var(--brand); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; display: flex; justify-content: center; margin: 18px 0 6px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.row-end { display: flex; justify-content: flex-end; margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.label-sm { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 0 8px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.grid { display: grid; gap: 12px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .g-3 { grid-template-columns: 1fr 1fr; } }
.g-2-md { grid-template-columns: 1fr; }
@media (min-width: 600px) { .g-2-md { grid-template-columns: 1fr 1fr; } }

/* ============ Shell ============ */
.shell { min-height: 100vh; min-height: 100dvh; }
.main { min-width: 0; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 12px; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.tb-left { display: flex; align-items: center; min-width: 0; }
.tb-logo { display: flex; align-items: center; gap: 10px; }
.tb-logo img { height: 26px; width: auto; }
.tb-logo span { font-size: 12px; font-weight: 700; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 10px; letter-spacing: .02em; white-space: nowrap; }
.tb-title { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; visibility: hidden; }
.tb-title.show { visibility: visible; }
.tb-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tb-avatar { background: none; border: 0; padding: 2px; border-radius: 50%; }
.tb-bell { position: relative; }
.dot-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; display: grid; place-items: center; border: 2px solid var(--surface); }
.tb-person { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.tb-person > span:not(.av) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tb-person b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.tb-person small { font-size: 12px; color: var(--ink-3); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); position: relative; background: none; border: 0; padding: 0; min-width: 0; }
.tab .ic { width: 22px; height: 22px; }
.tab.active { color: var(--brand-strong); }
:root[data-theme="dark"] .tab.active { color: var(--brand); }
.tab.active::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.tab .nbadge { position: absolute; top: 7px; left: calc(50% + 5px); }
.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; font-style: normal; }
.view { padding: 16px 16px 32px; max-width: 1180px; margin: 0 auto; outline: none; }
.page { display: flex; flex-direction: column; gap: 16px; }
.page-narrow { max-width: 760px; margin: 0 auto; width: 100%; }
.page-wide { max-width: 1240px; margin: 0 auto; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin-top: 4px; font-size: 14px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-head h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.count { font-size: 12px; font-weight: 800; color: var(--ink-3); background: var(--surface-3); border-radius: 999px; padding: 2px 9px; }

@media (min-width: 760px) {
  .main { margin-left: var(--rail-w); padding-bottom: 0; }
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 35; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px; gap: 10px; overflow-y: auto; }
  .side-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
  .side-brand img { width: 62px; height: auto; }
  .side-prog { display: none; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; color: var(--ink-3); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.15; }
  .side-link .ic { width: 22px; height: 22px; }
  .side-link:hover { background: var(--surface-3); color: var(--ink); }
  .side-link.active { background: var(--brand-50); color: var(--brand-strong); }
  :root[data-theme="dark"] .side-link.active { color: var(--brand); }
  .side-link .nbadge { position: absolute; top: 4px; right: 10px; }
  .side-sep { height: 1px; background: var(--line); margin: 6px 4px; }
  .side-me { margin-top: auto; display: flex; justify-content: center; background: none; border: 0; padding: 8px 0; border-radius: 12px; }
  .side-me:hover { background: var(--surface-3); }
  .side-me-txt, .side-me > .ic { display: none; }
  .tb-logo { display: none; }
  .tb-title { visibility: visible; font-size: 15px; color: var(--ink-3); font-weight: 600; }
  .tb-title.show { color: var(--ink); font-weight: 700; }
  .tb-avatar { display: none; }
  .topbar { padding: 0 20px; }
  .view { padding: 24px 28px 48px; }
  .page { gap: 20px; }
  .page-head h1 { font-size: 30px; }
}
@media (min-width: 1100px) {
  .main { margin-left: var(--side-w); }
  .side { width: var(--side-w); padding: 18px 14px; }
  .side-brand { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 4px 8px 16px; }
  .side-brand img { width: 92px; }
  .side-prog { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 12px; line-height: 1.2; }
  .side-link { flex-direction: row; gap: 12px; padding: 10px 12px; font-size: 14px; text-align: left; }
  .side-link .ic { width: 20px; height: 20px; }
  .side-link .nbadge { position: static; margin-left: auto; }
  .side-me { justify-content: flex-start; gap: 10px; padding: 10px; text-align: left; border: 1px solid var(--line); }
  .side-me-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
  .side-me-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-me-txt small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-me > .ic { display: block; color: var(--ink-3); }
  .view { padding: 28px 36px 56px; }
}
/* Admin console gets a deep navy rail to set it apart */
.area-admin .side { background: #0B1F36; border-color: #0B1F36; }
.area-admin .side-link { color: #A9BCD2; }
.area-admin .side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.area-admin .side-link.active { background: rgba(59, 169, 247, .18); color: #fff; }
.area-admin .side-sep, .area-admin .side-brand { border-color: rgba(255, 255, 255, .1); }
.area-admin .side-sep { background: rgba(255, 255, 255, .1); }
.area-admin .side-prog { color: #A9BCD2; border-color: rgba(255, 255, 255, .2); }
.area-admin .side-me { border-color: rgba(255, 255, 255, .12); }
.area-admin .side-me:hover { background: rgba(255, 255, 255, .07); }
.area-admin .side-me-txt b { color: #fff; }
.area-admin .side-me-txt small, .area-admin .side-me > .ic { color: #A9BCD2; }
.area-admin .side .logo-light { display: none !important; }
.area-admin .side .logo-dark { display: block !important; }
:root[data-theme="dark"] .area-admin .side { background: #08172A; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; user-select: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand-strong); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 4px 14px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand-strong) 88%, #000); }
:root[data-theme="dark"] .btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, #fff); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink-4); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger-text { color: var(--bad) !important; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: transparent; border: 0; color: var(--ink-2); flex: none; }
.btn-icon:hover { background: var(--surface-3); }
.btn-icon .ic { width: 21px; height: 21px; }
.btn-icon-only { width: 44px; padding: 0; flex: none; }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.field-label { margin-top: 4px; }
.field small, .field-label small { font-weight: 500; }
.input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; min-height: 84px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238795A6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input:disabled { background: var(--surface-3); color: var(--ink-3); }
.input::placeholder { color: var(--ink-4); }
.input-code { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-btn { position: absolute; right: 4px; top: 3px; width: 40px; height: 40px; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; border-radius: 10px; }
.input-group { display: flex; align-items: stretch; }
.input-addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-3); color: var(--ink-3); font-weight: 700; }
.input-group .input { border-radius: 0; }
.input-group .input-unit { width: 130px; flex: none; border-radius: 0 12px 12px 0; border-left: 0; }
.hint { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: flex-start; gap: 6px; }
.hint .ic { margin-top: 1px; }
.hint b { color: var(--ink); }
.form-error { color: var(--bad); font-size: 13.5px; font-weight: 600; background: var(--bad-bg); padding: 10px 12px; border-radius: 10px; }
.counter { align-self: flex-end; font-size: 12px; color: var(--ink-4); font-weight: 600; margin-top: -2px; }
.counter.ok { color: var(--ok); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-strong); flex: none; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.radio-row:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.radio-row input { width: 18px; height: 18px; accent-color: var(--brand-strong); flex: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch-row > span { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.switch-row > span > span { display: flex; flex-direction: column; }
.switch-row small { font-weight: 500; display: block; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch:checked { background: var(--brand-strong); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .5; cursor: default; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); flex: 1; min-width: 0; color: var(--ink-3); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; font-size: 15px; color: var(--ink); }
.select-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.select-inline select { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; height: 34px; padding: 0 10px; font-weight: 600; font-size: 13px; color: var(--ink); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.stepper .btn-icon { border: 1px solid var(--line-2); border-radius: 50%; }
.stepper output { font-size: 28px; font-weight: 800; min-width: 48px; text-align: center; }
.row-form { display: flex; gap: 8px; margin-top: 10px; }
.row-form .input { height: 40px; }

/* ============ Cards, lists ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.card-pad { padding: 16px; }
@media (min-width: 760px) { .card-pad { padding: 20px; } }
.card-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-title small { font-weight: 500; font-size: 12px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-title-row .card-title, .card-title-row .sub-title { margin: 0; }
.sub-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: var(--ink); text-decoration: none; border: 0; background: none; text-align: left; width: 100%; border-top: 1px solid var(--line); cursor: pointer; }
.list-item:first-child { border-top: 0; }
.card > .list > .list-item:first-child { border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); }
a.list-item:hover, button.list-item:hover, div.list-item[role=button]:hover { background: var(--surface-2); }
.card-pad .list-item { padding-left: 0; padding-right: 0; }
.card-pad .list-item:hover { background: none; }
.li-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.li-ic .ic { width: 19px; height: 19px; }
.li-blue { background: var(--brand-50); color: var(--brand-strong); }
:root[data-theme="dark"] .li-blue { color: var(--brand); }
.li-amber { background: var(--warn-bg); color: var(--warn); }
.li-green { background: var(--ok-bg); color: var(--ok); }
.li-gray { background: var(--gray-bg); color: var(--ink-3); }
.li-red { background: var(--bad-bg); color: var(--bad); }
.li-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.li-txt b { font-size: 14.5px; font-weight: 700; }
.li-txt small { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--ink-4); width: 18px; height: 18px; }
.flag-lg { font-size: 26px; line-height: 1; width: 38px; text-align: center; flex: none; }

/* ============ Chips, tags, badges, tiers ============ */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
@media (min-width: 760px) { .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; } }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; text-decoration: none; }
.chip .ic { width: 15px; height: 15px; }
.chip:hover { border-color: var(--ink-4); }
.chip-on { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.chip-on:hover { border-color: var(--brand-strong); }
.chip-done { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.chips-active .chip-on .ic { width: 14px; height: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.3; max-width: 100%; }
.tag .ic { width: 14px; height: 14px; color: var(--ink-3); }
.tag-brand { background: var(--brand-50); color: var(--brand-ink); }
.tag-brand .ic { color: var(--brand); }
.tag-add { border: 1px dashed var(--line-2); background: transparent; color: var(--brand-ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.b-blue { background: var(--brand-50); color: var(--brand-ink); }
.b-green { background: var(--ok-bg); color: var(--ok); }
.b-amber { background: var(--warn-bg); color: var(--warn); }
.b-red { background: var(--bad-bg); color: var(--bad); }
.b-gray { background: var(--gray-bg); color: var(--ink-3); }
.b-glass { background: rgba(255, 255, 255, .18); color: #fff; }
.tier { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--tb); color: var(--tf); flex: none; }
.tier .ic { width: 14px; height: 14px; }
.tier-xs { height: 20px; font-size: 11px; padding: 0 7px 0 5px; }
.tier-xs .ic { width: 12px; height: 12px; }
.tier-summit { --tb: var(--tier-summit-bg); --tf: var(--tier-summit-fg); }
.tier-growth { --tb: var(--tier-growth-bg); --tf: var(--tier-growth-fg); }
.tier-rising { --tb: var(--tier-rising-bg); --tf: var(--tier-rising-fg); }
.tier-emerging { --tb: var(--tier-emerging-bg); --tf: var(--tier-emerging-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier-emerging-fg) 20%, transparent); }
.verified { display: inline-flex; color: var(--brand); margin-left: 4px; vertical-align: -3px; }
.verified .ic { width: 17px; height: 17px; }
.score-pill { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; flex: none; }
.score-pill .ic { width: 13px; height: 13px; }
.sp-hi { background: var(--brand-strong); color: var(--on-brand); }
.sp-md { background: var(--brand-100); color: var(--brand-ink); }
.sp-lo { background: var(--surface-3); color: var(--ink-3); }
.flag { font-size: 16px; line-height: 1; }

/* ============ Avatars ============ */
.av { --sz: 40px; width: var(--sz); height: var(--sz); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-weight: 800; font-size: calc(var(--sz) * .38); letter-spacing: .01em; position: relative; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { --sz: 22px; font-size: 9px; }
.av-sm { --sz: 32px; }
.av-md { --sz: 40px; }
.av-lg { --sz: 52px; }
.av-xl { --sz: 68px; }
.av-xxl { --sz: 92px; }
.av-admin { background: linear-gradient(135deg, #0B1F36, #1D4E89); }
.logo-tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.ring { --s: 60px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-weight: 800; font-size: 16px; color: var(--ink); }
.ring small { font-size: 10px; font-weight: 700; color: var(--ink-3); }
.ring-sm { --s: 46px; }
.ring-sm::before { inset: 5px; }
.ring-sm span { font-size: 13px; }

/* ============ Segmented control & tabs ============ */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 14px; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-weight: 700; font-size: 13.5px; white-space: nowrap; min-width: 0; }
.seg-btn .ic { width: 17px; height: 17px; }
.seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg-btn .nbadge { margin-left: 2px; }
.seg-sm .seg-btn { height: 34px; font-size: 13px; }
.seg-mini { padding: 3px; border-radius: 10px; }
.seg-mini .seg-btn { height: 28px; font-size: 12px; padding: 0 10px; border-radius: 7px; }
.seg-sort { max-width: 420px; }
@media (max-width: 380px) { .seg-btn .ic { display: none; } }
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.tabs-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .tabs-scroll { margin: 0; padding: 2px 0; flex-wrap: wrap; } }
.tab-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; flex: none; }
.tab-pill b { font-size: 12px; background: var(--surface-3); color: var(--ink-3); border-radius: 999px; padding: 1px 8px; }
.tab-pill.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tab-pill.active b { background: color-mix(in srgb, var(--surface) 20%, transparent); color: var(--surface); }

/* ============ Notices ============ */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); flex-wrap: wrap; }
.notice > .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice > div { flex: 1; min-width: 200px; }
.notice b { color: var(--ink); }
.notice-info { background: var(--brand-50); }
.notice-info > .ic { color: var(--brand); }
.notice-amber { background: var(--warn-bg); }
.notice-amber > .ic { color: var(--warn); }
.notice-ladder { background: linear-gradient(135deg, var(--brand-50), var(--surface-2)); border: 1px solid var(--brand-100); }
.notice-ladder > .ic { color: var(--brand); }
.notice-card { border-left: 4px solid var(--brand); }
.notice-card.notice-amber { border-left-color: var(--warn); background: var(--surface); }
.notice-card.notice-green { border-left-color: var(--ok); }
.notice-card blockquote { margin: 0 0 6px; padding: 12px 14px; background: var(--warn-bg); border-radius: 12px; font-weight: 600; color: var(--ink); }
.lock-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.e2e { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ink-2); font-size: 13px; }
.e2e .ic { color: var(--ok); margin-top: 1px; }
.empty { text-align: center; padding: 26px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 4px; }
.empty-ic .ic { width: 26px; height: 26px; }
.empty h3 { font-size: 16px; }
.empty p { font-size: 14px; color: var(--ink-3); max-width: 380px; }
.empty .btn { margin-top: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 12px; font-weight: 600; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.meter { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-strong)); }
.meter-thin { height: 5px; margin: 0 0 12px; }
.mini-meter { display: inline-block; width: 48px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-meter span { display: block; height: 100%; background: var(--brand); }

/* ============ Sheets / dialogs ============ */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(6, 16, 30, .5); opacity: 0; transition: opacity .25s; }
.sheet { position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-3); transform: translateY(100%); transition: transform .3s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.overlay.in .scrim { opacity: 1; }
.overlay.in .sheet { transform: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 8px 20px; flex: none; }
.sheet-title { flex: 1; min-width: 0; padding-top: 6px; }
.sheet-head h2 { font-size: 19px; font-weight: 800; }
.sheet-sub { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.sheet-body { padding: 6px 20px 18px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.sheet-foot > .btn { flex: 1; max-width: 260px; }
.sheet-foot > span { margin-right: auto; }
.sheet-foot > span + .btn { flex: none; }
.confirm-text { color: var(--ink-2); font-size: 15px; }
@media (min-width: 760px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-width: 560px; max-height: 88vh; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
  .overlay.in .sheet { opacity: 1; }
  .sheet-sm { max-width: 440px; }
  .sheet-lg { max-width: 720px; }
  .sheet-grab { display: none; }
  .sheet-head { padding: 18px 16px 6px 24px; }
  .sheet-body { padding: 8px 24px 22px; }
  .sheet-foot { padding: 14px 24px; }
  .sheet-foot > .btn { flex: none; }
}
.menu-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 4px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; text-align: left; width: 100%; }
.menu-item:first-child { border-top: 0; }
.menu-item:hover { background: var(--surface-2); }
.menu-item > span { flex: 1; }
.menu-item > .ic:first-child { color: var(--ink-3); }
.menu-item.danger, .menu-item.danger > .ic:first-child { color: var(--bad); }
.acct-card { display: flex; align-items: center; gap: 14px; padding: 4px 0 14px; }
.acct-card > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.acct-card b { font-size: 16px; }

/* ============ Toasts & tooltip ============ */
#toast-root { position: fixed; z-index: 200; left: 0; right: 0; top: calc(10px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 12px 16px; border-radius: 14px; background: #0B1B2B; color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3); transform: translateY(-16px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
:root[data-theme="dark"] .toast { background: #EAF1F8; color: #0B1B2B; }
.toast.in { transform: none; opacity: 1; }
.toast .ic { color: #4ADE80; }
.toast-err .ic { color: #F87171; }
.toast-info .ic { color: #7CC6FA; }
:root[data-theme="dark"] .toast .ic { color: var(--ok); }
.viz-tip { position: fixed; z-index: 150; pointer-events: none; background: #0B1B2B; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 8px 11px; border-radius: 10px; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .12s; max-width: 260px; }
.viz-tip.on { opacity: 1; }
:root[data-theme="dark"] .viz-tip { background: #EAF1F8; color: #0B1B2B; }

/* ============ Auth ============ */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.auth-brand { position: relative; overflow: hidden; color: #fff; background:
  repeating-conic-gradient(from -8deg at 88% -10%, rgba(255, 255, 255, .09) 0 5deg, transparent 5deg 13deg),
  radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .18), transparent 55%),
  linear-gradient(150deg, var(--hero-1), var(--hero-2)); padding: 28px 20px 64px; }
.auth-brand-inner { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.auth-logo { width: 150px; }
.auth-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 8px; }
.auth-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.auth-lead { font-size: 15px; opacity: .92; max-width: 460px; }
.auth-stats { display: flex; gap: 10px; list-style: none; padding: 0; margin: 6px 0 0; }
.auth-stats li { flex: 1; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); display: flex; flex-direction: column; }
.auth-stats b { font-size: 22px; font-weight: 800; }
.auth-stats span { font-size: 11.5px; opacity: .88; line-height: 1.3; }
.auth-points { display: none; list-style: none; padding: 0; margin: 8px 0 0; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; opacity: .95; }
.auth-points .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.auth-panel { flex: 1; padding: 0 16px 32px; margin-top: -40px; position: relative; }
.auth-card { max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 14px; }
.auth-card h2 { font-size: 24px; font-weight: 800; }
.auth-mobile-logo { display: none; }
.auth-foot { text-align: center; }
.demo-list { display: flex; flex-direction: column; gap: 8px; }
.demo-acct { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; transition: border-color .15s, background .15s, transform .1s; }
.demo-acct:hover { border-color: var(--brand); background: var(--brand-50); }
.demo-acct:active { transform: scale(.99); }
.demo-acct.current { opacity: .6; }
.demo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.demo-txt b { font-size: 14.5px; }
.demo-sub { font-size: 12.5px; color: var(--ink-3); }
.demo-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.demo-try { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; background: var(--surface-2); padding: 7px 9px; border-radius: 10px; }
.demo-try .ic { width: 12px; height: 12px; color: var(--brand); margin-top: 3px; }
.tour { border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; background: var(--surface-2); }
.tour summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; list-style: none; }
.tour summary::-webkit-details-marker { display: none; }
.tour summary .ic { color: var(--brand); width: 15px; height: 15px; }
.tour ol { margin: 0 0 10px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.tour p { margin-bottom: 12px; }
@media (min-width: 960px) {
  .auth { flex-direction: row; }
  .auth-brand { flex: 1.05; display: flex; align-items: center; padding: 48px 56px; }
  .auth-brand-inner { margin: 0 0 0 auto; max-width: 520px; }
  .auth-logo { width: 200px; }
  .auth-title { font-size: 52px; }
  .auth-lead { font-size: 17px; }
  .auth-points { display: flex; }
  .auth-panel { flex: 1; margin: 0; display: flex; align-items: center; padding: 40px; overflow-y: auto; }
  .auth-card { box-shadow: none; border: 0; background: transparent; padding: 0; width: 100%; }
  .auth-mobile-logo { display: none; }
}

/* ============ Registration ============ */
.reg { min-height: 100vh; background: var(--bg); }
.reg-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.reg-top img { height: 24px; width: auto; }
.reg-top .muted { margin-left: auto; padding-right: 6px; }
.reg-progress { height: 4px; background: var(--surface-3); position: sticky; top: 60px; z-index: 10; }
.reg-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-strong)); transition: width .35s var(--ease); }
.reg-main { max-width: 620px; margin: 0 auto; padding: 22px 16px 40px; }
.reg-main h1 { font-size: 26px; font-weight: 800; margin: 4px 0 14px; }
.reg-steps { display: none; }
.reg-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow-1); }
.reg-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.reg-actions .btn-primary { flex: 1; max-width: 280px; margin-left: auto; }
@media (min-width: 760px) {
  .reg-main { padding-top: 34px; }
  .reg-form { padding: 26px; }
  .reg-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
  .reg-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-4); padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
  .reg-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; }
  .reg-steps li span .ic { width: 13px; height: 13px; }
  .reg-steps li.cur { color: var(--ink); border-color: var(--brand); }
  .reg-steps li.cur span { background: var(--brand-strong); color: var(--on-brand); }
  .reg-steps li.done { color: var(--ok); }
  .reg-steps li.done span { background: var(--ok-bg); color: var(--ok); }
}
.photo-up { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.photo-up > img, .photo-ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.photo-ph { display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 2px dashed var(--brand-200); }
.photo-up > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.photo-up label.btn { cursor: pointer; }
.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick-scroll { max-height: 236px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.pick { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .12s; user-select: none; }
.pick input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pick .ic { width: 16px; height: 16px; color: var(--ink-3); }
.pick small { font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.pick:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.pick.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-ink); }
.pick.on .ic { color: var(--brand); }
.pick.on small { color: var(--brand-ink); }
.pledge-box { margin-top: 6px; padding: 16px; border-radius: 16px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.privacy-mini { display: grid; gap: 10px; }
.pm-col { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.pm-col h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.pm-col h4 .ic { color: var(--brand); }
.pm-col p { font-size: 13px; color: var(--ink-3); }
@media (min-width: 640px) { .privacy-mini { grid-template-columns: repeat(3, 1fr); } }
.welcome { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.steps-list li { display: flex; gap: 10px; font-size: 14px; padding: 12px; background: var(--surface-2); border-radius: 12px; }
.steps-list .ic { color: var(--brand); margin-top: 2px; }

/* ============ Home ============ */
.hero { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-xl); padding: 20px 18px 16px; box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 28%, transparent); background:
  repeating-conic-gradient(from -6deg at 92% -20%, rgba(255, 255, 255, .08) 0 5deg, transparent 5deg 13deg),
  radial-gradient(110% 120% at 100% 0%, rgba(255, 255, 255, .2), transparent 55%),
  linear-gradient(140deg, var(--hero-1), var(--hero-2)); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-hi { font-size: 14px; opacity: .85; font-weight: 600; }
.hero-name { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 10px; }
.hero-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hero .tier { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.hero-av { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.hero-event { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(4, 22, 44, .22); border: 1px solid rgba(255, 255, 255, .16); }
.he-left { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.he-left > div { display: flex; flex-direction: column; min-width: 0; }
.he-left b { font-size: 14px; }
.he-left small { font-size: 12px; opacity: .85; }
.he-count { text-align: center; flex: none; }
.he-count b { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.he-count small { font-size: 11px; opacity: .85; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hero-stats a { color: #fff; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .12); display: flex; flex-direction: column; transition: background .15s; }
.hero-stats a:hover { background: rgba(255, 255, 255, .2); }
.hero-stats b { font-size: 20px; font-weight: 800; line-height: 1.1; }
.hero-stats small { font-size: 11.5px; opacity: .88; }
@media (min-width: 760px) { .hero { padding: 26px 28px 22px; } .hero-name { font-size: 38px; } }
.home-grid { display: grid; gap: 16px; }
.home-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1000px) { .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; } .home-col { gap: 20px; } }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
@media (min-width: 560px) { .hscroll { grid-auto-columns: 46%; } }
@media (min-width: 760px) { .hscroll { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; } }
@media (min-width: 1300px) { .hscroll { grid-template-columns: repeat(2, 1fr); } }
.match-tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.match-tile:hover { border-color: var(--brand-200); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.mt-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.mt-name { font-size: 15px; font-weight: 800; }
.mt-co { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tags { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.mt-why { display: flex; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); line-height: 1.4; }
.mt-why .ic { width: 14px; height: 14px; color: var(--brand); margin-top: 2px; }
.ladder-card p { margin-bottom: 12px; }
.ladder { display: flex; flex-direction: column; gap: 6px; }
.rung { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); margin-left: calc(var(--lv) * 14px); text-align: left; width: calc(100% - var(--lv) * 14px); transition: border-color .15s, background .15s; }
@media (min-width: 760px) { .rung { margin-left: calc(var(--lv) * 5%); width: calc(100% - var(--lv) * 5%); } }
.rung:hover { border-color: var(--brand-200); background: var(--brand-50); }
.rung-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.rung-summit .rung-ic { background: var(--tier-summit-bg); color: var(--tier-summit-fg); }
.rung-growth .rung-ic { background: var(--tier-growth-bg); color: var(--tier-growth-fg); }
.rung-rising .rung-ic { background: var(--tier-rising-bg); color: var(--tier-rising-fg); }
.rung-emerging .rung-ic { background: var(--tier-emerging-bg); color: var(--tier-emerging-fg); }
.rung-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rung-txt b { font-size: 14px; }
.rung-txt small { font-size: 12px; color: var(--ink-3); }
.rung-rel { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; flex: none; }
.rung-rel .ic { width: 14px; height: 14px; }
.rung.me { border: 2px solid var(--brand); background: var(--brand-50); }
.you { background: var(--brand-strong); color: var(--on-brand); padding: 3px 9px; border-radius: 999px; font-size: 11px; }
@media (max-width: 380px) { .rung-rel { display: none; } .rung.me .rung-rel { display: flex; } }
.pledge .row { align-items: flex-start; }
.pledge .btn { margin-top: 10px; }
.announce { display: flex; gap: 12px; align-items: flex-start; }
.announce > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* ============ Discover ============ */
.disc-bar { display: flex; gap: 8px; }
.filter-btn { height: 46px; flex: none; position: relative; }
.filter-btn .nbadge { background: var(--brand-strong); color: var(--on-brand); }
@media (max-width: 420px) { .filter-btn span { display: none; } .filter-btn { width: 46px; padding: 0; } .filter-btn .nbadge { position: absolute; top: -6px; right: -6px; } }
.result-count { margin-bottom: -4px; }
.grid.g-cards { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid.g-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .grid.g-cards { grid-template-columns: repeat(3, 1fr); } }
.mcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.mcard:hover { border-color: var(--brand-200); box-shadow: var(--shadow-2); }
.mcard-main { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; color: var(--ink); min-width: 0; }
.mcard-head { display: flex; gap: 12px; align-items: flex-start; }
.mcard-id { flex: 1; min-width: 0; }
.mcard-id h3 { font-size: 15.5px; font-weight: 800; }
.mcard-id p { font-size: 13px; color: var(--ink-3); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mcard-why { display: flex; gap: 7px; font-size: 13px; color: var(--ink-2); background: var(--brand-50); padding: 8px 10px; border-radius: 10px; line-height: 1.4; }
.mcard-why .ic { width: 15px; height: 15px; color: var(--brand); margin-top: 1px; }
.mcard-foot { display: flex; justify-content: flex-end; padding: 0 14px 14px; }
.mcard-foot .btn { flex: 1; }
.g-ind { grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .g-ind { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .g-ind { grid-template-columns: repeat(4, 1fr); } }
.ind-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 13px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); transition: border-color .15s, transform .15s; min-width: 0; }
.ind-tile:hover { border-color: var(--brand); transform: translateY(-1px); }
.ind-tile b { font-size: 14px; }
.ind-tile > .tiny { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.ind-tile.mine { border-color: var(--brand); background: var(--brand-50); }
.ind-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ind-meta > span:not(.badge) { display: inline-flex; gap: 4px; align-items: center; }
.ind-meta .ic { width: 13px; height: 13px; color: var(--brand); }

/* ============ Profile ============ */
.profile-card { overflow: hidden; }
.pc-cover { height: 96px; background:
  repeating-conic-gradient(from -6deg at 90% -40%, rgba(255, 255, 255, .1) 0 5deg, transparent 5deg 13deg),
  linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.pc-body { padding: 0 16px 18px; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -46px; margin-bottom: 10px; }
.pc-av { box-shadow: 0 0 0 4px var(--surface); }
.pc-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pc-score small { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.pc-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pc-role { color: var(--ink-2); margin-top: 2px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pc-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pc-actions .btn { flex: 1; min-width: 150px; }
.pc-body .notice { margin-top: 12px; }
@media (min-width: 760px) { .pc-cover { height: 120px; } .pc-body { padding: 0 24px 22px; } .pc-name { font-size: 28px; } .pc-actions .btn { flex: none; } }
.rel-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); padding: 9px 12px; border-radius: 12px; background: var(--surface-2); }
.rel-line .ic { width: 17px; height: 17px; color: var(--brand); }
.reasons { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.reasons li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.reasons .ic { color: var(--brand); width: 17px; height: 17px; margin-top: 2px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.privacy-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border-style: dashed; }
.privacy-card > .ic { color: var(--ink-3); }
.privacy-card > div { display: flex; flex-direction: column; gap: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row-sm { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; display: flex; flex-direction: column; }
.stat b { font-size: 22px; font-weight: 800; }
.stat small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.card-pad .stat { background: var(--surface-2); }
.vault { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.vault .facts { margin-bottom: 14px; }
.preview-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 0; }
.preview-card .pc-tags { justify-content: center; margin: 4px 0 8px; }
.preview-card > p:last-child { color: var(--ink-2); font-size: 14px; }

/* ============ Request wizard ============ */
.rq-to { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.rq-to > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rq-to b { font-size: 14.5px; }
.rq-to small { font-size: 12.5px; color: var(--ink-3); }
.wiz-steps { display: flex; list-style: none; padding: 0; margin: 0 0 16px; gap: 4px; }
.wiz-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-4); position: relative; }
.wiz-steps li::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--line); }
.wiz-steps li:first-child::before { display: none; }
.wiz-steps li.done::before, .wiz-steps li.cur::before { background: var(--brand); }
.wiz-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; position: relative; z-index: 1; }
.wiz-steps span .ic { width: 15px; height: 15px; }
.wiz-steps li.cur { color: var(--ink); }
.wiz-steps li.cur span { background: var(--brand-strong); color: var(--on-brand); box-shadow: 0 0 0 4px var(--brand-100); }
.wiz-steps li.done span { background: var(--brand-100); color: var(--brand-ink); }
.wiz-steps em { font-style: normal; }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 640px) { .purpose-grid { grid-template-columns: repeat(3, 1fr); } }
.purpose { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; min-width: 0; }
.purpose input { position: absolute; opacity: 0; pointer-events: none; }
.purpose > .ic { width: 22px; height: 22px; color: var(--brand); margin-bottom: 4px; }
.purpose b { font-size: 13.5px; }
.purpose small { font-size: 12px; color: var(--ink-3); }
.purpose.on { border: 2px solid var(--brand); background: var(--brand-50); padding: 11px; }
.purpose:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.rec { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 800; color: var(--ok); background: var(--ok-bg); padding: 2px 7px; border-radius: 999px; }
.chip-radio .pick { min-height: 36px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 640px) { .mode-grid { grid-template-columns: repeat(4, 1fr); } }
.mode { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; background: var(--surface); }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode > .ic { width: 22px; height: 22px; color: var(--brand); }
.mode span { display: flex; flex-direction: column; }
.mode b { font-size: 13.5px; }
.mode small { font-size: 12px; color: var(--ink-3); }
.mode.on { border: 2px solid var(--brand); background: var(--brand-50); padding: 11px; }
.mode:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.slot b { font-size: 14px; }
.slot small { font-size: 11px; color: var(--ok); font-weight: 700; }
.slot:hover:not([disabled]) { border-color: var(--brand); }
.slot[disabled] { background: var(--surface-3); border-color: transparent; cursor: not-allowed; }
.slot[disabled] b { color: var(--ink-4); text-decoration: line-through; }
.slot[disabled] small { color: var(--ink-4); }
.slot.on { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.slot.on small { color: var(--on-brand); }
.review { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rv-row { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.rv-row:first-child { border-top: 0; }
.rv-row > span { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.rv-row b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.rv-row b .ic { color: var(--brand); width: 16px; height: 16px; }
.rv-row p { font-size: 14px; color: var(--ink); white-space: pre-wrap; }
.next-steps { padding: 4px 0; }
.flow { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.flow li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.flow .ic { color: var(--brand); width: 18px; height: 18px; margin-top: 1px; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 0; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); animation: pop .45s var(--ease); }
.success-ic .ic { width: 36px; height: 36px; stroke-width: 2.6; }
.success h3 { font-size: 19px; }
.success .tracker { width: 100%; margin-top: 10px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ============ Tracker ============ */
.tracker { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tracker li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; position: relative; font-size: 12px; }
.tracker li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 18px); width: calc(100% - 36px + 4px); height: 2px; background: var(--line); }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.cur::before { background: var(--brand); }
.tracker li.bad::before { background: var(--line-2); }
.tk-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-4); position: relative; z-index: 1; }
.tk-dot .ic { width: 15px; height: 15px; }
.tracker li b { font-size: 12px; color: var(--ink-3); line-height: 1.25; }
.tracker li small { font-size: 11px; color: var(--ink-4); }
.tracker li.done .tk-dot { background: var(--brand-strong); color: var(--on-brand); }
.tracker li.done b { color: var(--ink); }
.tracker li.cur .tk-dot { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.tracker li.cur b { color: var(--warn); }
.tracker li.bad .tk-dot { background: var(--gray-bg); color: var(--ink-3); }

/* ============ Requests ============ */
.req-card { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); transition: border-color .15s; min-width: 0; }
.req-card:hover { border-color: var(--brand-200); }
.rc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rc-top { display: flex; justify-content: space-between; gap: 8px; }
.rc-top b { font-size: 15px; }
.rc-sub { font-size: 13px; color: var(--ink-3); }
.rc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.rc-why { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rq-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.mini { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; padding: 4px 0; }
.mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mini-txt b { font-size: 15px; }
.mini-txt small { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); z-index: 20; display: flex; gap: 10px; padding: 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-2); margin-top: 6px; }
.sticky-actions .btn { flex: 1; min-width: 0; padding: 0 14px; }
@media (min-width: 760px) { .sticky-actions { bottom: 16px; justify-content: flex-end; } .sticky-actions .btn { flex: none; padding: 0 20px; } }
.only-desk { display: none !important; }
@media (min-width: 760px) { .only-desk { display: inline-flex !important; } .only-mob { display: none !important; } }

/* ============ Meetings & agenda ============ */
.meet-card { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; }
.meet-card.cancelled { opacity: .6; }
.mc-date { width: 56px; flex: none; border-radius: 14px; background: var(--brand-50); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; align-self: flex-start; }
.mc-date b { font-size: 19px; font-weight: 800; line-height: 1.1; }
.mc-date small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mc-mode { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .04em; }
.mc-mode .ic { width: 15px; height: 15px; }
.mc-who { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.mc-who > span:not(.av) { display: flex; flex-direction: column; min-width: 0; }
.mc-who b { font-size: 14.5px; }
.mc-who small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-when { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.mc-when .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--ink-3); }
.mc-acts { display: flex; gap: 4px; flex-wrap: wrap; margin-left: -8px; }
.agenda { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ag-item { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ag-time { width: 70px; flex: none; font-weight: 800; font-size: 13.5px; display: flex; flex-direction: column; }
.ag-time small { color: var(--ink-4); font-weight: 600; font-size: 12px; }
.ag-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ag-body b { font-size: 14.5px; }
.ag-break { background: var(--surface-2); border-style: dashed; }
.ag-b2b { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-50), var(--surface)); }
.ag-b2b .btn { align-self: flex-start; margin-top: 6px; }
.b2b-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
@media (min-width: 640px) { .b2b-slots { grid-template-columns: repeat(3, 1fr); } }
.b2b-slot { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.b2b-slot b { font-size: 12.5px; flex: none; }
.b2b-slot > span:not(.av) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2b-slot.booked { border-color: var(--brand); color: var(--ink); font-weight: 600; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.outcome { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13.5px; font-weight: 700; }
.outcome input { position: absolute; opacity: 0; pointer-events: none; }
.outcome .ic { color: var(--brand); }
.outcome.on { border: 2px solid var(--brand); background: var(--brand-50); padding: 11px; }

/* ============ Chat ============ */
.shell.chat-mode .tabbar { display: none; }
.shell.chat-mode .main { padding-bottom: 0; }
.view-chat { padding: 0 !important; max-width: none; }
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); max-width: 860px; margin: 0 auto; }
.chat-e2e { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); padding: 8px 12px; background: var(--ok-bg); }
.chat-e2e .ic { width: 14px; height: 14px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.msg-day { text-align: center; margin: 10px 0 4px; }
.msg-day span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: var(--surface-3); padding: 3px 10px; border-radius: 999px; }
.msg-sys { display: flex; gap: 6px; align-items: flex-start; justify-content: center; text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 6px auto; max-width: 92%; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.msg-sys .ic { width: 14px; height: 14px; color: var(--brand); margin-top: 2px; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.me .bubble { background: var(--brand-strong); color: var(--on-brand); border-bottom-right-radius: 6px; }
.msg.them .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-time { font-size: 11px; color: var(--ink-4); margin: 3px 6px 2px; }
.contact-card { padding: 12px 14px; border-radius: 16px; background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); min-width: 240px; }
.cc-title { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; color: var(--ok); margin-bottom: 8px; }
.cc-title .ic { width: 15px; height: 15px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.contact-card li { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.contact-card li .ic { width: 15px; height: 15px; color: var(--ink-3); }
.contact-card a { color: var(--ink); font-weight: 600; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.typing[hidden] { display: none; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.composer { border-top: 1px solid var(--line); background: var(--surface); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.quick .chip { height: 30px; font-size: 12.5px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line-2); border-radius: 22px; padding: 11px 16px; font-size: 15px; background: var(--surface-2); max-height: 140px; line-height: 1.4; }
.composer textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.composer .btn-icon-only { height: 44px; border-radius: 50%; }
.chat-blocked { padding: 16px; text-align: center; color: var(--ink-3); border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: center; align-items: center; }
.thread.unread b { font-weight: 800; }
.thread.unread small { color: var(--ink); font-weight: 600; }
.th-top { display: flex; justify-content: space-between; gap: 8px; }
.notif.unread { background: color-mix(in srgb, var(--brand-50) 60%, transparent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }

/* ============ Privacy ============ */
.privacy-hero { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, var(--ok-bg), var(--surface)); }
.privacy-hero > .ic { color: var(--ok); }
.privacy-hero > div { display: flex; flex-direction: column; gap: 4px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.ptable thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.ptable tbody th { text-align: left; font-weight: 600; }
.ptable td { width: 84px; }
.yes, .no, .maybe { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.yes { background: var(--ok-bg); color: var(--ok); }
.no { background: var(--gray-bg); color: var(--ink-3); }
.maybe { background: var(--brand-50); color: var(--brand); }
.yes .ic, .no .ic, .maybe .ic { width: 15px; height: 15px; }
.ptable-key { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 14px; font-size: 12.5px; color: var(--ink-3); align-items: center; }
.ptable-key span { width: 22px; height: 22px; margin-right: -8px; }
.log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.log li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.log .ic { color: var(--ink-3); width: 16px; height: 16px; margin-top: 2px; flex: none; }

/* ============ Admin: KPIs & charts ============ */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .kpis { grid-template-columns: repeat(6, 1fr); } .kpis-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) and (max-width: 1299px) { .kpis-4 { grid-template-columns: repeat(4, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); min-width: 0; transition: border-color .15s; }
a.kpi:hover { border-color: var(--brand-200); }
.kpi-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-strong); margin-bottom: 6px; }
:root[data-theme="dark"] .kpi-ic { color: var(--brand); }
.kpi-ic .ic { width: 17px; height: 17px; }
.kpi-amber .kpi-ic { background: var(--warn-bg); color: var(--warn); }
.kpi-green .kpi-ic { background: var(--ok-bg); color: var(--ok); }
.kpi-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.kpi-val { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.kpi-sub { font-size: 12px; color: var(--ink-3); }
@media (max-width: 759px) {
  .kpi { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 12px; }
  .kpi-ic { width: 28px; height: 28px; margin: 0; border-radius: 8px; }
  .kpi-ic .ic { width: 15px; height: 15px; }
  .kpi-label { line-height: 1.2; }
  .kpi-val, .kpi-sub { grid-column: 1 / -1; }
  .kpi-val { font-size: 24px; margin-top: 6px; }
}
.dash-grid { display: grid; gap: 16px; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; } }
.chart-card { padding: 16px; }
@media (min-width: 760px) { .chart-card { padding: 20px; } }
.cc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.cc-head h2 { font-size: 16px; font-weight: 800; padding-top: 4px; }
.cc-sub { margin-bottom: 14px; }
.cc-head + .cc-chart { margin-top: 12px; }
.cc-head .seg { flex: none; }
.hbars { display: flex; flex-direction: column; gap: 4px; }
.hb-row { display: grid; grid-template-columns: minmax(96px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 8px; }
.hb-row:hover { background: var(--surface-2); }
.hb-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-label .ic { color: var(--ink-3); }
.hb-track { height: 14px; display: block; }
.hb-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--series-need); min-width: 2px; transition: width .5s var(--ease); }
.hb-val { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.hb-val small { font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.hbars-funnel .hb-track { height: 22px; }
.hbars-funnel .hb-fill { border-radius: 0 6px 6px 0; }
.cols { display: grid; grid-template-columns: 26px 1fr; gap: 6px; height: 190px; }
.cols-grid { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--ink-4); text-align: right; padding-bottom: 20px; font-variant-numeric: tabular-nums; }
.cols-bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; align-items: end; border-bottom: 1px solid var(--line-2); position: relative; background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 100% 50%; margin-bottom: 20px; }
.col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; }
.col:hover .col-bar { background: var(--brand-strong); }
.col-bar { width: 100%; max-width: 26px; background: var(--series-need); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .5s var(--ease); }
.col-x { position: absolute; bottom: -19px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .col-x-alt { visibility: hidden; } }
@media (max-width: 599px) {
  .hb-row { grid-template-columns: 1fr auto; row-gap: 5px; padding: 6px 4px; }
  .hb-row .hb-track { grid-column: 1 / -1; grid-row: 2; }
  .hb-label { white-space: normal; }
  .pair { grid-template-columns: 1fr auto; row-gap: 5px; }
  .pair .pair-bars { grid-column: 1 / -1; grid-row: 2; }
  .pair-label { white-space: normal; }
}
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-need { background: var(--series-need); }
.lg-offer { background: var(--series-offer); }
.lg-booked { background: var(--brand-strong); }
.lg-free { background: var(--surface-3); border: 1px solid var(--line-2); }
.pairs { display: flex; flex-direction: column; gap: 6px; }
.pair { display: grid; grid-template-columns: minmax(110px, 36%) 1fr auto; gap: 10px; align-items: center; padding: 4px; border-radius: 8px; }
.pair:hover { background: var(--surface-2); }
.pair-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pair-label .ic { color: var(--ink-3); }
.pair-bars { display: flex; flex-direction: column; gap: 2px; }
.pb { display: block; height: 9px; border-radius: 0 3px 3px 0; min-width: 2px; }
.pb-need { background: var(--series-need); }
.pb-offer { background: var(--series-offer); }
.pair-val { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pair-val small { color: var(--ink-3); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th, .dtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.dtable th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.big-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-num b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feed li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.feed .li-ic { width: 30px; height: 30px; border-radius: 9px; }
.feed .li-ic .ic { width: 15px; height: 15px; }

/* ============ Admin: curation ============ */
.toolbar { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 760px) { .toolbar { flex-direction: row; justify-content: space-between; align-items: center; } }
.qcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); transition: border-color .15s; min-width: 0; }
.qcard:hover { border-color: var(--brand-200); }
.qcard.selected { border: 2px solid var(--brand); }
.qc-check { position: absolute; top: 14px; right: 14px; z-index: 2; }
.qc-check input { width: 22px; height: 22px; accent-color: var(--brand-strong); cursor: pointer; }
.qc-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; color: var(--ink); min-width: 0; }
.qc-pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 30px; }
.qc-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qc-person > span:not(.av) { display: flex; flex-direction: column; min-width: 0; }
.qc-person b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-person small { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gap { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; flex: none; }
.gap .ic { width: 13px; height: 13px; }
.gap-up { background: var(--warn-bg); color: var(--warn); }
.gap-down { background: var(--ok-bg); color: var(--ok); }
.gap-flat { background: var(--surface-3); color: var(--ink-3); }
.qc-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qc-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.flag-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.flag-chip .ic { width: 13px; height: 13px; }
.fc-info { background: var(--brand-50); color: var(--brand-ink); }
.fc-warn { background: var(--warn-bg); color: var(--warn); }
.fc-danger { background: var(--bad-bg); color: var(--bad); }
.qc-why { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.qc-info { font-size: 13px; padding: 8px 10px; background: var(--ok-bg); border-radius: 10px; display: flex; gap: 6px; align-items: flex-start; }
.qc-info .ic { width: 15px; height: 15px; color: var(--ok); margin-top: 2px; flex: none; }
.qc-acts { display: flex; justify-content: flex-end; gap: 6px; padding: 0 14px 14px; }
.qscore { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 8px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.qscore small { font-size: 11px; font-weight: 700; }
.qs-strong { background: var(--ok-bg); color: var(--ok); }
.qs-good { background: var(--brand-50); color: var(--brand-ink); }
.qs-review { background: var(--warn-bg); color: var(--warn); }
.qs-weak { background: var(--bad-bg); color: var(--bad); }
.bulk-hint { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); font-size: 13.5px; font-weight: 600; }
.bulk-hint span { display: flex; gap: 8px; align-items: center; }
.bulk-hint .ic { color: var(--ok); }
.bulk-bar { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 18px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow-3); }
.bulk-bar > span { margin-right: auto; font-size: 14px; }
.bulk-bar .btn-ghost { color: var(--surface); }
.bulk-bar .btn-ghost:hover { background: color-mix(in srgb, var(--surface) 12%, transparent); }
@media (min-width: 760px) { .bulk-bar { bottom: 16px; } }
.review-grid { display: grid; gap: 16px; }
.rv-main, .rv-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1100px) { .review-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; } .rv-side { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; } }
.rv-head { display: flex; flex-direction: column; gap: 12px; }
.signal-row { display: flex; gap: 10px; margin-bottom: 12px; }
.signal { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-3); text-align: center; }
.signal .qscore { font-size: 18px; }
.sig-num { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 46px; }
.person-panel .label-sm { margin-top: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.mini-stats span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: var(--surface-2); }
.mini-stats b { font-size: 15px; font-weight: 800; }
.mini-stats small { font-size: 10.5px; color: var(--ink-3); font-weight: 600; text-align: center; line-height: 1.2; }
.vault-box { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--surface-2); }
.vault-box .facts { margin-top: 8px; }
.masked { color: var(--ink-3); letter-spacing: .04em; }
.sticky-admin .btn-lg { flex: 1.4; }
@media (min-width: 760px) { .sticky-admin .btn-lg { flex: none; } }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.pick-row:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-50); padding: 9px 11px; }
.pick-row input { width: 18px; height: 18px; accent-color: var(--brand-strong); flex: none; }
.pick-row .li-txt small { white-space: nowrap; }

/* ============ Admin: members table ============ */
.filters-row { display: flex; flex-direction: column; gap: 8px; }
.filters-row select.input { height: 44px; font-size: 14px; }
@media (min-width: 760px) { .filters-row { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); } .filters-row .search { height: 44px; } }
.mtable { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); }
.mt-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink); align-items: center; font-size: 13px; }
.mt-row:first-child { border-top: 0; }
a.mt-row:hover { background: var(--surface-2); }
.mt-head { display: none; }
.mt-who { display: flex; gap: 10px; align-items: center; min-width: 0; grid-column: 1 / -1; }
.mt-who > span:not(.av) { display: flex; flex-direction: column; min-width: 0; }
.mt-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-who small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-row > span:not(.mt-who) { color: var(--ink-2); }
.mt-ind { display: none; }
.mt-row small { font-size: 12px; color: var(--ink-3); }
@media (min-width: 900px) {
  .mt-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .8fr); }
  .mt-head { display: grid; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--surface-2); }
  .mt-who { grid-column: auto; }
  .mt-ind { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.invite-code { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; background: var(--brand-50); border: 1px dashed var(--brand-200); margin-bottom: 14px; }
.invite-code b { font-size: 24px; letter-spacing: .08em; font-family: ui-monospace, Menlo, monospace; }
.invite-code .btn { margin-top: 6px; }
.import { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.import label.btn { cursor: pointer; }
.import > div:last-child { width: 100%; }

/* ============ Admin: lounge board ============ */
.slots-board { display: grid; gap: 12px; }
@media (min-width: 900px) { .slots-board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .slots-board { grid-template-columns: repeat(3, 1fr); } }
.tbl-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
@media (min-width: 480px) { .tbl-grid { grid-template-columns: repeat(10, 1fr); } }
.tbl { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--ink-4); background: var(--surface-3); border: 1px solid var(--line); padding: 0; font-variant-numeric: tabular-nums; }
.tbl.booked { background: var(--brand-strong); color: var(--on-brand); border-color: var(--brand-strong); cursor: pointer; }
.tbl.booked:hover { transform: scale(1.12); box-shadow: var(--shadow-2); }
.lounge-sum .meter { margin: 6px 0 10px; }

/* ============ Admin: audit & outcomes ============ */
.audit { list-style: none; padding: 0; margin: 0; }
.audit li { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: flex-start; }
.audit li:first-child { border-top: 0; }
.audit .li-ic { width: 34px; height: 34px; }
.au-reveal { background: color-mix(in srgb, var(--warn-bg) 50%, transparent); }
.oc-row .li-txt small:last-child { white-space: normal; }

/* ============ Motion preference ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.demo-acct > .chev { align-self: center; }
.card-pad > .vault-box:first-child { margin-top: 0; }
@media (max-width: 380px) { .hide-xs { display: none; } .sticky-actions .btn-more { flex: none; width: 50px; padding: 0; } }
