/* Left panel of the heat page (Fable, panel pass 2026-11-14), linked after heat.css. A column of cards, 340 px wide, auto height, scrolls inside
   itself when it must; the map shows below the last card. Replaces the left-panel rules of heat.css (the round-11 card block, .lg-load,
   .b-wx / .wx, the old .ly-wind and .sm-* rows). One rule: every slot has a fixed size, so nothing moves when data arrives or the hour changes;
   no loading indicator of any kind: a slot shows a dash or a neutral grey ramp until its value is there.
   Desktop geometry sits under (min-width: 821px); the phone strip and its tune popover keep the rules of heat.css. */
:root { --pw-l: 312px; }
/* legend block: ramp (neutral grey until the first legend), min and max in two halves */
.lg { display: flex; flex-direction: column; gap: 3px; } .lg .lv-bar { height: 10px; border-radius: 5px; background: var(--subtle); box-shadow: inset 0 0 0 1px rgba(20, 38, 41, .08); } .lg.empty .lv-bar { background: var(--line); }
.lg-ends { display: flex; height: 14px; } .lg-ends small { flex: 1; font-size: 11px; line-height: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; } .lg-ends small:last-child { text-align: right; }
.lg-note { display: flex; align-items: center; gap: 4px; height: 15px; font-size: 11px; line-height: 15px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-note .ii { flex: none; }
/* wind: four icon toggles with a tooltip, two sliders with the value at the right */
.w-els { display: flex; gap: 6px; }
.chip { display: grid; place-items: center; width: 40px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sf-3); color: var(--mut); cursor: pointer; }
.chip:hover { border-color: var(--teal); color: var(--ink-2); } .chip[aria-pressed=true] { background: var(--teal-t); border-color: var(--teal); color: var(--teal-d); }
.ly-wind { display: flex; flex-direction: column; gap: 6px; }
.rg { display: grid; grid-template-columns: 76px minmax(0, 1fr) 64px; align-items: center; gap: 0 8px; height: 26px; }
.rg > small { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-2); white-space: nowrap; } .rg input { width: 100%; height: 20px; margin: 0; accent-color: var(--teal); } .rg > b { font-size: 12px; text-align: right; white-space: nowrap; }
.rg.off { opacity: .45; } .rg[hidden] { display: none; }   /* round 21: smoke rows of another view are hidden */
/* on site: three rows that never come or go; the value sits in a fixed slot, a dash until it is there */
.b-wx { display: flex; flex-direction: column; gap: 2px; }
.wx { display: grid; grid-template-columns: 16px minmax(0, 1fr) 112px; align-items: center; gap: 10px; height: 28px; color: var(--ink-2); }
.wx small { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wx b { position: relative; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; } .wx b i { display: inline-block; width: 24px; margin-left: 4px; font-size: 11px; text-align: right; }   /* fixed slot: the compass tag never moves when the number gets wider */
/* smoke card: view switch, two sliders, the section button, the key, the stability line, the sources (five rows, then it scrolls), Add source */
.sm-modes { display: flex; width: 100%; box-sizing: border-box; } .sm-modes button { flex: 1; min-width: 0; padding: 0 4px; white-space: nowrap; }
.sm-tools { display: flex; align-items: center; gap: 6px; height: 30px; } .sm-tools .hc-btn { flex: 1; justify-content: flex-start; gap: 6px; height: 30px; padding: 0 10px; font-size: 12px; color: var(--ink-2); }
.sm-tools .hc-btn[aria-pressed=true] { background: var(--teal-t); border-color: var(--teal); color: var(--teal-d); }
.sm-key { display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: 10px 14px; gap: 2px 4px; align-items: center; } .sm-key.off { display: none; }   /* round 21: no gap where the key does not apply */
.sm-key > i { grid-area: 1 / 1; height: 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); } .sm-key-l { grid-area: 2 / 1; display: flex; justify-content: space-between; } .sm-key-l small { font-size: 10.5px; line-height: 14px; color: var(--mut); }
.sm-key-i { grid-area: 1 / 2 / 3 / 3; display: flex; align-items: center; justify-content: flex-end; }
.sm-stab { display: grid; grid-template-columns: 16px 132px minmax(0, 1fr) auto; align-items: center; gap: 6px; height: 24px; font-size: 12px; color: var(--ink-2); }
.sm-stab b { position: relative; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sm-stab small { font-size: 11px; color: var(--mut); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-stab.nd b { color: var(--ink-2); font-weight: 500; } .sm-stab.hill .ic { color: var(--watch); }
.sm-h { display: flex; align-items: center; justify-content: space-between; height: 24px; margin-top: 2px; } .sm-h small { font-size: 12px; font-weight: 600; color: var(--ink); }
.sm-h .hc-btn { width: auto; height: 24px; padding: 0 8px; font-size: 11px; color: var(--teal-d); } .sm-h .hc-btn.off { visibility: hidden; }
.sm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow-y: auto; scrollbar-width: thin; }
.sm-list li { display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 2px 0 4px; border-radius: 8px; } .sm-list li.sel { background: var(--subtle); }
.sm-n { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); text-align: left; cursor: pointer; }
.sm-add { width: 100%; height: 30px; gap: 6px; font-size: 12px; } .sm-add[aria-pressed=true] { background: var(--teal-t); border-color: var(--teal); color: var(--teal-d); }
/* the Smoke chip's switch, the Wind card's chevron under Smoke */
.tg { position: relative; flex: none; width: 26px; height: 14px; border-radius: 7px; background: var(--line-2); transition: background .15s; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--sf-3); transition: transform .15s; }
.ly[aria-pressed=true] .tg { background: var(--teal); } .ly[aria-pressed=true] .tg::after { transform: translateX(12px); }
.c-chev { display: inline-flex; font-style: normal; } .c-chev.up { transform: rotate(180deg); } #layers > .card.shut > :not(h2) { display: none; }

@media (min-width: 821px) {
  #layers { top: var(--gap); bottom: auto; left: var(--gap); width: var(--pw-l); max-height: calc(100vh - 2 * var(--gap)); padding: 0; gap: var(--gap); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; background: none; box-shadow: none; border-radius: 0; }
  #layers::-webkit-scrollbar { display: none; }
  #layers > .card { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; }
  #layers > .card > h2 { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: 13px; font-weight: 600; color: var(--ink); } #layers > .card > h2 .ii { margin-left: 2px; }
  #layers > .card > h2 .c-x { width: 24px !important; height: 24px !important; margin-left: auto; } #layers > .card > h2 span { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  #layers > .card.shut { padding-bottom: 10px; } #layers > .card.c-smoke { gap: 8px; }
  #layers .ly-list { gap: 2px; } #layers .ly { height: 36px; gap: 10px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
  #layers .ly span { flex: 1; font-weight: 500; } #layers .ly small { min-width: 48px; font-size: 11px; color: var(--mut); text-align: right; } #layers .ly.on small { color: var(--teal-d); opacity: .8; }
  #layers .ly-slots .ly.dis { height: 28px; font-size: 12px; opacity: .6; } #layers .ly-slots .ly.dis small { min-width: 0; }
  .ly-lgrow { display: flex; align-items: center; gap: 8px; } .ly-lgrow .ly-legend { flex: 1; min-width: 0; } .ly-lgrow > .ii { margin: 0; }
  .lg-note { margin-top: -4px; }
}
@media (max-width: 820px) {
  .ly .tg { display: none; } .lg .lv-bar { height: 6px; border-radius: 3px; } .lg-ends small { line-height: 13px; }
  .chip { width: 44px; height: 40px; } .sm-n { height: 36px; } .sm-add { height: 36px; } .sm-list { max-height: none; } .sm-tools { height: auto; } .sm-tools .hc-btn { height: 40px; }
  #layers:not(.pop) .sm-stab, #layers:not(.pop) .sm-band, #layers:not(.pop) .lg-note, #layers:not(.pop) .sm-key-i { display: none; }
  #layers.pop .lg-note { padding: 0 8px 4px; }
}
