@charset "UTF-8";

/* A low-glare palette shared by every page, form and native control. */
:root {
  color-scheme: dark;
  --ink: #d4dce8;
  --secondary: #b3bfd1;
  --muted: #96a5ba;
  --line: #323e50;
  --line-accent: #43577b;
  --canvas: #171e29;
  --sidebar: #1c2431;
  --paper: #222c3b;
  --surface-muted: #1d2634;
  --surface-hover: #2b3749;
  --control: #1a2331;
  --blue: #9bb2ef;
  --blue-dark: #b0c1f3;
  --blue-soft: #293750;
  --primary: #4c65ae;
  --primary-hover: #5a74be;
  --on-accent: #e7edf9;
  --teal: #7bc8b0;
  --teal-soft: #263e37;
  --amber: #d3b47d;
  --amber-soft: #3c3528;
  --danger: #df98a1;
  --danger-soft: #402e38;
  --radius: 12px;
  --body: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --display: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: "Bahnschrift", "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scrollbar-color: #4b5b73 var(--canvas); }
::selection { background: #405984; color: var(--on-accent); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 13px/1.6 var(--body); min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--line-accent); outline-offset: 3px; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--ink); background: var(--control); border: 1px solid var(--line); border-radius: 7px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--line-accent); box-shadow: 0 0 0 3px #90a8e81a; }
input::placeholder, textarea::placeholder { color: #8493aa; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 100px var(--control) inset; caret-color: var(--ink); }
option { color: var(--ink); background: var(--control); }
input:disabled, select:disabled { background: var(--surface-muted); }
input[type=checkbox] { width: 16px; height: 16px; min-height: 0; accent-color: var(--blue); }
textarea { resize: vertical; }
.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.mono, .money { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.money { font-weight: 600; white-space: nowrap; }
.muted, .subtle { color: var(--muted); }
.subtle { font-size: 12px; }
.teal { color: var(--teal); }
.vip-text { color: var(--amber); }
.strike { text-decoration: line-through; color: var(--muted); }
.initial-loader { display: grid; place-items: center; height: 100vh; color: var(--blue); }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .06em; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 15px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: var(--line); background: var(--surface-hover); color: var(--blue); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-accent); box-shadow: 0 2px 3px #90a8e81a; }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-accent); }
.btn.small { min-height: 33px; padding: 6px 11px; font-size: 12px; gap: 5px; }
.btn.small .icon { width: 14px; height: 14px; }
.btn.full { width: 100%; }
.btn.settle { background: var(--blue-soft); color: var(--blue); border-color: var(--line); }
.btn.settle:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--line-accent); }
.btn.danger { color: var(--danger); background: var(--danger-soft); border-color: #65434d; }
.icon-btn { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 7px; color: var(--secondary); background: transparent; }
.icon-btn:hover:not(:disabled) { background: var(--surface-muted); color: var(--blue); }
.text-btn { padding: 6px; border: 0; border-radius: 5px; color: var(--blue); background: none; font-size: 12px; white-space: nowrap; }
.text-btn:hover { background: var(--blue-soft); }
.danger-link { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 15px; border: 0; background: transparent; color: var(--danger); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; font-size: 11px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.pill.green { background: var(--teal-soft); color: var(--teal); }
.pill.slate { background: var(--surface-hover); color: var(--secondary); }
.pill.vip { background: var(--amber-soft); color: var(--amber); font-family: "Segoe UI", sans-serif; font-size: 10px; font-weight: 700; }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.orange { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--secondary); font-size: 13px; font-weight: 500; }
.avatar.vip-avatar { background: var(--amber-soft); color: var(--amber); }
.avatar.tiny { width: 25px; height: 25px; font-size: 11px; border-radius: 50%; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; background: #718098; border-radius: 50%; }
.status-dot.live { background: var(--teal); box-shadow: 0 0 0 3px #080d172e; }

/* Application frame */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 220px; padding: 26px 15px 16px; border-right: 1px solid var(--line); background: var(--sidebar); }
/* Club identity: a cut-corner 1M monogram and a quiet two-line wordmark. */
.club-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #d3dfe9; }
.club-mark { display: block; flex: 0 0 auto; width: 51px; height: 51px; }
.club-wordmark { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.club-wordmark > strong { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: 1.4px; white-space: nowrap; }
.club-wordmark > small { color: #8faab9; font-family: "Bahnschrift", "Segoe UI", sans-serif; font-size: 8px; line-height: 1; font-weight: 500; letter-spacing: 2px; white-space: nowrap; }
.sidebar .club-brand { padding: 0 4px 25px; margin-bottom: 24px; border-bottom: 1px solid #344252; }
.club-brand:hover .club-wordmark > strong { color: #e0e9ef; }
.nav-caption { margin: 0 14px 12px; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 14px; border-radius: 7px; color: var(--secondary); font-size: 14px; }
.nav-item > .icon { width: 18px; height: 18px; color: var(--secondary); }
.nav-item:hover { background: var(--surface-muted); color: var(--blue); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.nav-item.active > .icon { color: var(--blue); }
.nav-item > b { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 0 6px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.server-card { padding: 18px 12px; border-top: 1px solid var(--line); }
.connection { display: block; font-size: 11px; color: var(--secondary); }
.connection:before { display: inline-block; content: ""; width: 5px; height: 5px; margin-right: 7px; background: var(--teal); border-radius: 50%; }
.connection.offline { color: var(--amber); }
.connection.offline:before { background: #ce943e; }
.server-card small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.profile { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); text-align: left; }
.profile-avatar { color: var(--secondary); background: var(--blue-soft); }
.profile > span:not(.avatar) { display: flex; flex-direction: column; flex: 1; }
.profile strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.profile small { color: var(--muted); font-size: 10px; margin-top: 1px; }
.profile > .icon { width: 15px; height: 15px; color: var(--muted); }
.main { margin-left: 220px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 30px; border-bottom: 1px solid var(--line); background: var(--sidebar); }
.breadcrumb { display: flex; align-items: center; gap: 13px; color: var(--secondary); font-size: 12px; }
.breadcrumb > span { color: var(--muted); }
.breadcrumb > strong { color: var(--secondary); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.today { font-size: 11px; color: var(--secondary); }
.trial-tag { color: var(--secondary); background: var(--surface-muted); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; padding: 3px 7px; }
.notification-button { position: relative; }
.notification-button > i { width: 5px; height: 5px; position: absolute; top: 3px; right: 4px; border-radius: 50%; background: #d27575; outline: 2px solid var(--sidebar); }
.top-account { display: flex; align-items: center; gap: 7px; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--secondary); font-size: 12px; }
.page-content { max-width: 1800px; padding: 27px 30px 14px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.page-kicker { display: none; color: var(--secondary); font-size: 11px; margin-bottom: 5px; }
.page-heading h1 { font-size: 25px; font-weight: 650; letter-spacing: .025em; line-height: 1.5; }
.page-heading p { color: var(--secondary); font-size: 12px; margin-top: 7px; }
.heading-actions { display: flex; align-items: center; gap: 18px; }
.live-sync { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--secondary); }
.heading-actions > .btn { min-height: 40px; padding: 10px 17px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 15px 0 4px; margin-top: 28px; color: var(--muted); font-size: 10px; }
.balance-alert { display: flex; align-items: center; gap: 10px; padding: 11px 15px; margin-bottom: 24px; color: var(--amber); border: 1px solid #5c4d35; background: var(--amber-soft); border-radius: 8px; font-size: 12px; }
.balance-alert > .icon { width: 17px; height: 17px; }
.balance-alert > span { flex: 1; }
.balance-alert > .text-btn { color: var(--amber); }

/* Service overview */
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 25px; }
.metric { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 116px; padding: 19px 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 2px 4px #080d172e; }
.metric > span { color: var(--secondary); font-size: 12px; }
.metric > strong { font-family: var(--mono); font-weight: 600; font-size: 28px; line-height: 1.3; letter-spacing: -.3px; margin: 7px 0 6px; }
.metric > strong > em { font: normal 11px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.metric > small { font-size: 11px; color: var(--muted); }
.metric.accent { border-color: var(--line); background: #253146; }
.metric.accent > strong { color: var(--blue); }
.dispatch-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 22px; }
.dispatch-main { min-width: 0; }
.workspace-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 47px; gap: 15px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.team-tabs { display: flex; gap: 23px; height: 47px; }
.team-tabs > button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 2px 12px; border: 0; background: transparent; color: var(--secondary); font-size: 13px; }
.team-tabs > button.selected { color: var(--blue); font-weight: 600; }
.team-tabs > button.selected:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.team-tabs > button > span { min-width: 20px; padding: 0 5px; background: var(--surface-hover); border-radius: 4px; color: var(--secondary); font: 11px/1.7 var(--mono); }
.team-tabs > button.selected > span { color: var(--blue); background: var(--blue-soft); }
.list-hint { padding-bottom: 12px; color: var(--muted); font-size: 11px; }
.team-grid { display: flex; flex-direction: column; gap: 18px; }
.team-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: 0 3px 6px #080d172e; }
.team-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 22px 15px; }
.team-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.car-number { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 20px; font-weight: 500; }
.is-live .car-number { color: var(--blue); background: var(--blue-soft); border-color: var(--line); }
.team-id > div { min-width: 0; }
.team-id h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; color: var(--ink); }
.team-id p { font-size: 11px; color: var(--secondary); margin-top: 4px; }
.team-status { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.team-status > .pill.green:before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.capacity { font-size: 11px; color: var(--muted); white-space: nowrap; }
.capacity > b { font-family: var(--mono); color: var(--secondary); font-weight: 500; }
.team-price-line { display: flex; align-items: center; gap: 12px; margin: 0 22px; padding-bottom: 16px; font-size: 11px; color: var(--secondary); }
.team-price-line strong { margin-left: 5px; font-family: var(--mono); font-weight: 400; color: var(--secondary); font-size: 12px; }
.team-price-line small { color: var(--muted); font-family: var(--body); font-size: 10px; margin-left: 2px; }
.team-price-line > span:nth-child(3) strong { color: var(--amber); }
.team-price-line > i { height: 9px; width: 1px; background: var(--line); }
.team-price-line .car-billing-label { margin-left: auto; color: var(--muted); font-size: 10px; }
.member-grid { display: grid; grid-template-columns: minmax(150px,1.6fr) minmax(72px,.85fr) minmax(98px,1.1fr) minmax(86px,.95fr) minmax(112px,1.15fr) 102px; column-gap: 8px; padding-left: 22px; padding-right: 22px; }
.roster-head { padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-muted); color: var(--secondary); font-size: 12px; }
.roster-head > span:last-child { padding-left: 11px; }
.member-row { align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-row.running { background: var(--surface-muted); }
.member-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-main > .avatar { width: 33px; height: 33px; border-radius: 10px; }
.member-main > div { min-width: 0; }
.member-main strong { display: block; font-size: 14px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-main .pill { vertical-align: middle; margin-left: 3px; padding: 1px 5px; font-size: 9px; }
.yy { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.roster-cell { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.roster-cell > label { display: none; }
.roster-cell > strong { font-size: 16px; font-weight: 400; color: var(--secondary); line-height: 1.4; white-space: nowrap; }
.roster-cell > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--secondary); white-space: nowrap; }
.member-time > strong { font-size: 18px; color: var(--muted); }
.member-time > strong.time-live { color: var(--blue); font-weight: 500; }
.member-fee > strong { font-size: 18px; font-weight: 500; color: var(--muted); }
.running .member-fee > strong { color: var(--ink); }
.member-balance > strong { color: var(--secondary); }
.row-service-status { display: flex; align-items: center; gap: 5px; }
.remaining-label { font-size: 10px; }
.low-balance { color: var(--amber) !important; }
.member-controls { display: flex; align-items: center; justify-content: flex-start; gap: 3px; }
.member-controls > .btn { min-width: 70px; }
.member-controls > .remove-member { width: 25px; height: 28px; padding: 5px; color: var(--muted); }
.remove-member > .icon { width: 13px; height: 13px; }
.remove-member:hover { color: var(--danger); background: var(--danger-soft); }
.empty-car { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 111px; border-top: 1px solid var(--line); padding: 20px; background: var(--surface-muted); }
.empty-car-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--muted); background: var(--surface-muted); border: 1px solid var(--line); border-radius: 50%; }
.empty-car-icon .icon { width: 22px; height: 22px; stroke-width: 1.5; }
.empty-car strong { font-size: 13px; font-weight: 500; color: var(--secondary); }
.empty-car p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.empty-team .empty-car { min-height: 86px; padding-top: 16px; padding-bottom: 16px; }
.team-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 13px 22px; border-top: 1px solid var(--line); }
.staff-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.staff-caption { color: var(--muted); font-size: 10px; }
.staff-person { display: inline-flex; align-items: center; gap: 6px; }
.staff-person > strong { font-size: 11px; font-weight: 400; color: var(--secondary); }
.staff-person > small { font-size: 10px; color: var(--muted); }
.staff-policy { color: var(--muted); font-size: 10px; white-space: nowrap; }
.team-footer-actions { display: flex; align-items: center; gap: 8px; }
.settled-today { color: var(--muted); font-size: 11px; }
.rule-note { display: flex; align-items: flex-start; gap: 7px; padding: 17px 4px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.rule-note > .icon { width: 13px; height: 13px; margin-top: 3px; }

/* YY lookup and recent receipts */
.dispatch-aside { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-top: 2px; }
.quick-panel, .recent-panel { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.quick-panel { padding: 21px 19px 18px; }
.aside-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.aside-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--blue); border-radius: 9px; background: var(--blue-soft); }
.aside-icon > .icon { width: 18px; height: 18px; }
.aside-heading h2, .aside-section-title h2 { font-size: 14px; font-weight: 600; color: var(--ink); }
.aside-heading p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.quick-panel .field { margin-bottom: 17px; }
.quick-panel .field > span { font-size: 11px; color: var(--secondary); }
.quick-panel select { font-size: 12px; min-height: 41px; }
.quick-search { position: relative; }
.quick-search > .icon { position: absolute; left: 10px; top: 13px; width: 14px; height: 14px; color: var(--muted); }
.quick-search > input { padding-left: 30px; padding-right: 57px; font-size: 12px; min-height: 42px; }
.quick-search > button { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 4px 10px; min-height: 0; border-radius: 5px; font-size: 11px; }
.quick-result { border-top: 1px dashed var(--line); padding-top: 17px; margin-top: 4px; }
.lookup-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 112px; color: var(--muted); text-align: center; padding: 7px 0; }
.lookup-empty > .icon { width: 28px; height: 28px; stroke-width: 1.3; margin-bottom: 12px; }
.lookup-empty > p { font-size: 11px; color: var(--muted); line-height: 1.9; }
.lookup-person { display: flex; align-items: center; gap: 9px; }
.lookup-person > div { flex: 1; min-width: 0; }
.lookup-person strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--secondary); font-size: 13px; font-weight: 500; }
.lookup-person small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.lookup-quote { margin: 18px 0; padding: 12px; border: 1px solid var(--line); background: var(--surface-muted); border-radius: 7px; }
.lookup-quote > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 5px 0; }
.lookup-quote dt { font-size: 11px; color: var(--muted); }
.lookup-quote dd { margin: 0; font-family: var(--mono); color: var(--secondary); font-size: 16px; }
.lookup-quote dd small { font-family: var(--body); font-size: 10px; color: var(--muted); }
.lookup-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--secondary); padding: 9px 4px; border-radius: 5px; background: var(--teal-soft); }
.lookup-status > .icon { width: 14px; height: 14px; }
.lookup-warning { color: var(--amber); font-size: 10px; margin: 10px 0 0; line-height: 1.8; }
.aside-section-title { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 10px; }
.aside-section-title a { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); }
.aside-section-title a > .icon { width: 12px; height: 12px; }
.recent-order { display: flex; align-items: center; gap: 8px; width: calc(100% - 36px); margin: 0 18px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.recent-order:last-child { border-bottom: 0; margin-bottom: 5px; }
.recent-order > .avatar { width: 28px; height: 28px; font-size: 10px; border-radius: 8px; }
.recent-order > span:not(.avatar) { flex: 1; min-width: 0; }
.recent-order strong { display: block; font-size: 11px; color: var(--secondary); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-order small { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.recent-order b { font-family: var(--mono); font-size: 13px; color: var(--secondary); font-weight: 400; }
.recent-order:hover strong, .recent-order:hover b { color: var(--blue); }
.recent-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 20px 27px; color: var(--muted); }
.recent-empty p { color: var(--muted); font-size: 11px; }
.aside-help { display: flex; align-items: flex-start; gap: 9px; padding: 0 6px; }
.aside-help > .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.aside-help strong { font-size: 11px; font-weight: 400; color: var(--secondary); }
.aside-help p { font-size: 10px; color: var(--muted); line-height: 1.9; margin-top: 4px; }

/* Tables and administrative screens */
.panel { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--paper); box-shadow: 0 2px 4px #080d172e; }
.panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding: 19px 23px; border-bottom: 1px solid var(--line); }
.panel-toolbar h2 { font-size: 15px; font-weight: 600; color: var(--ink); }
.panel-toolbar p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.searchbox { display: flex; align-items: center; position: relative; max-width: 320px; flex: 1; }
.searchbox > .icon { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.searchbox > input { padding: 9px 12px 9px 36px; min-height: 39px; background: var(--surface-muted); font-size: 12px; }
.searchbox.large { max-width: none; }
.searchbox.large > input { min-height: 45px; padding-right: 75px; }
.searchbox.large > .btn { position: absolute; right: 5px; }
.table-scroll { overflow-x: auto; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; white-space: nowrap; }
thead { background: var(--surface-muted); }
th { padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--secondary); font-weight: 400; }
td { padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--secondary); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-hover); }
td > strong { color: var(--ink); font-size: 12px; font-weight: 500; }
td small { display: block; margin-top: 4px; font-family: var(--body); font-size: 10px; color: var(--muted); font-weight: 400; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell strong { font-size: 12px; color: var(--ink); font-weight: 500; }
.person-cell small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.row-actions .btn { font-size: 11px; }
.note-cell { max-width: 260px; font-size: 11px; white-space: normal; }
.table-filters { display: flex; align-items: center; gap: 12px; }
.table-filters > select { width: 138px; min-height: 39px; padding: 8px 10px; font-size: 11px; }
.table-caption { padding: 11px 23px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
.segmented { display: inline-flex; align-items: center; gap: 3px; background: var(--surface-muted); padding: 3px; border: 1px solid var(--line); border-radius: 7px; }
.segmented > button { padding: 6px 13px; border: 0; border-radius: 5px; background: transparent; color: var(--secondary); font-size: 12px; }
.segmented > button.selected { color: var(--blue); background: var(--paper); box-shadow: 0 1px 3px #080d172e; }
.empty { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 55px 24px; width: 100%; text-align: center; color: var(--muted); }
.empty > .icon { width: 34px; height: 34px; margin-bottom: 14px; stroke-width: 1.3; }
.empty h3 { color: var(--secondary); font-size: 14px; font-weight: 400; margin-bottom: 7px; }
.empty p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.empty > .btn { margin-top: 20px; }
.earnings-note { display: flex; align-items: flex-start; gap: 12px; padding: 17px 20px; margin: 0 0 23px; color: var(--blue); background: var(--blue-soft); border: 1px solid var(--line); border-radius: 9px; }
.earnings-note > .icon { width: 18px; height: 18px; margin-top: 3px; }
.earnings-note strong { font-size: 12px; font-weight: 500; color: var(--secondary); }
.earnings-note p { font-size: 11px; line-height: 1.9; margin-top: 5px; color: var(--muted); }
.finance-ledger, .active-earnings { margin-top: 23px; }
.active-earnings { margin-bottom: 23px; }
.pricing-intro { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.9; color: var(--secondary); margin: 0 0 23px; }
.pricing-intro > .icon { width: 17px; height: 17px; margin-top: 3px; }
.package-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; margin-bottom: 25px; }
.package-card { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.package-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.package-card .eyebrow { font-size: 10px; }
.package-card h2 { font-size: 17px; font-weight: 500; margin: 23px 0 7px; }
.package-card > .subtle { font-size: 11px; color: var(--muted); }
.package-prices { display: flex; justify-content: space-between; gap: 15px; margin: 24px 0; padding: 20px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.package-prices > div { display: flex; flex-direction: column; gap: 9px; }
.package-prices > div > span { font-size: 11px; color: var(--muted); }
.package-prices strong { font: 500 28px/1.3 var(--mono); }
.package-prices small { font: 10px var(--body); color: var(--muted); margin-left: 3px; }
.package-card > .btn { font-size: 12px; background: var(--surface-muted); }
.package-card > .btn > .icon { width: 14px; height: 14px; }
.grade-item { display: flex; align-items: center; gap: 23px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.grade-number { color: var(--muted); font-size: 16px; }
.grade-copy { width: 120px; display: flex; flex-direction: column; gap: 5px; }
.grade-item strong { color: var(--secondary); font-size: 13px; font-weight: 500; }
.grade-item small { color: var(--muted); font-size: 11px; }
.grade-bar { height: 5px; max-width: 360px; flex: 1; border-radius: 5px; overflow: hidden; background: var(--surface-muted); }
.grade-bar > i { display: block; height: 100%; background: #7189c5; border-radius: 5px; }
.grade-rate { min-width: 65px; font-size: 23px; color: var(--blue); margin-left: 8px; }
.grade-rate small { font-size: 12px; color: var(--muted); }
.grade-item > .text-btn { margin-left: auto; }
.panel-footnote { padding: 15px 24px; background: var(--surface-muted); color: var(--muted); font-size: 11px; }
.audit-list { padding: 0 25px; }
.audit-row { display: flex; align-items: flex-start; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border: 0; }
.audit-line { flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px; border: 2px solid var(--line-accent); border-radius: 50%; }
.audit-row > div { flex: 1; min-width: 0; }
.audit-row strong { color: var(--secondary); font-size: 12px; font-weight: 500; }
.audit-row p { margin-top: 6px; color: var(--secondary); font-size: 11px; overflow-wrap: anywhere; }
.audit-row div > span { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.audit-row b { font-weight: 400; padding: 0 8px; }
.audit-row > .mono { font-size: 11px; }

/* Separate shared / charter pricing, consent and start confirmation. */
.team-price-line { flex-wrap: wrap; row-gap: 8px; }
.team-price-line > span > small { margin-left: 3px; }
.guest-row { background: var(--surface-muted); }
.guest-consent { display: flex; align-items: flex-start; gap: 9px; padding: 12px; margin: 0 0 14px; border: 1px solid var(--line-accent); border-radius: 7px; background: var(--blue-soft); color: var(--secondary); font-size: 11px; line-height: 1.9; cursor: pointer; }
.guest-consent input { flex: 0 0 auto; margin: 3px 0 0; }
.lookup-mode-note { margin: 0 0 14px; color: var(--secondary); font-size: 10px; line-height: 1.9; }
.price-section { margin: 22px 0; }
.price-section + .price-section { border-top: 1px solid var(--line); padding-top: 17px; }
.price-section h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--secondary); font-size: 12px; font-weight: 600; }
.price-section h3 small { color: var(--muted); font-size: 10px; font-weight: 400; }
.price-section .package-prices { margin: 13px 0 0; padding: 0; border: 0; }
.package-card .unpriced { color: var(--muted); font-family: var(--body); font-size: 14px; }
.grade-rates { display: flex; flex: 0 0 auto; gap: 30px; margin-left: auto; }
.grade-rates > span { display: flex; flex-direction: column; gap: 5px; min-width: 65px; }
.grade-rates b { font: 500 22px/1.3 var(--mono); color: var(--blue); }
.grade-rates .unpriced { color: var(--muted); font-family: var(--body); font-size: 13px; line-height: 2; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin: 3px 0 15px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.form-section-title small { color: var(--muted); font-size: 10px; font-weight: 400; }
.mode-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.mode-option { display: grid; grid-template-columns: 18px 1fr; gap: 5px 9px; align-items: center; padding: 16px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); cursor: pointer; }
.mode-option input { grid-row: 1/3; width: 16px; min-height: 0; height: 16px; margin: 0; accent-color: var(--primary); }
.mode-option > span { font-size: 15px; font-weight: 600; }
.mode-option small { color: var(--muted); font-size: 10px; }
.mode-option:has(input:checked) { border-color: var(--line-accent); background: var(--blue-soft); }
.mode-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.mode-unavailable { opacity: .55; cursor: not-allowed; }
.mode-reason { margin: -3px 0 17px; color: var(--amber); font-size: 11px; line-height: 1.9; }
.start-quote { padding: 17px 18px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 8px; }
.start-quote > span { font-size: 11px; color: var(--muted); }
.start-quote > strong { display: block; margin: 8px 0; color: var(--blue); font-size: 28px; font-weight: 600; line-height: 1.3; }
.start-quote strong small { color: var(--muted); font: 11px var(--body); }
.start-quote p { font-size: 11px; color: var(--secondary); }
.start-shares { margin: 15px 0; }
.start-policy { font-size: 11px; color: var(--muted); line-height: 1.9; }

/* Forms and dialogs */
dialog { width: 510px; max-width: calc(100vw - 28px); max-height: 90vh; padding: 0; overflow-y: auto; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 90px #080d172e; }
dialog.wide { width: 660px; }
dialog::backdrop { background: #0b101bcc; backdrop-filter: blur(3px); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 27px 21px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 19px; font-weight: 600; }
.modal-header p { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.9; }
.modal-header .icon-btn { margin-top: -3px; margin-right: -7px; }
.modal-header + form, .form-body { padding: 23px 27px 0; }
.form-body { padding-bottom: 23px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field > span { font-size: 12px; color: var(--secondary); font-weight: 400; }
.field > small { color: var(--muted); font-size: 11px; line-height: 1.9; }
.field input, .field textarea, .field select { font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-tip { padding: 12px 14px; margin: 3px 0 18px; background: var(--surface-muted); color: var(--muted); font-size: 11px; line-height: 1.9; border-radius: 7px; border: 1px solid var(--line); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 19px 0 21px; margin-top: 20px; border-top: 1px solid var(--line); }
.modal-footer > .btn { font-size: 12px; min-height: 38px; }
.modal-header ~ .modal-footer { padding-left: 27px; padding-right: 27px; margin-top: 0; border: 0; }
.form-error { font-size: 12px; color: var(--danger); line-height: 1.9; margin: 9px 0; }
.form-error:empty { display: none; }
.account-settings { --account-gutter: 27px; }
.account-password-form { padding: 24px var(--account-gutter); }
.account-section-heading { margin-bottom: 22px; }
.account-section-heading h3 { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.account-section-heading p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.account-password-form .field { gap: 9px; margin-bottom: 20px; }
.account-password-form .field input { min-height: 44px; }
.account-password-form .form-error { margin: -4px 0 16px; }
.account-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 4px; }
.account-actions .btn { min-height: 42px; font-size: 13px; }
.account-session { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--account-gutter); border-top: 1px solid var(--line); background: var(--surface-muted); }
.account-session > span { color: var(--muted); font-size: 11px; line-height: 1.8; }
.account-signout { flex-shrink: 0; min-height: 38px; padding: 8px 13px; color: var(--danger); background: transparent; font-size: 12px; }
.account-signout:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.balance-preview { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px; margin-bottom: 24px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 11px; }
.balance-preview strong { font: 500 29px/1.4 var(--mono); color: var(--blue); }
.quick-amounts { display: flex; gap: 9px; margin: -6px 0 23px; }
.quick-amounts > button { flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--secondary); font: 13px var(--mono); }
.quick-amounts > button:hover { border-color: var(--blue); color: var(--blue); }
.staff-input { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.staff-input > select { flex: 1; width: 0; font-size: 11px; padding-left: 9px; padding-right: 4px; }
.input-suffix { position: relative; width: 92px; flex-shrink: 0; }
.input-suffix input { padding-right: 27px; font-size: 13px; font-family: var(--mono); }
.input-suffix > span { position: absolute; top: 12px; right: 10px; color: var(--muted); font-size: 11px; }
.staff-input > .icon-btn { width: 24px; }
.staff-input > .icon-btn > .icon { width: 14px; height: 14px; }
.permission-section { padding-top: 5px; }
.permission-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.permission-title strong { font-size: 12px; color: var(--secondary); font-weight: 500; }
.permission-title > .text-btn { font-size: 11px; }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.permission-check { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 11px; color: var(--secondary); }
.permission-check:has(input:checked) { border-color: var(--line); background: var(--surface-muted); color: var(--blue); }
.permission-check:has(input:disabled) { opacity: .6; cursor: default; }
.permission-hint { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 13px; }
.user-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.user-filter select { width: 150px; }
.user-row-actions { display: flex; align-items: center; gap: 9px 15px; flex-wrap: wrap; min-width: 150px; max-width: 250px; }
.danger-text { color: var(--danger); }
td .user-ban-note { max-width: 220px; white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.field .identity-note { font-size: 11px; line-height: 1.7; min-height: 19px; display: block; }
.field .identity-note.error { color: var(--danger); }
.field .identity-note.ok { color: var(--teal); }
input[aria-invalid="true"] { border-color: var(--danger); }
.search-help { padding-top: 11px; font-size: 11px; line-height: 1.9; }
.boss-result { padding: 20px; margin-top: 20px; border: 1px solid var(--line); border-radius: 9px; }
.boss-result .person-cell strong { font-size: 15px; }
.boss-result .person-cell small { font-size: 11px; }
.result-money { display: flex; justify-content: space-between; gap: 10px; padding: 15px 0; margin: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.result-money > span { display: flex; flex-direction: column; gap: 6px; }
.result-money b { font-family: var(--mono); font-size: 16px; color: var(--secondary); font-weight: 500; }
.warning-text { color: var(--amber); background: var(--amber-soft); padding: 12px; margin-top: 13px; border-radius: 6px; font-size: 11px; line-height: 1.9; }
.order-detail { padding: 24px 27px 27px; }
.detail-heading { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 4px 0 26px; }
.detail-heading > strong { font: 500 40px/1.4 var(--mono); }
.detail-heading > span:last-child { color: var(--muted); font-size: 11px; }
.order-detail dl { margin: 0 0 24px; }
.order-detail dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.order-detail dt { color: var(--muted); flex-shrink: 0; }
.order-detail dd { margin: 0; text-align: right; color: var(--secondary); font-size: 11px; }
.order-detail h3 { margin-bottom: 12px; font-size: 12px; font-weight: 400; color: var(--secondary); }
.detail-shares { padding: 13px 15px; margin-bottom: 22px; background: var(--surface-muted); border-radius: 7px; }
.detail-shares > div { display: flex; flex-wrap: wrap; gap: 6px 9px; padding: 6px 0; align-items: center; font-size: 11px; }
.detail-shares strong { font-weight: 400; color: var(--secondary); }
.detail-shares span { color: var(--muted); font-size: 10px; }
.detail-shares b { margin-left: auto; font-family: var(--mono); color: var(--blue); font-weight: 500; }
.notification-list { padding: 8px 27px; }
.notification-item { display: flex; align-items: flex-start; gap: 11px; padding: 18px 0; color: var(--amber); border-bottom: 1px solid var(--line); }
.notification-item > .icon { width: 17px; height: 17px; margin-top: 3px; }
.notification-item p { font-size: 12px; line-height: 1.9; }
.notification-item small { display: block; font-size: 10px; margin-top: 7px; color: var(--muted); }
.notification-item.seen { color: var(--muted); }
.notification-list + .modal-footer { padding: 17px 27px; margin-top: 0; }
#toast-region { position: fixed; bottom: 24px; left: 50%; z-index: 9999; transform: translateX(-50%); display: flex; flex-direction: column; gap: 9px; width: max-content; max-width: calc(100vw - 30px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; max-width: 650px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--secondary); background: var(--surface-muted); box-shadow: 0 5px 20px #080d172e; font-size: 12px; animation: toast-in .18s ease; }
.toast > .icon { width: 17px; height: 17px; }
.toast.error { color: var(--amber); background: var(--amber-soft); border-color: #5c4d35; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Sign in */
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--paper); }
.login-story { display: flex; flex-direction: column; background: #1c283c; padding: 48px 60px; color: var(--ink); }
.club-brand--login { gap: 18px; align-self: flex-start; }
.club-brand--login .club-mark { width: 66px; height: 66px; }
.club-brand--login .club-wordmark { gap: 12px; }
.club-brand--login .club-wordmark > strong { font-size: 25px; letter-spacing: 3px; }
.club-brand--login .club-wordmark > small { font-size: 10px; letter-spacing: 3px; }
.story-body { margin: auto 0; padding: 65px 0; }
.story-body > .eyebrow { display: block; color: var(--blue); margin-bottom: 25px; font-size: 12px; }
.story-body h1 { font-size: 42px; line-height: 1.6; font-weight: 500; letter-spacing: .04em; }
.story-body > p { color: var(--muted); font-size: 13px; line-height: 2.2; margin-top: 22px; }
.story-ticket { max-width: 420px; border: 1px solid #43577b70; border-radius: 11px; padding: 23px; background: #8ca6d80b; margin-top: 45px; }
.story-ticket > div:first-child { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px dashed #43577b70; font-size: 11px; color: var(--blue); }
.story-ticket .mono { color: var(--secondary); font-size: 11px; }
.ticket-path { display: flex; align-items: center; gap: 7px; padding: 24px 0 19px; white-space: nowrap; font-size: 11px; color: var(--blue); }
.ticket-path i { width: 5px; height: 5px; border: 1px solid var(--line-accent); border-radius: 50%; }
.ticket-path b { flex: 1; height: 1px; background: #91acdd29; margin: 0 3px; }
.story-ticket > p { color: var(--blue); font-size: 10px; }
.story-footer { display: flex; justify-content: space-between; color: var(--secondary); font-size: 11px; }
.story-footer > span { font-size: 10px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 50px; }
.login-form { width: 100%; max-width: 350px; }
.login-form > .eyebrow { font-size: 11px; }
.login-form h2 { font-size: 30px; font-weight: 600; margin-top: 12px; }
.login-form > p { font-size: 12px; color: var(--muted); margin: 13px 0 34px; }
.login-form .field { margin-bottom: 23px; }
.login-form .field > span { font-size: 12px; }
.login-form input { min-height: 46px; font-size: 13px; }
.login-submit { justify-content: space-between; width: 100%; padding: 12px 15px; margin-top: 6px; }
.login-submit > .icon { width: 17px; height: 17px; }
.login-switch { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 22px; }
.login-notice { color: var(--teal); background: var(--teal-soft); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 24px; border-radius: 7px; font-size: 12px; line-height: 1.8; }
.register-form { max-width: 420px; }
.register-form .form-grid { gap: 14px; }
.register-form .field { margin-bottom: 18px; }
.register-form > p { line-height: 1.8; margin-bottom: 27px; }
.demo-accounts { margin-top: 35px; padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }
.demo-accounts > strong { display: block; margin-bottom: 14px; font-size: 11px; font-weight: 400; color: var(--secondary); }
.demo-accounts > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 9px; }
.demo-accounts button { font-size: 10px; padding: 4px 8px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.demo-accounts code { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.demo-accounts small { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; line-height: 1.9; }

/* Adapt the roster rather than shrinking its type. */
@media (min-width: 1800px) {
  .dispatch-layout { grid-template-columns: minmax(0,1fr) 310px; gap: 26px; }
  .member-grid { grid-template-columns: minmax(180px,1.8fr) 1fr 1.2fr 1fr 1.2fr 108px; }
}
@media (max-width: 1360px) {
  .dispatch-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 18px; }
  .quick-panel { padding-left: 16px; padding-right: 16px; }
  .team-grid { gap: 20px; }
  .page-content { padding-left: 26px; padding-right: 26px; }
  .package-card { padding: 20px; }
  .package-prices strong { font-size: 24px; }
}
@media (max-width: 1270px) {
  .dispatch-aside { display: none; }
  .dispatch-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 1100px) {
  .sidebar { width: 198px; padding-left: 12px; padding-right: 12px; }
  .main { margin-left: 198px; }
  .sidebar .club-brand { gap: 10px; padding-left: 1px; padding-right: 1px; }
  .sidebar .club-mark { width: 47px; height: 47px; }
  .sidebar .club-wordmark > strong { font-size: 16px; letter-spacing: 1px; }
  .nav-item { font-size: 12px; padding-left: 12px; }
  .page-content, .topbar { padding-left: 22px; padding-right: 22px; }
  .metrics { gap: 11px; }
  .metric { padding: 18px; min-height: 110px; }
  .metric > strong { font-size: 25px; }
  .metric > small { font-size: 10px; }
  .member-grid { grid-template-columns: minmax(140px,1.6fr) minmax(72px,.8fr) minmax(96px,1fr) minmax(78px,.9fr) minmax(106px,1fr) 98px; padding-left: 18px; padding-right: 18px; gap: 6px; }
  .team-top { padding: 18px; }
  .team-price-line { margin-left: 18px; margin-right: 18px; }
  .team-footer { padding-left: 18px; padding-right: 18px; }
  .package-grid { gap: 13px; }
  .package-card { padding: 18px; }
  .package-card h2 { font-size: 14px; }
  .package-prices { gap: 10px; }
  .package-prices strong { font-size: 21px; }
  .today { display: none; }
  .login-story { padding: 40px; }
  .story-body h1 { font-size: 34px; }
  .story-body > p { font-size: 11px; }
  .ticket-path { font-size: 10px; }
}
@media (max-width: 960px) {
  .sidebar { width: 72px; padding-left: 10px; padding-right: 10px; }
  .sidebar .club-brand { padding: 0 0 20px; margin-bottom: 0; justify-content: center; }
  .sidebar .club-mark { width: 43px; height: 43px; }
  .sidebar .club-wordmark, .nav-caption, .server-card, .profile > span:not(.avatar), .profile > .icon { display: none; }
  .sidebar nav { margin-top: 33px; gap: 8px; }
  .nav-item { justify-content: center; padding: 0; height: 44px; position: relative; }
  .nav-item > span, .nav-item > b { display: none; }
  .nav-item > .icon { width: 20px; height: 20px; }
  .profile { padding: 9px 0; justify-content: center; border: 0; }
  .main { margin-left: 72px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card h2 { margin-top: 15px; font-size: 17px; }
  .package-prices { justify-content: flex-start; gap: 60px; }
  .package-prices strong { font-size: 28px; }
  .package-card > .btn { width: auto; }
  .login-story { padding: 35px; }
  .story-body h1 { font-size: 29px; }
  .login-form-wrap { padding: 35px; }
  .story-ticket { padding: 17px; }
  .ticket-path { gap: 5px; font-size: 9px; }
}
@media (max-width: 820px) {
  .page-content, .topbar { padding-left: 19px; padding-right: 19px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .metric { min-height: 107px; padding: 17px 20px; }
  .live-sync { display: none; }
  .roster-head { display: none; }
  .member-row { grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 12px; row-gap: 20px; padding: 17px 20px; }
  .member-main { grid-column: 1/4; }
  .member-controls { grid-column: 4; justify-content: flex-end; }
  .roster-cell { grid-row: 2; }
  .roster-cell > label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 1px; }
  .roster-cell > small { font-size: 10px; }
  .team-price-line .car-billing-label { display: none; }
  .staff-caption { display: none; }
  .panel-toolbar { flex-wrap: wrap; gap: 13px; padding: 18px; }
  .panel-toolbar > div:has(h2) { flex: 1; min-width: 180px; }
  .table-filters { flex: 1; width: 100%; min-width: 280px; }
  .table-filters .searchbox { max-width: none; }
  .login-layout { grid-template-columns: 42% 58%; }
  .login-story { padding: 30px 25px; }
  .story-body h1 { font-size: 28px; }
  .story-body > p { font-size: 10px; }
  .story-ticket { display: none; }
  .story-footer > span { display: none; }
}
@media (max-width: 600px) {
  .sidebar { position: sticky; top: 0; inset: 0 0 auto; width: 100%; display: block; padding: 9px 11px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--sidebar); }
  .sidebar > .club-brand, .sidebar-bottom { display: none; }
  .sidebar nav { margin: 0; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .nav-item { gap: 7px; height: 36px; padding: 7px 11px; flex-shrink: 0; }
  .nav-item > span { display: block; font-size: 11px; }
  .nav-item > .icon { width: 16px; height: 16px; }
  .main { margin: 0; }
  .topbar { height: 52px; padding: 0 16px; }
  .breadcrumb { gap: 8px; font-size: 10px; }
  .topbar-right { gap: 9px; }
  .trial-tag { display: none; }
  .top-account { padding-left: 8px; }
  .top-account > span:not(.avatar) { display: none; }
  .notification-button { width: 27px; height: 29px; padding: 5px; }
  .page-content { padding: 20px 14px 10px; }
  .page-heading { margin-bottom: 20px; gap: 10px; align-items: center; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { max-width: 215px; font-size: 10px; margin-top: 7px; line-height: 1.8; }
  .heading-actions { gap: 0; }
  .heading-actions > .btn { padding: 8px 11px; font-size: 11px; min-height: 37px; }
  .heading-actions > .btn > .icon { width: 15px; height: 15px; }
  .metrics { gap: 10px; margin-bottom: 20px; }
  .metric { padding: 15px 16px; min-height: 103px; }
  .metric > span { font-size: 11px; }
  .metric > strong { font-size: 25px; margin: 6px 0; }
  .metric > strong > em { font-size: 10px; }
  .metric > small { font-size: 10px; }
  .workspace-toolbar { min-height: 42px; margin-bottom: 13px; }
  .team-tabs { height: 42px; gap: 21px; }
  .team-tabs > button { font-size: 12px; padding-bottom: 11px; gap: 5px; }
  .team-tabs > button > span { font-size: 10px; }
  .list-hint { display: none; }
  .team-top { gap: 8px; padding: 16px 16px 13px; }
  .team-id { gap: 9px; }
  .car-number { width: 34px; height: 37px; border-radius: 8px; font-size: 17px; }
  .team-id h2 { font-size: 14px; max-width: 150px; }
  .team-id p { font-size: 10px; }
  .team-status { gap: 7px; }
  .team-status > .capacity { display: none; }
  .team-status > .pill { font-size: 10px; padding: 2px 5px; }
  .team-status > .icon-btn { width: 25px; height: 28px; padding: 4px; }
  .team-status > .icon-btn > .icon { width: 15px; height: 15px; }
  .team-price-line { margin: 0 16px; padding-bottom: 14px; gap: 10px; font-size: 10px; }
  .team-price-line strong { font-size: 11px; }
  .team-price-line small { font-size: 9px; }
  .member-row { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 15px 16px; row-gap: 18px; column-gap: 8px; border-top: 1px solid var(--line); border-bottom: 0; }
  .member-main { grid-column: 1/3; gap: 8px; }
  .member-main strong { font-size: 12px; }
  .member-main .pill { font-size: 8px; padding: 1px 4px; }
  .member-main > .avatar { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }
  .yy { font-size: 10px; margin-top: 3px; }
  .member-controls { grid-column: 3/5; gap: 5px; }
  .member-controls > .btn { min-width: 66px; min-height: 32px; padding: 6px 10px; font-size: 11px; }
  .member-controls > .remove-member { width: 23px; }
  .roster-cell { gap: 4px; }
  .roster-cell > label { font-size: 10px; }
  .roster-cell > strong { font-size: 14px; }
  .member-time > strong { font-size: 14px; }
  .roster-cell > small { font-size: 9px; }
  .team-footer { flex-wrap: wrap; gap: 13px; padding: 12px 16px; }
  .staff-person > strong { font-size: 10px; }
  .staff-person > small { font-size: 9px; }
  .staff-person > .avatar { width: 21px; height: 21px; font-size: 9px; }
  .staff-line { gap: 7px; }
  .team-footer-actions { margin-left: auto; gap: 6px; }
  .team-footer-actions .btn { min-height: 31px; font-size: 10px; padding: 5px 8px; }
  .team-footer-actions .icon { width: 12px; height: 12px; }
  .empty-car { min-height: 108px; padding: 20px 16px; gap: 11px; }
  .empty-car strong { font-size: 12px; }
  .empty-car p { font-size: 10px; line-height: 1.9; }
  .empty-car-icon { width: 36px; height: 36px; }
  .empty-car-icon .icon { width: 19px; height: 19px; }
  .rule-note { font-size: 10px; padding-top: 15px; }
  .page-footer { font-size: 9px; flex-wrap: wrap; gap: 5px; margin-top: 20px; }
  .balance-alert { font-size: 10px; padding: 11px 12px; gap: 8px; align-items: flex-start; }
  .balance-alert > .icon { width: 15px; height: 15px; margin-top: 3px; }
  .balance-alert > .text-btn { font-size: 10px; }
  .panel-toolbar { padding: 16px; gap: 12px; }
  .panel-toolbar h2 { font-size: 14px; }
  .panel-toolbar p { font-size: 10px; }
  .panel-toolbar .searchbox { max-width: none; }
  .panel-toolbar > .subtle { font-size: 10px; }
  .table-caption { padding-left: 16px; font-size: 10px; }
  th, td { padding-left: 16px; padding-right: 16px; }
  .segmented > button { padding: 6px 10px; font-size: 11px; }
  .earnings-note { padding: 15px; gap: 9px; }
  .earnings-note strong { font-size: 11px; }
  .earnings-note p { font-size: 10px; }
  .pricing-intro { font-size: 11px; }
  .package-grid { gap: 14px; }
  .package-card { padding: 19px; }
  .grade-item { padding: 17px; gap: 13px; }
  .grade-number { font-size: 13px; }
  .grade-copy { width: 92px; }
  .grade-item strong { font-size: 12px; }
  .grade-item small { font-size: 10px; }
  .grade-rates { gap: 14px; }
  .grade-rates > span { min-width: 44px; }
  .grade-rates b { font-size: 18px; }
  .grade-bar { display: none; }
  .grade-rate { min-width: 45px; font-size: 20px; margin-left: 0; }
  .grade-rate small { font-size: 11px; }
  .panel-footnote { font-size: 10px; padding: 14px 17px; line-height: 1.9; }
  .audit-list { padding: 0 17px; }
  .audit-row { gap: 11px; }
  .audit-row strong { font-size: 11px; }
  .audit-row p { font-size: 10px; }
  .modal-header { padding: 21px 20px 18px; }
  .modal-header h2 { font-size: 18px; }
  .modal-header p { font-size: 10px; }
  .modal-header + form, .form-body { padding: 21px 20px 0; }
  .form-body { padding-bottom: 21px; }
  .account-settings { --account-gutter: 20px; }
  .account-password-form { padding-top: 21px; padding-bottom: 21px; }
  .account-actions { gap: 10px; }
  .account-session { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .form-grid { gap: 12px; }
  .field > span { font-size: 11px; }
  .field input, .field select, .field textarea { font-size: 12px; }
  .permission-grid { gap: 6px; }
  .permission-check { padding: 10px 8px; gap: 6px; font-size: 10px; }
  .permission-title > .text-btn { font-size: 10px; }
  .staff-input > select { font-size: 10px; }
  .input-suffix { width: 72px; }
  .notification-list, .order-detail { padding-left: 20px; padding-right: 20px; }
  .notification-item p { font-size: 11px; }
  .order-detail dd { font-size: 10px; }
  .login-layout { display: block; }
  .login-story { padding: 24px; }
  .club-brand--login { gap: 13px; }
  .club-brand--login .club-mark { width: 52px; height: 52px; }
  .club-brand--login .club-wordmark { gap: 9px; }
  .club-brand--login .club-wordmark > strong { font-size: 20px; letter-spacing: 2px; }
  .club-brand--login .club-wordmark > small { font-size: 8px; letter-spacing: 2px; }
  .story-body { padding: 26px 0 4px; }
  .story-body > .eyebrow { display: none; }
  .story-body h1 { font-size: 24px; line-height: 1.5; }
  .story-body h1 > br { display: none; }
  .story-body > p { margin-top: 12px; font-size: 10px; line-height: 1.9; }
  .story-footer { display: none; }
  .login-form-wrap { padding: 35px 27px; }
  .login-form { max-width: 380px; }
  .login-form > .eyebrow { display: none; }
  .login-form h2 { margin-top: 0; font-size: 25px; }
  .login-form > p { font-size: 11px; margin: 11px 0 27px; }
  .demo-accounts { margin-top: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
