/* ============================================================================
   VARUNA — HUD design system
   ----------------------------------------------------------------------------
   Principles
   · The 3D ocean is the subject. Chrome frames it — never floats over it.
   · Neutral slate surfaces, hairline separators, ONE accent (cool teal).
   · No neon, no glow stacks, no gradient soup, no purple/magenta accents.
   · Type does the work: uppercase micro-labels, tabular numerics, tight scale.
   ========================================================================= */

:root {
  /* ---- surfaces: cool neutral slate, opaque enough to read against water */
  --bg:            #07090d;
  --surface-0:     #0b0e14;   /* dock / topbar base            */
  --surface-1:     #101419;   /* panels                        */
  --surface-2:     #151a21;   /* raised: active seg, inputs     */
  --surface-3:     #1c222b;   /* hover / pressed               */
  --inset:         #0a0d12;   /* recessed wells, track grooves  */

  /* ---- hairlines */
  --line:          #1e242d;
  --line-soft:     #171c24;
  --line-strong:   #2b333e;

  /* ---- text */
  --text:          #e6eaf0;
  --text-2:        #a8b2c0;
  --text-3:        #6d7787;
  --text-4:        #4a525e;

  /* ---- accent: one cool teal, three weights */
  --accent:        #3fb8c4;
  --accent-hi:     #6bd4dd;
  --accent-dim:    #2a7d86;
  --accent-wash:   rgba(63, 184, 196, 0.10);
  --accent-line:   rgba(63, 184, 196, 0.34);

  /* ---- status (muted, never saturated) */
  --ok:            #4fa87a;
  --warn:          #c2a04f;
  --bad:           #c9635e;

  /* ---- platform identities */
  --argo:          #e0975f;
  --glider:        #d4bc5c;
  --mooring:       #a294c9;
  --ctd:           #5fb8b0;

  /* ---- type */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* ---- geometry */
  --r-lg: 10px;
  --r:    8px;
  --r-sm: 6px;
  --r-xs: 4px;

  /* ---- elevation: flat, single soft drop */
  --shadow:    0 1px 0 rgba(255,255,255,.03) inset, 0 8px 28px -8px rgba(0,0,0,.7);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -16px rgba(0,0,0,.8);

  /* ---- chrome metrics (single source of truth for the layout) */
  --tb-h1: 34px;                                     /* identity tier   */
  --tb-h2: 48px;                                     /* controls tier   */
  --tb-h:  calc(var(--tb-h1) + var(--tb-h2));        /* = 82px          */
  --dock-h: 72px;                                    /* slim transport dock */
  --dock-row: 20px;                                  /* month cell / control row */
  --dock-cap: 12px;                                  /* micro-caption row (scrub, legend head) */
  --dock-pad: 16px;                                  /* horizontal padding per dock group */
  --rail-w: 272px;
  --gutter: 12px;

  /* ---- control sizing inside the top bar */
  --ctl-h: 30px;                                     /* chips, pills, inputs, icon buttons */

  --ease: cubic-bezier(.32, .72, .35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 600; }
em { font-style: normal; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #232a34; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #2f3843; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 1px; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================ boot screen */
#boot-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .7s var(--ease);
}
#boot-screen.hidden { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; max-width: 480px; padding: 24px; }
.boot-logo { font-size: 26px; color: var(--accent); margin-bottom: 26px; }
.boot-title { font-size: 30px; font-weight: 600; letter-spacing: .38em; margin-left: .38em; color: var(--text); }
.boot-sub { margin-top: 14px; color: var(--text-2); font-size: 12.5px; }
.boot-org {
  margin-top: 10px; color: var(--text-4); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .18em;
}
.boot-bar { margin: 38px auto 14px; width: 240px; height: 2px; background: var(--line); overflow: hidden; }
#boot-progress { height: 100%; width: 0%; background: var(--accent); transition: width .35s var(--ease); }
.boot-status {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-4);
  letter-spacing: .02em;
}

/* ============================================================ app shell */
#app { position: fixed; inset: 0; }
#gl { position: absolute; inset: 0; display: block; }
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }

.surface {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

/* ========================================================================
   TOP BAR — two tiers, edge to edge, flush against the viewport top
   ===================================================================== */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(11,14,20,.97) 0%, rgba(11,14,20,.93) 100%);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

/* ---- tier 1: identity + dataset provenance ---- */
#tb-identity {
  height: var(--tb-h1);
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 20px; height: 20px; border-radius: var(--r-xs);
  display: grid; place-items: center; font-size: 10px;
  color: var(--accent); background: var(--accent-wash);
  border: 1px solid var(--accent-line);
}
.brand-text { display: flex; align-items: baseline; gap: 9px; }
.brand-name { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--text); }
.brand-sub {
  font-size: 9.5px; color: var(--text-4);
  text-transform: uppercase; letter-spacing: .12em;
}
.tb-div { width: 1px; height: 15px; background: var(--line); flex: none; }

.meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 22px; padding: 0 9px;
  border-radius: var(--r-xs);
  color: var(--text-3); font-size: 10.5px; white-space: nowrap;
  transition: background .14s, color .14s;
}
.meta-chip:hover { background: var(--surface-2); color: var(--text-2); }
.meta-chip.active { background: var(--accent-wash); color: var(--accent-hi); }
.meta-chip i { font-size: 10px; }
.mc-k { text-transform: uppercase; letter-spacing: .11em; font-size: 9px; color: var(--text-4); }
.mc-v { font-family: var(--mono); font-size: 10px; letter-spacing: -.01em; }
#tb-identity-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }

.status-dot {
  width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: var(--text-4);
}
.status-dot.ok { background: var(--ok); }

/* ---- tier 2: variables · anomaly · search · actions ---- */
#tb-controls {
  height: var(--tb-h2);
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
}
#rail-toggle {
  width: var(--ctl-h); height: var(--ctl-h); border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 12px;
  color: var(--text-3); transition: background .14s, color .14s;
}
#rail-toggle:hover { background: var(--surface-2); color: var(--text); }
#rail-toggle.active { color: var(--text); background: var(--surface-2); }

/* variable chips — the primary field selector */
#var-chips { display: flex; align-items: center; gap: 2px; }
.var-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: var(--ctl-h); padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--text-3); font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
}
.var-chip .chip-dot {
  width: 7px; height: 7px; border-radius: 2px; flex: none;
  background: var(--vc); opacity: .45;
  transition: opacity .14s;
}
.var-chip:hover { color: var(--text-2); background: var(--surface-2); }
.var-chip:hover .chip-dot { opacity: .8; }
.var-chip.active {
  color: var(--text); background: var(--surface-2);
  border-color: var(--line-strong); font-weight: 600;
}
.var-chip.active .chip-dot { opacity: 1; }

/* pill toggles (anomaly, share, loop) */
.pill-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  height: var(--ctl-h); padding: 0 13px;
  border-radius: calc(var(--ctl-h) / 2);
  border: 1px solid var(--line);
  color: var(--text-3); font-size: 12px; font-weight: 500;
  white-space: nowrap;
  transition: all .15s var(--ease);
}
.pill-toggle:hover { border-color: var(--line-strong); color: var(--text-2); }
.pill-toggle.on {
  color: var(--accent-hi); border-color: var(--accent-line);
  background: var(--accent-wash);
}
.pill-toggle.on .status-dot { background: var(--accent); }
.pill-toggle.accent { color: var(--text-2); }
.pill-toggle.accent:hover { color: var(--accent-hi); border-color: var(--accent-line); }
.pill-toggle.mini { height: 24px; padding: 0 10px; font-size: 11px; border-radius: 12px; gap: 5px; }
.pill-toggle.mini i { font-size: 9px; }

/* search */
#search-wrap { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
#search-box {
  width: 100%; height: var(--ctl-h);
  padding: 0 40px 0 32px;
  border-radius: calc(var(--ctl-h) / 2);
  border: 1px solid var(--line);
  background: var(--inset);
  font-size: 12.5px; outline: none;
  transition: border-color .15s, background .15s;
}
#search-box::placeholder { color: var(--text-4); }
#search-box:focus { border-color: var(--accent-line); background: var(--surface-2); }
#search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); font-size: 10.5px; pointer-events: none;
}
body.searching #search-icon { color: var(--accent); }
#search-kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 9.5px; color: var(--text-4);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 1px 6px; pointer-events: none;
}
#search-results {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0;
  max-height: 380px; overflow-y: auto;
  background: var(--surface-1); border: 1px solid var(--line-strong);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 5px; display: none; z-index: 70;
}
#search-results.open { display: block; }
.sr-cat {
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-4); padding: 9px 10px 4px;
}
.sr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer;
}
.sr-item:hover { background: var(--surface-3); }
.sr-ic {
  width: 24px; height: 24px; border-radius: var(--r-xs); flex: none;
  display: grid; place-items: center; font-size: 10px;
  color: var(--ic, var(--text-2));
  background: color-mix(in srgb, var(--ic, #8a94a3) 12%, transparent);
}
.sr-ic.accent { --ic: var(--accent); }
.sr-t { display: block; font-size: 12.5px; font-weight: 500; color: var(--text); }
.sr-s { display: block; font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 1px; }

#tb-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: var(--ctl-h); height: var(--ctl-h); border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 12px;
  color: var(--text-3);
  transition: background .14s, color .14s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 24px; height: 24px; font-size: 11px; }

/* ========================================================================
   LEFT RAIL
   ===================================================================== */
#left-rail {
  position: absolute; z-index: 30;
  top: calc(var(--tb-h) + var(--gutter));
  left: var(--gutter);
  bottom: calc(var(--dock-h) + var(--gutter));
  width: var(--rail-w);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transition: transform .32s var(--ease), opacity .22s;
}
body.rail-collapsed #left-rail {
  transform: translateX(calc(-1 * (var(--rail-w) + var(--gutter) + 4px)));
  opacity: 0; pointer-events: none;
}
.rail-scroll { overflow-y: auto; overflow-x: hidden; flex: 1; }

.sec { padding: 14px 14px 15px; border-bottom: 1px solid var(--line-soft); }
.sec.last { border-bottom: 0; }
.sec-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 11px;
}
.sec-note {
  margin-left: auto; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text-4);
}

/* render mode grid */
.mode-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mode-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 2px 8px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--inset);
  transition: all .14s var(--ease);
}
.mode-btn i { font-size: 12px; color: var(--text-3); transition: color .14s; }
.mode-btn span { font-size: 9px; font-weight: 500; color: var(--text-3); letter-spacing: .02em; }
.mode-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.mode-btn:hover i, .mode-btn:hover span { color: var(--text-2); }
.mode-btn.active { border-color: var(--accent-line); background: var(--accent-wash); }
.mode-btn.active i, .mode-btn.active span { color: var(--accent-hi); }
.mode-btn.active span { font-weight: 600; }

.subpanel {
  margin-top: 10px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--inset);
}
.subpanel[hidden] { display: none; }
.sp-title {
  font-size: 9px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 9px;
}

/* segmented control */
.seg {
  display: flex; gap: 2px; padding: 2px;
  background: var(--inset); border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.seg button {
  flex: 1; padding: 4px 4px; border-radius: var(--r-xs);
  font-size: 10px; font-weight: 500; color: var(--text-3);
  white-space: nowrap; transition: all .14s;
}
.seg button:hover { color: var(--text-2); background: var(--surface-2); }
.seg button.active {
  background: var(--surface-3); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.seg.tight { margin-top: 10px; }
.seg.tight button { font-family: var(--mono); font-size: 10px; }

/* sliders */
.ctl-row + .ctl-row { margin-top: 13px; }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 8px; }
.ctl-label { font-size: 11.5px; color: var(--text-2); }
.ctl-val {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 11px; color: var(--text);
}
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px; border-radius: 1px;
  background: var(--line-strong); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text); border: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5);
  cursor: grab;
}
input[type=range]::-webkit-slider-thumb:active { background: var(--accent-hi); cursor: grabbing; }
input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text); border: 0;
}

/* depth block */
#depth-block { display: flex; gap: 14px; }
#depth-rail {
  position: relative; width: 30px; height: 152px; flex: none;
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a3448 0%, #14273a 22%, #0e1c2b 50%, #0a121c 78%, #070b11 100%);
}
#depth-cursor {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 1.5px solid var(--text); pointer-events: none;
}
#depth-cursor::after {
  content: ''; position: absolute; right: 2px; top: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text);
}
.depth-tick { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.10); pointer-events: none; }
.depth-tick span { display: none; }
#depth-readout { flex: 1; min-width: 0; padding-top: 1px; }
.depth-value {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 21px; font-weight: 500; color: var(--text); line-height: 1;
  letter-spacing: -.02em;
}
.depth-value small { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 1px; }
.depth-zone {
  margin-top: 9px; font-size: 9.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
}
.depth-note { margin-top: 6px; font-size: 10.5px; color: var(--text-4); line-height: 1.5; }

/* layer toggles */
.tog-list { display: flex; flex-direction: column; gap: 1px; }
.tog {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 7px 9px; border-radius: var(--r-sm);
  text-align: left; transition: background .14s;
}
.tog:hover { background: var(--surface-2); }
.tog-swatch {
  width: 8px; height: 8px; border-radius: 2px; flex: none;
  background: var(--sw); opacity: .3;
  transition: opacity .14s, box-shadow .14s;
}
.tog.on .tog-swatch { opacity: 1; }
.tog-name { flex: 1; font-size: 12px; color: var(--text-3); transition: color .14s; }
.tog.on .tog-name { color: var(--text); }
.tog-meta {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 9.5px; color: var(--text-4);
}

/* navigation hints */
#hint-list { display: flex; flex-direction: column; gap: 7px; }
.hint { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.hint span:first-child { flex: 1; }
kbd, .kbd {
  font-family: var(--mono); font-size: 9.5px; line-height: 1.5;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  padding: 1px 5px; white-space: nowrap;
}

/* ========================================================================
   BOTTOM DOCK — transport · annual timeline · speed · legend
   ------------------------------------------------------------------------
   Layout contract: every cell is either FIXED-WIDTH or flexible, and no cell
   contains text whose length changes with the data. That is what keeps the
   dock geometry rock-steady as the year plays — the timeline never reflows.
   Vertical rhythm is shared: --dock-row is the height of a control row and
   --dock-cap the height of a micro-caption, in both the timeline and legend.
   ===================================================================== */
#dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 35;
  height: var(--dock-h);
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, rgba(11,14,20,.93) 0%, rgba(11,14,20,.985) 100%);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-top: 1px solid var(--line);
}
/* separators are inset from the dock edges so the rule reads as a hairline
   between groups rather than a full-height border */
#dock > * + * { position: relative; }
#dock > * + *::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 1px; background: var(--line-soft); pointer-events: none;
}

/* ---- transport ---- */
#dock-transport {
  display: flex; align-items: center; gap: 4px;
  padding: 0 var(--dock-pad); flex: none;
}
.tp-btn {
  width: 26px; height: 26px; border-radius: var(--r-xs);
  display: grid; place-items: center; font-size: 10px;
  color: var(--text-3);
  transition: background .14s, color .14s;
}
.tp-btn:hover { background: var(--surface-2); color: var(--text); }
.tp-btn.active { color: var(--accent-hi); background: var(--accent-wash); }
#tl-play {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 3px;
  display: grid; place-items: center; font-size: 11px;
  color: var(--accent-hi);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  transition: all .16s var(--ease);
}
#tl-play:hover { background: rgba(63,184,196,.18); border-color: var(--accent); }
#tl-play.playing { background: var(--accent); border-color: var(--accent); color: #05191c; }
#tl-play i { margin-left: 1px; }
#tl-play.playing i { margin-left: 0; }

/* the date readout is a chip of FIXED width — fits
   "28 Feb–04 Mar OUTLOOK" and every other pentad label without resizing.
   The year is NOT repeated here — the year selector chip next to it owns it. */
#tl-date {
  margin-left: 6px; flex: none;
  width: 19ch; text-align: center;
  height: 26px; line-height: 24px;
  padding: 0 2px; border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--inset);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 500; color: var(--text);
  letter-spacing: -.01em; white-space: nowrap;
  cursor: default;
}
#tl-date .td-dash { color: var(--text-4); margin: 0 1px; }
#tl-date .td-year { color: var(--text-3); margin-left: 2px; }
/* analysis / now / outlook phase badge — makes the climatology-vs-future
   distinction explicit so no timestamp reads as observed future data */
#tl-date .td-phase {
  display: inline-block; margin-left: 5px; padding: 0 5px;
  border-radius: 3px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .08em; vertical-align: 1px; line-height: 13px;
}
#tl-date .td-phase.outlook { background: rgba(224,151,95,.16); color: #e0975f; border: 1px solid rgba(224,151,95,.4); }
#tl-date .td-phase.now { background: rgba(107,212,221,.14); color: #6bd4dd; border: 1px solid rgba(107,212,221,.4); }

/* ---- year selector (time machine) ---- */
#yr-wrap { position: relative; margin-left: 4px; flex: none; }
#yr-btn {
  display: flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 7px; border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--inset);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 600; color: var(--text);
  transition: background .14s, border-color .14s, color .14s;
}
#yr-btn:hover { background: var(--surface-2); border-color: var(--accent-line); }
#yr-btn > i:first-child { font-size: 10px; color: var(--text-3); }
#yr-btn .yr-chev { font-size: 8px; color: var(--text-4); transition: transform .16s; }
#yr-btn[aria-expanded="true"] .yr-chev { transform: rotate(180deg); }
#yr-btn.archive {
  border-color: rgba(224,151,95,.45);
  background: rgba(224,151,95,.10);
  color: #e0975f;
}
#yr-btn.archive > i:first-child { color: #e0975f; }
#yr-btn.loading { opacity: .55; pointer-events: none; }
#yr-btn.loading > i:first-child { animation: yr-spin 1s linear infinite; }
@keyframes yr-spin { to { transform: rotate(-360deg); } }
/* Compact year-grid popover. NOTE: background must be a REAL palette token
   (--surface-1) — the old var(--surface) didn't exist, which rendered the
   whole menu transparent over the map. */
#yr-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  width: 236px; max-height: 320px; overflow-y: auto;
  padding: 7px; border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 14px 40px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.4);
  display: none; z-index: 60;
}
#yr-menu.open { display: block; }
/* pinned live-year row */
.yr-live {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 6px 9px; margin-bottom: 6px;
  border-radius: var(--r-xs);
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  transition: background .12s;
}
.yr-live:hover { background: rgba(63,184,196,.16); }
.yr-live .yr-y { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.yr-live .yr-sub { font-size: 9.5px; color: var(--text-3); letter-spacing: .02em; }
.yr-grid-cap {
  padding: 1px 3px 4px; font-size: 9px; font-weight: 700;
  letter-spacing: .1em; color: var(--text-4); text-transform: uppercase;
}
/* archive years as a dense 4-column grid of chips */
.yr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.yr-item {
  height: 27px; border-radius: var(--r-xs);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text-2); font-variant-numeric: tabular-nums;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
  position: relative;
}
.yr-item:hover { background: var(--surface-3); color: var(--text); }
.yr-item.active {
  background: var(--accent-wash); color: var(--accent-hi);
  border-color: var(--accent-line); font-weight: 700;
}
/* partial-coverage marker (dot) — details in the tooltip */
.yr-item.partial::after {
  content: ''; position: absolute; top: 3px; right: 4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #e0975f;
}
.yr-item.pending { opacity: .32; cursor: default; background: transparent; border: 1px dashed var(--line-soft); }
.yr-item.pending:hover { background: transparent; color: var(--text-2); }
.yr-empty { padding: 9px 10px; font-size: 11px; color: var(--text-3); }

/* ---- annual timeline ---- */
#dock-timeline {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--dock-pad);
}

/* monsoon regime band — a 2px colour-coded hairline above the months.
   Replaces the old text season tabs: same information, zero clutter. */
#tl-band { display: flex; gap: 2px; height: 2px; margin-bottom: 5px; }
.tl-bandseg {
  min-width: 0; border-radius: 1px;
  background: var(--rg, var(--line));
  opacity: .34; transition: opacity .22s var(--ease);
}
.tl-bandseg.active { opacity: 1; }
.tl-bandseg.regime-ne     { --rg: #5b7fa8; }  /* NE monsoon — cool, dry  */
.tl-bandseg.regime-spring { --rg: #6fb3a4; }  /* inter-monsoon — warming */
.tl-bandseg.regime-sw     { --rg: #4f9e77; }  /* SW monsoon — wet        */
.tl-bandseg.regime-fall   { --rg: #b39055; }  /* inter-monsoon — cooling */

/* month strip */
#tl-months { display: flex; gap: 2px; }
.tl-month {
  position: relative; min-width: 0; height: var(--dock-row);
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  background: var(--inset);
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.tl-month .tlm-label {
  display: block; overflow: hidden;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .06em; color: var(--text-4);
  transition: color .16s; line-height: calc(var(--dock-row) - 2px);
}
.tl-month:hover { background: var(--surface-2); }
.tl-month:hover .tlm-label { color: var(--text-2); }
.tl-month.past { background: #0c1116; }
.tl-month.past .tlm-label { color: var(--text-3); }
.tl-month.active {
  background: var(--surface-3); border-color: var(--line-strong);
}
.tl-month.active .tlm-label { color: var(--text); font-weight: 600; }
/* pentad position needle inside the active month — anchored to the cell floor
   so it reads as a position marker, not as a text caret struck through the
   month label (which is how a full-height bar looked) */
.tlm-mark { display: none; }
.tl-month.active .tlm-mark {
  display: block; position: absolute; left: 0; bottom: 2px;
  width: 3px; height: 3px;
  border-radius: 1.5px; background: var(--accent);
  transform: translateX(-50%);
  transition: left .2s var(--ease);
}

/* scrubber */
#tl-scrub { position: relative; height: var(--dock-cap); margin-top: 3px; cursor: pointer; }
#tl-scrub-track {
  position: absolute; left: 0; right: 0; top: 5px; height: 2px;
  border-radius: 1px; background: var(--line-strong);
}
#tl-scrub-fill {
  position: absolute; left: 0; top: 5px; height: 2px;
  border-radius: 1px; background: var(--accent-dim);
}
#tl-scrub-head {
  position: absolute; top: 2px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--text);
  box-shadow: 0 0 0 1px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.6);
  transform: translateX(-50%);
  transition: left .12s linear;
}
#tl-scrub:hover #tl-scrub-head { box-shadow: 0 0 0 1px rgba(0,0,0,.65), 0 0 0 4px var(--accent-wash); }
.tl-scrub-tick {
  position: absolute; top: 3.5px; width: 1px; height: 5px;
  background: var(--line-strong); pointer-events: none;
}
/* today marker — analysis | outlook boundary */
.tl-now-tick {
  position: absolute; top: 0; width: 2px; height: 12px;
  background: #6bd4dd; border-radius: 1px; pointer-events: none;
  box-shadow: 0 0 6px rgba(107,212,221,.55);
  transform: translateX(-50%);
}
.tl-outlook-shade {
  position: absolute; right: 0; top: 4px; height: 4px;
  background: repeating-linear-gradient(90deg,
    rgba(224,151,95,.24) 0 4px, transparent 4px 8px);
  border-radius: 2px; pointer-events: none;
}

/* ---- speed ---- */
#dock-speed {
  flex: none; display: flex; align-items: center;
  gap: 6px; padding: 0 var(--dock-pad);
}
/* the speed selector is pinned to the same 26px baseline as the transport
   buttons, the date chip and the palette button — one control height, dock-wide */
#dock-speed .seg { margin-top: 0; width: 128px; height: 26px; padding: 2px; }
#dock-speed .seg button { padding: 0; line-height: 20px; }

/* ---- legend ---- */
/* wider than before, and the header row uses the same --dock-cap rhythm as the
   timeline scrubber so the two groups optically align across the dock */
#dock-legend {
  position: relative; flex: none; width: 300px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--dock-pad);
}
#lg-head {
  display: flex; align-items: center; gap: 8px;
  height: var(--dock-cap); margin-bottom: 5px;
}
#lg-title {
  font-size: 9px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#lg-title em { font-family: var(--mono); font-size: 9px; color: var(--text-4); letter-spacing: 0; text-transform: none; }
/* the palette button is a real 26px target, matching the transport buttons —
   it used to be an 18px afterthought squeezed by the title */
#lg-edit {
  width: 26px; height: 26px; border-radius: var(--r-xs);
  flex: none; margin-left: auto;
  display: grid; place-items: center; font-size: 10.5px; color: var(--text-3);
  border: 1px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
}
#lg-edit:hover { background: var(--surface-2); color: var(--text); }
#lg-edit.active {
  background: var(--accent-wash); color: var(--accent-hi);
  border-color: var(--accent-line);
}
#cb-canvas {
  width: 100%; height: 10px; display: block; border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
#cb-ticks {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 9px; color: var(--text-3);
}

/* colour-scale editor pops UP out of the dock */
#cb-editor {
  position: absolute; bottom: calc(100% + 1px); right: 0;
  width: 300px; display: none;
  background: var(--surface-1); border: 1px solid var(--line-strong);
  border-radius: var(--r) 0 0 0;
  box-shadow: var(--shadow-lg);
  padding: 14px var(--dock-pad) 15px;
}
#cb-editor.open { display: block; }
.cb-ed-title {
  font-size: 9px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 8px;
}
.cb-ed-title + .pal-grid { margin-bottom: 13px; }
.pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pal-item {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px; border-radius: var(--r-xs);
  border: 1px solid transparent; text-align: left;
  transition: all .14s;
}
.pal-item:hover { background: var(--surface-2); }
.pal-item.active { border-color: var(--accent-line); background: var(--accent-wash); }
.pal-swatch { width: 34px; height: 7px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.pal-name { font-size: 10px; color: var(--text-3); }
.pal-item.active .pal-name { color: var(--text); }
.cb-minmax { display: flex; gap: 6px; align-items: center; }
.cb-minmax input {
  flex: 1; min-width: 0; height: 26px; padding: 0 8px;
  border-radius: var(--r-xs); border: 1px solid var(--line);
  background: var(--inset);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 11px; outline: none;
}
.cb-minmax input:focus { border-color: var(--accent-line); }
.cb-arrow { color: var(--text-4); font-size: 11px; }
.cb-row2 { display: flex; gap: 4px; margin-top: 8px; }
.mini-btn {
  height: 26px; padding: 0 10px; border-radius: var(--r-xs);
  border: 1px solid var(--line);
  font-size: 10.5px; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  transition: all .14s;
}
.mini-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.mini-btn.active { color: var(--accent-hi); border-color: var(--accent-line); background: var(--accent-wash); }
.mini-btn.primary {
  background: var(--accent); border-color: var(--accent); color: #05191c; font-weight: 600;
}
.mini-btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: #05191c; }
.cb-row2 .mini-btn { flex: 1; }

/* ============================================================ compass */
#compass {
  position: absolute; z-index: 20;
  right: var(--gutter); top: calc(var(--tb-h) + var(--gutter));
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(16, 20, 25, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color .16s, background .16s;
}
#compass:hover { border-color: var(--line-strong); background: var(--surface-2); }
#compass svg { display: block; overflow: visible; }

/* the rose rotates as one rigid body — nothing is absolutely positioned,
   so the north marker can never collide with or clip the frame */
/* rotation is driven by the SVG transform attribute (rotate deg 17 17), so no
   transform-box/-origin is needed — those apply only to CSS transforms, whose
   patchy support on <g> elements is what previously froze the rose */
#compass-rose {
  transition: transform .12s linear;
}
.cmp-ring   { fill: none; stroke: var(--line); stroke-width: 1; }
.cmp-tick   { stroke: var(--text-4); stroke-width: 1; stroke-linecap: round; }
.cmp-tick-n { stroke: var(--accent-dim); }
.cmp-n      { fill: var(--accent); }
.cmp-s      { fill: var(--text-4); }
.cmp-hub    { fill: var(--surface-3); stroke: var(--line-strong); stroke-width: 1; }
#compass:hover .cmp-n { fill: var(--accent-hi); }
#compass:hover .cmp-s { fill: var(--text-3); }

/* ============================================================ pan control
   Sits directly under the compass — same right gutter, same 34px round
   footprint — so the two view controls read as one cluster. The button is
   the drag-to-pan switch itself, so `.active` is its armed state. */
#pan-btn {
  position: absolute; z-index: 20;
  right: var(--gutter);
  top: calc(var(--tb-h) + var(--gutter) + 34px + 8px);
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(16, 20, 25, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text-3); font-size: 12.5px;
  transition: border-color .16s, background .16s, color .16s;
}
#pan-btn:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
#pan-btn.active {
  color: var(--accent-hi); border-color: var(--accent-line); background: var(--accent-wash);
}

/* While drag-to-pan is armed the whole canvas advertises it. */
#gl.pan-cursor { cursor: grab !important; }
#gl.pan-cursor:active { cursor: grabbing !important; }

/* ============================================================ stats panel */
#stats-panel {
  position: absolute; z-index: 36;
  top: calc(var(--tb-h) + var(--gutter)); right: var(--gutter);
  width: 306px; padding: 14px 16px 16px;
  transform: translateX(calc(100% + var(--gutter))); opacity: 0;
  transition: transform .3s var(--ease), opacity .22s;
}
#stats-panel.open { transform: none; opacity: 1; }
.pnl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.pnl-head h3 {
  font-size: 9.5px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-3);
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sg-cell {
  background: var(--inset); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 11px;
}
.sg-cell.wide { grid-column: 1 / -1; }
.sg-cell .v {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: -.02em;
}
.sg-cell .v small { font-size: 9.5px; color: var(--text-4); font-weight: 400; }
.sg-cell .v.cool { color: #7fa8cc; }
.sg-cell .v.warm { color: #d98a6a; }
.sg-cell .k {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-4); margin-top: 4px; line-height: 1.4;
}
.spark-block { margin-top: 13px; }
#stats-spark {
  width: 100%; height: 56px; display: block;
  border-radius: var(--r-sm); background: var(--inset); border: 1px solid var(--line);
}
#spark-axis {
  display: flex; justify-content: space-between; margin-top: 5px;
  font-family: var(--mono); font-size: 9px; color: var(--text-4);
}

/* ============================================================ inspector */
#inspector {
  position: absolute; z-index: 42;
  top: calc(var(--tb-h) + var(--gutter)); right: var(--gutter);
  width: 372px;
  max-height: calc(100% - var(--tb-h) - var(--dock-h) - var(--gutter) * 2);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + var(--gutter))); opacity: 0;
  transition: transform .32s var(--ease), opacity .22s;
}
#inspector.open { transform: none; opacity: 1; }
#insp-head { padding: 13px 15px 11px; border-bottom: 1px solid var(--line); }
#insp-head-top { display: flex; align-items: flex-start; gap: 11px; }
#insp-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; font-size: 13px;
  color: var(--ic); background: color-mix(in srgb, var(--ic) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 26%, transparent);
}
#insp-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
#insp-sub { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 3px; }
#insp-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.badge {
  padding: 2px 7px; border-radius: var(--r-xs);
  font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line);
}
.badge.live { color: var(--ok); background: rgba(79,168,122,.10); border-color: rgba(79,168,122,.26); }
.badge.warn { color: var(--warn); background: rgba(194,160,79,.10); border-color: rgba(194,160,79,.26); }
#insp-tabs { display: flex; gap: 0; padding: 0 12px; border-bottom: 1px solid var(--line); }
.itab {
  padding: 9px 11px; font-size: 11.5px; color: var(--text-3);
  border-bottom: 1.5px solid transparent; margin-bottom: -1px;
  transition: color .14s, border-color .14s;
}
.itab:hover { color: var(--text-2); }
.itab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
#insp-body { overflow-y: auto; padding: 14px 15px 16px; flex: 1; }
.insp-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 13px; }
.kv { background: var(--inset); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.kv .k { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); margin-bottom: 4px; }
.kv .v {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 11.5px; color: var(--text);
}
.kv .v small { color: var(--text-3); font-size: 9.5px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 13px; }
.stat-cell {
  text-align: center; background: var(--inset);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 4px;
}
.stat-cell .sv {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -.02em;
}
.stat-cell .sv small { font-size: 9px; color: var(--text-4); font-weight: 400; }
.stat-cell .sk { font-size: 8.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-4); margin-top: 4px; }
.chart-block { margin-bottom: 15px; }
.chart-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.chart-title .lgd { display: flex; gap: 9px; font-size: 9px; font-weight: 400; letter-spacing: .04em; }
.lgd span { display: flex; align-items: center; gap: 4px; color: var(--text-4); text-transform: none; }
.lgd i { width: 10px; height: 2px; border-radius: 1px; display: inline-block; }
.chart-canvas {
  width: 100%; display: block; border-radius: var(--r-sm);
  background: var(--inset); border: 1px solid var(--line);
}
.note-box {
  font-size: 11.5px; color: var(--text-2); line-height: 1.6;
  background: var(--inset); border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  border-radius: var(--r-xs); padding: 10px 12px; margin-bottom: 13px;
}
.note-box i { color: var(--accent); margin-right: 7px; }
.note-box b { color: var(--text); font-weight: 600; }
.note-box.good { border-left-color: var(--ok); }
.note-box.good i { color: var(--ok); }
.meta-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.meta-table td { padding: 7px 4px; border-bottom: 1px solid var(--line-soft); }
.meta-table td:first-child { color: var(--text-4); width: 44%; }
.meta-table td:last-child {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  color: var(--text-2); font-size: 10.5px;
}

/* ============================================================ probe */
#probe {
  position: absolute; z-index: 50; display: none; pointer-events: none;
  padding: 8px 11px; border-radius: var(--r-sm);
  background: rgba(11,14,20,.96); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
#probe .p-val {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -.02em;
}
#probe .p-loc { font-family: var(--mono); font-size: 9.5px; color: var(--text-3); margin-top: 3px; }

/* ============================================================ toast */
#toast {
  position: absolute; z-index: 95;
  top: calc(var(--tb-h) + var(--gutter)); left: 50%;
  transform: translate(-50%, -12px);
  display: flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 18px;
  background: var(--surface-1); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  font-size: 12px; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast i { color: var(--accent); font-size: 11px; }

/* ============================================================ tour */
#tour-overlay { position: absolute; inset: 0; z-index: 80; pointer-events: none; display: none; }
#tour-overlay.open { display: block; }
#tour-card {
  position: absolute; width: 392px; padding: 17px 19px 16px;
  pointer-events: auto; transition: all .4s var(--ease);
}
#tour-step-num {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 9.5px; color: var(--accent);
  letter-spacing: .14em; margin-bottom: 10px;
}
.tour-dots { display: flex; gap: 4px; }
.tour-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.tour-dot.done { background: var(--accent-dim); }
.tour-dot.now { background: var(--accent); width: 12px; border-radius: 2px; }
#tour-title { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
#tour-text { font-size: 12.5px; line-height: 1.65; color: var(--text-2); margin-bottom: 15px; }
#tour-text b { color: var(--text); font-weight: 600; }
.tour-btns { display: flex; gap: 6px; align-items: center; }
.tour-btns .spacer { flex: 1; }
#tour-exit { color: var(--text-4); font-size: 11.5px; }
#tour-exit:hover { color: var(--text-2); }

/* ============================================================ modal */
#modal-scrim {
  position: absolute; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center;
  background: rgba(4,6,9,.72); backdrop-filter: blur(3px);
}
#modal-scrim.open { display: flex; }
#modal {
  width: min(660px, calc(100vw - 40px)); max-height: 82vh;
  display: flex; flex-direction: column; overflow: hidden;
}
#modal-head {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
#modal-head h2 { font-size: 14px; font-weight: 600; flex: 1; }
#modal-icon { color: var(--accent); font-size: 13px; }
#modal-body { padding: 17px 18px 20px; overflow-y: auto; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
#modal-body p + p { margin-top: 10px; }
#modal-body b { color: var(--text); font-weight: 600; }
#modal-body h4 {
  color: var(--text); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  margin: 20px 0 10px; font-weight: 600;
}
#modal-body h4:first-child { margin-top: 0; }
#modal-body code {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface-2); color: var(--accent-hi);
  padding: 1px 6px; border-radius: var(--r-xs); border: 1px solid var(--line);
}
.src-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); margin-bottom: 5px; background: var(--inset);
}
.src-item .si-ic {
  width: 28px; height: 28px; border-radius: var(--r-xs); flex: none;
  display: grid; place-items: center; font-size: 12px;
  color: var(--ic, var(--text-2));
  background: color-mix(in srgb, var(--ic, #8a94a3) 12%, transparent);
}
.src-item .si-ic.accent { --ic: var(--accent); }
.src-item .si-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.src-item .si-desc { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 3px; }
.src-item .badge { margin-left: auto; flex: none; }

/* ========================================================================
   RESPONSIVE — collapse chrome from the least essential inward
   ===================================================================== */
@media (max-width: 1500px) {
  #dock-legend { width: 274px; }
  #inspector { width: 348px; }
}
@media (max-width: 1320px) {
  :root { --dock-pad: 13px; }
  #dock-legend { width: 250px; }
  #grid-chip { display: none; }
}
@media (max-width: 1180px) {
  :root { --dock-h: 68px; --rail-w: 256px; }
  #dock-speed .seg { width: 112px; }
  #tl-date { font-size: 11px; width: 17ch; margin-left: 5px; }
  .brand-sub { display: none; }
}
@media (max-width: 1000px) {
  #dock-legend { display: none; }
  #var-chips .var-chip { padding: 0 9px; font-size: 12px; }
  #search-wrap { max-width: 220px; }
  #btn-share span { display: none; }
}
@media (max-width: 860px) {
  :root { --tb-h1: 0px; }
  #tb-identity { display: none; }
  #var-chips .var-chip { padding: 0 8px; }
  #var-chips .var-chip:not(.active) { font-size: 0; gap: 0; }
  #inspector, #stats-panel { width: calc(100vw - var(--gutter) * 2); }
  #compass { display: none; }
  /* The compass hides here, so the pan cluster must go with it — otherwise the
     button floats alone against the top edge and the panel overlaps the rail. */
  #pan-btn { display: none; }
}

/* ============================================================================
   Analysis tools & Hazard console
   ============================================================================ */
#gl.analysis-cursor { cursor: crosshair !important; }

#ana-hint {
  display: none; margin-top: 8px;
  font-size: 10.5px; line-height: 1.5; color: var(--accent-hi);
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  border-radius: var(--r-xs); padding: 7px 9px;
}
#ana-hint.on { display: block; }
.sp-note { font-size: 9.5px; color: var(--text-4); margin-top: 7px; line-height: 1.4; }

#analysis-panel, #hazard-panel, #advisory-panel {
  position: absolute; z-index: 44;
  top: calc(var(--tb-h) + var(--gutter)); right: var(--gutter);
  width: 420px;
  max-height: calc(100% - var(--tb-h) - var(--dock-h) - var(--gutter) * 2);
  display: flex; flex-direction: column; overflow: hidden;
  padding: 14px 16px 14px;
  transform: translateX(calc(100% + var(--gutter))); opacity: 0;
  transition: transform .32s var(--ease), opacity .22s;
}
#analysis-panel.open, #hazard-panel.open, #advisory-panel.open { transform: none; opacity: 1; }
.pnl-scroll { overflow-y: auto; min-height: 0; padding-right: 4px; margin-right: -6px; }
.pnl-scroll::-webkit-scrollbar { width: 7px; }
.pnl-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 4px; }
#analysis-panel .pnl-head h3 i { color: var(--accent); margin-right: 7px; }
#analysis-panel .insp-kv { margin-bottom: 9px; }
#analysis-panel .stat-strip { margin-bottom: 11px; }
#analysis-panel .chart-block { margin-bottom: 12px; }
#analysis-panel .chart-title { margin-bottom: 6px; }

.ana-actions { display: flex; gap: 7px; margin: 4px 0 13px; }
.ana-actions .mini-btn { flex: 1; }

/* chart hover readout (section curtain, etc.) */
.chart-tip {
  position: fixed; z-index: 120; display: none; pointer-events: none;
  padding: 6px 10px; border-radius: var(--r-sm);
  background: rgba(11,14,20,.97); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  line-height: 1.45; white-space: nowrap;
}
.chart-tip b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.chart-tip span { display: block; font-size: 9.5px; color: var(--text-3); }
.chart-canvas.hoverable { cursor: crosshair; }
.chart-hint {
  margin-top: 5px; font-size: 9.5px; color: var(--text-4);
  display: flex; align-items: center; gap: 5px;
}
.chart-hint i { font-size: 8.5px; color: var(--accent-dim); }

/* Hazard chip in the top bar */
.hz-chip { position: relative; }
.hz-chip i { color: #d98a6a; }
.hz-chip.active { background: rgba(217,138,106,.12); border-color: rgba(217,138,106,.4); color: #f0b090; }
.hz-badge {
  min-width: 14px; height: 14px; padding: 0 4px;
  display: grid; place-items: center;
  font-size: 8.5px; font-weight: 700; font-family: var(--mono);
  color: #0b0e14; background: #d98a6a; border-radius: 7px;
}

/* hazard toggles reuse .tog list styling */
.hz-toggles { display: flex; flex-direction: column; gap: 4px; }

.hz-card {
  background: var(--inset); border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  border-radius: var(--r-xs); padding: 10px 12px; margin-bottom: 8px;
}
.hz-card.lvl-severe { border-left-color: #c05138; background: rgba(192,81,56,0.06); }
.hz-card.lvl-warn { border-left-color: #d98a6a; }
.hz-card.lvl-watch { border-left-color: #d4bc5c; }
.hz-card.lvl-info { border-left-color: #7fa8cc; }
.hz-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hz-card-head i { font-size: 11px; color: var(--text-3); }
.hz-card.lvl-severe .hz-card-head i { color: #e07a5f; }
.hz-lvl {
  font-size: 8px; font-weight: 700; letter-spacing: .12em; font-family: var(--mono);
  color: var(--lv); border: 1px solid var(--lv); border-radius: 3px; padding: 1px 5px;
  flex: none;
}
.hz-title { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.hz-body-text { font-size: 11px; line-height: 1.55; color: var(--text-2); }
.hz-body-text b { color: var(--text); }
.hz-action {
  margin-top: 7px; font-size: 10px; color: var(--text-3);
  border-top: 1px solid var(--line-soft); padding-top: 6px; line-height: 1.45;
}
.hz-action i { margin-right: 6px; color: var(--accent-dim); }

.hz-storm-list { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 12px; }
.hz-storm {
  display: flex; align-items: center; gap: 8px;
  background: var(--inset); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 7px 10px; cursor: pointer;
  text-align: left; transition: border-color .15s, background .15s;
}
.hz-storm:hover { border-color: rgba(217,138,106,.45); background: rgba(217,138,106,.06); }
.hz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 6px color-mix(in srgb, var(--c) 60%, transparent); }
.hz-sname { font-size: 10.5px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.hz-syear {
  font-size: 8px; font-weight: 700; font-family: var(--mono); color: var(--text-3);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 5px;
}
.hz-smeta { font-size: 8.5px; font-family: var(--mono); color: var(--text-4); margin-left: auto; }

/* ---- time-synced prediction console additions ---- */
.hz-sec {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 8px; padding-bottom: 5px;
  border-bottom: 1px solid var(--line-soft);
}
.hz-sec:first-of-type { margin-top: 12px; }
.hz-sec i { font-size: 9.5px; color: var(--accent-dim); width: 13px; text-align: center; }
.hz-sec span {
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
}
.hz-sec em {
  margin-left: auto; font-style: normal; font-family: var(--mono);
  font-size: 8.5px; color: var(--text-4); letter-spacing: .04em;
}

.hz-timestamp {
  display: flex; align-items: baseline; gap: 9px;
  background: var(--inset); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 9px 12px; margin-bottom: 6px;
}
.hz-timestamp i { color: var(--accent-dim); font-size: 11px; align-self: center; }
.hz-timestamp b { font-size: 13px; color: var(--text); letter-spacing: .01em; }
.hz-ts-meta { font-size: 9px; font-family: var(--mono); color: var(--text-4); }
.hz-phase {
  margin-left: auto;
  font-size: 8px; font-weight: 700; letter-spacing: .12em; font-family: var(--mono);
  border-radius: 3px; padding: 2px 6px; border: 1px solid;
}
.hz-phase.analysis { color: #8fd0a0; border-color: rgba(143,208,160,.5); background: rgba(143,208,160,.07); }
.hz-phase.now { color: #ffd9c0; border-color: rgba(255,217,192,.5); background: rgba(255,217,192,.07); }
.hz-phase.outlook { color: #7fa8cc; border-color: rgba(127,168,204,.5); background: rgba(127,168,204,.07); }

/* season-analog explainer — kills the "why is a 2023 storm in 2026?" confusion */
.hz-analog-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(63,184,196,.05); border: 1px solid rgba(63,184,196,.22);
  border-radius: var(--r-xs); padding: 8px 11px; margin-bottom: 4px;
}
.hz-analog-note i { color: var(--accent); font-size: 10px; margin-top: 2px; flex: none; }
.hz-analog-note span { font-size: 9.5px; color: var(--text-3); line-height: 1.55; }
.hz-analog-note b { color: var(--text-2); font-weight: 600; }
.hz-analog-pill {
  font-size: 7.5px; font-weight: 700; letter-spacing: .1em; font-family: var(--mono);
  text-transform: uppercase; color: var(--accent); cursor: help;
  border: 1px solid rgba(63,184,196,.45); background: rgba(63,184,196,.08);
  border-radius: 3px; padding: 2px 6px; vertical-align: 2px;
}

.hz-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 2px; }
.hz-tile {
  display: grid; grid-template-rows: auto auto auto; row-gap: 2px;
  position: relative;
  background: var(--inset); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 8px 9px 7px;
}
.hz-tile i { position: absolute; top: 8px; right: 9px; font-size: 10px; color: var(--text-4); opacity: .8; }
.hz-tile-k { font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.hz-tile-v {
  font-size: 12px; font-weight: 700; font-family: var(--mono); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hz-tile-l { font-size: 7.5px; font-weight: 700; letter-spacing: .12em; font-family: var(--mono); }
.hz-tile.rk-low  { border-top: 2px solid #5a7a9a; } .hz-tile.rk-low  .hz-tile-l { color: #7fa8cc; }
.hz-tile.rk-mod  { border-top: 2px solid #d4bc5c; } .hz-tile.rk-mod  .hz-tile-l { color: #d4bc5c; }
.hz-tile.rk-high { border-top: 2px solid #d98a6a; background: rgba(217,138,106,.05); } .hz-tile.rk-high .hz-tile-l { color: #e0975f; }
.hz-tile.rk-sev  { border-top: 2px solid #c05138; background: rgba(192,81,56,.08); } .hz-tile.rk-sev  .hz-tile-l { color: #e07a5f; }

.hz-live {
  background: rgba(217,138,106,.045); border: 1px solid rgba(217,138,106,.25);
  border-radius: var(--r-xs); padding: 11px 12px; margin-bottom: 2px;
}
.hz-live.quiet {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--inset); border-color: var(--line);
}
.hz-live.quiet i { color: #8fd0a0; font-size: 13px; margin-top: 2px; }
.hz-live.quiet b { font-size: 11.5px; color: var(--text); }
.hz-live.quiet small { display: block; font-size: 10px; color: var(--text-3); line-height: 1.5; margin-top: 3px; }
.hz-live-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.hz-live-badge {
  font-size: 10px; font-weight: 800; font-family: var(--mono); color: var(--c);
  border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 8%, transparent);
  border-radius: 4px; padding: 3px 7px; flex: none; margin-top: 1px;
}
.hz-live-title { min-width: 0; line-height: 1.35; }
.hz-live-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hz-live-name b { font-size: 13px; color: var(--text); letter-spacing: .02em; }
.hz-live-title small { display: block; font-size: 9.5px; color: var(--text-3); font-weight: 400; margin-top: 3px; line-height: 1.5; }
.hz-live-title small b { color: var(--text-2); font-weight: 600; font-size: 9.5px; }

.hz-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.hz-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: .04em; color: var(--text-3); }
.hz-leg i { width: 12px; height: 2px; border-radius: 1px; background: var(--c); }

.hz-fc-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.hz-fc-table th {
  font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-4); text-align: left; padding: 3px 6px 4px;
  border-bottom: 1px solid var(--line);
}
.hz-fc-table td {
  font-size: 10px; font-family: var(--mono); color: var(--text-2);
  padding: 4px 6px; border-bottom: 1px solid var(--line-soft);
}
.hz-unit { font-size: 8.5px; color: var(--text-4); }

.hz-kv-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.hz-kv {
  font-size: 9.5px; color: var(--text-2); background: var(--inset);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
}
.hz-kv b { color: var(--text-3); font-weight: 600; margin-right: 4px; font-size: 8.5px; text-transform: uppercase; letter-spacing: .05em; }
.hz-kv.warn { border-color: rgba(192,81,56,.45); background: rgba(192,81,56,.08); color: #f0c0ac; }
.hz-more-storms { margin-top: 8px; font-size: 9.5px; color: var(--text-3); line-height: 1.45; }

.hz-details {
  border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 0 12px; margin: 0 0 2px; background: var(--inset);
}
.hz-details summary {
  cursor: pointer; font-size: 10.5px; font-weight: 600; color: var(--text-2);
  padding: 9px 0; list-style: none; user-select: none;
  transition: color .15s;
}
.hz-details summary:hover { color: var(--text); }
.hz-details summary::-webkit-details-marker { display: none; }
.hz-details summary .hz-chev { color: var(--text-4); margin-right: 8px; font-size: 8px; transition: transform .18s; }
.hz-details[open] summary .hz-chev { transform: rotate(90deg); }
.hz-details[open] summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; color: var(--text); }
.hz-details > *:last-child { margin-bottom: 12px; }
.hz-cat-hint { font-size: 9px; color: var(--text-4); margin: -3px 0 7px; }
.hz-bt-note { font-size: 9.5px; color: var(--text-4); line-height: 1.55; margin: 6px 0 10px; }
.hz-gen-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.hz-gen {
  font-size: 9px; font-family: var(--mono); color: var(--text-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px;
}
.hz-gen b { margin-left: 3px; }
.hz-gen.good b { color: #8fd0a0; } .hz-gen.mid b { color: #d4bc5c; } .hz-gen.poor b { color: #e0975f; }

.hz-status {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; margin: 7px 0 3px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--inset);
}
.hz-status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #7fa8cc; }
.hz-status b { display: block; font-size: 12px; letter-spacing: .03em; }
.hz-status small { display: block; color: var(--text-3); font-size: 9.5px; margin-top: 1px; }
.hz-status em { margin-left: auto; color: var(--text-4); font-family: var(--mono); font-size: 8.5px; }
.hz-status.rk-ok .hz-status-dot { background: #5f9e82; }
.hz-status.rk-mod .hz-status-dot { background: #d4bc5c; }
.hz-status.rk-high .hz-status-dot { background: #d98a6a; }
.hz-status.rk-sev { border-color: rgba(192,81,56,.35); background: rgba(192,81,56,.07); }
.hz-status.rk-sev .hz-status-dot { background: #d96455; }
.hz-kv-primary { margin: 2px 0 10px; }
.hz-kv-primary .hz-kv { flex: 1 1 44%; padding: 6px 8px; }
.hz-main-chart { margin: 2px 0 9px; }
.hz-risk-chart { margin-bottom: 10px; }
.hz-forecast-details { margin-top: 5px; }
.hz-tools-details { margin: 12px 0 6px; }
.hz-tools-details .hz-toggles { padding-bottom: 10px; }
.hz-actions { margin-top: 10px; margin-bottom: 8px; }
.hz-source {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  color: var(--text-4); font-family: var(--mono); font-size: 8.5px;
  padding: 5px 0 1px;
}
.hz-source i { color: var(--accent-dim); }

.hz-storm.live-now { border-color: rgba(192,81,56,.55); background: rgba(192,81,56,.08); }
.hz-live-tag {
  font-size: 7px; font-weight: 800; letter-spacing: .1em; font-family: var(--mono);
  color: #ffb59a; border: 1px solid rgba(255,181,154,.5); border-radius: 3px;
  padding: 0 4px; margin-left: 5px; vertical-align: 1px;
}

@media (max-width: 860px) {
  #analysis-panel, #hazard-panel, #advisory-panel { width: calc(100vw - var(--gutter) * 2); }
  .hz-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------------
   Advisories & Alerts tab (beside Hazards) — chip + Telegram relay card
--------------------------------------------------------------------------- */
.adv-chip { position: relative; }
.adv-chip i { color: #7fa8cc; }
.adv-chip.active { background: rgba(127,168,204,.12); border-color: rgba(127,168,204,.4); color: #a8c8e8; }
.adv-chip .hz-badge { background: #c05138; color: #fff; }

#tg-card { padding-bottom: 10px; }
.tg-status {
  font-size: 11px; color: var(--text-2); line-height: 1.5;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 8px;
}
.tg-status b { color: var(--text); }
.tg-status code {
  font-family: var(--mono); font-size: 10px; background: rgba(255,255,255,.06);
  padding: 1px 5px; border-radius: 4px;
}
.tg-controls { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.tg-controls .mini-btn { justify-content: center; }
.tg-meta { font-size: 10px; color: var(--text-3); line-height: 1.6; margin-bottom: 6px; }
.tg-meta i { color: var(--accent-dim); margin-right: 4px; width: 12px; text-align: center; }
/* Telegram message preview — chat-bubble shape so operators recognise what a
   field team receives, but painted with the app's own surface/line tokens so
   it stays inside the VARUNA dark theme. */
.tg-preview {
  font-size: 11px; line-height: 1.55; color: var(--text-2);
  background: var(--inset); border: 1px solid var(--line);
  border-radius: var(--r-sm) var(--r-sm) var(--r-sm) 3px;
  padding: 10px 12px; margin-top: 8px;
  white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow-y: auto;
}
.tg-preview b { color: var(--text); font-weight: 700; }
.tg-preview i { color: var(--text-3); font-size: 10px; }
.tg-preview blockquote {
  margin: 3px 0 8px; padding: 1px 0 1px 9px;
  border-left: 2px solid var(--accent-dim);
}
.tg-pin {
  font-size: 10px; color: #d4bc5c; line-height: 1.55;
  background: rgba(212,188,92,.07); border: 1px solid rgba(212,188,92,.18);
  border-radius: 7px; padding: 7px 9px; margin-bottom: 8px;
}
.tg-pin i { margin-right: 5px; }
.tg-pin b { color: #e8d48a; }

/* ============================================== marker engine tooltip */
#marker-tip {
  position: fixed; z-index: 60; pointer-events: none;
  opacity: 0; transition: opacity .12s ease;
  max-width: 236px; padding: 8px 11px 7px;
  border-radius: var(--r-sm);
  background: rgba(11,14,20,.96); border: 1px solid var(--line-strong);
  border-left: 2.5px solid rgba(140,180,200,.9);
  box-shadow: var(--shadow);
}
#marker-tip .mt-name { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
#marker-tip .mt-sub  { font-size: 9.5px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
#marker-tip .mt-kind { font-weight: 600; }
#marker-tip .mt-hint {
  font-size: 8.5px; font-family: var(--mono); letter-spacing: .06em;
  color: var(--text-4); margin-top: 5px; text-transform: uppercase;
}
