/* =====================================================
   鎌倉市 津波避難シミュレーター — 静的ビューア スタイル
   ===================================================== */

/* --- リセット & ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deepest:  #0d1117;
  --bg-dark:     #161b22;
  --bg-card:     #1c2128;
  --bg-hover:    #21262d;
  --border:      #30363d;
  --border-light:#444c56;
  --text-primary:#e6edf3;
  --text-muted:  #8b949e;
  --text-dim:    #6e7681;
  --accent-blue: #58a6ff;
  --accent-cyan: #39d0d8;
  --accent-green:#3fb950;
  --accent-orange:#d29922;
  --accent-red:  #f85149;
  --accent-purple:#bc8cff;
  --c-arrived:   #3fb950;
  --c-evac:      #d29922;
  --c-wait:      #8b949e;
  --c-dead:      #f85149;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 4px 16px rgba(0,0,0,.5);
  --nav-width:   168px;
  --header-h:    64px;
  --kpi-h:       72px;
}

html, body {
  height: 100%;
  background: var(--bg-deepest);
  color: var(--text-primary);
  font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  /* スマートフォンでは横スクロールでデスクトップレイアウトを維持 */
  min-width: 1000px;
  overflow-x: auto;
}

/* --- ヘッダー --- */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

.header-left {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.header-icon { font-size: 28px; }
.header-left h1 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.header-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.header-right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.file-load-group { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.file-label { font-size: 11px; color: var(--text-muted); }
.file-hint { color: var(--text-dim); }
.file-inputs { display: flex; gap: 6px; align-items: center; }

.load-status {
  font-size: 12px; color: var(--accent-green);
  min-width: 120px; text-align: right;
}
.load-status.error { color: var(--accent-red); }
.load-status.loading { color: var(--accent-cyan); }

/* --- ボタン --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
  white-space: nowrap; gap: 4px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent-blue); color: #0d1117; border-color: var(--accent-blue); }
.btn-primary:hover:not(:disabled) { background: #79c0ff; }
.btn-secondary { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }
.btn-secondary:hover:not(:disabled) { background: var(--border); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* --- KPI バー --- */
.kpi-bar {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 150;
  height: var(--kpi-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.kpi-bar::-webkit-scrollbar { height: 4px; }
.kpi-bar::-webkit-scrollbar-track { background: transparent; }
.kpi-bar::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.kpi-bar-inner {
  display: flex; align-items: center; gap: 0;
  height: 100%; padding: 0 20px;
  min-width: max-content;
}
.kpi-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 20px; gap: 2px;
  border-right: 1px solid var(--border);
  min-width: 110px;
}
.kpi-card:first-child { border-left: 1px solid var(--border); }
.kpi-value { font-size: 22px; font-weight: 700; line-height: 1; }
.kpi-label { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 2px; }
.kpi-placeholder { color: var(--text-dim); font-size: 12px; }

/* --- メインレイアウト --- */
.app-body {
  display: flex;
  margin-top: calc(var(--header-h) + var(--kpi-h));
  height: calc(100vh - var(--header-h) - var(--kpi-h));
  overflow: hidden;
}

/* --- サイドナビ --- */
.side-nav {
  width: var(--nav-width);
  flex-shrink: 0;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 12px 8px;
  gap: 2px;
  overflow-y: auto;
}
.nav-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 12px;
  border: none; border-radius: var(--radius);
  background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  text-align: left; transition: all .15s;
}
.nav-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-btn.active { background: rgba(88,166,255,.15); color: var(--accent-blue); }
.nav-icon { font-size: 16px; flex-shrink: 0; }
.nav-label { line-height: 1.2; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.nav-footer { margin-top: auto; padding-top: 8px; }
.data-info { font-size: 10px; color: var(--text-dim); padding: 6px 4px; line-height: 1.6; }

/* --- メインコンテンツ --- */
.main-content {
  flex: 1; overflow-y: auto; position: relative;
  padding: 20px;
}
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* --- ローディング --- */
.loading-overlay {
  position: absolute; inset: 0; z-index: 100;
  background: rgba(13,17,23,.85);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.loading-box { text-align: center; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 3px solid var(--border); border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-msg { color: var(--text-muted); font-size: 13px; }

/* --- 空状態 --- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; gap: 12px;
}
.empty-icon { font-size: 56px; }
.empty-state h2 { font-size: 20px; color: var(--text-primary); }
.empty-state p { color: var(--text-muted); max-width: 420px; }
.empty-hint { font-size: 12px; color: var(--text-dim); }
.empty-hint code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* --- タブコンテンツ --- */
.tab-content { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.tab-header { margin-bottom: 20px; }
.tab-header h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tab-header p { font-size: 12px; color: var(--text-muted); }

/* --- チャートグリッド --- */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}
.chart-grid--maps {
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
}

/* --- チャートカード --- */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s;
}
.chart-card:hover { border-color: var(--border-light); }

.chart-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.chart-card-title {
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text-primary);
}
.chart-rank-badge {
  flex-shrink: 0;
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; letter-spacing: .5px;
}
.rank-S { background: rgba(248,81,73,.2); color: var(--accent-red); border: 1px solid rgba(248,81,73,.3); }
.rank-A { background: rgba(188,140,255,.2); color: var(--accent-purple); border: 1px solid rgba(188,140,255,.3); }
.rank-B { background: rgba(88,166,255,.2); color: var(--accent-blue); border: 1px solid rgba(88,166,255,.3); }
.rank-C { background: rgba(139,148,158,.2); color: var(--text-muted); border: 1px solid rgba(139,148,158,.3); }

.chart-card-desc { font-size: 11px; color: var(--text-dim); }

.chart-wrap {
  position: relative;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.chart-wrap canvas { max-height: 220px; }

/* マップカード */
.chart-card--map .chart-wrap { min-height: 260px; }
.chart-map { width: 100%; height: 260px; border-radius: var(--radius); overflow: hidden; }

/* KPI カードは小さく */
.chart-card--kpi { padding: 20px; align-items: center; text-align: center; }
.chart-card--kpi .chart-wrap { min-height: auto; }
.kpi-big-value { font-size: 36px; font-weight: 700; line-height: 1; }
.kpi-big-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.kpi-big-unit  { font-size: 14px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }

/* 未サポートチャート */
.chart-unsupported {
  width: 100%; text-align: center; padding: 20px;
  color: var(--text-dim); font-size: 12px;
}

/* ボックスプロット */
.boxplot-wrap { width: 100%; padding: 8px 0; }
.boxplot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.boxplot-label { width: 80px; font-size: 11px; color: var(--text-muted); text-align: right; flex-shrink: 0; }
.boxplot-track { flex: 1; height: 24px; position: relative; }
.boxplot-bar {
  position: absolute; top: 6px; height: 12px;
  background: var(--accent-blue); border-radius: 2px; opacity: .7;
}
.boxplot-median {
  position: absolute; top: 2px; width: 2px; height: 20px;
  background: var(--accent-cyan);
}
.boxplot-stats { font-size: 10px; color: var(--text-dim); margin-top: 2px; text-align: right; min-width: 70px; }

/* ヒストグラム表 */
.hist-bars { display: flex; align-items: flex-end; gap: 2px; height: 100px; width: 100%; }
.hist-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.hist-bar-inner { width: 100%; background: var(--accent-blue); opacity: .75; border-radius: 2px 2px 0 0; }
.hist-bar-x { font-size: 9px; color: var(--text-dim); text-align: center; margin-top: 2px; }

/* サンキーダイアグラム(シンプル版) */
.sankey-simple { width: 100%; padding: 4px 0; }
.sankey-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; }
.sankey-bar { height: 20px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #000; }

/* =====================================================
   タイムラプス
   ===================================================== */
.timelapse-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - var(--header-h) - var(--kpi-h) - 100px);
  min-height: 500px;
}

.timelapse-controls {
  overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}
.timelapse-controls::-webkit-scrollbar { width: 4px; }
.timelapse-controls::-webkit-scrollbar-thumb { background: var(--border); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.tl-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 4px;
}
.tl-stat {
  background: var(--bg-hover); border-radius: var(--radius); padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tl-stat-val {
  font-size: 18px; font-weight: 700; color: var(--c-arrived);
}
.tl-stat-val.evac { color: var(--c-evac); }
.tl-stat-val.wait { color: var(--c-wait); }
.tl-stat-val.dead { color: var(--c-dead); }
.tl-stat-lbl { font-size: 9px; color: var(--text-dim); }

.tl-time-display {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 15px; font-weight: 700; padding: 4px 0;
}
.tl-rate { font-size: 12px; color: var(--accent-green); }

.tl-slider {
  width: 100%; -webkit-appearance: none; height: 4px;
  background: var(--border); border-radius: 2px; outline: none; cursor: pointer;
}
.tl-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: var(--accent-blue); border-radius: 50%; cursor: pointer;
}

.tl-btn-row {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.tl-speed-label {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.tl-speed-label select {
  background: var(--bg-hover); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px;
  font-size: 11px; cursor: pointer;
}

.tl-legend {
  display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted);
  flex-wrap: wrap;
}
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.dot.arrived { background: var(--c-arrived); }
.dot.evac    { background: var(--c-evac); }
.dot.wait    { background: var(--c-wait); }
.dot.dead    { background: var(--c-dead); }

.tl-mini-charts { width: 100%; }
.tl-type-rates {
  display: flex; flex-direction: column; gap: 4px;
}
.tl-type-rate-row {
  display: flex; align-items: center; gap: 6px; font-size: 10px;
}
.tl-type-name { width: 100px; color: var(--text-muted); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.tl-type-bar-wrap { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.tl-type-bar-inner { height: 100%; background: var(--accent-green); border-radius: 3px; transition: width .3s; }
.tl-type-pct { width: 36px; text-align: right; color: var(--text-dim); }

/* =====================================================
   津波パラメータ調整パネル
   ===================================================== */
.tsunami-params {
  margin-top: 12px;
  background: rgba(0, 85, 140, 0.12);
  border: 1px solid rgba(0, 140, 255, 0.25);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.tsunami-params-header {
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(0, 140, 255, 0.2);
  padding-bottom: 6px;
}
.tsunami-params-icon { font-size: 14px; }
.tsunami-params-title { font-size: 12px; font-weight: 700; color: #4fc3f7; flex: 1; }
.tsunami-toggle-wrap {
  display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none;
}
.tsunami-toggle-label { font-size: 10px; color: var(--text-muted); }
.tsunami-toggle-wrap input[type=checkbox] { accent-color: #4fc3f7; }

.param-row { display: flex; flex-direction: column; gap: 3px; }
.param-label {
  font-size: 11px; font-weight: 600; color: var(--text-dim);
  display: flex; flex-direction: column; gap: 1px;
}
.param-hint { font-size: 9px; font-weight: 400; color: var(--text-muted); }
.param-input-row { display: flex; align-items: center; gap: 6px; }
.param-slider {
  flex: 1; height: 3px; cursor: pointer;
  accent-color: #4fc3f7;
}
.param-val {
  font-size: 11px; font-weight: 700; color: #4fc3f7;
  min-width: 56px; text-align: right; font-variant-numeric: tabular-nums;
}
.param-readout {
  font-size: 10px; color: var(--text-muted);
  padding: 2px 6px;
  background: rgba(0,0,0,.3);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

.param-scenario-btns {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px;
}
.btn-scenario {
  font-size: 10px; padding: 3px 8px;
  background: rgba(79, 195, 247, 0.1);
  color: #4fc3f7;
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 3px; cursor: pointer;
  transition: all .15s;
}
.btn-scenario:hover,
.btn-scenario.active {
  background: rgba(79, 195, 247, 0.25);
  border-color: #4fc3f7;
}

/* 波前線オーバーレイ (Leaflet レイヤーラベル) */
.wave-front-label {
  font-size: 10px; color: rgba(79, 195, 247, 0.9);
  background: rgba(0,0,0,.6); padding: 2px 5px; border-radius: 3px;
  white-space: nowrap; pointer-events: none;
}

@keyframes wave-pulse {
  0%   { opacity: .9; }
  50%  { opacity: .4; }
  100% { opacity: .9; }
}

.timelapse-map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
#timelapse-map { width: 100%; height: 100%; background: #1a2332; }
.map-no-data {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}

/* =====================================================
   Leaflet オーバーライド
   ===================================================== */
.leaflet-container { background: #1a2332 !important; }
.leaflet-tile-pane { opacity: .7; }
.leaflet-control-zoom a { background: var(--bg-card) !important; color: var(--text-primary) !important; border-color: var(--border) !important; }

/* =====================================================
   スケルトン（Lazy Load 待機状態）
   ===================================================== */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-box {
  width: 100%; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}
.card-pending .chart-wrap { min-height: 180px; }
.card-pending .chart-wrap .skeleton-box { height: 100%; min-height: 160px; }

/* チャートカードのフッター（詳細ボタン） */
.chart-card-footer {
  display: flex; justify-content: flex-end; margin-top: 4px;
}
.btn-detail {
  font-size: 11px; padding: 3px 10px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 4px; cursor: pointer;
  transition: all .15s;
}
.btn-detail:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }

/* =====================================================
   モーダル
   ===================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
  animation: fadeIn .18s ease;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  width: min(860px, 100%);
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.modal-desc  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.modal-close {
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--bg-hover); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  font-size: 14px; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.modal-chart-wrap {
  flex: 1; overflow-y: auto;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.modal-chart-wrap canvas { max-height: 480px; }
.modal-chart-wrap .chart-map { height: 480px; width: 100%; }
.modal-chart-wrap .boxplot-wrap { width: 100%; }

/* =====================================================
   ユーティリティ
   ===================================================== */
[hidden] { display: none !important; }

/* =====================================================
   レスポンシブ
   =====================================================
   このビューアはデスクトップレイアウトを維持し、
   スマートフォンでは横スクロールで表示します。
   html/body に min-width: 1000px を設定済み。
   ===================================================== */

/* モーダルのみスマホでも全幅表示 */
@media (max-width: 900px) {
  .header-left h1 { font-size: 14px; }
  .header-sub, .file-load-group { display: none !important; }
  .load-status { min-width: auto; font-size: 10px; margin-left: auto; }
  .kpi-bar-inner { padding: 0 10px; }
  .kpi-card { padding: 8px 12px; min-width: 90px; }
}



/* ==============================================================
   NEO-BRUTALISM DARK OVERRIDES (For Portal Unification)
   ============================================================== */
:root {
  --color-bg-dark: #05070a !important;
  --color-panel-dark: rgba(10, 12, 18, 0.95) !important;
  --color-accent: #FF4D00 !important;
  --color-border-dark: rgba(255, 77, 0, 0.3) !important;
  --color-text-dark: #ffffff !important;
  --font-base: 'Noto Sans JP', sans-serif !important;
}

body.theme-dark {
  background-color: var(--color-bg-dark) !important;
  color: var(--color-text-dark) !important;
  font-family: var(--font-base) !important;
}

#sim-topbar { background: #000 !important; border-bottom: 2px solid var(--color-accent) !important; }
#sim-topbar .tb-brand { font-size: 1.2rem !important; }
#sim-topbar .tb-links .tb-active { color: var(--color-accent) !important; }

.app-header {
  background: var(--color-bg-dark) !important; border-bottom: 1px solid var(--color-border-dark) !important;
}
.app-header h1 { font-family: var(--font-base) !important; font-weight: 900 !important; letter-spacing: -0.05em !important; }
.btn-primary, .btn-secondary {
  border-radius: 0 !important; font-weight: 900 !important; text-transform: uppercase !important;
  border: 1px solid var(--color-accent) !important;
}
.btn-primary { background: var(--color-accent) !important; color: #000 !important; }
.btn-primary:hover { background: transparent !important; color: var(--color-accent) !important; }
.btn-secondary { background: transparent !important; color: #fff !important; }
.btn-secondary:hover { background: var(--color-accent) !important; color: #000 !important; }

.side-nav {
  background: rgba(5,7,10,0.8) !important; border-right: 1px solid var(--color-border-dark) !important;
}
.nav-btn.active {
  background: var(--color-accent) !important; color: #000 !important; font-weight: 900 !important;
}

.kpi-bar { border-bottom: 1px solid var(--color-border-dark) !important; background: rgba(5,7,10,0.9) !important; }
.kpi-card { border-right: 1px solid var(--color-border-dark) !important; }
.kpi-val { color: var(--color-accent) !important; font-family: monospace !important; font-weight: 900 !important; }

.chart-card {
  background: rgba(10,12,18,0.8) !important; border: 1px solid var(--color-border-dark) !important;
  border-radius: 0 !important; box-shadow: none !important;
}
.chart-card-header h3 { font-weight: 900 !important; letter-spacing: 0.05em !important; }

.timelapse-controls {
  background: rgba(10,12,18,0.9) !important; border: 1px solid var(--color-border-dark) !important; border-radius: 0 !important;
}
.tl-slider { accent-color: var(--color-accent) !important; }
.tl-time-display span { font-weight: 900 !important; font-family: monospace !important; }

.modal-box {
  background: var(--color-bg-dark) !important; border: 2px solid var(--color-accent) !important; border-radius: 0 !important;
}
