:root {
  --ink: #e8eef7;
  --muted: #93a5bd;
  --faint: #667995;
  --surface: #142239;
  --surface-raised: #192a43;
  --border: rgba(161, 184, 211, .15);
  --bg: #0e192b;
  --teal: #3ed1b5;
  --amber: #f6c66c;
  --coral: #ef826d;
  --blue: #73b6ff;
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); min-width: 320px; }
button, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: radial-gradient(circle at 86% 5%, rgba(44, 91, 126, .22), transparent 30%), var(--bg); }
.sidebar { padding: 28px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 34px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--teal); color: #082c2b; font-size: 22px; font-weight: 900; border-radius: 12px; box-shadow: 0 0 24px rgba(62, 209, 181, .22); }
.brand-copy { margin-top: -26px; margin-left: 50px; display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; }
.brand-copy span { color: var(--muted); font-size: 11px; }
.nav { display: grid; gap: 8px; }
.nav-item { border: 0; background: transparent; color: var(--muted); display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; text-align: left; font-size: 13px; }
.nav-item:hover, .nav-item.active { color: var(--ink); background: rgba(115, 182, 255, .1); }
.nav-item.active { box-shadow: inset 3px 0 var(--teal); }
.nav-icon { width: 18px; color: var(--teal); text-align: center; font-size: 16px; }
.sidebar-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; color: var(--faint); font-size: 11px; }
.online-dot, .confidence-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px var(--teal); }
.main-content { width: min(1200px, 100%); padding: 38px clamp(20px, 4vw, 58px) 50px; margin: 0 auto; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.kicker, .eyebrow, .field-label { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; color: var(--faint); margin: 0 0 7px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.08; margin-bottom: 0; }
h2 { font-size: 16px; letter-spacing: -.015em; margin: 0; }
.icon-button { border: 1px solid var(--border); color: var(--muted); background: var(--surface); border-radius: 10px; width: 38px; height: 38px; }
.toolbar { display: flex; gap: 14px; align-items: end; margin-bottom: 18px; }
.select-wrap { min-width: 190px; display: grid; gap: 7px; }
select { color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; outline: 0; }
.date-tabs { display: flex; border: 1px solid var(--border); background: rgba(20, 34, 57, .55); border-radius: 9px; padding: 3px; }
.date-tab { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 8px 12px; border-radius: 6px; }
.date-tab.active { background: var(--surface-raised); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.14); }
  .settings-dialog { width: min(420px, calc(100% - 32px)); border: 1px solid var(--border); padding: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(3, 10, 22, .45); }
  .settings-dialog::backdrop { background: rgba(3, 10, 22, .6); }
  .settings-dialog form { display: grid; gap: 12px; }
  .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
  .dialog-heading h2 { margin: 4px 0 0; }
  .dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
  .settings-dialog label { font-size: 13px; font-weight: 700; }
  .settings-dialog input { width: 100%; padding: 12px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--ink); font: inherit; }
  .dialog-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
  .save-button { border: 0; padding: 10px 14px; background: var(--teal); color: #082c2b; font: inherit; font-weight: 700; cursor: pointer; }
.refresh-button, .map-control { border: 1px solid var(--border); color: var(--muted); background: transparent; border-radius: 8px; padding: 9px 12px; font-size: 12px; margin-left: auto; }
.refresh-button span { color: var(--teal); margin-right: 4px; font-size: 15px; }
.recommendation { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 18px; border: 1px solid rgba(62, 209, 181, .3); background: linear-gradient(100deg, rgba(62, 209, 181, .12), rgba(20, 34, 57, .82)); border-radius: 13px; }
.recommendation-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--teal); background: rgba(62, 209, 181, .16); font-size: 22px; }
.recommendation-copy { flex: 1; }
.recommendation-copy .eyebrow { color: var(--teal); margin-bottom: 4px; }
.recommendation-copy h2 { margin-bottom: 5px; font-size: 17px; }
.recommendation-copy p { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.5; }
.confidence { display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; white-space: nowrap; }
.panel { background: rgba(20, 34, 57, .88); border: 1px solid var(--border); border-radius: 13px; padding: 20px; box-shadow: 0 16px 34px rgba(3, 10, 22, .12); }
.dashboard-grid, .bottom-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); gap: 18px; margin-bottom: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.map-canvas { height: 314px; border-radius: 9px; position: relative; overflow: hidden; background: #182c3c; background-image: linear-gradient(rgba(68, 115, 119, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(68, 115, 119, .2) 1px, transparent 1px); background-size: 42px 42px; }
.map-canvas::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 43%, rgba(246, 198, 108, .18), transparent 17%), radial-gradient(circle at 23% 63%, rgba(115, 182, 255, .12), transparent 20%); pointer-events: none; }
.map-road { position: absolute; height: 2px; background: rgba(203, 225, 220, .27); transform-origin: left; z-index: 1; }
.road-one { width: 82%; top: 61%; left: 4%; transform: rotate(-23deg); }.road-two { width: 94%; top: 35%; left: 4%; transform: rotate(28deg); }.road-three { width: 76%; top: 68%; left: 16%; transform: rotate(4deg); }
.map-river { position: absolute; z-index: 2; height: 130%; width: 36px; top: -20%; left: 54%; background: rgba(64, 152, 183, .22); transform: rotate(18deg); border-left: 2px solid rgba(113, 196, 213, .32); border-right: 2px solid rgba(113, 196, 213, .16); }
.map-label { position: absolute; z-index: 4; color: rgba(218, 232, 235, .8); font-size: 11px; font-weight: 700; }.label-columbus { top: 41%; left: 66%; }.label-dayton { top: 67%; left: 18%; }.label-springfield { top: 21%; left: 28%; }
.map-pin { position: absolute; z-index: 5; width: 27px; height: 27px; border: 2px solid #b7e5db; border-radius: 50%; background: var(--teal); color: #123b3a; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(62, 209, 181, .13), 0 4px 15px rgba(0,0,0,.25); }.map-pin:not(.selected) { width: 21px; height: 21px; background: var(--blue); border-color: #cce4ff; color: #15314d; box-shadow: 0 0 0 4px rgba(115, 182, 255, .12); }.map-pin.selected { transform: scale(1.13); }.pin-columbus { top: 45%; left: 68%; }.pin-dayton { top: 72%; left: 20%; }.pin-springfield { top: 26%; left: 31%; }
.map-legend { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 6; display: flex; gap: 14px; color: rgba(224, 237, 237, .75); font-size: 10px; }.map-legend span { display: flex; gap: 5px; align-items: center; }.map-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }.legend-event { background: var(--amber); }.legend-rain { background: var(--blue); }
.conditions-panel { min-height: 100%; }.weather-symbol { font-size: 30px; line-height: 1; }.temperature { display: flex; align-items: baseline; gap: 10px; padding: 8px 0 22px; }.temperature strong { font-size: 46px; letter-spacing: -.07em; }.temperature span { color: var(--muted); font-size: 11px; }.condition-row { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding: 13px 0; color: var(--muted); font-size: 12px; }.condition-row strong { color: var(--ink); font-weight: 600; }.condition-row .impact-medium { color: var(--amber); }
.timeline-panel { margin-bottom: 18px; }.timeline-heading { margin-bottom: 12px; }.updated { color: var(--faint); font-size: 11px; }.timeline { display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); gap: 7px; overflow-x: auto; padding-bottom: 2px; }.hour-card { min-width: 72px; border-radius: 9px; border: 1px solid var(--border); background: rgba(25, 42, 67, .6); padding: 11px 8px; }.hour-card.best { border-color: rgba(62, 209, 181, .65); background: rgba(62, 209, 181, .11); }.hour-label { color: var(--muted); font-size: 10px; margin-bottom: 12px; }.hour-weather { font-size: 21px; margin-bottom: 9px; }.hour-temp { font-weight: 700; font-size: 13px; }.hour-rain { color: var(--blue); font-size: 10px; margin-top: 4px; }.demand-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.09); margin-top: 12px; overflow: hidden; }.demand-bar span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }.hour-card:not(.best) .demand-bar span { background: var(--blue); opacity: .7; }.best-label { color: var(--teal); text-transform: uppercase; font-size: 8px; letter-spacing: .1em; font-weight: 800; margin-top: 8px; }
.event-list, .market-list { display: grid; gap: 10px; }.event-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }.event-item:last-child { border-bottom: 0; }.event-time { color: var(--amber); font-size: 10px; font-weight: 800; line-height: 1.3; }.event-name { font-weight: 700; font-size: 12px; margin-bottom: 3px; }.event-location { color: var(--muted); font-size: 10px; }.event-impact { color: var(--teal); background: rgba(62, 209, 181, .1); border-radius: 5px; padding: 5px 6px; font-size: 9px; font-weight: 800; }.text-button { border: 0; background: none; color: var(--teal); font-size: 11px; padding: 0; }.market-row { display: grid; grid-template-columns: 1fr 68px 62px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }.market-row:last-child { border-bottom: 0; }.market-name { font-size: 12px; font-weight: 700; }.market-condition { color: var(--muted); font-size: 10px; margin-top: 3px; }.market-score { color: var(--teal); font-weight: 800; font-size: 13px; text-align: right; }.market-window { color: var(--muted); font-size: 10px; text-align: right; }.disclaimer { color: var(--faint); font-size: 10px; margin: 16px 0 0; text-align: center; }
@media (max-width: 840px) { .app-shell { grid-template-columns: 1fr; }.sidebar { display: none; }.main-content { padding: 24px 16px 40px; }.dashboard-grid, .bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .topbar { margin-bottom: 23px; }.toolbar { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }.select-wrap { min-width: 0; grid-column: 1 / -1; }.date-tabs { grid-column: 1 / -1; justify-content: space-between; }.date-tab { flex: 1; padding: 8px 4px; }.refresh-button { margin-left: 0; justify-self: start; }.recommendation { align-items: flex-start; flex-wrap: wrap; }.recommendation-copy { min-width: calc(100% - 60px); }.confidence { margin-left: 56px; }.panel { padding: 16px; }.map-canvas { height: 270px; }.timeline { grid-template-columns: repeat(7, 76px); }.timeline-panel { overflow: hidden; }.panel-heading { margin-bottom: 14px; } }
