:root {
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #f0f2eb;
  background: #10130f;
  font-synthesis: none;
  --bg: #10130f;
  --surface: #171b16;
  --surface-raised: #1d221c;
  --line: #30372d;
  --text: #f0f2eb;
  --muted: #aeb7a7;
  --accent: #b9e769;
  --accent-ink: #172008;
  --danger: #ff9b8d;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body, #root { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100dvh; background: var(--bg); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 3vw, 3.15rem); line-height: 1; letter-spacing: -0.045em; }
h2 { letter-spacing: -0.025em; }

.eyebrow { margin-bottom: 12px; color: var(--accent); font: 700 0.76rem/1.2 ui-monospace, "Cascadia Code", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -0.02em; }
.brand svg, .boot-mark svg { color: var(--accent); }

.center-screen { min-height: 100dvh; display: grid; place-content: center; justify-items: center; padding: 32px; text-align: center; }
.center-screen h1 { margin-bottom: 28px; }
.boot-mark { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.loading-line { width: min(320px, 70vw); height: 3px; overflow: hidden; border-radius: 2px; background: var(--line); }
.loading-line span { display: block; width: 45%; height: 100%; background: var(--accent); animation: load 1.2s ease-in-out infinite alternate; }
@keyframes load { from { transform: translateX(-20%); } to { transform: translateX(145%); } }
.error-screen svg { color: var(--danger); margin-bottom: 22px; }
.screen-copy { max-width: 520px; color: var(--muted); line-height: 1.6; }

.primary-button, .secondary-button, .danger-button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; padding: 0 24px; border: 0; font-weight: 750; cursor: pointer; transition: transform 120ms ease, background 120ms ease; white-space: nowrap; }
.primary-button { color: var(--accent-ink); background: var(--accent); }
.secondary-button { color: var(--text); background: var(--surface-raised); border: 1px solid var(--line); }
.danger-button { color: #ffe3df; background: #552820; border: 1px solid #804035; }
.primary-button:hover { background: #c8f17f; }
.secondary-button:hover { background: #262c24; }
.danger-button:hover { background: #683127; }
.primary-button:active, .secondary-button:active, .danger-button:active, .nav-item:active { transform: scale(0.98); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.account-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); }
.account-context { display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; padding: clamp(32px, 5vw, 76px); border-right: 1px solid var(--line); background: radial-gradient(circle at 20% 55%, rgba(185, 231, 105, 0.08), transparent 33%), var(--bg); }
.account-context h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(3rem, 6vw, 6.4rem); }
.account-context > div > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.local-note { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.account-form-wrap { display: grid; place-items: center; padding: 42px; background: var(--surface); }
.account-form { width: min(100%, 460px); }
.account-form h2 { margin-bottom: 36px; font-size: 1.8rem; }
.account-form label { display: grid; gap: 9px; margin-bottom: 22px; color: #dce1d7; font-weight: 650; }
.account-form input { min-height: 60px; width: 100%; padding: 0 16px; color: var(--text); background: #10140f; border: 1px solid #465043; border-radius: 10px; }
.account-form small { color: var(--muted); font-weight: 450; }
.account-form .primary-button { width: 100%; margin-top: 10px; }
.form-error, .status-error { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 16px; color: #ffd5cf; background: #321d19; border: 1px solid #6b332a; border-radius: 10px; }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 18px 18px; border-right: 1px solid var(--line); background: #121610; }
.brand-compact { padding: 0 12px 30px; }
.sidebar nav { display: grid; gap: 8px; }
.nav-item { min-height: 58px; width: 100%; display: flex; align-items: center; gap: 13px; padding: 0 14px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.nav-item.active { color: var(--accent-ink); background: var(--accent); }
.nav-item small { margin-left: auto; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-item.logout { margin-top: auto; }

.dashboard { min-width: 0; padding: clamp(26px, 3.4vw, 52px); }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.connection-state { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 15px; color: var(--muted); font-weight: 700; }
.connection-state span { width: 9px; height: 9px; border-radius: 50%; background: #86907f; }
.connection-state.live span { background: var(--accent); box-shadow: 0 0 0 5px rgba(185, 231, 105, 0.1); }
.connection-state.offline span { background: var(--danger); }
.status-error { margin: 0 0 20px; }
.status-error button { margin-left: auto; color: #ffe6e2; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }

.status-layout { display: grid; gap: 18px; }
.health-summary { display: grid; grid-template-columns: minmax(340px, 1.2fr) minmax(460px, 1fr); align-items: center; min-height: 150px; padding: 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.summary-heading { display: flex; align-items: center; gap: 18px; }
.health-icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--accent); background: rgba(185, 231, 105, 0.08); border-radius: 12px; }
.summary-heading p { margin: 0 0 5px; color: var(--muted); }
.summary-heading h2 { margin: 0; font-size: 1.65rem; }
.summary-details { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.summary-details div { padding-left: 22px; border-left: 1px solid var(--line); }
.summary-details dt, .system-strip span { margin-bottom: 7px; color: var(--muted); font-size: 0.8rem; }
.summary-details dd { margin: 0; font: 700 1.05rem/1.2 ui-monospace, "Cascadia Code", monospace; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.metric-label svg { color: var(--accent); flex: none; }
.metric-value { display: block; overflow: hidden; margin: 25px 0 7px; font: 750 clamp(1.55rem, 2vw, 2.35rem)/1 ui-monospace, "Cascadia Code", monospace; letter-spacing: -0.06em; text-overflow: ellipsis; white-space: nowrap; }
.metric p { min-height: 2.6em; margin: 0; color: var(--muted); font-size: 0.83rem; line-height: 1.35; }
.meter { height: 3px; margin-top: 17px; background: var(--line); }
.meter span { display: block; height: 100%; background: var(--accent); }
.system-strip { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr 1fr; gap: 28px; padding: 22px 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.system-strip div { min-width: 0; display: grid; }
.system-strip strong { overflow: hidden; color: #d9dfd3; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }

.activity-layout { display: grid; gap: 18px; }
.activity-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.activity-summary > div { min-height: 82px; display: grid; align-content: center; gap: 7px; padding: 15px 20px; background: var(--surface); }
.activity-summary span { color: var(--muted); font-size: 0.76rem; }
.activity-summary strong { font: 750 1.25rem/1 ui-monospace, "Cascadia Code", monospace; }
.activity-summary button { margin: 0 16px; }
.activity-message { display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #ffd5cf; background: #321d19; border: 1px solid #6b332a; border-radius: 9px; font-size: 0.8rem; }
.activity-panel { min-width: 0; padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.activity-heading h2 { margin: 0 0 5px; font-size: 1.12rem; }
.activity-heading p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.activity-heading > span { color: var(--accent); font: 0.72rem/1.4 ui-monospace, "Cascadia Code", monospace; text-transform: uppercase; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.client-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 11px; min-height: 55px; padding: 9px 13px; background: #121610; border-radius: 8px; }
.client-row div { min-width: 0; display: grid; gap: 3px; }
.client-row strong, .client-row small, .client-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-row strong { font-size: 0.86rem; }
.client-row small, .client-row > span:last-child { color: var(--muted); font-size: 0.7rem; }
.client-row code { color: #cbd3c5; font-size: 0.72rem; }
.client-dot { width: 8px; height: 8px; border-radius: 50%; background: #777f72; }
.client-dot.online { background: var(--accent); box-shadow: 0 0 0 4px rgba(185, 231, 105, 0.09); }
.activity-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.activity-table-wrap { max-height: 285px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.activity-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.activity-table th { position: sticky; top: 0; z-index: 1; padding: 10px 11px; color: var(--muted); background: #151914; font-size: 0.67rem; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.activity-table td { max-width: 280px; padding: 10px 11px; border-top: 1px solid var(--line); white-space: nowrap; }
.activity-table td.request-name { overflow: hidden; text-overflow: ellipsis; }
.activity-table td small { display: block; margin-top: 3px; color: var(--muted); }
.activity-table code { color: #d7ded2; font-size: 0.72rem; }
.activity-empty { min-height: 74px; display: grid; place-items: center; padding: 18px; color: var(--muted); font-size: 0.8rem; text-align: center; }
.activity-privacy { margin: 0; color: var(--muted); font-size: 0.72rem; text-align: right; }

.settings-page { min-width: 0; width: 100%; display: grid; gap: 18px; }
.mobile-settings-layout { grid-template-columns: minmax(340px, 0.8fr) minmax(420px, 1.2fr); }
.bluetooth-control { display: grid; gap: 14px; margin: 22px 0; padding: 17px; background: #10140f; border: 1px solid var(--line); border-radius: 11px; }
.bluetooth-state { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bluetooth-state > div { min-width: 0; display: grid; gap: 4px; }
.bluetooth-state small { overflow: hidden; color: var(--muted); font-size: 0.74rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.bluetooth-visible { padding: 5px 8px; color: var(--accent); background: rgba(185, 231, 105, 0.08); border: 1px solid rgba(185, 231, 105, 0.22); border-radius: 999px; font-size: 0.66rem; font-weight: 750; text-transform: uppercase; }
.bluetooth-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.bluetooth-actions button { min-height: 44px; }
.pairing-code { display: grid; justify-items: center; gap: 8px; margin: 28px 0 20px; padding: 24px; background: #10140f; border: 1px solid var(--line); border-radius: 12px; }
.pairing-code span, .pairing-code small { color: var(--muted); font-size: 0.78rem; }
.pairing-code strong { color: var(--accent); font: 800 2.7rem/1 ui-monospace, "Cascadia Code", monospace; letter-spacing: 0.18em; }
.mobile-device-list { display: grid; gap: 9px; margin-top: 22px; }
.mobile-device { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 65px; padding: 10px 12px; background: #121610; border-radius: 10px; }
.mobile-device > svg { color: var(--accent); }
.mobile-device div { min-width: 0; display: grid; gap: 4px; }
.mobile-device small { overflow: hidden; color: var(--muted); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.settings-page > [role="tabpanel"] { min-width: 0; width: 100%; max-width: 100%; }
.settings-tabs { width: fit-content; display: flex; gap: 5px; padding: 5px; background: #121610; border: 1px solid var(--line); border-radius: 12px; }
.settings-tabs button { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 19px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; transition: color 160ms ease, background 160ms ease, transform 120ms ease; }
.settings-tabs button:hover { color: var(--text); background: var(--surface-raised); }
.settings-tabs button:active { transform: scale(0.98); }
.settings-tabs button.active { color: var(--accent-ink); background: var(--accent); }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr); gap: 18px; align-items: start; }
.system-settings-layout { display: grid; grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.update-panel { grid-row: span 2; }
.settings-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.network-panel { grid-column: 1 / -1; }
.network-overview { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 1px; margin: 28px 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.network-mode, .network-adapter { min-width: 0; padding: 19px; background: #121610; }
.network-mode span, .network-adapter span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 0.78rem; }
.network-mode strong, .network-adapter strong { display: block; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.network-mode p { min-height: 2.7em; margin: 9px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.network-mode small, .network-adapter small { display: block; overflow: hidden; margin-top: 9px; color: #899183; font: 0.72rem/1.3 ui-monospace, "Cascadia Code", monospace; text-overflow: ellipsis; white-space: nowrap; }
.mode-dual_radio strong, .mode-offline_hotspot strong { color: var(--accent); }
.mode-error strong, .mode-degraded strong { color: var(--danger); }
.network-failure { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; color: #ffc8bf; font-size: 0.82rem; line-height: 1.45; }
.network-failure svg { flex: none; }
.network-notice { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--accent); }
.text-button { width: auto; padding: 0 20px; font-size: inherit; }
.hotspot-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.hotspot-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hotspot-form-heading h3 { margin: 0 0 6px; font-size: 1.05rem; }
.hotspot-form-heading p { margin: 0; color: var(--muted); font-size: 0.83rem; }
.hotspot-form-heading > span { color: var(--accent); font: 0.75rem/1.4 ui-monospace, "Cascadia Code", monospace; }
.hotspot-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 20px; }
.hotspot-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 0.78rem; }
.hotspot-fields input { width: 100%; min-height: 52px; padding: 0 13px; color: var(--text); background: #10140f; border: 1px solid #465043; border-radius: 9px; }
.settings-title { display: flex; align-items: flex-start; gap: 18px; }
.settings-title h2, .compact-panel h2 { margin-bottom: 8px; font-size: 1.45rem; }
.settings-title p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.5; }
.settings-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; color: var(--accent); background: rgba(185, 231, 105, 0.08); border-radius: 12px; }
.update-facts { display: grid; grid-template-columns: 0.7fr 1fr 1fr 1.2fr; gap: 20px; margin: 30px 0 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.update-facts div { display: grid; gap: 7px; }
.update-facts dt, .behavior-list dt { color: var(--muted); font-size: 0.8rem; }
.update-facts dd, .behavior-list dd { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 700; }
.update-facts code { font-family: ui-monospace, "Cascadia Code", monospace; color: #dce4d6; }
.update-state.failed { color: var(--danger); }
.update-state.success, .update-state.current, .update-state.available, .update-state.building, .update-state.checking { color: var(--accent); }
.update-message { min-height: 56px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px; color: #dce4d6; background: #121610; border-radius: 10px; }
.update-message svg { flex: none; color: var(--accent); }
.update-message .ph-warning-circle { color: var(--danger); }
.settings-actions { display: flex; gap: 12px; margin-top: 22px; }
.settings-note { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.power-panel .network-notice { margin-top: 24px; }
.power-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.behavior-list { display: grid; gap: 24px; margin: 26px 0 0; }
.behavior-list div { display: grid; gap: 7px; }
.behavior-list dd { color: #dce4d6; }
.shell-panel { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.shell-loading { min-width: 0; width: 100%; max-width: 100%; min-height: 420px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.shell-toolbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.shell-toolbar > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 9px; }
.shell-toolbar strong { font-size: 0.87rem; }
.shell-toolbar small { grid-column: 2; color: var(--muted); font: 0.7rem/1.2 ui-monospace, "Cascadia Code", monospace; }
.shell-state { grid-row: 1 / 3; width: 9px; height: 9px; border-radius: 50%; background: #7c8477; }
.shell-state.ready { background: var(--accent); box-shadow: 0 0 0 5px rgba(185, 231, 105, 0.08); }
.shell-state.error { background: var(--danger); }
.terminal-host { contain: inline-size; min-width: 0; width: 100%; max-width: 100%; height: min(590px, calc(100dvh - 290px)); min-height: 360px; overflow: hidden; padding: 16px 12px; background: #0b0e0a; }
.terminal-host .xterm { width: 100%; max-width: 100%; height: 100%; }
.shell-panel > .settings-note { margin: 0; padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.shell-panel code { color: #dce4d6; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(8, 10, 8, 0.78); }
.confirm-dialog { width: min(520px, 100%); padding: 28px; background: var(--surface-raised); border: 1px solid #465043; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(3, 5, 3, 0.45); }
.confirm-dialog h2 { margin-bottom: 12px; font-size: 1.6rem; }
.confirm-dialog p { color: var(--muted); line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }

.skeleton-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skeleton-grid div { min-height: 210px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-raised) 50%, var(--surface) 70%); background-size: 220% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-grid div:first-child { grid-column: 1 / -1; min-height: 150px; }
@keyframes shimmer { to { background-position-x: -220%; } }
.spin { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 86px minmax(0, 1fr); }
  .brand-compact span, .nav-item span, .nav-item small { display: none; }
  .brand-compact, .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
  .health-summary { grid-template-columns: 1fr; gap: 24px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .system-settings-layout { grid-template-columns: 1fr; }
  .update-panel { grid-row: auto; }
  .network-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotspot-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-summary button { margin: 12px; }
  .activity-columns { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-context { min-height: auto; gap: 64px; padding: 28px 22px 38px; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-context h1 { font-size: 3rem; }
  .account-form-wrap { padding: 38px 22px; }
  .app-shell { display: block; padding-bottom: 76px; }
  .sidebar { position: fixed; top: auto; bottom: 0; z-index: 10; width: 100%; height: 72px; flex-direction: row; padding: 8px 12px; border-top: 1px solid var(--line); border-right: 0; }
  .brand-compact { display: none; }
  .sidebar nav { display: flex; flex: 1; }
  .sidebar nav .nav-item:disabled { display: none; }
  .nav-item { width: 72px; min-height: 56px; }
  .nav-item.logout { margin: 0 0 0 auto; }
  .dashboard { padding: 26px 18px; }
  .dashboard-header { align-items: flex-start; }
  .connection-state { padding: 0; }
  .connection-state:not(.offline) { font-size: 0; }
  .secondary-button { width: 56px; padding: 0; font-size: 0; }
  .health-summary { min-width: 0; padding: 22px; }
  .summary-details { grid-template-columns: 1fr; gap: 16px; }
  .summary-details div { padding: 0; border: 0; }
  .metrics-grid, .system-strip { grid-template-columns: 1fr; }
  .update-facts { grid-template-columns: 1fr; }
  .network-overview { grid-template-columns: 1fr; }
  .hotspot-fields { grid-template-columns: 1fr; }
  .activity-summary, .client-grid { grid-template-columns: 1fr; }
  .settings-actions, .dialog-actions { flex-direction: column; }
  .settings-actions button, .dialog-actions button { width: 100%; }
  .settings-actions .text-button, .dialog-actions .text-button { font-size: inherit; }
  .settings-tabs { width: 100%; }
  .settings-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
  .power-actions { grid-template-columns: 1fr; }
  .power-actions .secondary-button { width: 100%; padding: 0 18px; font-size: inherit; }
  .bluetooth-actions { flex-direction: column; }
  .bluetooth-actions button { width: 100%; padding: 0 18px; font-size: inherit; }
  .bluetooth-state { grid-template-columns: auto minmax(0, 1fr); }
  .bluetooth-visible { grid-column: 2; justify-self: start; }
  .terminal-host { height: 58dvh; min-height: 320px; }
  .skeleton-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.icon-button { width: 44px; height: 44px; display: inline-grid; flex: none; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: color 140ms ease, background 140ms ease, transform 120ms ease; }
.icon-button:hover { color: var(--text); background: var(--surface-raised); }
.icon-button:active { transform: scale(0.96); }

.adb-page { min-width: 0; display: grid; gap: 18px; }
.adb-success { display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: var(--accent); background: rgba(185, 231, 105, 0.07); border: 1px solid rgba(185, 231, 105, 0.25); border-radius: 10px; }
.adb-command-grid { display: grid; grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.3fr); gap: 18px; }
.adb-install-panel, .shortcut-form, .packages-panel { min-width: 0; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-heading > svg { flex: none; color: var(--accent); }
.panel-heading h2, .packages-toolbar h2 { margin: 0 0 6px; font-size: 1.2rem; }
.panel-heading p, .packages-toolbar p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.adb-install-panel { display: flex; flex-direction: column; }
.adb-install-panel .primary-button { align-self: flex-start; margin-top: 34px; }
.adb-install-panel > small { margin-top: 13px; color: var(--muted); line-height: 1.4; }
.shortcut-fields { display: grid; grid-template-columns: 1fr 150px; gap: 14px; margin-top: 23px; }
.shortcut-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 0.76rem; }
.shortcut-fields .target-field { grid-column: 1 / -1; }
.shortcut-fields input, .shortcut-fields select, .package-search input { width: 100%; min-height: 48px; padding: 0 13px; color: var(--text); background: #10140f; border: 1px solid #465043; border-radius: 9px; }
.shortcut-fields select { appearance: auto; }
.shortcut-fields input::placeholder, .package-search input::placeholder { color: #899183; }
.shortcut-fields input:focus-visible, .shortcut-fields select:focus-visible, .package-search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shortcut-form-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 7px; }
.suggestion-list button { min-height: 34px; padding: 0 11px; color: var(--muted); background: #121610; border: 1px solid var(--line); border-radius: 7px; font-size: 0.72rem; cursor: pointer; }
.suggestion-list button:hover { color: var(--text); border-color: #53604e; }
.shortcut-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 10px; }
.shortcut-strip article { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.shortcut-launch { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; padding: 8px 9px; color: var(--text); background: transparent; border: 0; text-align: left; cursor: pointer; }
.shortcut-launch > svg { flex: none; color: var(--accent); }
.shortcut-launch span { min-width: 0; display: grid; gap: 4px; }
.shortcut-launch strong, .shortcut-launch small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-launch strong { font-size: 0.88rem; }
.shortcut-launch small { color: var(--muted); font: 0.68rem/1.2 ui-monospace, "Cascadia Code", monospace; }
.packages-panel { padding: 0; overflow: hidden; }
.packages-toolbar { position: relative; display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.packages-toolbar > div:first-child { margin-right: auto; }
.package-search { width: min(330px, 35vw); display: flex; align-items: center; gap: 9px; }
.package-search > svg { color: var(--muted); }
.package-list { max-height: min(470px, 50dvh); overflow: auto; }
.package-list article { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 64px; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.package-list article:last-child { border-bottom: 0; }
.package-list article > svg { color: var(--accent); }
.package-list article > div { min-width: 0; display: grid; gap: 5px; }
.package-list strong, .package-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.package-list strong { font-size: 0.84rem; }
.package-list small { color: var(--muted); font: 0.68rem/1.2 ui-monospace, "Cascadia Code", monospace; }
.package-kind { color: var(--muted); font-size: 0.7rem; }
.adb-empty { min-height: 130px; display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; }

.car-page { display: grid; gap: 18px; }
.drive-stage { min-height: 430px; display: grid; grid-template-columns: minmax(230px, 0.85fr) minmax(330px, 1.3fr) minmax(180px, 0.65fr); align-items: center; gap: 18px; padding: clamp(28px, 4vw, 58px); overflow: hidden; background: radial-gradient(circle at 50% 48%, rgba(185, 231, 105, 0.08), transparent 31%), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.speed-cluster, .wheel-visual, .gear-cluster { position: relative; display: grid; justify-items: center; }
.speed-cluster { align-content: center; min-height: 280px; }
.speed-cluster > svg { color: var(--accent); }
.speed-cluster strong { margin-top: 15px; font: 750 clamp(4.4rem, 8vw, 7.2rem)/0.82 ui-monospace, "Cascadia Code", monospace; letter-spacing: -0.09em; }
.speed-cluster span, .wheel-visual span, .gear-cluster span { margin-top: 12px; color: var(--muted); font-size: 0.78rem; }
.speed-arc { position: absolute; inset: 0; width: 280px; max-width: 100%; aspect-ratio: 1; margin: auto; border-radius: 50%; background: conic-gradient(from 220deg, var(--accent) calc(var(--speed) * 280deg), var(--line) 0 280deg, transparent 280deg); mask: radial-gradient(circle, transparent 65%, #000 66%); opacity: 0.85; }
.wheel-visual { align-content: center; min-height: 310px; padding: 25px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.wheel-angle { width: 220px; height: 220px; display: grid; place-items: center; color: var(--accent); border-radius: 50%; background: #121610; border: 1px solid #3b4537; }
.wheel-angle svg { transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.wheel-visual > strong { margin-top: 22px; font: 750 1.8rem/1 ui-monospace, "Cascadia Code", monospace; }
.gear-cluster strong { margin-top: 8px; font: 750 clamp(5rem, 9vw, 8rem)/0.9 ui-monospace, "Cascadia Code", monospace; color: var(--accent); }
.gear-cluster small { margin-top: 10px; color: var(--muted); font-size: 0.7rem; }
.energy-readout { display: grid; grid-template-columns: minmax(210px, 0.7fr) minmax(210px, 0.7fr) minmax(330px, 1.3fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.energy-readout article { min-width: 0; min-height: 150px; padding: 23px; background: var(--surface); }
.energy-value { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 6px 11px; }
.energy-value > svg, .telemetry-source > svg { color: var(--accent); }
.energy-value > span { align-self: center; color: var(--muted); font-size: 0.8rem; }
.energy-value strong { grid-column: 1 / -1; margin-top: 12px; font: 750 1.8rem/1 ui-monospace, "Cascadia Code", monospace; }
.energy-value small { grid-column: 1 / -1; margin-top: 3px; color: var(--muted); line-height: 1.4; }
.telemetry-source { display: flex; align-items: flex-start; gap: 15px; }
.telemetry-source > svg { flex: none; }
.telemetry-source strong { display: block; margin-bottom: 8px; }
.telemetry-source p { max-width: 55ch; margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.telemetry-footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font: 0.72rem/1.4 ui-monospace, "Cascadia Code", monospace; }
.live-energy { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.record-grid article { min-width: 0; min-height: 145px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; gap: 7px 11px; padding: 23px; background: var(--surface); }
.record-grid svg { color: var(--accent); }
.record-grid span { align-self: center; color: var(--muted); font-size: 0.78rem; }
.record-grid strong { grid-column: 1 / -1; margin-top: 10px; font: 750 clamp(1.35rem, 2vw, 2rem)/1 ui-monospace, "Cascadia Code", monospace; letter-spacing: -0.035em; }
.record-grid small { grid-column: 1 / -1; overflow: hidden; color: var(--muted); font-size: 0.72rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.history-panel { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.history-heading h2 { margin: 0 0 5px; font-size: 1.2rem; }
.history-heading p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.period-tabs { display: flex; gap: 4px; padding: 4px; background: #10140f; border: 1px solid var(--line); border-radius: 9px; }
.period-tabs button { min-width: 48px; min-height: 38px; padding: 0 10px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 0.72rem; font-weight: 750; cursor: pointer; }
.period-tabs button:hover { color: var(--text); }
.period-tabs button.active { color: var(--accent-ink); background: var(--accent); }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.history-chart { min-width: 0; padding: 16px 17px 12px; background: #121610; border: 1px solid var(--line); border-radius: 10px; }
.history-chart > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.history-chart h3 { margin: 0; font-size: 0.88rem; }
.chart-legend { display: flex; gap: 13px; font: 0.68rem/1.2 ui-monospace, "Cascadia Code", monospace; }
.chart-legend span::before { content: ""; width: 13px; height: 2px; display: inline-block; margin: 0 5px 3px 0; background: currentColor; }
.history-chart svg { width: 100%; height: 220px; display: block; margin-top: 12px; overflow: visible; }
.chart-guide { stroke: #30372d; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-scale { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 0.66rem/1.3 ui-monospace, "Cascadia Code", monospace; }
.chart-empty { min-height: 220px; display: grid !important; place-items: center; color: var(--muted); font-size: 0.78rem; text-align: center; }
.telemetry-storage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 15px; padding: 20px 23px; border: 1px solid var(--line); border-radius: var(--radius); }
.telemetry-storage > svg { color: var(--accent); }
.telemetry-storage > div { min-width: 0; }
.telemetry-storage strong { display: block; margin-bottom: 5px; }
.telemetry-storage p, .telemetry-storage span { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.telemetry-storage-summary { text-align: right; }
.telemetry-storage-summary strong { font: 750 1.15rem/1 ui-monospace, "Cascadia Code", monospace; }
.telemetry-clear-button { min-height: 46px; padding: 0 17px; }
.clear-statistics-options { display: grid; gap: 10px; margin-top: 22px; }
.clear-statistics-options button { width: 100%; min-height: 82px; height: auto; display: grid; justify-items: start; gap: 5px; padding: 15px 18px; font-size: 0.82rem; text-align: left; white-space: normal; }
.clear-statistics-options button small { color: var(--muted); font-size: 0.72rem; font-weight: 500; line-height: 1.4; }
.clear-statistics-options .danger-button small { color: #e7b8b1; }
.status-success { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; color: var(--accent); background: rgba(185, 231, 105, 0.08); border: 1px solid rgba(185, 231, 105, 0.24); border-radius: 10px; }

.trips-page { min-width: 0; display: grid; gap: 18px; }
.trips-toolbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px 14px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trips-toolbar > div { min-width: 0; display: grid; gap: 5px; }
.trips-toolbar strong { font-size: 0.95rem; }
.trips-toolbar span { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.trips-refresh { min-height: 46px; padding: 0 17px; }
.trips-workspace { min-width: 0; display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(510px, 1.28fr); gap: 18px; align-items: start; }
.trip-list { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trip-row { width: 100%; min-width: 0; min-height: 84px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px 13px; padding: 13px 16px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: background 140ms ease; }
.trip-row:last-child { border-bottom: 0; }
.trip-row:hover { background: var(--surface-raised); }
.trip-row.selected { background: rgba(185, 231, 105, 0.09); box-shadow: inset 3px 0 var(--accent); }
.trip-row-route { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; color: var(--accent); background: rgba(185, 231, 105, 0.08); border-radius: 9px; }
.trip-row-main { min-width: 0; display: grid; gap: 5px; }
.trip-row-main strong, .trip-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-row-main strong { font-size: 0.84rem; }
.trip-row-main small { color: var(--muted); font-size: 0.7rem; }
.trip-row-distance { justify-self: end; font: 750 0.88rem/1 ui-monospace, "Cascadia Code", monospace; }
.trip-row-speed { grid-column: 3; justify-self: end; color: var(--muted); font: 0.67rem/1 ui-monospace, "Cascadia Code", monospace; }
.trip-detail { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trip-detail-state { min-height: 540px; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; color: var(--muted); text-align: center; }
.trip-detail-state svg { color: var(--accent); }
.trip-detail-state strong { color: var(--text); font-size: 1.15rem; }
.trip-detail-state span { max-width: 370px; font-size: 0.8rem; line-height: 1.5; }
.trip-report-heading { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 23px; }
.trip-report-heading > div > span { color: var(--accent); font: 700 0.67rem/1.2 ui-monospace, "Cascadia Code", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.trip-report-heading h2 { margin: 7px 0 5px; font-size: 1.3rem; }
.trip-report-heading p { margin: 0; color: var(--muted); font-size: 0.76rem; }
.trip-live { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.75rem; font-weight: 750; }
.trip-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(185, 231, 105, 0.1); }
.trip-map { position: relative; z-index: 0; width: 100%; height: clamp(340px, 46dvh, 500px); background: #222820; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trip-map .leaflet-tile-pane { filter: saturate(0.45) brightness(0.72) contrast(1.08); }
.trip-map .leaflet-control-zoom a { color: var(--text); background: #171b16; border-color: var(--line); }
.trip-map .leaflet-control-zoom a:hover { background: #242a22; }
.trip-map .leaflet-control-attribution { color: #cbd3c5; background: rgba(16, 19, 15, 0.86); }
.trip-map .leaflet-control-attribution a { color: var(--accent); }
.trip-map .leaflet-tooltip { color: var(--text); background: #171b16; border: 1px solid #465043; box-shadow: none; font-weight: 700; }
.trip-map .leaflet-tooltip::before { border-top-color: #465043; }
.trip-map-empty { min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trip-map-empty svg { color: var(--accent); }
.trip-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.trip-stat { min-width: 0; min-height: 106px; display: grid; align-content: center; gap: 12px; padding: 17px 19px; background: var(--surface); }
.trip-stat span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.72rem; }
.trip-stat svg { flex: none; color: var(--accent); }
.trip-stat strong { overflow: hidden; font: 750 1.16rem/1 ui-monospace, "Cascadia Code", monospace; text-overflow: ellipsis; white-space: nowrap; }
.trip-report-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; color: var(--muted); font-size: 0.7rem; }
.trip-report-footer span { display: flex; align-items: center; gap: 7px; }
.trip-report-footer svg { color: var(--accent); }
.trips-empty { min-height: 460px; display: grid; place-content: center; justify-items: center; padding: 36px; color: var(--muted); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trips-empty svg { margin-bottom: 19px; color: var(--accent); }
.trips-empty h2 { margin: 0 0 10px; color: var(--text); }
.trips-empty p { max-width: 500px; margin: 0; font-size: 0.84rem; line-height: 1.55; }
.trips-skeleton { min-height: 420px; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 18px; }
.trips-skeleton div, .trip-detail-skeleton div { border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-raised) 50%, var(--surface) 70%); background-size: 220% 100%; animation: shimmer 1.4s ease infinite; }
.trips-skeleton div:first-child { grid-row: 1 / 3; }
.trip-detail-skeleton { min-height: 540px; display: grid; grid-template-rows: 90px 1fr 120px; gap: 1px; padding: 18px; }

@media (max-width: 1200px) {
  .adb-command-grid { grid-template-columns: 1fr; }
  .drive-stage { grid-template-columns: 1fr 1.25fr; }
  .gear-cluster { grid-column: 1 / -1; min-height: 130px; border-top: 1px solid var(--line); }
  .gear-cluster strong { font-size: 4rem; }
  .energy-readout { grid-template-columns: 1fr 1fr; }
  .telemetry-source { grid-column: 1 / -1; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: 1fr; }
  .trips-workspace { grid-template-columns: minmax(280px, 0.7fr) minmax(440px, 1.3fr); }
  .trip-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .sidebar nav .nav-item { flex: 1; width: auto; min-width: 0; }
  .sidebar .nav-item.logout { width: 52px; min-width: 52px; }
  .adb-install-panel, .shortcut-form { padding: 21px; }
  .shortcut-fields { grid-template-columns: 1fr; }
  .shortcut-fields .target-field { grid-column: auto; }
  .shortcut-form-footer, .packages-toolbar { align-items: stretch; flex-direction: column; }
  .shortcut-form-footer .secondary-button { width: 100%; }
  .package-search { width: 100%; }
  .packages-toolbar .icon-button { position: absolute; right: 40px; }
  .package-list article { grid-template-columns: auto minmax(0, 1fr) auto; }
  .package-kind { display: none; }
  .drive-stage { min-height: 0; grid-template-columns: 1fr; padding: 22px; }
  .wheel-visual { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .gear-cluster { grid-column: auto; border-top: 0; }
  .energy-readout { grid-template-columns: 1fr; }
  .telemetry-source { grid-column: auto; }
  .telemetry-footer { flex-direction: column; }
  .record-grid { grid-template-columns: 1fr; }
  .history-heading { align-items: stretch; flex-direction: column; }
  .period-tabs { width: 100%; }
  .period-tabs button { min-width: 0; flex: 1; padding: 0 5px; }
  .history-panel { padding: 19px; }
  .history-chart svg { height: 180px; }
  .telemetry-storage { grid-template-columns: auto minmax(0, 1fr); }
  .telemetry-storage-summary { grid-column: 1 / -1; text-align: left; }
  .telemetry-clear-button { grid-column: 1 / -1; width: 100%; padding: 0 17px; font-size: inherit; }
  .trips-toolbar { align-items: flex-start; }
  .trips-toolbar span { display: none; }
  .trips-refresh { width: 46px; padding: 0; font-size: 0; }
  .trips-workspace { grid-template-columns: 1fr; }
  .trip-detail { min-height: 420px; }
  .trip-detail-state { min-height: 420px; }
  .trip-map { height: 52dvh; min-height: 330px; }
  .trip-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-report-footer { align-items: flex-start; flex-direction: column; }
  .trips-skeleton { grid-template-columns: 1fr; }
  .trips-skeleton div:first-child { grid-row: auto; min-height: 260px; }
}
