/* ============================================================
   AEROGYAN — Lab report studio (lab.js)
   2026-11-10 · loaded the first time the page opens — the old
   .lb-* rules left styles.css.
   ============================================================ */
.lb2-wrap { --lb-ac: var(--brand-600, #4f46e5); --lb-ok: #059669; --lb-warn: #d97706; --lb-bad: #dc2626; --lb-grad: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 55%, #10b981 100%);
  max-width: 1320px; margin: 0 auto; padding: 8px 0 48px; color: var(--text-primary); }
[data-theme="dark"] .lb2-wrap, [data-theme="dim"] .lb2-wrap { --lb-ac: var(--brand-400, #818cf8); --lb-ok: #34d399; --lb-warn: #fbbf24; }

/* ── hero ── */
.lb2-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding: 20px 22px; border-radius: 22px; margin-bottom: 14px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(14,165,233,.14), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(16,185,129,.12), transparent 60%), var(--bg-surface);
  border: 1px solid var(--border-default); box-shadow: var(--shadow-sm); overflow: hidden; }
.lb2-hero-t { display: flex; gap: 14px; align-items: center; min-width: 0; }
.lb2-logo { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 23px; background: var(--lb-grad); box-shadow: 0 10px 24px rgba(79,70,229,.3); }
.lb2-hero h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.lb2-hero p { margin: 3px 0 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.45; }
.lb2-hero-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lb2-presets { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.lb2-presets > span { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary, var(--text-secondary)); margin-right: 2px; }

/* ── buttons & chips ── */
.lb2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; }
.lb2-btn:hover { border-color: var(--lb-ac); }
.lb2-btn:active { transform: translateY(1px); }
.lb2-btn:disabled { opacity: .55; cursor: not-allowed; }
.lb2-btn:focus-visible, .lb2-chip:focus-visible, .lb2-steps button:focus-visible, .lb2-fit:focus-visible { outline: 2px solid var(--lb-ac); outline-offset: 2px; }
.lb2-btn.primary { background: linear-gradient(135deg, #4f46e5, #6366f1); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.28); }
.lb2-btn.primary:hover { box-shadow: 0 8px 22px rgba(79,70,229,.38); }
.lb2-btn.ghost { background: transparent; }
.lb2-btn.sm { min-height: 34px; padding: 5px 12px; font-size: 13px; border-radius: 10px; }
.lb2-btn.big { min-height: 48px; padding: 10px 22px; font-size: 15.5px; border-radius: 14px; }
label.lb2-btn { margin: 0; }
.lb2-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.lb2-chip i { color: var(--lb-ac); }
.lb2-chip:hover { border-color: var(--lb-ac); background: var(--bg-surface-2); }
.lb2-chip.warn { border-color: rgba(217,119,6,.45); background: rgba(245,158,11,.08); }
.lb2-chip.warn i { color: var(--lb-warn); }
.lb2-x { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 12px; }
.lb2-x:hover { background: rgba(220,38,38,.1); color: var(--lb-bad); }
.lb2-x.big { width: 38px; height: 38px; border-radius: 50%; font-size: 16px; background: var(--bg-surface-2); }

/* ── steps ── */
.lb2-steps { position: sticky; top: 64px; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; margin-bottom: 16px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: var(--shadow-sm); scroll-margin-top: 70px; }
.lb2-steps button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text-secondary); font: inherit; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.lb2-steps button:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.lb2-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--bg-surface-2); border: 1px solid var(--border-default); }
.lb2-steps .t { min-width: 0; display: grid; }
.lb2-steps .t b { font-size: 14.5px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb2-steps .t small { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb2-steps button.done .n { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.4); color: var(--lb-ok); }
.lb2-steps button.on { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.25); }
.lb2-steps button.on .n { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); color: #fff; }

/* ── layout ── */
.lb2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 18px; align-items: start; }
.lb2-main, .lb2-live { min-width: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.lb2-live { position: sticky; top: 140px; max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; scrollbar-width: thin; }
.lb2-card { min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: var(--shadow-sm); scroll-margin-top: 140px; }
.lb2-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 16.5px; }
.lb2-card h3 i { color: var(--lb-ac); }
.lb2-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lb2-card-h h3 { margin: 0; min-width: 0; }
.lb2-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.lb2-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.lb2-row.end { justify-content: flex-end; }
.lb2-nav { display: flex; justify-content: space-between; gap: 10px; }
.lb2-hint { font-size: 12.5px; color: var(--text-secondary); margin: 0; }
.lb2-hint i { color: var(--lb-ac); margin-right: 3px; }
.lb2-note { font-size: 13px; color: var(--text-secondary); margin: 12px 0 0; line-height: 1.5; }
.lb2-note i { color: var(--lb-ac); margin-right: 4px; }
.lb2-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(245,158,11,.1); border: 1px solid rgba(217,119,6,.35); font-size: 13.5px; }
.lb2-warn i { color: var(--lb-warn); margin-right: 4px; }

/* ── fields ── */
.lb2-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px 14px; }
.lb2-field { display: grid; gap: 5px; min-width: 0; margin: 0; }
.lb2-field.wide { grid-column: 1 / -1; }
.lb2-field > span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.lb2-field > span small { font-weight: 500; opacity: .85; }
.lb2-field input, .lb2-field select, .lb2-field textarea, .lb2-paste textarea { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 11px; border-radius: 11px; border: 1px solid var(--border-default); background: var(--bg-surface-2); color: var(--text-primary); font: inherit; font-size: 14.5px; transition: border-color .15s, box-shadow .15s, background .15s; }
.lb2-field textarea, .lb2-paste textarea { resize: vertical; line-height: 1.5; }
.lb2-field input:focus, .lb2-field select:focus, .lb2-field textarea:focus, .lb2-paste textarea:focus { outline: none; border-color: var(--lb-ac); box-shadow: 0 0 0 3px rgba(99,102,241,.18); background: var(--bg-surface); }
.lb2-paste { margin-bottom: 12px; padding: 12px; border-radius: 14px; border: 1px dashed var(--border-strong, var(--border-default)); background: var(--bg-surface-2); }
.lb2-paste textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.lb2-paste p { margin: 0 0 8px; }
.lb2-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(99,102,241,.06); border: 1px solid rgba(99,102,241,.2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.lb2-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--lb-ac); flex: none; }

/* ── the readings sheet ── */
.lb2-sheet { overflow-x: auto; border: 1px solid var(--border-default); border-radius: 14px; background: var(--bg-surface); }
.lb2-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.lb2-table th, .lb2-table td { padding: 0; border-bottom: 1px solid var(--border-subtle, var(--border-default)); border-right: 1px solid var(--border-subtle, var(--border-default)); }
.lb2-table thead th { background: var(--bg-surface-2); vertical-align: top; padding: 6px; min-width: 128px; text-align: left; }
.lb2-table thead th.idx, .lb2-table thead th.del { min-width: 0; width: 40px; }
.lb2-table thead th.calc { background: rgba(16,185,129,.07); }
.lb2-table thead th.isx { box-shadow: inset 0 3px 0 #0ea5e9; }
.lb2-table thead th.isy { box-shadow: inset 0 3px 0 var(--lb-ac); }
.lb2-colbar { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; min-height: 24px; }
.lb2-colbar b { font-size: 12px; color: var(--text-secondary); letter-spacing: .05em; }
.lb2-colbar em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgba(99,102,241,.14); color: var(--lb-ac); }
.lb2-colbar em.f { background: rgba(16,185,129,.16); color: var(--lb-ok); }
.lb2-colbar .lb2-x { margin-left: auto; }
.lb2-table thead input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 5px 8px; min-height: 32px; border-radius: 8px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 13.5px; font-weight: 600; }
.lb2-table thead input.u, .lb2-table thead input.lc { font-weight: 500; font-size: 12.5px; }
.lb2-table thead input.f { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; border-color: rgba(16,185,129,.5); }
.lb2-table thead input.f.bad { border-color: var(--lb-bad); background: rgba(220,38,38,.06); }
.lb2-table thead input:focus { outline: none; border-color: var(--lb-ac); box-shadow: 0 0 0 3px rgba(99,102,241,.16); }
.lb2-table tbody input { display: block; width: 100%; box-sizing: border-box; min-height: 36px; padding: 6px 10px; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.lb2-table tbody input:focus { outline: 2px solid var(--lb-ac); outline-offset: -2px; background: rgba(99,102,241,.06); }
.lb2-table tbody td.calc { background: rgba(16,185,129,.05); }
.lb2-table tbody td.calc input { color: var(--lb-ok); font-weight: 600; cursor: default; }
.lb2-table td.idx button { width: 100%; min-height: 36px; border: 0; background: var(--bg-surface-2); color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lb2-table td.idx button:hover { color: var(--lb-ac); }
.lb2-table td.del { text-align: center; width: 40px; }
.lb2-table tr.out td:not(.idx):not(.del) input { text-decoration: line-through; color: var(--text-tertiary, var(--text-secondary)); }
.lb2-table tr.out td.idx button { color: var(--lb-warn); background: rgba(245,158,11,.12); }
.lb2-table tbody tr:hover td { background-color: rgba(99,102,241,.03); }
.lb2-help { margin-top: 12px; font-size: 13.5px; color: var(--text-secondary); }
.lb2-help summary { cursor: pointer; font-weight: 600; }
.lb2-help code, .lb2-paste code { font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--bg-surface-2); }
.lb2-scroll { overflow-x: auto; }
.lb2-stats { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lb2-stats th { text-align: right; font-size: 12px; color: var(--text-secondary); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border-default); white-space: nowrap; }
.lb2-stats td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--border-subtle, var(--border-default)); white-space: nowrap; }
.lb2-stats th:first-child, .lb2-stats td:first-child { text-align: left; white-space: normal; min-width: 120px; }

/* ── fits ── */
.lb2-fits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.lb2-fit { position: relative; display: grid; gap: 3px; justify-items: start; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .12s; }
.lb2-fit:hover { border-color: var(--lb-ac); transform: translateY(-1px); }
.lb2-fit svg { width: 40px; height: 30px; color: var(--lb-ac); margin-bottom: 2px; }
.lb2-fit b { font-size: 14px; }
.lb2-fit small { font-size: 12px; color: var(--text-secondary); }
.lb2-fit .r2 { margin-top: 4px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; background: var(--bg-surface-2); }
.lb2-fit .best { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; color: #b45309; background: rgba(245,158,11,.16); padding: 2px 7px; border-radius: 999px; }
.lb2-fit.on { border-color: var(--lb-ac); background: rgba(99,102,241,.07); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.lb2-fit.on .r2 { background: var(--lb-ac); color: #fff; }
.lb2-fit.na { opacity: .6; }
.lb2-out { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(245,158,11,.09); border: 1px solid rgba(217,119,6,.3); font-size: 13.5px; }
.lb2-out > i { color: var(--lb-warn); }
.lb2-out span { flex: 1 1 220px; }
.lb2-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 8px; margin-top: 14px; }
.lb2-params > div { padding: 9px 12px; border-radius: 12px; background: var(--bg-surface-2); min-width: 0; }
.lb2-params small { display: block; font-size: 11.5px; color: var(--text-secondary); }
.lb2-params b { font-size: 14.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lb2-result { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(79,70,229,.08), rgba(16,185,129,.08)); border: 1px solid rgba(99,102,241,.22); }
.lb2-result .lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--lb-ac); }
.lb2-result b { font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lb2-result small { color: var(--text-secondary); font-size: 12.5px; }
.lb2-result .rv-sub { margin: 0; }
.lb2-cmp { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-surface-2); font-size: 14px; line-height: 1.55; }
.lb2-cmp span { display: block; margin-top: 4px; }
.lb2-cmp.ok { background: rgba(16,185,129,.09); border: 1px solid rgba(16,185,129,.3); }
.lb2-cmp.ok span i { color: var(--lb-ok); }
.lb2-cmp.off { background: rgba(245,158,11,.09); border: 1px solid rgba(217,119,6,.3); }
.lb2-cmp.off span i { color: var(--lb-warn); }

/* ── the live panel ── */
.lb2-graph { padding: 14px 14px 12px; }
.lb2-graph .lb2-card-h { margin-bottom: 6px; }
.lb2-graph h3 { font-size: 15px; }
.lb2-svg { display: block; width: 100%; height: auto; color: var(--text-secondary); font-family: inherit; user-select: none; }
.lb2-svg .lb2-tk { font-size: 11.5px; }
.lb2-svg .lb2-ax { font-size: 13px; font-weight: 600; fill: var(--text-primary); }
.lb2-res { margin-top: 2px; }
.lb2-res .lb2-tk { font-size: 10.5px; }
.lb2-pt { cursor: pointer; outline: none; }
.lb2-pt:hover circle:last-child, .lb2-pt:focus-visible circle:last-child { r: 7.5; }
.lb2-pt:focus-visible circle:first-child { fill: rgba(99,102,241,.18); }
.lb2-graph-empty { display: grid; place-items: center; gap: 8px; padding: 46px 18px; border-radius: 14px; border: 1.5px dashed var(--border-default); text-align: center; color: var(--text-secondary); }
.lb2-graph-empty i { font-size: 30px; color: var(--lb-ac); opacity: .7; }
.lb2-graph-empty p { margin: 0; max-width: 300px; font-size: 14px; }
.lb2-eq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 2px 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb2-eq .dot { width: 18px; height: 3px; border-radius: 2px; background: #059669; }
.lb2-eq .r2 { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(16,185,129,.12); color: var(--lb-ok); }
.lb2-eq.muted { color: var(--text-secondary); font-size: 13px; }
.lb2-graph .lb2-hint { margin-top: 6px; }
.lb2-key { display: grid; gap: 10px; padding: 14px 16px; }
.lb2-big small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--lb-ac); }
.lb2-big b { font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lb2-pill { justify-self: start; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-surface-2); }
.lb2-pill.ok { background: rgba(16,185,129,.13); color: var(--lb-ok); }
.lb2-pill.off { background: rgba(245,158,11,.14); color: #b45309; }
[data-theme="dark"] .lb2-pill.off, [data-theme="dim"] .lb2-pill.off { color: var(--lb-warn); }
.lb2-ready { padding: 14px 16px; }
.lb2-ready-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.lb2-ready-h b { display: block; font-size: 15px; }
.lb2-ready-h small { color: var(--text-secondary); font-size: 13px; }
.lb2-ring { flex: none; }
.lb2-ring .bg { fill: none; stroke: var(--bg-surface-3, var(--bg-surface-2)); stroke-width: 7; }
.lb2-ring .fg { fill: none; stroke: var(--lb-ac); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.lb2-ring .fg.full { stroke: var(--lb-ok); }
.lb2-ring text { font-size: 14px; font-weight: 800; fill: var(--text-primary); }
.lb2-ready ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; }
.lb2-ready li { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; padding: 3px 0; color: var(--text-secondary); }
.lb2-ready li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb2-ready li i { font-size: 12px; color: var(--border-strong, #cbd5e1); }
.lb2-ready li.ok { color: var(--text-primary); }
.lb2-ready li.ok i { color: var(--lb-ok); }
.lb2-ready li .pr-link { margin-left: auto; font-size: 12px; flex: none; }

/* ── report ── */
.lb2-miss { display: flex; gap: 8px; flex-wrap: wrap; }
.lb2-allgood { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(16,185,129,.1); color: var(--lb-ok); font-weight: 600; }
.lb2-what { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb2-what li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.lb2-what li i { width: 18px; margin-top: 3px; color: var(--lb-ac); text-align: center; flex: none; }
.lb-result p { line-height: 1.55; }
.lb-tex { max-height: 320px; overflow: auto; font-size: 11.5px; background: var(--bg-surface-2); padding: 10px; border-radius: 10px; white-space: pre-wrap; }
.lb2-done { border-color: rgba(16,185,129,.4); background: linear-gradient(160deg, rgba(16,185,129,.08), transparent 45%), var(--bg-surface); }
.lb2-done-h { display: flex; gap: 14px; align-items: flex-start; }
.lb2-done-h h3 { margin: 2px 0 4px; font-size: 19px; }
.lb2-done-h p { margin: 0; color: var(--text-secondary); line-height: 1.5; }
.lb2-done-i { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 20px rgba(16,185,129,.35); animation: lb2-pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes lb2-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb2-done-r { margin: 14px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.lb2-viva { margin-top: 16px; }
.lb2-viva h4 { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-size: 15px; }
.lb2-viva h4 i { color: var(--lb-ac); }
.lb2-viva details { border: 1px solid var(--border-default); border-radius: 12px; margin-bottom: 6px; background: var(--bg-surface); }
.lb2-viva summary { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.45; list-style: none; }
.lb2-viva summary::-webkit-details-marker { display: none; }
.lb2-viva summary span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(99,102,241,.12); color: var(--lb-ac); }
.lb2-viva details[open] summary { border-bottom: 1px dashed var(--border-default); }
.lb2-viva details p { margin: 0; padding: 10px 12px 12px 44px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

/* ── My reports drawer ── */
.lb2-ov { position: fixed; inset: 0; z-index: 1200; background: rgba(15,23,42,.45); display: flex; justify-content: flex-end; animation: lb2-fade .15s ease; }
@keyframes lb2-fade { from { opacity: 0; } }
.lb2-drawer { width: min(560px, 100%); height: 100%; overflow-y: auto; box-sizing: border-box; padding: 18px; background: var(--bg-elevated, var(--bg-surface)); box-shadow: var(--shadow-lg); animation: lb2-slide .2s ease; }
@keyframes lb2-slide { from { transform: translateX(30px); opacity: .4; } }
.lb2-dh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lb2-dh h3 { margin: 0; display: flex; gap: 9px; align-items: center; font-size: 18px; min-width: 0; }
.lb2-dh h3 i { color: var(--lb-ac); }
.lb2-rep { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--border-default); background: var(--bg-surface); margin-bottom: 10px; }
.lb2-rep .t b { display: block; font-size: 15px; }
.lb2-rep .t small { color: var(--text-secondary); font-size: 12.5px; }
.lb2-rep .res { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(16,185,129,.12); color: var(--lb-ok); font-variant-numeric: tabular-nums; }
.lb2-rep .a { display: flex; gap: 6px; flex-wrap: wrap; }
.lb2-empty { text-align: center; padding: 40px 16px; color: var(--text-secondary); }
.lb2-empty i { font-size: 34px; color: var(--lb-ac); opacity: .6; }

/* ── screens ── */
@media (max-width: 1100px) {
  .lb2-grid { grid-template-columns: minmax(0, 1fr); }
  .lb2-live { position: static; max-height: none; overflow: visible; grid-row: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lb2-live .lb2-graph { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lb2-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .lb2-hero-act { justify-content: flex-start; }
  .lb2-hero h2 { font-size: 20px; }
  .lb2-logo { width: 44px; height: 44px; font-size: 19px; border-radius: 13px; }
  .lb2-steps { top: 56px; gap: 4px; padding: 5px; }
  .lb2-steps button { flex-direction: column; gap: 3px; padding: 6px 2px; text-align: center; }
  .lb2-steps .t small { display: none; }
  .lb2-steps .t b { font-size: 12px; }
  .lb2-steps .n { width: 26px; height: 26px; font-size: 12.5px; }
  .lb2-live { grid-template-columns: minmax(0, 1fr); }
  .lb2-card { padding: 14px; border-radius: 16px; }
  .lb2-ready ul { display: none; }
  .lb2-ready .lb2-ready-h { margin-bottom: 0; }
  .lb2-nav .lb2-btn { flex: 1 1 0; }
  .lb2-row.end .lb2-btn { flex: 1 1 100%; }
  .lb2-table thead th { min-width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb2-done-i, .lb2-ov, .lb2-drawer { animation: none; }
  .lb2-btn, .lb2-fit, .lb2-ring .fg { transition: none; }
}
