/* Climate Explorer Native Explorer UI System — Shared Design System (US Weather Grid Standard) */

@property --ce-fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --ce-fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

/* Shared Edition Switcher Tabs (e.g., Weather on This Day Overview / USA / World) */
.ce-edition-tabs,
.wotd-region-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
  padding: 0.45rem;
  background: #f1f5f9;
  border: 1px solid #d5e0e8;
  border-radius: 12px;
}

.ce-edition-tab,
.wotd-region-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #162432;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  line-height: 1.25;
}

:is(.ce-edition-tab, .wotd-region-tab).is-active,
:is(.ce-edition-tab, .wotd-region-tab)[aria-current="page"] {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

:is(.ce-edition-tab, .wotd-region-tab):focus-visible {
  outline: 3px solid #0b57d0;
  outline-offset: 2px;
}

.ce-edition-soon,
.wotd-region-soon {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  border: 1px dashed #94a3b8;
}

@media (hover: hover) {
  :is(.ce-edition-tab, .wotd-region-tab):not([aria-current="page"]):hover {
    background: #e0f2fe;
    border-color: #0369a1;
    color: #0c4a6e;
  }
}

@media (max-width: 768px) {
  .ce-edition-tabs,
  .wotd-region-tabs {
    border-radius: 10px;
  }
  .ce-edition-tab,
  .ce-edition-soon,
  .wotd-region-tab,
  .wotd-region-soon {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ============================================================================
   Scoped Native Explorer Shell & Canonical Design Tokens
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) {
  --ce-max-width: 1200px;
  --ce-gap: 0.85rem;
  --ce-bg: #f8fafc;
  --ce-surface: #ffffff;
  --ce-surface-filter: #f6f9fb;
  --ce-surface-alt: #f1f5f9;
  --ce-surface-map-chrome: #eaf2f6;
  --ce-border: #d5e0e8;
  --ce-border-divider: #dce5ec;
  --ce-border-map: #b9ccd9;
  --ce-border-map-inner: #c5d6e2;
  --ce-border-input: #708090;
  --ce-ink: #0f172a;
  --ce-muted: #425466;
  --ce-link: #08306b;
  --ce-focus: #0b57d0;
  --ce-track-bg: #d7e5ee;
  --ce-track-border: #b5cad7;
  --ce-track-text: #1d3648;
  --ce-warm-accent: #b30000;
  --ce-warm-bg: #fff5f5;
  --ce-warm-border: #feb2b2;
  --ce-cold-accent: #08306b;
  --ce-cold-bg: #f0f7ff;
  --ce-cold-border: #90cdf4;
  --ce-prcp-accent: #006d77;
  --ce-prcp-bg: #f0fdfa;
  --ce-prcp-border: #81e6d9;
  --ce-snow-accent: #334155;
  --ce-snow-bg: #f8fafc;
  --ce-snow-border: #cbd5e1;
  --ce-sun-accent: #92400e;
  --ce-sun-bg: #fffbeb;
  --ce-sun-border: #fcd34d;
  --ce-lav-bg: #f5f3ff;
  --ce-lav-text: #2e1065;
  --ce-lav-border: #d8b4fe;

  max-inline-size: var(--ce-max-width);
  margin: 1.25rem auto 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--ce-gap);
  color: var(--ce-ink);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) *,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) *::before,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) *::after {
  box-sizing: border-box;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) [hidden],
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .hidden {
  display: none !important;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell):focus-visible:not([data-pointer-focus="true"]) {
  outline: 3px solid var(--ce-focus);
  outline-offset: 4px;
  border-radius: 10px;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell):focus:not(:focus-visible),
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell)[data-pointer-focus="true"]:focus {
  outline: none;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(button, a, input, select, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--ce-focus);
  outline-offset: 2px;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(h2, h3, h4) {
  text-wrap: balance;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(p, figcaption) {
  text-wrap: pretty;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :where(a, code) {
  overflow-wrap: anywhere;
}

/* ============================================================================
   Zone 1: Top Provenance & Scope Breadcrumb Strip
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.9rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--ce-lav-bg);
  color: var(--ce-lav-text);
  border: 1px solid var(--ce-lav-border);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--ce-muted);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-crumb-prefix {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ce-muted);
  margin-inline-end: 0.1rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-crumb-btn {
  min-height: 30px;
  border: 1px solid var(--ce-border);
  background: var(--ce-surface);
  color: var(--ce-ink);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-crumb-btn.active {
  background: var(--ce-lav-bg);
  color: var(--ce-lav-text);
  border-color: var(--ce-lav-border);
  cursor: default;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-crumb-sep {
  color: var(--ce-muted);
  font-weight: 600;
}

/* ============================================================================
   Shared Action Buttons (Never alert-red for non-destructive clearing)
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-block-size: 36px;
  padding: 0.3rem 0.72rem;
  border: 1px solid var(--ce-border);
  border-radius: 8px;
  background: var(--ce-surface);
  color: var(--ce-ink);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--primary,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--primary:active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--nav,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--nav:active {
  background: var(--ce-surface-alt);
  border-color: var(--ce-border);
  color: var(--ce-ink);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--clear,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--clear:active {
  background: #ffffff;
  color: #374151;
  border-color: #cbd5e1;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--soft,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--soft:active {
  background: #dbeafe;
  color: #0c4a6e;
  border-color: #93c5fd;
  font-weight: 700;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn[aria-pressed="true"],
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn[aria-expanded="true"],
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn[aria-pressed="true"]:active,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn[aria-expanded="true"]:active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* ============================================================================
   Cards, Panels & Zone 2 Filter Card
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-card,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-panel,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-controls-card,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-narrative-card {
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-width: 0;
  max-width: 100%;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-controls-card {
  background: var(--ce-surface-filter);
  display: flex;
  flex-direction: column;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-controls-utility-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ce-border-divider);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ce-muted);
  margin: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-label-hint {
  font-weight: 400;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-hint {
  font-size: 0.78rem;
  color: var(--ce-muted);
  line-height: 1.35;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) select,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) input[type="date"],
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) input[type="search"] {
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  min-height: 40px;
  min-block-size: 40px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--ce-border-input);
  border-radius: 8px;
  color: var(--ce-ink);
  background-color: var(--ce-surface);
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-field > select,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-field > input[type="search"],
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-wrap input[type="search"],
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) input[type="search"] {
  width: 100%;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) input[type="search"] {
  padding: 0.25rem 0.7rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(select, input[type="date"], input[type="search"]):focus {
  border-color: var(--ce-border-input);
  box-shadow: none;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-select {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 38px;
  min-block-size: 38px;
  padding: 0.18rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
  border-color: var(--ce-border-map);
  border-radius: 7px;
  color: #162432;
  background-color: var(--ce-surface);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-select:focus {
  border-color: var(--ce-border-map);
  box-shadow: none;
}

/* ============================================================================
   Accessible ARIA Combobox Search
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-wrap {
  position: relative;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-wrap input[type="search"] {
  flex: 1 1 0;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  max-height: 320px;
  overflow-y: auto;
  z-index: 80;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-dropdown li {
  padding: 0.48rem 0.8rem;
  font-size: 0.86rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-dropdown li.highlighted,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-dropdown li[aria-selected="true"] {
  background: var(--ce-surface-alt);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-dropdown li.ce-search-empty {
  color: var(--ce-muted);
  cursor: default;
  font-style: italic;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-place-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-place-left strong {
  overflow-wrap: break-word;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-place-sub {
  color: var(--ce-muted);
  font-size: 0.77rem;
  white-space: nowrap;
  flex-shrink: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-scope-badge {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  background: #e0f2fe;
  color: #075985;
}

/* ============================================================================
   Segmented Pill Tracks, Presets & Records
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-control-group {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-control-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #324b5d;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--ce-track-bg);
  border: 1px solid var(--ce-track-border);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn {
  min-inline-size: 38px;
  min-block-size: 34px;
  min-height: 34px;
  padding: 0.18rem 0.56rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ce-track-text);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn[aria-pressed="true"],
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.24);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-presets-bar,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-records-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-presets-label,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-export-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ce-muted);
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-records-head {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-records-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ce-muted);
  white-space: normal;
  overflow-wrap: break-word;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-records-hint {
  font-size: 0.76rem;
  color: var(--ce-muted);
  font-weight: 500;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-presets-list,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-records-pills {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-preset-pill,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill {
  min-height: 32px;
  border: 1px solid var(--ce-border);
  background: var(--ce-surface);
  color: var(--ce-ink);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill--warm { border-color: var(--ce-warm-border); background: var(--ce-warm-bg); color: var(--ce-warm-accent); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill--cold { border-color: var(--ce-cold-border); background: var(--ce-cold-bg); color: var(--ce-cold-accent); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill--prcp { border-color: var(--ce-prcp-border); background: var(--ce-prcp-bg); color: var(--ce-prcp-accent); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill--snow { border-color: var(--ce-snow-border); background: var(--ce-snow-bg); color: var(--ce-snow-accent); }

/* ============================================================================
   Loading Banner, Lavender Narrative Card, KPI Semantic Tint & Export Bar
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-loading-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #eef6f8;
  border: 1px solid #b8d8df;
  color: #0e4c56;
  font-size: 0.92rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-loading-banner.is-error {
  background: #fdf2f2;
  border-color: #e6b8b8;
  color: #7c1f1f;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-narrative-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: var(--ce-lav-bg);
  border-color: var(--ce-lav-border);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-narrative-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ce-lav-text);
  flex: 1 1 360px;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-narrative-text code {
  color: var(--ce-lav-text);
  background: rgba(216, 180, 254, 0.25);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-narrative-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card {
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: 12px;
  padding: 0.78rem 0.92rem;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--warm { background: var(--ce-warm-bg); border-color: var(--ce-warm-border); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--cold { background: var(--ce-cold-bg); border-color: var(--ce-cold-border); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--prcp { background: var(--ce-prcp-bg); border-color: var(--ce-prcp-border); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--snow { background: var(--ce-snow-bg); border-color: var(--ce-snow-border); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--sun  { background: var(--ce-sun-bg);  border-color: var(--ce-sun-border); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--neutral { background: #f8fbfc; border-color: var(--ce-border); }

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ce-muted);
  margin-bottom: 0.2rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-value {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ce-ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--warm .ce-kpi-value { color: var(--ce-warm-accent); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--cold .ce-kpi-value { color: var(--ce-cold-accent); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--prcp .ce-kpi-value { color: var(--ce-prcp-accent); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--snow .ce-kpi-value { color: var(--ce-snow-accent); }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card--sun  .ce-kpi-value { color: var(--ce-sun-accent); }

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-anom-warm,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .anom-warm { color: var(--ce-warm-accent); font-weight: 700; }
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-anom-cold,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .anom-cold { color: var(--ce-cold-accent); font-weight: 700; }

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
  flex-wrap: wrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-action-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-copy-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-copy-tip {
  position: absolute;
  inset-block-end: calc(100% + 6px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) button[data-copied] + .ce-copy-tip,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) button[data-failed] + .ce-copy-tip {
  opacity: 1;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) button[data-failed] + .ce-copy-tip {
  background: #7c1f1f;
}

/* ============================================================================
   Jump Bar & Workspace Tabs
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jumpbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  background: var(--ce-surface-alt);
  border: 1px solid var(--ce-border);
  border-radius: 10px;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ce-muted);
  margin-inline-end: 0.15rem;
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #162432;
  border-radius: 999px;
  min-height: 34px;
  padding: 0.2rem 0.72rem;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  text-decoration: none;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tabs-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--ce-border);
  scrollbar-width: thin;
  max-width: 100%;
  scroll-margin-top: 76px;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tab-btn {
  position: relative;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--ce-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 40px;
  padding: 0.44rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tab-btn[aria-selected="true"] {
  color: var(--ce-ink);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.35rem;
  inset-block-end: -2px;
  border-block-end: 3px solid #0f172a;
}

/* ============================================================================
   Panel Headers, Selected Chip & Two-Band Docked Map Chrome
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-panel-header > * {
  min-width: 0;
  max-width: 100%;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-panel-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-panel-header :is(h2, h3) {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ce-ink);
  border-bottom: none;
  padding-bottom: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-panel-sub {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--ce-muted);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-var-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background: var(--ce-surface-alt);
  border: 1px solid var(--ce-border);
  color: var(--ce-ink);
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-selected-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--ce-lav-bg);
  color: var(--ce-lav-text);
  border: 1px solid var(--ce-lav-border);
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100%;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-frame {
  border: 1px solid var(--ce-border-map);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ce-surface-map-chrome);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-chrome {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: var(--ce-surface-map-chrome);
  border-bottom: 1px solid var(--ce-border-map-inner);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-layer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  min-width: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-chrome-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #0c4a6e;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.48rem;
  padding-top: 0.55rem;
  border-top: 1px solid #d1dfe8;
  position: relative;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-controls .ce-control-group {
  gap: 0.28rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-controls .ce-control-group-label {
  font-size: 0.71rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-controls .ce-segmented-group .ce-seg-btn {
  min-inline-size: 32px;
  min-block-size: 32px;
  min-height: 32px;
  padding: 0.14rem 0.46rem;
  font-size: 0.74rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-toolbar-sep {
  align-self: stretch;
  inline-size: 0;
  min-block-size: 22px;
  margin-block: 4px;
  border-inline-start: 1px solid var(--ce-track-border);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tools-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-block-size: 38px;
  min-height: 38px;
  padding: 0.16rem 0.48rem;
  border: 1px solid var(--ce-border-map);
  border-radius: 7px;
  background: var(--ce-surface);
  font-size: 0.74rem;
  font-weight: 600;
  color: #162432;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-checkbox-label input {
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn {
  min-block-size: 38px;
  min-height: 38px;
  padding: 0.16rem 0.52rem;
  border: 1px solid var(--ce-border-map);
  border-radius: 7px;
  background: var(--ce-surface);
  color: #1e293b;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn[aria-pressed="true"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn:focus-visible,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-checkbox-label:has(input:focus-visible),
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn:focus-visible,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill:focus-visible {
  outline: 2px solid var(--ce-focus);
  outline-offset: 2px;
}

/* Map HUD & Standardized MapLibre Popups */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 15;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.34rem 0.65rem;
  border-radius: 7px;
  pointer-events: none;
  max-width: calc(100% - 70px);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .maplibregl-popup {
  z-index: 28;
  max-width: min(305px, calc(100vw - 40px));
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .maplibregl-popup-content {
  padding: 0.55rem 0.72rem;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ce-ink);
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .maplibregl-popup-tip {
  border-top-color: #ffffff;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-kicker {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0e5a66;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ce-ink);
  margin-top: 0.08rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-sub {
  font-size: 0.76rem;
  color: var(--ce-muted);
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-jump {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.22rem 0.52rem;
  min-height: 28px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-grid {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.42rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.79rem;
  padding: 0.14rem 0.35rem;
  border-radius: 5px;
  background: #f8fafc;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-label {
  color: var(--ce-muted);
  font-weight: 600;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-val {
  color: var(--ce-ink);
  font-variant-numeric: tabular-nums;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-popup-note {
  margin-top: 0.35rem;
  font-style: italic;
}

body.ce-map-fullscreen-open {
  overflow: hidden;
}

/* Map-Scoped Fullscreen Overlay */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-panel.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: var(--ce-surface);
  border-radius: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.9rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.9rem, env(safe-area-inset-left, 0px));
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-panel.is-fullscreen .ce-map-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-panel.is-fullscreen .ce-map-stage-wrap {
  flex: 1 1 auto;
  height: auto;
  min-height: 240px;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-panel.is-fullscreen .ce-maplibre-canvas {
  height: 100%;
  min-height: 240px;
}

/* Cross-Explorer Links */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-crosslinks-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.85rem;
  flex-wrap: wrap;
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--ce-muted);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-crosslinks-bar a {
  color: var(--ce-cold-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================================
   Two Standardized Responsive Table Primitives
   1) .ce-table-matrix (sticky header + sticky column for wide matrices)
   2) .ce-table-cardstack (container-query stacked cards for key-metric tables)
   ============================================================================ */
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix {
  overflow: auto;
  max-inline-size: 100%;
  border: 1px solid var(--ce-border);
  border-radius: 8px;
  background:
    linear-gradient(to right, #ffffff 30%, transparent) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, #ffffff 30%, transparent) right center / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(16, 32, 48, 0.14), transparent) left center / 0.75rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(16, 32, 48, 0.14), transparent) right center / 0.75rem 100% no-repeat scroll,
    #ffffff;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix > table caption {
  caption-side: top;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  color: var(--ce-muted);
  background: #f8fbfc;
  border-bottom: 1px solid var(--ce-border-divider);
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix > table :is(th, td) {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  white-space: nowrap;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix > table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--ce-surface-alt);
  color: var(--ce-ink);
  font-weight: 700;
  border-bottom: 2px solid #cbd5e1;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix > table thead th:first-child,
:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix > table tbody th {
  text-align: left;
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--ce-bg);
  color: var(--ce-ink);
  font-weight: 700;
  border-right: 2px solid #cbd5e1;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-matrix > table thead th:first-child {
  z-index: 3;
  background: #e2e8f0;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(520px, 80vh);
  container-type: inline-size;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table caption {
  caption-side: top;
  text-align: left;
  padding: 0.2rem 0 0.6rem;
  color: var(--ce-muted);
  font-size: 0.86rem;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: #f3f7f8;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table :is(th, td) {
  padding: 0.62rem 0.75rem;
  border-bottom: 1px solid #ccd6dd;
  text-align: left;
  vertical-align: top;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
}

:is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: #ffffff;
  font-weight: 600;
  color: var(--ce-ink);
}

@container (width < 520px) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table caption,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table thead,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table tbody,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table tr,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table th,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table td {
    display: block;
    width: 100%;
  }

  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table thead {
    display: none;
  }

  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table tbody tr {
    margin-block-end: 0.85rem;
    border: 1px solid var(--ce-border);
    border-radius: 8px;
    overflow: hidden;
  }

  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: #f3f7f8;
    border-bottom: 1px solid var(--ce-border-divider);
  }

  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table td:nth-child(2)::before {
    content: var(--label-2, "Value") ": ";
    font-weight: 600;
    color: var(--ce-muted);
  }

  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-table-cardstack > table td:nth-child(3)::before {
    content: var(--label-3, "Details") ": ";
    font-weight: 600;
    color: var(--ce-muted);
  }
}

/* ============================================================================
   Hover, Motion, Mobile, Coarse Pointer & Forced Colors Parity
   ============================================================================ */
@media (hover: hover) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn:not(.ce-btn--primary):not([aria-pressed="true"]):not([aria-expanded="true"]):not(.ce-btn--soft):hover,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-crumb-btn:not(.active):hover,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-preset-pill:hover,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill:hover,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn:not([aria-pressed="true"]):hover,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill:hover {
    background: var(--ce-surface-alt);
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--soft:hover {
    background: #bfdbfe;
    border-color: #60a5fa;
    color: #082f49;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--clear:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tab-btn:hover {
    color: var(--ce-ink);
    background: #f4f8fa;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn:not([aria-pressed="true"]):not(.is-active):hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ce-ink);
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-search-dropdown li:hover {
    background: var(--ce-surface-alt);
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tab-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-copy-tip {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tab-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-copy-tip {
    transition: none;
  }
}

@media (max-width: 768px) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kicker,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-preset-pill,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-selected-chip,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-chrome-badge,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill {
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-card,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-panel,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-controls-card,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-narrative-card {
    padding: 0.75rem;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-card {
    padding: 0.5rem 0.65rem;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-label {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-kpi-value {
    font-size: 0.96rem;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-presets-list,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-records-pills,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jumpbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2rem;
    padding-bottom: 0.25rem;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-preset-pill,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-record-pill,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(.ce-presets-list, .ce-records-pills, .ce-jumpbar) {
    --ce-fade-size: 2rem;
    --ce-fade-dir: right;
    --ce-fade-start-pos: 0;
    --ce-fade-end-pos: 100%;
    mask:
      linear-gradient(black, black) no-clip subtract,
      linear-gradient(to var(--ce-fade-dir), black, transparent) var(--ce-fade-start-pos) 0 / var(--ce-fade-start) 100% no-repeat no-clip,
      linear-gradient(to var(--ce-fade-dir), transparent, black) var(--ce-fade-end-pos) 0 / var(--ce-fade-end) 100% no-repeat no-clip;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(.ce-presets-list, .ce-records-pills, .ce-jumpbar):dir(rtl) {
    --ce-fade-dir: left;
    --ce-fade-start-pos: 100%;
    --ce-fade-end-pos: 0;
  }
  @supports (animation-timeline: scroll()) {
    :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(.ce-presets-list, .ce-records-pills, .ce-jumpbar) {
      animation: ce-reveal-fade-start linear both, ce-hide-fade-end linear both;
      animation-timeline: scroll(self inline);
      animation-range: 0 var(--ce-fade-size), calc(100% - var(--ce-fade-size)) 100%;
    }
  }
  @supports not (animation-timeline: scroll()) {
    :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(.ce-presets-list, .ce-records-pills, .ce-jumpbar) {
      transition: --ce-fade-start 0.2s, --ce-fade-end 0.2s;
    }
    :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(.ce-presets-list, .ce-records-pills, .ce-jumpbar).ce-more-start {
      --ce-fade-start: var(--ce-fade-size);
    }
    :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) :is(.ce-presets-list, .ce-records-pills, .ce-jumpbar).ce-more-end {
      --ce-fade-end: var(--ce-fade-size);
    }
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-chrome {
    padding: 0.6rem 0.65rem;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-controls {
    gap: 0.5rem 0.65rem;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-toolbar-sep {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    inline-size: 0;
    min-block-size: 0;
    margin: 0;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-control-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.24rem;
    max-width: 100%;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-control-group--tools {
    flex: 1 1 100%;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-units-group {
    flex-direction: row;
    align-items: center;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn {
    padding: 0.16rem 0.45rem;
    font-size: 0.75rem;
  }
}

@keyframes ce-reveal-fade-start {
  to {
    --ce-fade-start: var(--ce-fade-size);
  }
}

@keyframes ce-hide-fade-end {
  from {
    --ce-fade-end: var(--ce-fade-size);
  }
}

@media (pointer: coarse) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) select,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) input[type="date"],
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) input[type="search"],
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-select {
    font-size: max(1rem, 1em);
    min-height: 44px;
    min-block-size: 44px;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) button,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-checkbox-label,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-jump-pill {
    min-height: 44px;
    min-block-size: 44px;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-map-controls .ce-segmented-group .ce-seg-btn {
    min-height: 40px;
    min-block-size: 40px;
  }
}

@media (forced-colors: active) {
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tab-btn[aria-selected="true"]::after {
    border-block-end-color: Highlight;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn[aria-pressed="true"],
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group .ce-seg-btn.is-active,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-tool-btn[aria-pressed="true"],
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn--primary,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn[aria-pressed="true"],
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-btn[aria-expanded="true"] {
    border: 2px solid Highlight;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-segmented-group,
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-copy-tip {
    border-color: ButtonText;
  }
  :is(.ce-shell, .native-explorer-shell, .wotd-interactive-shell) .ce-toolbar-sep {
    border-inline-start-color: ButtonText;
  }
}
