/* Personal control · shared tokens and shell */
:root {
  --bg:#0b1018; --surface:#131b27; --surface2:#1b2737; --text:#edf2f8;
  --ink:var(--text); --muted:#96a4b7; --line:#2b3748;
  --cyan:#78d9cd; --blue:#82aff8; --green:#7cdbad; --yellow:#e6c46e; --red:#f486a0; --orange:#e3ab76;
  --shadow:0 12px 32px #00000014; --radius:20px; --ease-out:cubic-bezier(.22,1,.36,1);
  color-scheme:dark; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;
}
[data-theme=light] {
  --bg:#f0f3f7; --surface:#ffffff; --surface2:#e9eef5; --text:#18273b;
  --muted:#5e6e83; --line:#d5dfeb; --cyan:#126f6b; --blue:#3262b5;
  --green:#197b4b; --yellow:#896308; --red:#b33651; --orange:#a56521; --shadow:0 10px 28px #273e5910;
  color-scheme:light;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-size:14px; line-height:1.6; }
button,input,select { font:inherit; }
button,a,input,select { touch-action:manipulation; }
button { min-height:44px; cursor:pointer; color:var(--ink); border:1px solid var(--line); background:var(--surface2); padding:10px 16px; border-radius:12px; transition:background-color .16s,border-color .16s,transform .16s var(--ease-out); }
button:hover { border-color:color-mix(in srgb,var(--blue) 45%,var(--line)); background:color-mix(in srgb,var(--blue) 10%,var(--surface2)); }
button:active { transform:scale(.98); }
button:disabled { opacity:.5; cursor:default; }
a { color:var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(30px,3vw,42px); line-height:1.3; letter-spacing:-.045em; }
h2 { font-size:23px; line-height:1.45; letter-spacing:-.025em; }
h3 { font-size:16px; line-height:1.5; }
small,.muted { color:var(--muted); }
[hidden] { display:none!important; }
.ambient { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:-1; background:radial-gradient(ellipse at 80% 12%,#235d8820,transparent 55%),radial-gradient(ellipse at 15% 85%,#245e7618,transparent 48%); }
.ambient::before,.ambient::after { content:''; position:absolute; inset:-15%; border-radius:50%; border:1px solid #5ebada0b; transform:rotate(-17deg); animation:ambient-drift 38s ease-in-out infinite alternate; }
.ambient::after { inset:10% -35%; animation-delay:-19s; border-color:#74a5f50b; }
.eyebrow { font-size:10px; font-weight:650; letter-spacing:1.6px; color:var(--muted); line-height:1.7; }
.rail { position:fixed; inset:0 auto 0 0; width:230px; background:color-mix(in srgb,var(--bg) 95%,transparent); border-right:1px solid var(--line); padding:30px 20px; display:flex; flex-direction:column; z-index:10; }
.brand { font-size:34px; font-weight:750; color:var(--ink); letter-spacing:-3px; display:flex; align-items:center; gap:3px; margin-bottom:32px; }
.brand>span,.brandmark>span { color:var(--cyan); }
.brand small { font-size:10px; letter-spacing:2px; margin-left:14px; }
.rail nav { display:grid; gap:5px; }
.rail nav button,.rail nav .module-link { text-align:left; border:0; background:transparent; padding:12px 14px; color:var(--muted); display:flex; gap:13px; align-items:center; }
.rail nav .module-link { border-radius:12px; font:inherit; text-decoration:none; }
.rail nav button:hover,.rail nav .module-link:hover { background:var(--surface); color:var(--ink); }
.rail nav .selected { background:var(--surface2); color:var(--ink); box-shadow:inset 3px 0 var(--cyan); }
.rail-foot { margin-top:auto; padding-top:24px; color:var(--muted); font-size:12px; }
.rail-foot>span:last-child { display:block; margin:7px 0 0 17px; font-size:10px; }
.dot { display:inline-block; width:6px; height:6px; background:var(--green); border-radius:50%; margin-right:7px; }
.content { margin-left:230px; padding:0 40px 28px; max-width:1780px; }
.topbar { height:82px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:32px; }
.topbar>div:first-child { display:flex; gap:24px; align-items:center; }
.connection { font-size:12px; color:var(--green); }
.top-actions,.actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.top-actions button { background:transparent; font-size:12px; padding:8px 12px; }
.page-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.page-heading .eyebrow { margin-bottom:8px; }
.page-heading p:last-child { margin-top:9px; color:var(--muted); font-size:13px; }
.primary { background:var(--cyan); color:var(--bg); border-color:transparent; font-weight:650; }
.primary:hover { background:color-mix(in srgb,var(--cyan) 88%,white); border-color:transparent; }
.text-button { background:transparent; padding:9px 12px; color:var(--blue); font-size:12px; white-space:nowrap; }
.segmented { display:flex; background:var(--surface2); padding:4px; border:1px solid var(--line); border-radius:13px; gap:3px; }
.segmented button { min-height:38px; border:0; background:transparent; min-width:56px; padding:7px 14px; color:var(--muted); }
.segmented .selected { background:var(--surface); color:var(--ink); box-shadow:0 2px 8px #00000012; }
.card { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:28px; box-shadow:var(--shadow); min-width:0; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:22px; }
.section-heading .eyebrow { margin-bottom:6px; }
.section-heading small { font-size:12px; }
.hero { display:grid; grid-template-columns:1.3fr 1fr; gap:26px; margin-bottom:26px; }
.grid2 { display:grid; grid-template-columns:1.5fr 1fr; gap:26px; }
.stack { display:grid; gap:26px; align-content:start; }
.income-card { position:relative; overflow:hidden; background:linear-gradient(130deg,color-mix(in srgb,var(--surface) 93%,var(--blue)),var(--surface)); }
.income-card::after { content:''; position:absolute; width:260px; height:260px; right:-135px; top:-165px; border:1px solid #63dadd20; border-radius:50%; box-shadow:0 0 0 35px #63dadd04; pointer-events:none; }
.income-pair { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:30px; }
.metric-label { color:var(--muted); font-size:12px; line-height:1.5; margin-bottom:8px; }
.number { font-family:Inter,"SF Pro Display",-apple-system,sans-serif; font-variant-numeric:tabular-nums; font-weight:650; letter-spacing:-.035em; line-height:1.2; font-size:clamp(32px,3.2vw,52px); white-space:nowrap; }
.number.accent { color:var(--cyan); }
.number small { font-size:13px; letter-spacing:0; color:var(--muted); font-weight:400; margin-left:6px; }
.metric-note { color:var(--muted); font-size:12px; margin-top:16px; line-height:1.8; }
.mini-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; border-top:1px solid var(--line); padding-top:24px; margin-top:32px; }
.mini-metrics .number { font-size:25px; }
.motion-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:30px; }
.motion-grid .number { font-size:31px; }
.motion-grid>div:nth-child(1) .number { color:var(--blue); }
.motion-grid>div:nth-child(2) .number { color:var(--green); }
.motion-grid>div:nth-child(3) .number { color:var(--cyan); }
.clocks { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:28px; border-top:1px solid var(--line); padding-top:24px; }
.clocks .number { font-size:28px; letter-spacing:0; }
.journey-foot { display:flex; flex-wrap:wrap; gap:14px 24px; margin-top:22px; font-size:12px; color:var(--muted); }
.overview-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-bottom:26px; }
.overview-toolbar .form-note { margin:0; }
.overview-primary { display:grid; grid-template-columns:1.15fr 1fr; gap:26px; margin-bottom:26px; }
.overview-secondary { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr); gap:26px; margin-bottom:26px; align-items:stretch; }
.overview-bottom { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:26px; }
.period-subsidy,.recent-order { margin-bottom:26px; }
.capture-button span { font-size:19px; margin-right:5px; }
.chart { width:100%; height:225px; display:block; overflow:visible; }
.chart text { fill:var(--muted); font-size:9px; font-family:inherit; }
.chart .gridline { stroke:var(--line); stroke-width:1; }
.chart [data-tip] { cursor:crosshair; outline:none; }
.chart [data-tip]:focus { stroke:var(--text); stroke-width:3; }
.legend { display:flex; gap:20px; color:var(--muted); font-size:12px; align-items:center; margin:14px 0 0; }
.legend span::before { content:''; display:inline-block; width:15px; height:3px; border-radius:3px; background:var(--cyan); margin-right:7px; vertical-align:middle; }
.legend span:nth-child(2)::before { background:var(--blue); }
.chart-tooltip { background:var(--surface2); border-radius:9px; padding:8px 12px; color:var(--muted); font-size:11px; min-height:34px; margin-top:12px; }
.progress-row { display:flex; justify-content:space-between; margin-top:18px; font-size:12px; }
.progress { height:7px; background:var(--surface2); border-radius:6px; margin:12px 0; overflow:hidden; }
.progress>i { display:block; height:100%; background:var(--cyan); border-radius:6px; transition:width .28s var(--ease-out); }
.blue { --stage:var(--blue); }
.orange { --stage:var(--orange); }
.green { --stage:var(--green); }
.cyan { --stage:var(--cyan); }
.violet { --stage:oklch(77% .12 292); }
.pink { --stage:oklch(78% .1 350); }
[data-theme=light] .violet { --stage:oklch(46% .16 292); }
[data-theme=light] .pink { --stage:oklch(45% .15 350); }
.yellow { --stage:var(--yellow); }
.red { --stage:var(--red); }
.neutral { --stage:var(--muted); }
.kpi-ring { position:relative; width:108px; height:108px; flex-shrink:0; }
.kpi-ring svg { transform:rotate(-90deg); width:100%; height:100%; }
.kpi-ring circle { fill:none; stroke:var(--surface2); stroke-width:5; }
.kpi-ring .fill { stroke:var(--stage,var(--muted)); stroke-linecap:round; transition:stroke-dashoffset .28s var(--ease-out); }
.kpi-ring strong { position:absolute; inset:0; display:flex; justify-content:center; align-items:center; color:var(--stage,var(--muted)); font-size:25px; font-variant-numeric:tabular-nums; }
.kpi-ring strong small { font-size:12px; margin-left:2px; color:inherit; }
.kpi-card { border-color:color-mix(in srgb,var(--stage,var(--line)) 45%,var(--line)); background:linear-gradient(150deg,color-mix(in srgb,var(--stage,var(--line)) 8%,var(--surface)),var(--surface) 72%); transition:border-color .35s,background-color .35s; }
.kpi-card h3 { color:var(--stage,var(--ink)); }
.kpi-summary { display:flex; align-items:center; gap:24px; margin:28px 0; }
.kpi-copy .number { font-size:34px; color:var(--stage,var(--ink)); }
.kpi-copy .metric-note { margin-top:12px; }
.kpi-milestones { display:flex; flex-wrap:wrap; gap:13px 20px; font-size:11px; padding:18px 0; border-top:1px solid var(--line); }
.kpi-milestones>span { color:var(--muted); }
.kpi-milestones i { width:7px; height:7px; display:inline-block; background:var(--line); border-radius:50%; margin-right:6px; }
.kpi-milestones .reached { color:var(--stage); }
.kpi-milestones .reached i { background:var(--stage); }
.kpi-milestones .current { color:var(--ink); }
.kpi-milestones .current i { background:var(--stage); box-shadow:0 0 0 3px color-mix(in srgb,var(--stage) 12%,transparent); }
.kpi-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:26px; align-items:start; }
.kpi-edit-column { display:grid; gap:26px; }
.kpi-editor .section-heading { align-items:start; }
.editor-intro { color:var(--muted); max-width:65ch; line-height:1.9; font-size:13px; margin-bottom:26px; }
.kpi-tier-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 18px; }
.kpi-tier { min-width:0; margin:0; padding:20px; border:1px solid color-mix(in srgb,var(--stage) 32%,var(--line)); border-radius:16px; background:linear-gradient(145deg,color-mix(in srgb,var(--stage) 4%,var(--surface)),var(--surface) 70%); }
.kpi-tier legend { padding:0 7px; color:var(--ink); font-size:13px; font-weight:600; }
.stage-index { display:inline-grid; place-content:center; width:23px; height:23px; border-radius:7px; background:color-mix(in srgb,var(--stage) 10%,var(--surface)); color:var(--stage); margin-right:5px; font-variant-numeric:tabular-nums; }
.stage-name { color:var(--muted); font-size:10px; font-weight:400; margin-left:4px; }
.kpi-tier label { color:var(--muted); font-size:12px; }
.kpi-tier-header { display:grid; grid-template-columns:minmax(0,1fr) 112px 46px; gap:10px; align-items:end; margin-bottom:20px; }
.kpi-tier-header input,.kpi-tier-header select { margin-top:5px; width:100%; }
.kpi-tier .kpi-remove { padding:10px 4px; color:var(--muted); border:0; min-width:0; }
.kpi-targets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.kpi-target { min-width:0; }
.kpi-target.is-off .input-unit { opacity:.45; }
.kpi-tier .checkbox { display:flex; gap:7px; align-items:center; min-height:34px; }
.kpi-tier input[type=checkbox] { width:17px; height:17px; min-height:17px; padding:0; margin:0; accent-color:var(--stage); }
.kpi-rule-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.kpi-rule-controls select { width:100%; margin-top:6px; font-size:12px; }
.kpi-rule-controls select:disabled { opacity:.45; }
.kpi-rule-hint { margin-top:14px; min-height:2.8em; }
.kpi-add-row { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-top:24px; }
.kpi-add-row span { color:var(--muted); font-size:11px; }
.card .kpi-add-row button { margin:0; }
.input-unit { display:flex; align-items:center; min-width:0; gap:8px; padding:0 10px; background:var(--surface2); border:1px solid var(--line); border-radius:10px; }
.input-unit:focus-within { outline:2px solid var(--cyan); outline-offset:2px; }
.input-unit input { min-height:48px; border:0; padding:10px 0; font-size:19px; font-variant-numeric:tabular-nums; background:transparent; }
.input-unit input:focus-visible { outline:none; }
.input-unit span { font-size:11px; color:var(--muted); }
.tier-or { display:block; text-align:center; padding:11px 0; color:var(--muted); font-size:11px; }
.editor-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); padding-top:24px; margin-top:26px; }
.editor-actions>div:first-child { color:var(--muted); font-size:11px; min-width:0; }
.editor-actions small { display:block; margin-top:5px; }
.card .editor-actions button { margin-top:0; }
.form-error { margin-top:18px; color:var(--red); font-size:13px; line-height:1.8; }
input[aria-invalid=true] { outline:2px solid var(--red); outline-offset:1px; }
.preview-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:24px 0; }
.draft-preview { display:flex; align-items:center; gap:24px; padding-top:22px; border-top:1px dashed var(--line); min-height:136px; }
.draft-preview strong { color:var(--stage,var(--ink)); font-size:18px; }
.draft-preview .kpi-ring { width:84px; height:84px; }
.settings-kpi-link button { margin-top:20px; }
.payout-config-card .section-heading { align-items:flex-start; }
.payout-config-card h3 { font-size:22px; margin-top:8px; }
.payout-config-card .badge { flex-shrink:0; }
.payout-saved { display:grid; gap:8px; margin:24px 0; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.payout-saved>span,.payout-saved>small { color:var(--muted); font-size:12px; }
.payout-saved>strong { font-size:20px; line-height:1.5; overflow-wrap:anywhere; }
.payout-methods,.payout-weekly-fields { min-width:0; border:0; padding:0; margin:0; }
.payout-methods legend,.payout-weekly-fields legend { color:var(--ink); font-size:14px; font-weight:600; margin-bottom:12px; }
.payout-methods { display:grid; gap:12px; }
.payout-option { display:flex; align-items:center; gap:12px; min-height:72px; margin:0; padding:12px 16px; border:1px solid var(--line); border-radius:12px; cursor:pointer; background:var(--surface2); }
.payout-option.selected { background:color-mix(in srgb,var(--blue) 9%,var(--surface)); border-color:color-mix(in srgb,var(--blue) 55%,var(--line)); }
.payout-option:focus-within { outline:2px solid var(--cyan); outline-offset:3px; }
.payout-option input[type=radio] { min-height:0; width:18px; height:18px; padding:0; margin:0; flex:0 0 18px; accent-color:var(--blue); }
.payout-option>span { min-width:0; display:grid; gap:4px; }
.payout-option strong { font-size:14px; color:var(--ink); font-weight:600; }
.payout-option small { color:var(--muted); font-size:12px; line-height:1.6; }
.payout-weekly-fields { margin-top:24px; }
.payout-weekly-fields label { min-width:0; display:grid; gap:8px; color:var(--muted); font-size:13px; }
.payout-weekly-fields input,.payout-weekly-fields select { min-height:48px; color-scheme:dark; font-variant-numeric:tabular-nums; }
[data-theme=light] .payout-weekly-fields input,[data-theme=light] .payout-weekly-fields select { color-scheme:light; }
.payout-config-actions { margin-top:24px; }
.payout-config-card #payout-config-result:empty { display:none; }
.payout-config-card #payout-config-retry { margin-top:20px; }
@media(max-width:700px) { .payout-config-card h3 { font-size:20px; } .payout-saved>strong { font-size:18px; } .payout-config-actions button { flex:1; } }
.fuel-price { display:flex; align-items:baseline; gap:8px; margin:26px 0 14px; }
.fuel-price .number { font-size:39px; }
.fuel-price small { font-size:12px; }
.fuel-card .text-button { margin-top:16px; }
.status-list { display:grid; gap:9px; }
.status-row { display:flex; align-items:center; justify-content:space-between; gap:14px; border-bottom:1px solid var(--line); padding:12px 0; font-size:13px; }
.status-row:last-child { border-bottom:0; }
.status-row>span:first-child { color:var(--muted); }
.status-row .badge { white-space:normal; text-align:right; }
.badge { display:inline-block; font-size:11px; border-radius:7px; padding:3px 8px; background:color-mix(in srgb,var(--green) 10%,transparent); color:var(--green); white-space:nowrap; line-height:1.6; }
.badge.blue { color:var(--blue); background:color-mix(in srgb,var(--blue) 10%,transparent); }
.badge.orange,.badge.yellow { color:var(--yellow); background:color-mix(in srgb,var(--yellow) 10%,transparent); }
.badge.red { color:var(--red); background:color-mix(in srgb,var(--red) 10%,transparent); }
.order-row { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(100px,1fr) auto auto; gap:20px; border-top:1px solid var(--line); padding:23px 0; align-items:center; }
.order-row:first-of-type { border-top:0; }
.order-name { min-width:0; font-weight:600; font-size:15px; overflow-wrap:anywhere; }
.order-name small { display:block; font-weight:400; font-size:12px; margin-top:8px; line-height:2; }
.order-badges { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.order-status { font-size:12px; color:var(--muted); }
.order-status small { display:block; font-size:12px; margin-top:7px; }
.order-amount { font-size:24px; font-weight:650; letter-spacing:-.025em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.order-row button { justify-self:end; background:transparent; font-size:12px; }
.empty { padding:40px 12px; color:var(--muted); text-align:center; font-size:13px; line-height:1.8; }
.filters { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:26px; }
.filters input { min-width:230px; flex:1; }
input,select { color:var(--ink); background:var(--surface2); border:1px solid var(--line); border-radius:10px; padding:11px 12px; width:100%; min-width:0; min-height:44px; }
label { display:grid; gap:9px; color:var(--muted); font-size:12px; }
label.checkbox { display:flex; gap:8px; align-items:center; }
input[type=checkbox] { width:18px; height:18px; min-height:0; accent-color:var(--cyan); }
.filters select { width:auto; min-width:140px; }
.pager { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; margin-top:22px; font-size:12px; color:var(--muted); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-grid .full { grid-column:1/-1; }
.card form button { margin-top:20px; }
.form-note { font-size:11px; color:var(--muted); margin-top:14px; line-height:1.8; }
.details-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; padding:26px 0; }
.details-grid strong { display:block; font-size:21px; margin-top:7px; font-weight:600; overflow-wrap:anywhere; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; white-space:nowrap; }
th { font-weight:400; color:var(--muted); font-size:11px; }
td,th { padding:15px 16px; border-bottom:1px solid var(--line); }
td:first-child,th:first-child { padding-left:0; }
summary { cursor:pointer; color:var(--blue); margin-top:16px; min-height:40px; }
/* Billing: a compact date directory beside the full, server-owned statement. */
.bill-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:26px; }
.bill-toolbar p { color:var(--muted); font-size:12px; }
.bill-workspace { display:grid; grid-template-columns:minmax(245px,.32fr) minmax(0,1fr); gap:26px; align-items:start; }
.bill-directory { background:color-mix(in srgb,var(--surface) 65%,transparent); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.bill-directory-heading { display:flex; align-items:center; justify-content:space-between; padding:22px 20px; gap:14px; border-bottom:1px solid var(--line); }
.bill-directory-heading h2 { font-size:15px; letter-spacing:0; }
.bill-directory-heading>span { color:var(--muted); font-size:11px; white-space:nowrap; }
.bill-list { max-height:760px; overflow-y:auto; scrollbar-width:thin; }
.bill-list-item { display:block; width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; border-radius:0; text-align:left; padding:22px 20px; transform:none; }
.bill-list-item:last-child { border-bottom:0; }
.bill-list-item.selected { background:color-mix(in srgb,var(--blue) 9%,var(--surface)); box-shadow:inset 3px 0 var(--blue); }
.bill-list-top,.bill-list-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bill-list-top strong { font-size:13px; font-weight:550; overflow-wrap:anywhere; }
.bill-list-top b { font-size:17px; font-weight:650; font-variant-numeric:tabular-nums; min-width:0; overflow-wrap:anywhere; }
.bill-list-meta { margin-top:13px; align-items:flex-start; }
.bill-list-meta>small { font-size:10px; overflow-wrap:anywhere; }
.bill-list-meta>span { display:flex; flex-wrap:wrap; gap:5px; justify-content:flex-end; }
.bill-list-meta .badge { font-size:10px; padding:2px 6px; }
.bill-sheet { border:1px solid var(--line); border-radius:20px; background:var(--surface); padding:32px; min-width:0; box-shadow:var(--shadow); }
.bill-sheet-header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; }
.bill-sheet-header .eyebrow { margin-bottom:8px; }
.bill-sheet-header h2 { font-size:24px; }
.bill-number { font-size:12px; color:var(--muted); margin-top:9px; }
.bill-number strong { color:var(--text); font-weight:450; font-variant-numeric:tabular-nums; margin-left:6px; overflow-wrap:anywhere; }
.bill-status { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; padding-top:5px; }
.bill-boundary { padding:16px 0 24px; font-size:12px; color:var(--muted); border-bottom:1px solid var(--line); line-height:1.9; }
.bill-boundary small { display:block; margin-top:7px; font-size:10px; }
.bill-income { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; padding:28px 0 24px; }
.bill-income-split { min-width:0; }
.bill-income-split>summary { margin:0; color:var(--text); list-style:none; }
.bill-income-split>summary::-webkit-details-marker,.bill-order-money>summary::-webkit-details-marker { display:none; }
.bill-income-split .metric-label { display:block; margin-bottom:12px; }
.bill-income .number { font-size:clamp(36px,3.7vw,58px); white-space:normal; overflow-wrap:anywhere; }
.bill-expand-hint { display:block; color:var(--muted); font-size:11px; margin-top:14px; }
.bill-expand-hint i,.bill-order-money summary i { font-style:normal; margin-left:5px; display:inline-block; transition:transform .15s; }
.bill-income-split[open] .bill-expand-hint i,.bill-order-money[open] summary i { transform:rotate(180deg); }
.bill-income-note { font-size:11px; line-height:1.9; color:var(--muted); text-align:right; }
.bill-split { margin:18px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:16px; border-radius:11px; background:var(--surface2); }
.bill-split dt { color:var(--muted); font-size:11px; }
.bill-split dd { margin:6px 0 0; font-size:19px; font-weight:550; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.bill-confirmation { display:flex; gap:10px 24px; flex-wrap:wrap; font-size:11px; color:var(--muted); padding:0 0 24px; border-bottom:1px solid var(--line); }
.bill-confirmation strong { color:var(--text); font-weight:450; margin-left:5px; font-variant-numeric:tabular-nums; }
.bill-review-note { display:flex; gap:12px; padding:18px 0; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.bill-review-dot { width:6px; height:6px; flex:none; border-radius:50%; background:var(--blue); margin-top:8px; }
.bill-review-note strong { color:var(--text); font-weight:550; }
.bill-review-note p { margin-top:7px; }
.bill-review-note ul { padding-left:17px; margin:8px 0 0; }
.bill-change { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; font-size:11px; color:var(--muted); background:color-mix(in srgb,var(--blue) 6%,var(--surface)); border-left:2px solid var(--blue); padding:14px 16px; margin:16px 0 22px; }
.bill-change strong { color:var(--text); font-weight:550; font-size:15px; font-variant-numeric:tabular-nums; }
.bill-change i { color:var(--muted); font-style:normal; margin:0 6px; }
.bill-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 24px; padding:26px 0; }
.bill-metrics span { display:block; font-size:11px; color:var(--muted); }
.bill-metrics strong { display:block; font-size:20px; font-weight:550; font-variant-numeric:tabular-nums; margin-top:6px; overflow-wrap:anywhere; }
.bill-orders { padding-top:24px; border-top:1px solid var(--line); }
.bill-orders>.section-heading { margin-bottom:4px; }
.bill-order { padding:24px 0; border-bottom:1px solid var(--line); }
.bill-order-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,.36fr); gap:24px; align-items:start; }
.bill-order-name h3 { font-size:15px; overflow-wrap:anywhere; }
.bill-order-name>p { font-size:11px; color:var(--muted); margin-top:6px; }
.bill-order .badge { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.bill-order-money>summary { color:var(--text); list-style:none; margin:0; text-align:right; }
.bill-order-money>summary strong { display:block; font-size:25px; font-weight:600; font-variant-numeric:tabular-nums; line-height:1.2; letter-spacing:-.025em; overflow-wrap:anywhere; }
.bill-order-money>summary>span { display:block; color:var(--muted); font-size:10px; margin-top:8px; }
.bill-order-money .bill-split { display:block; padding:12px; margin-top:12px; }
.bill-order-money .bill-split>div { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.bill-order-money .bill-split>div+div { margin-top:8px; }
.bill-order-money .bill-split dd { margin:0; font-size:14px; }
.bill-order-money .form-note { margin:8px 0 0; font-size:10px; }
.bill-order-foot { display:flex; flex-wrap:wrap; gap:10px 20px; align-items:center; margin-top:18px; color:var(--muted); font-size:11px; }
.bill-order-foot strong { color:var(--text); font-weight:450; margin-left:4px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.bill-order-foot button { margin-left:auto; min-height:44px; padding:8px 0 8px 12px; }
.bill-order-changes { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.bill-order-change { color:var(--blue); font-size:11px; padding:6px 9px; background:color-mix(in srgb,var(--blue) 7%,transparent); border-radius:7px; font-variant-numeric:tabular-nums; }
.bill-order-change b { font-weight:550; margin-right:5px; }
.bill-order-change i { font-style:normal; color:var(--muted); }
.bill-payment-facts { display:grid; gap:18px; margin:26px 0; }
.bill-payment-facts dt { color:var(--muted); font-size:11px; }
.bill-payment-facts dd { margin:6px 0 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.bill-audit,.bill-report { border-bottom:1px solid var(--line); padding:12px 0; }
.bill-audit>summary,.bill-report>summary { margin:0; min-height:44px; display:flex; align-items:center; gap:10px; font-size:12px; }
.bill-audit>summary>span,.bill-report>summary>span { color:var(--muted); font-size:10px; }
.bill-audit ol { list-style:none; margin:14px 0; padding:0; }
.bill-audit li { display:grid; grid-template-columns:140px minmax(0,1fr); gap:20px; padding:12px 0; font-size:12px; }
.bill-audit time,.bill-audit small { color:var(--muted); font-size:11px; }
.bill-audit strong { display:block; font-weight:500; font-variant-numeric:tabular-nums; }
.bill-audit small { display:block; margin-top:5px; }
.bill-report pre { font-family:inherit; font-size:13px; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; background:var(--surface2); padding:18px; border-radius:11px; }
.bill-report [role=status] { font-size:12px; color:var(--muted); }
.bill-sheet-footer { padding-top:24px; font-size:10px; color:var(--muted); }
.bill-empty { color:var(--muted); padding:28px 20px; font-size:12px; line-height:1.9; }
.bill-empty-detail { min-height:330px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.bill-empty-detail h2 { margin:12px 0; }
.bill-empty-detail>p:last-child { color:var(--muted); font-size:13px; max-width:430px; line-height:1.9; }
.bill-read-error { padding:17px 20px; margin-bottom:22px; color:var(--red); background:color-mix(in srgb,var(--red) 5%,var(--surface)); border:1px solid color-mix(in srgb,var(--red) 25%,var(--line)); border-radius:12px; font-size:12px; }
.bill-read-error p { margin:6px 0; }
@media(max-width:1250px) { .bill-workspace { grid-template-columns:240px minmax(0,1fr); gap:20px; } .bill-sheet { padding:26px; } .bill-income { grid-template-columns:1fr; gap:16px; } .bill-income-note { text-align:left; } .bill-income-note br { display:none; } }
@media(max-width:1000px) { .bill-workspace { grid-template-columns:1fr; } .bill-list { max-height:240px; } .bill-list-item { padding:16px 20px; } .bill-list-meta { margin-top:8px; } }
@media(max-width:760px) { .bill-toolbar { margin-bottom:22px; } .bill-toolbar>.segmented { width:100%; } .bill-toolbar>.segmented button { flex:1; padding:8px; } .bill-sheet { padding:24px 20px; border-radius:18px; } .bill-sheet-header { flex-direction:column; gap:14px; } .bill-sheet-header h2 { font-size:21px; } .bill-status { justify-content:flex-start; padding:0; } .bill-boundary { padding-top:18px; } .bill-income .number { font-size:42px; } .bill-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 18px; } .bill-metrics strong { font-size:19px; } .bill-order-main { grid-template-columns:minmax(0,1fr) 110px; gap:14px; } .bill-order-money>summary strong { font-size:23px; } .bill-order-foot { gap:8px 16px; } .bill-order-foot button { padding:8px 0; margin-left:0; width:100%; text-align:left; } .bill-order-money .bill-split>div { display:block; } .bill-order-money .bill-split dd { margin-top:3px; } .bill-audit li { grid-template-columns:1fr; gap:7px; } }
.share-link { background:var(--surface2); padding:18px; border-radius:13px; font-variant-numeric:tabular-nums; word-break:break-all; margin:18px 0; }
.share-link strong { font-size:21px; letter-spacing:6px; }
.share-controls { display:grid; grid-template-columns:1fr auto; gap:24px; align-items:end; }
input[type=range] { padding:0; accent-color:var(--cyan); }
.connect-card { display:grid; grid-template-columns:1fr auto; gap:18px; align-items:start; }
.connect-card p { color:var(--muted); margin:12px 0 20px; font-size:12px; }
.connect-card .badge { margin-top:5px; }
.hour-history { margin-bottom:26px; }
.nearby-history { margin-bottom:26px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; border-color:color-mix(in srgb,var(--stage) 25%,var(--line)); }
.nearby-history .form-note { margin-top:9px; }
.nearby-result strong { display:block; font-size:28px; color:var(--stage); }
.nearby-result small { display:block; margin-top:7px; font-size:11px; }
.hour-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.hour-stat-grid .number { font-size:30px; }
.hour-stat-grid .number small { display:block; margin:8px 0 0; font-size:11px; }
.map-workspace { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr); gap:26px; align-items:start; }
.store-legend { display:flex; flex-wrap:wrap; gap:12px 22px; font-size:11px; margin:20px 0; }
.store-legend span,.store-facts>span:first-child { color:var(--stage,var(--muted)); }
#store-map { height:510px; width:100%; border-radius:14px; background:var(--surface2); overflow:hidden; }
.store-directory { padding:26px; }
.store-filters { display:flex; gap:7px; flex-wrap:wrap; margin:16px 0 10px; }
.store-filters button { padding:7px 10px; min-height:38px; font-size:11px; background:transparent; }
.store-filters button.selected { background:var(--surface2); border-color:var(--blue); }
.store-filters small { margin-left:7px; }
#store-list { max-height:650px; overflow:auto; padding-right:4px; }
.store-row { display:flex; gap:14px; padding:22px 0; border-bottom:1px solid var(--line); align-items:start; }
.store-row:last-child { border-bottom:0; }
.store-point { flex:none; width:9px; height:9px; margin-top:7px; border-radius:50%; background:var(--stage); }
.store-copy { flex:1; min-width:0; }
.store-copy h3 { font-size:14px; overflow-wrap:anywhere; }
.store-copy p { color:var(--muted); font-size:11px; margin-top:5px; overflow-wrap:anywhere; }
.store-copy>small { display:block; font-size:10px; margin-top:10px; }
.store-facts { display:flex; gap:8px 14px; flex-wrap:wrap; margin-top:12px; font-size:11px; color:var(--muted); }
.store-actions { display:flex; flex-direction:column; gap:9px; flex:none; align-items:end; }
.store-actions .text-button { font-size:11px; padding:7px 9px; }
.navigation-button { border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:11px; min-height:44px; display:inline-flex; align-items:center; white-space:nowrap; }
.map-entry button { margin-top:6px; width:100%; }
.login-shell { min-height:100vh; display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:100px; max-width:1150px; margin:auto; padding:70px 50px; }
.brandmark { font-size:50px; font-weight:750; letter-spacing:-5px; display:block; margin-bottom:45px; }
.login-brand h1 { font-size:clamp(38px,4.5vw,60px); line-height:1.3; margin:18px 0 22px; letter-spacing:-2px; }
.login-brand h1>span { color:var(--cyan); }
.login-brand>p:last-of-type { color:var(--muted); font-size:14px; }
.login-card { border:1px solid var(--line); border-radius:25px; background:var(--surface); padding:40px; box-shadow:var(--shadow); z-index:1; }
.login-card h2 { font-size:28px; margin:10px 0 32px; }
.login-card label { margin:20px 0; }
.login-card input { padding:13px; }
.login-card button { width:100%; padding:14px; display:flex; justify-content:space-between; margin-top:28px; }
.login-card small { display:block; margin-top:22px; font-size:11px; }
.login-orbit { position:relative; width:190px; height:190px; margin:40px 0 0 40px; }
.login-orbit i { position:absolute; inset:10px; border:1px solid #63dadd30; border-radius:50%; transform:rotateX(40deg); animation:orbit 30s linear infinite; }
.login-orbit i:nth-child(2) { inset:25px; transform:rotateY(55deg); animation-direction:reverse; }
.login-orbit i:nth-child(3) { inset:40px; }
.login-orbit i::after { content:''; width:5px; height:5px; border-radius:50%; background:var(--cyan); position:absolute; top:5px; left:47px; }
.login-orbit b { position:absolute; inset:0; display:grid; place-content:center; color:var(--cyan); font-size:44px; font-weight:300; letter-spacing:-3px; }
footer { color:var(--muted); font-size:10px; border-top:1px solid var(--line); padding-top:22px; margin-top:36px; display:flex; gap:16px; justify-content:space-between; }
#notice { padding:14px 18px; border-radius:12px; border:1px solid var(--line); background:var(--surface2); margin-bottom:22px; color:var(--muted); }
#notice.error,#login-error { color:var(--red); }
dialog { border:1px solid var(--line); border-radius:24px; max-width:880px; width:calc(100% - 30px); max-height:92vh; background:var(--surface); color:var(--ink); padding:30px; box-shadow:0 50px 150px #00000066; }
dialog::backdrop { background:#02060cb0; backdrop-filter:blur(6px); }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; }
.dialog-heading button { font-size:25px; line-height:1; padding:6px 12px; }
.route-map { height:350px; border-radius:15px; background:var(--surface2); margin-top:18px; }
.detail-text { white-space:pre-wrap; color:var(--muted); font-size:12px; }
.remote-link { display:block; margin-top:18px; padding:12px; border:1px solid var(--line); border-radius:10px; text-align:center; }
.numeric-swap,.value-flash { animation:number-in .28s var(--ease-out); }
.page-enter { animation:page-in .24s var(--ease-out); }
@keyframes number-in { from { opacity:.55; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
@keyframes page-in { from { opacity:.6; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@keyframes ambient-drift { to { transform:translate3d(2%,3%,0) rotate(-10deg); } }
@keyframes orbit { to { transform:rotateZ(360deg) rotateX(40deg); } }
@media(min-width:1550px) {
  .content { padding-left:52px; padding-right:52px; }
  .income-pair .number { font-size:54px; }
}
@media(max-width:1300px) {
  .overview-primary,.overview-secondary { grid-template-columns:1fr; }
  .overview-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .overview-bottom .status-card { grid-column:1/-1; }
  .kpi-layout { grid-template-columns:1fr; }
  .kpi-layout>aside { order:-1; }
  .kpi-layout>aside .kpi-card { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; }
  .kpi-layout>aside .section-heading { grid-column:1/-1; }
  .kpi-layout>aside .kpi-summary { margin:8px 0 0; grid-row:span 2; }
  .map-workspace { grid-template-columns:1fr; }
  #store-list { max-height:500px; }
}
@media(max-width:1150px) {
  .rail { width:202px; padding:28px 15px; }
  .content { margin-left:202px; padding:0 26px 26px; }
  .hero,.grid2 { grid-template-columns:1fr; }
  .stack { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stack .status-card { grid-column:1/-1; }
  .login-shell { gap:45px; }
}
@media(max-width:760px) {
  .rail { position:sticky; top:0; width:100%; height:auto; padding:9px 14px; flex-direction:row; align-items:center; gap:12px; }
  .brand { margin:0; font-size:26px; flex:none; }
  .brand small,.rail-foot { display:none; }
  .rail nav { display:flex; flex:1; overflow-x:auto; gap:4px; padding:2px; min-width:0; }
  .rail nav button,.rail nav .module-link { padding:7px 12px; min-width:72px; flex:none; flex-direction:column; gap:3px; font-size:15px; line-height:1.2; }
  .rail nav button span,.rail nav .module-link span { display:block; font-size:9px; }
  .rail nav .selected { box-shadow:inset 0 -2px var(--cyan); }
  .content { margin-left:0; padding:0 18px 24px; }
  .topbar { height:68px; margin-bottom:26px; }
  .topbar>div:first-child { gap:10px; }
  .topbar .eyebrow { display:none; }
  .top-actions { gap:6px; }
  .top-actions button { padding:7px 9px; }
  .page-heading { align-items:start; margin-bottom:24px; flex-direction:column; gap:18px; }
  .page-heading h1 { font-size:30px; }
  .page-heading>.actions { width:100%; }
  .card { padding:24px; border-radius:18px; }
  .hero,.grid2,.stack,.overview-primary,.overview-secondary,.overview-bottom,.kpi-layout,.kpi-edit-column,.map-workspace { grid-template-columns:1fr; gap:20px; }
  .overview-primary,.overview-secondary,.hour-history,.period-subsidy,.recent-order { margin-bottom:20px; }
  .income-pair { gap:20px; margin-top:26px; }
  .number { font-size:clamp(28px,8vw,39px); }
  .mini-metrics { gap:16px; margin-top:26px; }
  .mini-metrics .number { font-size:24px; }
  .motion-grid { gap:15px; }
  .motion-grid .number { font-size:30px; }
  .clocks .number { font-size:27px; }
  .kpi-layout>aside .kpi-card { display:block; }
  .kpi-layout>aside .kpi-summary { margin:24px 0; }
  .kpi-tier-grid { grid-template-columns:1fr; gap:22px; }
  .kpi-tier { display:block; padding:20px; }
  .kpi-tier .tier-or { align-self:center; }
  .kpi-tier .form-note { grid-column:1/-1; }
  .editor-actions { align-items:stretch; }
  .editor-actions>.actions { width:100%; }
  .editor-actions button { flex:1; }
  .preview-inputs { gap:16px; }
  .order-row { grid-template-columns:1fr auto; gap:12px 16px; }
  .order-row .order-status { grid-row:2; }
  .order-row .order-amount { text-align:right; }
  .details-grid { grid-template-columns:1fr 1fr; }
  .form-grid { gap:18px; }
  .share-controls { grid-template-columns:1fr; }
  .chart { height:205px; }
  .hour-stat-grid { gap:16px; }
  .hour-stat-grid .number { font-size:26px; }
  #store-map { height:390px; }
  .store-row { flex-wrap:wrap; gap:10px; }
  .store-actions { flex-direction:row; width:100%; margin-left:19px; justify-content:flex-end; }
  .login-shell { display:flex; flex-direction:column; gap:30px; padding:35px 22px; justify-content:center; align-items:stretch; }
  .login-orbit { display:none; }
  .brandmark { font-size:34px; margin-bottom:20px; }
  .login-brand h1 { font-size:37px; }
  .login-brand .eyebrow { font-size:9px; }
  .login-card { padding:28px; }
  .login-card h2 { font-size:25px; }
  .connect-card { grid-template-columns:1fr; }
  .filters input { min-width:100%; }
  .filters select { flex:1; }
  .route-map { height:300px; }
  dialog { padding:22px; }
  footer { font-size:10px; flex-direction:column; gap:8px; }
}
@media(max-width:420px) {
  .content { padding-left:14px; padding-right:14px; }
  .card { padding:20px; }
  .income-pair { grid-template-columns:1fr; gap:26px; }
  .income-pair .number { font-size:43px; }
  .motion-grid .number { font-size:27px; }
  .motion-grid .number small { display:block; margin:7px 0 0; }
  .mini-metrics .number { font-size:21px; }
  .segmented { width:100%; }
  .segmented button { flex:1; min-width:0; padding:7px 10px; font-size:12px; }
  .hour-stat-grid { grid-template-columns:1fr 1fr; }
  .kpi-tier-header { grid-template-columns:minmax(0,1fr) 104px; }
  .kpi-remove { grid-column:2; justify-self:end; }
  .kpi-targets,.kpi-rule-controls,.preview-inputs { grid-template-columns:1fr; gap:12px; }
  .kpi-tier .tier-or { padding:2px 0; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Financial, sharing and account modules retain their established layouts. */
.platform-card h2{margin-top:8px;font-size:20px}.platform-icon{display:grid;place-content:center;width:43px;height:43px;border:1px solid var(--line);border-radius:13px;color:var(--green);background:var(--surface2);font-weight:700;font-size:20px}.platform-icon.blue{color:var(--blue)}.connection-summary{margin:18px 0 16px}.connection-summary .badge{font-size:12px;padding:7px 11px;white-space:normal;display:inline-block}.connection-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px;margin:0}.connection-facts>div{min-width:0}.connection-facts dt{font-size:11px;color:var(--muted)}.connection-facts dd{margin:4px 0 0;font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.platform-actions{margin-top:20px}.estimate-note{margin-top:15px;font-size:11px;color:var(--muted);border-left:2px solid var(--blue);padding-left:10px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.payout-card{margin-bottom:24px}.payout-totals{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:20px 0}.payout-totals .number{font-size:40px}.payout-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}.payout-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-top:1px solid var(--line)}.payout-row>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.payout-row small{color:var(--muted);flex-basis:100%;font-size:11px}.payout-row strong{font-size:23px;white-space:nowrap;font-variant-numeric:tabular-nums}.asset-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:24px}.asset-group-card{position:relative;overflow:hidden;border-top:2px solid var(--blue)}.asset-group-card.crypto-card{border-top-color:var(--cyan)}.asset-group-card.active{box-shadow:inset 0 0 0 1px var(--blue),var(--shadow)}.crypto-card.active{box-shadow:inset 0 0 0 1px var(--cyan),var(--shadow)}.asset-group-card h2{font-size:27px;margin:6px 0 0}.asset-summary{display:grid;grid-template-columns:1.05fr 1fr;gap:20px;margin:26px 0 20px;align-items:center}.asset-summary .number{font-size:39px}.asset-summary>div:last-child{display:grid;gap:16px;border-left:1px solid var(--line);padding-left:23px}.asset-summary>div:last-child .number{font-size:23px}.return-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.return-cell{min-width:0;font-variant-numeric:tabular-nums}.return-cell>strong{display:block;font-size:25px;letter-spacing:-.7px;margin:7px 0;color:var(--ink)}.return-cell>span{display:block;font-size:14px}.return-cell>small{display:block;font-size:10px;color:var(--muted);margin-top:7px;min-height:14px}.broker-profit{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 0 0;font-size:11px;color:var(--muted)}.broker-profit strong{color:var(--ink);font-size:14px;margin-left:6px}.asset-detail-button{margin-top:16px;width:100%;text-align:left;padding:12px 15px}.asset-group-card>.metric-note{min-height:34px}@media(max-width:1350px){.asset-groups{grid-template-columns:1fr}.asset-group-card>.metric-note{min-height:0}}@media(max-width:700px){.asset-groups{gap:16px;margin-bottom:16px}.asset-summary{gap:14px}.asset-summary .number{font-size:33px}.asset-summary>div:last-child{padding-left:16px}.return-grid{gap:10px}.return-cell>strong{font-size:22px}.return-cell>span{font-size:12px}.payout-card{margin-bottom:16px}.payout-totals{gap:15px}.payout-totals .number{font-size:32px}.payout-list{grid-template-columns:1fr}}

.account-funds{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}.account-funds .number{font-size:26px}.projection-card{margin-bottom:24px}.projection-card h2{margin-top:6px;font-size:25px}.projection-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0}.projection-target{background:var(--surface2);padding:22px;border:1px solid var(--line);border-radius:15px;min-width:0}.projection-date{display:block;font-size:15px;font-weight:500;margin:8px 0 18px;font-variant-numeric:tabular-nums}.projection-target .number{font-size:35px;letter-spacing:-1px}.projection-target dl{font-size:11px;margin-top:20px}.projection-target dl>div{display:flex;justify-content:space-between;gap:10px;margin-top:10px}.projection-target dt{color:var(--muted)}.projection-target dd{margin:0;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}.projection-target details .status-row{font-size:11px}.projection-target details .status-row strong{font-size:14px;white-space:nowrap}.projection-form{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:end;gap:18px;padding-top:20px;border-top:1px solid var(--line)}.projection-form button{min-height:42px;margin:0}.projection-card>.form-note{margin-top:16px}@media(max-width:1150px){.projection-targets{gap:15px}.projection-target{padding:18px}.projection-target .number{font-size:29px}.projection-form{grid-template-columns:1fr 1fr}}@media(max-width:700px){.projection-targets{grid-template-columns:1fr}.projection-target .number{font-size:37px}.projection-form{grid-template-columns:1fr}.projection-card{margin-bottom:16px}}

.share-history{margin-top:28px}.share-archive-row{display:flex;align-items:center;gap:24px;padding:24px 0;border-top:1px solid var(--line)}.share-archive-date{flex:0 0 160px;display:flex;align-items:flex-start;flex-direction:column;gap:8px}.share-archive-row small{color:var(--muted)}.share-archive-access{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}.share-archive-access a{overflow-wrap:anywhere}.share-archive-access strong{font-size:20px;letter-spacing:.15em}.share-archive-row .actions{flex-wrap:wrap}#share-history-form{display:flex;flex-direction:column;gap:18px;margin-top:24px}@media(max-width:900px){.share-archive-row{align-items:flex-start;flex-direction:column;gap:16px}.share-archive-date{flex-basis:auto}.share-archive-access{width:100%}}

.capture-record{padding:18px 0;border-bottom:1px solid var(--line,#334155)}.capture-record summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;cursor:pointer}.capture-record summary small{opacity:.6;overflow-wrap:anywhere}.capture-evidence{margin-top:20px}.capture-evidence section{min-width:0}.capture-evidence .status-row strong{overflow-wrap:anywhere;text-align:right}

.provider-sync{display:flex;gap:12px;align-items:flex-start;padding:16px 0;margin:4px 0 12px;border-bottom:1px solid var(--line)}.provider-sync strong,.provider-sync time,.provider-sync small{display:block}.provider-sync strong{font-size:12px;letter-spacing:.04em}.provider-sync time{margin:5px 0;font-variant-numeric:tabular-nums;color:var(--ink);font-size:15px}.provider-sync small{font-size:11px;color:var(--muted)}.sync-light{flex:none;width:7px;height:7px;border-radius:50%;margin-top:5px;background:#c77a69}.sync-light.online{background:#51b491;box-shadow:0 0 0 4px #51b49116}

.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}
.workday-card .section-heading{align-items:flex-start}.workday-card h3{margin-top:8px;font-size:22px}.workday-card .badge{flex:none;margin-top:3px}
.workday-window{display:grid;gap:9px;margin:22px 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.workday-window>span,.workday-window>small{color:var(--muted);font-size:11px;line-height:1.7}.workday-window>strong{font-size:25px;letter-spacing:-.025em;line-height:1.5;color:var(--ink)}
.workday-fields{min-width:0;border:0;padding:0;margin:0}.workday-fields input{min-width:0;width:100%;min-height:48px;font-variant-numeric:tabular-nums;color-scheme:dark}.workday-fields label{min-width:0}
[data-theme="light"] .workday-fields input{color-scheme:light}
.workday-preview{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin:18px 0 12px;font-variant-numeric:tabular-nums}.workday-preview strong{font-size:16px;font-weight:500}.workday-preview span{font-size:13px;color:var(--muted)}
.workday-error{color:var(--red);font-size:12px;line-height:1.7;margin:14px 0}.workday-actions{margin-top:20px;flex-wrap:wrap}.workday-actions button{min-height:44px;margin:0}.workday-card #work-config-result:empty{display:none}
@media(max-width:700px){.workday-card h3{font-size:20px}.workday-window>strong{font-size:23px}.workday-actions{gap:10px}.workday-actions button{flex:1;white-space:nowrap}}

/* Immediate route feedback, without replacing already-read financial data. */
.page-loading{min-height:280px;display:grid;grid-template-columns:42px minmax(0,1fr);align-content:center;gap:20px;padding:clamp(24px,5vw,60px)}
.page-loading h2,.page-loading-error h2{margin:0 0 10px;font-size:clamp(20px,3vw,28px)}
.page-loading p,.page-loading-error p{color:var(--muted);line-height:1.7}
.loading-orbit{width:34px;height:34px;border:2px solid var(--line);border-top-color:var(--cyan);border-radius:50%;animation:loading-orbit 1.2s linear infinite}
.loading-lines{grid-column:2;display:grid;gap:12px;max-width:560px;margin-top:10px}
.loading-lines i{height:12px;width:100%;border-radius:8px;background:linear-gradient(90deg,var(--line),transparent,var(--line));background-size:200% 100%;animation:loading-shimmer 2.4s ease-in-out infinite}
.loading-lines i:nth-child(2){width:82%}.loading-lines i:nth-child(3){width:58%}
.page-read-status{color:var(--muted);font-size:13px;padding:4px 0 14px;min-height:30px}.page-read-status.error{color:var(--red)}
.page-loading-error{padding:32px}.page-loading-error button{margin-top:12px}
.bill-pager{border-top:1px solid var(--line);padding:16px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}
.bill-pager .actions{gap:6px}.bill-pager button{padding:8px 10px;font-size:12px}
@keyframes loading-orbit{to{transform:rotate(360deg)}}
@keyframes loading-shimmer{50%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.loading-orbit,.loading-lines i{animation:none}}

.crypto-accounting-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:18px 0;border-top:1px solid var(--line)}.crypto-accounting-summary .number{font-size:22px;letter-spacing:-.03em}.crypto-ledger{margin-bottom:24px}.crypto-ledger h3{font-size:22px;margin:8px 0}.crypto-ledger table{font-variant-numeric:tabular-nums}.crypto-quantity{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;white-space:nowrap}.crypto-ledger summary{padding:18px 0;cursor:pointer;font-size:13px;color:var(--ink)}.period-gap{font-size:10px;color:var(--muted);line-height:1.5;margin-top:8px}.crypto-ledger>.metric-note{margin:18px 0}.crypto-ledger td small{max-width:200px;line-height:1.5}@media(max-width:700px){.crypto-accounting-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.crypto-accounting-summary .number{font-size:23px}.crypto-ledger{margin-bottom:16px}}
