/* Heat through walls — on top of calc.css and thermal/thermal.css (the shared drawing, pill, panel and chart classes) */
main.wl .tabs { grid-template-columns: repeat(3, 1fr); }
#view .wl-band { stroke: none; cursor: pointer; }
#view .wl-edge { fill: none; stroke: var(--steel-750); stroke-width: 1.1; pointer-events: none; }
#view .wl-selr { fill: none; stroke: var(--sel); stroke-width: 2; pointer-events: none; }
#view .wl-prof { fill: none; stroke: var(--load); stroke-width: 2; stroke-linejoin: round; pointer-events: none; }
#view .wl-dot { fill: var(--surface); stroke: var(--load); stroke-width: 1.4; pointer-events: none; }
#view .wl-it { font-size: 11px; fill: var(--text-2); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--halo); stroke-width: 3px; stroke-linejoin: round; }
#view .wl-lim { fill: none; stroke-width: 1.2; stroke-dasharray: 4 3; pointer-events: none; }
#view .wl-blue { stroke: var(--moment); } #view .wl-red { stroke: var(--bad); }
#view .wl-bluet { fill: var(--moment); } #view .wl-redt { fill: var(--bad); }
#view .wl-cond { fill: none; stroke: var(--moment); stroke-width: 1.6; stroke-dasharray: 3 3; pointer-events: none; }
#view .pill.cond rect { stroke: color-mix(in srgb, var(--moment) 45%, transparent); } #view .pill.cond text { fill: var(--moment); font-weight: 600; }
.ch-l.wl-halo, .wl-halo { paint-order: stroke; stroke: var(--halo); stroke-width: 3px; stroke-linejoin: round; }

/* panel: one card per layer */
.wl-io { margin: 0 0 8px; }
.wl-layer { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 4px; margin: 0 0 8px; background: var(--surface); }
.wl-layer.sel { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.wl-side { position: absolute; top: -8px; right: 10px; display: inline-flex; align-items: center; line-height: 1; font-size: 10.5px; color: var(--text-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.wl-lh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wl-sw { flex: 0 0 auto; width: 8px; height: 22px; border-radius: 1px; border: 1px solid var(--steel-650); }
.wl-mas { background: repeating-linear-gradient(45deg, var(--steel-200) 0 3px, var(--steel-400) 3px 4px); }
.wl-ins { background: var(--x-f1ead3, #f1ead3); } .wl-tim { background: var(--x-ecdfd2, #ecdfd2); } .wl-pla { background: var(--steel-100); } .wl-met { background: var(--steel-350); }
.wl-mem { background: var(--steel-600); } .wl-gla { background: var(--x-dbe8ee, #dbe8ee); } .wl-air { background: var(--surface-2); }
.wl-nm { flex: 1 1 auto; min-width: 0; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: transparent; }
.wl-nm:hover { border-color: var(--line); } .wl-nm:focus { outline: none; border-color: var(--sel); background: var(--surface); }
.wl-btns { display: flex; gap: 2px; flex: 0 0 auto; }
.wl-btns button { width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 14px; }
.wl-add { margin: 2px 0 8px; }

/* layer table */
.wl-tab th.r { text-align: right; }
.wl-tab tr.sf td { color: var(--text-3); }
.wl-tab tr.tot td { font-weight: 600; border-bottom: 0; }
#gBlock[hidden] { display: none; }
@media (max-width: 760px) {
  .wl-tab, .wl-tab tbody { display: block; width: 100%; }
  .wl-tab thead { display: none; }
  .wl-tab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .wl-tab td { border: 0 !important; padding: 0 !important; }
  .wl-tab td:first-child { grid-column: 1 / -1; }
  .wl-tab td:nth-child(2)::before { content: "d "; color: var(--text-3); font-weight: 400; }
  .wl-tab td:nth-child(3)::before { content: "λ "; color: var(--text-3); font-weight: 400; }
  .wl-tab td:nth-child(4)::before { content: "R "; color: var(--text-3); font-weight: 400; }
  .wl-tab td:empty { display: none; }
  .wl-tab td[data-l]::before { content: attr(data-l) " "; color: var(--text-3); font-weight: 400; }
  .wl-tab td.v { text-align: left; }
}

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-6e7177: #85827f; --x-b9c0c8: #44494f; --x-d3c69f: #685e42; --x-dac6b2: #4c3f31; --x-dbe8ee: #293235;
    --x-e9d6c8: #41342b; --x-ecdfd2: #393129; --x-f1ead3: #322d1f;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-6e7177: #85827f; --x-b9c0c8: #44494f; --x-d3c69f: #685e42; --x-dac6b2: #4c3f31; --x-dbe8ee: #293235;
    --x-e9d6c8: #41342b; --x-ecdfd2: #393129; --x-f1ead3: #322d1f;
  }
}
/* theme-auto:end */
