/* STORMWARD Fire 4D — this app's overrides of the Lenskit chrome and its panel blocks. Kept out
   of styles/app.css so the core stylesheet can be re-synced from Lenskit unchanged. The responsive
   rules for a four-lens switch are STORMWARD Flood · Inside's. */

@media (max-width: 720px) {
  /* Four lenses: on a phone the subtitles go, so the switch keeps to one row and the HUD (placed
     at a fixed height below it by app.css) does not sit on a second one. */
  .lens-switch { flex-wrap: nowrap; }
  .lens-sub { display: none; }
  .lens-btn { flex: 1 1 auto; min-width: 0; padding: 8px 7px 9px; justify-content: center; }
  .lens-name { letter-spacing: .1em; font-size: 10.5px; }

  /* HUD readouts share the width evenly; a long label ends in an ellipsis instead of running into
     its neighbour. */
  .hud-item { flex: 1 1 0; min-width: 0; }
  .hud-label, .hud-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* The timeline's label and readout share a row: both give way with an ellipsis rather than
     printing over each other. */
  .tl-label { min-width: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .tl-readout { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Four lenses with subtitles make a wide switch. Between phone and desktop widths the HUD drops
   under the icon bar (app.css), onto the switch's row: there the subtitles go and the switch
   starts below the HUD. In short windows it clears the HUD row beside the icons as well. */
@media (max-width: 980px) and (min-width: 721px) {
  .tagline { display: none; }
  .lens-switch { margin-top: 81px; }   /* the wordmark ends 40px down; the HUD row, 113px */
  .lens-sub { display: none; }
  .lens-btn { min-width: 0; }
}
@media (max-height: 600px) and (min-width: 981px) {
  .lens-switch { margin-top: 33px; }   /* the HUD beside the icons ends 65px down */
}


/* ---- panel blocks (lenses/shared/blocks.js) ------------------------------------------------ */
.fx { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.fx p { margin: 0; }
.fx-muted { color: var(--muted); }
.fx-name { font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.fx-sub { color: var(--muted); margin-bottom: 4px !important; }
.fx-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--hair); }
.fx-row span:first-child { color: var(--muted); }
.fx-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fx-ign-head { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.fx-ign-title { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.fx-ign-when { font-size: 12px; color: var(--text); }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fx-stat { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 8px; background: rgba(255,255,255,.02); min-width: 0; }
.fx-k { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-v { font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.fx-v small { font-size: 10.5px; color: var(--muted); margin-left: 3px; }
.fx-v em { font-style: normal; color: var(--accent); font-size: 11.5px; margin-left: 2px; }
.fx-ffwi { grid-column: 1 / -1; }
.fx-ffwi.fx-extreme { border-color: #ff2e4c; }
.fx-ffwi.fx-high { border-color: #ff7a2e; }
.fx-ffwi.fx-elevated { border-color: #e8b04a; }
.fx-source { font-size: 11px; color: var(--muted); }
.fx-arrow { color: var(--muted); display: block; }
.fx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 270px; overflow-y: auto; }
.fx-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 9px; border: 1px solid var(--hair); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.fx-item:hover, .fx-item:focus-visible { border-color: var(--accent); outline: none; }
.fx-item.is-on { border-color: var(--accent); background: rgba(255,138,61,.08); }
.fx-item-name { font-weight: 600; font-size: 12.5px; }
.fx-item-sub { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-legend-title { font-size: 11px; color: var(--muted); }
.fx-legend-bar { display: block; height: 8px; border-radius: 4px; }
.fx-legend-ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.fx-chart canvas { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--hair); background: rgba(0,0,0,.25); cursor: crosshair; }
.fx-chart-note { font-size: 11px; color: var(--muted); }
.fx-tag { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--hair); color: var(--muted); }
.fx-tag.is-measured { color: #9fe0b0; border-color: #2d5a3a; }
.fx-tag.is-interp { color: #ffcf8a; border-color: #6a4a22; }
.fx-tag.is-model { color: #a9c3ff; border-color: #2a3c66; }
