:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #000;
  --line: #242424;
  --line-soft: #171717;
  --text: #ededed;
  --muted: #858585;
  --focus: #c8d8ff;
  --warn: #e4b86a;
  --danger: #ed7c7c;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; color: var(--text); }
body { font: 14px/1.4 Inter, "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.shell { max-width: 1240px; margin: 0 auto; padding: 0 22px 96px; }
header { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
h1 { font-size: 18px; margin: 0 0 2px; font-weight: 650; letter-spacing: .2px; }
.muted { color: var(--muted); font-size: 12px; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #9bb6f8; box-shadow: 0 0 8px #718fd8; }
.dot.offline { background: var(--danger); box-shadow: 0 0 8px #9d4242; }
main { padding: 20px 0; }
.columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .8fr); gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); background: var(--panel); margin-bottom: 16px; }
.section-title { padding: 9px 12px; border-bottom: 1px solid var(--line); color: #adadad; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.section-title-tools { display: flex; align-items: center; justify-content: space-between; }
.section-summary { color: #686868; font-weight: 500; letter-spacing: 0; text-transform: none; }
.section-actions { display: flex; align-items: center; gap: 10px; }
.text-button { border: 0; background: transparent; color: #9a9a9a; padding: 0; font-size: 11px; }
.text-button:hover { border: 0; background: transparent; color: var(--text); }
.icon-button { border: 0; background: transparent; color: #8f8f8f; padding: 0 3px; font-size: 17px; line-height: 16px; }
.icon-button:hover { background: transparent; color: var(--text); }
.row { display: grid; grid-template-columns: 115px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 38px; padding: 7px 12px; border-top: 1px solid var(--line-soft); }
.row:first-child { border-top: 0; }
.row-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.row-main { min-width: 0; overflow-wrap: anywhere; }
.row-meta { color: var(--muted); font-size: 12px; text-align: right; }
.empty { color: var(--muted); padding: 18px 12px; }
.compact .row, .row.compact { grid-template-columns: minmax(0, 1fr) auto; min-height: 34px; }
.empty.compact { padding: 12px; }
.vehicle-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 7px 12px; border-top: 1px solid var(--line-soft); }
.vehicle-row:first-child { border-top: 0; }
.vehicle-row.has-history { cursor: pointer; }
.vehicle-row.has-history:hover { background: #0d0d0d; }
.vehicle-main { min-width: 0; }
.vehicle-name { font-weight: 600; }
.vehicle-service { margin-top: 1px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-count { color: var(--muted); border: 1px solid var(--line); border-radius: 3px; min-width: 20px; padding: 1px 5px; text-align: center; font-size: 10px; }
.tag { display: inline-block; padding: 2px 6px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; border-radius: 3px; }
.tag.active { color: var(--focus); border-color: #34415d; }
.tag.waiting { color: var(--warn); border-color: #53442c; }
.tag.syncing { color: #d8c88d; border-color: #655c38; }
.tag.error { color: var(--danger); border-color: #673939; }
.state-alert { color: var(--danger); }
.state-needs-input { color: var(--warn); }
.state-queued { color: var(--focus); }
.integration { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line-soft); }
.integration:first-child { border-top: 0; }
.connection-row { min-height: 46px; }
.connection-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.connection-main small { max-width: 220px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-error { box-shadow: inset 2px 0 #b94a4a; }
.text-button.has-errors { color: var(--danger); }
.status-line { padding: 7px 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.money-value { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.order-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) minmax(130px, auto); gap: 10px; align-items: center; min-height: 45px; padding: 6px 12px; border-top: 1px solid var(--line-soft); }
.order-row:first-child { border-top: 0; }
.order-main { min-width: 0; }
.order-name { font-weight: 600; }
.order-details { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.order-status { text-align: right; font-size: 12px; }
.order-ready { box-shadow: inset 2px 0 #9bb6f8; }
.state-ready { color: var(--focus); }
.state-expected { color: #c7c7c7; }
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.budget-item { min-width: 0; padding: 10px 12px; border-left: 1px solid var(--line-soft); }
.budget-item:first-child { border-left: 0; }
.budget-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.budget-value { margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.budget-item.savings .budget-value { color: var(--focus); }
.budget-item.savings { cursor: pointer; }
.budget-item.savings:hover { background: #0d0d0d; }
.budget-item.debt .budget-value { color: var(--danger); }
.transaction-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 112px 112px; gap: 10px; align-items: center; min-height: 46px; padding: 6px 12px; border-top: 1px solid var(--line-soft); }
.transaction-row:first-child { border-top: 0; }
.transaction-date, .transaction-meta { color: var(--muted); font-size: 11px; }
.transaction-main { min-width: 0; }
.transaction-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.transaction-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.transaction-amount.expense { color: #d6d6d6; }
.transaction-amount.income { color: var(--focus); }
.bucket { justify-self: end; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; font-size: 10px; text-transform: uppercase; }
.bucket-needs { color: #c7c7c7; }
.bucket-savings { color: var(--focus); border-color: #34415d; }
.bucket-unassigned { color: var(--warn); border-color: #53442c; }
.bucket-salary { color: var(--focus); border-color: #34415d; }
.classify-actions { display: flex; justify-content: flex-end; gap: 4px; }
.mini-action { border: 0; background: transparent; color: var(--muted); padding: 2px 3px; font-size: 10px; }
.mini-action:hover { border: 0; background: transparent; color: var(--text); }
.mini-action.active { color: var(--focus); text-decoration: underline; text-underline-offset: 3px; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(0, 0, 0, .82); }
.modal.hidden { display: none; }
.modal-panel { width: min(980px, 100%); max-height: min(820px, calc(100vh - 44px)); overflow: hidden; border: 1px solid #333; background: #000; box-shadow: 0 24px 80px #000; }
.modal-title { background: #000; }
.modal-rows { max-height: calc(100vh - 100px); overflow-y: auto; }
.modal-open { overflow: hidden; }
.maintenance-modal-panel { width: min(620px, 100%); }
.maintenance-form { display: grid; grid-template-columns: minmax(0, 1fr) 130px 130px auto; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.maintenance-form input { min-width: 0; border: 1px solid var(--line); }
.maintenance-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 42px; padding: 7px 12px; border-top: 1px solid var(--line-soft); }
.maintenance-row:first-child { border-top: 0; }
.maintenance-date { color: var(--muted); font-size: 11px; }
.maintenance-mileage { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.savings-modal-panel { width: min(760px, 100%); overflow-y: auto; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 12px; align-items: center; padding: 13px 12px; border-top: 1px solid var(--line-soft); }
.settings-row:first-of-type { border-top: 0; }
.settings-label { font-weight: 600; }
.settings-help, .settings-note { color: var(--muted); font-size: 11px; }
.settings-help { margin-top: 2px; }
.settings-note { padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.settings-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.number-control { display: flex; align-items: center; border: 1px solid var(--line); background: #000; }
.number-control input { width: 100%; text-align: right; }
.number-control span { padding-right: 10px; color: var(--muted); }
.settings-row > input { border: 1px solid var(--line); }
.settings-actions { display: flex; gap: 5px; }
.settings-actions button { white-space: nowrap; }
.savings-split { padding: 13px 12px; border-top: 1px solid var(--line-soft); }
.savings-split-head { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; align-items: center; }
.savings-split-head > input { border: 1px solid var(--line); }
.savings-split-rows { margin-top: 11px; border-top: 1px solid var(--line-soft); }
.savings-split-row { display: grid; grid-template-columns: minmax(120px, 1fr) 92px 105px 92px 20px; gap: 6px; align-items: center; min-height: 39px; border-bottom: 1px solid var(--line-soft); }
.savings-split-row > input { background: transparent; padding-left: 0; }
.savings-split-row select { min-width: 0; border: 1px solid var(--line); outline: 0; background: #000; color: var(--text); padding: 7px 8px; }
.savings-split-value { display: flex; align-items: center; border: 1px solid var(--line); background: #000; }
.savings-split-value input { width: 100%; padding: 7px 8px; text-align: right; }
.savings-split-value span { min-width: 16px; padding-right: 7px; color: var(--muted); }
.savings-split-row strong { color: #bdbdbd; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.savings-split-remove { justify-self: end; }
.savings-split-add-row { padding-top: 6px; }
.savings-split-error { margin-top: 6px; color: var(--danger); font-size: 11px; }
.savings-split-result { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.savings-split-result > div { display: flex; flex-direction: column; gap: 2px; }
.savings-split-result span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.savings-split-result strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.savings-split-result > div:nth-child(2) strong { color: var(--focus); }
.savings-split-result button:disabled { cursor: default; opacity: .45; }
.planner-home-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 46px; padding: 7px 12px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.planner-home-row:first-child { border-top: 0; }
.planner-home-row:hover { background: #0d0d0d; }
.planner-home-time { color: var(--muted); font-size: 11px; }
.planner-home-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.planner-home-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planner-home-main span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planner-kind { color: #a8b8d8; border: 1px solid #34415d; padding: 1px 5px; border-radius: 3px; font-size: 9px; text-transform: uppercase; }
.planner-kind.automatic { color: var(--warn); border-color: #53442c; }
.planner-modal-panel { width: min(1080px, 96vw); max-height: min(880px, 94vh); overflow-y: auto; }
.planner-form { padding: 14px 12px; border-bottom: 1px solid var(--line); background: #000; }
.planner-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.planner-field { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.planner-field-wide { grid-column: span 2; }
.planner-field input { border: 1px solid var(--line); color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400; }
.planner-number { display: flex; align-items: center; border: 1px solid var(--line); background: #000; }
.planner-number input { width: 100%; border: 0; text-align: right; }
.planner-number span { padding-right: 9px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.planner-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.planner-columns { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 360px; }
.planner-columns > section + section { border-left: 1px solid var(--line); }
.planner-subtitle { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.planner-list { min-height: 120px; }
.planner-event-row, .planner-task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 62px; padding: 7px 10px 7px 12px; border-bottom: 1px solid var(--line-soft); }
.planner-row-main { min-width: 0; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 1px 9px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.planner-row-main:hover { border: 0; background: transparent; }
.planner-row-main .planner-row-date { grid-row: 1 / span 2; color: var(--muted); font-size: 11px; align-self: center; }
.planner-row-main strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.planner-row-main small { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planner-row-actions { display: flex; gap: 5px; align-items: center; }
.diagnostics-modal-panel { width: min(820px, 96vw); }
.remote-auth-panel { width: min(460px, 100%); }
.remote-auth-form { display: grid; gap: 12px; padding: 18px; }
.remote-auth-form div { display: flex; flex-direction: column; gap: 3px; }
.remote-auth-form span { color: var(--muted); font-size: 11px; }
.remote-auth-form input { border: 1px solid var(--line); }
.phone-setup-panel { width: min(560px, calc(100vw - 28px)); }
.phone-setup-content { padding: 16px; display: grid; gap: 16px; }
.phone-setup-content p { margin: 0; color: #b6b6b6; }
.phone-setup-content a { color: #d8e4ff; }
.phone-setup-content label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.phone-setup-content label div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.phone-setup-content input { width: 100%; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.phone-setup-content small { color: #666; }
.diagnostics-list { max-height: min(720px, calc(100vh - 100px)); overflow-y: auto; }
.diagnostic-row { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border-top: 1px solid var(--line-soft); }
.diagnostic-row:first-child { border-top: 0; }
.diagnostic-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.diagnostic-row strong { color: #e0a0a0; font-size: 12px; }
.diagnostic-row strong b { margin-left: 5px; color: var(--warn); font-weight: 700; }
.diagnostic-row code { display: block; padding: 7px 8px; border: 1px solid var(--line); background: #030303; color: #aaa; font: 11px/1.4 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.inline-form { display: flex; border-top: 1px solid var(--line); }
input { min-width: 0; border: 0; outline: 0; background: #000; color: var(--text); padding: 10px 12px; }
input::placeholder { color: #555; }
.inline-form input { flex: 1; }
button { border: 1px solid #333; background: #151515; color: #d8d8d8; padding: 7px 11px; }
button:hover { background: #202020; border-color: #444; }
.inline-form button { border-width: 0 0 0 1px; }
.question { padding: 13px 12px; }
.question-text { margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.composer { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(860px, calc(100% - 28px)); display: flex; border: 1px solid #333; background: #000; box-shadow: 0 14px 50px #000; }
.composer input { flex: 1; height: 48px; font-size: 15px; }
.composer button { border-width: 0 0 0 1px; min-width: 100px; }
.toast { position: fixed; right: 20px; bottom: 82px; max-width: 420px; padding: 10px 12px; border: 1px solid #3d3d3d; background: #111; box-shadow: 0 12px 35px #000; }
.hidden { display: none; }

.sea-summary { border: 1px solid var(--line); border-left: 3px solid #64748b; padding: 12px; cursor: pointer; background: #000; }
.sea-summary:hover { background: #0a0a0a; }
.sea-summary.rating-likely { border-left-color: #38bdf8; }
.sea-summary.rating-possible { border-left-color: #a3e635; }
.sea-summary.rating-rough { border-left-color: #fb923c; }
.sea-summary-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sea-summary-main { margin-top: 4px; font-size: 16px; font-weight: 650; }
.sea-summary-meta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.sea-modal-panel { width: min(1500px, 96vw); height: min(900px, 92vh); display: flex; flex-direction: column; }
.sea-modal-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 0; flex: 1; overflow: hidden; }
.sea-location-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 12px 8px 20px 0; }
.sea-location-group + .sea-location-group { margin-top: 18px; }
.sea-area-label { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 0 8px 6px; }
.sea-location-button { width: 100%; text-align: left; background: transparent; border: 0; border-left: 2px solid transparent; padding: 8px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.sea-location-button:hover { background: #0b0b0b; color: var(--text); }
.sea-location-button.active { border-left-color: #60a5fa; color: var(--text); background: #0b0b0b; }
.sea-location-button small { font-size: 10px; color: #6b7280; }
.sea-detail { min-width: 0; overflow-y: auto; padding: 12px 0 24px 14px; }
.sea-location-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 12px 0; }
.sea-location-heading div { display: flex; flex-direction: column; gap: 2px; }
.sea-location-heading span { color: var(--muted); font-size: 11px; }
.sea-location-heading a { color: #93c5fd; font-size: 12px; text-decoration: none; }
.sea-table-scroll { overflow-x: auto; border: 1px solid var(--line); }
.sea-table { border-collapse: collapse; min-width: 1100px; width: max-content; font-variant-numeric: tabular-nums; }
.sea-table th, .sea-table td { height: 29px; min-width: 38px; padding: 3px 5px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #050505; }
.sea-table thead th { color: var(--text); background: #0a0a0a; height: 42px; }
.sea-table thead th span, .sea-table thead th small { display: block; }
.sea-table thead th small { color: var(--muted); font-weight: 400; margin-top: 2px; }
.sea-table .sea-metric { position: sticky; left: 0; z-index: 2; min-width: 92px; text-align: left; color: var(--muted); background: #070707; font-weight: 500; }
.sea-table thead .sea-metric { z-index: 3; }
.sea-table .sea-metric small { color: #616161; font-weight: 400; }
.sea-value { background: var(--cell, #d1d5db); white-space: nowrap; }
.sea-time { color: #0a0a0a; font-weight: 650; }
.sea-time.rating-likely { background: #bfdbfe; }
.sea-time.rating-possible { background: #bef264; }
.sea-time.rating-rough { background: #fdba74; }
.sea-arrow { display: inline-block; margin-right: 2px; font-size: 9px; transform-origin: center; }
.sea-outcomes { margin-top: 14px; padding-right: 14px; }
.sea-outcome-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sea-outcome-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.sea-outcome-row span { color: var(--muted); font-size: 11px; }
.sea-outcome-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 760px) {
  body { min-height: 100dvh; }
  .shell { padding: env(safe-area-inset-top, 0px) 10px calc(90px + env(safe-area-inset-bottom, 0px)); }
  header { height: 62px; }
  .columns { grid-template-columns: 1fr; }
  .row { grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
  .row-meta { grid-column: 2; text-align: left; margin-top: -4px; }
  .transaction-row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 7px; }
  .order-row { grid-template-columns: 72px minmax(0, 1fr); gap: 7px; }
  .order-status { grid-column: 2; text-align: left; margin-top: -4px; }
  .transaction-amount { grid-column: 2; text-align: left; margin-top: -4px; }
  .bucket { grid-column: 3; grid-row: 1 / span 2; }
  .budget-grid { grid-template-columns: 1fr; }
  .budget-item { border-left: 0; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; }
  .budget-item:first-child { border-top: 0; }
  .budget-value { margin-top: 0; }
  button { min-width: 44px; min-height: 44px; padding: 10px 13px; touch-action: manipulation; }
  input, select { min-height: 46px; }
  .icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; line-height: 1; }
  .text-button { min-height: 44px; padding: 0 9px; font-size: 13px; }
  .section-title { min-height: 52px; padding: 4px 12px; }
  .section-actions { gap: 2px; }
  .modal { place-items: stretch; padding: max(0px, env(safe-area-inset-top, 0px)) 0 max(0px, env(safe-area-inset-bottom, 0px)); background: #000; }
  .modal-panel { max-height: calc(100vh - 16px); }
  .section-summary { display: none; }
  .maintenance-row { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
  .maintenance-mileage { grid-column: 2; text-align: left; margin-top: -4px; color: var(--muted); font-size: 11px; }
  .maintenance-form { grid-template-columns: 1fr 110px; }
  .maintenance-form button { grid-column: 1 / -1; }
  .settings-row { grid-template-columns: 1fr; gap: 8px; }
  .settings-actions { justify-content: stretch; }
  .settings-actions button { flex: 1; }
  .savings-split-head { grid-template-columns: 1fr; }
  .savings-split-row { grid-template-columns: minmax(0, 1fr) 82px 90px 20px; padding: 6px 0; }
  .savings-split-row > input { grid-column: 1 / -1; padding: 5px 0; }
  .savings-split-row strong { text-align: right; }
  .savings-split-result { grid-template-columns: 1fr 1fr; }
  .savings-split-result button { grid-column: 1 / -1; }
  .planner-home-row { grid-template-columns: 70px minmax(0, 1fr) auto; padding: 7px 9px; }
  .planner-modal-panel { width: 100%; height: 100%; max-height: none; border: 0; }
  .planner-form-grid { grid-template-columns: 1fr; }
  .planner-field-wide { grid-column: auto; }
  .planner-columns { grid-template-columns: 1fr; }
  .planner-columns > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .planner-row-main { grid-template-columns: 70px minmax(0, 1fr); }
  .planner-event-row, .planner-task-row { align-items: stretch; min-height: 96px; padding-right: 4px; }
  .planner-row-main { min-height: 88px; align-content: center; }
  .planner-row-actions { flex-direction: column; gap: 0; }
  .planner-row-actions button { min-width: 74px; min-height: 44px; font-size: 13px; }
  .diagnostics-modal-panel { width: 100%; height: 100%; max-height: none; border: 0; }
  .diagnostics-list { max-height: calc(100dvh - 38px); }
  .sea-modal-panel { width: 100%; height: 100%; max-height: none; border: 0; }
  .sea-modal-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .sea-location-list { display: flex; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 0; overflow-x: auto; }
  .sea-location-group { display: contents; }
  .sea-location-group + .sea-location-group { margin: 0; }
  .sea-area-label { display: none; }
  .sea-location-button { width: auto; min-width: max-content; border-left: 0; border-bottom: 2px solid transparent; }
  .sea-location-button.active { border-left: 0; border-bottom-color: #60a5fa; }
  .sea-detail { padding-left: 8px; }
  .sea-outcome-row { align-items: flex-start; flex-direction: column; }
  .sea-outcome-actions { justify-content: flex-start; }
  .connection span:last-child { display: none; }
  main { padding-top: 10px; }
  .panel { margin-bottom: 10px; }
  .composer { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}
