/* RhPf Diode Lab 2.0.0. Mark, Website Plugins Engineer, RhPf Electronics.
   Tokens and patterns from the homepage guideline, Tone Maps Next, Taper Lab, Gyrator Lab and Timing Lab: same values, dil- prefix. */
.rhpf-dil{--bg:#0e0e10;--panel:#17171a;--line:#2a2a2f;--line2:#55555e;--ink:#f2efe9;--mute:#a9a39a;
 --c:#d0b090;--ct:#d0b090;--cfg:#111;--crt:#06120b;--crtg:#0f3a22;--lab:#62f39a;--led:#2fe07a;--k:#f2efe9;
 --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;--ease:cubic-bezier(.2,.8,.2,1);
 position:relative;box-sizing:border-box;width:100%;max-width:none!important;margin-top:0;margin-bottom:0;
 background:var(--bg);color:var(--ink);font-family:Montserrat,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
 font-size:16px;line-height:1.5;padding:34px 0 40px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rhpf-dil *,.rhpf-dil *:before,.rhpf-dil *:after{box-sizing:border-box}
.rhpf-dil .dil-in{max-width:1240px;margin:0 auto;padding:0 28px}
.rhpf-dil button,.rhpf-dil input,.rhpf-dil select{font:inherit;color:inherit}
.rhpf-dil [hidden]{display:none!important}

/* head line */
.dil-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;flex-wrap:wrap}
.dil-tag,.dil-count,.dil-lbl,.dil-f label{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.dil-tag{display:inline-flex;align-items:center;gap:9px}
.dil-count{letter-spacing:.06em}
.dil-nojs{color:var(--mute)}

/* LED */
.dil-led{width:9px;height:9px;border-radius:50%;background:#3a2020;box-shadow:inset 0 0 2px #000;display:inline-block;flex:none;transition:background .2s,box-shadow .2s}
.dil-led.on{background:#ff3b30;box-shadow:0 0 10px 2px rgba(255,59,48,.75)}
.dil-led.g.on{background:var(--led);box-shadow:0 0 9px 2px rgba(47,224,122,.6)}

/* tips line */
.dil-tips{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 44px 10px 14px;margin:0 0 14px;border:1px solid var(--line);border-radius:14px;background:#121214;color:var(--mute);font-size:14px}
.dil-tips b{color:var(--ink);font-weight:600}
.dil-tips em{font-style:normal;color:var(--ink);font-family:var(--mono);font-size:12.5px;letter-spacing:.04em}
.dil-tipt{transition:opacity .3s,transform .3s var(--ease)}
.dil-tipt.out{opacity:0;transform:translateY(-5px)}
.dil-x{all:unset;box-sizing:border-box;cursor:pointer;position:absolute;right:8px;top:50%;margin-top:-14px;width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:var(--mute);font-size:16px;line-height:1}
.dil-x:hover,.dil-x:focus-visible{color:var(--ink);background:#26262b}

/* pills */
.dil-btn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.55em;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line2);color:var(--ink);font-weight:600;font-size:14px;white-space:nowrap;transition:background .25s,color .25s,border-color .25s}
.dil-btn:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.dil-btn.quiet{border-color:var(--line)}
.dil-btn .dil-led{width:8px;height:8px}
.dil-btn:focus-visible,.dil-seg button:focus-visible,.dil-x:focus-visible,.dil-tabs button:focus-visible,.dil-card:focus-visible,.dil-lg:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-seg{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:999px;background:#121214}
.dil-seg button{all:unset;box-sizing:border-box;cursor:pointer;height:32px;padding:0 14px;border-radius:999px;font-weight:600;font-size:14px;color:var(--mute);display:inline-flex;align-items:center;white-space:nowrap;transition:background .2s,color .2s}
.dil-seg button:hover{color:var(--ink)}
.dil-seg button[aria-pressed=true]{background:var(--ink);color:var(--bg)}
.dil-seg.sm button{height:28px;padding:0 12px;font-size:13px}
.dil-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.dil-bar .sp{flex:1 1 0}
.dil-bar{gap:8px}
.dil-bar .dil-btn{padding:0 13px}
.dil-bar .dil-seg button{padding:0 11px}

/* stage */
.dil-stage{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.6fr);gap:16px;align-items:start}
.dil-stage>*,.dil-left>*,.dil-right>*{min-width:0}
.dil-left,.dil-right{display:flex;flex-direction:column;gap:12px;min-width:0}
.dil-panel{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:14px;min-width:0}

/* the pedal */
.dil-bench{position:relative;height:600px;border-radius:22px;border:1px solid var(--line);overflow:hidden;
 background:radial-gradient(420px 380px at 50% 45%,color-mix(in srgb,var(--k) 16%,transparent),transparent 72%),radial-gradient(520px 420px at 50% 60%,rgba(98,243,154,.10),transparent 70%),#101012;transition:background .6s}
.dil-bench .svgw{position:absolute;inset:18px 10px}
.dil-bench svg{width:100%;height:100%;display:block;overflow:visible;filter:drop-shadow(0 30px 34px rgba(0,0,0,.6));touch-action:none;user-select:none;-webkit-user-select:none}
.dil-bench .uv text{user-select:none}
.dil-knob{cursor:grab;outline:none}
.dil-knob.drag{cursor:grabbing}
.dil-knob .rot{transition:transform .08s linear}
.dil-knob .ring,.dil-fs .ring{stroke:var(--lab);stroke-width:.45;opacity:0;transition:opacity .2s}
.dil-knob.act .ring{opacity:.55}
.dil-knob:focus-visible .ring,.dil-fs:focus-visible .ring{opacity:1;stroke-width:.6}
.dil-fs{cursor:pointer;outline:none}
.dil-fs .cap{transition:transform 80ms ease-out}
.dil-fs.down .cap{transform:scale(.93);transition-duration:40ms}
.dil-chip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;z-index:3;background:rgba(14,14,16,.92);border:1px solid color-mix(in srgb,var(--k) 55%,transparent);border-radius:10px;padding:5px 10px;display:flex;flex-direction:column;align-items:center;white-space:nowrap}
.dil-chip .l{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--k)}
.dil-chip .v{font-family:var(--mono);font-size:15px;font-weight:700;color:#ffefc6;font-variant-numeric:tabular-nums}

/* settings */
.dil-set{display:grid;gap:12px}
.dil-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.dil-tabs button{all:unset;box-sizing:border-box;cursor:pointer;height:40px;border-radius:12px;border:1px solid var(--line);background:rgba(0,0,0,.25);color:var(--mute);display:flex;align-items:center;justify-content:center;gap:8px;font-family:var(--mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.dil-tabs button:hover{color:var(--ink);border-color:var(--line2)}
.dil-tabs button[aria-selected=true]{color:var(--ink);border-color:var(--d);box-shadow:0 0 0 1px var(--d) inset}
.dil-tabs .dot,.dil-card .dot{width:10px;height:10px;border-radius:50%;background:var(--d);box-shadow:0 0 8px var(--d);flex:none}
.dil-f{display:grid;gap:6px}
.dil-f label,.dil-lbl{font-size:11.5px;letter-spacing:.1em}
.dil-hint{text-transform:none;letter-spacing:0;font-family:Montserrat,system-ui,Arial,sans-serif;font-size:12px;opacity:.8;margin-left:6px}
.dil-f input{width:100%;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);padding:0 12px;outline:none;font-size:15px}
.dil-f select{cursor:pointer;-webkit-appearance:none;appearance:none;padding-right:34px;
 background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9a39a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 13px center}
.dil-f select option,.dil-f select optgroup{background:#141417;color:var(--ink)}
.dil-f select:focus,.dil-f input:focus{border-color:var(--k)}
.dil-f input.bad{border-color:#f0a020}
.dil-iw{display:flex;align-items:center;gap:10px}
.dil-iw input{flex:1 1 auto;min-width:0;font-family:var(--mono)}
.dil-par{flex:none;font-family:var(--mono);font-size:12.5px;color:var(--mute);white-space:nowrap;min-width:92px}
.dil-iw input.bad+.dil-par{color:#f0a020}
.dil-note{margin:0;font-size:13px;line-height:1.45;color:var(--mute)}
/* custom taper: shape and one slider (the Tone Maps Next slider) */
.dil-cust{display:grid;gap:8px;margin-top:4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.dil-cust .dil-seg{justify-self:start}
.dil-rrow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.dil-rrow output{min-width:64px;white-space:nowrap;font-family:var(--mono);font-size:13px;text-align:right;color:var(--ink)}
.dil-f .dil-rrow input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;padding:0;border:0;border-radius:999px;margin:0;outline:none;cursor:pointer;
 background:linear-gradient(var(--k,var(--c)) 0 0) 0/var(--sx,50%) 100% no-repeat,var(--line)}
.dil-rrow input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--ink);border:3px solid var(--panel);box-shadow:0 0 0 1px var(--line2)}
.dil-rrow input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--ink);border:3px solid var(--panel);box-shadow:0 0 0 1px var(--line2)}
.dil-rrow input[type=range]::-moz-range-track{background:var(--line);height:6px;border-radius:999px}
.dil-rrow input[type=range]::-moz-range-progress{background:var(--k,var(--c));height:6px;border-radius:999px}
.dil-rrow input[type=range]:focus-visible{box-shadow:0 0 0 2px var(--ct)}

/* taper picker: the Tone Maps Next list (tmn-combo, tmn-pop, tmn-list) */
.dil-combo{position:relative}
.dil-combo-btn{all:unset;box-sizing:border-box;cursor:pointer;width:100%;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--mute);transition:border-color .2s}
.dil-combo-btn:hover,.dil-combo-btn[aria-expanded=true]{border-color:var(--line2);color:var(--ink)}
.dil-combo-btn.picked{color:var(--ink)}
.dil-combo-btn:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-combo-btn span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dil-caret{font-family:var(--mono);font-size:11px;opacity:.8}
.dil-pop{position:absolute;left:0;right:0;top:46px;z-index:50;border:1px solid var(--line2);border-radius:14px;background:#141417;box-shadow:0 18px 40px rgba(0,0,0,.55);overflow:hidden}
.dil-list{max-height:330px;overflow:auto;padding:4px 0;margin:0;list-style:none;outline:none}
.dil-list li{padding:9px 14px;cursor:pointer;color:var(--mute);display:flex;align-items:center;gap:10px;font-size:15px;margin:0}
.dil-list li.sub{padding-left:28px}
.dil-list li:hover,.dil-list li.hi{background:#1f1f24;color:var(--ink)}
.dil-list li[aria-selected=true]{color:var(--ink);font-weight:600}
.dil-list li[aria-selected=true]:after{content:"\2713";margin-left:auto;color:var(--ct)}
.dil-list li.grp{cursor:default;padding:12px 14px 6px;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);background:none}
.dil-list li.grp:hover{background:none;color:var(--mute)}

/* scrollbars: the Tone Maps Next ones */
.rhpf-dil *,.rhpf-dil-modals *{scrollbar-width:thin;scrollbar-color:#3a3a41 transparent}
.rhpf-dil ::-webkit-scrollbar,.rhpf-dil-modals ::-webkit-scrollbar{width:8px;height:8px;background:transparent}
.rhpf-dil ::-webkit-scrollbar-track,.rhpf-dil-modals ::-webkit-scrollbar-track{background:transparent}
.rhpf-dil ::-webkit-scrollbar-thumb,.rhpf-dil-modals ::-webkit-scrollbar-thumb{background:#3a3a41;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.rhpf-dil ::-webkit-scrollbar-thumb:hover,.rhpf-dil-modals ::-webkit-scrollbar-thumb:hover{background:#55555e;background-clip:padding-box}
.rhpf-dil ::-webkit-scrollbar-button,.rhpf-dil-modals ::-webkit-scrollbar-button{display:none;width:0;height:0}
.rhpf-dil ::-webkit-scrollbar-corner,.rhpf-dil-modals ::-webkit-scrollbar-corner{background:transparent}

/* CRT, screens, toolbox, legend, typed line and save window: ported from Tone Maps Next 1.4.3 (tmn.css), tmn- renamed dil- */
.dil-crt{position:relative;flex:1;display:flex;flex-direction:column;min-height:0;border-radius:22px;background:var(--crt);border:10px solid var(--frame,#1b1d1b);transition:background .3s,border-color .3s;
 box-shadow:inset 0 0 60px var(--inglow,rgba(0,255,120,.08)),0 30px 60px rgba(0,0,0,.45);padding:14px 14px 12px}
.dil-crt:after{content:"";position:absolute;inset:0;border-radius:12px;pointer-events:none;
 background:repeating-linear-gradient(180deg,rgba(255,255,255,.018) 0 1px,transparent 1px 3px)}
.dil-plot{position:relative;flex:1;min-height:300px;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.dil-plot svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}
.dil-plot .grd line{stroke:var(--crtg);stroke-width:1;shape-rendering:crispEdges}
.dil-plot .grd line.z{stroke:var(--zero,#1f6b3f)}
.dil-plot .ax text{font-family:var(--mono);font-size:10.5px;fill:var(--axc,#3fa56a)}
.dil-plot .ax text.t{fill:var(--axt,#4fc07e);letter-spacing:.1em}
.dil-plot path.cv{fill:none;stroke-linecap:round;stroke-linejoin:round}
.dil-plot path.cv.live{filter:drop-shadow(0 0 3px currentColor)}
.dil-plot .cur line{stroke:var(--curc,rgba(98,243,154,.55));stroke-width:1;stroke-dasharray:3 3}
.dil-plot .cur circle{stroke:var(--crt);stroke-width:2}
.dil-plot rect.sel{fill:var(--self,rgba(98,243,154,.10));stroke:var(--sels,rgba(98,243,154,.45));stroke-width:1}
.dil-read{position:absolute;z-index:3;pointer-events:none;min-width:150px;max-width:260px;padding:8px 10px;border-radius:10px;background:var(--legbg,rgba(4,12,7,.92));border:1px solid var(--zero,#1f6b3f);
 font-family:var(--mono);font-size:12px;color:var(--lab);box-shadow:0 8px 20px rgba(0,0,0,.45)}
.dil-read .f{color:var(--ink2,#bdf7d2);margin-bottom:4px;letter-spacing:.06em}
.dil-read .r{display:flex;align-items:center;gap:7px;white-space:nowrap}
.dil-read .r i{width:12px;height:3px;border-radius:2px;flex:none}
.dil-read .r i.d{height:0;border-top:2px dotted}
.dil-read .r span{overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;color:var(--mute2,#9fdcb6)}
.dil-read .r b{font-weight:600;color:var(--ink2,#e6fff0)}
.dil-type{position:relative;z-index:1;font-family:var(--mono);font-size:13px;color:var(--lab);margin-top:8px;min-height:1.5em;text-shadow:0 0 6px var(--glowc,rgba(98,243,154,.55));display:flex;gap:12px;align-items:center;justify-content:space-between}
.dil-type .tx{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.dil-type .tx:after{content:"_";animation:dilblink 1s steps(1) infinite}
.dil-type .bt{display:inline-flex;gap:6px;flex:none}
.dil-type button{all:unset;cursor:pointer;flex:none;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--axt,#4fc07e);border:1px solid var(--zero,#1f6b3f);border-radius:999px;padding:3px 10px}
.dil-type button:hover{color:var(--crt);background:var(--lab)}
.dil-type button[aria-pressed=false]{opacity:.6;border-style:dashed}
@keyframes dilblink{50%{opacity:0}}
.dil-modal{position:fixed;inset:0;z-index:99999;background:rgba(5,5,7,.72);display:flex;align-items:center;justify-content:center;padding:16px;
 font-family:Montserrat,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink)}
.dil-mcard{position:relative;width:min(92vw,620px);max-height:88vh;display:flex;flex-direction:column;border:1px solid var(--line2);border-radius:18px;background:var(--panel);box-shadow:0 30px 60px rgba(0,0,0,.6);overflow:hidden}
.dil-mcard-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);cursor:grab;user-select:none}
.dil-mcard-h .ttl{display:flex;align-items:center;gap:10px;font-weight:700}
.dil-mcard-b{padding:16px;overflow:auto;display:grid;gap:14px;font-size:15px;line-height:1.55}
.dil-mcard-f{display:flex;align-items:center;gap:8px;padding:0 16px 16px}
.dil-dlg{width:min(92vw,440px)}
.dil-dlg .dil-mcard-h{cursor:default}
.dil-dlg .dil-mcard-b b{color:var(--ink)}
.dil-mcard-f .dil-btn{height:38px}
.dil-plot .leg text{font:600 11px Montserrat,Arial,sans-serif;fill:var(--ink2,#d9f7e4)}
.dil-plot .leg .legbg{fill:var(--legbg,rgba(6,18,11,.82));stroke:var(--crtg);stroke-width:1}
/* 1.2.0: the typed line may shrink (it pushed the tool wider than a phone screen); on phones the save buttons wrap under it */
.dil-type .tx{min-width:0;flex:1}
@media (max-width:599px){.dil-type{flex-wrap:wrap;row-gap:6px}.dil-type .bt{flex:1 1 100%;min-width:0;flex-wrap:wrap}}
/* 1.2.2: the graph legend can be dragged anywhere on the graph */
.dil-plot .leg{cursor:grab;touch-action:none}
.dil-plot .leg.drag{cursor:grabbing}
.dil-plot .leg.drag .legbg{stroke:var(--lab)}
/* 1.2.3: minimize / open button on the graph legend */
.dil-plot .leg .legbtn{cursor:pointer;outline:none}
.dil-plot .leg .legbtn circle{fill:var(--crtg,#0f3a22);stroke:var(--zero,#1f6b3f);stroke-width:1}
.dil-plot .leg .legbtn path{stroke:var(--ink2,#d9f7e4);stroke-width:1.6;stroke-linecap:round;fill:none}
.dil-plot .leg .legbtn:hover circle{fill:var(--zero,#1f6b3f)}
.dil-plot .leg .legbtn:focus-visible circle{stroke:var(--lab);stroke-width:2}

/* 1.3.0: screen looks. Flat looks (Night, Paper, Blueprint) have no phosphor glow and no scan lines */
.dil-crt.flat:after{display:none}
.dil-crt.flat .dil-plot path.cv.live{filter:none}
.dil-crt[data-screen=paper] .dil-plot path.cv{stroke-width:2.4}
.dil-plot path.cv.tot{opacity:.85}
.dil-crt[data-screen=paper] .dil-plot path.cv.tot{stroke-width:1.6}
.dil-scrbar{position:relative;z-index:4;display:flex;align-items:center;margin:-4px 0 4px}
.dil-scrbar .dil-scrbtn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 10px 0 6px;border-radius:999px;border:1px solid var(--zero);
 font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--axt)}
.dil-scrbar .dil-scrbtn:hover,.dil-scrbar .dil-scrbtn[aria-expanded=true]{color:var(--crt);background:var(--lab);border-color:var(--lab)}
.dil-scrbar .dil-scrbtn:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-scrbar .dil-scrbtn .sw{width:16px;height:12px;border-radius:3px;border:1.5px solid;box-sizing:border-box}
.dil-scrmenu{position:absolute;left:0;top:32px;margin:0;padding:6px;list-style:none;min-width:210px;border-radius:12px;background:#151517;border:1px solid var(--line2);box-shadow:0 14px 36px rgba(0,0,0,.5)}
.dil-scrmenu button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:8px;font-size:14px;font-weight:600;color:var(--mute)}
.dil-scrmenu button:hover,.dil-scrmenu button:focus-visible{background:#222226;color:var(--ink)}
.dil-scrmenu button[aria-checked=true]{color:var(--ink)}
.dil-scrmenu button[aria-checked=true]:after{content:"\2713";margin-left:auto;color:var(--ct)}
.dil-scrmenu .sw{position:relative;width:34px;height:22px;border-radius:5px;border:1px solid;box-sizing:border-box;flex:none;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:0 5px}
.dil-scrmenu .sw i{display:block;height:2px;border-radius:2px}
/* the save window (same card as the other windows) */
.dil-mcard-f .sp{flex:1}
.dil-dseg{display:flex;padding:3px;border:1px solid var(--line);border-radius:999px;background:#121214}
.dil-dseg button{all:unset;box-sizing:border-box;cursor:pointer;flex:1;text-align:center;height:34px;line-height:34px;padding:0 12px;border-radius:999px;font-weight:600;font-size:14px;color:var(--mute);white-space:nowrap}
.dil-dseg button[hidden]{display:none}
.dil-dseg button:hover{color:var(--ink)}
.dil-dseg button[aria-checked=true]{background:var(--ink);color:var(--bg)}
.dil-dseg button:focus-visible{outline:2px solid var(--ct);outline-offset:2px}

/* 1.4.0: the toolbox above the graph (zoom, drawing, move, eraser, colour, undo, clear); minimizable */
.dil-scrbar{flex-wrap:wrap;gap:6px 8px}
.dil-tbrow{display:flex;align-items:center;gap:2px;flex-wrap:wrap;padding:2px 4px;border:1px solid var(--zero);border-radius:999px}
.dil-tbrow[hidden]{display:none}
.dil-scrbar .tb{all:unset;box-sizing:border-box;cursor:pointer;width:28px;height:26px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:var(--axt)}
.dil-scrbar .tb svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dil-scrbar .tb:hover{background:var(--crtg);color:var(--ink2)}
.dil-scrbar .tb[aria-pressed=true]{background:var(--lab);color:var(--crt)}
.dil-scrbar .tb:focus-visible{outline:2px solid var(--lab);outline-offset:1px}
.dil-scrbar .tb:disabled{opacity:.35;cursor:default;background:none}
.dil-scrbar .tb.tog{border:1px solid var(--zero);height:26px;width:30px}
.dil-scrbar .sep{width:1px;height:16px;background:var(--zero);margin:0 3px}
.dil-scrbar .csw{width:14px;height:14px;border-radius:50%;border:1.5px solid var(--zero);box-sizing:border-box}
.dil-cwrap{position:relative;display:inline-flex}
.dil-cpop{position:absolute;top:32px;left:50%;transform:translateX(-50%);z-index:6;display:flex;gap:6px;padding:8px;border-radius:12px;background:#151517;border:1px solid var(--line2);box-shadow:0 14px 36px rgba(0,0,0,.5)}
.dil-cpop[hidden]{display:none}
.dil-cpop button{all:unset;box-sizing:border-box;cursor:pointer;width:22px;height:22px;border-radius:50%;border:2px solid #151517;box-shadow:0 0 0 1px var(--line2)}
.dil-cpop button[aria-pressed=true]{box-shadow:0 0 0 2px var(--ink)}
.dil-cpop button:focus-visible{outline:2px solid var(--ct);outline-offset:2px}
/* drawings: only Move and Eraser can pick them up */
.dil-plot #dilDrw{pointer-events:none}
.dil-plot.tl-move #dilDrw,.dil-plot.tl-erase #dilDrw{pointer-events:auto}
.dil-plot.tl-move #dilDrw .hit,.dil-plot.tl-erase #dilDrw .hit{pointer-events:stroke}
.dil-plot.tl-move #dilDrw [data-id]{cursor:move}
.dil-plot.tl-erase #dilDrw [data-id]{cursor:pointer}
.dil-plot.tl-erase #dilDrw [data-id]:hover{opacity:.45}
.dil-plot.tooling{touch-action:none}
.dil-plot.tl-zf,.dil-plot.tl-zg,.dil-plot.tl-za,.dil-plot.tl-pen,.dil-plot.tl-line,.dil-plot.tl-arrow,.dil-plot.tl-box,.dil-plot.tl-circle{cursor:crosshair}
.dil-plot.tl-text{cursor:text}
.dil-txtin{position:absolute;z-index:4;min-width:120px;width:180px;height:26px;padding:0 6px;border:1px dashed var(--lab);border-radius:6px;background:var(--legbg);font:600 15px Montserrat,Arial,sans-serif;outline:none;box-sizing:border-box}

.dil-plot .pos line{stroke:var(--curc,rgba(98,243,154,.55));stroke-width:1;stroke-dasharray:3 3}
.dil-plot .pos circle{stroke:var(--crt);stroke-width:2}
.dil-plot path.cv.live{opacity:.62}
.dil-plot path.cv.live.act{opacity:1}
.dil-read .r i.d{border-top-style:dashed}
.rhpf-dil-modals [hidden]{display:none!important}
.rhpf-dil-modals .dil-btn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.55em;height:38px;padding:0 16px;border-radius:999px;border:1px solid var(--line2);color:var(--ink);font-weight:600;font-size:14px;white-space:nowrap;transition:background .25s,color .25s,border-color .25s,filter .25s}
.rhpf-dil-modals .dil-btn:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.rhpf-dil-modals .dil-btn.quiet{border-color:var(--line)}
.rhpf-dil-modals .dil-btn.solid{background:var(--c);border-color:var(--c);color:var(--cfg)}
.rhpf-dil-modals .dil-btn.solid:hover{filter:brightness(1.1)}
.rhpf-dil-modals .dil-btn:focus-visible{outline:2px solid var(--ct);outline-offset:2px}
.rhpf-dil-modals .dil-led{width:9px;height:9px;border-radius:50%;background:#3a2020;box-shadow:inset 0 0 2px #000;display:inline-block;flex:none}
.rhpf-dil-modals .dil-led.on{background:#ff3b30;box-shadow:0 0 10px 2px rgba(255,59,48,.75)}
.rhpf-dil-modals *{box-sizing:border-box}
@media (prefers-reduced-motion:reduce){.dil-modal *{animation:none!important;transition:none!important}}

.dil-crt .dil-plot{flex:none;height:420px}

/* ---------- Lab parts ---------- */
.rhpf-dil input,.rhpf-dil select{box-sizing:border-box!important;margin:0!important;box-shadow:none!important;font-family:inherit!important;line-height:normal!important}
.rhpf-dil .dil-f input[type=text],.rhpf-dil .dil-f select{height:40px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--bg)!important;color:var(--ink)!important;padding:0 12px!important;font-size:15px!important;width:100%!important;max-width:none!important}
.rhpf-dil .dil-f select{padding-right:34px!important}
.rhpf-dil .dil-f input.bad{border-color:#f0a020!important}
.rhpf-dil .dil-f input:focus,.rhpf-dil .dil-f select:focus{border-color:var(--lab)!important;outline:none}
.dil-iw input{font-family:var(--mono)!important}
.dil-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.dil-two>*{min-width:0}
.dil-par{min-width:0;font-size:12px}
.dil-f>.dil-par{white-space:normal}
.dil-mini{display:inline-flex;gap:4px;flex:none}
.dil-mini button{all:unset;box-sizing:border-box;cursor:pointer;height:34px;min-width:38px;padding:0 8px;border:1px solid var(--line);border-radius:999px;font-family:var(--mono);font-size:13px;color:var(--mute);display:inline-flex;align-items:center;justify-content:center}
.dil-mini button:hover{color:var(--bg);background:var(--ink);border-color:var(--ink)}
.dil-mini button:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-tabs button[aria-pressed=true]{color:var(--bg);background:var(--ink);border-color:var(--ink)}
.dil-tabs button:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-note b{color:var(--ink);font-weight:600}
.dil-link{all:unset;cursor:pointer;color:var(--lab);text-decoration:underline;text-underline-offset:2px}
.dil-link:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-btn.solid{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.dil-btn.solid:hover{background:transparent;color:var(--ink)}
.dil-btn.solid[aria-pressed=true]{background:transparent;color:var(--ink);border-color:var(--lab)}
.dil-btn.sm{height:auto;min-height:36px;font-size:13px;padding:7px 14px;justify-self:start;white-space:normal;text-align:left;line-height:1.3}
.dil-btn[aria-pressed=true]{border-color:var(--lab)}
/* the knobs and selectors */
.dil-knob{cursor:grab;outline:none}
.dil-knob.drag{cursor:grabbing}
.dil-knob.sel{cursor:pointer}
.dil-knob .rot{transition:transform .08s linear}
.dil-knob .ring,.dil-fs .ring{stroke:var(--lab);stroke-width:.45;opacity:0;transition:opacity .2s}
.dil-knob:focus-visible .ring,.dil-fs:focus-visible .ring{opacity:1;stroke-width:.6}
.dil-fs{cursor:pointer;outline:none}
.dil-fs .cap{transition:transform 80ms ease-out}
.dil-fs.down .cap{transform:scale(.93);transition-duration:40ms}
.dil-bench{height:600px}
/* the bar above the screen */
.dil-bar{gap:6px}.dil-bar .dil-btn{height:38px;padding:0 11px;font-size:13.5px;gap:.45em}.dil-bar .dil-seg button{padding:0 10px;height:30px;font-size:13.5px}
/* pills inside the screen bar */
.dil-scrbar .sp{flex:1 1 0}
.dil-pill{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 10px;border-radius:999px;border:1px solid var(--zero);font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--axt)}
.dil-pill:hover{color:var(--crt);background:var(--lab);border-color:var(--lab)}
.dil-pill:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-pill .dil-led{width:7px;height:7px}
/* the screen */
.dil-plot .grd line.f{stroke:var(--crtg);stroke-opacity:.45}
.dil-plot .ax text.b{fill:var(--axc);opacity:.7}
.dil-plot .ax text.bn{fill:var(--lab);font-weight:700}
.dil-plot rect.bar{shape-rendering:geometricPrecision}
.dil-plot rect.echo{filter:drop-shadow(0 0 3px currentColor)}
.dil-crt.flat .dil-plot rect.echo{filter:none}
.dil-plot line.thr{stroke:var(--mute2);stroke-width:1;stroke-dasharray:4 4;opacity:.8}
.dil-plot line.ph{stroke:var(--ink2);stroke-width:1.5;stroke-dasharray:5 4;pointer-events:none}
.dil-plot text.lbl{font:600 11.5px Montserrat,Arial,sans-serif;fill:var(--ink2)}
.dil-plot text.big{font:700 22px Montserrat,Arial,sans-serif}
.dil-plot path.brk{fill:none;stroke:var(--ink2);stroke-width:1.2}
.dil-plot circle.mark{fill:var(--crt);stroke-width:2.5}
.dil-plot circle.grab{fill:var(--lab);opacity:.8}
.dil-plot.cangrab{cursor:ew-resize}
.dil-plot.grabbing{cursor:grabbing}
.dil-crt .dil-plot{flex:none;height:400px}
/* big numbers */
.dil-cards{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr));gap:10px}
.dil-card{display:grid;gap:4px;align-content:start;padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:var(--panel);min-width:0}
.dil-card.act{border-color:color-mix(in srgb,var(--lab) 45%,var(--line))}
.dil-card .k{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.dil-card .v{display:flex;align-items:baseline;gap:6px;min-width:0}
.dil-card .v b{font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.05;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dil-card.big .v b{font-size:40px}
.dil-card .v .u{font-family:var(--mono);font-size:13px;color:var(--mute)}
.dil-card .s{font-size:13px;color:var(--mute);line-height:1.4}
.dil-card .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.dil-chipb{all:unset;box-sizing:border-box;cursor:pointer;height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--line2);font-size:13px;font-weight:600;color:var(--ink);display:inline-flex;align-items:center;white-space:nowrap}
.dil-chipb:first-child{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.dil-chipb:hover{background:var(--lab);color:#06120b;border-color:var(--lab)}
.dil-chipb:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-card .kv{display:flex;justify-content:space-between;gap:8px;font-family:var(--mono);font-size:12px;color:var(--mute);white-space:nowrap}
.dil-card .kv b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
/* the Lab drawer */
.dil-lab>summary{cursor:pointer;display:flex;align-items:center;gap:10px;flex-wrap:wrap;list-style:none;font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.dil-lab>summary::-webkit-details-marker{display:none}
.dil-lab>summary:after{content:"+";margin-left:auto;font-size:18px;color:var(--mute)}
.dil-lab[open]>summary:after{content:"\2212"}
.dil-lab>summary:focus-visible{outline:2px solid var(--lab);outline-offset:4px;border-radius:8px}
.dil-lab .dil-hint{color:var(--mute)}
.dil-labw{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;align-items:start}
.dil-lsec{display:grid;gap:10px;align-content:start;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--bg);min-width:0}
.dil-lsec h4{margin:0;font-family:var(--mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--lab);font-weight:600}
.dil-lsec .dil-seg{flex-wrap:wrap;border-radius:18px}
.dil-row{display:flex;gap:8px;flex-wrap:wrap}
.dil-pillb{all:unset;box-sizing:border-box;cursor:pointer;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line);color:var(--mute);font-size:13px;font-weight:600}
.dil-pillb[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.dil-pillb:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-val{display:flex;align-items:center;height:40px;font-family:var(--mono);font-size:15px;color:var(--ink)}
.dil-scr{overflow-x:auto}
.dil-tbl{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:12.5px;font-variant-numeric:tabular-nums}
.dil-tbl th,.dil-tbl td{padding:5px 8px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.dil-tbl th{color:var(--mute);font-weight:600;font-size:11px;letter-spacing:.06em}
.dil-tbl td input{width:80px!important;height:30px!important;padding:0 6px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:var(--panel)!important;color:var(--ink)!important;text-align:right;font-family:var(--mono)!important;font-size:12.5px!important}
.dil-tbl td input.bad{border-color:#f0a020!important}
.dil-cell{all:unset;cursor:pointer;color:var(--ink);padding:2px 4px;border-radius:6px}
.dil-cell:hover{background:var(--lab);color:#06120b}
.dil-cell.on{color:var(--lab);font-weight:700}
.dil-cell:focus-visible{outline:2px solid var(--lab);outline-offset:1px}
.dil-f .dil-rrow input[type=range]{background:linear-gradient(var(--lab) 0 0) 0/var(--sx,50%) 100% no-repeat,var(--line)!important;height:6px!important;border:0!important;padding:0!important}
@media (max-width:1100px){.dil-labw{grid-template-columns:1fr}.dil-card.big .v b{font-size:32px}}
@media (max-width:900px){
 .rhpf-dil .dil-in{padding:0 20px}
 .dil-stage{grid-template-columns:minmax(0,1fr);gap:12px}
 .dil-left,.dil-right{display:contents}
 .dil-bench{order:1}.dil-bar{order:2}.dil-crt{order:3}.dil-cards{order:4}.dil-set{order:5}.dil-lab{order:6}
 .dil-bench{height:min(70vh,540px)}
 .dil-crt .dil-plot{height:min(52vh,340px);min-height:250px}
 .dil-bar .sp{display:none}
 .dil-cards{grid-template-columns:1fr 1fr}.dil-card.big{grid-column:1/-1}
}
@media (max-width:599px){
 .rhpf-dil .dil-in{padding:0 14px}
 .dil-btn{height:38px;padding:0 13px;font-size:13.5px}
 .dil-seg button{padding:0 10px;font-size:13px}
 .dil-crt{border-width:7px;padding:10px 6px 8px}
 .dil-tips{font-size:13px}
 .dil-two{grid-template-columns:1fr}
 .dil-cards{grid-template-columns:1fr}
 .dil-card.big .v b{font-size:30px}
}
@media print{.dil-tips,.dil-bar,.dil-scrbar,.dil-type .bt,.dil-chipb,#bmc-wbtn{display:none!important}.dil-lab:not([open]){display:none}.rhpf-dil{background:#fff;color:#000}}
@media (prefers-reduced-motion:reduce){
 .rhpf-dil *,.rhpf-dil *:before,.rhpf-dil *:after{animation:none!important;transition:none!important}
}


/* ---------- support button (Buy Me a Coffee), the same on every Nerd Lab tool ---------- */
#bmc-iframe{min-height:0!important;max-height:calc(100vh - 110px)!important;max-height:calc(100dvh - 110px)!important;max-width:calc(100vw - 36px)!important}
@media (max-width:640px){#bmc-wbtn{width:44px!important;height:44px!important;right:12px!important;bottom:12px!important;opacity:.85}#bmc-wbtn img{width:24px!important;height:24px!important}#bmc-iframe{right:12px!important;bottom:66px!important;max-width:calc(100vw - 24px)!important}}

.dil-f>.dil-par{font-family:var(--mono);font-size:11.5px;color:var(--mute)}

/* fields line up across a row: a hint under one field does not stretch its neighbour */
.dil-f{align-content:start}
.dil-two{align-items:start}
/* your own sound: the file input stays out of sight, its button opens it */
.dil-vh{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0!important}

/* ---------- 2.0.0: Diode Lab parts ---------- */
/* while the data loads */
.rhpf-dil:not(.ready) .dil-cards,.rhpf-dil:not(.ready) .dil-lab{opacity:.4;pointer-events:none}
/* the sockets on the pedal */
.dil-sock{cursor:pointer;outline:none}
.dil-sock .ring{stroke:var(--lab);stroke-width:.5;opacity:0;transition:opacity .2s}
.dil-sock.act .ring{opacity:.75}
.dil-sock:hover .ring{opacity:.45}
.dil-sock:focus-visible .ring{opacity:1;stroke-width:.7}
.dil-knob.idle{opacity:.55;transition:opacity .2s}
.dil-knob.idle:hover,.dil-knob.idle:focus-visible{opacity:1}
/* the parts list */
.dil-pick{display:grid;gap:10px}
.dil-pkh{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dil-lbl{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.rhpf-dil .dil-f input[type=search]{height:40px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--bg)!important;color:var(--ink)!important;padding:0 12px!important;font-size:15px!important;width:100%!important;max-width:none!important;-webkit-appearance:none;appearance:none}
.rhpf-dil .dil-f input[type=search]:focus{border-color:var(--lab)!important;outline:none}
.dil-fams{display:flex;flex-wrap:wrap;gap:6px}
.dil-fams button{all:unset;box-sizing:border-box;cursor:pointer;height:30px;padding:0 11px;border-radius:999px;border:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--mute);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.dil-fams button i{width:8px;height:8px;border-radius:50%;flex:none}
.dil-fams button span{font-family:var(--mono);font-size:11px;opacity:.75}
.dil-fams button:hover{color:var(--ink);border-color:var(--line2)}
.dil-fams button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.dil-fams button:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-pkb{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dil-pkb .dil-par{font-family:var(--mono);font-size:11.5px;color:var(--mute)}
.rhpf-dil .dil-pkb select{height:34px!important;border:1px solid var(--line)!important;border-radius:999px!important;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9a39a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center!important;color:var(--ink)!important;padding:0 32px 0 12px!important;font-size:13px!important;-webkit-appearance:none;appearance:none;cursor:pointer;max-width:60%}
.rhpf-dil .dil-pkb select:focus{border-color:var(--lab)!important;outline:none}
.dil-pkb select option{background:#141417;color:var(--ink)}
.dil-plist{list-style:none;margin:0;padding:0;max-height:360px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.dil-plist li{margin:0;padding:0;border-bottom:1px solid #1d1d21}
.dil-plist li:last-child{border-bottom:0}
.dil-prow{all:unset;box-sizing:border-box;cursor:pointer;width:100%;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto minmax(64px,auto);align-items:center;gap:8px;padding:8px 12px;font-size:14px;color:var(--ink);position:relative}
.dil-prow:hover{background:#1c1c20}
.dil-prow:focus-visible{outline:2px solid var(--lab);outline-offset:-2px}
.dil-prow.on{background:#14201a}
.dil-prow .nm{display:flex;align-items:center;gap:8px;font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dil-prow .nm i{width:8px;height:8px;border-radius:50%;flex:none}
.dil-prow .fm{font-size:12px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dil-prow .n{font-family:var(--mono);font-size:11.5px;color:var(--mute);white-space:nowrap}
.dil-prow .n em{font-style:normal;color:#f0a020;margin-left:2px}
.dil-prow .v{font-family:var(--mono);font-size:12.5px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.dil-prow .tag{position:absolute;right:4px;top:4px;font-family:var(--mono);font-size:9.5px;font-weight:700;color:#06120b;background:var(--lab);border-radius:999px;padding:0 5px;line-height:14px}
.dil-none{padding:14px!important;color:var(--mute);font-size:14px}
.dil-none a{color:var(--lab)}
.dil-vh{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0!important}
/* cards */
.dil-cards{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr)}
.dil-card .k{display:flex;align-items:center;gap:7px}
.dil-card .dot{width:9px;height:9px;border-radius:50%;flex:none}
.dil-card .nm{font-weight:700;font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.dil-card .kvs{display:grid;gap:2px;margin-top:4px}
.dil-card .chips{align-items:center}
.dil-card .chips .lk{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute);margin:0 2px 0 4px}
.dil-card .chips .dil-chipb:not(:first-child){background:transparent;color:var(--ink);border-color:var(--line2)}
.dil-card .chips .dil-chipb:not(:first-child):hover{background:var(--lab);color:#06120b;border-color:var(--lab)}
/* readout hint, screen cursors */
.dil-read .hint{margin-top:4px;color:var(--mute2);font-size:11px;letter-spacing:.04em}
.dil-plot.canpick{cursor:pointer}
.dil-plot.cangrab{cursor:ns-resize}
.dil-plot circle.grab{fill:var(--lab);opacity:.8}
/* the Lab drawer */
.dil-res{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.dil-res li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;font-size:14px}
.dil-res .nm{display:flex;align-items:center;gap:8px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dil-res .nm i{width:8px;height:8px;border-radius:50%;flex:none}
.dil-res .v{font-family:var(--mono);font-size:12px;color:var(--mute);white-space:nowrap}
.dil-res .mini{display:inline-flex;gap:4px}
.dil-res .mini button{all:unset;box-sizing:border-box;cursor:pointer;width:30px;height:28px;border-radius:999px;border:1px solid var(--line2);font-family:var(--mono);font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.dil-res .mini button:hover{background:var(--lab);color:#06120b;border-color:var(--lab)}
.dil-res .mini button:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-pairs{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px}
.dil-pair{all:unset;box-sizing:border-box;cursor:pointer;display:grid;gap:2px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.dil-pair b{font-size:14px}
.dil-pair span{font-size:12px;color:var(--mute)}
.dil-pair:hover{border-color:var(--lab)}
.dil-pair:focus-visible{outline:2px solid var(--lab);outline-offset:2px}
.dil-note a{color:var(--lab)}
.dil-tbl td:first-child,.dil-tbl th:first-child{text-align:left}
.dil-labw .dil-lsec:nth-child(4),.dil-labw .dil-lsec:nth-child(2){grid-column:1/-1}
@media (max-width:1100px){.dil-labw .dil-lsec{grid-column:auto!important}}
@media (max-width:900px){.dil-pick{order:5}.dil-cards{grid-template-columns:1fr 1fr}.dil-card.big{grid-column:1/-1}}
@media (max-width:599px){.dil-cards{grid-template-columns:1fr}.dil-prow{grid-template-columns:minmax(0,1fr) auto minmax(64px,auto)}.dil-prow .fm{display:none}.dil-plist{max-height:300px}}
.dil-pick{grid-template-columns:minmax(0,1fr)}
.dil-pick>*{min-width:0}
.dil-pkh{display:grid;gap:6px}
.dil-tgt{display:grid;grid-template-columns:repeat(3,1fr)}
.dil-tgt button{justify-content:center}
.dil-card .kv{white-space:normal;flex-wrap:wrap;column-gap:10px}
.dil-card .kv span{min-width:0}
.dil-card .kv b{margin-left:auto;white-space:nowrap;overflow:visible}
.dil-card .k .nu{text-transform:none}
.dil-res .nm{white-space:normal;overflow:visible}
.rhpf-dil .dil-pkb select{flex:0 1 220px;min-width:0!important;width:220px!important;max-width:58%!important;text-overflow:ellipsis}
.dil-pkb .dil-par{min-width:0}
.dil-card .dil-stack{border-top:1px dashed var(--line2);padding-top:8px;margin-top:6px}
.dil-card .dil-stack .dil-chipb[aria-pressed=true]{background:var(--lab);color:#06120b;border-color:var(--lab)}
