/* site/wizard/flow.css: the start flow's own layer over /styles.css.
   Cool neutrals, one accent, status colours for the run timeline, a single
   rose ramp for loss, and one teal for what a model covers. Light and dark
   are both designed, not flipped, and follow the system unless the reader
   picks one in Settings (html[data-theme]). System fonts only; nothing here
   fetches anything. */

.fl-page { background: #f4f6f9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fl-page { background: #07090d; }
}
:root[data-theme="dark"] .fl-page { background: #07090d; }

.fl {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eceff3;
  --sheet: #f2f4f7;
  --line: rgba(12, 22, 34, 0.09);
  --line-strong: rgba(12, 22, 34, 0.16);
  --ink: #0b121a;
  --ink-2: #33414e;
  --muted: #5f6c79;
  --faint: #9aa5b0;
  --accent: #0a66d8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 102, 216, 0.1);
  --accent-glow: rgba(10, 102, 216, 0.34);
  --sea: #e9eef3;
  --land: #a7b5c4;
  --land-lit: #0a66d8;
  --cover: #0e8f84;
  --cover-soft: rgba(14, 143, 132, 0.12);
  --queued: #6a55e8;
  --running: #0a66d8;
  --good: #11875a;
  --bad: #d23a47;
  --loss-lo: #f0b6c8;
  --loss-hi: #b4134f;
  --tile-blue: #0a66d8;
  --tile-teal: #0e8f84;
  --tile-indigo: #5b4bd6;
  --tile-green: #1d8a4f;
  --tile-graphite: #5f6c79;
  --seg-on: #ffffff;
  --shadow: 0 1px 2px rgba(12, 22, 34, 0.05), 0 8px 28px rgba(12, 22, 34, 0.07);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-lg: 22px;
  --r-md: 14px;
  background: var(--bg);
  color: var(--ink);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fl {
    --bg: #07090d;
    --surface: #10151c;
    --surface-2: #171e27;
    --sheet: #0b0f15;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --ink: #f1f4f8;
    --ink-2: #c3ccd6;
    --muted: #8d99a6;
    --faint: #5c6874;
    --accent: #4fb2ff;
    --accent-ink: #03101d;
    --accent-soft: rgba(79, 178, 255, 0.13);
    --accent-glow: rgba(79, 178, 255, 0.45);
    --sea: #0a0e14;
    --land: #3d4e62;
    --land-lit: #4fb2ff;
    --cover: #2fd0bb;
    --cover-soft: rgba(47, 208, 187, 0.14);
    --queued: #a293ff;
    --running: #4fb2ff;
    --good: #3ad48a;
    --bad: #ff6470;
    --loss-lo: #5b2338;
    --loss-hi: #ff5c8f;
    --tile-blue: #2f8cf0;
    --tile-teal: #17a594;
    --tile-indigo: #6f60ea;
    --tile-green: #26a061;
    --tile-graphite: #56626f;
    --seg-on: #2a3441;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .fl {
  --bg: #07090d;
  --surface: #10151c;
  --surface-2: #171e27;
  --sheet: #0b0f15;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f1f4f8;
  --ink-2: #c3ccd6;
  --muted: #8d99a6;
  --faint: #5c6874;
  --accent: #4fb2ff;
  --accent-ink: #03101d;
  --accent-soft: rgba(79, 178, 255, 0.13);
  --accent-glow: rgba(79, 178, 255, 0.45);
  --sea: #0a0e14;
  --land: #3d4e62;
  --land-lit: #4fb2ff;
  --cover: #2fd0bb;
  --cover-soft: rgba(47, 208, 187, 0.14);
  --queued: #a293ff;
  --running: #4fb2ff;
  --good: #3ad48a;
  --bad: #ff6470;
  --loss-lo: #5b2338;
  --loss-hi: #ff5c8f;
  --tile-blue: #2f8cf0;
  --tile-teal: #17a594;
  --tile-indigo: #6f60ea;
  --tile-green: #26a061;
  --tile-graphite: #56626f;
  --seg-on: #2a3441;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- shell ---------- */

.fl {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 28px 72px;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 70vh;
}
.fl * { box-sizing: border-box; }
:where(.fl) button { font: inherit; color: inherit; }
.fl a { color: var(--accent); text-underline-offset: 3px; }
.fl :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}
.fl-sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fl-noscript { color: var(--muted); }

/* ---------- step indicator ---------- */

.fl-topline {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  gap: 8px; margin: 0 0 26px;
}
.fl-steps { grid-column: 2; min-width: 0; }
.fl-steps ol {
  display: flex; justify-content: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.fl-gear {
  grid-column: 3; justify-self: end;
  appearance: none; cursor: pointer; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; border: 1px solid transparent;
  background: none; color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.3s var(--ease);
}
.fl-gear svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.fl-gear:hover { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.fl-gear[aria-expanded="true"] { color: var(--accent); }
.fl-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 0; border-radius: 999px;
  background: none; cursor: pointer;
  font-size: 14px; font-weight: 560; letter-spacing: 0.01em;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.fl-step:disabled { cursor: default; color: var(--faint); }
.fl-step:not(:disabled):hover { background: var(--surface-2); color: var(--ink); }
.fl-step-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.55;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.fl-step[data-state="current"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.fl-step[data-state="current"] .fl-step-dot { background: var(--accent); opacity: 1; transform: scale(1.15); }
.fl-step[data-state="done"] .fl-step-dot { background: var(--good); opacity: 1; }

/* ---------- screens ---------- */

.fl-screen[hidden] { display: none; }
.fl-screen { padding: 0; animation: fl-enter 0.42s var(--ease) both; }
@keyframes fl-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.fl-head { margin: 0 0 22px; }
.fl-title {
  font-family: var(--display);
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.fl-title:focus { outline: none; }
.fl-sub { margin: 8px 0 0; font-size: 19px; color: var(--muted); }
.fl-context {
  margin: 0 0 8px; font-size: 15px; font-weight: 560;
  color: var(--muted); letter-spacing: 0.01em;
}
.fl-context a, .fl-context button { color: var(--accent); }
.fl-label {
  display: block; font-size: 13px; font-weight: 650;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.fl-hint { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); min-height: 1.2em; }
.fl-status { margin: 0 0 12px; font-size: 15px; color: var(--muted); min-height: 1.3em; }
.fl-status[data-level="warn"] { color: var(--bad); }

/* ---------- buttons ---------- */

.fl-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 28px 0 0;
}
.fl-primary, .fl-secondary {
  appearance: none; border: 0; cursor: pointer;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 17px; font-weight: 620; letter-spacing: -0.005em;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
    opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fl-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 20px var(--accent-soft);
}
.fl-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--accent-soft); }
.fl-primary:active { transform: scale(0.98); }
.fl-primary:disabled {
  background: var(--surface-2); color: var(--faint); cursor: default;
  transform: none; box-shadow: inset 0 0 0 1px var(--line);
}
.fl-secondary { background: var(--surface-2); color: var(--ink); }
.fl-secondary:hover { background: var(--line-strong); }
.fl-link {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--accent); font-weight: 560; text-decoration: underline;
  text-underline-offset: 3px; margin-left: 8px;
}
.fl-iconbtn {
  appearance: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); color: var(--ink);
}
.fl-iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fl-iconbtn:hover { background: var(--surface-2); }
.fl-iconbtn:disabled { opacity: 0.35; cursor: default; }

/* ---------- the map ---------- */

.fl-mapcard { position: relative; }
.fl-map {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sea);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8.2;
  box-shadow: var(--shadow);
}
/* 392px = the flow's own chrome above and below the map; the header height comes from the design system. */
.fl-map-main { aspect-ratio: auto; height: clamp(300px, calc(100vh - var(--ui-top-h, 60px) - 392px), 560px); }
.fl-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: crosshair; touch-action: pan-y;
}
.fl-canvas:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.fl-canvas[data-dragging="yes"] { cursor: grabbing; }
.fl-map-quiet .fl-canvas { cursor: default; }
.fl-crosshair {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px;
  margin: -11px 0 0 -11px; pointer-events: none; opacity: 0;
  transition: opacity 0.2s var(--ease);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat;
}
.fl-canvas:focus-visible ~ .fl-crosshair { opacity: 0.9; }
.fl-mapctl {
  position: absolute; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.fl-search {
  position: absolute; left: 14px; top: 14px; width: min(380px, calc(100% - 28px)); z-index: 3;
}
.fl-search > svg {
  position: absolute; left: 13px; top: 12px; width: 18px; height: 18px;
  fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round;
  pointer-events: none; z-index: 1;
}
.fl-search input {
  width: 100%; height: 42px; padding: 0 14px 0 38px;
  font: 16px var(--text); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
}
.fl-search input::placeholder { color: var(--muted); }
.fl-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fl-results {
  margin-top: 6px; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fl-results:empty { border: 0; box-shadow: none; }
.fl-result {
  display: flex; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 14px; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 15.5px; color: var(--ink);
}
.fl-result span { color: var(--muted); font-size: 14px; }
.fl-result:hover, .fl-result[aria-selected="true"] { background: var(--accent-soft); }

.fl-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.fl-chipbtn {
  appearance: none; cursor: pointer;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 540; color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.fl-chipbtn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.fl-chipbtn { display: inline-flex; align-items: center; gap: 8px; }
.fl-chipbtn i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.fl-chipbtn[aria-pressed="true"], .fl-chip-own {
  background: var(--accent-soft); border-color: var(--accent); color: var(--ink);
}
.fl-chip-own { cursor: default; padding-right: 5px; animation: fl-pop 0.35s var(--ease) both; }

@keyframes fl-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.fl-toast { margin: 0; font-size: 14.5px; color: var(--muted); }
.fl-toast:empty { display: none; }

/* ---------- amount and the bar under the map ---------- */

.fl-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 28px; margin: 22px 0 0;
}
.fl-bar .fl-actions { margin: 0; }
.fl-actions-place { justify-content: flex-end; }
.fl-amount { margin: 0; min-width: 0; }
.fl-amount-field {
  display: flex; align-items: baseline; gap: 6px; margin-top: 4px;
  max-width: 100%;
}
.fl-amount-sign, .fl-amount-field input {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(38px, 4.6vw, 54px); line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fl-amount-sign { color: var(--muted); }
.fl-amount-field input {
  flex: 0 1 auto; min-width: 0; width: 9.5ch;
  border: 0; border-bottom: 2px solid var(--line); background: none; padding: 0 0 2px;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.fl-amount-field input:focus { outline: none; border-bottom-color: var(--accent); }
.fl-amount-unit { font-size: 15px; font-weight: 650; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- perils ---------- */

.fl-perils {
  border: 0; margin: 0; padding: 0; min-width: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.fl-peril {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  min-height: 190px; padding: 22px 20px 20px;
  border-radius: var(--r-lg); background: var(--surface);
  border: 1.5px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.fl-peril input { position: absolute; opacity: 0; pointer-events: none; }
.fl-peril:hover { transform: translateY(-2px); }
.fl-peril:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.fl-peril:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.fl-peril[data-available="no"] { cursor: default; opacity: 0.5; box-shadow: none; background: transparent; }
.fl-peril[data-available="no"]:hover { transform: none; }
.fl-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl-glyph { width: 52px; height: 52px; margin-bottom: auto; color: var(--accent); }
.fl-peril[data-available="no"] .fl-glyph { color: var(--muted); }
.fl-glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fl-peril-title { font-family: var(--display); font-size: 21px; font-weight: 660; letter-spacing: -0.015em; margin-top: 18px; color: var(--ink); }
.fl-peril-line { font-size: 15px; color: var(--muted); }
/* a provider's model: who runs it, and the area its listing names */
.fl-peril-by { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.fl-peril-sub {
  font-size: 13.5px; line-height: 1.4; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fl-check {
  position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.fl-check svg { width: 13px; height: 13px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fl-peril:has(input:checked) .fl-check { background: var(--accent); border-color: var(--accent); }
.fl-peril:has(input:checked) .fl-check svg { opacity: 1; }
.fl-peril[data-available="no"] .fl-check { display: none; }
.fl-skeleton {
  min-height: 210px; border-radius: var(--r-lg); background: var(--surface);
  border: 1.5px solid var(--line); position: relative; overflow: hidden;
}
.fl-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--accent-soft) 50%, transparent 80%);
  transform: translateX(-100%); animation: fl-sweep 1.6s var(--ease) infinite;
}
@keyframes fl-sweep { to { transform: translateX(100%); } }

.fl-magnitude {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin: 18px 0 0; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.fl-magnitude[hidden] { display: none; }
.fl-magnitude .fl-hint { margin: 0; flex-basis: 100%; }
.fl-stepper { display: inline-flex; align-items: center; gap: 12px; }
.fl-stepper output {
  font-family: var(--display); font-size: 30px; font-weight: 700; min-width: 2.4em;
  text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}

/* the historical earthquake: one row per quake whose ShakeMap holds a place */
.fl-event {
  margin: 18px 0 0; padding: 16px 16px 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.fl-event[hidden] { display: none; }
.fl-event > .fl-label { margin: 0 4px 10px; }
.fl-event-list { display: grid; gap: 8px; }
.fl-event-row {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 11px 44px 11px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.fl-event-row input { position: absolute; opacity: 0; pointer-events: none; }
.fl-event-row:hover { background: var(--surface-2); }
.fl-event-row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fl-event-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fl-event-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fl-event-name { font-size: 15.5px; font-weight: 620; color: var(--ink); }
.fl-event-sub { font-size: 13.5px; color: var(--muted); }
.fl-event-row .fl-check { top: 50%; right: 12px; margin-top: -12px; }
.fl-event-row:has(input:checked) .fl-check { background: var(--accent); border-color: var(--accent); }
.fl-event-row:has(input:checked) .fl-check svg { opacity: 1; }
.fl-event .fl-hint { margin: 10px 4px 0; }
.fl-event .fl-hint:empty { display: none; }

/* a provider's model, before it runs: where the places and values go */
.fl-provider {
  margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.fl-provider[hidden] { display: none; }
.fl-provider-send { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.fl-provider .fl-hint { margin: 4px 0 0; }

/* ---------- run ---------- */

.fl-runwrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px; align-items: start;
}
.fl-status-word { display: flex; align-items: center; gap: 16px; }
.fl-pulse {
  position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s var(--ease);
}
.fl-pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid currentColor; color: inherit; opacity: 0;
}
.fl[data-run="sending"] .fl-pulse { background: var(--muted); color: var(--muted); }
.fl[data-run="queued"] .fl-pulse { background: var(--queued); color: var(--queued); }
.fl[data-run="running"] .fl-pulse { background: var(--running); color: var(--running); }
.fl[data-run="done"] .fl-pulse { background: var(--good); color: var(--good); }
.fl[data-run="failed"] .fl-pulse { background: var(--bad); color: var(--bad); }
.fl[data-run="sending"] .fl-pulse::after,
.fl[data-run="queued"] .fl-pulse::after,
.fl[data-run="running"] .fl-pulse::after { animation: fl-ring 2.2s var(--ease) infinite; }
@keyframes fl-ring {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fl-clock {
  margin: 14px 0 0; font-family: var(--display);
  font-size: clamp(56px, 9vw, 96px); font-weight: 650; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.fl[data-run="done"] .fl-clock { color: var(--muted); }

.fl-timeline {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.fl-timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 30px; }
.fl-timeline li::before {
  content: ""; position: absolute; top: 9px; left: 20px; right: -2px; height: 3px;
  border-radius: 3px; background: var(--line-strong);
}
.fl-timeline li:last-child::before { display: none; }
.fl-timeline li[data-state="done"]::before { background: var(--good); }
.fl-timeline li[data-state="current"]::before {
  background:
    linear-gradient(90deg, transparent, var(--node) 50%, transparent) 0 0 / 40% 100% no-repeat,
    var(--line-strong);
  animation: fl-travel 1.9s linear infinite;
}
@keyframes fl-travel {
  from { background-position: -60% 0, 0 0; }
  to { background-position: 160% 0, 0 0; }
}
.fl-timeline li { --node: var(--muted); }
.fl-timeline li[data-stage="queued"] { --node: var(--queued); }
.fl-timeline li[data-stage="running"] { --node: var(--running); }
.fl-timeline li[data-stage="done"] { --node: var(--good); }
.fl[data-run="failed"] .fl-timeline li[data-state="current"] { --node: var(--bad); }
.fl[data-run="failed"] .fl-timeline li[data-state="current"]::before { animation: none; background: var(--line-strong); }
.fl-node {
  position: absolute; top: 0; left: 0; width: 21px; height: 21px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); background: var(--bg);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.fl-timeline li[data-state="done"] .fl-node { background: var(--good); border-color: var(--good); }
.fl-timeline li[data-state="done"] .fl-node::after {
  content: ""; position: absolute; left: 5px; top: 2.5px; width: 5px; height: 9px;
  border: solid var(--bg); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.fl-timeline li[data-state="current"] .fl-node { border-color: var(--node); background: var(--node); box-shadow: 0 0 0 5px color-mix(in srgb, var(--node) 22%, transparent); }
.fl-timeline li[data-state="skipped"] .fl-node { border-style: dashed; }
.fl-stage { font-size: 15.5px; font-weight: 620; color: var(--ink); }
.fl-timeline li[data-state="pending"] .fl-stage, .fl-timeline li[data-state="skipped"] .fl-stage { color: var(--muted); }
.fl-when { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.3em; }

.fl-runmap .fl-map { aspect-ratio: 4 / 3.1; }
.fl-failed { margin-top: 24px; }
.fl-failed[hidden] { display: none; }
.fl-failed-lead { margin: 0 0 8px; font-weight: 600; color: var(--bad); }
.fl-error {
  margin: 0; padding: 14px 16px; max-height: 180px; overflow: auto;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  font: 12.5px/1.5 var(--ui-font-mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word;
}
.fl-error[hidden], .fl-access[hidden] { display: none; }
/* a provider's model this account may not run yet: the provider's own page */
.fl-failed[data-access="yes"] .fl-failed-lead { color: var(--ink); }
.fl-access p { margin: 0; }
.fl-access .fl-hint { margin-top: 10px; overflow-wrap: anywhere; }
.fl .fl-access-link, .fl .fl-access-link:visited { display: inline-flex; align-items: center; text-decoration: none; color: var(--accent-ink); }
.fl-failed[data-access="yes"] .fl-actions .fl-primary { background: var(--surface-2); color: var(--ink); box-shadow: none; }

/* ---------- answer ---------- */

.fl-answer {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px; align-items: start;
}
.fl-answer-main { container-type: inline-size; }
/* The figure fits its own column on one line: the page sets --figure-chars to
   the figure's length, and one character of this face is about 0.62em wide. */
.fl-figure {
  margin: 0; font-family: var(--display);
  font-size: clamp(40px, min(11vw, calc(100cqi / (var(--figure-chars, 6) * 0.62))), 132px);
  line-height: 0.95; font-weight: 700;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--ink);
  white-space: nowrap;
}
.fl-figure:focus { outline: none; }
.fl-figure-unit {
  margin-left: 0.16em; font-size: 0.4em; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-2);
}
.fl-figure-unit[hidden] { display: none; }
.fl-figure[data-figure="words"] { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.035em; white-space: normal; overflow-wrap: anywhere; }
.fl-figure-label { margin: 12px 0 0; font-size: 19px; color: var(--ink-2); }
.fl-figure-label b { font-weight: 620; color: var(--ink); }
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.fl-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 6px 14px; border-radius: 999px; line-height: 1.3;
  background: var(--accent-soft); color: var(--ink);
  font-size: 14.5px; font-weight: 560;
}
.fl-chip svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.fl-chip-quiet { background: var(--surface-2); color: var(--muted); }
.fl-chip[hidden] { display: none; }

.fl-event-line { margin: 12px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 60ch; }
.fl-event-line[hidden] { display: none; }
.fl-event-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.fl-ceiling {
  margin: 26px 0 0; max-width: 560px; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface); border: 1px dashed var(--line-strong);
}
.fl-ceiling[hidden] { display: none; }
.fl-ceiling-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0; }
.fl-ceiling-tag {
  align-self: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2);
}
.fl-ceiling-num {
  font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.fl-ceiling-unit { font-size: 15px; color: var(--muted); }
.fl-ceiling-line { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.fl-ceiling-line b { font-weight: 620; color: var(--ink-2); }
.fl-meter { margin: 34px 0 0; max-width: 560px; }
.fl-meter[hidden] { display: none; }
.fl-meter-track {
  position: relative; height: 14px; border-radius: 14px; background: var(--surface-2); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
/* the fields' P10 to P90 band, laid over the mean */
.fl-meter-band {
  position: absolute; top: 3px; bottom: 3px; border-radius: 8px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 22%, transparent);
}
.fl-meter-band[hidden] { display: none; }
.fl-meter-track span {
  display: block; height: 100%; width: 0; border-radius: 14px;
  background: linear-gradient(90deg, var(--loss-lo), var(--loss-hi));
  transition: width 0.9s var(--ease);
}
.fl-meter-labels {
  display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0;
  font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.fl-meter-labels span:first-child { color: var(--ink); font-weight: 620; }
.fl-curve { margin: 34px 0 0; padding: 20px 20px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fl-curve[hidden] { display: none; }
.fl-curve-cap { font-size: 15px; font-weight: 620; color: var(--ink); margin: 0 0 4px; }
.fl-curve-plot { position: relative; }
.fl-curve-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.fl-curve-plot .grid { stroke: var(--line); stroke-width: 1; }
.fl-curve-plot .axis-label { fill: var(--muted); font: 12.5px var(--text); font-variant-numeric: tabular-nums; }
.fl-curve-plot .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fl-curve-plot .wash { fill: var(--accent); opacity: 0.1; }
.fl-curve-plot .mark { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.fl-curve-plot .callout { fill: var(--ink); font: 650 14px var(--text); font-variant-numeric: tabular-nums; }
.fl-curve-plot .callout-sub { fill: var(--muted); font: 12.5px var(--text); }
.fl-curve-plot .callout, .fl-curve-plot .callout-sub {
  paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round;
}
.fl-curve-plot .guide { stroke: var(--line-strong); stroke-width: 1; }
.fl-curve-plot .hit { fill: transparent; }
.fl-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -100%);
  padding: 6px 10px; border-radius: 10px; white-space: nowrap;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 560;
  font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.12s;
}
.fl-tip[data-shown="yes"] { opacity: 1; }

.fl-answer-side .fl-map { aspect-ratio: 4 / 3.2; }
.fl-legend {
  position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 560; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.fl-legend[hidden] { display: none; }
.fl-legend i { width: 64px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--loss-lo), var(--loss-hi)); }
.fl-breakdown { list-style: none; margin: 14px 0 0; padding: 0; }
.fl-breakdown li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 16px;
}
.fl-breakdown li:last-child { border-bottom: 0; }
.fl-breakdown i { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.fl-breakdown .name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-breakdown .val { font-variant-numeric: tabular-nums; font-weight: 620; color: var(--ink); }
.fl-breakdown .fl-more .name { grid-column: 1 / -1; white-space: normal; color: var(--muted); font-size: 14px; }
.fl-breakdown .sub { grid-column: 2 / 4; font-size: 13.5px; color: var(--muted); margin-top: -2px; }

.fl-actions-answer { margin-top: 34px; }
.fl-actions-answer .fl-link { margin-left: 6px; color: var(--muted); font-weight: 560; }
.fl-actions-answer .fl-link:hover { color: var(--ink); }

/* ---------- compare with another model ---------- */

.fl-compare { margin: 18px 0 0; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fl-compare .fl-label { margin: 0 0 12px; }
.fl-compare-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fl-compare-choice {
  appearance: none; cursor: pointer; text-align: left; font: inherit; color: inherit;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--bg); border: 1.5px solid var(--line);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.fl-compare-choice:hover { border-color: var(--accent); transform: translateY(-1px); }
.fl-compare-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fl-compare-choice .fl-glyph { width: 34px; height: 34px; margin: 0; flex: none; }
.fl-compare-choice .fl-peril-title { margin-top: 0; font-size: 16.5px; }
.fl-compare-choice .fl-peril-line { font-size: 13.5px; }
.fl-compare .fl-hint:empty { display: none; }
.fl-fine { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); max-width: 80ch; }
.fl-fine p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.fl-fine .disclosure:empty, .fl-warn:empty { margin: 0; }
.fl-attribution { color: var(--ink-2) !important; font-weight: 560; }
.fl-warn[data-level="warn"] { color: var(--bad); font-weight: 560; }

/* ---------- quiet disclosures ---------- */

.fl-quiet { margin: 34px 0 0; }
.fl-quiet > summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 560; color: var(--muted); padding: 6px 0;
}
.fl-quiet > summary::-webkit-details-marker { display: none; }
.fl-quiet > summary::before {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.8px 1.8px 0;
  transform: rotate(-45deg); transition: transform 0.2s var(--ease); margin-right: 2px;
}
.fl-quiet[open] > summary::before { transform: rotate(45deg); }
.fl-quiet > summary:hover { color: var(--ink); }
.fl-quiet-body { max-width: 72ch; padding: 6px 0 0 17px; color: var(--ink-2); font-size: 15.5px; }
.fl-quiet-body p { margin: 0 0 12px; }
.fl-quiet-body h3 { font-size: 15.5px; margin: 14px 0 4px; color: var(--ink); }
.fl-code {
  margin: 0 0 12px; padding: 14px 16px; overflow: auto; max-width: 100%;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  font: 12.5px/1.55 var(--ui-font-mono); color: var(--ink-2); white-space: pre;
}
.fl-code-tall { max-height: 320px; }
.fl-dev-row { display: flex; align-items: center; gap: 12px; }
.fl-dev-row .fl-link { margin-left: 0; }
.fl-dev-row .fl-hint { margin: 0; }
.fl-permalink { word-break: break-all; font: 13.5px var(--ui-font-mono); }
.fl-secret { font: 13.5px var(--ui-font-mono); word-break: break-all; color: var(--ink); }
.fl-secret[hidden] { display: none; }

/* ---------- the place map's extra hands ---------- */

.fl-mapwrap { position: relative; }
.fl-canvas[data-sweeping="yes"] { cursor: cell; }
.fl-search-note {
  margin: 6px 0 0; padding: 0 4px; font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; gap: 2px;
}
.fl-search-note:empty { display: none; }
.fl-search-note > span {
  display: block; padding: 7px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.fl-search-note .fl-credit { padding: 3px 12px; font-size: 11.5px; box-shadow: none; }
.fl-result { align-items: center; }
.fl-result span { margin-left: auto; text-align: right; }
.fl-result-find { color: var(--accent); font-weight: 600; border-top: 1px solid var(--line); gap: 8px; }
.fl-result-find svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fl-results .fl-result:first-child.fl-result-find { border-top: 0; }

.fl-chip-own { gap: 2px; padding-left: 4px; }
.fl-chip-name {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 8px 0 10px; border: 0; border-radius: 999px;
  background: none; cursor: pointer; font-weight: 540; color: var(--ink);
}
.fl-chip-name:hover { background: var(--surface); }
.fl-chip-own .fl-chip-x {
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--muted); display: grid; place-items: center;
}
.fl-chip-own .fl-chip-x svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.fl-chip-own .fl-chip-x:hover { color: var(--ink); }
.fl-chip-more { align-self: center; font-size: 14px; color: var(--muted); padding: 0 6px; }
.fl-split { margin: 4px 0 0; font-size: 14.5px; }
.fl-split[hidden] { display: none; }
.fl-amount-field input[readonly] { border-bottom-style: dashed; }

.fl-mapbtn {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px 0 12px; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fl-mapbtn svg { width: 17px; height: 17px; fill: var(--cover); stroke: none; }
.fl-mapbtn:hover { background: var(--surface); }
.fl-mapbtn[aria-expanded="true"] { color: var(--cover); border-color: var(--cover); }
.fl-map[data-covering="yes"] .fl-mapbtn { opacity: 0; pointer-events: none; }

.fl-covercard {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  width: min(520px, calc(100% - 84px)); padding: 12px 14px 10px;
  border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: fl-pop 0.3s var(--ease) both;
}
.fl-covercard[hidden] { display: none; }
.fl-covercard-top { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 6px; }
.fl-covercard-top .fl-mini { width: 28px; height: 28px; margin-top: -2px; }
.fl-cover-cap { flex: 1 1 auto; margin: 0 2px; font-size: 15px; font-weight: 640; color: var(--ink); line-height: 1.3; }
.fl-cover-cap:empty { display: none; }
.fl-cover-legend {
  display: flex; align-items: center; gap: 8px; margin: 0 2px 4px;
  font-size: 12.5px; font-weight: 560; color: var(--muted); font-variant-numeric: tabular-nums;
}
.fl-cover-legend[hidden] { display: none; }
.fl-cover-legend i {
  flex: 0 0 96px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--cover-soft), var(--cover));
}
.fl-flags { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.fl-flags:empty { display: none; }
.fl-flags li {
  position: relative; padding: 0 0 0 20px; font-size: 14px; line-height: 1.4; color: var(--ink-2);
}
.fl-flags li::before {
  content: ""; position: absolute; left: 3px; top: 0.42em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted);
}
.fl-flags li[data-level="good"]::before { background: var(--good); }
.fl-flags li[data-level="warn"]::before { background: var(--bad); }
.fl-flags li[data-level="stop"] { color: var(--bad); font-weight: 600; }
.fl-flags li[data-level="stop"]::before { background: var(--bad); border-radius: 2px; }
.fl-src { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.fl-src > summary { cursor: pointer; list-style: none; font-weight: 560; display: inline-flex; gap: 6px; align-items: center; }
.fl-src > summary::-webkit-details-marker { display: none; }
.fl-src > summary::before {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: rotate(-45deg); transition: transform 0.2s var(--ease);
}
.fl-src[open] > summary::before { transform: rotate(45deg); }
.fl-src p { margin: 6px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.fl-src p:empty { display: none; }

/* a placed dot's editor */
.fl-pop {
  position: absolute; z-index: 4; width: 288px; padding: 14px 14px 12px;
  border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 2px 6px rgba(12, 22, 34, 0.08), 0 18px 48px rgba(12, 22, 34, 0.18);
  animation: fl-pop 0.22s var(--ease) both;
}
.fl-pop[hidden] { display: none; }
.fl-pop:focus { outline: none; }
.fl-pop-field { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 6px; }
.fl-pop-field > span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); }
.fl-pop-field input {
  width: 100%; min-width: 0; height: 34px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  font: 16px var(--text); color: var(--ink);
}
.fl-pop-field input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--surface); }
.fl-pop-money { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; min-width: 0; }
.fl-pop-note { margin: -2px 0 6px 66px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.fl-pop-note:empty { display: none; }
.fl-pop-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.fl-pop-remove, .fl-pop-done {
  appearance: none; border: 0; cursor: pointer; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 620;
}
.fl-pop-remove { background: none; color: var(--bad); padding-left: 4px; }
.fl-pop-done { background: var(--accent); color: var(--accent-ink); }

/* the peril screen: cards and actions beside the chosen model's coverage */
.fl-peril-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "cards cover" "mag cover" "event cover" "provider cover" "actions cover";
  grid-template-rows: auto auto auto auto 1fr; column-gap: 28px; align-items: start;
}
.fl-peril-layout .fl-event { grid-area: event; }
.fl-peril-layout .fl-provider { grid-area: provider; }
.fl-peril-layout .fl-perils { grid-area: cards; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-peril-layout .fl-peril { min-height: 158px; padding: 18px 18px 16px; }
.fl-peril-layout .fl-peril-title { font-size: 19.5px; margin-top: 12px; }
.fl-peril-layout .fl-magnitude { grid-area: mag; }
.fl-peril-layout .fl-cover { grid-area: cover; }
.fl-peril-layout .fl-actions { grid-area: actions; margin-top: 22px; }
.fl-cover { margin: 0; }
.fl-map-cover { aspect-ratio: 6 / 5; }
.fl-map-cover .fl-canvas { cursor: default; }
.fl-map-cap {
  position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); margin: 0; pointer-events: none;
  padding: 6px 12px 6px 10px; border-radius: 14px;
  font-size: 14.5px; font-weight: 640; color: var(--ink); line-height: 1.3;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.fl-map-cap:empty { display: none; }
.fl-map-cap::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cover); margin-right: 8px; vertical-align: 1px;
}
.fl-cover-legend-map {
  position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.fl-cover .fl-flags { margin-top: 12px; }
.fl-cover .fl-flags li { font-size: 15px; }

/* ---------- the settings sheet ---------- */

.fl-sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: hidden;
}
.fl-sheet:not([open]) { display: none; }
.fl-sheet::backdrop { background: rgba(4, 8, 14, 0.32); }
.fl-sheet-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100% - 24px));
  display: flex; flex-direction: column;
  background: var(--sheet); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(4, 8, 14, 0.28);
  overflow: hidden; font-family: var(--text); font-size: 16px; line-height: 1.4;
  animation: fl-sheet-in 0.34s var(--ease) both;
}
@keyframes fl-sheet-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.fl-sheet-grab { display: none; }
.fl-sheet-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 14px 14px 10px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--sheet) 90%, transparent);
}
.fl-sheet-title { grid-column: 2; margin: 0; font: 650 17px var(--display); letter-spacing: -0.01em; color: var(--ink); }
.fl-sheet-title:focus { outline: none; }
.fl-sheet-back, .fl-sheet-done {
  appearance: none; border: 0; background: none; cursor: pointer; color: var(--accent);
  font-size: 16px; height: 34px; padding: 0 6px; border-radius: 10px;
}
.fl-sheet-back { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; }
.fl-sheet-back[hidden] { display: none; }
.fl-sheet-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fl-sheet-done { grid-column: 3; justify-self: end; font-weight: 650; }
.fl-sheet-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 36px; }
.fl-sheet-page[hidden] { display: none; }
.fl-sheet-page { padding: 0; margin: 0; animation: fl-page-in 0.26s var(--ease) both; }
@keyframes fl-page-in { from { transform: translateX(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.fl-group {
  background: var(--surface); border-radius: 13px; overflow: hidden; margin: 14px 0 0;
  border: 1px solid var(--line);
}
.fl-group-head + .fl-group { margin-top: 0; }
.fl-group-head { margin: 22px 14px 7px; font-size: 13px; font-weight: 560; color: var(--muted); letter-spacing: 0.01em; }
.fl-group-foot { margin: 7px 14px 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.fl-group-foot:empty { display: none; }
.fl-row {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 9px 14px; width: 100%;
  background: none; border: 0; text-align: left; color: var(--ink); font: inherit;
  text-decoration: none;
}
.fl-row + .fl-row::before, .fl-row + .fl-secret::before {
  content: ""; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--line);
}
.fl-group .fl-row-nav + .fl-row-nav::before { left: 56px; }
.fl-row-nav, .fl-row-plain, .fl-row-check { cursor: pointer; }
.fl-row-nav:hover, .fl-row-plain:hover, button.fl-row-check:hover { background: var(--surface-2); }
.fl-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; gap: 1px; }
.fl-row-label { font-size: 16px; color: var(--ink); }
.fl-row-detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.fl-row-detail:empty { display: none; }
.fl-row-value { font-size: 15px; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.fl-row-plain { color: var(--accent); font-size: 16px; }
.fl-row-danger { color: var(--bad); }
.fl-row-danger[data-armed="yes"] { font-weight: 650; }
.fl-row-stack { flex-direction: column; align-items: stretch; gap: 8px; }
.fl-row-check > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fl-row-check[aria-pressed="true"] > svg, .fl-row-check[aria-current="true"] > svg { opacity: 1; }
.fl-row-check:disabled { cursor: default; opacity: 0.5; }
button.fl-row-check:disabled:hover { background: none; }
.fl-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fl-mono { font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 13.5px; }
.fl-tile {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--tile-blue); color: #ffffff;
}
.fl-tile[data-tone="teal"] { background: var(--tile-teal); }
.fl-tile[data-tone="indigo"] { background: var(--tile-indigo); }
.fl-tile[data-tone="green"] { background: var(--tile-green); }
.fl-tile[data-tone="graphite"] { background: var(--tile-graphite); }
.fl-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.fl-row-input {
  flex: 1 1 auto; min-width: 0; height: 34px; border: 0; background: none; padding: 0;
  font: 16px var(--text); color: var(--ink); text-align: right;
}
.fl-row-input::placeholder { color: var(--faint); }
.fl-row-input:focus { outline: none; }
.fl-row:focus-within { box-shadow: inset 3px 0 0 var(--accent); }
.fl-row-input[readonly] { color: var(--muted); }
.fl-row > .fl-row-input:first-child { text-align: left; }
.fl-num { flex: 0 0 8ch; font-variant-numeric: tabular-nums; }
.fl-select {
  max-width: 70%; height: 34px; border: 0; background: none; color: var(--muted);
  font: 16px var(--text); text-align: right; cursor: pointer;
}
.fl-row:has(> .fl-row-input) > .fl-row-main { flex: 0 0 auto; }
.fl-sheet .fl-status:empty { display: none; }
.fl-pill {
  flex: none; appearance: none; border: 0; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 620;
}
.fl-pill:hover { background: var(--accent); color: var(--accent-ink); }

.fl-seg {
  display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--surface-2);
}
.fl-seg-btn {
  flex: 1 1 0; min-width: 0; appearance: none; border: 0; cursor: pointer;
  height: 30px; padding: 0 8px; border-radius: 8px; background: none;
  font-size: 13.5px; font-weight: 560; color: var(--ink-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.fl-seg-btn[aria-checked="true"] {
  background: var(--seg-on); color: var(--ink); font-weight: 650;
  box-shadow: 0 1px 2px rgba(12, 22, 34, 0.12), 0 2px 8px rgba(12, 22, 34, 0.06);
}
.fl-seg-btn:focus-visible { outline-offset: 0; }
.fl-seg-small .fl-seg-btn { height: 28px; font-size: 12.5px; padding: 0 6px; }
/* "What's covered": every model the lab serves, in rows of four */
#coverage-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.fl-seg-wide .fl-seg-btn { padding: 0 4px; }

.fl-switch {
  flex: none; position: relative; width: 51px; height: 31px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line-strong); transition: background 0.2s var(--ease);
}
.fl-switch-knob {
  position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s var(--ease);
}
.fl-switch[aria-checked="true"] { background: var(--accent); }
.fl-switch[aria-checked="true"] .fl-switch-knob { transform: translateX(20px); }

.fl-stepper-row { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.fl-step-value {
  width: 6ch; height: 32px; border: 0; background: none; text-align: center;
  font: 600 16px var(--text); color: var(--ink); font-variant-numeric: tabular-nums;
}
.fl-step-value:focus { outline: 2px solid var(--accent); border-radius: 8px; }
.fl-step-unit { font-size: 14px; color: var(--muted); margin: 0 2px 0 -4px; }
.fl-mini {
  flex: none; appearance: none; cursor: pointer; width: 32px; height: 32px; border-radius: 999px;
  display: inline-grid; place-items: center; border: 0; background: var(--surface-2); color: var(--ink);
}
.fl-mini svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fl-mini:hover { background: var(--line-strong); }
.fl-mini:disabled { opacity: 0.35; cursor: default; }
.fl-mini-remove { width: 28px; height: 28px; color: var(--muted); background: none; }
.fl-mini-remove:hover { color: var(--bad); background: var(--surface-2); }

.fl-place-row { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; padding-bottom: 8px; }
.fl-place-top { display: flex; align-items: center; gap: 8px; }
.fl-place-name { text-align: left !important; font-weight: 560; }
.fl-place-money { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; color: var(--muted); }
.fl-place-sign { font-size: 15px; }
.fl-place-value { flex: 0 0 11ch; width: 11ch; font-variant-numeric: tabular-nums; }
.fl-place-bottom { display: flex; align-items: baseline; gap: 10px; }
.fl-place-where { flex: 0 0 14ch; height: 26px; text-align: left !important; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fl-place-precision { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fl-map-sheet { aspect-ratio: 4 / 3; margin: 14px 0 0; border-radius: 14px; }
.fl-code-sheet { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 300px; font-size: 12px; }
.fl-secret.fl-row { display: block; min-height: 0; padding: 10px 14px; font-size: 13px; }
.fl-secret.fl-row[hidden] { display: none; }
.fl-filebtn { position: relative; }
.fl-filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fl-filebtn:focus-within { box-shadow: inset 3px 0 0 var(--accent); }
#data-job[data-level="warn"] { color: var(--bad); }
#data-job[data-level="good"] { color: var(--good); }

/* ---------- the answer, read from a metrics block ---------- */

.fl-figure-sub {
  margin: 6px 0 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.fl-figure-sub[hidden] { display: none; }
.fl-chip-plain { background: var(--surface-2); color: var(--ink-2); }
.fl-chip-plain svg { stroke: var(--ink-2); }
.fl-warnings { list-style: none; margin: 16px 0 0; padding: 0; max-width: 62ch; }
.fl-warnings[hidden] { display: none; }
.fl-warnings li {
  display: flex; gap: 9px; align-items: flex-start; margin: 0 0 5px;
  font-size: 14px; line-height: 1.42; color: var(--ink-2);
}
.fl-warnings li b { font-weight: 620; color: var(--ink); }
.fl-warnings svg {
  flex: none; width: 15px; height: 15px; margin-top: 2px;
  fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.fl-curve-head { display: block; margin: 0 0 4px; }
.fl-curve-head .fl-curve-cap { display: block; margin: 0; }
.fl-curve-sub { display: block; font-size: 13.5px; color: var(--muted); }
.fl-curve-sub:empty { display: none; }

/* ranked season totals: the replay's graphic */
.fl-seasons { list-style: none; margin: 12px 0 2px; padding: 0; }
.fl-seasons li {
  display: grid; grid-template-columns: 3.1em minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: baseline;
  padding: 9px 0 10px; border-top: 1px solid var(--line);
}
.fl-seasons li:first-child { border-top: 0; }
.fl-season-year { font-size: 14.5px; font-weight: 620; color: var(--ink); font-variant-numeric: tabular-nums; }
.fl-season-names { min-width: 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-season-loss { text-align: right; font-size: 14.5px; font-weight: 620; color: var(--ink); font-variant-numeric: tabular-nums; }
.fl-season-bar { grid-column: 2 / 4; display: block; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.fl-season-bar i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--loss-lo), var(--loss-hi));
}
.fl-seasons-more, .fl-seasons-none { margin: 8px 0 4px; font-size: 13.5px; color: var(--muted); }
/* wildfire: flame length if it burns, one bar per class */
.fl-flames li { grid-template-columns: 7.2em minmax(0, 1fr) 4.4em; align-items: center; padding: 8px 0; }
.fl-flames .fl-season-bar { grid-column: 2; grid-row: 1; height: 10px; }
.fl-flames .fl-season-loss { grid-column: 3; grid-row: 1; }
.fl-flames .fl-season-year { font-weight: 560; color: var(--ink-2); }

/* ---------- the full numbers ---------- */

.fl-ins[hidden] { display: none; }
.fl-ins > summary { font-size: 16px; color: var(--ink-2); }
.fl-ins-body { max-width: none; padding: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.fl-ins-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px;
  margin: 10px 0 0; padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.fl-ins-stat { min-width: 0; }
.fl-ins-stat .ui-stat-num {
  font: 680 clamp(24px, 2.4vw, 30px) / 1.05 var(--display); letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere;
}
.fl-ins-stat .ui-stat-label { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.fl-ins-stat .ui-stat-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.fl-ins-part { margin: 38px 0 0; }
.fl-ins-head { margin: 0 0 12px; max-width: 72ch; }
.fl-ins-head h3 {
  margin: 0; font: 650 18px/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink);
}
.fl-ins-head p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.fl-ins-line { margin: 14px 0 10px; max-width: 72ch; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fl-ins-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-items: start;
}
.fl-ins-split > .fl-ins-part { margin-top: 38px; }
.fl-ins-split > :only-child { grid-column: 1 / -1; }
.fl-ins-chart { margin: 0; }
.fl-ins-chart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.fl-ins-chart-top .fl-curve-cap { margin: 4px 0 0; }
.fl-ins-seg { flex: 0 0 132px; }

/* the design system's table, set for figures */
.fl-ins-table { margin: 0; }
.fl-ins-table + .fl-ins-table { margin-top: 14px; }
.fl-ins .ui-table { font-size: 14.5px; }
.fl-ins .ui-table caption { padding: 10px 14px 2px; font-size: 13px; }
.fl-ins .ui-table :is(th, td) { padding-left: 14px; padding-right: 14px; }
.fl-ins .ui-table :is(tbody, tfoot) th {
  font: 560 14.5px/1.4 var(--text); letter-spacing: 0; text-transform: none; white-space: normal;
  color: var(--ui-ink); vertical-align: top; padding-top: 8px; padding-bottom: 8px;
  border: 0; border-top: 1px solid var(--ui-line);
}
.fl-ins .ui-table tbody tr:first-child th { border-top: 0; }
.fl-ins .ui-table tfoot :is(th, td) { border-top: 1px solid var(--ui-line-strong); color: var(--ui-ink-2); }
.fl-ins .ui-table tfoot tr + tr :is(th, td) { border-top: 1px solid var(--ui-line); }
.fl-ins .ui-table tr[data-mark="used"] :is(th, td) { background: var(--accent-soft); }
.fl-ins-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.fl-ins-sub {
  display: block; margin-top: 1px; font-size: 12.5px; font-weight: 400; color: var(--ui-muted);
  font-variant-numeric: tabular-nums;
}
.fl-ins-list { margin: 0; padding: 0 0 0 18px; max-width: 72ch; }
.fl-ins-list li { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fl-ins-files { display: flex; flex-wrap: wrap; gap: 10px; }
.fl-ins-file { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; }
.fl-ins-method { margin: 30px 0 0; font-size: 15px; }
.fl-ins-method a { font-weight: 560; }
.fl-ins-file svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* settings: a choice with its one plain line */
.fl-row-choice .fl-row-main { flex: 0 1 auto; }
.fl-row-choice .fl-row-value { flex: 1 1 auto; min-width: 0; }
.fl-tag {
  display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 650;
}

/* ---------- widths ---------- */

@media (max-width: 980px) {
  .fl-perils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-peril-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cards" "mag" "event" "cover" "provider" "actions"; grid-template-rows: auto; }
  .fl-peril-layout .fl-cover { margin-top: 22px; }
  .fl-map-cover { aspect-ratio: 16 / 10; }
  .fl-runwrap, .fl-answer { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fl-ins-split { grid-template-columns: minmax(0, 1fr); }
  .fl-ins-split > .fl-ins-part + .fl-ins-part { margin-top: 0; }
  .fl-ins-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .fl { padding: 10px 16px 56px; font-size: 16px; }
  .fl-steps ol { gap: 0; margin-bottom: 18px; justify-content: space-between; }
  .fl-step { padding: 6px 8px; font-size: 13px; gap: 6px; }
  .fl-sub { font-size: 17px; }
  .fl-map { aspect-ratio: 4 / 3.4; border-radius: 18px; }
  .fl-search { left: 10px; top: 10px; width: calc(100% - 20px); }
  .fl-mapctl { right: 10px; bottom: 10px; }
  .fl-perils { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fl-peril {
    min-height: 0; padding: 16px 16px; flex-direction: row; align-items: center; gap: 14px;
  }
  .fl-peril .fl-text { display: flex; flex-direction: column; min-width: 0; }
  .fl-glyph { width: 40px; height: 40px; margin: 0; flex: none; }
  .fl-peril-title { margin-top: 0; font-size: 18px; }
  .fl-check { top: 50%; margin-top: -12px; }
  .fl-peril .fl-text { padding-right: 30px; }
  .fl-skeleton { min-height: 76px; }
  .fl-actions { position: sticky; bottom: 12px; z-index: 5; }
  .fl-bar { flex-direction: column; align-items: stretch; gap: 18px; }
  .fl-actions-place { justify-content: stretch; }
  .fl-map-main { height: auto; aspect-ratio: 4 / 3.6; }
  .fl-suggest {
    flex-wrap: nowrap; overflow-x: auto; gap: 7px;
    margin: 0 -16px 14px; padding: 2px 16px 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scroll-padding-inline: 16px;
  }
  .fl-suggest::-webkit-scrollbar { display: none; }
  .fl-suggest > * { flex: none; scroll-snap-align: start; }
  .fl-chipbtn { height: 36px; padding: 0 13px; font-size: 14.5px; }
  .fl-actions .fl-primary { flex: 1 1 auto; }
  .fl-actions-answer, .fl-failed .fl-actions { position: static; }
  .fl-timeline { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .fl-timeline li { padding: 0 0 22px 36px; min-height: 48px; }
  .fl-timeline li::before { top: 26px; bottom: 2px; left: 9px; right: auto; width: 3px; height: auto; }
  .fl-timeline li[data-state="current"]::before {
    background:
      linear-gradient(180deg, transparent, var(--node) 50%, transparent) 0 0 / 100% 40% no-repeat,
      var(--line-strong);
    animation-name: fl-travel-down;
  }
  .fl-runmap .fl-map, .fl-answer-side .fl-map { aspect-ratio: 16 / 11; }
  .fl-curve { padding: 16px 12px 8px; }
  .fl-quiet-body { padding-left: 0; }
  .fl-topline { grid-template-columns: minmax(0, 1fr) 38px; gap: 4px; margin-bottom: 18px; }
  .fl-steps { grid-column: 1; }
  .fl-gear { grid-column: 2; width: 36px; height: 36px; }
  .fl-mapbtn { left: 10px; bottom: 10px; height: 34px; padding: 0 12px 0 10px; font-size: 13.5px; }
  .fl-map[data-covering="yes"] .fl-mapbtn { opacity: 1; pointer-events: auto; }
  .fl-covercard { position: static; width: auto; margin: 10px 0 0; }
  .fl-seg-small, #coverage-models { display: grid; grid-template-columns: 1fr 1fr; }
  .fl-pop[data-dock="bottom"] { left: 8px; right: 8px; bottom: 8px; top: auto !important; width: auto; }
  .fl-search-note > span { padding: 6px 10px; }
  .fl-map-cover { aspect-ratio: 16 / 12.5; }
  .fl-peril-layout .fl-perils { grid-template-columns: minmax(0, 1fr); }
  .fl-peril-layout .fl-peril { min-height: 0; padding: 16px; }
  .fl-peril-layout .fl-peril-title { margin-top: 0; font-size: 18px; }
  .fl-map-cap { font-size: 14px; left: 12px; top: 10px; }
  .fl-sheet-panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; border-bottom: 0;
    animation-name: fl-sheet-up;
  }
  .fl-sheet-grab { display: block; width: 38px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: 7px auto 0; flex: none; }
  .fl-sheet-head { padding-top: 6px; }
  .fl-sheet-body { padding: 4px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .fl-place-value { flex-basis: 9ch; width: 9ch; }
  .fl-seg-wide .fl-seg-btn { font-size: 13px; }
  .fl-select { font-size: 15px; }
  .fl-ins-stats { gap: 18px 14px; padding: 16px; }
  .fl-ins-stat .ui-stat-num { font-size: 22px; }
  .fl-ins .ui-table { font-size: 13.5px; }
  .fl-ins .ui-table :is(th, td) { padding-left: 9px; padding-right: 9px; }
  .fl-ins .ui-table th { font-size: 11px; }
  .fl-ins .ui-table :is(tbody, tfoot) th { font-size: 13.5px; }
  .fl-ins-chart-top { flex-direction: column; }
  .fl-ins-seg { flex: none; width: 132px; }
  .fl-season-loss { font-size: 14px; }
  .fl-ins .ui-table th { white-space: normal; }
}
@keyframes fl-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fl-travel-down {
  from { background-position: 0 -60%, 0 0; }
  to { background-position: 0 160%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fl-screen, .fl-place { animation: none; }
  .fl-pulse::after, .fl-skeleton::after { animation: none !important; }
  .fl-timeline li[data-state="current"]::before {
    animation: none !important;
    background: color-mix(in srgb, var(--node) 55%, var(--line-strong)) !important;
  }
  .fl-primary, .fl-peril, .fl-chipbtn, .fl-step { transition: none; }
  .fl-sheet-panel, .fl-sheet-page, .fl-covercard, .fl-pop { animation: none !important; }
  .fl-switch, .fl-switch-knob, .fl-seg-btn, .fl-gear { transition: none; }
}
