/* SMENA taxi identity, based on the agreed light/yellow reference. */
:root, :root[data-theme="light"] {
  --bg: #fafafa; --bg-top: rgba(250,250,250,.94);
  /* Smoke-grey secondary blocks remain distinct from the unchanged page background. */
  --card: #dadddf; --card-2: #caced1; --line: #bbc1c6;
  --text: #1f2937; --muted: #6b7280;
  --accent: #ffc400; --accent-soft: #fff5cf;
  --green: #16803d; --green-soft: #e7f8eb;
  --red: #dc2626; --red-soft: #fef0ef;
  --amber: #a85a00; --amber-soft: #fff4d7; --purple: #8b5cf6;
  --chart-muted: #e5e7eb;
  --shadow: 0 5px 18px rgba(24,27,31,.055), 0 2px 4px rgba(24,27,31,.035);
  --radius: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121416; --bg-top: rgba(18,20,22,.94); --card: #252729;
  --card-2: #303335; --line: #414447; --text: #f5f6f7; --muted: #a4aab3;
  --accent: #ffc400; --accent-soft: #3b3216; --green: #4ade80;
  --green-soft: #173725; --red: #fb7185; --red-soft: #3a2028;
  --chart-muted: #3a4048; --shadow: none; color-scheme: dark;
}
body { font-size:15px; letter-spacing:-.015em; }
#app { max-width:640px; }
.top { padding:22px 20px 0; }
.brand { gap:10px; }
.logo { width:45px; height:45px; border-radius:13px; color:#ffc400;
  background:#17191b; box-shadow:0 3px 8px #0001; flex-shrink:0; }
.logo { box-sizing:border-box; padding:0; line-height:0; }
.logo img { display:block; width:100%; height:100%; object-fit:contain; border-radius:inherit; }
.hello { font-size:24px; font-weight:900; letter-spacing:-.055em; color:var(--text); }
.range { font-size:11px; margin-top:0; }
.page-title { margin:24px 0 14px; font-size:27px; line-height:1.15; letter-spacing:-.045em; font-weight:800; }
.chips { padding:4px; gap:2px; background:var(--card-2); border-radius:18px; margin:0; }
.chip { padding:10px 12px; flex:1 0 auto; background:transparent; color:var(--text); font-size:12px; }
.chip.active { background:var(--accent); color:#17191b; box-shadow:0 2px 5px #c893001a; }
.custom button, .btn, .seg-btn.active { background:var(--accent); color:#17191b; }
.custom input, .qa-row input { color-scheme:light; }
:root[data-theme="dark"] .custom input { color-scheme:dark; }
main { padding:18px 20px calc(112px + env(safe-area-inset-bottom)); }
.view { gap:16px; }
.car-view > .btn { margin-top:0; justify-self:start; }
.card { padding:20px; border:1px solid var(--line); }
.card h3 { color:var(--text); font-weight:750; font-size:15px; }
.kpis, .duo { gap:12px; }
.kpi { border-radius:21px; padding:16px; }
.kpi .k-val { font-size:23px; font-weight:800; letter-spacing:-.04em; }
.kpi .k-lbl { font-size:12px; }
.kpi .k-sub { font-size:11px; line-height:1.4; }
.hero { background:var(--card); border-radius:27px; padding:23px; }
.hero .big { font-size:43px; color:var(--text); letter-spacing:-.055em; }
.hero .big.neg { color:var(--red); }
.home-hero, .live-hero {
  background:radial-gradient(ellipse at 85% 95%, #fff7bb 0%, transparent 65%),
    linear-gradient(125deg,#ffe36d,#ffd126 70%,#ffcd0a);
  color:#17191b; border-color:#ffe575; overflow:hidden;
}
.home-hero .lbl, .home-hero .hero-sub, .live-hero .lbl, .live-hero .hero-sub,
.live-hero .live-net-lbl, .live-hero .m-lbl { color:#4c452e; }
.live-hero .live-net, .live-hero .timer, .live-hero .m-val { color:#17191b; }
.live-hero .live-net.neg { color:#a41b20; }
.live-hero .mini { background:#fff6; border:1px solid #fff4; }
.live-hero .pause-note { color:#51472e; }
.live-hero .pause-btn { background:#fff; color:#17191b; box-shadow:0 3px 8px #ad800016; }
.live-hero .pause-btn.paused { background:#212121; color:#fff; }
.live-hero .live-top { flex-wrap:wrap; }
.live-net { font-size:46px; letter-spacing:-.045em; }
.timer { font-size:31px; }
.home-title { font-size:32px; line-height:1.08; letter-spacing:-.055em; margin:27px 0 14px; }
.home-hero .pill { background:#fff9; color:#48412e; }
.mini-grid { gap:8px; }
.mini .m-val { font-size:17px; font-weight:800; }
.mini { padding:10px 7px; }
.mini .m-val { font-size:clamp(12px,3.5vw,16px); letter-spacing:-.045em; white-space:nowrap; }
.hero-top { flex-wrap:wrap; align-items:flex-start; }
.hero-top .lbl { white-space:nowrap; }
.delta { font-size:11px; }
.live-hero .mini-grid { grid-template-columns:1fr 1fr; }
:root .live-hero .mini { background:none; border:0; padding:0; }
.live-hero .mini + .mini { border-left:1px solid #9d81002b; padding-left:20px; }
.live-hero .mini .m-val { font-size:23px; }
.live-hero .big { font-size:46px; margin:11px 0 25px; color:#17191b; }
.live-hero .big.neg { color:#a41b20; }
.live-hero .live-net-lbl { font-size:14px; margin-top:20px; }
.live-metrics .k-val { font-size:23px; white-space:nowrap; }
:root .shift-action .pause-btn { margin:0; background:var(--accent); color:#17191b; min-height:54px; }
:root .shift-action .pause-btn.paused { background:var(--text); color:var(--card); }
.hero:not(.live-hero) .mini { background:var(--card-2); }
.after-tax { background:var(--accent-soft); }
.delta.up { background:var(--green-soft); }
.back { color:var(--text); background:var(--card-2); }
.qa-submit { color:#17191b; background:var(--accent); }
.chev { color:var(--muted); }
.car-icon { background:var(--accent-soft); color:var(--amber); }
.car-icon svg { width:42px; height:42px; }
.car-name { font-size:25px; letter-spacing:-.04em; }
.track { background:var(--chart-muted); }
.note { font-size:12px; line-height:1.5; }
.menu-card { display:flex; align-items:center; gap:15px; padding:20px;
  border:1px solid var(--line); border-radius:24px; background:var(--card);
  color:var(--text); box-shadow:var(--shadow); width:100%; text-align:left; cursor:pointer; font:inherit; }
.menu-card > svg { width:29px; height:29px; color:#cf9500; flex-shrink:0; }
.menu-card b { display:block; font-size:16px; letter-spacing:-.02em; }
.menu-card small { display:block; font-size:12px; color:var(--muted); margin-top:5px; }
.menu-arrow { margin-left:auto; font-size:25px; color:var(--muted); }
.brand-note p { margin:5px 0 15px; color:var(--muted); }
.tabs-bar { position:fixed; top:auto; bottom:0; left:50%; transform:translateX(-50%);
  width:min(100%,640px); z-index:50; margin:0; background:var(--bg-top);
  border-top:1px solid var(--line); padding:8px 10px calc(9px + env(safe-area-inset-bottom));
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); }
.tabs-bar::after, .tabs::after { display:none; }
.tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; padding:0; overflow:visible; border:0; }
.nav-item { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; padding:9px 1px; border-radius:16px; font-size:10px; color:var(--muted); min-height:58px; }
.nav-item svg { width:23px; height:23px; }
.nav-item.active { background:linear-gradient(135deg,#ffe67b,#ffd331); color:#17191b; }
.tab.active::after { display:none; }
.live-badge { font-size:11px; padding:7px 9px; }
.demo-badge { color:#775700; background:#fff0af; font-size:9px; padding:5px 7px; }
/* A shift has its own visual hierarchy: result, journey, then money movement. */
.shift-detail .shift-result {
  background:radial-gradient(ellipse at 100% 0%,#424242 0%,transparent 65%),#242424;
  color:#fff; border:1px solid #3a3a3a; box-shadow:0 10px 24px #00000020;
}
.shift-result .lbl,.shift-result .hero-sub,.shift-result .m-lbl { color:#d1d1d1; }
.shift-detail .shift-result .big { color:#fff; }
.shift-detail .shift-result .big.neg { color:#ff9e9e; }
.shift-result .pill { background:#ffffff16; color:#e5e5e5; }
.shift-detail .shift-result .mini { background:#ffffff0b; border:1px solid #ffffff12; }
.shift-result .m-val { color:#fff; }
.shift-result .mini:first-child .m-val { color:#8de4b4; }
.shift-result .mini:nth-child(2) .m-val { color:#ffb4a5; }
.shift-metrics .kpi { background:var(--card); border:1px solid var(--line); box-shadow:none; }
.shift-metrics .kpi .k-val { color:var(--text); }
.shift-metrics .kpi:nth-child(2) { background:var(--accent-soft); border-color:var(--accent-soft); }
.shift-detail .income-panel { border-color:#d5ebdf; border-top:4px solid #75bc93; }
.shift-detail .expense-panel { border-color:var(--red-soft); border-top:4px solid var(--red); }
.income-panel h3,.expense-panel h3 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.section-symbol { display:inline-grid; place-items:center; width:29px; height:29px; border-radius:10px;
  background:#e8f5ed; color:#216c4a; font-size:21px; }
.expense-panel .section-symbol { background:var(--red-soft); color:var(--red); }
.section-total { margin-left:auto; font-size:16px; }
.income-panel .section-total { color:#216c4a; }
.expense-panel .section-total { color:var(--red); }
.shift-detail .fuel-panel { background:var(--card-2); border-color:var(--line); }
.shift-detail .expense-share { background:var(--card); border-color:var(--line); }
.expense-share .track { background:var(--red-soft); }
.shift-detail .op { column-gap:7px; }
.shift-detail .op b { font-size:13px; white-space:nowrap; }
.shift-detail .op > div { min-width:0; overflow-wrap:anywhere; }
:root[data-theme="dark"] .shift-metrics .kpi { background:var(--card); border-color:var(--line); }
:root[data-theme="dark"] .shift-metrics .kpi:nth-child(2) { background:var(--accent-soft); }


:root[data-theme="dark"] .income-panel .section-total { color:#8de4b4; }
:root[data-theme="dark"] .expense-panel .section-total { color:#ffb4a5; }
.donut-wrap { grid-template-columns:120px 1fr; gap:15px; }
.ai-entry { background:var(--accent-soft); border-color:transparent; }
.ai-entry > svg { color:var(--text); }
.ai-intro { background:#242424; color:#fff; border-color:#3a3a3a; }
.ai-intro h2 { font-size:26px; line-height:1.15; margin:18px 0 10px; letter-spacing:-.04em; }
.ai-intro p { font-size:14px; line-height:1.5; opacity:.85; }
.ai-intro .pill { background:var(--accent); color:#242424; }
.ai-scope { border-top:1px solid #ffffff30; padding-top:14px; font-size:12px; }
.ai-messages { display:grid; gap:14px; }
.ai-message { padding:18px; border-radius:22px; border:1px solid var(--line); overflow-wrap:anywhere; }
.ai-message > b { display:block; margin-bottom:9px; font-size:12px; }
.ai-message > div { white-space:pre-wrap; line-height:1.6; font-size:14px; }
.ai-user { background:var(--accent-soft); margin-left:24px; }
.ai-answer { background:var(--card); margin-right:12px; }
.ai-prompts { display:grid; gap:10px; }
.ai-prompts .back { text-align:left; width:100%; line-height:1.5; }
.ai-form { display:grid; gap:14px; }
.ai-form > label:first-child { font-weight:700; }
.ai-form textarea { background:var(--card-2); color:var(--text); width:100%; box-sizing:border-box;
  border:1px solid var(--line); padding:14px; border-radius:15px; font:inherit; font-size:16px; resize:vertical; }
.ai-consent { display:flex; gap:10px; align-items:flex-start; font-size:12px; line-height:1.5; color:var(--muted); }
.ai-consent input { margin-top:3px; width:18px; height:18px; flex-shrink:0; accent-color:#d8a500; }
.ai-form .btn { margin:0; width:100%; }
.ai-form .note { margin:0; }
.ai-form button:disabled { opacity:.45; cursor:default; }
.ai-toolbar { display:flex; align-items:center; gap:10px; justify-content:space-between; }
.ai-toolbar h2 { margin:0; font-size:22px; }
.ai-chat-head { padding:16px; }
.ai-chat-head .note { margin:5px 0 0; }
.ai-chat-icon { display:grid; place-items:center; background:var(--accent); color:#202428;
  border-radius:13px; width:42px; height:42px; flex-shrink:0; }
.ai-chat-icon svg { width:25px; height:25px; }
.ai-chat-head .ai-toolbar > div { flex:1; min-width:0; }
.ai-chat-actions { margin:16px 0 12px; flex-wrap:wrap; justify-content:flex-start; }
.ai-chat-actions .back { font-size:12px; padding:9px 10px; }
.ai-history-item b { overflow-wrap:anywhere; }
.ai-message-error { border-color:var(--red); }
.ai-window-open { overflow:hidden; }
.ai-window-open .top, .ai-window-open .tabs-bar { display:none; }
.ai-window-open main { padding:0; }
.ai-window {
  position:fixed; left:50%; top:var(--ai-window-top,0); transform:translateX(-50%);
  width:min(100%,640px); height:var(--ai-window-height,100dvh); z-index:100;
  display:flex; flex-direction:column; overflow:hidden; background:var(--bg);
}
.ai-window-header {
  display:flex; align-items:center; gap:10px; flex-shrink:0;
  padding:calc(12px + env(safe-area-inset-top)) 14px 12px 8px;
  background:#292d31; color:#f7f8f9; border-bottom:3px solid #ffc400;
}
.ai-icon-button { display:inline-grid; place-items:center; width:44px; height:44px;
  padding:10px; border:0; border-radius:13px; background:transparent; color:inherit;
  flex-shrink:0; cursor:pointer; }
.ai-icon-button svg { width:24px; height:24px; }
.ai-icon-button:disabled { opacity:.4; cursor:default; }
.ai-chat-avatar { width:38px; height:38px; padding:9px; background:#ffc400; color:#202428;
  display:grid; place-items:center; border-radius:12px; flex-shrink:0; }
.ai-chat-avatar svg { width:22px; height:22px; }
.ai-window-title { flex:1; min-width:0; }
.ai-window-title b { display:block; font-size:15px; line-height:1.35; }
.ai-window-title small { display:block; color:#c5cbd0; font-size:11px; margin-top:3px; }
.ai-header-action { background:#ffffff10; }
.ai-window-messages { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch; padding:22px 16px; display:flex; flex-direction:column; gap:14px; }
.ai-window .ai-message { width:fit-content; max-width:90%; padding:13px 16px;
  flex-shrink:0; border-radius:19px; }
.ai-window .ai-message > b { font-size:10px; margin-bottom:5px; opacity:.7; }
.ai-window .ai-message > div { line-height:1.55; font-size:14px; }
.ai-window .ai-user { align-self:flex-end; margin:0; background:var(--accent-soft); border-bottom-right-radius:5px; }
.ai-window .ai-answer { align-self:flex-start; margin:0; border-bottom-left-radius:5px; }
.ai-connection-note { font-size:11px; line-height:1.5; color:var(--muted); text-align:center; margin:0 0 10px; }
.ai-composer { flex-shrink:0; padding:10px 14px calc(8px + env(safe-area-inset-bottom));
  background:var(--bg); border-top:1px solid var(--line); }
.ai-composer-row { display:flex; align-items:flex-end; gap:10px; }
.ai-composer textarea { display:block; flex:1; min-width:0; min-height:46px; max-height:120px;
  border:1px solid var(--line); border-radius:22px; background:var(--card); color:var(--text);
  padding:12px 16px; font:16px/1.4 system-ui,sans-serif; resize:none; }
.ai-send { display:grid; place-items:center; width:46px; height:46px; flex-shrink:0;
  border:0; border-radius:50%; background:#ffc400; color:#17191b; cursor:pointer; }
.ai-send svg { width:24px; height:24px; }
.ai-send:disabled { opacity:.4; cursor:default; }
.ai-chat-privacy { margin:0 0 8px; font-size:11px; color:var(--muted); }
.ai-chat-privacy summary { cursor:pointer; padding:3px 0; }
.ai-chat-privacy .ai-consent { padding:10px 0; max-height:150px; overflow-y:auto; }
.ai-composer-note { margin:8px 0 0; font-size:10px; text-align:center; color:var(--muted); }
.ai-composer .qa-error { margin:0 0 10px; font-size:12px; }
.ai-window-history { flex:1; overflow-y:auto; padding:18px 16px; }
.ai-history-row { display:flex; align-items:center; gap:5px; margin-bottom:12px; }
.ai-history-row .ai-history-item { flex:1; min-width:0; padding:16px; border-radius:18px; }
.ai-history-row .ai-history-item b { font-size:14px; }
.ai-history-row > .ai-icon-button { color:var(--muted); }
.ai-new-dialog { width:100%; margin:0 0 20px; min-height:48px; }
.ai-typing { display:flex; gap:5px; align-items:center; min-height:42px; }
.ai-typing > span:not(.sr-only) { width:6px; height:6px; border-radius:50%; background:var(--muted); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.donut-wrap > svg { max-width:135px; }
/* Mixed identity: graphite lead blocks, smoke-grey details, yellow surfaces only. */
.hero, .dark-panel, .ai-intro, .ai-entry {
  --text: #f7f8f9; --muted: #c5cbd0; --card: #292d31; --card-2: #3a3f44;
  --line: #52585f; --green: #8de4b4; --green-soft: #214133;
  --red: #ffb4b4; --red-soft: #4c292c;
  background:linear-gradient(135deg,#34393e,#24282c);
  color:var(--text); border:1px solid #454b51; border-top:4px solid #ffc400;
}
.hero .big, .live-hero .big, .shift-detail .shift-result .big,
.live-hero .live-net, .live-hero .timer, .live-hero .m-val { color:#f7f8f9; }
.hero .big.neg, .live-hero .big.neg, .shift-detail .shift-result .big.neg,
.live-hero .live-net.neg { color:#ffb4b4; }
.home-hero .lbl, .home-hero .hero-sub, .live-hero .lbl, .live-hero .hero-sub,
.live-hero .live-net-lbl, .live-hero .m-lbl, .live-hero .pause-note { color:#c5cbd0; }
.hero .pill, .home-hero .pill { background:#ffffff18; color:#f7f8f9; }
.hero:not(.live-hero) .mini { background:#ffffff0e; border:1px solid #ffffff15; }
.live-hero .mini + .mini { border-left-color:#ffffff26; }
.hero .after-tax { background:#ffc400; color:#17191b; }
.ai-entry > svg, .menu-card > svg {
  background:#ffc400; color:#202428; padding:7px; width:39px; height:39px; border-radius:12px;
}
.ai-entry small, .ai-entry .menu-arrow { color:#c5cbd0; }
.ai-entry { border-top-width:1px; border-left:4px solid #ffc400; }
.dark-panel .car-icon { background:#ffc400; color:#202428; }
.dark-panel h3 { color:#f7f8f9; }
.dark-panel .pill.none { background:#ffffff18; color:#f7f8f9; }
button:focus-visible, a:focus-visible { outline:3px solid #3b82f6; outline-offset:3px; }
.result-explainer { border-left:4px solid var(--accent); }
.result-explainer summary { cursor:pointer; font-weight:700; line-height:1.5; }
.result-explainer .note { margin:12px 0 0; }
.buyout-entry > span:first-child { flex:1; min-width:0; }
.buyout-entry-track { display:block; height:6px; margin-top:14px; background:var(--card-2); border-radius:10px; overflow:hidden; }
.buyout-entry-track > span { display:block; height:100%; background:#ffc400; }
.buyout-hero .buyout-remaining-label { margin:26px 0 6px; font-size:14px; color:#c5cbd0; }
.buyout-hero .big { font-size:clamp(30px,9vw,46px); margin:0 0 27px; white-space:nowrap; }
.buyout-progress-main { display:grid; grid-template-columns:minmax(0,1fr) clamp(72px,22.5vw,116px); gap:8px; align-items:center; margin:24px 0; }
.buyout-balance { min-width:0; }
.buyout-balance .buyout-remaining-label { margin:0 0 9px; font-size:clamp(11px,3.4vw,14px); }
.buyout-balance .big { font-size:clamp(30px,9vw,46px); margin:0; letter-spacing:-.055em; }
.buyout-balance .buyout-currency { font-size:.6em; margin-left:4px; letter-spacing:0; }
.buyout-progress-ring { display:flex; align-items:center; justify-content:center; }
.buyout-progress-ring svg { display:block; width:100%; height:auto; }
.buyout-progress-ring svg > circle { stroke:#ffffff24; }
.buyout-progress-ring .center-val { fill:#f7f8f9; font-size:26px!important; font-weight:800; }
.buyout-progress-heading, .buyout-total { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; }
.buyout-progress-heading { margin-bottom:10px; color:#f7f8f9; }
.buyout-track { height:11px; background:#ffffff22; border-radius:20px; overflow:hidden; }
.buyout-track > span { display:block; height:100%; background:#ffc400; border-radius:20px; }
.buyout-total { margin-top:20px; padding-top:16px; border-top:1px solid #ffffff20; color:#c5cbd0; }
.buyout-total b { color:#f7f8f9; white-space:nowrap; }
.buyout-cadence { font-size:22px; font-weight:800; margin-bottom:18px; letter-spacing:-.04em; }
.buyout-terms .stat-line { gap:15px; margin-top:12px; }
.buyout-terms .stat-line b { white-space:nowrap; }
.buyout-terms .note { margin:18px 0 0; }
.buyout-history-heading { display:flex; align-items:center; gap:10px; justify-content:space-between; }
.buyout-history-heading h2 { font-size:19px; margin:0; letter-spacing:-.03em; }
.buyout-history-heading .btn { width:auto; margin:0; padding:12px 15px; font-size:13px; white-space:nowrap; }
.buyout-payments { padding:6px 18px; }
.buyout-payment-row { display:flex; gap:12px; justify-content:space-between; align-items:center; padding:17px 0; border-bottom:1px solid var(--line); }
.buyout-payment-row:last-child { border-bottom:0; }
.buyout-payment-row b { display:block; font-size:14px; }
.buyout-payment-row small { display:block; color:var(--muted); font-size:11px; margin-top:5px; }
.buyout-payment-row strong { white-space:nowrap; font-size:17px; }
.buyout-initial { border-top:1px solid var(--line); padding:17px 0; display:grid; gap:8px; font-size:12px; color:var(--muted); }
.buyout-initial b { color:var(--text); font-size:17px; }
.buyout-payment-form { display:grid; gap:12px; }
.buyout-payment-form h3 { margin:0; }
.buyout-payment-form label { font-size:13px; font-weight:600; }
.buyout-payment-form input { width:100%; min-width:0; border:1px solid var(--line); border-radius:13px; padding:13px; background:var(--bg); color:var(--text); font:16px system-ui,sans-serif; }
.buyout-payment-form .btn { margin:0; }
.buyout-payment-form .note { margin:2px 0 6px; }
.legal-gate-open .top, .legal-gate-open .tabs-bar { display:none; }
.legal-gate { position:fixed; inset:0; z-index:200; background:var(--bg); overflow-y:auto;
  padding:calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); max-width:640px; margin:auto; }
.legal-gate-brand { padding:14px 18px; background:#ffc400; color:#17191b; border-radius:15px; font-weight:900; display:inline-block; }
.legal-gate h1 { font-size:27px; line-height:1.2; margin:24px 0 18px; }
.legal-gate p { line-height:1.6; }
.legal-gate > a { display:block; color:var(--text); padding:16px; background:var(--card); border-radius:14px; margin-top:12px; font-size:14px; text-decoration:none; }
.legal-gate > .btn { width:100%; margin:24px 0 14px; }
.legal-gate > .back { width:100%; }
.goals-heading,.goal-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.goals-heading .btn { margin:0; width:auto; padding:12px 14px; font-size:13px; }
.goal-form { display:grid; gap:12px; }
.goal-form h3 { margin:0; }
.goal-form input { padding:13px; border:1px solid var(--line); background:var(--bg); color:var(--text); border-radius:13px; width:100%; min-width:0; font:16px system-ui; }
.goal-form label { font-size:13px; font-weight:600; }
.goal-form .btn { margin:0; }
.goal-card-heading h3 { margin:0; overflow-wrap:anywhere; }
.goal-card-heading .pill { flex-shrink:0; }
.goal-amount { margin:22px 0 16px; font-size:27px; font-weight:800; letter-spacing:-.04em; overflow-wrap:anywhere; }
.goal-amount small { font-size:13px; color:var(--muted); font-weight:500; white-space:nowrap; }
.goal-track { height:10px; border-radius:10px; background:var(--card-2); overflow:hidden; }
.goal-track > span { display:block; height:100%; border-radius:10px; background:#ffc400; }
.goal-meta { margin-top:10px; font-size:12px; }
.goal-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.goal-actions .back { font-size:12px; padding:10px 12px; }
.goals-view .dark-panel h2 { margin:0 0 12px; font-size:26px; }
.goals-view .dark-panel p { line-height:1.5; }
@media(max-width:360px) {
  .top { padding:18px 14px 0; } main { padding-left:14px; padding-right:14px; }
  .hero { padding:18px; } .hero .big,.live-net { font-size:36px; }
  .mini .m-val { font-size:12px; } .chip { font-size:11px; padding:9px 7px; }
  .live-badge { display:none; }
  .after-tax { display:grid; gap:5px; font-size:12px; }
  .after-tax b { text-align:right; white-space:nowrap; }
  .donut-wrap { grid-template-columns:1fr; }
}

.goal-form .goal-auto-toggle{display:flex;align-items:flex-start;gap:12px;margin:18px 0 8px;line-height:1.45;cursor:pointer}.goal-form .goal-auto-toggle input{width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:#ffc400}.goal-auto-status{border-top:1px solid #b9bec2;margin-top:14px;padding-top:14px}.goal-auto-status>b{font-size:15px}

.member-hero h2{font-size:30px;margin:16px 0 8px;color:#fff}.member-hero p{color:#dadddf}.member-plan{display:flex;justify-content:space-between;align-items:center;width:100%;background:#ffc400;border:0;border-radius:16px;padding:16px;color:#202428;font:inherit;margin-top:20px;text-align:left;gap:12px}.member-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#caced1;color:#202428;font-size:22px;flex-shrink:0}.member-docs{display:grid;gap:14px}.member-docs a{color:inherit}.member-benefits{padding-left:20px;display:grid;gap:12px;line-height:1.5}.member-view .goal-form select{width:100%;padding:14px;border-radius:16px;border:1px solid #b9bec2;background:#fafafa;color:#202428;font:inherit;margin-bottom:16px}.member-view .goal-form input{margin-bottom:16px}.member-upsell .btn{color:#202428}

.member-icon svg{width:24px;height:24px}.member-hero .mini b,.mini-grid .mini>b{display:block;margin-top:6px}

.command-view .hero h2{font-size:30px;margin:16px 0 8px;color:#fff}.command-view .hero p{color:#dadddf;line-height:1.5}.command-view textarea{width:100%;box-sizing:border-box;background:#fafafa;color:#202428;border:1px solid #b9bec2;border-radius:16px;padding:14px;font:inherit;resize:vertical;margin-bottom:14px}.command-preview{border-top:4px solid #ffc400}.command-transcript{padding:14px;background:#caced1;border-radius:14px;overflow-wrap:anywhere}.command-view .goal-actions{flex-wrap:wrap}

.maintenance-item{padding:16px 0;border-bottom:1px solid #b8bdc1}.maintenance-item:last-child{border-bottom:0}.maintenance-item p{overflow-wrap:anywhere}.goal-form input[type=checkbox]{width:auto}.stat-line b{overflow-wrap:anywhere;text-align:right}.referral-link{width:100%;box-sizing:border-box}

.goal-form select{width:100%;min-height:48px;padding:12px 14px;border:1px solid #c0c5c9;border-radius:14px;background:#f7f8f8;color:inherit;font:inherit;box-sizing:border-box}

/* Personal calendar: graphite, warm yellow selection, restrained status markers. */
.calendar-hero{border-top:4px solid #ffc400}.calendar-hero h2{font-size:30px;margin:14px 0 8px}.calendar-month{padding:18px 12px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-toolbar h3{font-size:19px;text-transform:capitalize;text-align:center;margin:0}.calendar-arrow{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:14px;background:#c5cbd0;color:#202428;font-size:30px;cursor:pointer}.calendar-controls{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:14px 0 18px}.calendar-controls input{min-width:0;max-width:150px;min-height:38px;border:1px solid #b5bbc0;border-radius:12px;padding:6px;background:#f5f6f6;font:inherit;font-size:12px}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-weekdays{margin-bottom:8px;text-align:center;font-size:11px;font-weight:650;color:#626a72}.calendar-cell{border:1px solid transparent;border-radius:13px;background:#f6f7f7;min-height:67px;min-width:0;padding:7px 2px 4px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#202428;cursor:pointer}.calendar-cell b{font-size:16px}.calendar-cell small{font-size:8px;max-width:100%;overflow:hidden;white-space:nowrap}.calendar-cell.future{background:#e2e5e7}.calendar-cell.today{border-color:#7a8289}.calendar-cell.selected{background:#ffce21;color:#15191d;border-color:#e6b500;box-shadow:0 3px 12px #b68b1426}.calendar-dots{display:flex;justify-content:center;align-items:center;gap:2px;min-height:7px;flex-wrap:wrap}.calendar-dots i,.calendar-legend i{width:5px;height:5px;display:inline-block;border-radius:50%}.dot-shift{background:#e7af00}.calendar-cell.selected .dot-shift{background:#252b30}.dot-expense{background:#c94149}.dot-plan{background:#626b73}.dot-note{background:#26834b}.dot-maintenance{background:#363e45;border-radius:1px!important}.calendar-legend{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px;font-size:10px;color:#5c656d}.calendar-legend span{display:flex;align-items:center;gap:4px}.calendar-month>.note{font-size:10px;margin-top:12px}.calendar-day-head h2{text-transform:capitalize;font-size:22px;margin:12px 0 18px}.calendar-day-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.calendar-day-kpis div{display:grid;gap:7px}.calendar-day-kpis small{font-size:10px;color:#626b73}.calendar-day-kpis b{font-size:15px;overflow-wrap:anywhere}.calendar-event{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid #bbc1c6}.calendar-event:last-child{border-bottom:0}.calendar-event>div{min-width:0;flex:1}.calendar-event b,.calendar-event p{overflow-wrap:anywhere}.calendar-event small{display:block;color:#687179;font-size:11px;margin-top:6px}.calendar-event p{font-size:13px}.calendar-event strong{display:block;margin-top:8px}.calendar-event-icon{background:#f5d762;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;flex:0 0 30px;font-size:18px}.calendar-cancelled{opacity:.55}.calendar-shift{display:flex;justify-content:space-between;gap:12px;text-align:left;width:100%;background:#edf0f1;border:1px solid #b9c0c5;border-radius:16px;padding:15px;color:inherit;font:inherit;margin-top:10px;cursor:pointer}.calendar-shift small,.calendar-transaction small{display:block;font-size:11px;color:#687179;margin-top:6px}.calendar-shift>span:last-child{text-align:right;flex-shrink:0}.calendar-transaction{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #bdc3c7}.calendar-transaction>span{min-width:0;overflow-wrap:anywhere}.calendar-transaction>b{white-space:nowrap}.calendar-check{display:flex!important;align-items:flex-start;gap:10px;font-weight:500!important;line-height:1.5}.calendar-check input{width:19px!important;min-height:19px!important;flex:0 0 19px;margin-top:2px}.calendar-form textarea{box-sizing:border-box;max-width:100%;width:100%;border:1px solid #c0c5c9;background:#f7f8f8;border-radius:14px;padding:12px;font:inherit}

.calendar-intro{margin:0 4px;color:#626b73;font-size:12px}.calendar-cell{min-height:55px}.calendar-month{padding-top:14px}.calendar-event select{width:100%;min-height:42px;border-radius:12px;border:1px solid #b9c0c5;background:#f7f8f8;color:inherit;padding:8px;box-sizing:border-box;font:inherit;font-size:12px}

.calendar-day-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.calendar-day-actions>.btn{width:100%;height:48px;min-height:48px;padding:12px 10px;border-radius:16px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1.2;white-space:nowrap}.calendar-day-actions>.calendar-note-button{background:#c6ccd1;color:#202428}.dot-obligation{background:#596169;transform:rotate(45deg);border-radius:1px!important}
/* Full Mini App settings use the same graphite, grey and yellow palette. */
.settings-view{display:grid;gap:14px}
.settings-view form h2{margin-top:0}
.settings-view fieldset{border:0;padding:0;margin:0;min-width:0}
.settings-view fieldset:disabled{opacity:.65}
.settings-field{display:flex;flex-direction:column;gap:8px;margin:16px 0;min-width:0}
.settings-field>span{font-size:14px;font-weight:600}
.settings-field input,.settings-field select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;border:1px solid #b5b9bd;border-radius:14px;padding:12px;background:#f5f5f3;color:#202833;font:inherit;font-size:16px}
.settings-field input:focus,.settings-field select:focus{outline:2px solid #ffc400;outline-offset:2px}
.settings-price-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.settings-price-grid .settings-field{margin:8px 0}
.settings-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #bfc2c5;cursor:pointer}
.settings-toggle span{display:grid;gap:6px}
.settings-toggle b{font-size:15px}
.settings-toggle small{font-size:13px;line-height:1.5;color:#646b74}
.settings-toggle input{flex-shrink:0;width:24px;height:24px;accent-color:#ffc400}
.settings-sub{padding:16px 0;border-top:1px solid #bfc2c5}
.settings-save{width:100%;margin-top:22px;min-height:50px}
.settings-notice{background:#e0ebdf;color:#245331;padding:14px 16px;border-radius:14px}
.settings-car-list{display:grid;gap:10px;margin:16px 0}
.settings-car{display:grid;gap:5px;text-align:left;padding:14px;border-radius:14px;border:1px solid #b5b9bd;background:#edf0ef;color:#202833;font:inherit}
.settings-car.selected{border:2px solid #ffc400;background:#f3f0dd}
.settings-car small{color:#646b74}
.settings-view .menu-card{width:100%;box-sizing:border-box}
@media(max-width:350px){.settings-price-grid{grid-template-columns:minmax(0,1fr)}}
.cabinet-view{gap:18px}
.cabinet-view button{font:inherit;cursor:pointer;text-align:left;color:inherit}
.cabinet-view button:focus-visible,.cabinet-documents summary:focus-visible{outline:3px solid #c49100;outline-offset:4px}
.cabinet-identity{display:flex;align-items:center;gap:12px;padding:0 0 2px;min-width:0}
.cabinet-avatar{width:48px;height:48px;border-radius:50%;background:#ffcf24;color:#202428;display:grid;place-items:center;font-size:24px;font-weight:800;flex-shrink:0}
.cabinet-person{flex:1;min-width:0}.cabinet-person h2{margin:0 0 7px;font-size:23px;line-height:1.15;overflow-wrap:anywhere;letter-spacing:-.035em}
.cabinet-person-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:12px;color:var(--muted)}
.cabinet-view .cabinet-plan-badge{display:inline-flex;gap:7px;align-items:center;background:#2a2e32;color:#fff;border:0;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:650}
.cabinet-settings-icon{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:#dadddf;flex-shrink:0}
.cabinet-settings-icon svg{width:24px;height:24px}
.cabinet-view .cabinet-car{display:block;box-sizing:border-box;width:100%;min-width:0;overflow:hidden;border:1px solid #353a3e;border-radius:25px;padding:20px 18px 14px;background:linear-gradient(125deg,#30363b,#23272b);color:#fff;box-shadow:0 8px 20px #17212c12}
.cabinet-car-heading{display:flex;align-items:center;gap:10px;min-width:0}
.cabinet-car-name{font-size:22px;line-height:1.15;font-weight:800;letter-spacing:-.025em;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cabinet-car-status{display:block;background:#ffffff1c;padding:6px 8px;border-radius:9px;font-size:10px;line-height:1.3;max-width:100px;color:#e6e8e9}
.cabinet-chevron{font-size:26px;line-height:1;flex-shrink:0}
.cabinet-car-visual{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:10px;align-items:center;min-height:142px;margin:8px -7px 0}
.cabinet-car-visual.without-progress{grid-template-columns:minmax(0,1fr)}
.cabinet-car-picture{display:grid;place-items:center;min-width:0;position:relative}
.cabinet-car-picture::before{content:'';position:absolute;left:8%;right:5%;bottom:8%;height:15%;background:#0005;filter:blur(8px);border-radius:50%;pointer-events:none}
.cabinet-car-picture img{display:block;width:100%;height:auto;max-height:142px;object-fit:contain;position:relative;filter:drop-shadow(0 5px 5px #0003)}
.cabinet-car-picture img[hidden]{display:none}
.cabinet-car-progress{display:grid;justify-items:center;gap:7px;padding-right:3px}
.cabinet-car-ring{display:grid;place-items:center;width:96px;height:96px;position:relative}
.cabinet-car-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.cabinet-car-ring circle{fill:none;stroke-width:9}.cabinet-ring-track{stroke:#565b5f}.cabinet-ring-value{stroke:#ffc400;stroke-linecap:round}
.cabinet-car-ring b{font-size:22px;font-weight:800;line-height:1;letter-spacing:-.04em}
.cabinet-car-progress small{font-size:10px;color:#d9dcde;text-align:center;line-height:1.3}
.cabinet-car-foot{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#c7cccf;border-top:1px solid #ffffff14;padding-top:11px;margin-top:4px}
.cabinet-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cabinet-shortcut{display:grid;place-items:center;align-content:center;gap:11px;min-height:101px;min-width:0;padding:14px 7px;border:1px solid #c8cccf;border-radius:21px;background:#e7e9e9}
.cabinet-shortcut span{display:grid;place-items:center}.cabinet-shortcut svg{width:32px;height:32px}
.cabinet-shortcut b{font-size:clamp(11px,3.2vw,13px);font-weight:750;white-space:nowrap}
.cabinet-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cabinet-feature{display:flex;flex-direction:column;position:relative;align-items:flex-start;min-width:0;min-height:168px;padding:18px 16px;border:1px solid #bbc1c6;border-radius:22px;background:#dadddf}
.cabinet-feature-icon{margin-bottom:15px;display:block}.cabinet-feature-icon svg{width:30px;height:30px;display:block}
.cabinet-feature b{font-size:16px;font-weight:800;letter-spacing:-.025em;line-height:1.2;overflow-wrap:anywhere;padding-right:6px}
.cabinet-feature small{font-size:11px;color:#686f76;line-height:1.45;display:block;margin-top:8px;padding-right:8px}
.cabinet-feature .cabinet-chevron{position:absolute;right:11px;bottom:17px;color:#60676d;font-size:22px}
.cabinet-feature-yellow{background:linear-gradient(120deg,#fff0b1,#ffe798);border-color:#eed68d}
.cabinet-referrals{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #d5d8da;border-radius:18px;padding:14px;background:#f0f1ee;min-width:0}
.cabinet-referrals>span:first-child{display:grid;place-items:center;background:#ffdf64;border-radius:12px;flex-shrink:0;width:38px;height:38px}
.cabinet-referrals svg{width:23px;height:23px}.cabinet-referrals>span:nth-child(2){flex:1;min-width:0}
.cabinet-referrals b{display:block;font-size:14px;font-weight:750}.cabinet-referrals small{display:block;margin-top:5px;font-size:11px;line-height:1.45;color:#686f76}
.cabinet-utilities{display:grid;grid-template-columns:1fr 1fr;padding:1px 0}
.cabinet-utilities button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border:0;background:transparent;font-weight:700;font-size:14px}
.cabinet-utilities button+button{border-left:1px solid #d4d7d9}.cabinet-utilities svg{width:22px;height:22px}
.cabinet-documents{border-top:1px solid #d8dcde;padding-top:14px;color:#70777e;font-size:12px}
.cabinet-documents summary{cursor:pointer;min-height:32px;line-height:1.5}.cabinet-documents .member-docs{padding:13px 0 5px;line-height:1.5}
@media(max-width:350px){.cabinet-car-visual{grid-template-columns:minmax(0,1fr) 84px;gap:4px}.cabinet-car-ring{width:80px;height:80px}.cabinet-car-ring b{font-size:19px}.cabinet-car-name{font-size:19px}.cabinet-feature{padding:16px 12px}.cabinet-feature b{font-size:15px}.cabinet-person h2{font-size:21px}}
/* Catalog preview and analytics navigation share the existing SMENA palette. */
.catalog-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;min-height:870px;background:#dadddf;border:1px solid #bfc3c6}
.catalog-preview{padding:20px;display:grid;gap:16px;filter:blur(1px);user-select:none}
.catalog-switch{display:flex;padding:5px;border-radius:18px;background:#bfc3c6;font-weight:700}
.catalog-switch span{flex:1;text-align:center;padding:12px 4px;border-radius:14px}
.catalog-switch .selected{background:#ffc400;color:#22272c}
.catalog-preview-title{font-size:19px;font-weight:800;margin:4px 0}
.catalog-car{border-radius:22px;background:#f0f1f2;padding:16px;overflow:hidden}
.catalog-car-top{display:flex;justify-content:space-between;gap:8px;font-weight:700;font-size:13px}
.catalog-car img{width:100%;height:150px;object-fit:contain;display:block}
.catalog-preview-lines{display:flex;gap:12px}.catalog-preview-lines span{height:12px;width:42%;border-radius:8px;background:#c4c7ca}
.catalog-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(25,29,33,.58),rgba(25,29,33,.88) 40%,rgba(25,29,33,.8));z-index:1}
.catalog-notice{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 24px;color:#fff}
.catalog-lock{width:68px;height:68px;border-radius:22px;display:grid;place-items:center;background:#ffc400;color:#252a2f;margin-bottom:24px;box-shadow:0 10px 30px #0003}
.catalog-lock svg{width:31px;height:31px}.catalog-eyebrow{font-size:11px;letter-spacing:2px;color:#dadddf;font-weight:700}
.catalog-notice h2{font-size:28px;line-height:1.15;margin:12px 0 16px;color:#fff}
.catalog-notice p{font-size:16px;line-height:1.6;margin:0;max-width:380px;color:#f1f2f3}
.catalog-status{display:inline-flex;align-items:center;gap:9px;padding:12px 16px;border:1px solid #ffffff40;border-radius:30px;margin-top:26px;font-size:13px;background:#ffffff0d}
.catalog-status i{height:7px;width:7px;border-radius:50%;background:#ffc400}
.analytics-sections{display:flex;gap:6px;padding:6px;background:#e4e6e8;border-radius:20px}
.analytics-sections button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:15px;background:transparent;color:#626b74;padding:13px 8px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.analytics-sections button.active{background:#262b30;color:#fff;box-shadow:0 4px 10px #0001}
.analytics-sections svg{width:19px;height:19px;flex-shrink:0}
.history-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 4px 0;gap:12px}
.history-eyebrow{font-size:10px;letter-spacing:1.6px;color:#69717a;font-weight:700}
.history-heading h3{font-size:24px;margin:5px 0 0}.history-count{font-size:16px;font-weight:800;padding:9px 15px;background:#ffc400;color:#252a2f;border-radius:14px}
.history-shift{display:grid;gap:16px;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;border:1px solid #bfc3c6;border-left:4px solid #ffc400}
.history-shift .shift-head{gap:12px}.history-shift .shift-head>div{min-width:0}.history-shift .shift-time{line-height:1.5;margin-top:5px}.history-shift .shift-meta{border-top:1px solid #252a2f1a;padding-top:12px;align-items:center}
.history-shift .chev{margin-left:auto;font-weight:700;font-size:13px}.history-shift:focus-visible,.analytics-sections button:focus-visible{outline:3px solid #a47e00;outline-offset:3px}
@media(max-width:360px){.catalog-notice{padding:28px 18px}.catalog-notice h2{font-size:25px}.history-shift .shift-head{flex-direction:column}.history-shift .shift-net,.history-shift .shift-rate{text-align:left}.analytics-sections button{font-size:13px;gap:6px}}

/* Keep the existing cabinet composition; the plate fits beside the model. */
.cabinet-car-title{display:flex;align-items:center;gap:7px;flex:1;min-width:0}
.cabinet-car-plate{display:inline-block;flex-shrink:0;max-width:94px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 5px;border:1px solid #bdc3c7;border-radius:5px;background:#f2f3f4;color:#252a2f;font-size:10px;font-weight:800;letter-spacing:.025em;line-height:1.1}
.cabinet-avatar{position:relative;overflow:hidden}
.cabinet-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;background:#ffcf24}
.cabinet-avatar img[hidden]{display:none}
.catalog-car:nth-last-child(1) img{transform:scaleX(-1)}
@media(max-width:350px){.cabinet-car-title{gap:5px}.cabinet-car-plate{font-size:9px;padding:4px}}
