.dl-lab { --dl-ink:#194b59; --dl-teal:#226a72; max-width:1280px; }
.dl-lab [hidden] { display:none!important; }
.dl-panel { background:#fffdf8; border:1px solid #b9ced1; border-radius:18px; padding:clamp(18px,3vw,30px); min-width:0; }
.dl-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.dl-fields label,.dl-form-actions label,.dl-k-controls label { font-weight:650; min-width:0; }
.dl-fields input { margin-top:8px; font-family:ui-monospace,monospace; }
.dl-form-actions { display:flex; flex-wrap:wrap; gap:22px; align-items:end; }
.dl-form-actions label { flex:1 1 360px; }
.dl-form-actions select { margin-top:8px; }
.dl-equation,.dl-math { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; white-space:normal; font-variant-numeric:tabular-nums; }
.dl-equation { color:var(--dl-ink); font-size:clamp(1.08rem,2.2vw,1.4rem); font-weight:650; }
.dl-notice { padding:18px 22px; border-radius:12px; background:#e5f3ed; font-weight:650; }
.dl-notice:empty { display:none; }
.dl-notice.dl-error,.dl-error { background:#fff0e8; color:#8c321a; }
.dl-error { padding:14px; border-radius:10px; margin-top:12px; }
.dl-step { margin:24px 0; }
.dl-step h2,.dl-panel>h2 { font-size:clamp(1.28rem,2.5vw,1.75rem); margin-bottom:20px; }
.dl-comparison { display:grid; grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr); gap:22px; }
.dl-comparison>div { min-width:0; }
.dl-theory { background:#eaf1f2; padding:18px; border-radius:12px; align-self:start; }
.dl-column-label { font-size:.9rem; font-weight:750; color:var(--dl-teal); margin-bottom:12px; }
.dl-table-wrap { overflow-x:auto; max-width:100%; margin:14px 0; border:1px solid #d0dddf; border-radius:10px; }
.dl-lab table { width:100%; border-collapse:collapse; margin:0; }
.dl-lab th,.dl-lab td { padding:11px 13px; border-bottom:1px solid #d0dddf; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.dl-lab th { background:#f1eee5; font-weight:700; }
.dl-lab tbody tr:last-child td { border-bottom:0; }
.dl-lab td { min-width:4em; }
.dl-lab code { color:var(--dl-ink); }
.dl-k-controls { display:flex; align-items:end; flex-wrap:wrap; gap:14px; margin:18px 0; }
.dl-k-controls label { flex:1 1 260px; max-width:440px; }
.dl-k-controls input { margin-top:8px; font-family:ui-monospace,monospace; }
.dl-pages { display:flex; gap:14px; flex-wrap:wrap; margin-top:18px; }
.dl-lab input:focus-visible,.dl-lab button:focus-visible,.dl-lab select:focus-visible { outline:3px solid #9b691a; outline-offset:3px; }
@media(max-width:800px) { .dl-comparison { grid-template-columns:1fr; } .dl-fields { grid-template-columns:1fr; gap:14px; } .dl-lab th,.dl-lab td { padding:9px; } }
@media print { .dl-lab form,.dl-pages,.dl-k-controls,.dl-lab [data-domain] { display:none; } .dl-comparison { display:block; } .dl-panel { break-inside:auto; } }
