/* Omid Labs · app/labs/diffusion.css — styles for the diffusion labs (heat-plate, heat-rod, laplace); every selector starts with
   .vl-diffusion (the lab body carries class vl-body vl-diffusion). Plain rules only, nothing external. LDS 1.0: the page, the side
   sections, the stage bar and the slots are the kit's; this file only styles the Map/Surface pair, the edge chips and a few notes. */
.vl-diffusion .vl-diffusion-views{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.vl-diffusion .vl-diffusion-views.split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.vl-diffusion .vl-diffusion-legend{margin:2px 0 4px;font-family:ui-monospace,Menlo,monospace}
.vl-diffusion .vl-diffusion-legend:empty{display:none}
.vl-diffusion .vl-diffusion-lg{display:inline-flex;align-items:center;gap:6px;white-space:pre}
.vl-diffusion .vl-diffusion-lg i{display:inline-block;width:14px;height:3px;border-radius:2px}
.vl-diffusion .vl-diffusion-hint{margin:2px 0 8px}
.vl-diffusion .vl-diffusion-note{margin:6px 0 0;min-height:0}
.vl-diffusion .vl-diffusion-note:empty{display:none}
.vl-diffusion .vl-diffusion-dv[hidden]{display:none}
.vl-diffusion .vl-diffusion-dv{border-top:1px dashed var(--line);margin-top:6px;padding-top:4px}
.vl-diffusion .vl-diffusion-rnote{margin:2px 0 8px;color:var(--muted)}
.vl-diffusion .vl-diffusion-rnote.bad{color:var(--red);font-weight:600}
.vl-diffusion .vl-diffusion-compat{margin:6px 0 0;color:var(--muted)}
.vl-diffusion .vl-diffusion-compat.bad{color:var(--red);font-weight:600}
.vl-diffusion .vl-diffusion-compat:empty{display:none}
.vl-diffusion .vl-diffusion-edgerow{border-bottom:1px dashed var(--line);padding:2px 0 4px;margin-bottom:4px}
.vl-diffusion .vl-diffusion-edgerow .vl-segwrap{margin:6px 0 0}
.vl-diffusion .vl-diffusion-edgerow .vl-seg-label{min-width:52px}
.vl-diffusion .vl-diffusion-edgerow .vl-slider{margin:4px 0 2px}
.vl-diffusion .vl-diffusion-edgerow input[disabled]{opacity:.4}
.vl-diffusion .vl-secblock[hidden],.vl-diffusion .vl-stage[hidden],.vl-diffusion .panel.vl-card[hidden],.vl-diffusion .vl-chips>[hidden]{display:none}
.vl-diffusion .vl-tabpanel>.vl-stage+.vl-stage{margin-top:12px}

/* edge chips (the control slot) sit on the stage, just outside each edge of the plate */
.vl-diffusion .vl-stage .vl-diffusion-edgechip{position:absolute;transform:translate(-50%,-50%);min-height:36px;min-width:36px;padding:0 11px;border-radius:18px;border:1px solid rgba(214,224,236,.38);background:rgba(12,16,26,.78);color:#eef2f7;font:600 12px/1 var(--sans);letter-spacing:.01em;white-space:nowrap;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.28);z-index:2}
.vl-diffusion .vl-stage .vl-diffusion-edgechip:hover{border-color:#F7D96F}
.vl-diffusion .vl-stage .vl-diffusion-edgechip:focus-visible{outline:3px solid #F0AC5F;outline-offset:1px}
.vl-diffusion .vl-stage .vl-diffusion-chip-left{transform:translate(-50%,-50%) rotate(-90deg)}
.vl-diffusion .vl-stage .vl-diffusion-chip-right{transform:translate(-50%,-50%) rotate(90deg)}
.vl-diffusion .vl-stage .vl-diffusion-t-fixed{border-color:rgba(240,172,95,.75);color:#F7D96F}
.vl-diffusion .vl-stage .vl-diffusion-t-cooling{border-color:rgba(88,196,221,.8);color:#9fe0ef}
.vl-diffusion .vl-stage .vl-diffusion-t-wrap{border-color:rgba(92,208,179,.8);color:#8fe6cf}
.vl-diffusion .vl-stage.light .vl-diffusion-edgechip{background:color-mix(in srgb,var(--card) 90%,transparent);color:var(--ink);border-color:var(--line)}
.vl-diffusion .vl-stage.light .vl-diffusion-t-fixed{border-color:var(--gold)}
.vl-diffusion .vl-stage.light .vl-diffusion-t-cooling{border-color:var(--lapis)}
.vl-diffusion .vl-stage.light .vl-diffusion-t-wrap{border-color:var(--firoozeh)}

/* a split pair on a narrow column: the predict gate wraps inside its half instead of being cut off */
.vl-diffusion .vl-diffusion-views.split .vl-predict:not(.compact){white-space:normal;flex-wrap:wrap;justify-content:center;row-gap:4px}
.vl-diffusion .vl-diffusion-views.split .vl-predict:not(.compact) .vl-gate-hint{display:none}

@media (max-width:760px){
  .vl-diffusion .vl-diffusion-views.split{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .vl-diffusion .vl-stage .vl-diffusion-edgechip{padding:0 8px;font-size:11px}
}

/* heat-visuals (2026-10-02) ---------------------------------------------------------------------------------------------
   FTCS blow-up card: the kit's error banner (still .vl-errbanner, role=alert, Reset first) as an opaque card with a red
   accent. It sits inside the plate, on the side away from the growing spot (top: under the HUD and the top edge chip; bottom:
   above the bottom edge chip and the colorbar), and rises in with a small spring (none under reduced motion). */
.vl-diffusion .vl-stage .vl-errbanner.vl-diffusion-blow{top:66px;bottom:auto;width:min(430px,calc(100% - 64px));flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:4px;padding:13px 16px 12px 19px;border-radius:16px;background:var(--ol-surface,#fff);color:var(--ol-label,#1d1d1f);box-shadow:0 18px 44px rgba(4,8,18,.38),0 2px 6px rgba(4,8,18,.18),0 0 0 .5px rgba(0,0,0,.12);animation:vl-diffusion-card-in .42s var(--ol-spring,cubic-bezier(.34,1.45,.64,1)) both}
/* fix: the red accent is a short rounded bar inset from the corners (an inset shadow bent round the radius into a crescent);
   the card is opaque, so no backdrop blur (it only cost paint time over the canvas) */
.vl-diffusion .vl-stage .vl-errbanner.vl-diffusion-blow::before{content:"";position:absolute;left:7px;top:14px;bottom:14px;width:3px;border-radius:2px;background:var(--ol-red,#DA0000)}
.vl-diffusion .vl-stage .vl-errbanner.vl-diffusion-blow.vl-errbanner-bottom{top:auto;bottom:68px}
.vl-diffusion .vl-stage .vl-diffusion-blow p{margin:0;flex:none}
.vl-diffusion .vl-stage .vl-diffusion-blow .vl-diffusion-blow-title{display:flex;align-items:center;gap:8px;font:600 15px/1.25 var(--ol-font);letter-spacing:-.01em;color:var(--ol-label,#1d1d1f)}
.vl-diffusion .vl-stage .vl-diffusion-blow .vl-diffusion-blow-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ol-red);box-shadow:0 0 0 3px var(--ol-red-soft)}
.vl-diffusion .vl-stage .vl-diffusion-blow .vl-diffusion-blow-why{font:400 13px/1.45 var(--ol-font);color:var(--ol-label-2,#5f5f64)}
.vl-diffusion .vl-stage .vl-diffusion-blow .vl-diffusion-nowrap{white-space:nowrap}
.vl-diffusion .vl-stage .vl-diffusion-blow-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:6px}
.vl-diffusion .vl-stage .vl-diffusion-blow-actions button{min-height:32px;padding:6px 14px;font-size:13px}
.vl-diffusion .vl-stage .vl-diffusion-blow-actions button.vl-diffusion-blow-reset{background:var(--ol-fill,rgba(120,120,128,.12));color:var(--ol-label,#1d1d1f);font-weight:500}
.vl-diffusion .vl-stage .vl-diffusion-blow-actions button.vl-diffusion-blow-reset:hover{background:var(--ol-fill-2,rgba(120,120,128,.2))}
@keyframes vl-diffusion-card-in{from{opacity:0;transform:translateX(-50%) translateY(10px) scale(.97)}to{opacity:1;transform:translateX(-50%)}}
@media (max-width:560px){
  .vl-diffusion .vl-stage .vl-errbanner.vl-diffusion-blow{width:calc(100% - 84px);padding:11px 12px 10px 16px}
  .vl-diffusion .vl-stage .vl-diffusion-blow .vl-diffusion-blow-title{font-size:14px}
  .vl-diffusion .vl-stage .vl-diffusion-blow .vl-diffusion-blow-why{font-size:12px}
  .vl-diffusion .vl-stage .vl-diffusion-blow-actions button{min-height:44px;padding:8px 16px}   /* fix: 44 px touch targets on phones */
}
@media (prefers-reduced-motion:reduce){.vl-diffusion .vl-stage .vl-errbanner.vl-diffusion-blow{animation:none}}

/* FTCS step r: the stable (green) and unstable (red) zones under the track, the limit tick, and the live gain |1 − 8r|.
   The band is inset by half a thumb (8 px) so the tick lines up with the thumb's center at r = limit. */
.vl-diffusion .vl-slider.vl-diffusion-rslider{row-gap:2px}
.vl-diffusion .vl-diffusion-rzone{grid-column:2;grid-row:2;position:relative;display:block;height:16px;margin:0 8px;--vl-rlim:36.36%}
.vl-diffusion .vl-diffusion-rzone i{position:absolute;top:1px;height:4px;border-radius:2px}
.vl-diffusion .vl-diffusion-rzone .vl-diffusion-rzone-ok{left:0;width:calc(var(--vl-rlim) - 1px);background:var(--ol-flag-green);opacity:.85}
.vl-diffusion .vl-diffusion-rzone .vl-diffusion-rzone-bad{left:calc(var(--vl-rlim) + 1px);right:0;background:var(--ol-red);opacity:.75}
.vl-diffusion .vl-diffusion-rzone b{position:absolute;left:var(--vl-rlim);top:6px;transform:translateX(-50%);font:600 11px/1 var(--ol-font);color:var(--ol-label-2);white-space:nowrap}
.vl-diffusion .vl-diffusion-rzone b::before{content:"";position:absolute;left:50%;top:-7px;width:1.5px;height:7px;margin-left:-.75px;background:var(--ol-label-2);border-radius:1px}
.vl-diffusion .vl-diffusion-rgain{grid-column:2/4;grid-row:3;margin:0 8px;font:500 12px/1.3 var(--ol-font);font-variant-numeric:tabular-nums;color:var(--ol-label-2)}
.vl-diffusion .vl-diffusion-rgain.good{color:var(--ol-green)}
.vl-diffusion .vl-diffusion-rgain.bad{color:var(--ol-red);font-weight:600}
.vl-diffusion .vl-slider.vl-diffusion-rslider.vl-diffusion-r-over input{accent-color:var(--ol-red)}
/* fix: the Persian palette's color-blind note (shown only while it is chosen) */
.vl-diffusion .vl-diffusion-cmnote{margin:2px 0 6px}
.vl-diffusion .vl-diffusion-cmnote[hidden]{display:none}
