@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #090a0c;
  --sidebar: #0c0d0f;
  --panel: #111316;
  --panel-raised: #15181c;
  --border: #24272c;
  --border-soft: #1c1f23;
  --text: #f1f3f5;
  --text-2: #b4bac2;
  --muted: #707780;
  --muted-2: #4f555d;
  --blue: #61c9ff;
  --blue-soft: rgba(97, 201, 255, .1);
  --green: #53d893;
  --amber: #f5b94c;
  --red: #f26d73;
  --sidebar-width: 246px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 24px 16px 18px; border-right: 1px solid var(--border-soft); background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 7px; }
.brand-symbol { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(97,201,255,.3); border-radius: 9px; background: var(--blue-soft); color: var(--blue); font: 600 14px/1 JetBrains Mono, monospace; }
.brand > div { min-width: 0; display: grid; gap: 3px; }
.brand strong { font-size: 14px; letter-spacing: -.25px; }
.brand small { color: var(--muted-2); font: 500 8px/1 JetBrains Mono, monospace; letter-spacing: 1.1px; }
.brand > b { margin-left: auto; padding: 4px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font: 600 8px/1 JetBrains Mono, monospace; }

.sidebar nav { display: grid; gap: 4px; margin-top: 27px; }
.sidebar nav p { margin: 20px 11px 8px; color: #565c64; font: 600 9px/1 JetBrains Mono, monospace; letter-spacing: 1.2px; text-transform: uppercase; }
.sidebar nav p:first-child { margin-top: 0; }
.sidebar nav a { position: relative; display: flex; height: 42px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; color: #858c95; font-size: 12px; font-weight: 500; transition: 140ms ease; }
.sidebar nav a svg { width: 17px; height: 17px; color: #656c75; }
.sidebar nav a:hover { background: #121417; color: #d3d7dc; }
.sidebar nav a.active { border-color: #283139; background: #161b1f; color: #f0f5f7; }
.sidebar nav a.active::before { position: absolute; left: -1px; width: 2px; height: 20px; border-radius: 2px; background: var(--blue); content: ''; }
.sidebar nav a.active svg { color: var(--blue); }
.sidebar nav a i { margin-left: auto; color: var(--green); font: 600 7px/1 JetBrains Mono, monospace; letter-spacing: .5px; }

.sidebar-footer { display: grid; gap: 9px; margin-top: auto; }
.station-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: #0f1113; }
.online-dot, .source-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.online-dot { box-shadow: 0 0 0 4px rgba(83,216,147,.08); }
.station-tile > div { display: grid; gap: 3px; }
.station-tile small { color: #555c65; font: 500 8px/1 JetBrains Mono, monospace; letter-spacing: .7px; }
.station-tile strong { font-size: 12px; }
.station-tile > b { margin-left: auto; color: var(--green); font-size: 9px; font-weight: 600; }
.sidebar-footer button { display: flex; height: 39px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-soft); border-radius: 9px; background: transparent; color: #7f8790; font-size: 10px; font-weight: 600; cursor: pointer; }
.sidebar-footer button:hover { border-color: #33404a; color: #c9d1d8; }
.sidebar-footer button svg { width: 14px; height: 14px; }

.main-stage { min-width: 0; grid-column: 2; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--border-soft); background: rgba(9,10,12,.9); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.breadcrumb i { width: 3px; height: 3px; border-radius: 50%; background: #42474e; }
.breadcrumb strong { color: var(--text-2); font-weight: 600; }
.mobile-brand { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.clock { display: grid; justify-items: end; margin-right: 9px; }
.clock strong { color: #e4e7ea; font: 500 12px/1.2 JetBrains Mono, monospace; }
.clock span { margin-top: 4px; color: #626972; font-size: 9px; }
.icon-button, .avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #101215; color: #747c85; }
.icon-button { cursor: pointer; }
.icon-button:hover { border-color: #3b444d; color: #cdd4da; }
.icon-button svg { width: 14px; height: 14px; }
.icon-button.spinning svg, #weatherRefresh.spinning svg { animation: spin .7s linear infinite; }
.avatar { border-radius: 50%; color: var(--blue); font: 600 9px/1 JetBrains Mono, monospace; }

.dashboard-content { width: min(100%, 1510px); margin: 0 auto; padding: 34px clamp(24px,3vw,44px) 48px; }
.page-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(430px,520px); align-items: center; gap: 34px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #818891; font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(83,216,147,.08); }
.page-heading h1 { margin: 0; font-size: clamp(27px,2.5vw,37px); line-height: 1.12; letter-spacing: -1.35px; }
.page-heading h1 em { color: #727983; font-style: normal; font-weight: 400; }
.page-heading > div > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

.weather-card { position: relative; min-width: 0; display: grid; grid-template-columns: 48px minmax(118px,1fr) auto; align-items: center; gap: 14px; min-height: 96px; padding: 15px 42px 15px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.weather-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 10px; background: #172027; color: var(--blue); font-size: 25px; }
.weather-current { min-width: 0; display: grid; }
.weather-current > span { overflow: hidden; color: #68717b; font: 500 8px/1.2 JetBrains Mono, monospace; letter-spacing: .35px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.weather-current > strong { margin-top: 3px; font: 600 24px/1 JetBrains Mono, monospace; }
.weather-current > small { margin-top: 4px; overflow: hidden; color: var(--text-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weather-stats { display: flex; align-items: stretch; }
.weather-stats > span { min-width: 72px; display: grid; gap: 5px; padding: 2px 13px; border-left: 1px solid var(--border-soft); }
.weather-stats small { color: #5d646d; font-size: 8px; text-transform: uppercase; }
.weather-stats b { color: #b9c0c7; font: 500 9px/1 JetBrains Mono, monospace; white-space: nowrap; }
#weatherRefresh { position: absolute; top: 9px; right: 9px; display: grid; width: 25px; height: 25px; place-items: center; border: 0; background: transparent; color: #515860; cursor: pointer; }
#weatherRefresh:hover { color: var(--text-2); }
#weatherRefresh svg { width: 12px; height: 12px; }

.source-strip { display: grid; grid-template-columns: repeat(5,minmax(112px,1fr)) auto; align-items: center; gap: 0; margin: 24px 0 16px; padding: 9px 9px 9px 16px; border: 1px solid var(--border-soft); border-radius: 10px; background: #0d0f11; }
.source-strip > div { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 2px 12px; border-right: 1px solid var(--border-soft); }
.source-strip > div:first-child { padding-left: 0; }
.source-strip p { min-width: 0; display: grid; gap: 3px; margin: 0; }
.source-strip strong { color: #aeb5bd; font-size: 9px; font-weight: 600; }
.source-strip small { overflow: hidden; color: #565d66; font: 400 7.5px/1.2 JetBrains Mono, monospace; text-overflow: ellipsis; white-space: nowrap; }
.source-dot.waiting { background: #495059; }
.source-dot.connected { background: var(--green); box-shadow: 0 0 0 4px rgba(83,216,147,.07); }
.source-dot.error { background: var(--red); }
.source-strip button { display: flex; min-width: 158px; height: 34px; align-items: center; justify-content: space-between; gap: 12px; margin-left: 9px; padding: 0 12px; border: 1px solid #2d3a43; border-radius: 7px; background: #121a1f; color: #b9dfea; font-size: 9px; font-weight: 600; cursor: pointer; }
.source-strip button:hover { border-color: #40535f; background: #162129; }
.source-strip button b { color: var(--blue); font-size: 14px; }

.metrics-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 12px; }
.metric-card, .panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.metric-card { min-height: 198px; display: flex; flex-direction: column; padding: 17px; }
.routes-card, .safety-card, .ev-card, .whc-card { grid-column: span 2; }
.package-card { grid-column: span 4; }
.metric-card > header { display: flex; align-items: center; gap: 10px; }
.metric-card > header > div { min-width: 0; display: grid; gap: 3px; }
.metric-card > header small { overflow: hidden; color: #8c949d; font-size: 9px; font-weight: 650; letter-spacing: .35px; text-overflow: ellipsis; white-space: nowrap; }
.metric-card > header b { overflow: hidden; color: #565e67; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 8px; }
.icon svg { width: 15px; height: 15px; }
.icon.blue { background: rgba(97,201,255,.09); color: var(--blue); }
.icon.red { background: rgba(242,109,115,.09); color: var(--red); }
.icon.amber { background: rgba(245,185,76,.09); color: var(--amber); }
.icon.green { background: rgba(83,216,147,.09); color: var(--green); }
.live-dot { width: 6px; height: 6px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: #414850; }
.source-live .live-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(83,216,147,.07); }
.primary-number { display: flex; align-items: baseline; gap: 8px; margin-top: 23px; }
.primary-number strong { font: 600 36px/1 JetBrains Mono, monospace; letter-spacing: -2px; }
.primary-number span { color: var(--muted); font-size: 10px; }
.metric-card > p { margin: 10px 0 0; color: #69717a; font-size: 9px; line-height: 1.5; }

.package-card { padding-bottom: 13px; }
.package-layout { min-width: 0; display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 18px; margin: 13px 0 10px; }
.progress-ring { position: relative; display: grid; width: 86px; height: 86px; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) var(--progress), #22262b var(--progress)); }
.progress-ring::after { position: absolute; inset: 6px; border-radius: 50%; background: var(--panel); content: ''; }
.progress-ring > div { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; }
.progress-ring strong { font: 600 17px/1 JetBrains Mono, monospace; letter-spacing: -1px; }
.progress-ring span { color: #626a73; font-size: 7px; text-transform: uppercase; }
.package-totals { min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.package-totals > div { min-width: 0; display: grid; gap: 7px; padding: 6px 12px; border-left: 1px solid var(--border-soft); }
.package-totals span { color: #626a73; font-size: 8px; }
.package-totals strong { overflow: hidden; font: 600 17px/1 JetBrains Mono, monospace; text-overflow: ellipsis; }
.package-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-soft); color: #565e67; font-size: 8px; }
.package-card footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.package-card footer b { flex: 0 0 auto; color: #69717a; font: 600 7px/1 JetBrains Mono, monospace; letter-spacing: .5px; }
.package-card.source-live footer b { color: var(--green); }

.split-stat { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: auto; padding-top: 12px; }
.split-stat span { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px; border: 1px solid var(--border-soft); border-radius: 7px; color: #666e77; font-size: 8px; }
.split-stat b { color: #b4bbc2; font: 500 9px/1 JetBrains Mono, monospace; }
.risk-meter { height: 4px; margin-top: auto; overflow: hidden; border-radius: 4px; background: #23272c; }
.risk-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--amber); transition: width .45s ease; }
.whc-state { display: flex; align-items: center; gap: 9px; margin-top: 22px; }
.whc-state > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: #656d76; font: 600 11px/1 JetBrains Mono, monospace; }
.whc-state strong { color: #aab1b9; font-size: 10px; line-height: 1.35; }
.whc-state.safe > span { border-color: rgba(83,216,147,.35); color: var(--green); }
.whc-state.risk > span { border-color: rgba(245,185,76,.35); color: var(--amber); }
.whc-state.violation > span { border-color: rgba(242,109,115,.35); color: var(--red); }

.detail-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(330px,1fr); gap: 12px; margin-top: 12px; }
.panel { min-height: 222px; padding: 19px; }
.panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-soft); }
.panel > header > div { display: grid; gap: 5px; }
.panel > header strong { color: #d8dce0; font-size: 11px; font-weight: 600; }
.panel > header span { color: #606871; font-size: 9px; }
.risk-watch header > b { color: #66707a; font: 600 8px/1 JetBrains Mono, monospace; letter-spacing: .6px; }
.quiet-state { min-height: 142px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.quiet-state > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid #283139; border-radius: 50%; background: #12181c; }
.quiet-state > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(97,201,255,.07); }
.quiet-state strong { color: #aeb5bd; font-size: 10px; }
.quiet-state p { margin: 5px 0 0; color: #656d76; font-size: 9px; line-height: 1.5; }
.risk-item { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 51px; padding: 8px 4px; border-bottom: 1px solid var(--border-soft); }
.risk-item:last-child { border-bottom: 0; }
.risk-item > i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.risk-item.critical > i { background: var(--red); }
.risk-item div { display: grid; gap: 3px; }
.risk-item strong { color: #b9c0c7; font-size: 10px; }
.risk-item small { color: #626a73; font-size: 8px; }
.risk-item > span { color: #7f8790; font: 500 8px/1 JetBrains Mono, monospace; }

.health-mark { display: flex; align-items: end; gap: 2px; height: 14px; }
.health-mark b { width: 3px; border-radius: 2px; background: var(--green); }
.health-mark b:nth-child(1) { height: 5px; }.health-mark b:nth-child(2) { height: 9px; }.health-mark b:nth-child(3) { height: 14px; }
.health-list { display: grid; gap: 12px; margin-top: 17px; }
.health-list > div { display: grid; grid-template-columns: 112px minmax(50px,1fr) 46px; align-items: center; gap: 10px; }
.health-list span { color: #717982; font-size: 8px; }
.health-list i { height: 4px; overflow: hidden; border-radius: 4px; background: #23272c; }
.health-list i b { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .45s ease; }
.health-list strong { color: #626a73; font: 500 7px/1 JetBrains Mono, monospace; text-align: right; text-transform: uppercase; }
.data-health footer { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--border-soft); color: #5c646d; font-size: 8px; }
.data-health footer strong { color: #868e97; font: 500 8px/1 JetBrains Mono, monospace; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.76); backdrop-filter: blur(10px); transition: opacity .18s ease; }
.modal-backdrop.hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.auth-panel { position: relative; width: min(100%,420px); padding: 32px; border: 1px solid #2c3137; border-radius: 14px; background: #111316; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 7px; background: #15181b; color: #747c85; cursor: pointer; }
.auth-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(97,201,255,.28); border-radius: 9px; background: var(--blue-soft); color: var(--blue); font: 600 13px/1 JetBrains Mono, monospace; }
.auth-panel > p { margin: 23px 0 8px; color: var(--blue); font: 600 8px/1 JetBrains Mono, monospace; letter-spacing: 1.1px; }
.auth-panel h2 { margin: 0 0 9px; font-size: 21px; letter-spacing: -.6px; }
.auth-panel > span:last-of-type { display: block; color: #747c85; font-size: 10px; line-height: 1.6; }
.auth-panel form { display: grid; gap: 13px; margin-top: 22px; }
.auth-panel label { display: grid; gap: 7px; color: #858d96; font-size: 9px; }
.auth-panel input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); outline: 0; border-radius: 8px; background: #0c0e10; color: #eef1f3; font-size: 12px; }
.auth-panel input:focus { border-color: #3f5968; box-shadow: 0 0 0 3px rgba(97,201,255,.06); }
.auth-panel form button { display: flex; height: 45px; align-items: center; justify-content: space-between; margin-top: 4px; padding: 0 13px; border: 1px solid #344550; border-radius: 8px; background: #162027; color: #c7e4ed; font-size: 10px; font-weight: 600; cursor: pointer; }
.auth-panel form button:disabled { cursor: wait; opacity: .55; }
#authError { min-height: 15px; color: #f58287; font-size: 9px; line-height: 1.5; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; max-width: 360px; padding: 12px 14px; border: 1px solid #30353b; border-radius: 9px; background: #171a1e; color: #d1d6db; box-shadow: 0 16px 45px rgba(0,0,0,.35); font-size: 10px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1500px) {
  .metrics-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .routes-card, .safety-card, .ev-card, .whc-card { grid-column: span 2; }
  .package-card { grid-column: span 4; }
}

@media (max-width: 1100px) {
  :root { --sidebar-width: 78px; }
  .sidebar { align-items: center; padding-inline: 12px; }
  .brand { padding: 0; }
  .brand > div, .brand > b, .sidebar nav p, .sidebar nav a span, .sidebar nav a i, .station-tile > div, .station-tile > b, .sidebar-footer button { display: none; }
  .sidebar nav a { width: 44px; justify-content: center; padding: 0; }
  .sidebar nav a.active::before { left: -1px; }
  .sidebar-footer { width: 44px; }
  .station-tile { justify-content: center; padding: 12px; }
  .page-heading { grid-template-columns: 1fr; }
  .weather-card { width: 100%; }
  .source-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px 0; }
  .source-strip > div:nth-child(3), .source-strip > div:nth-child(5) { border-right: 0; }
  .source-strip button { grid-column: span 2; }
}

@media (max-width: 820px) {
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .routes-card, .package-card, .safety-card, .ev-card, .whc-card { grid-column: auto; }
  .package-card, .whc-card { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --sidebar-width: 0px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-stage { width: 100%; grid-column: auto; }
  .topbar { height: 60px; padding: 0 16px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(97,201,255,.28); border-radius: 7px; background: var(--blue-soft); color: var(--blue); font: 600 10px/1 JetBrains Mono, monospace; }
  .mobile-brand strong { font-size: 12px; }
  .clock span, .topbar .icon-button, .topbar .avatar { display: none; }
  .clock { margin-right: 0; }
  .dashboard-content { padding: 25px 16px 36px; }
  .page-heading { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .page-heading h1 { font-size: 28px; letter-spacing: -1px; }
  .page-heading h1 em { display: block; margin-top: 3px; }
  .weather-card { grid-template-columns: 44px minmax(0,1fr); padding: 13px 36px 13px 13px; }
  .weather-icon { width: 42px; height: 42px; }
  .weather-stats { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--border-soft); }
  .weather-stats > span { min-width: 0; flex: 1; padding: 0 9px; }
  .weather-stats > span:first-child { border-left: 0; }
  .source-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-strip > div { padding: 3px 8px; border-right: 0; }
  .source-strip button { grid-column: 1 / -1; min-width: 0; margin-left: 0; }
  .metrics-grid { grid-template-columns: minmax(0,1fr); }
  .routes-card, .package-card, .safety-card, .ev-card, .whc-card { grid-column: auto; }
  .metric-card { min-height: 190px; }
  .package-layout { grid-template-columns: 78px minmax(0,1fr); gap: 10px; }
  .progress-ring { width: 75px; height: 75px; }
  .progress-ring strong { font-size: 14px; }
  .package-totals > div { padding: 6px 8px; }
  .package-totals strong { font-size: 14px; }
  .health-list > div { grid-template-columns: 100px minmax(40px,1fr) 42px; }
  .auth-panel { padding: 27px 21px; }
}
