@font-face{font-family:Nikosh;src:url('../fonts/Nikosh.ttf') format('truetype');font-display:swap}@font-face{font-family:SutonnyMJ;src:url('../fonts/SutonnyMJ.ttf') format('truetype');font-display:swap}
:root{--bg:#f5f7f6;--surface:#fff;--surface2:#f8faf9;--soft:#f1f5f3;--text:#1d2b26;--muted:#5d7269;--primary:#6a4ccf;--primary2:#8d58e2;--blue:#2f6fe8;--cyan:#0ca7b8;--green:#1ca46d;--pink:#d65cb3;--orange:#e58a22;--red:#e5484d;--border:#e5ece7;--shadow:0 20px 42px rgba(53,97,76,.08);--shadow2:0 12px 30px rgba(55,73,65,.08);--radius-card:16px;--radius-ctl:11px;--radius-pill:999px;--ctl-h:46px;--pad-card:16px;--gap-1:8px;--gap-2:12px;--gap-3:16px;--section-gap:14px;--shadow-card:0 1px 2px rgba(16,24,40,.05),0 6px 18px rgba(16,24,40,.05);--shadow-hover:0 2px 4px rgba(16,24,40,.06),0 12px 28px rgba(16,24,40,.10);--focus-ring:0 0 0 3px rgba(106,76,207,.16);--border-ctl:#dfe7e2;--text-2xs:.75rem;--text-xs:.8125rem;--text-sm:.875rem;--text-md:.9375rem;--text-nav:1rem;--text-base:1.0625rem;--text-lg:1.125rem;--text-xl:1.25rem;--text-2xl:1.5rem;--text-3xl:1.875rem;--text-4xl:2.0625rem;--text-display:clamp(2.25rem,4vw,3.5rem);--lh-compact:1.6;--lh-prose:1.8;--wrap-content:1260px;--wrap-home:1180px}
/* Stage G — the control layer. Every clickable or typeable box in the app takes its geometry, its face and its
   focus ring from these names, so one line here changes a button in the admin panel and a button on the
   homepage together. --ctl-h / --radius-ctl / --border-ctl stay as the primitives they are built from. */
:root{--control-height:var(--ctl-h);--control-radius:var(--radius-ctl);--control-border:1px solid var(--border-ctl);--control-pad-x:14px;--control-font:var(--text-md);
--btn-bg:#fff;--btn-fg:var(--text);--btn-primary-bg:#2dbb6a;--btn-primary-fg:#fff;--btn-accent-bg:#7a5ce8;--btn-accent-fg:#fff;--btn-danger-bg:#e5484d;--btn-danger-fg:#fff;--btn-soft-bg:#eef8f1;--btn-soft-fg:#1a7a58;--btn-soft-border:#dbeee2;--btn-ghost-fg:var(--muted);
--menu-bg:#fff;--menu-border:var(--border);--menu-radius:16px;--menu-pad:8px;--menu-item-height:38px;--menu-shadow:0 18px 40px rgba(16,24,40,.16);--control-height-sm:34px}
*{box-sizing:border-box}html,body{margin:0}html{scroll-behavior:smooth}body{background:radial-gradient(560px 280px at 100% 0%,rgba(236,72,153,.07),transparent 65%),radial-gradient(560px 280px at 0 10%,rgba(37,99,235,.06),transparent 65%),var(--bg);color:var(--text);font-family:Inter,"Noto Sans Bengali",Arial,sans-serif;font-size:var(--text-base);line-height:1.7}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.icon{width:17px;height:17px;stroke-width:2}.topbar{height:66px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:50;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:10px;font-weight:900}.logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--pink));color:#fff;box-shadow:0 7px 16px rgba(124,58,237,.28)}.logo svg{width:22px}.top-actions{display:flex;align-items:center;gap:8px}.status{padding:7px 12px;border-radius:999px;background:#e6faf1;color:#078257;border:1px solid #c8f0dd;font-size:11px;font-weight:900}.profile-pill{display:flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #e5ddff;border-radius:999px;background:#f5f1ff;font-size:12px;font-weight:800}.layout{display:flex;min-height:calc(100vh - 66px)}.sidebar{width:278px;flex:0 0 278px;background:linear-gradient(180deg,#fff,#f9fbfa);padding:16px 12px;border-right:1px solid var(--border);box-shadow:8px 0 28px rgba(31,46,39,.06);position:sticky;top:66px;height:calc(100vh - 66px);overflow:auto}.side-brand{height:54px;border-radius:14px;background:#f4f9f5;display:flex;align-items:center;justify-content:space-between;padding:0 12px;margin:0 6px 12px;border:1px solid #e6eee8}.side-brand b{font-size:13px}.best{background:linear-gradient(135deg,#18a86a,#28c47e);color:#fff;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:900}.side-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#8a9a92;font-weight:900;margin:16px 10px 7px}.side-nav{display:grid;gap:7px}.side-item{min-height:47px;border:1px solid #edf2ef;background:#fff;border-radius:12px;display:flex;align-items:center;gap:10px;padding:9px 11px;font-weight:800;font-size:12px;transition:.18s}.side-item:hover,.side-item.active{background:linear-gradient(90deg,#eefaf3,#f3f0ff);border-color:#dfe8e2;transform:translateX(2px);box-shadow:0 8px 18px rgba(91,112,101,.07)}.side-icon{width:30px;height:30px;border-radius:9px;background:#eef8f1;color:#1a7a58;display:grid;place-items:center;flex:0 0 30px}.side-item.active .side-icon{background:#e9e1ff;color:var(--primary)}.main{flex:1;min-width:0;padding:22px}.content{width:min(var(--wrap-content),100%);margin:auto}.head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:18px}.head h1{font-family:Inter,"Noto Sans Bengali",sans-serif;font-size:var(--text-4xl);line-height:1.25;margin:0}.head p{margin:6px 0 0;color:var(--muted);font-size:var(--text-md);line-height:var(--lh-compact)}.head-actions,.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:var(--control-border);background:var(--btn-bg);color:var(--btn-fg);height:var(--control-height);padding:0 var(--control-pad-x);border-radius:var(--control-radius);font-size:var(--control-font);font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.18s}.btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(40,45,80,.08)}.btn.primary,.btn.success{background:var(--btn-primary-bg);color:var(--btn-primary-fg);border-color:transparent}.btn.purple{background:var(--btn-accent-bg);color:var(--btn-accent-fg);border-color:transparent}.btn.danger{background:var(--btn-danger-bg);color:var(--btn-danger-fg);border-color:transparent}.btn.soft{background:var(--btn-soft-bg);color:var(--btn-soft-fg);border-color:var(--btn-soft-border)}.btn.ghost{background:transparent;border-color:transparent;color:var(--btn-ghost-fg)}.btn.icon-only{width:var(--control-height);padding:0;flex:0 0 var(--control-height)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.card,.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--pad-card);box-shadow:var(--shadow-card)}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.panel-title h2,.panel-title h3{margin:0;font-size:var(--text-xl);line-height:var(--lh-compact)}.stat{display:flex;gap:12px;align-items:center}
/* Item S §2: a hidden half has to be gone, not merely un-styled. The UA sheet's [hidden] rule loses to any class
   that sets display (a .form-section is display:grid, a .gr-pick is display:grid), so the attribute alone never
   hid those blocks. One rule here makes `hidden` mean hidden for every component in the app. */
[hidden]{display:none!important}
/* §79 measured at 992px: a four-column .grid gives each stat card ~158px, and the number or Bangla date in the
   text column is wider than the track. A flex item's min-width:auto would keep it at min-content and push the
   document sideways, so this column shrinks to its track and lets the one long token break instead. */
.stat>div{min-width:0;overflow-wrap:anywhere}.stat .ico{width:48px;height:48px;border-radius:13px;background:#eaf7ed;color:var(--green);display:grid;place-items:center;flex:0 0 48px}.stat small{color:#62806f;font-size:var(--text-2xs);font-weight:800}.stat strong{display:block;font-size:var(--text-3xl);line-height:1.15;margin-top:4px}.toolbar,.filter-bar{display:flex;align-items:flex-end;gap:var(--gap-2);flex-wrap:wrap;margin-bottom:var(--gap-3);padding:12px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-card)}/* Item S: `align-content:start` is what makes a row of fields parallel. A .field is its own grid, and grid's
   default align-content:stretch hands a field's leftover height (its row is as tall as the tallest sibling) to
   the space BETWEEN its label row and control row — so a 2-child field started its control 12px lower than the
   3-child field next to it. Packing the rows at the top puts every control on the same line. */
.field{display:grid;align-content:start;gap:5px;min-width:132px;flex:1}.field label{font-size:var(--text-2xs);font-weight:800;color:#536a60}.input,.select,.textarea{width:100%;border:var(--control-border);background:#fff;border-radius:var(--control-radius);padding:11px 12px;outline:none;color:var(--text)}.input,.select{height:var(--control-height);padding:0 12px;font-size:var(--control-font);line-height:1}.input::placeholder{color:#93a49c}.textarea{min-height:150px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:#8c77dd;box-shadow:var(--focus-ring)}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:14px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:820px}.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid #edf2ef;font-size:var(--text-sm);vertical-align:middle;line-height:var(--lh-compact)}.table th{background:#f8faf9;color:#587064;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:#e6faf1;color:#078257;font-size:11px;font-weight:900}.badge.pending{background:#fff6e6;color:#b26d0b}.badge.purple{background:#f0e9ff;color:#6a4ccf}.badge.red{background:#fff0f0;color:#c53b40}.passage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.passage{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--pad-card);box-shadow:var(--shadow-card);position:relative;overflow:hidden}.passage h3{margin:10px 0 6px;font-size:var(--text-base);line-height:var(--lh-compact)}.passage p{font-size:var(--text-xs);line-height:var(--lh-compact);color:var(--muted)}.meta{display:flex;gap:6px;flex-wrap:wrap}.payment-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pay{border:1px solid var(--border);border-radius:14px;padding:15px;text-align:center;background:#fff;font-weight:900;cursor:pointer}.pay.active{border-color:#8d58e2;background:#f7f2ff}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-box{background:#f8faf9;border:1px solid var(--border);border-radius:12px;padding:12px}.metric-box small{color:var(--muted);font-size:11px}.metric-box strong{display:block;font-size:20px}.notice{padding:12px 14px;border:1px solid #e7defd;background:#f7f3ff;border-radius:12px;font-size:var(--text-xs);line-height:var(--lh-prose);color:#554579}.plan{position:relative}.plan.popular:before{content:'POPULAR';position:absolute;right:14px;top:14px;background:#7a5ce8;color:#fff;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}.price{font-size:34px;font-weight:900}.muted{color:var(--muted);font-size:var(--text-xs);line-height:var(--lh-compact)}.admin-accent{border-top:4px solid #6a4ccf}.empty{text-align:center;padding:38px 20px;color:var(--muted)}.empty svg{width:38px;height:38px;color:#9a8dcc}.list{display:grid;gap:9px}.list-item{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid var(--border);border-radius:13px;background:#fff}.list-ico{width:38px;height:38px;border-radius:11px;background:#f0e9ff;color:var(--primary);display:grid;place-items:center;flex:0 0 38px}.list-item h4{margin:0 0 3px;font-size:var(--text-nav)}.list-item p{margin:0;color:var(--muted);font-size:var(--text-2xs);line-height:var(--lh-compact)}.hero-mini{padding:22px;border-radius:20px;background:linear-gradient(135deg,#effaf3,#f4f0ff);border:1px solid var(--border);margin-bottom:14px}.hero-mini h2{margin:0;font-size:var(--text-2xl);line-height:var(--lh-compact)}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.tab{display:inline-flex;align-items:center;min-height:var(--menu-item-height);padding:0 var(--control-pad-x);border:var(--control-border);border-radius:var(--radius-pill);background:var(--btn-bg);color:var(--btn-fg);font-size:var(--control-font);font-weight:800}.tab.active{background:#eaf7ed;color:#148357;border-color:#d4ecdd}.footer-note{text-align:center;color:#829087;font-size:var(--text-2xs);padding:18px}.checklist{display:grid;gap:8px;margin:12px 0}.check{display:flex;align-items:center;gap:8px;font-size:12px}.check svg{color:var(--green);width:16px}.section-gap{margin-top:14px}
.cat-highlight{display:inline-flex;flex-direction:column;gap:1px;padding:7px 13px;border-radius:12px;background:linear-gradient(135deg,#f0e9ff,#eaf7ed);border:1px solid #d9ccff;line-height:1.25}
.cat-highlight b{font-size:15px;font-weight:900;color:var(--primary);letter-spacing:.01em}
.cat-highlight em{font-style:normal;font-size:11px;font-weight:800;color:var(--muted)}
.post-short{font-size:11.5px;color:var(--muted);font-weight:700}.progress-bar{position:relative;height:8px;background:#edf2ef;border-radius:var(--radius-pill);overflow:hidden}.progress-bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:var(--progress,0%);border-radius:inherit;background:var(--bar-accent,var(--green))}
.table.compact{min-width:0}.table.compact th,.table.compact td{padding:10px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
/* Item V §1.2 — the leaderboard strip carries five figures, so it gets five tracks and stays one row on a
   desktop instead of dropping the fifth tile under the row it belongs to. */
.grid5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
@media(max-width:980px){.grid2,.grid4,.grid5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.grid2,.grid4,.grid5{grid-template-columns:1fr}}
.sub-count{font-variant-numeric:tabular-nums}.sub-count.is-low{color:#c53b40}
.chart-scroll{overflow-x:auto}
.chart{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));align-items:end;gap:6px;min-width:0;height:150px}
.chart .bar{display:grid;gap:5px;align-content:end;height:130px;min-width:0}
.chart .bar b{font-size:11px;font-weight:800;text-align:center;color:#3d4c58}
.chart .bar i{display:block;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#7a5ce8,#2dbb6a);min-height:3px}
.chart .bar span{font-size:11px;text-align:center;color:var(--muted)}
.chart .bar:hover i{filter:brightness(1.08)}
@media(max-width:620px){.chart{height:120px}.chart .bar{height:100px}.chart .bar b{font-size:11px}}
@media(max-width:980px){.sidebar{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3,.passage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:minmax(0,1fr)}}@media(max-width:620px){.main{padding:12px}.grid,.grid3,.passage-grid,.payment-methods{grid-template-columns:minmax(0,1fr)}.head{align-items:flex-start;flex-direction:column}.head h1{font-size:26px}.topbar{padding:0 10px}.brand b{display:none}}

.learning-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap-2)}.course-card{overflow:hidden;display:flex;flex-direction:column;position:relative}.course-cover{height:84px;margin:calc(var(--pad-card)*-1) calc(var(--pad-card)*-1) 12px;padding:var(--pad-card);display:flex;align-items:flex-start;justify-content:space-between;background:var(--track-tint,#eff5f2)}.course-icon{width:44px;height:44px;border-radius:12px;background:#fff;color:var(--track-accent,var(--primary));display:grid;place-items:center;box-shadow:var(--shadow-card)}.course-icon svg{width:24px}.course-card h3{margin:0 0 5px}.progress-row{display:flex;justify-content:space-between;font-size:11px;font-weight:800;color:var(--muted);margin:14px 0 6px}.roadmap{display:grid;gap:9px}.roadmap-item{display:grid;grid-template-columns:44px 38px 1fr 20px;align-items:center;gap:10px;border:1px solid var(--border);border-radius:14px;padding:11px;background:#fff}.roadmap-item.current{border-color:#bcaef0;background:#f8f5ff}.roadmap-item.locked{opacity:.58}.road-num{font-size:12px;font-weight:900;color:#83948b}.road-icon{width:36px;height:36px;border-radius:10px;background:#eef8f1;color:var(--green);display:grid;place-items:center}.roadmap-item.current .road-icon{background:#eee8ff;color:var(--primary)}.roadmap-item b,.roadmap-item small{display:block}.roadmap-item b{font-size:13px}.roadmap-item small{color:var(--muted);font-size:11px}.road-arrow{width:15px}.lesson-layout{display:grid;grid-template-columns:230px 1fr;gap:14px}.lesson-step{display:flex;align-items:center;gap:10px;padding:11px;border-radius:12px;font-size:12px}.lesson-step span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef2ef;font-weight:900}.lesson-step.active{background:#f2edff;color:var(--primary)}.lesson-step.active span{background:var(--primary);color:#fff}.lesson-content h2{font-size:25px}.key-demo{display:flex;align-items:center;justify-content:center;gap:12px;background:#f8faf9;border:1px solid var(--border);border-radius:16px;padding:30px;margin:20px 0}.key-demo kbd,.keyboard-hint kbd{padding:9px 14px;border:1px solid #ccd7d0;border-bottom-width:4px;border-radius:9px;background:#fff;font-weight:900}.practice-shell{background:#fff;border:1px solid var(--border);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.practice-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#f8faf9;border:1px solid var(--border);border-radius:12px;padding:10px 14px;font-size:11px}.practice-text{font-size:25px;line-height:2;padding:24px 20px;border:1px solid var(--border);border-radius:14px;margin:14px 0;background:#fbfcfb}.nikosh{font-family:Nikosh,"Noto Sans Bengali",sans-serif}.sutonny{font-family:SutonnyMJ,sans-serif}.times{font-family:"Times New Roman",serif}.practice-input{width:100%;min-height:170px;border:2px solid #dfe7e2;border-radius:14px;padding:18px;font-size:23px;line-height:1.8;outline:none}.practice-input:focus{border-color:#8d58e2;box-shadow:0 0 0 4px rgba(106,76,207,.08)}.typed{color:#1a8d60}.current-char{background:#e9ddff;color:#5e3fc1}.keyboard-hint{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;font-size:11px}.practice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:var(--gap-2)}.practice-card{display:flex;align-items:center;gap:11px;border:1px solid var(--border);border-radius:var(--radius-card);padding:13px 14px;background:var(--surface);box-shadow:var(--shadow-card);transition:.18s}.practice-card .p-ico{width:38px;height:38px;border-radius:11px;background:var(--track-tint,#f1f5f3);color:var(--track-accent,var(--primary));display:grid;place-items:center;flex:0 0 38px}.practice-card .p-ico svg{width:19px}.practice-card b{display:block;font-size:13px}.practice-card small{color:var(--muted)}.practice-card .p-arrow{margin-left:auto;color:#9aa8a1;flex:0 0 18px;transition:.18s}.practice-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-hover);border-color:#d7e2db}.practice-card:hover .p-arrow{color:var(--track-accent,var(--primary))}.practice-card:focus-visible{outline:2px solid var(--track-accent,var(--primary));outline-offset:2px}.drill-target{text-align:center;padding:30px;border-radius:var(--radius-card);background:var(--soft)}.drill-target svg{width:34px;color:var(--primary)}.drill-target span{display:block;font-size:11px;color:var(--muted);margin:7px}.drill-target strong{font-size:25px}.progress-list{display:grid;gap:16px}.progress-list>div{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px}.progress-list .progress-bar{grid-column:1/-1}.timeline>div{position:relative;padding:5px 0 20px 30px;border-left:2px solid #e8eee9;margin-left:7px}.timeline-dot{position:absolute;left:-7px;top:7px;width:12px;height:12px;border-radius:50%;background:var(--primary);border:3px solid #eee8ff}.timeline b,.timeline small{display:block}.timeline small{color:var(--muted);font-size:11px}@media(max-width:980px){.learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-layout{grid-template-columns:1fr}}@media(max-width:620px){.learning-grid{grid-template-columns:minmax(0,1fr)}.practice-text{font-size:20px}.practice-input{font-size:19px}.roadmap-item{grid-template-columns:36px 32px 1fr}.road-arrow{display:none}}

/* ===== Polish layer: usability, accessibility, responsive ===== */
:focus-visible{outline:3px solid rgba(106,76,207,.55);outline-offset:2px;border-radius:8px}
.skip-link{position:absolute;left:12px;top:-60px;z-index:200;background:#1d2b26;color:#fff;padding:10px 14px;border-radius:10px;font-weight:800;font-size:13px;transition:top .15s}
.skip-link:focus{top:10px}
.badge{font-size:11px;padding:5px 10px}.status{font-size:11px}.best{font-size:11px}.side-label{font-size:11px}
.side-item{font-size:var(--text-nav)}.btn{font-size:var(--control-font);min-height:var(--control-height)}.field label{font-size:var(--text-2xs);font-weight:800;color:var(--muted);letter-spacing:.01em}
.table th{font-size:11px;text-transform:none;letter-spacing:.02em;position:sticky;top:0;z-index:1}.table td{font-size:13px}
.table tbody tr:hover td{background:#faf9ff}
.stat small,.metric-box small,.muted,.practice-top,.progress-row,.roadmap-item small,.timeline small,.practice-card small,.list-item p,.keyboard-hint,.footer-note,.drill-target span{font-size:12px}
.list-item h4,.roadmap-item b{font-size:14px}
.btn[disabled],.btn[aria-disabled=true]{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.menu-btn{display:none;width:42px;height:42px;border:1px solid var(--border);background:#fff;border-radius:11px;align-items:center;justify-content:center;cursor:pointer;margin-right:8px}
.scrim{position:fixed;inset:0;background:rgba(20,26,24,.45);z-index:59;opacity:0;pointer-events:none;transition:opacity .2s}
.scrim.show{opacity:1;pointer-events:auto}
@media(max-width:980px){
 .menu-btn{display:inline-flex}
 .topbar{justify-content:flex-start}.topbar .top-actions{margin-left:auto}
 .sidebar{display:block;position:fixed;left:0;top:0;height:100vh;z-index:60;transform:translateX(-105%);transition:transform .22s ease;width:min(300px,86vw)}
 .sidebar.open{transform:none}
}
/* Sidebar rail toggle — an icon docked in the sidebar title row; desktop collapse/expand only, the ≤980px drawer is unaffected. */
.side-brand{gap:7px;padding:0 8px 0 12px}
.side-brand>b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-collapse{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:1px solid #e6eee8;border-radius:10px;background:#fff;color:#3c4f46;cursor:pointer;transition:.18s}
.side-collapse:hover{border-color:#d8e2db;background:#f6faf7}
.side-collapse:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.side-collapse .ic-wide,.side-collapse .ic-rail{display:inline-flex;line-height:0}
.side-collapse svg{width:16px;height:16px}
.side-collapse .ic-rail{display:none}
@media(min-width:981px){
 .sidebar{transition:width .18s ease,flex-basis .18s ease}
 .sidebar.collapsed{width:82px;flex:0 0 82px;padding:16px 9px}
 .sidebar.collapsed .side-brand{justify-content:center;padding:0;gap:0;margin:0 0 12px}
 .sidebar.collapsed .side-brand>b,.sidebar.collapsed .best,.sidebar.collapsed .side-label,
 .sidebar.collapsed .side-item>span:not(.side-icon){display:none}
 .sidebar.collapsed .side-collapse .ic-wide{display:none}
 .sidebar.collapsed .side-collapse .ic-rail{display:inline-flex}
 .sidebar.collapsed .side-item,.sidebar.collapsed .side-item:hover{justify-content:center;gap:0;padding:8px;transform:none}
}
@media(max-width:980px){.side-collapse{display:none}}
/* Item L-B (Attachment C §1/§28): the user rail is six labelled sections now, so a heading must read as a quiet
   divider rather than a second menu, the first one hugs the brand row, and a long item label wraps inside its own
   box instead of pushing the items below it out of the drawer. */
.side-label{margin:14px 10px 6px}
nav[aria-label="সাইডবার"]>.side-label:first-of-type{margin-top:2px}
.side-item>span:not(.side-icon){min-width:0;line-height:1.35;overflow-wrap:break-word}
@media(max-width:980px){
 .sidebar{padding:14px 12px 22px;overscroll-behavior:contain}
 body.nav-open{overflow:hidden}
}
/* Revision §4/§5 — one rail, two audiences. The member rail and the operator rail already share the partial, the
   typography tokens and these rules, so the only deliberate difference is the ADMIN chip in the brand row. The
   background is a soft green-grey surface rather than a second white panel, items sit flush on it instead of each
   floating in its own white card, and the active entry carries a tint plus a short left indicator. */
.sidebar{background:#f2f6f4;border-right:1px solid #dfe7e2;box-shadow:none}
.side-brand{background:#eaf1ec;border-color:#dde7e0}
.side-collapse{background:#fff;border-color:#dbe6de}
.side-label{color:#7d8f86}
.side-item{border-color:transparent;background:transparent;box-shadow:none;padding:9px 11px}
.side-item:hover{background:#e7efe9;border-color:transparent;transform:none;box-shadow:none}
.side-item.active{background:#e4f1e8;border-color:transparent;transform:none;box-shadow:none;position:relative}
.side-item.active:before{content:"";position:absolute;left:-2px;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--green)}
.side-item.active>span:not(.side-icon){color:#14503a;font-weight:900}
.side-icon{background:#e3ece7;color:#3c6153}
.side-item:hover .side-icon{background:#dceae1;color:#2e7a58}
/* §3 accordion — a category opens with its rows sliding out from under the button, and closes the category that
   was open before it. grid-template-rows is the shortest way to animate an unknown height; the inner wrapper is
   hidden rather than merely squashed so a closed section never takes keyboard focus. */
.side-group{margin:0}
.side-parent{width:100%;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 11px;border:0;border-radius:12px;
  background:transparent;color:#3f534a;font-size:var(--text-nav);font-weight:900;cursor:pointer;text-align:left;transition:background .16s ease}
.side-parent:hover{background:#e7efe9}
.side-parent:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.side-parent>span{min-width:0;line-height:1.35;overflow-wrap:break-word}
.side-fold{width:15px;height:15px;flex:0 0 15px;margin-left:auto;color:#8aa096;transition:transform .18s ease}
.side-group.open .side-fold{transform:rotate(180deg)}
.side-group.open>.side-parent{color:#14503a}
.side-sub{display:grid;grid-template-rows:0fr;transition:grid-template-rows .18s ease}
.side-group.open .side-sub{grid-template-rows:1fr}
.side-sub>.side-nav{overflow:hidden;min-height:0}
.side-group:not(.open) .side-nav{visibility:hidden}
.side-group .side-nav{padding-left:12px;margin:2px 0 4px;border-left:1px solid #dce6df}
@media(min-width:981px){
 .sidebar.collapsed .side-parent{display:none}
 .sidebar.collapsed .side-sub{grid-template-rows:1fr}
 .sidebar.collapsed .side-group:not(.open) .side-nav{visibility:visible}
 .sidebar.collapsed .side-group .side-nav{padding-left:0;border-left:0;margin:0}
}
@media(max-width:980px){
 .sidebar{background:#f2f6f4}
 .side-parent{min-height:46px}
}
/* Revision §6–§11 — the admin console as a control centre. The KPI tiles are the same .card.stat family the member
   dashboard already uses (so §4's one design system holds), quick actions are one quiet strip rather than a wall of
   buttons, and an empty attention list is a compact line instead of a tall empty box. */
.ad-kpi{color:inherit;transition:transform .16s ease,box-shadow .16s ease}
.ad-kpi:hover{transform:translateY(-1px);box-shadow:var(--shadow-hover)}
.ad-kpi:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.ad-course-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ad-course-row b{font-size:var(--text-lg)}
.ad-course-row .muted{margin-right:auto}
.ad-quick{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ad-more{position:relative}
.ad-more>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;height:var(--control-height);
  padding:0 var(--control-pad-x);border:var(--control-border);border-radius:var(--control-radius);
  background:var(--btn-bg);font-size:var(--control-font);font-weight:800;cursor:pointer}
.ad-more>summary::-webkit-details-marker{display:none}
.ad-more svg{width:15px;height:15px}
.ad-more[open]>summary svg{transform:rotate(180deg)}
.ad-more>div{position:absolute;right:0;top:calc(100% + 6px);z-index:40;display:grid;gap:2px;min-width:230px;
  padding:var(--menu-pad);border:1px solid var(--menu-border);border-radius:var(--menu-radius);
  background:var(--menu-bg);box-shadow:var(--menu-shadow)}
.ad-more>div a{display:flex;align-items:center;gap:8px;min-height:var(--menu-item-height);padding:0 10px;
  border-radius:9px;font-size:var(--text-md);font-weight:800;color:var(--text)}
.ad-more>div a:hover{background:var(--soft)}
.ad-clear{display:flex;align-items:center;gap:9px;padding:14px;border-radius:12px;background:#f1f6f3;
  border:1px solid #e2ece5;color:#3f534a;font-size:var(--text-md);font-weight:800;line-height:var(--lh-compact)}
.ad-clear svg{width:18px;color:var(--green);flex:0 0 18px}
.list-ico.ad-pending{background:#fff6e6;color:#b26d0b}
.list-ico.ad-live{background:#e6faf1;color:#078257}
.ad-exam-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0 0;
  color:var(--muted);font-size:var(--text-sm);font-weight:800;line-height:var(--lh-compact)}
.ad-exam-foot svg{width:15px}
@media(max-width:620px){.ad-quick .btn{flex:1 1 100%}.ad-more{width:100%}.ad-more>summary{width:100%;justify-content:center}
 .ad-more>div{position:static;width:100%;box-shadow:none;margin-top:6px}}
/* Admin passage editor — raw representation shown in its own rendering font, no conversion. */
.psg-preview{min-height:120px;max-height:340px;overflow:auto;border:1px dashed #cdd8d1;border-radius:12px;padding:14px 16px;background:#fbfcfb;font-size:18px;line-height:1.9;white-space:pre-wrap;text-align:justify;color:var(--text)}
/* The shared admin text field (ADDITIONAL MANDATORY §12–§16): the encoding question, the live preview and the
   font-readiness line are one block, so every Bangla body in the panel asks for its representation the same way. */
.txt-encRow{display:flex;align-items:center;gap:10px;margin:2px 0 8px}
.txt-encLabel{font-size:var(--text-xs);font-weight:800;color:var(--muted);white-space:nowrap}
.txt-encRow .select{max-width:360px;flex:1 1 360px;min-width:0}
.txt-pvLabel{font-size:var(--text-xs);font-weight:800;color:var(--muted)}
.txt-labelRow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:2px}
.txt-field textarea{margin-bottom:10px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:var(--muted);margin-bottom:10px}
.crumbs a{color:#5b44b3;font-weight:700}.crumbs a:hover{text-decoration:underline}.crumbs svg{width:13px;height:13px}
.field .hint{font-size:11.5px;color:var(--muted)}
.field .req{color:var(--red)}
/* Item S: a Bengali label's box is taller than its text — measured on the live forms, "সময়কাল *" reserved 41px for a
   single line while "ক্রম" reserved 19px, because the inherited line-height multiplies the font's conjunct metrics.
   Two fields sharing a row therefore started their inputs 12–22px apart, which is what the owner saw on the group
   builder and the payment page. An explicit line-height states the band once for the whole family: a one-line label
   is 1.7×its own 11px font (measured 19px) whatever the word is, so every control in the row starts on the same
   line — and unlike a fixed height, a label that genuinely has to wrap at a narrow phone width still grows to two
   lines instead of spilling onto the control (measured at 390px before this: 16px of ink over the edge). */
.field>label:not(.check){line-height:1.7}
/* item I §51: the registration consent line — always visible, never a pre-checked box. */
.auth-consent{margin:14px 0 0;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:#faf9ff;color:var(--muted);font-size:12px;line-height:1.6}
.auth-consent a{color:var(--primary);font-weight:800;text-decoration:underline}
.pw-wrap{position:relative}.pw-wrap .input{padding-right:44px}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;border-radius:9px;cursor:pointer;color:#6b7d74;display:grid;place-items:center}
.pw-toggle:hover{background:#f1f5f3}
.toast-host{position:fixed;right:16px;bottom:16px;z-index:300;display:grid;gap:8px}
.toast{background:#1d2b26;color:#fff;padding:11px 14px;border-radius:12px;font-size:13px;font-weight:700;box-shadow:0 14px 30px rgba(0,0,0,.2);max-width:340px}
/* Item Q §1: a toast says whether it confirms or refuses — the same two verdicts the form's own buttons use. */
.toast.ok{background:#0f7a55}.toast.bad{background:#b23b3f}
.empty-state{display:none;text-align:center;padding:34px 18px;border:1px dashed #d4dcd7;border-radius:16px;background:#fff;color:var(--muted);margin-top:12px}
.empty-state.show{display:block}.empty-state b{display:block;color:var(--text);margin-bottom:4px}
.lib-summary{margin:14px 0 0}
/* practice live feedback */
.practice-text .c-ok{color:#168a5c}.practice-text .c-bad{color:#c53b40;background:#fdecec;text-decoration:underline wavy #e5484d}.practice-text .c-miss{color:#8d9aa4;background:#f1f4f6;text-decoration:underline dashed #b9c4cc;text-underline-offset:3px}.practice-text .c-cur{background:#e9ddff;color:#5e3fc1;border-radius:4px}
.practice-line{display:block;min-height:1em}
.practice-input:disabled{background:#f4f6f5;cursor:not-allowed}
.start-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 12px;padding:12px 14px;border:1px solid #e7defd;background:#f7f3ff;border-radius:12px;font-size:13px;color:#554579}
.progress-slim{height:6px;background:#edf2ef;border-radius:99px;overflow:hidden;margin:10px 0 0}.progress-slim span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2dbb6a,#7a5ce8);transition:width .15s}
/* result verdict + diff */
.verdict{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;font-weight:900;font-size:18px;margin:10px 0}
.verdict.pass{background:#e6faf1;color:#07704a;border:1px solid #bfeed6}.verdict.fail{background:#fff0f0;color:#b3282d;border:1px solid #f6c9ca}
.verdict small{display:block;font-size:12px;font-weight:600;opacity:.85}
.verdict{align-items:flex-start}
.verdict>svg,.verdict>i{width:26px;height:26px;margin-top:2px;flex:0 0 26px}
.verdict-body{flex:1;min-width:0}
.verdict .reason-list{margin-top:10px}
.verdict .reason-list li{align-items:flex-start;font-weight:700}
.verdict .reason-list li>svg,.verdict .reason-list li>i{margin-top:1px}
.verdict .reason-list li span{display:block;min-width:0;line-height:1.5}
.verdict .reason-list li em{display:block;font-style:normal;font-size:11.5px;font-weight:600;opacity:.8;margin-top:2px}
.verdict .code{display:inline-block;margin-left:6px;font:700 10px/1.4 ui-monospace,Consolas,monospace;letter-spacing:.03em;background:rgba(179,40,45,.09);border:1px solid rgba(179,40,45,.18);border-radius:6px;padding:2px 6px;vertical-align:1px}
/* the fail card is itself red-tinted, so its reason rows flip to white to stay legible */
.verdict.fail .reason-list li.fatal{background:#fff;border-color:#f2c4c5}
/* The result card is ONE panel: identity strip on top, verdict + key figures below.
   align-items:start and no height/min-height anywhere — the card is only as tall as its own content.
   PASS 16 moved the giant number from accuracy to the পাশ/ফেল verdict; colour now carries the
   meaning of each criterion, so the accuracy figure may be green/red only for its own threshold. */
.result-summary{padding:18px}
.diff{font-size:17px;line-height:1.95;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:#fff;max-height:min(58vh,520px);min-height:180px;overflow:auto;white-space:pre-wrap;word-break:break-word;scrollbar-gutter:stable}
/* Terms & Conditions page (item G §35–§39) — a readable legal column, not a dashboard. */
.termsIntro{margin:0 0 14px;color:#41504a;font-size:var(--text-base);line-height:var(--lh-prose);text-align:justify;text-justify:inter-word}
.termsList{list-style:none;counter-reset:terms;margin:0;padding:0;display:grid;gap:10px;max-width:1120px}
.termsItem{counter-increment:terms;position:relative;padding:13px 15px 13px 46px;border:1px solid var(--border);border-radius:13px;background:#fff}
.termsItem:before{content:counter(terms,decimal-leading-zero);position:absolute;left:15px;top:14px;font-size:11px;font-weight:900;color:#b3a9cc;letter-spacing:.4px}
.termsH{margin:0 0 6px;font-size:var(--text-lg);line-height:1.4}
.termsP{margin:0;color:#3d4a44;font-size:var(--text-base);line-height:var(--lh-prose);text-align:justify;text-justify:inter-word;overflow-wrap:anywhere}
.termsOutro{margin:16px 0 0;color:var(--muted);font-size:var(--text-sm)}
.termsOutro a{color:var(--primary);font-weight:800}
/* item I §14: the privacy sibling of the same family — last-updated line, contents, anchored sections, support CTA. */
.termsUpdated{display:flex;align-items:center;gap:7px;margin:0 0 8px;color:var(--muted);font-size:var(--text-sm);font-weight:700}
.termsUpdated .lucide,.termsUpdated i{width:15px;height:15px;color:var(--primary)}
.termsToc{margin:0 0 16px;padding:13px 15px;border:1px solid var(--border);border-radius:13px;background:#faf9ff}
.termsTocLabel{display:flex;align-items:center;gap:7px;margin:0 0 9px;font-size:var(--text-md);font-weight:900;color:#4b3f66}
.termsTocLabel .lucide,.termsTocLabel i{width:16px;height:16px;color:var(--primary)}
.termsTocList{margin:0;padding:0;list-style:none;counter-reset:toc;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px 18px}
.termsTocList li{counter-increment:toc;min-width:0}
.termsTocList a{display:flex;gap:7px;align-items:baseline;color:#4b5563;font-size:var(--text-sm);text-decoration:none;border-radius:8px;padding:2px 4px}
.termsTocList a:before{content:counter(toc,decimal-leading-zero);flex:0 0 auto;font-size:11px;font-weight:900;color:#b3a9cc}
.termsTocList a:hover,.termsTocList a:focus-visible{color:var(--primary);background:#fff;text-decoration:underline}
.termsItem{scroll-margin-top:84px}
.termsItem:target{border-color:var(--primary);box-shadow:0 0 0 2px rgba(124,92,191,.16)}
.termsCta{margin:12px 0 0}
/* privacy page: six titled parts, each holding its own numbered articles */
.termsDoc{counter-reset:terms;max-width:1120px}
.termsGroup{counter-increment:termsgroup;margin:0 0 20px;scroll-margin-top:84px}
.termsGroupH{display:flex;align-items:baseline;gap:9px;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid var(--border);font-size:var(--text-xl);font-weight:900;color:#4b3f66;letter-spacing:.1px}
.termsGroupH:before{content:counter(termsgroup,decimal-leading-zero);flex:0 0 auto;font-size:11px;font-weight:900;color:#b3a9cc;letter-spacing:.4px}
.termsGroupList{counter-reset:none;max-width:none}
.termsTocList{counter-reset:tocgroup}
.termsTocGroups{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px 22px}
.termsTocGroup{counter-increment:tocgroup;min-width:0}
.termsTocGroupA{display:flex;align-items:baseline;gap:7px;padding:0 4px 6px;border-bottom:1px solid var(--border);font-size:var(--text-sm);font-weight:900;color:#4b3f66;text-decoration:none}
.termsTocGroupA:before{content:counter(tocgroup,decimal-leading-zero);flex:0 0 auto;font-size:11px;font-weight:900;color:#b3a9cc}
.termsTocGroupA:hover,.termsTocGroupA:focus-visible{color:var(--primary);text-decoration:underline}
.termsTocSub{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:1px}
.termsTocSub a:before{content:none}
.termsTocSub a{padding:2px 4px 2px 13px;font-size:var(--text-xs)}
@media(max-width:600px){.termsItem{padding:12px 13px 12px 40px}.termsItem:before{left:13px;top:13px}.termsP{font-size:15px;text-align:left}.termsIntro{font-size:15px;text-align:left}
  /* §39/§40 heading hierarchy: the part title may shrink with the page, but never below the article body it
     introduces — 13px against a 15px paragraph reads as a label, not as a heading. */
  .termsTocList{grid-template-columns:minmax(0,1fr)}.termsGroupH{font-size:var(--text-base);letter-spacing:0}}
.d-run{display:block}
/* §17/§28 a document, not a debug view: position numbers are metadata on the element, painted only
   when অবস্থান নম্বর দেখান is checked (see .cmp:has(#cmpNums:checked)). */
.d-ok{color:#1d2b26}.d-wrong{color:#d12b31;text-decoration:underline;text-decoration-color:#d12b31;text-decoration-thickness:2px;text-underline-offset:3px;background:#fff1f1;border-radius:3px}
/* Item T result spec (owner 2026-11-03): the two columns read as a pair. On the typed side a word that is wrong OR
   extra is a fault, so both wear the same red underline as .d-wrong. On the original side the word the member got
   wrong (.d-wrong-src) and the word they skipped in the middle (.d-miss) are both the CORRECT text they should have
   typed, so both wear a green underline — the member sees, in green, exactly what was missed or mistyped. */
.d-miss{color:#12704a;background:#e9f7f0;border-bottom:2px solid #1CA46D;border-radius:3px}.d-extra{color:#d12b31;background:#fff1f1;border-bottom:2px solid #d12b31;border-radius:3px}
.d-wrong-src{color:#12704a;background:#e9f7f0;border-bottom:2px solid #1CA46D;border-radius:3px}
.d-gap{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.02em;color:#9c3d40;background:#fdf6f6;border:1px dashed #dfa0a3;border-radius:6px;padding:1px 7px;font-style:normal;vertical-align:baseline}
/* §19/§20 the tail the candidate never reached is muted plain text: no chips, no marker, no fault. */
.d-unattempted{color:#a7b2bb}
.d-spc{border-bottom:2px dotted #b4700a;background:#fff4d6;border-radius:3px}
.d-ds{font-style:normal;font-weight:900;letter-spacing:.06em;color:#b4700a;background:#fff4d6;border-radius:4px;padding:0 3px;font-size:12px;vertical-align:.1em}
/* §26 the strict-sequence boundary is stated once, as a divider carrying its own reason. */
.d-break{display:inline-flex;align-items:center;gap:10px;width:100%;margin:8px 0;font-size:11.5px;font-weight:800;color:#b3282d;text-align:left}
.d-break i{flex:1 1 0;height:1px;background:repeating-linear-gradient(90deg,#f0b9bb 0 8px,transparent 8px 14px)}
.cmp-ctx{display:none;grid-column:1/-1}
.cmp-ctx .ec-none{margin:0;font-size:12.5px}
.ec-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ec-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px;border:1px solid var(--border);border-radius:10px;background:#fbfcfb;padding:9px 12px}
.ec-list .ec-why{flex:0 0 auto;font-size:11px;font-weight:900;letter-spacing:.03em;color:#b3282d;background:#fff0f0;border:1px solid #f6c9ca;border-radius:999px;padding:3px 9px}
.ec-list .ec-line{flex:1 1 260px;min-width:0;font-size:15.5px;line-height:1.85;text-align:left}
.legend{display:flex;gap:8px 18px;flex-wrap:wrap;align-items:center;font-size:12px;margin:0 0 12px;padding:9px 13px;background:var(--surface2);border:1px solid var(--border);border-radius:12px}
.legend .lg-title{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:900;letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.legend .lg-item{display:inline-flex;gap:7px;align-items:center}
.legend .lg-item b{font-weight:800;font-size:12px;color:var(--text)}
.legend .lg-item em{font-style:normal;font-size:11px;color:var(--muted)}
.legend .sw{width:13px;height:13px;border-radius:4px;flex:0 0 13px}
.legend .sw-ok{background:#eaf6ef;border:1px solid #b9dfc6}
.legend .sw-wrong{background:#fff1f1;border-bottom:2px solid #d12b31}
.legend .sw-miss{background:#e9f7f0;border-bottom:2px solid #1CA46D}
.legend .sw-extra{background:#fff1f1;border-bottom:2px solid #d12b31}
.legend .sw-line{background:#fff0f0;border-left:3px solid #d98a8d}
.legend .sw-unattempted{background:#f6f8fa;border:1px solid #dfe6ea}
.legend .sw-space{background:#fff4d6;border-bottom:2px dotted #b4700a}
.legend .sw-num{background:#f4f7f9;border:1px solid #d7e0e5;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;color:#93a1ab}
.legend .sw-num::after{content:'12'}
@media(max-width:720px){.legend .lg-item em{display:none}}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width:980px){.cmp{grid-template-columns:1fr}}
.cmp-tools{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 16px;justify-content:flex-end;margin:0 0 -4px}
.cmp-tools label{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:800;color:var(--muted);cursor:pointer;user-select:none}
.cmp-tools input{width:14px;height:14px;accent-color:var(--primary);cursor:pointer}
/* §29 the two optional views are pure CSS toggles: position numbers are off by default, and
   "শুধু ত্রুটি দেখান" swaps the two full columns for the compact error-context list (§32). */
.cmp:has(#cmpNums:checked) .diff [data-i]::before{content:attr(data-i);font-size:11px;font-weight:800;color:#9aa8b1;margin-right:3px;vertical-align:.35em;font-variant-numeric:tabular-nums}
.cmp:has(#cmpFocus:checked) .cmp-col{display:none}
.cmp:has(#cmpFocus:checked) .cmp-ctx{display:block}
.cmp-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 8px;padding-bottom:7px;border-bottom:1px solid var(--border)}
.cmp-head b{font-size:14px;font-weight:900}
.cmp-head small{font-size:11px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.cmp-note{margin:10px 0 0;font-size:12px;line-height:1.65}
.rule-table{width:100%;border-collapse:collapse;font-size:13px}.rule-table td{padding:9px 10px;border-bottom:1px solid #edf2ef}.rule-table td:first-child{color:var(--muted);width:46%}
/* dialog */
dialog.post-dialog{border:0;border-radius:20px;padding:0;width:min(560px,94vw);box-shadow:0 30px 80px rgba(30,20,70,.3)}
dialog.post-dialog::backdrop{background:rgba(20,26,24,.5)}
.pd-head{padding:18px 20px;border-bottom:1px solid var(--border)}.pd-head h2{margin:0;font-size:19px}.pd-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.pd-body{padding:16px 20px;display:grid;gap:10px}.pd-foot{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.pd-opt{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:14px;padding:13px;cursor:pointer}
.pd-opt:has(input:checked){border-color:#8d58e2;background:#f7f2ff}.pd-opt b{display:block;font-size:14px}.pd-opt small{color:var(--muted);font-size:12px}
.pd-opt input{margin-top:4px;accent-color:#6a4ccf}
/* GLOBAL FOOTER + PAGE SHELL (item G §47–§50) — the shell is a column, main and content take the slack, and the footer
   stays ordinary document flow at the bottom: it can neither float up a short page nor overlap content. */
body.shell{min-height:100vh;display:flex;flex-direction:column}
body.shell>.layout,body.shell>.main{flex:1 1 auto}
.main{display:flex;flex-direction:column}
.content{flex:1;display:flex;flex-direction:column;margin:0 auto}
.pageWrap{width:min(1200px,100%);margin:0 auto;padding:22px;flex:1;display:flex;flex-direction:column}
/* Item V §2 — a light, calm band: pale mint ground, type a step larger than the shell's small print, three columns
   (owner 2026-11-04 dropped প্রস্তুতি ও সহায়তা so the band stays short), then the social cards, then the original legal
   line. The columns are one grid so the bands stay level at every width, and every track is minmax(0,1fr): a long
   Bangla label can never push the row off the monitor. */
.site-footer{margin-top:auto;background:#eff6f1;border-top:1px solid #dbe9e0;padding:0 0 8px;font-size:14px;color:#4f6157}
.sfInner{width:min(1200px,100%);margin:0 auto;padding:26px 22px 0}
.sfCols{display:grid;grid-template-columns:minmax(0,2.2fr) repeat(2,minmax(0,1fr)) minmax(0,1.25fr);gap:30px;align-items:start}
.sfBrand{min-width:0}
.sfLogo{display:inline-flex;align-items:center;gap:9px;font-size:18px;font-weight:900;color:#16241e}
.sfLogo .logo{width:38px;height:38px;border-radius:11px}
.sfLogo .logo svg{width:20px}
.sfIntro{margin:12px 0 0;line-height:1.75;color:#3f5348;font-size:15px;text-align:justify;hyphens:auto}
.sfPurpose{margin:10px 0 0;color:#5c6f66;font-size:14px;line-height:1.65}
.sfTag{margin:10px 0 0;font-weight:800;color:var(--primary);font-size:14.5px}
.sfCol{min-width:0}
.sfColTitle{margin:0 0 13px;font-size:16px;font-weight:900;color:#16241e;letter-spacing:.2px}
.sfCol ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.sfCol a{color:#3f5348;font-size:15px;line-height:1.55;text-decoration:none;transition:.14s}
.sfCol a:hover{color:var(--primary)}
.sfSocial{margin:0;padding:0;border:0;min-width:0}
.sfSocialEmpty{margin:0;color:#5c6f66;font-size:14px;line-height:1.6}
.sfSocialTitle{margin:0 0 12px;font-size:16px;font-weight:900;color:#16241e;display:flex;align-items:center;gap:8px}
.sfSocialList{list-style:none;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
.sfSocialItem{display:flex;min-width:0}
.sfSocialLink{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:14px;
  border:1px solid #dce9e1;background:#fff;box-shadow:0 3px 10px rgba(31,46,39,.05);transition:.16s}
.sfSocialLink:hover{transform:translateY(-2px);border-color:#b9d8c6;box-shadow:0 9px 20px rgba(31,46,39,.10)}
.sfSocialLink:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.sfSocialIco{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:var(--social-tint,var(--primary));color:#fff}
.sfSocialIco svg{width:20px;height:20px;display:block}
.sfSocialText{display:grid;gap:1px;min-width:0}
.sfSocialText b{font-size:15px;font-weight:900;line-height:1.3;color:#16241e}
.sfSocialText small{font-size:13.5px;line-height:1.45;color:#5c6f66;overflow-wrap:anywhere}
.sfBar{margin-top:22px;padding-top:16px;border-top:1px solid #dce9e1;display:grid;grid-template-columns:1fr auto minmax(0,1fr);align-items:center;gap:12px;font-size:14px;color:#5c6f66}
.site-footer .sfCopy{text-align:center;white-space:nowrap}
.site-footer .sfLinks{justify-self:end;display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.site-footer a:hover{color:var(--primary);text-decoration:underline}
@media(max-width:1000px){.sfCols{grid-template-columns:repeat(2,minmax(0,1fr))}.sfBrand{grid-column:1/-1}}
@media(max-width:900px){.sfCols{gap:22px}}
@media(max-width:640px){.sfInner{padding:20px 14px 0}.sfSocialLink{padding:11px;gap:9px}}
@media(max-width:620px){.pageWrap{padding:12px}.sfCols{grid-template-columns:minmax(0,1fr)}.sfBar{grid-template-columns:minmax(0,1fr);justify-items:center;gap:8px;text-align:center}.site-footer .sfLinks{justify-self:center;justify-content:center}.site-footer .sfCopy{white-space:normal}.sfIntro{text-align:justify}}
.dir-group{margin-top:22px}.dir-group h2{font-size:18px;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.dir-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.dir-card{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:14px;background:#fff;font-weight:800;font-size:13px;transition:.15s}
.dir-card:hover{border-color:#bcaef0;background:#faf8ff}.dir-card small{display:block;color:var(--muted);font-weight:500;font-size:11px}
.dir-card .list-ico{width:34px;height:34px;flex:0 0 34px}
@media print{.topbar,.sidebar,.menu-btn,.actions,.head-actions,.skip-link,.toast-host,.cmp-tools,.cmp-ctx{display:none!important}.main{padding:0}.card,.panel{box-shadow:none}.diff{max-height:none;overflow:visible}}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* SweetAlert2 design-system skin (§7) */
.qs-popup{font-family:Inter,"Noto Sans Bengali",sans-serif!important;border-radius:20px!important;padding:26px 24px!important;box-shadow:0 24px 60px rgba(16,24,40,.24)!important}
.qs-title{font-weight:800!important;font-size:19px!important;color:#16241e!important}
.qs-text{color:#4d5a54!important;font-size:14px!important}
.qs-actions{gap:10px!important;margin-top:20px!important}
.qs-btn{border:none;border-radius:12px;padding:11px 20px;font-weight:800;font-size:14px;cursor:pointer;transition:transform .12s ease,filter .12s ease}
.qs-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.qs-btn-primary{background:linear-gradient(135deg,#6a4ccf,#7c3aed);color:#fff}
.qs-btn-danger{background:linear-gradient(135deg,#e5484d,#d12b31);color:#fff}
.qs-btn-ghost{background:#eef2ef;color:#344054}
.swal2-container{z-index:10000!important}
/* shared avatar + account dropdown (§33/§34) */
.avatar{display:inline-grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#6a4ccf,#7c3aed);color:#fff;font-weight:800;overflow:hidden;flex:0 0 auto;line-height:1}
.avatar-img{background:#eef2ef}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.lb-user{display:flex;align-items:center;gap:9px;min-width:0}.lb-user b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct{position:relative}
.acct-btn{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--border);border-radius:999px;padding:4px 10px 4px 4px;cursor:pointer}
.acct-btn:hover{border-color:#c9cfd8}
.acct-meta{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.acct-meta b{font-size:13px;color:#16241e}.acct-meta small{font-size:11px;color:var(--muted)}
.acct-btn .acct-caret{width:16px;color:var(--muted);flex:0 0 16px;transition:transform .18s ease}
.acct-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:260px;background:var(--menu-bg);border:1px solid var(--menu-border);border-radius:var(--menu-radius);box-shadow:var(--menu-shadow);padding:var(--menu-pad);display:none;z-index:60;max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);overflow:auto}
.acct.open .acct-menu{display:block}
.acct-head{display:flex;gap:10px;align-items:center;padding:8px 8px 12px;border-bottom:1px solid var(--border);margin-bottom:6px}
.acct-head b{display:block;font-size:14px;color:#16241e}.acct-head small{display:block;font-size:11px;color:var(--muted)}
.acct-head .code b{color:var(--primary)}
.acct-menu a,.acct-logout{display:flex;align-items:center;gap:10px;width:100%;min-height:var(--menu-item-height);padding:9px 10px;border-radius:10px;color:#28342e;font-size:var(--control-font);font-weight:600;text-decoration:none;background:none;border:none;cursor:pointer;text-align:left;font-family:inherit}
.acct-menu a:hover,.acct-logout:hover{background:#f4f6f4}
.acct-menu a svg,.acct-logout svg{width:17px;color:var(--primary)}
.acct-logout{color:var(--red)!important;margin-top:4px;border-top:1px solid var(--border);border-radius:0 0 10px 10px}
.acct-logout svg{color:var(--red)!important}
@media(max-width:560px){.acct-meta{display:none}}
/* ---------- homepage hero + highlights slider (reference fidelity) ---------- */
.hero{position:relative;overflow:hidden;padding:40px 22px;border-radius:22px;background:linear-gradient(150deg,#f4f0ff,#effaf3 55%,#f2f7ff)}
.keycaps{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:18px}
.keycaps span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:var(--surface);box-shadow:var(--shadow2);font-weight:800;color:var(--primary);animation:kbob 3.2s ease-in-out infinite}
.keycaps span:nth-child(2n){color:var(--blue);animation-delay:.4s}.keycaps span:nth-child(3n){color:var(--green);animation-delay:.8s}
@keyframes kbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--primary);background:#fff;border:1px solid var(--border);border-radius:999px;padding:6px 14px}
.pulse{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 rgba(28,164,109,.6);animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(28,164,109,.5)}70%{box-shadow:0 0 0 10px rgba(28,164,109,0)}100%{box-shadow:0 0 0 0 rgba(28,164,109,0)}}
.hero-copy h1{font-size:38px;line-height:1.15;margin:14px 0}
.grad{background:linear-gradient(90deg,var(--primary),var(--blue));-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{color:var(--muted);max-width:520px;margin:0}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 14px}
.trust{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted);font-weight:600}
.trust span{display:inline-flex;align-items:center;gap:6px}.trust svg{width:16px;color:var(--primary)}
.hero-panel{background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:16px}
.panel-top{display:flex;align-items:center;gap:8px;font-weight:800;color:var(--text)}
.panel-top .brandmark{width:34px;height:34px;border-radius:10px;background:#f0e9ff;color:var(--primary);display:grid;place-items:center}
.panel-badge{margin-left:auto;font-size:11px;font-weight:700;color:var(--green);background:#e8f7ee;border-radius:999px;padding:4px 10px}
.type-screen{margin:14px 0;background:var(--surface2);border:1px solid var(--border);border-radius:12px;padding:16px;min-height:108px}
.screen-label{font-size:12px;color:var(--muted);margin-bottom:10px;font-weight:600}
.panel-stats{display:flex;gap:8px}.panel-stats>div{flex:1;background:var(--surface2);border-radius:10px;padding:8px;text-align:center}
.panel-stats small{display:block;color:var(--muted);font-size:11px}.panel-stats b{font-size:13px}
.live-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:26px}
.live-card{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;box-shadow:var(--shadow2)}
.live-card .li{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:#fff}
.live-card .li svg{width:22px}.live-card small{color:var(--muted);font-size:12px}.live-card strong{font-size:20px;display:block}
.li.purple{background:var(--primary)}.li.blue{background:var(--blue)}.li.green{background:var(--green)}.li.pink{background:var(--pink)}
.live-dot{width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 0 rgba(255,255,255,.7);animation:pulse 1.8s infinite}
.soft-band{background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:24px}
.slider{overflow:hidden}.slides{display:flex;transition:transform .5s ease}.slide{min-width:100%;text-align:center;padding:10px 18px}
.slide .s-ico{width:60px;height:60px;margin:0 auto 12px;border-radius:16px;display:grid;place-items:center;color:#fff}.slide .s-ico svg{width:28px}
.slide h3{margin:0 0 6px;font-size:20px}.slide p{color:var(--muted);max-width:520px;margin:0 auto}
.slider-dots{display:flex;gap:8px;justify-content:center;margin-top:16px}
.slider-dots button{width:10px;height:10px;border-radius:50%;border:0;background:var(--border);cursor:pointer;padding:0;transition:.2s}
.slider-dots button.on{background:var(--primary);width:26px;border-radius:6px}
.card.feat{transition:transform .18s ease,box-shadow .18s ease}
.card.feat:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.hero-cta{text-align:center;background:linear-gradient(135deg,#f4f0ff,#effaf3);border-radius:20px;padding:30px 22px}
.pager{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}
.pager .btn.on{background:var(--primary);color:#fff;pointer-events:none}
/* PASS 20 §7: the edge arrows stay in the bar when they cannot be used, so the row does not reflow between pages,
   and a folded run of page numbers is a quiet ellipsis rather than another button. */
.pager .btn.off{opacity:.42;pointer-events:none}
.pager .pager-gap{padding:0 2px;font-weight:900;color:var(--muted)}
@media(max-width:820px){.hero-grid{grid-template-columns:1fr}.hero-copy h1{font-size:30px}.live-stats{grid-template-columns:repeat(2,1fr)}}

.badge.soft{background:#eef2f7;color:#475467}
.d-line{color:#b3282d;background:#fff0f0;border-left:3px solid #d98a8d;border-radius:0 4px 4px 0;padding:0 4px;font-weight:800}
.reason-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.reason-list li{display:flex;gap:10px;align-items:center;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:700}
.reason-list li.fatal{background:#fff0f0;color:#b3282d;border:1px solid #f6c9ca}
.reason-list li.advisory{background:#fffaf0;color:#9a5b00;border:1px solid #ffe4b3}
.reason-list li .lucide,.reason-list li i{width:18px;height:18px}
/* §36 justified passage/result text */
.passage-text,.ex-passage,.diff,.pk-excerpt,.practice-text{text-align:justify;text-justify:inter-word;hyphens:auto}
@media(max-width:600px){.passage-text,.ex-passage,.diff,.practice-text{text-align:left}}

/* ===== Leaderboard page: podium cards + rank-tinted rows ===== */
.lbPodium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.podiumCard{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;padding:20px 14px 16px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbf9);box-shadow:var(--shadow2)}
.podiumCard.podium1{background:linear-gradient(180deg,#fffaef,#fff);border-color:#f2ddab}
.podiumCard.podium2{background:linear-gradient(180deg,#f7f9fc,#fff);border-color:#dce4ea}
.podiumCard.podium3{background:linear-gradient(180deg,#fdf4ee,#fff);border-color:#eed6c3}
.podiumCard.is-me{outline:2px solid #bcaef0;outline-offset:2px}
.podiumRank{position:absolute;left:12px;top:12px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900;color:#fff;background:#8a9a92}
.podium1 .podiumRank{background:linear-gradient(135deg,#dfa526,#f3ca52)}
.podium2 .podiumRank{background:linear-gradient(135deg,#9aa8b5,#c3ccd6)}
.podium3 .podiumRank{background:linear-gradient(135deg,#c07a3f,#dda36b)}
.podiumCrown{position:absolute;right:12px;top:12px;color:#c99b2a;display:grid;place-items:center}
.podiumCrown .lucide,.podiumCrown i{width:20px;height:20px}
.podium2 .podiumCrown{color:#8f9daa}.podium3 .podiumCrown{color:#bb7c47}
.podiumName{font-size:15px;line-height:1.3;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.podiumCat{font-size:11px;font-weight:800;color:var(--muted)}
.podiumStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:8px}
.podiumStats div{background:#fff;border:1px solid var(--border);border-radius:12px;padding:8px 6px}
.podiumStats strong{display:block;font-size:19px;line-height:1.1;color:#148357}
.podiumStats small{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.lbTable td.num,.lbTable th.num{text-align:right}
.lbTable .is-me td{background:#f2edff}
.lbWpm{font-size:15px;color:#148357;font-variant-numeric:tabular-nums}
.lbAcc{font-variant-numeric:tabular-nums;color:#3d4c58}
.rk{display:inline-flex;min-width:44px;justify-content:center;padding:5px 9px;border-radius:999px;background:#eef2f7;color:#475467;font-size:11px;font-weight:900}
.rk1{background:linear-gradient(135deg,#f3ca52,#dfa526);color:#fff}
.rk2{background:linear-gradient(135deg,#c3ccd6,#9aa8b5);color:#fff}
.rk3{background:linear-gradient(135deg,#dda36b,#c07a3f);color:#fff}
.privacyNote{display:flex;align-items:center;gap:7px;margin:12px 0 0;padding:11px 13px;border:1px solid #dbeee2;background:#f4fbf6;border-radius:12px;font-size:12px;color:#3f6b57}
.privacyNote .lucide,.privacyNote i{width:16px;height:16px;color:var(--green);flex:0 0 16px}
@media(max-width:760px){.lbPodium{grid-template-columns:1fr}.podiumStats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Item V §1.2 — the leaderboard's five summary tiles. A five-track row gives each tile less room than the
   dashboard's four, and the horizontal 48px-icon family crowded the figure; in the lb scope the tile stacks
   (icon chip, label, figure, one quiet note) and the tone lives on the chip, exactly as the dashboard pairs
   card+icon tones. Nothing outside .lb-stats changes, so every other .card.stat keeps its measured shape. */
.lb-stats .stat{flex-direction:column;align-items:flex-start;gap:8px;padding:14px}
.lb-stats .stat .ico{width:40px;height:40px;flex:0 0 40px;border-radius:11px}
.lb-stats .stat .ico svg{width:18px;height:18px}
.lb-stats .stat>div{width:100%}
.lb-stats .stat small{font-size:var(--text-xs)}
.lb-stats .stat strong{font-size:24px;margin-top:1px;letter-spacing:.01em}
.lb-stats .stat .muted{margin-top:1px;font-size:11px;line-height:1.45}
/* Topbar counters — unread notification bell for every member, pending payment counter for admin. Both hide themselves at zero. */
.top-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#4c5f57;transition:.18s}
.top-bell:hover{border-color:#d8cff6;color:var(--primary);transform:translateY(-1px);box-shadow:0 7px 18px rgba(40,45,80,.08)}
.top-bell:focus-visible{outline:3px solid rgba(106,76,207,.35);outline-offset:2px}
.top-bell .lucide,.top-bell i{width:19px;height:19px}
.top-bell.new{border-color:#e3d9ff;background:#f7f3ff;color:var(--primary)}
.top-bell .tb-count{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:900;line-height:20px;text-align:center;box-shadow:0 0 0 2px #fff;font-variant-numeric:tabular-nums}
.top-bell.pay .tb-count{background:var(--orange)}
@media(max-width:620px){.top-bell{width:38px;height:38px}}
/* PASS 11: printable-PDF control in the admin editors */
/* PASS 11: printable-PDF control in the admin editors */
/* Item S: the upload field used to set gap:8px, which pushed its file box 3px below the control it shares a row
   with. Every field keeps the shared 5px band; the extra air now sits below the file box, where it can't misalign
   a sibling. A checkbox that stands in for a text control (label above it, `<label>…</label><label class="check">`)
   wears the control's height, so both rows start on the same line; the secondary "remove this file" ticks are
   deliberately not given that height — they sit under their own input and would only add dead space. */
.attach-field .attach-now{margin-top:3px}
.attach-now{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.attach-drop{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:var(--muted);cursor:pointer}
.attach-field input[type=file]{padding:8px;background:#fff}
/* PASS 13 / exam-category-card pass §1–§5: a lab identity is ONE solid colour, never a gradient and never red
   (red belongs to নতুন/N, errors, failures and destructive actions). BCC = royal blue, High Court = deep violet;
   each hex is written ONCE, on the :root line below, and every chip, card accent and track class reads it through
   --lab-accent — a template cannot drift to another colour. The variants are declared after .exam-category-card
   below, so a card's own token always beats the component default.
   Item T §3: the two new offices get the same treatment — teal for অধিদপ্তর, amber for বুয়েট, chosen because
   they read as clearly different from blue and violet at chip size and still carry white text. Labs.php's `badge`
   and `slug` name these classes; adding a lab is one :root hex plus one line in each family. Item T §5 renamed the
   office a member reads (the registry's MINISTRY entry shows as BUET) without touching its stored id, so only the
   class spellings moved here. */
:root{--track-unicode:#1CA46D;--track-english:#2F6FE8;--track-bijoy:#7C3AED}
:root{--lab-bcc:#2563EB;--lab-hc:#7C3AED;--lab-dir:#0E7490;--lab-buet:#B45309}
.badge.lab-bcc{--lab-accent:var(--lab-bcc)}
.badge.lab-hc{--lab-accent:var(--lab-hc)}
.badge.lab-dir{--lab-accent:var(--lab-dir)}
.badge.lab-buet{--lab-accent:var(--lab-buet)}
.badge.lab-alt{--lab-accent:#475569}
.badge.lab{display:inline-flex;align-items:center;height:24px;padding:0 11px;border-radius:999px;background:var(--lab-accent,#475569);color:#fff;font-size:11px;font-weight:800;letter-spacing:.02em;line-height:1}
/* §1/§7 the নতুন/N pill is a danger badge, not a lab badge: solid red, kept on the right end of the badge row,
   and the only thing on the card that moves — the ring pulse lives on the badge itself, never on the card. */
.badge.new-pill{background:#dc2626;color:#fff;font-weight:800;animation:newPulse 1.8s ease-out infinite}
@keyframes newPulse{0%{box-shadow:0 0 0 0 rgba(220,38,38,.5)}70%{box-shadow:0 0 0 9px rgba(220,38,38,0)}100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}}
/* PASS 20 §10: the library row tag is the same red family at a whisper — the pulse belongs to the dashboard pill only,
   so a page of twenty rows never turns into twenty animated badges. */
.badge.new-tag{background:#fdeef0;color:#b01828;border:1px solid #f6ccd2;font-size:11px;padding:4px 9px}
/* Global status standard §16–§19: ONE .status-badge component. Geometry (height, padding, radius, size, weight)
   is identical everywhere and lives only here; meaning is carried by the tone class that Display::badge() picks.
   Casing is decided by Display in PHP, so text-transform is pinned off inside the component instead of being
   scattered through templates as an uppercase hack. Colour is never the only signal — the word itself says it. */
.status-badge{display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 10px;border-radius:999px;
  border:1px solid transparent;font-size:11px;font-weight:900;letter-spacing:.02em;line-height:1;white-space:nowrap;
  text-transform:none;vertical-align:middle}
.status-badge.is-ok{background:#e6faf1;color:#078257;border-color:#c8f0dd}
.status-badge.is-pending{background:#fff6e6;color:#b26d0b;border-color:#f7e3bd}
.status-badge.is-bad{background:#fff0f0;color:#c53b40;border-color:#f6ccd2}
.status-badge.is-neutral{background:#f1f4f3;color:#4b5d55;border-color:#e2e8e4}
.status-badge.is-info{background:#f0e9ff;color:#6a4ccf;border-color:#e3d7fb}
.status-badge:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media print{.status-badge{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* §4/§5/§13/§14 the exam category card: a calm white surface, a 4px solid top accent as the only lab decoration,
   no diagonal artwork, and a flex column so the action row always sits at the same place at the bottom. */
.exam-category-card{--lab-accent:#475569;position:relative;overflow:hidden;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:18px var(--pad-card) var(--pad-card);box-shadow:var(--shadow-card);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.exam-category-card--bcc{--lab-accent:var(--lab-bcc)}
.exam-category-card--high-court{--lab-accent:var(--lab-hc)}
.exam-category-card--directorate{--lab-accent:var(--lab-dir)}
.exam-category-card--buet{--lab-accent:var(--lab-buet)}
.exam-category-card--alt{--lab-accent:#475569}
.exam-category-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--lab-accent)}
/* §1 (owner 2026-11-04: "নতুন প্যাসেজ ব্যাজটা কার্ডের সাথে সুন্দর না"). Measured in Chrome at 1440px before the change:
   margin-left:auto threw the pill 299px (Directorate) and 334px (BUET) across the head, away from the language chip
   it qualifies, and parked it 10px from the identity mark — a lone red dot in the middle of an empty row. The pill now
   rides on the meta's own 7px gap, immediately after the chip, at the chip's height because both are plain .badge. */
.exam-category-card .meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.exam-category-card h3{margin:12px 0 6px;font-size:17px;font-weight:800;line-height:1.35;color:var(--text)}
.exam-category-card p{flex:1 1 auto;margin:0;font-size:14px;line-height:1.65;color:var(--muted)}
.exam-category-card p b{color:var(--text);font-weight:800}
.exam-category-card .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.exam-category-card .actions .btn{flex:1 1 110px}
/* §10/§11 owner 2026-11-01: the two buttons on these cards are one style on all eight cards — Passage is the
   shared neutral secondary and Start is the shared brand green — so no card looks like a different product.
   The lab is still identifiable (its chip and the 4px accent strip above it), but colour is spent on the
   language chip and the identity mark, which is what a candidate actually chooses a card by. The global
   .btn:focus-visible ring already covers both buttons here. */
.exam-category-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);border-color:#d7dbe7}
.exam-category-card:focus-within{border-color:var(--lab-accent)}
/* Item T §4 (owner 2026-11-03, preview as the reference): one flat grid of every lab card — two per open lab,
   বাংলা beside ইংরেজি, and the labs flowing straight after — exactly the tidy two-column surface the owner drew.
   It is one grid, not a column-per-lab, so a lab with no paper still sits in the same rhythm as its neighbours.
   Built on minmax(0,1fr) so a long Bangla title can never push the grid off the monitor. The columns fold to one on
   a narrow screen, so the cards stack instead of shrinking. */
.lab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}
@media(max-width:900px){.lab-grid{grid-template-columns:minmax(0,1fr)}}
/* Owner 2026-11-04: the trial desk is two columns too, so the page-specific second grid is gone and both surfaces
   lay their cards out with the grid above — one card per row, labs folding under each other at 900px. */
/* Item T §4/§12 the card's first line is its language chip on the left and the Latin identity mark on the right.
   Nothing here is absolutely positioned: a passage card clips its own overflow, and a mark that can
   be clipped is a mark that will be clipped. The mark takes the lab accent it already inherits — outline and text,
   never a filled card, because §3 spends colour on a badge, an accent or a border and nowhere wider. */
.lab-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.lab-card-head .meta{flex:1 1 auto;min-width:0}
.lab-corner{flex:0 0 auto;display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:7px;
  border:1px solid var(--lab-accent,#475569);color:var(--lab-accent,#475569);background:#fff;
  font-size:11px;font-weight:900;letter-spacing:.04em;line-height:1;white-space:nowrap}
.passage .meta .lab-corner{margin-left:auto}
/* §4 the lab name is the card's centrepiece — large, centred, and wearing a light wash of its own identity so the
   lab reads before anything else does. The wash is the accent at a whisper (color-mix), never a second hardcoded
   tint, so a new office arrives with its own colour and never a mismatched one. */
.exam-category-card .lab-title{margin:14px 0 10px;text-align:center;font-size:18px;font-weight:800;line-height:1.45;
  color:var(--lab-accent);background:color-mix(in srgb,var(--lab-accent) 9%,#fff);border-radius:12px;padding:10px 12px}
/* §4 the ফন্ট / এনকোডিং / সময় chips, read off the lab's real papers and configuration. They are the only second
   colour on the card besides the language chip, kept neutral so the identity wash stays the loudest thing on it. */
.lab-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:12px}
.lab-chip{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:#52645e;
  background:#f6f8f7;border:1px solid #e8eeeb;border-radius:30px;padding:5px 10px;line-height:1.2}
.lab-chip svg{width:12px;height:12px;flex:0 0 12px}
/* Item T §7 the dedicated trial desk, a prominent panel right under the statistics. It is a violet well — the
   trial module's own tone — so it reads as "free offer" rather than as another lab row, and it only exists in the
   DOM while a trial is unspent and no subscription is active. The counter is the loudest thing on it. */
.trial-desk{background:var(--tone-violet-bg);border:1px solid #ddd0fb}
.trial-desk-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.trial-desk-head h3{margin:0;font-size:19px;font-weight:800;color:var(--tone-violet-fg)}
.trial-desk-head .panel-sub{color:#5b4a86}
.trial-counter{display:inline-flex;align-items:baseline;gap:6px;background:#fff;border:1px solid #cdb8ff;border-radius:14px;padding:8px 16px;color:var(--tone-violet-fg)}
.trial-counter b{font-size:26px;font-weight:900;line-height:1}
.trial-counter span{font-size:13px;font-weight:700}
.trial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:900px){.trial-grid{grid-template-columns:minmax(0,1fr)}}
.trial-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #e6defb;border-left:4px solid var(--lab-accent,#475569);border-radius:14px;padding:14px 16px}
.trial-lab{margin:0;font-size:15px;font-weight:800;color:var(--text)}
.trial-paper{margin:0;font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trial-paper b{color:var(--text);font-weight:800}
.trial-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.trial-dur{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--tone-violet-fg)}
.trial-dur svg{width:14px;height:14px}
.trial-foot .btn{height:34px;padding:0 12px;font-size:12.5px}
.trial-note{margin:14px 0 0;font-size:12px;color:#5b4a86;line-height:1.6}
/* the entitlement band at card scale — same amber well as the custom and combined modules, one size down */
.pw-band.is-compact{margin:12px 0 0;padding:9px 11px;font-size:12px;font-weight:700;line-height:1.5}
.pw-band.is-compact svg{width:15px;flex:0 0 15px;margin-top:3px}
.pw-band.is-compact .btn{align-self:center;flex:0 0 auto;height:30px;padding:0 10px;font-size:12px}
/* Item L-C (Attachment C §4) — the live exam card. Only the red indicator moves; the card itself never pulses,
   and a reduced-motion reader gets the same card with a static dot. The accent strip reuses --lab-accent so the
   card takes the identity of whichever lab owns the paper, exactly like the category cards below it. */
.live-exam{--le-accent:var(--lab-bcc);position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:16px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);
  padding:18px var(--pad-card) var(--pad-card);box-shadow:var(--shadow-card)}
.live-exam::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--le-accent)}
/* Item T §3: one accent line per lab, named by the registry's own slug (Labs::slug) — the same spelling the
   category cards use. BCC stays the default the base rule already sets; a new office is one line here and one
   registry entry, never a branch in a template. */
.live-exam--high-court{--le-accent:var(--lab-hc)}
.live-exam--directorate{--le-accent:var(--lab-dir)}
.live-exam--buet{--le-accent:var(--lab-buet)}
.live-exam--idle{--le-accent:#94a3b8}
.le-main{min-width:0}
.le-flag{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:var(--radius-pill);
  background:#fff0f0;color:#c53b40;font-size:var(--text-md);font-weight:900;line-height:1.3}
.live-exam--idle .le-flag{background:#eef3f0;color:#4a5b53}
.le-dot{width:10px;height:10px;border-radius:50%;background:#e5484d;flex:0 0 10px;animation:le-pulse 1.6s ease-in-out infinite}
.live-exam--idle .le-dot{background:#7d8f86;animation:none}
@keyframes le-pulse{0%,100%{box-shadow:0 0 0 0 rgba(229,72,77,.55)}50%{box-shadow:0 0 0 7px rgba(229,72,77,0)}}
@media(prefers-reduced-motion:reduce){.le-dot{animation:none}}
.le-title{margin:10px 0 2px;font-size:var(--text-2xl);line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.le-post{margin:0;font-size:var(--text-md);color:var(--muted);line-height:var(--lh-compact)}
.le-facts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.le-side{display:grid;gap:8px;justify-items:stretch;min-width:0}
.le-cta{white-space:nowrap}
.le-note{margin:0;font-size:var(--text-xs);color:var(--muted);line-height:var(--lh-compact);max-width:260px}
/* Item L-C (Attachment C §3/§27) — quick access. One tile per destination the learner must find in five seconds;
   a planned module renders without a link and without a number, so nothing promises a route that does not exist.
   The auto-fill minimum is a real 200px, not 0: `minmax(0,1fr)` under `auto-fill` is degenerate and Chrome expands
   it to ~78 one-pixel tracks between 641 and 1099px, collapsing every tile to its 30px min-content width. */
.qa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.qa-tile{position:relative;display:flex;flex-direction:column;gap:6px;min-height:104px;padding:14px;
  border:1px solid var(--border);border-radius:14px;background:var(--surface);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
a.qa-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);border-color:#d7dbe7}
a.qa-tile:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.qa-tile .qa-top{display:flex;align-items:center;gap:8px}
.qa-tile .ico{width:34px;height:34px;border-radius:10px;background:#eef8f1;color:#1a7a58;display:grid;place-items:center}
.qa-tile b{font-size:var(--text-md);line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.qa-tile small{font-size:var(--text-xs);line-height:var(--lh-compact);color:var(--muted)}
.qa-tile .qa-count{margin-left:auto;font-size:var(--text-lg);font-weight:900;color:var(--primary);line-height:1}
.qa-tile--soon{background:var(--surface2);border-style:dashed;cursor:default}
.qa-tile--soon .ico{background:#eef1f0;color:#7d8f86}
.qa-tile--soon b{color:#4a5b53}
@media(min-width:1100px){.qa-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.qa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-exam{grid-template-columns:minmax(0,1fr)}.le-note{max-width:none}}
@media(max-width:420px){.qa-grid{grid-template-columns:minmax(0,1fr)}}
/* Item L-C (Attachment C §11/§12) drew the two statistic rows as one family with a weight difference.
   Owner 2026-11-01 re-ruled it: all eight tiles are the same size and the same style, so the big/small pair of
   rules is gone. The shared compact geometry lives once in the Item O block, keyed on the two row classes. */
/* PASS 16: result report hierarchy — the verdict outranks every number on the page.
   Colour carries meaning only: green = that criterion passed, red = it failed, amber = omission/warning,
   purple = metadata, gray = secondary. The card stays a plain grid with align-items:start and no height
   anywhere, so nothing can leave a blank column under a short block. */
.rp-status{margin:6px 0 0;font-size:13px;font-weight:800}
.rp-status.good{color:#07704a}.rp-status.bad{color:#b3282d}
.result-summary .rs-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.result-summary .rs-meta{font-size:12px;color:var(--muted);font-weight:700}
.result-summary .rs-id{margin-left:10px;font-weight:900;color:var(--primary);font-variant-numeric:tabular-nums}
.result-summary .rs-body{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(360px,1.15fr);gap:14px;margin:12px 0 0}
.result-summary>.rs-top,.result-summary .rs-body>div{min-width:0}
.rs-verdict{border-radius:16px;padding:16px 18px;text-align:center;border:1px solid #bfeed6;background:linear-gradient(180deg,#e9fbf1,#f4fdf8);color:#07704a}
.rs-verdict.fail{border-color:#f6c9ca;background:linear-gradient(180deg,#fff1f1,#fff7f7);color:#b3282d}
.rs-verdict small{display:block;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.8}
.rs-verdict strong{display:block;font-size:58px;line-height:1;font-weight:900;margin:6px 0 4px;letter-spacing:.01em}
.rs-verdict p{margin:0;font-size:12.5px;font-weight:700;line-height:1.45}
.rs-key{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start}
.kpi{border:1px solid var(--border);border-radius:13px;background:#f8faf9;padding:10px 12px;min-width:0}
.kpi span{display:block;font-size:11px;font-weight:900;letter-spacing:.03em;color:var(--muted);text-transform:uppercase}
.kpi b{display:block;font-size:27px;line-height:1.15;font-weight:900;margin-top:2px;font-variant-numeric:tabular-nums;color:var(--text)}
.kpi b.good{color:var(--green)}.kpi b.bad{color:#c53b40}
.kpi em{display:block;font-style:normal;font-size:11px;font-weight:700;color:var(--muted);margin-top:2px}
.crit-wrap{border:0}
table.criteria{min-width:0}
table.criteria td{font-size:13px}
table.criteria tr.no{background:#fff6f6}
table.criteria tr.info td{color:var(--muted)}
.crit-state{white-space:nowrap;font-weight:800;font-size:12px}
.crit-state svg{width:16px;height:16px;vertical-align:-3px;margin-right:5px}
table.criteria tr.ok .crit-state{color:#07704a}
table.criteria tr.no .crit-state{color:#b3282d}
.lead{margin:0 0 10px;font-size:13px;color:var(--muted)}
.reason-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.reason-list li{display:flex;gap:9px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#fff;font-size:13px}
.reason-list li>svg,.reason-list li>i{width:18px;height:18px;flex:0 0 18px;margin-top:2px}
.reason-list li span{display:block;min-width:0;line-height:1.5}
.reason-list li b{font-weight:800}
.reason-list li em{display:block;font-style:normal;font-size:12px;font-weight:700;color:var(--muted);margin-top:2px}
.reason-list li.fatal{background:#fff6f6;border-color:#f2c4c5}
.reason-list li.fatal>svg,.reason-list li.fatal>i{color:#c53b40}
.reason-list li.advisory{background:#fff9ec;border-color:#f0dcae}
.reason-list li.advisory>svg,.reason-list li.advisory>i{color:#b26d0b}
.reason-list.met li.ok{background:#f1fbf5;border-color:#c8ead6}
.reason-list.met li.ok>svg,.reason-list.met li.ok>i{color:#07704a}
.rule-note{margin:10px 0 0;font-size:12px;line-height:1.6}
.stats-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.stat-group{padding:16px}
.ss-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf2ef;font-size:13px}
.ss-row span{color:var(--muted);min-width:0}
.ss-row b{font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.ss-row b.good{color:#07704a}.ss-row b.bad{color:#c53b40}.ss-row b.warn{color:#8a5a00}
.ss-row.official{background:#f4f0ff;border:1px solid #e0d6ff;border-radius:10px;padding:8px 10px;margin-top:8px;border-bottom:0}
.ss-row.official span{color:#5b45a8;font-weight:800}
.ss-note{margin:10px 0 0;font-size:11.5px;line-height:1.6}
.err-counters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.err-counters .ec{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:#f8faf9;border-radius:999px;padding:6px 12px;font-size:11.5px;font-weight:800;color:var(--muted)}
.err-counters .ec b{font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;color:var(--text)}
.err-counters .ec.ok b{color:#07704a}
.err-counters .ec.bad,.err-counters .ec.bad b{color:#c53b40}
.err-counters .ec.warn,.err-counters .ec.warn b{color:#8a5a00}
.err-counters .ec.extra,.err-counters .ec.extra b{color:var(--primary)}
/* §16 content never reached is information, not a fault: the chip stays neutral grey. */
.err-counters .ec.none,.err-counters .ec.none b{color:#7b8894}
.err-counters .ec[hidden]{display:none}
.cmp-tools{gap:16px}
.cmp-tools label{gap:6px}
.err-table{margin:0}
.err-table>summary{cursor:pointer;font-size:13px;font-weight:800;color:var(--primary);padding:6px 0;list-style:none}
.err-table>summary::-webkit-details-marker{display:none}
.err-table>summary:before{content:'▸ ';font-weight:900}
.err-table[open]>summary:before{content:'▾ '}
.err-table .table-wrap{margin-top:10px}
.err-list{min-width:640px}
.err-list td{font-size:13px}
details.tech{padding:14px 16px}
details.tech>summary{cursor:pointer;font-size:14px;font-weight:900;color:var(--primary);list-style:none}
details.tech>summary::-webkit-details-marker{display:none}
details.tech>summary:after{content:'▾';margin-left:8px}
details.tech:not([open])>summary:after{content:'▸'}
details.tech[open]>summary{margin-bottom:6px}
.err-chip{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:900;background:#f1f5f3;color:var(--muted)}
.err-chip.d-wrong{background:#fff1f1;color:#c53b40}
.err-chip.d-miss{background:#fff4d6;color:#8a5a00}
.err-chip.d-extra{background:#efe8ff;color:#5b45a8}
.err-chip.d-line{background:#fff4d6;color:#8a5a00}
.err-chip.d-space{background:#fff4d6;color:#b4700a;border-bottom:2px dotted #b4700a}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
.info-grid .ss-row{gap:16px}
.info-grid .ss-row b{text-align:right}
@media(max-width:1080px){.info-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:980px){.result-summary .rs-body{grid-template-columns:minmax(0,1fr)}.stats-duo{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.rs-verdict strong{font-size:46px}.rs-key{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi b{font-size:22px}}
/* PASS 16 §23: the printed report keeps identity, verdict, criteria, statistics and comparison,
   drops navigation and controls, and never splits one block across pages. */
@media print{
  .no-print,.cmp-tools,.err-table>summary,.skip-link,.footer-note{display:none!important}
  .panel,.rs-verdict,.kpi,.reason-list li,.ss-row.official,.stat-group{-webkit-print-color-adjust:exact;print-color-adjust:exact;break-inside:avoid;page-break-inside:avoid}
  .result-summary .rs-body,.stats-duo,.cmp{break-inside:auto}
  .section-gap{margin-top:10px}
  .rs-verdict strong{font-size:44px}
  .err-table .table-wrap{margin-top:0}
  body{background:#fff}
}
/* PASS 18: result-history row actions — view icon + delete icon, and the one-click clear in the header. */
.row-actions{display:flex;gap:6px;align-items:center}
.row-actions form{display:flex;margin:0}
.btn.ico-sm{width:var(--control-height-sm);height:var(--control-height-sm);min-height:var(--control-height-sm);flex:0 0 var(--control-height-sm);padding:0;border-radius:10px}
.btn.ico-sm .icon{width:16px;height:16px}
.btn.ico-danger{background:#fff5f5;border-color:#f4d7d8;color:#c53b40}
.btn.ico-danger:hover{background:#ffecec;box-shadow:0 6px 14px rgba(197,59,64,.14)}
.head-actions form{display:flex;margin:0}
@media print{.row-actions,.head-actions form{display:none}}
/* PASS 19 — manual payment checkout (§1–§11) + account dropdown identity header (§13–§17). */
.f-err{display:block;color:var(--red);font-size:11.5px}
.pay-sec{margin-top:18px}
.pay-sec-t{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:14px;color:#1d2621}
.pay-sec-t .icon{width:17px;height:17px;color:var(--primary)}
.amt-box{display:flex;align-items:center;gap:6px}
.amt-cur{font-weight:900;color:var(--muted)}
.amt-ro{background:#f4f6f4;font-weight:800;cursor:default}
.plan-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 14px;border:1px dashed #d9c9f5;border-radius:14px;background:#faf7ff}
.plan-card[hidden]{display:none}
.plan-card b{display:block;font-size:14px}
.plan-card small{display:block;font-size:11px;color:var(--muted)}
.pc-price{font-size:18px;font-weight:900;color:var(--primary);white-space:nowrap}
.pay{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:15px 12px}
/* The gateway SVGs are the owner's originals and are never edited. Each one is a 600x300 canvas whose
   artwork layer fills a slightly different share of it — bkash 526x265 (88.3% tall), nagad 572x253
   (84.3%), rocket 518x268 (89.3%) — so a shared box would print three visibly different-height marks.
   Every box below keeps the file's own 2:1 ratio and is scaled by 40px / its own ink share, which puts
   the DRAWN ink at 40.0 / 40.0 / 40.0 px. Sizes live here only; the templates carry no inline numbers. */
.pay-logo-box{--pay-logo-scale:1;display:flex;align-items:center;justify-content:center;width:100%;height:calc(48px * var(--pay-logo-scale))}
.pay-logo{width:auto;height:auto;max-width:100%;max-height:calc(48px * var(--pay-logo-scale));object-fit:contain}
.pay-logo--bkash{width:calc(90.6px * var(--pay-logo-scale));height:calc(45.3px * var(--pay-logo-scale))}
.pay-logo--nagad{width:calc(94.8px * var(--pay-logo-scale));height:calc(47.4px * var(--pay-logo-scale))}
.pay-logo--rocket{width:calc(89.6px * var(--pay-logo-scale));height:calc(44.8px * var(--pay-logo-scale))}
.pay-name{font-size:13px;color:#16241e}
.pay-num{display:flex;align-items:center;gap:7px;font-size:13px;color:#33403a;font-variant-numeric:tabular-nums;letter-spacing:.3px}
.pay-send{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.4px;text-transform:uppercase}
.copy-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--muted);cursor:pointer;padding:0}
.copy-btn:hover{border-color:#d8cff6;color:var(--primary);background:#faf7ff}
.copy-btn:focus-visible{outline:3px solid rgba(106,76,207,.35);outline-offset:2px}
.copy-btn .icon{width:14px;height:14px}
.pay-check{position:absolute;top:8px;right:8px;display:none;align-items:center;justify-content:center;width:21px;height:21px;border-radius:999px;background:var(--primary);color:#fff}
.pay-check .icon{width:13px;height:13px;stroke-width:3}
.pay.active .pay-check{display:inline-flex}
.pay.active{box-shadow:inset 0 0 0 2px #8d58e2}
.pay:focus-visible{outline:3px solid rgba(106,76,207,.35);outline-offset:2px}
.pay-steps{display:grid;gap:6px;margin:0;padding:13px 14px 13px 34px;border:1px solid #e7defd;border-radius:12px;background:#faf7ff;font-size:12.5px;color:#443a5f;list-style:decimal}
.pay-steps[hidden]{display:none}
.ref-strip{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid var(--border);border-radius:14px;background:#f4f6f4}
.pf-ico{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border:1px solid var(--border);border-radius:11px;background:#fff;color:var(--primary)}
.pf-body{min-width:0;display:flex;flex-direction:column;gap:3px}
.pf-body b{font-size:13px}
.pf-code{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap;font-size:12.5px;color:#33403a}
.pf-code b{font-weight:900;color:var(--primary);letter-spacing:1px;font-variant-numeric:tabular-nums}
.pf-body small{font-size:11px;color:var(--muted)}
.pay-confirm{display:grid;gap:5px;text-align:left;font-size:13px}
.pay-confirm>div{display:flex;justify-content:space-between;gap:12px;padding-bottom:4px;border-bottom:1px dashed #ece7f5}
.pay-confirm>div:last-child{border-bottom:0}
.pay-confirm span{font-weight:600;color:#7a8494}
.pay-confirm b{font-weight:800;color:#22303a;overflow-wrap:anywhere}
.acct-menu{min-width:300px;max-width:min(320px,calc(100vw - 20px))}
.acct-id{min-width:0;display:flex;flex-direction:column;gap:2px}
.acct-head b[title]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-head .acct-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-code{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;white-space:nowrap;font-size:11px;color:var(--muted)}
.acct-code .copy-btn{width:22px;height:22px;flex:0 0 22px;border-radius:7px}
.acct-code .copy-btn .icon{width:12px;height:12px}
@media(max-width:620px){
  .pay{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;justify-items:start;text-align:left;column-gap:12px;row-gap:2px;padding:13px}
  .pay-logo-box{--pay-logo-scale:.8;grid-area:1/1/4/2}
  .pay-name,.pay-num,.pay-send{grid-column:2}
  .pay-check{top:10px;right:10px}
  .pf-code{font-size:12px}
}
/* ===== Item L-F — Attachment D: the step-based payment page and the admin's channel configuration =====
   Progressive disclosure (§16) is one visible panel at a time, so the panels are laid out by the same shared
   grid classes as the rest of the app (no inline template columns anywhere) and the selected state is a tint plus
   a quiet ring rather than a bright purple border (§8). */
.vis-input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.pay-due{display:flex;align-items:center;height:var(--ctl-h);padding:0 14px;border:1px dashed #d9c9f5;border-radius:var(--control-radius);background:#faf7ff;font-size:var(--text-xl);font-weight:900;color:var(--primary);font-variant-numeric:tabular-nums}
.pay-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pay-mode{position:relative;display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-card);background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.pay-mode:hover{border-color:#d8cff6}
.pay-mode:focus-within{outline:3px solid rgba(106,76,207,.3);outline-offset:2px}
.pay-mode.is-on{border-color:#cbbcf3;background:#f8f6ff;box-shadow:inset 0 0 0 1px #d5c9f3}
.pay-mode-ico{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#eef3f0;color:var(--primary)}
.pay-mode.is-on .pay-mode-ico{background:#efe8fb}
.pay-mode-ico .icon{width:21px;height:21px}
.pay-mode-t{min-width:0;display:flex;flex-direction:column;gap:3px}
.pay-mode-t b{font-size:var(--text-nav);line-height:var(--lh-compact)}
.pay-mode-t small{font-size:var(--text-xs);line-height:var(--lh-compact);color:var(--muted)}
.pay-mode-mark{position:absolute;top:10px;right:10px;display:none;align-items:center;justify-content:center;width:21px;height:21px;border-radius:999px;background:var(--primary);color:#fff}
.pay-mode-mark .icon{width:13px;height:13px;stroke-width:3}
.pay-mode.is-on .pay-mode-mark{display:inline-flex}
.pay-panel{margin-top:14px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-card);background:#fbfcfb}
.pay-panel[hidden]{display:none}
.pay-h{margin:0 0 4px;font-size:var(--text-lg);line-height:var(--lh-compact)}
.pay-sub{margin:0 0 14px;font-size:var(--text-sm);line-height:var(--lh-prose);color:var(--muted)}
.qr-card{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:16px;align-items:start}
.qr-figure{display:flex;flex-direction:column;gap:8px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:14px;background:#fff}
.qr-img{width:100%;max-width:220px;height:auto;aspect-ratio:1/1;object-fit:contain}
.qr-figure small{font-size:var(--text-2xs);line-height:var(--lh-compact);color:var(--muted);text-align:center}
.qr-meta{display:grid;gap:8px;align-content:start}
.qr-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:8px;border-bottom:1px dashed #e6e6e6;font-size:var(--text-sm)}
.qr-row:last-child{border-bottom:0;padding-bottom:0}
.qr-row span{color:var(--muted);flex:0 0 auto}
.qr-row b{min-width:0;text-align:right;overflow-wrap:anywhere}
.qr-amt,.qr-ref{color:var(--primary);font-weight:900;font-variant-numeric:tabular-nums}
.qr-ref{letter-spacing:1px}
.pay-amount-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding:11px 13px;border:1px solid #e7defd;border-radius:12px;background:#faf7ff;font-size:var(--text-sm);color:#443a5f}
.pay-amount-line b{font-size:var(--text-lg);font-weight:900;color:var(--primary);font-variant-numeric:tabular-nums}
.pay-amount-line .muted{flex:1 1 100%;font-size:var(--text-2xs)}
/* §8 the wallet card is a label around a real radio: the checked one gets the quiet ring, never a heavy border. */
.pay.is-on,.pay.active{border-color:#cbbcf3;background:#f8f6ff;box-shadow:inset 0 0 0 1px #d5c9f3}
.pay:has(.pay-in:focus-visible){outline:3px solid rgba(106,76,207,.3);outline-offset:2px}
.pay.inert{opacity:.55}
/* admin/payment_methods */
.pm-form{display:grid;gap:12px}
.pm-cell{display:flex;align-items:center;gap:10px;min-width:0}
.pm-cell b{display:block;font-size:var(--text-sm)}
.pm-thumb{display:block;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--border);border-radius:10px;object-fit:contain;background:#fff}
.pm-thumb--empty{display:flex;align-items:center;justify-content:center;color:#a8b3ad}
.pm-thumb--empty .icon{width:19px;height:19px}
.pm-logo-box{--pay-logo-scale:.72;display:flex;align-items:center;justify-content:center;flex:0 0 68px;width:68px;height:calc(46px * var(--pay-logo-scale));overflow:hidden}
.pm-logo{width:auto;height:auto;max-width:100%;max-height:calc(46px * var(--pay-logo-scale));object-fit:contain}
.pm-logo-box .icon{width:22px;height:22px;color:#a8b3ad}
.pm-current{display:flex;align-items:center;gap:12px;margin-top:8px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#f8faf9}
.pm-current-img{flex:0 0 88px;width:88px;height:88px;object-fit:contain;border:1px solid var(--border);border-radius:10px;background:#fff}
.pm-current>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.pm-current small{overflow-wrap:anywhere}
/* A refused payment says so in the same block a pending one does — only the accent changes, so the two states read
   as one component rather than two different widgets. */
.notice.bad{border-color:#f3d5d5;background:#fdf3f3;color:#b3282d}
@media(max-width:980px){
  .pay-modes{grid-template-columns:minmax(0,1fr)}
  .qr-card{grid-template-columns:minmax(0,1fr)}
  .qr-figure{max-width:340px}
}

/* ===== PASS 20 stage D — branding (§11–§14) =====
   An uploaded logo replaces the glyph inside whatever box a shell already uses, so the topbar keeps its 42px
   rounded square and the homepage footer keeps its 34px one; only the content changes. The white pad is what
   stops a transparent logo from vanishing into the purple gradient. */
.logo-img,.brandmark-img{background:#fff;overflow:hidden}
.logo-img{padding:6px}
.brandmark-img{padding:4px}
.logo img,.brandmark img{display:block;width:100%;height:100%;object-fit:contain}
.brand-preview{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.brand-preview .logo{flex:0 0 42px}
.brand-fav{width:26px;height:26px;border-radius:7px;border:1px solid var(--border);background:#fff;padding:2px;display:grid;place-items:center;overflow:hidden;flex:0 0 26px}
.brand-fav img{width:100%;height:100%;object-fit:contain}
.brand-file{display:grid;gap:6px}
.brand-file input[type=file]{font-size:12px;border:1px dashed #dfe7e2;border-radius:11px;padding:9px 10px;background:#fff}
.brand-note{font-size:11px;color:var(--muted)}

/* Result display font pass (§3–§4, §13–§17): the face the candidate actually typed in, chosen by
   ResultFont from the result's own snapshot. Applied to passage-derived cells only — the table,
   its headers and every Bangla UI label keep the application font. No weight, spacing or transform
   is touched; SutonnyMJ ships one weight, so only size and leading are tuned. */
.result-text--bijoy,.font-bijoy{font-family:SutonnyMJ,"Noto Sans Bengali",sans-serif}
.result-text--unicode,.font-nikosh{font-family:Nikosh,"Noto Sans Bengali",sans-serif}
.result-text--english,.font-times{font-family:"Times New Roman",Times,serif}
.err-list td.result-source-text,.err-list td.result-typed-text{font-size:15px;line-height:1.95}
.result-text--bijoy .muted,.result-text--unicode .muted,.result-text--english .muted{font-family:Inter,"Noto Sans Bengali",Arial,sans-serif}
@media print{.result-text--bijoy,.font-bijoy{font-family:SutonnyMJ,"Noto Sans Bengali",sans-serif!important}}

/* ===== USER AREA POLISH PASS (§1–§2, §13–§19, §26–§45, §52, §54, §60–§62) =====
   The dashboard's exam category card was the surface the owner approved, so its 16px radius, 16px padding and
   two-layer shadow became --radius-card / --pad-card / --shadow-card above and every user-area card now reads
   them instead of repeating the numbers. Rules that already existed were edited in place inside the base lines:
   a trailing rule of equal specificity would have silently overridden the responsive rules that live there. */

/* §15/§23 one track identity, reused by Courses, Practice and Continue Learning. The accent is only ever used
   for an icon, a small badge, a progress detail or a tinted header — a card is never painted in it. */
.t-unicode{--track-accent:var(--track-unicode);--track-tint:#eaf7f1;--bar-accent:var(--track-unicode)}
.t-english{--track-accent:var(--track-english);--track-tint:#ecf3fe;--bar-accent:var(--track-english)}
.t-bijoy{--track-accent:var(--track-bijoy);--track-tint:#f3edfe;--bar-accent:var(--track-bijoy)}
.t-bcc{--lab-accent:var(--lab-bcc)}
.t-hc{--lab-accent:var(--lab-hc)}
.t-dir{--lab-accent:var(--lab-dir)}
.t-buet{--lab-accent:var(--lab-buet)}
.t-alt{--lab-accent:#475569}

/* §60 shared section header: the title block can carry one quiet line of intent under the heading. */
.panel-title>div:first-child{display:grid;gap:3px}
.panel-sub{margin:0;font-size:12px;font-weight:600;color:var(--muted);line-height:1.5}
.panel-title .btn{flex:0 0 auto}
.pt-track{display:flex;align-items:center;gap:11px}
.pt-track>.icon{width:22px;height:22px;color:var(--track-accent,var(--primary));flex:0 0 22px}
.practice-card .p-text{min-width:0}
.practice-card .p-text b,.practice-card .p-text small{display:block}

/* §54 one visible keyboard focus for every interactive control in the user area. */
.btn:focus-visible,.pager a:focus-visible,.practice-card:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* §3–§6 Continue Learning: one horizontal card per in-progress course, so the section fills the row it is
   given instead of floating a small card inside a wide empty panel. */
.continue-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px var(--pad-card)}
.continue-card .course-icon{width:44px;height:44px;flex:0 0 44px}
.continue-card .cc-body{min-width:0}
.continue-card h3{margin:0;font-size:15px;font-weight:800;line-height:1.3}
.continue-card .cc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:7px 0 9px;font-size:11.5px;color:var(--muted)}
.continue-card .cc-lesson{margin:8px 0 0;font-size:11.5px;color:var(--muted)}
.continue-card .cc-lesson b{color:var(--text);font-weight:800}
.continue-card .cc-pct{font-size:13px;font-weight:900;color:var(--text);font-variant-numeric:tabular-nums}
.continue-card .cc-action{display:flex;align-items:center;gap:10px}
.continue-card:hover{box-shadow:var(--shadow-hover)}
.continue-grid{display:grid;gap:var(--gap-2)}

/* §12 a wide table keeps its horizontal scroll on a phone, and the scroll itself is announced. */
.scroll-note{display:none}

/* §14–§18 Course cards: the tinted header is the only decoration, the facts row carries level and font,
   and the action row is pinned to the bottom so cards in one row align at the same height. */
.course-card h3{font-size:15px;line-height:1.3}
.course-card .cc-desc{margin:0;font-size:12px;color:var(--muted);line-height:1.6}
.course-card .facts{display:flex;flex-wrap:wrap;gap:4px 14px;margin:10px 0 8px;font-size:11.5px;color:var(--muted)}
.course-card .facts span{display:inline-flex;gap:5px;align-items:center}
.course-card .facts b{color:var(--text);font-weight:800}
.course-card .actions{display:flex;gap:8px;margin-top:auto;padding-top:13px}
.course-card .actions .btn{flex:1 1 0}
.course-card:hover{box-shadow:var(--shadow-hover)}

/* §64–§66 controlled clamping: a long title never pushes a card taller than its row, and the full text stays
   reachable through the title attribute and the course or passage page itself. */
.clamp-1,.clamp-2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.clamp-1{-webkit-line-clamp:1}

/* §26–§34 Passage cards: flat white surface, the lab colour only in the badge and a 3px top accent,
   title above code, actions on the bottom edge. */
.passage::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--lab-accent,transparent)}
.passage .meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.passage h3{margin:12px 0 4px;font-size:15px;font-weight:800;line-height:1.35;color:var(--text)}
.passage .p-code{margin:0;font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.02em}
.passage .p-scheme{margin:9px 0 0}
/* Item V §3.1 (owner 2026-11-04): the passage card is a fixed skeleton. Every band reserves its own height, so a
   card that carries no নতুন tag, a one-line title or no print button starts its title, its code and its actions on
   exactly the same line as its neighbours in the row. The chips shrink one step here — nowhere else — so the strip
   keeps two lines as its ceiling even with the longest lab name. */
.passage .meta{display:grid;gap:6px;min-height:62px;align-content:start}
.passage .meta .meta-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:28px}
.passage .meta .badge{padding:4px 8px;font-size:11px;line-height:1.3}
/* Owner 2026-11-04, inside the same card: ভাষা ও সময় are the two chips a candidate scans for, so they read one
   step larger than the identity chips. The row they live in reserves the taller chip's height, so every card in a
   row still starts its title on the same line. */
.passage .meta .meta-row:first-child .badge{font-size:12px;padding:5px 9px}
/* Three columns only while a card is wide enough to hold the longest lab name plus its language and duration on one
   line; below that the grid drops to two columns, because a wrapped chip row is exactly the "cards don't line up"
   the owner pointed at. */
@media(max-width:1300px) and (min-width:981px){.passage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.passage h3{min-height:41px;margin:8px 0 4px}
.passage .p-code{min-height:16px}
.passage .actions{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:14px}
.passage .actions .btn.primary{flex:1 1 auto}
.passage:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);border-color:#d7e2db}
.passage:focus-within{border-color:var(--lab-accent,var(--primary))}

/* §35–§45 one filter bar: every control in the row shares height, radius, border, font size and focus,
   the labels sit above the controls, and the native select keeps its native popup. */
.select{appearance:none;-webkit-appearance:none;padding-right:34px;background-repeat:no-repeat;background-position:right 11px center;background-size:15px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d7269' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.search-wrap{position:relative;display:block}
.search-wrap .icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted);pointer-events:none}
.search-wrap .input{padding-left:34px}
.field.search{flex:2 1 260px}
.field.w-lab,.field.w-lang,.field.w-dur,.field.w-sort{flex:1 1 132px}
.filter-actions{display:flex;gap:8px;align-self:flex-end}
.filter-count{display:flex;align-items:center;gap:6px;align-self:flex-end;height:var(--control-height);font-size:11.5px;font-weight:800;color:var(--muted)}
.filter-count b{color:var(--text);font-weight:900;font-variant-numeric:tabular-nums}

/* §9–§12 the target table stays dense: numbers right-aligned on tabular figures, the best result on two lines. */
.table th.num,.table td.num{text-align:right;font-variant-numeric:tabular-nums}
.table tbody tr:hover td{background:#f7faf8}
.best-cell{display:grid;gap:1px}
.best-cell b{font-size:13px;font-weight:900;font-variant-numeric:tabular-nums}
.best-cell em{font-style:normal;font-size:11px;font-weight:700;color:var(--muted)}
.num-req{font-weight:800;font-variant-numeric:tabular-nums}

/* §52 an empty state is a composed panel, not a dashed gap in the page. */
.empty-state .ico{width:44px;height:44px;margin:0 auto 10px;border-radius:13px;background:var(--soft);color:var(--muted);display:grid;place-items:center}
.empty-state .ico svg{width:22px;height:22px}
.empty-state b{display:block;font-size:14px;font-weight:800;color:var(--text);margin-bottom:4px}
.empty-state p{margin:0 auto 12px;max-width:44ch;font-size:12px;line-height:1.6}
.empty-state .btn{min-width:150px}

@media(max-width:980px){
  .continue-card{grid-template-columns:44px minmax(0,1fr)}
  .continue-card .cc-action{grid-column:1/-1;justify-content:flex-start}
  .continue-card .cc-action .btn{flex:1 1 auto}
}
@media(max-width:620px){
  .filter-bar .field{flex:1 1 100%}
  .scroll-note{display:block;margin:0 0 6px;font-size:11px;font-weight:800;color:var(--muted);text-align:right}
  .filter-actions{width:100%}
  .filter-actions .btn{flex:1 1 0}
  .passage .actions{flex-wrap:wrap}
  .toolbar,.filter-bar{padding:12px}
}

/* ===== item E + F: lesson list, lesson details, one practice workspace, live metric tones ===== */
.head-compact{align-items:center;margin-bottom:14px}
.head-compact h1{font-size:24px;line-height:1.25}
.head-compact p{font-size:12.5px;margin-top:3px}
.head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* Item H: the list-first CRUD form is opened by ?new=1#crud-form — keep its top clear of the sticky header. */
#crud-form{scroll-margin-top:84px}
/* Item H §22: an inline grid-template-columns beats the media queries, so the editor rows that keep desktop
   proportions (2fr 1fr 1fr) are declared here instead and stack on a tablet/phone like the shared grids. */
.crud-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.crud-grid.cols-2{grid-template-columns:2fr minmax(0,1fr)}
.crud-grid.cols-3-wide{grid-template-columns:2fr minmax(0,1fr) minmax(0,1fr)}
/* Item S: a row whose last field only exists for some choices (the between-parts gap only exists when there are
   two parts). auto-fit drops the track of a field that is hidden instead of leaving a hole at the end of the row. */
.crud-grid.cols-fit{grid-template-columns:repeat(auto-fit,minmax(196px,1fr))}
@media(max-width:980px){.crud-grid,.crud-grid.cols-2,.crud-grid.cols-3-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.crud-grid,.crud-grid.cols-2,.crud-grid.cols-3-wide{grid-template-columns:minmax(0,1fr)}}
/* Item Q §1: one form system for every admin editor. A section groups related fields under its own Bangla title,
   the error belongs to the field it describes, the dock carries the actions in importance order, and the grid stays
   the only place columns are declared — so a form never loses its proportions at a small width. */
.form-section{display:grid;gap:11px;border:1px solid var(--border);border-radius:14px;background:#fff;padding:13px 14px 14px}
.form-section+.form-section{margin-top:12px}
.form-section>h3{margin:0;font-size:var(--text-nav);font-weight:900;color:#3c4c45;line-height:var(--lh-compact);display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.form-section>h3 small{font-weight:700;color:var(--muted);font-size:11px}
.form-section .crud-grid{gap:11px 12px}
.field-error{display:block;color:#c53b40;font-size:11px;font-weight:800;line-height:1.4}
.field-error:before{content:'!';display:inline-grid;place-items:center;width:13px;height:13px;border-radius:50%;
  background:#c53b40;color:#fff;font-size:9px;font-weight:900;margin-inline-end:5px;vertical-align:-2px}
.form-alert{display:grid;gap:6px;border:1px solid #eecaca;background:#fff5f5;border-radius:12px;padding:11px 13px}
.form-alert>b{color:#a63338;font-size:var(--text-xs)}
.form-alert ol{margin:0;padding-inline-start:18px;display:grid;gap:3px}
.form-alert li{color:#7b4247;font-size:11.5px;line-height:1.45}
.form-alert li b{color:#5f2b2e}
.ta-sm{min-height:74px}.ta-md{min-height:132px}.ta-tall{min-height:236px}
.form-dock{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.form-dock .btn{flex:0 0 auto}
.btn.is-loading{pointer-events:none;opacity:.75}
.btn.is-loading:before{content:'';width:13px;height:13px;border-radius:50%;flex:0 0 13px;
  border:2px solid currentColor;border-top-color:transparent;animation:btn-spin .7s linear infinite}
@keyframes btn-spin{to{transform:rotate(360deg)}}
@media(max-width:620px){.form-dock{align-items:stretch}.form-dock .btn{flex:1 1 46%}}
@media(prefers-reduced-motion:reduce){.btn.is-loading:before{animation-duration:2s}}
/* Item Q §2: an institution's own mark, shown wherever its name is written — the uploaded logo when the library
   holds one, the row's own initials when it does not. Never a stock icon: the fallback comes from the stored name. */
.inst-mark{width:34px;height:34px;border-radius:10px;background:#f0e9ff;color:#5b44b3;display:inline-grid;place-items:center;
  font-size:12px;font-weight:900;line-height:1;overflow:hidden;flex:0 0 auto;letter-spacing:.02em}
.inst-mark.has-img{background:#fff;border:1px solid var(--border)}
.inst-mark img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.inst-mark-28{width:26px;height:26px;border-radius:8px;font-size:11px}
.inst-mark-72{width:72px;height:72px;border-radius:14px;font-size:22px}
.inst-chip{display:inline-flex;align-items:center;gap:9px;min-width:0;line-height:1.25}
.inst-chip .nm{display:block;font-weight:800;font-size:13px}
.inst-chip .sb{display:block;color:var(--muted);font-size:11px}
.crud-grid .field.wide{grid-column:1/-1}
.inline-form{display:inline-flex}
.btn.util{background:#fff;color:#5b44b3;border-color:#e3dcf8}
.btn.util.on{background:#f3effe;color:#4a35a8;border-color:#cdbdf5;pointer-events:auto}
.btn.finish{background:#fff;color:#1a7a58;border-color:#bfe4d0}
.btn.finish:hover:not([disabled]){background:#eafaf1}
.btn.finish[disabled]{opacity:.45;cursor:not-allowed}
.btn-block{width:100%;margin-top:10px}
.lsn-list{display:grid;gap:10px}
.lsn-row{display:grid;grid-template-columns:44px 40px minmax(0,1fr) auto auto;align-items:center;gap:12px;border:1px solid var(--border);border-radius:14px;padding:12px 14px;background:var(--surface);transition:.16s}
.lsn-row:hover{border-color:#d7e2db;box-shadow:var(--shadow-hover)}
.lsn-row.is-done{background:#f7fcf9;border-color:#d8ecdf}
.lsn-num{font-size:13px;font-weight:900;color:#8b9a92;text-align:center}
.lsn-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#f1f5f3;color:#6b7d74}
.lsn-row.is-done .lsn-ico{background:#e6f7ee;color:var(--green)}
.lsn-ico svg{width:20px}
.lsn-main{min-width:0}
.lsn-main b{display:block;font-size:14px}
.lsn-main small{display:block;color:var(--muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lsn-done{display:inline-flex;align-items:center;gap:4px;color:#0f7a49;font-size:11px;font-weight:900;white-space:nowrap}
.lsn-done svg{width:14px}
.lsn-cta,.ex-cta{white-space:nowrap;flex:0 0 auto}
.lsn-cta svg,.ex-cta svg{width:15px}
.lesson-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:var(--gap-3);align-items:start}
.ls-obj,.ls-body{margin:0 0 12px;font-size:13.5px;line-height:1.75}
.ls-obj b,.ls-body b{display:block;font-size:11px;font-weight:900;color:var(--muted);letter-spacing:.03em;margin-bottom:2px}
.ls-label{font-size:11px;font-weight:900;color:var(--muted);letter-spacing:.03em;margin:14px 0 6px}
.fact-list{display:grid;margin:0}
.fact-list>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed #e9efeb}
.fact-list>div:last-child{border-bottom:0}
.fact-list dt{font-size:11.5px;color:var(--muted);font-weight:700}
.fact-list dd{margin:0;font-size:12.5px;font-weight:800;text-align:right}
.ls-preview{border:1px dashed #d9e2db;border-radius:12px;background:var(--surface2);padding:10px 12px;font-size:13px;line-height:1.7;color:#3d4f47;max-height:104px;overflow:hidden}
.ls-preview span{display:block}
.ex-list{display:grid;gap:10px}
.ex-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid var(--border);border-radius:14px;padding:12px 14px;background:var(--surface);transition:.16s}
.ex-row:hover{border-color:#d7e2db;box-shadow:var(--shadow-hover)}
.ex-ico{width:44px;height:44px;border-radius:12px;background:#f3effe;color:var(--primary);display:grid;place-items:center}
.ex-ico svg{width:20px}
.ex-main{min-width:0}
.ex-main h4{margin:0 0 2px;font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ex-main p{margin:0;font-size:11.5px;color:var(--muted)}
.ex-main .ex-best{margin-top:4px;color:#3f6b52;font-weight:700}
.ex-done{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:900;color:#0f7a49;background:#e6f7ee;border-radius:999px;padding:3px 8px}
.ex-done svg{width:12px}
.ls-mark{margin-top:14px}
.pw{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--gap-3);box-shadow:var(--shadow-card)}
.pw-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pw-stat{display:grid;gap:1px;border:1px solid var(--border);border-left:3px solid #cfd9d4;border-radius:12px;padding:7px 11px;background:var(--surface2);transition:background .2s,border-color .2s}
.pw-stat small{font-size:11px;font-weight:800;color:var(--muted)}
.pw-stat b{font-size:19px;font-weight:900;color:var(--text);font-variant-numeric:tabular-nums;line-height:1.3}
.pw-stat.t-good{background:#f2fbf5;border-color:#cdeeda;border-left-color:var(--green)}
.pw-stat.t-good b{color:#0f7a49}
.pw-stat.t-bad{background:#fef5f5;border-color:#f3d7d8;border-left-color:var(--red)}
.pw-stat.t-bad b{color:#b6383c}
.pw-stat.t-warn{background:#fef5f5;border-color:#f0cfcf;border-left-color:var(--red)}
.pw-stat.t-warn b{color:#b6383c;animation:pwWarn 1.2s ease-in-out infinite}
@keyframes pwWarn{0%,100%{opacity:1}50%{opacity:.5}}
.pw-target{margin-top:14px}
.pw-target-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.pw-target-head span{font-size:11px;font-weight:900;color:var(--muted);letter-spacing:.03em}
.pw-target-head em{font-style:normal;font-size:11px;font-weight:700;color:#7b8b83}
.pw-text{margin:6px 0 0;padding:15px 18px;font-size:22px;line-height:1.9;border-radius:12px;background:#fbfcfb;min-height:0}
.pw-key{text-align:center;font-size:23px;letter-spacing:.02em}
.pw-word,.pw-sentence{text-align:center}
.pw-paragraph{text-align:justify;font-size:19px;line-height:2}
.pw-keys{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:10px 0 0}
.keycap{display:grid;place-items:center;min-width:42px;height:34px;padding:0 9px;border:1px solid #d9e2dc;border-bottom-width:3px;border-radius:8px;background:#fff;font-size:13px;font-weight:800;color:#4a5a52}
.pw-form{margin-top:14px}
.pw-input{min-height:150px;font-size:21px;line-height:1.85;border-color:var(--border-ctl)}
.pw-input[disabled]{background:#f6f8f7;color:#93a29b;cursor:not-allowed}
.pw-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.pw-hint{margin:8px 0 0;font-size:11.5px;color:var(--muted)}
.pw-live{display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 2px 12px;font-size:11.5px;font-weight:700;color:var(--muted)}
.pw-live span{display:inline-flex;align-items:center;gap:6px}
.pw-live svg{width:14px;height:14px;flex:0 0 14px}
.pw-live b{color:var(--text);font-weight:900;font-variant-numeric:tabular-nums}
/* Item G §20 a notice a member has already opened is visibly opened — the class is per member, so one
   learner's read state can never dim another's list. The tint lives here, not in the template. */
.list-item[data-notice],.list-item[data-nid]{cursor:pointer}
.list-item.unread{border-color:#dfe8e2;background:#f7f9ff}
.list-item.read{opacity:.66}
.list-item.read:hover{opacity:1}
.list-item.read [data-newchip]{display:none}
/* Item I-E — the authentication stage, rebuilt on the owner's auth.html reference of 2026-10-29: a typing stage on
   the left that demonstrates the Bijoy keyboard, and the real server form on the right.
   The reference palette is namespaced --a-* and declared on body.auth-body alone, so it cannot leak into the shell's
   own tokens; the light scheme is also the owner's 2026-10-25 override, and the deleted background layer stays
   deleted — nothing here paints behind these two panels.
   Both grid tracks are minmax(0,…) and every column list is minmax(0,1fr): a grid item's automatic minimum size is
   its min-content width, and a text input's min-content is its ~20-character box, which is what once pushed a
   390px phone sideways. The reference's 8–9px keycap sub-labels are raised to the --text-2xs floor instead; a
   reader cannot be asked to squint at 8px, and §43 of the responsive sweep would fail it. */
body.auth-body{--a-bg:#f4f7f5;--a-panel:#eaf1ed;--a-surface:#fff;--a-ink:#14231c;--a-muted:#5a6b62;--a-line:#d8e2dc;--a-field:#eef3ff;--a-brand:#1e9e5a;--a-brand-d:#157a45;--a-accent:#7b3fe4;--a-err:#c62f3d;--a-key:#fff;--a-keyline:#cbd7d0;--a-pad:clamp(24px,5vw,64px);--a-box:612px;--a-shadow:0 24px 60px -28px rgba(20,35,28,.35);background:var(--a-bg);color:var(--a-ink);font-size:15px;line-height:1.6;display:flex;flex-direction:column;min-height:100vh}
.auth-page{flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:0}
/* The two panels are one row: both pad from the same --a-pad and both boxes are at least --a-box tall, so on the
   short forms the demonstration and the form share a top edge and a bottom edge and read as two boxes on one line.
   The height is a floor, not a stretch — the taller register or reset card grows on its own and the typewriter box
   stays exactly the size it is on the login page, which is what the owner asked for on 2026-10-29. */
/* The brand is the page's own title: one centred band above the split between the typing stage and the form. It is
   painted as two halves — the stage green continues up behind the left column, the page neutral behind the right,
   split exactly at the 1.05fr / 1fr boundary above (1.05 ÷ 2.05 = 51.2195%) — so the typewriter panel and the login
   panel read parallel from the first pixel instead of meeting the band at a seam. */
.auth-top{position:relative;flex:0 0 auto;padding:28px 20px 24px;background:linear-gradient(90deg,var(--a-panel) 0 51.2195%,var(--a-bg) 51.2195% 100%)}
.auth-top-inner{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.auth-top .auth-brand{justify-content:center}
.auth-top .auth-tag{max-width:56ch}
/* left: the typing stage */
.auth-stage{background:var(--a-panel);padding:var(--a-pad);display:flex;flex-direction:column;gap:20px;position:relative;min-width:0}
.auth-stage>*{min-width:0}
.auth-home{position:absolute;top:20px;left:20px;display:inline-flex;gap:8px;align-items:center;padding:9px 16px;border:1px solid var(--a-line);border-radius:12px;background:var(--a-surface);color:var(--a-ink);font-weight:600;font-size:14px}
.auth-home:hover{border-color:var(--a-brand);color:var(--a-brand-d)}
.auth-brand{display:flex;align-items:center;gap:14px}
.auth-top .logo{width:52px;height:52px;border-radius:15px;flex:0 0 52px;background:var(--a-surface);display:grid;place-items:center;box-shadow:0 8px 24px -8px rgba(123,63,228,.55)}
.auth-brand b{font-weight:800;font-size:34px;line-height:1;letter-spacing:-.02em;overflow-wrap:anywhere}
.auth-tag{margin:0;color:var(--a-muted);max-width:44ch}
.auth-typing{display:flex;flex-direction:column;min-height:var(--a-box);background:var(--a-surface);border:1px solid var(--a-line);border-radius:20px;padding:22px 24px;box-shadow:var(--a-shadow)}
.auth-typing h2{margin:0 0 12px;font-size:15px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.auth-live{display:inline-flex;gap:6px;align-items:center;color:var(--a-brand);font-size:13px;font-weight:600}
.auth-live i{width:8px;height:8px;border-radius:50%;background:var(--a-brand);animation:aPulse 1.4s infinite}
@keyframes aPulse{50%{opacity:.25}}
.auth-line{flex:1 1 auto;font-size:clamp(20px,2.2vw,26px);line-height:1.7;min-height:5.2em;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.auth-wrong{color:var(--a-err);background:color-mix(in srgb,var(--a-err) 16%,transparent);border-radius:4px}
.auth-caret{display:inline-block;width:2px;height:1.2em;background:var(--a-accent);vertical-align:-.2em;margin:0 1px;animation:aBlink 1s steps(1) infinite}
@keyframes aBlink{50%{opacity:0}}
.auth-rest{color:var(--a-muted);opacity:.7}
.auth-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--a-line)}
.auth-stats div{display:flex;flex-direction:column;min-width:0}
.auth-stats strong{font-weight:700;font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums}
.auth-stats span{font-size:13px;color:var(--a-muted)}
.auth-note{margin:0;font-size:13px;color:var(--a-muted)}
/* the keyboard the demonstration types on */
.auth-kb{margin-top:14px;padding:8px;border-radius:14px;background:var(--a-bg);border:1px solid var(--a-line);display:flex;flex-direction:column;gap:4px}
.auth-kr{display:flex;gap:4px}
.auth-k{flex:var(--w,1) 1 0;min-width:0;height:clamp(28px,3.1vw,38px);border-radius:7px;background:var(--a-key);border:1px solid var(--a-keyline);border-bottom-width:3px;position:relative;display:grid;place-items:center;font-weight:600;font-size:clamp(12px,1.2vw,15px);line-height:1;transition:transform .08s,background .08s,border-color .08s}
.auth-k small{position:absolute;font-weight:600;font-size:var(--text-2xs);line-height:1;color:var(--a-muted)}
.auth-k .lt{left:3px;bottom:2px}
.auth-k .sh{right:3px;top:2px}
.auth-k.mod{font-size:var(--text-2xs);color:var(--a-muted)}
.auth-k.on{transform:translateY(2px);border-bottom-width:1px;background:color-mix(in srgb,var(--a-brand) 24%,var(--a-key));border-color:var(--a-brand)}
.auth-sp{flex:3 1 0}
/* right: the form card */
.auth-side{display:flex;align-items:flex-start;justify-content:center;padding:var(--a-pad);min-width:0}
.auth-card{display:flex;flex-direction:column;justify-content:center;min-height:var(--a-box);width:min(100%,470px);min-width:0;background:var(--a-surface);border:1px solid var(--a-line);border-radius:24px;padding:clamp(22px,4vw,38px);box-shadow:var(--a-shadow)}
.auth-card h1{margin:0 0 6px;font-size:30px;line-height:1.25;font-weight:700}
.auth-lead{margin:0 0 22px;color:var(--a-muted)}
.auth-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--a-bg);border:1px solid var(--a-line);border-radius:14px;padding:4px;margin-bottom:22px}
.google-signin-frame{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;margin:6px 0 12px}
.google-signin-frame #google-signin{display:flex;width:100%;max-width:100%;min-width:0;justify-content:center;overflow:hidden}
.google-signin-frame iframe{display:block;max-width:100%!important}
.auth-seg a{padding:8px;text-align:center;border-radius:10px;color:var(--a-muted);font-weight:600;font-size:14px}
.auth-seg a:hover{color:var(--a-ink)}
.auth-seg a[aria-current="page"]{background:var(--a-surface);color:var(--a-ink);box-shadow:0 1px 4px rgba(0,0,0,.14)}
.auth-f{margin-bottom:16px;min-width:0}
.auth-f label{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px}
.auth-f label em{color:var(--a-err);font-style:normal}
.auth-in{position:relative}
.auth-in input{width:100%;height:50px;padding:0 16px;background:var(--a-field);border:1.5px solid transparent;border-radius:14px;color:var(--a-ink);outline:none;transition:border-color .15s,background .15s,box-shadow .15s}
.auth-in input:focus{border-color:var(--a-accent);background:var(--a-surface);box-shadow:0 0 0 3px rgba(123,63,228,.16)}
.auth-in[data-eye] input{padding-right:50px}
.auth-eye{position:absolute;right:6px;top:6px;width:38px;height:38px;border:0;background:none;border-radius:10px;cursor:pointer;color:var(--a-muted);display:grid;place-items:center}
.auth-eye:hover{color:var(--a-accent)}
.auth-f.bad input{border-color:var(--a-err)}
.auth-error{display:none;margin:5px 2px 0;font-size:13px;color:var(--a-err)}
.auth-f.bad .auth-error{display:block}
.auth-hint{margin:5px 2px 0;font-size:12.5px;color:var(--a-muted)}
.auth-meter{display:flex;gap:4px;margin-top:8px}
.auth-meter i{flex:1;height:4px;border-radius:2px;background:var(--a-line);transition:background .2s}
.auth-meter[data-s="1"] i:nth-child(-n+1){background:var(--a-err)}
.auth-meter[data-s="2"] i:nth-child(-n+2){background:#e5a100}
.auth-meter[data-s="3"] i:nth-child(-n+3){background:#7bbf3a}
.auth-meter[data-s="4"] i{background:var(--a-brand)}
.auth-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.auth-chk{display:flex;gap:9px;align-items:flex-start;font-size:14px;cursor:pointer}
.auth-chk input{width:18px;height:18px;margin:3px 0 0;accent-color:var(--a-brand);flex:0 0 18px}
/* Item V (owner 2026-11-04): `.auth-f label{display:block}` just above outranks `.auth-chk`, so on the register and
   re-consent cards the consent row lost its flex layout — the box fell back to an inline control riding above the
   Bangla text line with no gutter. Re-declared with the parent in the selector it wins, and the box is centred on the
   first line (an 18px box inside a 21.7px line) instead of pinned to its top. */
.auth-f label.auth-chk,.auth-chk{display:flex;gap:9px;align-items:flex-start;margin-bottom:0}
.auth-chk input{margin-top:2px}
.auth-chk>span{line-height:1.55}
/* Item V (owner 2026-11-04, re-issued the same day): the two numbered steps became the one line the owner wrote out —
   read, then tick — because the page already runs top to bottom in that order. The tick lives in a card of its own, so
   the box, the Bangla sentence and its own error read as one control instead of three loose parts. */
.auth-rc{margin:0 0 12px;padding:11px 14px;border:1px solid var(--a-line);border-radius:14px;background:var(--a-field);
  font-size:14px;line-height:1.55;color:var(--a-muted)}
.auth-chkbox{padding:12px 14px;border:1px solid var(--a-line);border-radius:14px;background:var(--a-field);
  transition:border-color .15s,background .15s}
.auth-chkbox:hover{border-color:var(--a-brand)}
.auth-chkbox.bad{border-color:var(--a-err);background:color-mix(in srgb,var(--a-err) 6%,var(--a-field))}
.auth-chkbox .auth-error{margin:6px 0 0}
.auth-link{color:var(--a-accent);font-weight:600;font-size:14px;background:none;border:0;padding:0;cursor:pointer;font-family:inherit;text-align:left}
.auth-link:hover{text-decoration:underline}
.auth-btn{width:100%;height:52px;margin:6px 0 18px;border:0;border-radius:14px;background:var(--a-brand);color:#fff;font-weight:700;font-size:16.5px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:background .15s,transform .1s}
.auth-btn:hover{background:var(--a-brand-d)}
.auth-btn:active{transform:translateY(1px)}
.auth-btn[disabled]{opacity:.7;cursor:progress}
.auth-spin{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:aSpin .7s linear infinite;display:none}
.auth-btn[disabled] .auth-spin{display:block}
@keyframes aSpin{to{transform:rotate(360deg)}}
/* The six code boxes replace the single real input only once app.js has built them (the .auth-f carries otp-on),
   so the recovery form still submits with scripting switched off. */
.auth-otp{display:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.auth-f.otp-on .auth-otp{display:grid}
.auth-f.otp-on .auth-single{display:none}
.auth-otp input{width:100%;min-width:0;height:56px;padding:0;text-align:center;font-size:22px;font-weight:700;background:var(--a-field);border:1.5px solid transparent;border-radius:14px;color:var(--a-ink);outline:none}
.auth-otp input:focus{border-color:var(--a-accent);background:var(--a-surface);box-shadow:0 0 0 3px rgba(123,63,228,.16)}
.auth-f.bad .auth-otp input{border-color:var(--a-err)}
.auth-alert{margin:0 0 16px;padding:11px 14px;border-radius:12px;font-size:14px;background:color-mix(in srgb,var(--a-brand) 14%,transparent);border:1px solid var(--a-brand)}
.auth-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
@media (max-width:900px){
  /* With the stage hidden there is no green column to continue, so the band is plain field again. */
  .auth-top{padding:20px 16px 18px;background:var(--a-bg)}
  .auth-top .auth-brand b{font-size:26px}
  .auth-page{grid-template-columns:minmax(0,1fr)}
  /* The brand moved to the band above, so on a phone the stage would hold nothing but hidden children. */
  .auth-stage{display:none}
  .auth-typing,.auth-note{display:none}
  .auth-side{padding-top:8px}
}
@media (prefers-reduced-motion:reduce){
  .auth-caret,.auth-live i{animation:none}
  .auth-k,.auth-btn,.auth-meter i,.auth-in input{transition:none}
}
.pw-note{display:flex;align-items:flex-start;gap:7px;margin:12px 0 0;padding:9px 12px;border-radius:11px;background:#f5f2fe;border:1px solid #e6dffa;color:#4c3f7d;font-size:11.5px;font-weight:600}
.pw-note svg{width:15px;flex:0 0 15px;margin-top:3px}
.pw-prev{display:flex;align-items:center;gap:7px;margin:0 0 12px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:12px;color:var(--muted)}
.pw-prev svg{width:16px;flex:0 0 16px;color:var(--orange)}
.pw-prev b{color:var(--text)}
.pw-prev em{margin-left:auto;font-style:normal;font-weight:800;color:var(--primary)}
.pw-foot{display:flex;align-items:center;gap:7px;margin:12px 0 0;font-size:11.5px;color:var(--muted)}
.pw-foot svg{width:15px;flex:0 0 15px}
.pw-foot a{color:#5b44b3;font-weight:800}
@media(max-width:992px){.lesson-grid{grid-template-columns:minmax(0,1fr)}.pw-text{font-size:20px}}
@media(max-width:768px){.lsn-row{grid-template-columns:34px 36px minmax(0,1fr);grid-template-areas:"num ico main" "dot dot done" "cta cta cta";row-gap:8px}.lsn-num{grid-area:num}.lsn-ico{grid-area:ico;width:36px;height:36px}.lsn-main{grid-area:main}.lsn-done{grid-area:done;justify-self:start}.lsn-cta{grid-area:cta}.lsn-cta svg:last-child{display:none}
.ex-row{grid-template-columns:40px minmax(0,1fr);grid-template-areas:"ico main" "cta cta";row-gap:10px}.ex-ico{grid-area:ico;width:40px;height:40px}.ex-main{grid-area:main}.ex-cta{grid-area:cta}}
@media(max-width:620px){.pw-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pw-text{font-size:19px;padding:13px 14px}.pw-input{font-size:18px;min-height:132px}.head-compact h1{font-size:20px}}
@media(max-width:414px){.pw-actions{gap:8px}.pw-actions .btn{flex:1 1 100%}.keycap{min-width:38px;height:32px;font-size:12px}}
@media (prefers-reduced-motion:reduce){.pw-stat.t-warn b{animation:none}.pw-stat{transition:none}}
.fact-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
@media(max-width:620px){.fact-two{grid-template-columns:minmax(0,1fr)}}
.pw-band{display:flex;align-items:flex-start;gap:12px;margin:10px 0;padding:14px 16px;border-radius:14px;border:1px solid transparent;font-weight:900;font-size:18px}
.pw-band svg{width:22px;flex:0 0 22px;margin-top:2px}
.pw-band.is-strong{background:#f2fbf5;color:#0f7a49;border-color:#cdeeda}
.pw-band.is-weak{background:#fdf7ef;color:#8a5a1e;border-color:#f0dcc0}
.pw-band small{display:block;font-size:12px;font-weight:600;opacity:.85}
.pw-band-body{flex:1;min-width:0}

/* §79 measured /leaderboard and /admin/analytics 10–11px wider than the viewport at exactly 992px: a four-up stat
   grid leaves the text column too narrow there, and a flex item will not shrink below its min-content floor. */
.stat{min-width:0}.stat>div{min-width:0;overflow-wrap:anywhere}

/* Item J §6–§10: one container scale for the whole site. 1366 and 1440 keep the widths every page was approved at;
   only genuinely wide displays get more room, and they get it from these two tokens rather than a new max-width
   written into a view. */
@media(min-width:1920px){:root{--wrap-content:1440px;--wrap-home:1320px}}
@media(min-width:2400px){:root{--wrap-content:1600px;--wrap-home:1480px}}

/* ---- Item K-F: combined Bangla + English papers ----
   The member card list and the combined verdict. The verdict itself is the .rs-verdict card the ordinary
   result page already owns; a component is the same card in miniature, never a second colour system. */
.ce-list{display:grid;gap:4px;margin:8px 0 0;font-size:12px}
.ce-list div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px dashed var(--border);padding-bottom:3px;min-width:0}
.ce-list span{color:var(--muted);font-weight:700;white-space:nowrap}
.ce-list b{color:var(--text);font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ce-parts{display:grid;gap:10px;align-content:start;min-width:0}
.ce-part{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center;
  border:1px solid var(--border);border-radius:13px;background:#f8faf9;padding:10px 12px;min-width:0}
.ce-part>b{font-size:13px;font-weight:900;min-width:0}
.ce-part .rs-verdict.sm{display:inline-block;padding:4px 14px;border-radius:10px;font-size:14px;font-weight:900;text-align:center}
.ce-figs{grid-column:1/-1;display:flex;gap:16px;flex-wrap:wrap}
.ce-figs span{display:grid;font-size:11px;font-weight:900;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.ce-figs b{font-size:18px;font-weight:900;color:var(--text);font-variant-numeric:tabular-nums;text-transform:none}
.ce-when{grid-column:1/-1;font-size:11.5px;font-weight:700;color:var(--muted)}
.ce-when a{color:#5b44b3;font-weight:800}
@media(max-width:620px){.ce-part{grid-template-columns:minmax(0,1fr)}}

/* ---- Item K-G: custom group exams (member list, room, merit board, admin register) ----
   The room is an information hub, not a distraction-free exam shell, so it wears the user layout: the .ce-* verdict
   cards it reuses are the ones defined in this stylesheet (exam.css owns only the dial), and the group-only figures
   get their own .gr-* set. The typing stages themselves are the lab's own screens and add nothing here. */
.gr-quota{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:1px;margin-bottom:14px;
  border:1px solid var(--border);border-radius:var(--radius-card);background:var(--border);overflow:hidden;
  box-shadow:var(--shadow-card)}
.gr-quota div{display:grid;gap:3px;padding:11px 13px;background:var(--surface);min-width:0}
.gr-quota small{font-size:11px;font-weight:800;letter-spacing:.02em;color:var(--muted)}
.gr-quota b{font-size:16px;font-weight:900;color:var(--text);font-variant-numeric:tabular-nums;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* §49 a tab carries its own row count, so the label never promises a list the query did not return. */
.tab-n{display:inline-block;margin-left:7px;padding:1px 7px;border-radius:999px;background:#e6eef9;color:#3f6079;
  font-size:11px;font-weight:900;font-variant-numeric:tabular-nums}
.tab.active .tab-n{background:#d7efdd;color:#148357}

/* Item S §12–§14 the builder: the form stacks one band per decision, and each band's own .crud-grid decides its
   columns. Before this the form itself was the auto-fit grid, so the four .form-section bands became 212px
   columns side by side and their fields folded on top of each other. */
.gr-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.gr-form>.form-section+.form-section,.gr-form>.form-dock{margin-top:0}

.gr-inline{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.gr-inline .field{flex:1 1 190px}
.gr-wait{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 0;padding:0;list-style:none;font-size:12px}
.gr-wait b{font-weight:900;color:var(--muted)}
.gr-wait li{padding:4px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:#587064;font-weight:700}

/* §51 the room: the member's own controls beside the paper's facts, collapsing to one column when there is no width. */
.gr-room{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:14px;align-items:start}
.gr-main,.gr-side{display:grid;gap:0;align-content:start;min-width:0}
.gr-main>.panel+.panel,.gr-side>.panel+.panel{margin-top:14px}
.gr-invite>p,.gr-trans>p{font-size:13px;line-height:var(--lh-prose);color:#41564c}
.gr-papers{display:grid;gap:6px;margin:12px 0 0;padding:0;list-style:none;font-size:11.5px;line-height:1.5;color:#587064}
.gr-papers li{padding:7px 10px;border:1px solid var(--border);border-radius:11px;background:#f8faf9;min-width:0;
  overflow-wrap:anywhere}
.gr-papers b{display:inline-block;margin-right:5px;font-weight:900;color:var(--text)}
@media(max-width:980px){.gr-room{grid-template-columns:minmax(0,1fr)}}

/* §25 the mid-paper countdown. Same reading as the exam shell's .ce-dial, drawn from this stylesheet's own tokens. */
.gr-dial{display:inline-grid;gap:2px;justify-items:center;margin:10px auto 14px}
.gr-dial .num{font-family:"Courier New",monospace;font-size:44px;font-weight:800;line-height:1;color:#b26a00;
  font-variant-numeric:tabular-nums}
.gr-dial .cap{font-size:12px;font-weight:700;color:var(--muted)}
.gr-dial.low .num{color:var(--red,#c53b40);animation:grBlink 1.1s ease-in-out infinite}
@keyframes grBlink{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.gr-dial.low .num{animation:none}}

/* §40/§43 a seat is a person, so every board row leads with the same avatar the rest of the site uses; your own row
   is tinted, never re-ordered. */
.gr-who{display:flex;align-items:center;gap:8px;min-width:0}
.gr-who b,.gr-who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gr-board .gr-who{font-size:12px}
table .gr-me,table .gr-me:hover{background:#f2fbf5}
table .gr-me td:first-child{box-shadow:inset 3px 0 0 var(--green)}
/* A ten-column merit board must not inherit the generic 820px table floor on a phone; the wrap already scrolls. */
.gr-board{min-width:720px}

/* §29/§30/§40 the stored figures of one seat, as a tabular strip — inside a component card it spans the card,
   beside a heading it is the whole panel body. */
.gr-figs{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:1px;margin-top:8px;
  border:1px solid var(--border);border-radius:12px;background:var(--border);overflow:hidden}
.gr-figs span{display:grid;gap:2px;padding:9px 11px;background:var(--surface);min-width:0}
.gr-figs small{font-size:10.5px;font-weight:900;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.gr-figs b{font-size:17px;font-weight:900;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* §37 the room's own verdict: the same card the result page owns, which as a span would otherwise stay inline. */
.gr-verdict>.rs-verdict{display:block;max-width:520px;margin:4px auto 12px}

@media(max-width:620px){.gr-dial .num{font-size:36px}.gr-quota{grid-template-columns:repeat(auto-fit,minmax(126px,1fr))}
  .gr-figs{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}.gr-figs b{font-size:15px}}

/* ---- Item T §1 — the custom passage preview ----
   The paper is read here, never typed, so it borrows the office reference's own reading geometry (390px, 21px,
   line-height 1.95, justified) rather than inventing a second look; the meter is the same auto-fit strip every
   quota band in this app uses, and the lab/duration pickers are the shared filter widths so the row cannot
   re-wrap differently from a list page. */
.cp-meter{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:1px;margin:0 0 14px;
  border:1px solid var(--border);border-radius:13px;background:var(--border);overflow:hidden}
.cp-meter div{display:grid;gap:3px;padding:11px 13px;background:var(--surface);min-width:0}
.cp-meter small{font-size:11px;font-weight:800;letter-spacing:.02em;color:var(--muted)}
.cp-meter b{font-size:16px;font-weight:900;color:var(--text);font-variant-numeric:tabular-nums;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-paper{height:390px;overflow-y:auto;padding:20px 26px;border:1px solid var(--border);border-radius:12px;
  background:#fbfcfb;font-size:21px;line-height:1.95;text-align:justify;white-space:pre-wrap;overflow-wrap:anywhere}
.cp-pick{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:2px}
.cp-pick .field{flex:1 1 160px}
.cp-pick .btn{flex:0 0 auto}
@media(max-width:760px){.cp-paper{font-size:18px;padding:16px 18px}}
@media(max-width:620px){.cp-meter{grid-template-columns:repeat(auto-fit,minmax(126px,1fr))}
  .cp-paper{height:300px;font-size:17px;line-height:1.85}.cp-pick .field{flex:1 1 100%}.cp-pick .btn{flex:1 1 100%}}

/* ===== Item M-A — the activated package on /subscription, and the navbar notice marquee =====
   The package card answers two questions the price list cannot: which plan is live for this member, and how
   long is left. The count is drawn from expires_at on the server, so a wrong browser clock cannot change it. */
.sub-current{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:16px;padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-card)}
.sub-current.is-active{border-color:#cde8d8;background:linear-gradient(180deg,#f4fbf7,#fff)}
.sub-current-main{min-width:0;display:flex;flex-direction:column;gap:4px}
.sub-current-k{font-size:var(--text-2xs);font-weight:800;letter-spacing:.04em;color:var(--muted)}
.sub-current h2{margin:0;font-size:var(--text-2xl);line-height:var(--lh-compact);overflow-wrap:anywhere}
.sub-current-meta{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;margin-top:6px;font-size:var(--text-xs);color:var(--muted)}
.sub-current-meta span{display:inline-flex;align-items:center;gap:5px}
.sub-current-meta .icon{width:14px;height:14px}
.sub-current-count{flex:0 0 auto;min-width:112px;text-align:center;padding:10px 16px;border:1px dashed #cde8d8;border-radius:14px;background:#fff}
.sub-current-count b{display:block;font-size:34px;line-height:1.1;font-weight:900;color:var(--green);font-variant-numeric:tabular-nums}
.sub-current-count b.is-word{font-size:var(--text-xl);line-height:1.5}
.sub-current-count small{font-size:var(--text-2xs);font-weight:800;color:var(--muted)}
.plan-now{position:absolute;left:14px;top:14px;display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:#e6faf1;color:#078257;font-size:11px;font-weight:900}
.plan-now .icon{width:13px;height:13px}
.plan:has(.plan-now){border-color:#cde8d8}
.plan:has(.plan-now) h3{margin-top:22px}


/* ==========================================================================
   Item O — the owner's UI/UX refinement pass (2026-11-01): the six button roles, dashboard cards with a real
   identity per metric / lab / module, the rail menu borders back on, and Notice separated from personal
   Notification. Two things changed the app's look rather than only adding to it: the eight dashboard statistics
   tiles are one compact family at the owner's direction (the primary/secondary size pair is replaced here, not
   kept), and the lab category cards take a flat tint of their own lab colour. Everything else overrides by being
   more specific, so the geometry contracts tests/views.php reads byte-for-byte stay where they were.
   ========================================================================== */

/* One scale for a soft icon container plus its ink, used by stat tiles, quick-access tiles, lab cards and both
   kinds of message. These tones are identity, never a verdict — a verdict stays with the .status-badge tones. */
:root{--tone-green-bg:#e8f7ef;--tone-green-fg:#0f7a4f;--tone-blue-bg:#e9f1fe;--tone-blue-fg:#1d5bc4;
 --tone-violet-bg:#f1ecfd;--tone-violet-fg:#5b44b3;--tone-teal-bg:#e3f5f8;--tone-teal-fg:#0a7b8a;
 --tone-amber-bg:#fdf3e2;--tone-amber-fg:#a5670a;--tone-rose-bg:#fdecec;--tone-rose-fg:#c53b40;
 --tone-slate-bg:#eef2f7;--tone-slate-fg:#475467}

/* §1 six roles, one family. Green is the brand and the success fill; violet, blue and teal are the other
   affirmative actions; amber asks for attention; red stays reserved for destructive work. --btn-soft-* used to be
   a green tint, which is why every page read as one colour: Secondary is cool neutral now, so Primary is the only
   green button in a row. */
:root{--btn-secondary-bg:#eef2f7;--btn-secondary-fg:#3b4a5f;--btn-secondary-border:#dde5ee;
 --btn-warning-bg:#f0a020;--btn-warning-fg:#3d2600;--btn-info-bg:var(--blue);--btn-teal-bg:var(--cyan)}
.btn.soft,.btn.secondary{background:var(--btn-secondary-bg);color:var(--btn-secondary-fg);border-color:var(--btn-secondary-border)}
.btn.outline{background:#fff;color:var(--text);border-color:var(--border-ctl)}
.btn.warning{background:var(--btn-warning-bg);color:var(--btn-warning-fg);border-color:transparent}
.btn.info{background:var(--btn-info-bg);color:#fff;border-color:transparent}
.btn.teal{background:var(--btn-teal-bg);color:#fff;border-color:transparent}
.btn.warning:hover,.btn.info:hover,.btn.teal:hover,.btn.purple:hover,.btn.danger:hover{box-shadow:0 7px 18px rgba(40,45,80,.14)}

/* §1/§5 the eight statistics: one tint per figure, its own icon, and a one-line note that says what the number
   counted. Owner 2026-11-01 re-ruled the size — the two rows are no longer a big/small pair, so the compact
   geometry (10px card padding, 32px icon, 19px figure) is declared once for both rows and the tone only picks
   the icon ink and the 3px left edge. Admin KPI and leaderboard tiles never sit inside a .stat-row--* wrapper,
   so they keep their own scale. */
.stat .note{display:block;margin:2px 0 0;color:var(--muted);font-size:var(--text-2xs);line-height:var(--lh-compact)}
.stat-row--primary>.stat,.stat-row--secondary>.stat{padding:10px 12px;gap:10px;border-left:3px solid var(--primary)}
.stat-row--primary>.stat .ico,.stat-row--secondary>.stat .ico{width:32px;height:32px;flex:0 0 32px;border-radius:10px}
.stat-row--primary>.stat strong,.stat-row--secondary>.stat strong{font-size:var(--text-xl);margin-top:2px}
.stat .ico.tone-green{background:var(--tone-green-bg);color:var(--tone-green-fg)}
.stat .ico.tone-blue{background:var(--tone-blue-bg);color:var(--tone-blue-fg)}
.stat .ico.tone-violet{background:var(--tone-violet-bg);color:var(--tone-violet-fg)}
.stat .ico.tone-teal{background:var(--tone-teal-bg);color:var(--tone-teal-fg)}
.stat .ico.tone-amber{background:var(--tone-amber-bg);color:var(--tone-amber-fg)}
.stat .ico.tone-rose{background:var(--tone-rose-bg);color:var(--tone-rose-fg)}
.stat .ico.tone-slate{background:var(--tone-slate-bg);color:var(--tone-slate-fg)}
.stat.tone-green{border-left-color:var(--green)}
.stat.tone-blue{border-left-color:var(--blue)}
.stat.tone-violet{border-left-color:var(--primary)}
.stat.tone-teal{border-left-color:var(--cyan)}
.stat.tone-amber{border-left-color:var(--orange)}
.stat.tone-rose{border-left-color:var(--red)}
.stat.tone-slate{border-left-color:#94a3b8}

/* §1 the lab cards - owner 2026-11-01 settled how colour is split across them, and 2026-11-03 that each lab shows
   exactly two, one per language: the shell stays one uniform white surface and the two action buttons stay one
   uniform pair (brand green Start, neutral Passage), so the lab is read from its own chip and the 4px accent strip
   fed by --lab-accent. The colour spent on a card belongs to what the candidate actually chooses it by - its
   language. Bangla green, English blue. A paper's length is decided in the library, so no card carries a duration. */
.badge.lang-bn{background:var(--tone-green-bg);color:var(--tone-green-fg)}
.badge.lang-en{background:var(--tone-blue-bg);color:var(--tone-blue-fg)}
.badge.dur{background:var(--tone-slate-bg);color:var(--tone-slate-fg);border:1px solid #e2e8f0}

/* §1 one identity per quick-access module: the module tone sits on the icon container, and the figure beside it
   reads in the same ink. The tile class itself stays .qa-tile, exactly as the rail tests count it. */
.qa-tile .ico.tone-green{background:var(--tone-green-bg);color:var(--tone-green-fg)}
.qa-tile .ico.tone-blue{background:var(--tone-blue-bg);color:var(--tone-blue-fg)}
.qa-tile .ico.tone-violet{background:var(--tone-violet-bg);color:var(--tone-violet-fg)}
.qa-tile .ico.tone-teal{background:var(--tone-teal-bg);color:var(--tone-teal-fg)}
.qa-tile .ico.tone-amber{background:var(--tone-amber-bg);color:var(--tone-amber-fg)}
.qa-tile .ico.tone-rose{background:var(--tone-rose-bg);color:var(--tone-rose-fg)}
.qa-tile .ico.tone-slate{background:var(--tone-slate-bg);color:var(--tone-slate-fg)}
.qa-tile:has(.ico.tone-green) .qa-count{color:var(--tone-green-fg)}
.qa-tile:has(.ico.tone-blue) .qa-count{color:var(--tone-blue-fg)}
.qa-tile:has(.ico.tone-violet) .qa-count{color:var(--tone-violet-fg)}
.qa-tile:has(.ico.tone-teal) .qa-count{color:var(--tone-teal-fg)}
.qa-tile:has(.ico.tone-amber) .qa-count{color:var(--tone-amber-fg)}
.qa-tile:has(.ico.tone-rose) .qa-count{color:var(--tone-rose-fg)}
.qa-tile:has(.ico.tone-slate) .qa-count{color:var(--tone-slate-fg)}
.qa-tile:has(.ico.tone-blue){border-color:#dbe7fb}
.qa-tile:has(.ico.tone-violet){border-color:#e4dbf8}
.qa-tile:has(.ico.tone-teal){border-color:#d5edf2}
.qa-tile:has(.ico.tone-amber){border-color:#f8e6c6}
.qa-tile:has(.ico.tone-green){border-color:#d7ecdf}
.qa-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}

/* §2 the rail, both audiences. Owner 2026-11-01 wants the menu rows boxed again, so every item and every
   accordion category carries a quiet border on the soft surface, a deeper tint on hover, and a white container
   with a green edge when it is the route you are on. One set of rules paints the member rail and the operator
   rail, which is what keeps the two panels looking like one product. */
.side-item{background:#fcfdfc;border:1px solid #dde8e1}
.side-item:hover{background:#eaf3ec;border-color:#cfe0d5;transform:none;box-shadow:none}
.side-item.active{background:#fff;border-color:#bcdcc8;box-shadow:none;transform:none}
.side-item.active>span:not(.side-icon){color:#14503a}
.side-parent{background:#fcfdfc;border:1px solid #dde8e1}
.side-parent:hover{background:#eaf3ec;border-color:#cfe0d5}
.side-group.open>.side-parent{background:#fff;border-color:#bcdcc8;color:#14503a}

/* §3 Notice and personal Notification are two kinds of message, so they are two boards: a violet megaphone board
   for what the admin announced and a slate bell board for what happened to this member. The notice card is wider,
   larger-typed and carries its accent as a left band; a personal row is a compact item whose icon tone comes from
   the event type. .notice-item and .list-item keep the names the read-state script toggles. */
.msg-board{padding:14px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-card)}
.msg-board+.msg-board{margin-top:14px}
.msg-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--border)}
.msg-head .mico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:0 0 38px}
.msg-head h2{margin:0;font-size:var(--text-xl);line-height:var(--lh-compact);color:var(--text)}
.msg-head p{margin:2px 0 0;color:var(--muted);font-size:var(--text-xs);line-height:var(--lh-compact)}
.msg-head .msg-count{margin-left:auto;font-size:var(--text-2xs);font-weight:900;padding:5px 10px;border-radius:var(--radius-pill);white-space:nowrap}
.msg-board--notice{background:#fbf9ff;border-color:#e6ddf8}
.msg-board--notice .mico,.msg-board--notice .msg-count{background:var(--tone-violet-bg);color:var(--tone-violet-fg)}
.msg-board--mine .mico,.msg-board--mine .msg-count{background:var(--tone-slate-bg);color:var(--tone-slate-fg)}
.notice-list,.notif-list{display:grid;gap:9px}
.notice-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:start;padding:14px;cursor:pointer;
 border:1px solid #e6ddf8;border-left:4px solid var(--primary2);border-radius:14px;background:#fff}
.notice-item .list-ico{width:44px;height:44px;border-radius:12px;background:var(--tone-violet-bg);color:var(--tone-violet-fg);flex:0 0 44px}
.notice-item h4{margin:0;font-size:var(--text-lg);line-height:var(--lh-compact);font-weight:900;color:var(--text)}
.notice-item p{margin:5px 0 0;font-size:var(--text-sm);line-height:var(--lh-prose);color:#41505c}
.notice-item .ni-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;color:var(--muted);font-size:var(--text-2xs)}
.notice-item.unread{background:#fdfcff;border-left-color:var(--primary)}
.notice-item.read{background:#fafaf9;border-left-color:#d8d3e6}
.notice-item.read h4{font-weight:800;color:#5b6672}
.notice-item.read .list-ico{background:var(--tone-slate-bg);color:var(--tone-slate-fg)}
.ni-flag{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:var(--radius-pill);
 background:var(--tone-amber-bg);color:var(--tone-amber-fg);font-size:var(--text-2xs);font-weight:900}
.ni-unread{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:var(--text-2xs);font-weight:900;
 white-space:nowrap;color:var(--tone-violet-fg)}
.ni-unread .dot{width:8px;height:8px;border-radius:50%;background:var(--primary2)}
.notif-item .list-ico{background:var(--tone-slate-bg);color:var(--tone-slate-fg)}
.notif-item.unread{background:#f8fafd;border-color:#d7e3f2}
.notif-item.read{opacity:.78}
.notif-item.read .list-ico,.notif-item.read .ni-unread{color:var(--tone-slate-fg)}
.list-ico.tone-green{background:var(--tone-green-bg);color:var(--tone-green-fg)}
.list-ico.tone-blue{background:var(--tone-blue-bg);color:var(--tone-blue-fg)}
.list-ico.tone-violet{background:var(--tone-violet-bg);color:var(--tone-violet-fg)}
.list-ico.tone-teal{background:var(--tone-teal-bg);color:var(--tone-teal-fg)}
.list-ico.tone-amber{background:var(--tone-amber-bg);color:var(--tone-amber-fg)}
.list-ico.tone-rose{background:var(--tone-rose-bg);color:var(--tone-rose-fg)}
.notif-item .ni-unread{color:var(--tone-blue-fg)}
.notif-item .ni-unread .dot{background:var(--blue)}
.notif-filter{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.notif-filter .chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:var(--radius-pill);
 border:1px solid var(--border-ctl);background:#fff;color:var(--tone-slate-fg);font-size:var(--text-2xs);font-weight:900;transition:.16s}
.notif-filter .chip:hover{background:var(--surface2);border-color:#cfd9e4}
.notif-filter .chip.on{background:var(--tone-slate-bg);border-color:#c9d6e5;color:#334155}
.notif-filter .chip b{font-weight:900;color:var(--text)}
@media(max-width:620px){.notice-item{grid-template-columns:minmax(0,1fr)}.notice-item .list-ico{width:38px;height:38px;flex:0 0 38px}}
/* Item O §3 addendum — the meta row is shared by both boards, so it is declared once for each card family. */
.list-ico.tone-slate{background:var(--tone-slate-bg);color:var(--tone-slate-fg)}
.notice-item .ni-meta,.notif-item .ni-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;color:var(--muted);font-size:var(--text-2xs);line-height:var(--lh-compact)}
.notice-item.read{opacity:.85}
.notif-item h4{margin:0;font-size:var(--text-nav);line-height:var(--lh-compact);font-weight:900}
.notif-item p{margin:4px 0 0;font-size:var(--text-sm);line-height:var(--lh-compact);color:#4a5763}
.notif-item .ni-kind{padding:3px 8px;border-radius:var(--radius-pill);background:var(--tone-slate-bg);color:var(--tone-slate-fg);font-weight:900}
.notif-item .btn{align-self:center;min-height:34px;padding:0 12px;font-size:var(--text-2xs)}
.msg-board .empty-state{margin-top:0}
@media(max-width:620px){.msg-head{flex-wrap:wrap}.msg-head .msg-count{margin-left:0;order:3}}
/* Item P §1–§5: the audit row's expand panel. The facts sit in a narrow card, the changed fields in a wide one,
   and the machine identifiers hide behind their own fold so the normal reading never shows a raw key or JSON. */
.audit-detail[hidden]{display:none}
.audit-detail>td{background:#f8fafb;padding:14px}
.audit-panel{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:14px;align-items:start}
.ap-side{background:#fff;border:1px solid var(--border);border-radius:13px;padding:12px}
.ap-job{margin:0 0 6px;font-size:14px;font-weight:900;line-height:var(--lh-compact);overflow-wrap:anywhere}
.ap-kv{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:6px 0;border-bottom:1px dashed #edf2ef;font-size:var(--text-2xs);line-height:var(--lh-compact)}
.ap-kv:last-child{border-bottom:0}
.ap-kv span{color:var(--muted);font-weight:800;flex:0 0 auto}
.ap-kv b{margin:0;min-width:0;text-align:right;font-weight:800;overflow-wrap:anywhere}
.ad-block{background:#fff;border:1px solid var(--border);border-radius:13px;padding:10px 12px;margin-bottom:10px}
.ad-cap{margin:0 0 8px;font-size:11px;font-weight:900;color:#587064;letter-spacing:.04em}
.ad-note{margin:0;font-size:var(--text-2xs);color:var(--muted)}
.ad-scroll{overflow-x:auto}
.ad-diff{width:100%;border-collapse:collapse;font-size:var(--text-2xs)}
.ad-diff th{text-align:left;padding:6px 8px;color:#587064;font-size:11px;background:#f4f7f5;border-bottom:1px solid #edf2ef}
.ad-diff td{padding:6px 8px;border-top:1px solid #edf2ef;vertical-align:top;overflow-wrap:anywhere;line-height:var(--lh-compact)}
.ad-diff tr.is-changed td{background:#fff8ec}
.ad-diff tr.is-changed td:last-child{font-weight:900}
.ad-mark{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:var(--radius-pill);background:var(--tone-amber-bg,#fff1d6);color:#b26d0b;font-size:10px;font-weight:900}
.ad-more{margin-top:8px;font-size:var(--text-2xs)}
.ad-more summary{cursor:pointer;font-weight:800;color:var(--muted)}
.ad-notes{margin:0;padding-left:18px;font-size:var(--text-2xs);display:grid;gap:4px}
.ad-secret{display:flex;align-items:center;gap:6px;margin:0 0 8px;padding:8px 11px;border-radius:11px;background:#fff8ec;border:1px solid #f3e3c0;color:#b26d0b;font-size:var(--text-2xs);font-weight:800}
.audit-job{font-weight:800;font-size:13px;line-height:var(--lh-compact);overflow-wrap:anywhere}
.audit-rec{display:inline-block;max-width:220px;overflow-wrap:anywhere}
.audit-fold{min-height:34px;padding:0 12px;font-size:var(--text-2xs)}
.audit-tech{margin-top:12px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:0 12px}
.audit-tech summary{cursor:pointer;font-size:var(--text-2xs);font-weight:900;color:#587064;padding:10px 0}
.audit-tech[open]{padding-bottom:8px}
@media(max-width:980px){.audit-panel{grid-template-columns:minmax(0,1fr)}}
/* Item P §5 mobile: the summary row keeps the table's horizontal scroll, but the expand panel is prose a
   phone reader must finish without dragging the table sideways — so the detail row leaves the table layout
   (display:block) and pins to the wrap's visible width instead of the table's content-driven scroll width. */
@media(max-width:700px){
  .audit-detail,.audit-detail>td{display:block;width:100%;box-sizing:border-box}
  .audit-detail>td{border-bottom:1px solid #edf2ef}
}

/* ===== Item R: My Profile as one Account Overview =====
   The page is a stack of cards that share the dashboard's statistic family, so only the identity header,
   the subscription card and the two summary grids are new. Every column pair is minmax(0,1fr) — a Bangla
   word or a long transaction id has to wrap inside its own track instead of pushing the page sideways. */
.po-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center}
.po-face{display:grid;justify-items:center;gap:6px}
.po-face form{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.po-face .btn{height:32px;padding:0 10px;font-size:var(--text-2xs)}
.po-avatar-note{margin:0;font-size:var(--text-2xs);color:var(--muted);text-align:center;max-width:190px;line-height:var(--lh-compact)}
.po-id h2{margin:0 0 8px;font-size:var(--text-2xl);line-height:var(--lh-compact);overflow-wrap:anywhere}
.po-id .meta{margin-bottom:8px}
.po-id p{margin:0;font-size:var(--text-xs)}
.po-side{display:grid;gap:7px;min-width:170px}
.po-side-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:7px 11px;border:1px solid var(--border);border-radius:11px;background:#f8faf9}
.po-side-row small{color:var(--muted);font-size:var(--text-2xs);font-weight:800}
.po-side-row b{font-size:var(--text-2xs);font-weight:900;overflow-wrap:anywhere;text-align:right}

.po-sub{border-color:#d9cefa;background:linear-gradient(150deg,#f8f4ff,#fff 62%);box-shadow:0 12px 30px rgba(96,60,190,.10)}
.po-sub--closed{border-color:#f0d3d3;background:linear-gradient(150deg,#fff5f5,#fff 62%);box-shadow:0 10px 26px rgba(180,70,70,.07)}
.po-sub-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.po-sub-head h3{margin:0;font-size:var(--text-xl);line-height:var(--lh-compact);display:flex;align-items:center;gap:8px}
.po-sub-head p{margin:4px 0 0;font-size:var(--text-sm);font-weight:800}
.po-sub-empty{margin:12px 0 0;font-size:var(--text-xs);line-height:var(--lh-prose);color:#554579}
.po-sub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.po-fact{background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 12px;display:grid;gap:3px;min-width:0}
.po-fact small{color:var(--muted);font-size:var(--text-2xs);font-weight:800}
.po-fact b{font-size:var(--text-nav);line-height:var(--lh-compact);overflow-wrap:anywhere}
.po-fact .note{color:var(--muted);font-size:var(--text-2xs);line-height:var(--lh-compact)}
.po-sub-limits{margin-top:12px}
.po-sub-limits .badge{max-width:100%}
.po-feats{margin:12px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.po-feats li{position:relative;padding-left:19px;font-size:var(--text-2xs);line-height:var(--lh-compact);color:#3c4c45}
.po-feats li:before{content:'\2713';position:absolute;left:0;top:0;color:var(--green);font-weight:900}
.po-sub-hist{margin-top:12px;border-top:1px solid var(--border);padding-top:10px}
.po-sub-hist summary{cursor:pointer;font-size:var(--text-2xs);font-weight:900;color:#587064}
.po-sub-hist[open]{padding-bottom:4px}

.po-sec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.po-learn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.po-mini{margin:0 0 9px;font-size:11px;font-weight:900;letter-spacing:.04em;color:#587064;text-transform:none}
.po-courses{display:grid;gap:9px}
.po-course{border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff;display:grid;gap:7px}
.po-course-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:var(--text-2xs)}
.po-course-top b{min-width:0;overflow-wrap:anywhere;font-size:var(--text-nav)}
.po-course-top span{color:var(--muted);font-weight:800;flex:0 0 auto}
.po-course-foot{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:var(--text-2xs);color:var(--muted);font-weight:800}
.po-course-foot a{color:var(--primary);font-weight:900}
.po-lab-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.po-pay-more{margin-top:6px}
.po-pay-more summary{cursor:pointer;font-size:var(--text-2xs);font-weight:900;color:var(--primary)}
.po-pay-body{display:grid;gap:5px;padding:8px 0 2px;font-size:var(--text-2xs);line-height:var(--lh-compact)}
.po-pay-body>div{display:flex;gap:8px;align-items:baseline;border-bottom:1px dashed #edf2ef;padding-bottom:4px}
.po-pay-body>div:last-child{border-bottom:0}
.po-pay-body small{color:var(--muted);font-weight:800;flex:0 0 auto}
.po-pay-body b{margin:0;min-width:0;overflow-wrap:anywhere}
@media(max-width:980px){
  .po-head{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
  .po-id{text-align:center}
  .po-id .meta,.po-id p{justify-content:center}
  .po-side{width:100%;min-width:0}
  .po-learn{grid-template-columns:minmax(0,1fr)}
  .po-sub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .po-sub-grid,.po-sec-grid,.po-lab-counts,.po-feats{grid-template-columns:minmax(0,1fr)}
  .po-face .btn{flex:1 1 46%}
}
/* The account card is a descendant of .table-wrap, whose own rule paints the cell backgrounds; the payment row
   keeps its summary inline under the status chip instead of beside it. */
.po-pay-more{display:block}
.po-danger{border-color:#f0d0d0;background:linear-gradient(150deg,#fff6f6,#fff 55%)}
.po-head form,.po-sub form,.po-danger form{margin:0}

/* ===== Item S §3: the group-exam passage picker =====
   The panel is the passage's own row, not a description the member has to trust: name, code, ধরন, শব্দসংখ্যা,
   its duration and lab, with the PDF's Preview/Download beside it. It is the .field.wide of its section's grid, so
   it spans the same columns as the selects above it, and the global [hidden] rule takes it out of the layout
   entirely until a passage is actually chosen. */
.gr-pick{grid-column:1/-1;display:grid;gap:7px;border:1px solid var(--border);border-radius:12px;
  background:var(--surface2);padding:10px 12px}
.gr-pick-cap{font-size:var(--text-2xs);color:var(--muted);font-weight:900}
.gr-pick-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.gr-pick-facts{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;min-width:0}
.gr-pick-facts .gr-pick-title{font-size:var(--text-sm);font-weight:900;min-width:0;overflow-wrap:anywhere}
.gr-pick-facts span{display:inline-flex;gap:5px;align-items:baseline;font-size:var(--text-2xs)}
.gr-pick-facts small{color:var(--muted);font-weight:800}
.gr-pick-facts b{font-weight:900;font-size:var(--text-2xs)}
.gr-pick-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gr-pick-actions .btn{white-space:nowrap}
.gr-pick-actions .btn.is-off{opacity:.45;pointer-events:none}
.gr-pick-actions .muted{font-size:var(--text-2xs);font-weight:800}
@media(max-width:820px){
  .gr-pick-body{grid-template-columns:minmax(0,1fr)}
  .gr-pick-actions{justify-content:flex-start}
}

/* Item T §8 — the type ladder measured on the live dashboard, not eyeballed. At 1440px the page title rendered
   31px/700 and every panel title 19px/700, while the card title beneath them rendered 18px/800: the top rung of the
   hierarchy was the lightest one. Size already ranks these headings above the cards, so only the weight was wrong,
   and this block changes nothing else about them. */
.head h1,.panel-title h2,.panel-title h3{font-weight:800}

/* Item V §3.4/§5 — one filter bar, everywhere. The owner asked for the filter to be updated on every page that has
   one, so the bar is now measured and sized as a single component instead of nine: 38px controls, a tighter label
   band, one desktop line, a tablet grid, and the existing single column below 620px. --ctl-h is deliberately not
   redefined — 46px is the form-control height the Item S editor rows are measured against; only the filter scope
   shrinks, so an editor elsewhere on the same page keeps its own height. */
.filter-bar{gap:10px;padding:10px 12px}
.filter-bar .field{flex:1 1 132px;min-width:0}
.filter-bar .field.search{flex:2 1 210px}
.filter-bar .field.w-lab,.filter-bar .field.w-lang,.filter-bar .field.w-dur,
.filter-bar .field.w-sort,.filter-bar .field.w-verdict,.filter-bar .field.w-kind,.filter-bar .field.w-period{flex:1 1 116px}
.filter-bar .field>label{line-height:1.2}
.filter-bar .input,.filter-bar .select{height:38px;font-size:var(--text-sm)}
.filter-bar .filter-actions{gap:7px}
.filter-bar .filter-actions .btn{height:38px;min-height:38px;padding:0 13px;font-size:var(--text-sm)}
.filter-bar .filter-count{height:38px}
@media(max-width:1100px){
  .filter-bar .field,.filter-bar .field.w-lab,.filter-bar .field.w-lang,.filter-bar .field.w-dur,
  .filter-bar .field.w-sort,.filter-bar .field.w-verdict,.filter-bar .field.w-kind,.filter-bar .field.w-period{flex:1 1 calc(33.333% - 10px)}
  .filter-bar .field.search{flex:1 1 calc(66.666% - 10px)}
}
@media(max-width:768px){
  .filter-bar .field,.filter-bar .field.w-lab,.filter-bar .field.w-lang,.filter-bar .field.w-dur,
  .filter-bar .field.w-sort,.filter-bar .field.w-verdict,.filter-bar .field.w-kind,.filter-bar .field.w-period,
  .filter-bar .field.search{flex:1 1 calc(50% - 10px)}
}
@media(max-width:620px){
  /* §3.4 asks for a responsive grid on phone too, not a nine-row stack: the two-column row survives, and only the
     wide search box, the actions and the count get a line to themselves. Declared after the 768px block so it wins. */
  .filter-bar .field,.filter-bar .field.w-lab,.filter-bar .field.w-lang,.filter-bar .field.w-dur,
  .filter-bar .field.w-sort,.filter-bar .field.w-verdict,.filter-bar .field.w-kind,.filter-bar .field.w-period{flex:1 1 calc(50% - 10px)}
  .filter-bar .field.search{flex:1 1 100%}
}

/* Independent-platform disclaimer (Labs::disclaimer()) */
.lab-disclaimer{display:flex;gap:8px;align-items:flex-start;margin:12px auto;padding:10px 14px;max-width:1100px;
  font-size:13px;line-height:1.6;color:var(--muted,#5b6472);background:var(--surface-2,#f5f7fa);
  border:1px solid var(--border,#e2e6ec);border-radius:10px;text-align:justify}
.lab-disclaimer .icon{flex:0 0 auto;width:16px;height:16px;margin-top:3px}

/* /faq page */
.faqPage{display:flex;flex-direction:column;gap:10px}
.faqPageItem{border:1px solid var(--border,#e2e6ec);border-radius:12px;background:var(--surface,#fff)}
.faqPageItem summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;font-weight:800;line-height:1.5}
.faqPageItem summary::-webkit-details-marker{display:none}
.faqPageItem summary .icon{flex:none;transition:transform .18s}
.faqPageItem[open] summary .icon{transform:rotate(180deg)}
.faqPageItem p{margin:0;padding:0 16px 16px;color:var(--muted,#5b6472);line-height:1.8;text-align:justify}
.faqPageFoot{margin:6px 2px 0;color:var(--muted,#5b6472)}
@media(prefers-reduced-motion:reduce){.faqPageItem summary .icon{transition:none}}

/* ==========================================================================
   UI refresh 2026-11-06 — one additive layer for the member dashboard, the admin console, the passage card and
   the library. It only restyles (surface, accent, rhythm); no markup contract or fixed-skeleton height above is
   changed, so every card in a row still starts its title and buttons on the same line.
   ========================================================================== */
:root{--ui-ring:rgba(106,76,207,.14);--ui-line:#e3eae6;--ui-wash:#f7faf8;--ui-ink-2:#40554c}

/* ---- Page header -------------------------------------------------------- */
.head{position:relative;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid var(--ui-line)}
.head h1{letter-spacing:-.01em}
.head h1::after{content:"";display:block;width:44px;height:4px;margin-top:8px;border-radius:99px;background:linear-gradient(90deg,var(--primary),var(--green))}
.head p{max-width:72ch;color:var(--ui-ink-2)}

/* ---- Panels & cards ------------------------------------------------------ */
.panel{border:1px solid var(--ui-line);border-radius:var(--radius-card);box-shadow:var(--shadow-card)}
.panel-title h3{display:flex;align-items:center;gap:9px}
.panel-title h3::before{content:"";flex:0 0 8px;width:8px;height:20px;border-radius:99px;background:linear-gradient(180deg,var(--primary),var(--green))}
.card.stat{border:1px solid var(--ui-line);border-radius:var(--radius-card);box-shadow:var(--shadow-card);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.card.stat:hover{box-shadow:var(--shadow-hover);border-color:#d3ddd7}
.card.stat .ico{box-shadow:inset 0 0 0 1px rgba(16,24,40,.04)}
.card.stat strong{letter-spacing:-.01em}
.ad-kpi:hover{transform:translateY(-2px)}
.ad-course-row{background:linear-gradient(90deg,#f6f2ff,#f1faf5);border-color:#e1d9fb}
.ad-quick .btn{box-shadow:0 1px 2px rgba(16,24,40,.05)}

/* ---- Sidebar (member + admin) -------------------------------------------- */
.side-item{border-radius:12px;transition:background .15s ease,border-color .15s ease}
.side-item.active{background:linear-gradient(90deg,#eaf6ee,#fff);border-color:#b9dcc6}
.side-item.active .side-icon{background:var(--green);color:#fff}

/* ---- Tables --------------------------------------------------------------- */
.table-wrap{border:1px solid var(--ui-line);border-radius:14px;background:#fff}
.table thead th{background:var(--ui-wash);color:#486058;border-bottom:1px solid var(--ui-line)}
.table tbody tr+tr td{border-top:1px solid #eef3f0}
.table tbody tr:hover td{background:#f7f5ff}

/* ---- Filter / toolbar ------------------------------------------------------ */
.filter-bar,.toolbar{background:#fff;border:1px solid var(--ui-line);border-radius:var(--radius-card);box-shadow:var(--shadow-card)}
.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--ui-ring)}

/* ---- Passage card (library) ------------------------------------------------ */
.passage{border:1px solid var(--ui-line);border-radius:var(--radius-card);box-shadow:var(--shadow-card);
  background-image:linear-gradient(180deg,color-mix(in srgb,var(--lab-accent,#94a3b8) 9%,transparent),transparent 92px)}
.passage h3{font-size:15.5px;letter-spacing:-.005em}
.passage .p-code{display:inline-flex;align-items:center;align-self:flex-start;min-height:22px;padding:2px 9px;border-radius:99px;
  background:#f1f5f3;border:1px solid #e1e9e4;font-variant-numeric:tabular-nums;letter-spacing:.04em;color:#4b6258}
.passage .actions{border-top:1px dashed #dfe8e2;margin-top:auto;padding-top:12px}
.passage:hover{border-color:color-mix(in srgb,var(--lab-accent,#94a3b8) 45%,#fff)}
.passage-grid{gap:14px}
.lib-summary{margin:14px 2px 8px;font-weight:700}
.pager{margin-top:6px}

/* ---- Dashboard lab card ----------------------------------------------------- */
.exam-category-card{border-color:var(--ui-line);box-shadow:var(--shadow-card);
  background-image:linear-gradient(180deg,color-mix(in srgb,var(--lab-accent,#94a3b8) 8%,transparent),transparent 120px)}
.exam-category-card:hover{border-color:color-mix(in srgb,var(--lab-accent,#94a3b8) 45%,#fff)}
.lab-chip{background:#fff;border:1px solid #e0e8e3;border-radius:99px;padding:3px 9px}
.qa-tile{border-color:var(--ui-line);box-shadow:var(--shadow-card)}

/* ---- Independent-platform notice (dashboard only) ---------------------------- */
.platform-notice{display:flex;gap:16px;align-items:flex-start;padding:18px 20px;border-radius:var(--radius-card);
  border:1px solid #ddd3fa;border-left:5px solid var(--primary);
  background:linear-gradient(135deg,#f7f3ff 0%,#f2fbf6 100%);box-shadow:var(--shadow-card)}
.platform-notice .pn-ico{flex:0 0 44px;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;
  background:#fff;color:var(--primary);box-shadow:0 2px 8px rgba(106,76,207,.16)}
.platform-notice .pn-ico svg{width:22px;height:22px}
.platform-notice .pn-body{min-width:0;flex:1}
.platform-notice h3{margin:2px 0 6px;font-size:var(--text-lg);font-weight:800;color:#33266b}
.platform-notice p{margin:0;font-size:var(--text-md);line-height:1.85;color:#44525b;text-align:justify;hyphens:auto}
.platform-notice .pn-tags{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:12px 0 0;padding:0}
.platform-notice .pn-tags li{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:99px;
  background:#fff;border:1px solid #e3dcfb;font-size:var(--text-xs);font-weight:800;color:#4a3d8f}
.platform-notice .pn-tags svg{width:14px;height:14px}
@media(max-width:620px){.platform-notice{flex-direction:column;gap:10px;padding:16px}.platform-notice p{text-align:left}}
@media print{.platform-notice{box-shadow:none}}

/* Footer motto line (owner copy) */
.sfMotto{font-style:italic;font-weight:800;color:#2f4a3c;text-align:left}
/* Auth page: back button is an icon only */
.auth-home{width:42px;height:42px;padding:0;justify-content:center;border-radius:12px}
.auth-home svg{width:20px;height:20px}
/* Mobile drawer: the rail must scroll so the last entries (Subscription etc.) stay reachable */
@media(max-width:980px){
 .sidebar{height:100vh;height:100dvh;max-height:100dvh;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 .sidebar nav{padding-bottom:24px}
}

/* Subscription wall (modern) */
.subwall{display:flex;justify-content:center;padding:8px 0 24px}
.subwall-card{width:100%;max-width:620px;background:var(--card,#fff);border:1px solid var(--ui-line,#e3eae6);border-radius:22px;box-shadow:0 18px 48px rgba(106,76,207,.10),0 2px 6px rgba(20,40,30,.04);overflow:hidden}
.subwall-hero{text-align:center;padding:34px 24px 22px;background:linear-gradient(160deg,rgba(106,76,207,.10),rgba(28,164,109,.07) 70%)}
.subwall-ico{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:20px;background:linear-gradient(135deg,var(--primary,#6a4ccf),var(--primary2,#8d58e2));color:#fff;box-shadow:0 10px 24px rgba(106,76,207,.35)}
.subwall-ico svg{width:30px;height:30px}
.subwall--wait .subwall-ico{background:linear-gradient(135deg,#f5a623,#f7c04a);box-shadow:0 10px 24px rgba(245,166,35,.35)}
.subwall--warn .subwall-ico{background:linear-gradient(135deg,#e5484d,#f0707a);box-shadow:0 10px 24px rgba(229,72,77,.30)}
.subwall-kicker{display:block;margin:14px 0 6px;font-size:12px;font-weight:800;letter-spacing:.04em;color:var(--primary,#6a4ccf)}
.subwall-hero h1{margin:0 0 8px;font-size:clamp(21px,5.4vw,27px);line-height:1.3}
.subwall-hero p{margin:0 auto;max-width:460px;color:var(--muted,#5d7269);line-height:1.75;font-size:15px}
.subwall-timer{margin:18px 20px 0;padding:14px 16px;border-radius:16px;background:#fff7e8;border:1px solid #f6dfb0;color:#7a5200}
.subwall-timer-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.subwall-timer-row b{font-size:17px}.subwall-timer-row span{font-size:13px;opacity:.85}
.subwall-bar{height:8px;border-radius:99px;background:#f3e2bd;margin:10px 0 8px;overflow:hidden}
.subwall-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#f5a623,#e5484d)}
.subwall-timer small{display:block;line-height:1.65;font-size:12.5px}
.subwall-perks{list-style:none;margin:18px 20px 0;padding:0;display:grid;gap:10px}
.subwall-perks li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--bg,#f5f7f6)}
.subwall-perks svg{flex:none;margin-top:2px;padding:3px;width:24px;height:24px;border-radius:50%;background:var(--green,#1ca46d);color:#fff}
.subwall-perks b{display:block;font-size:14.5px}.subwall-perks small{display:block;margin-top:2px;color:var(--muted,#5d7269);font-size:12.5px;line-height:1.55}
.subwall-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;padding:22px 20px 26px}
.subwall-actions .btn{flex:1 1 200px;justify-content:center;min-height:46px}
.subwall-link{flex:1 1 100%;text-align:center;font-size:13.5px;color:var(--muted,#5d7269);text-decoration:underline;text-underline-offset:3px}
@media(prefers-color-scheme:dark){.subwall-timer{background:#3a2d12;border-color:#5b4519;color:#f6d79a}.subwall-bar{background:#4d3b17}}

/* ===== /leaderboard v2 — appended; scoped to the leaderboard page ===== */
.lbMe{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:14px 0 4px;padding:16px 20px;border:2px solid #b9a8f7;border-radius:18px;background:linear-gradient(90deg,#f1ecff,#fbfaff 70%,#fff);box-shadow:0 10px 28px rgba(109,74,255,.12)}
.lbMeRank small,.lbMeFig small{display:block;font-size:11.5px;font-weight:800;color:#7d7695}
.lbMeRank strong{display:block;font-size:38px;line-height:1.05;font-weight:900;color:#6545e8}
.lbMeFig strong{display:block;font-size:24px;line-height:1.1;font-weight:900;color:#148357;font-variant-numeric:tabular-nums}
.lbMeFig+.lbMeFig strong{color:#2563eb}
.lbMeGap{flex:1 1 240px;margin:0;font-size:14px;line-height:1.7;color:#3b3466;font-weight:700}
.lbMeEmpty{border-style:dashed;justify-content:space-between}
/* podium order 2-1-3, first place lifted */
.lbPodium{align-items:end}
.podiumCard.podium1{order:2;padding-top:30px;padding-bottom:22px;box-shadow:0 16px 38px rgba(223,165,38,.25)}
.podiumCard.podium2{order:1}.podiumCard.podium3{order:3}
.podium1 .podiumStats strong{font-size:23px}
/* table: top-3 tint, own row accent, WPM bar */
.lbTable .lbTop1 td{background:#fffaf0}.lbTable .lbTop2 td{background:#f8fafc}.lbTable .lbTop3 td{background:#fff7f1}
.lbTable .is-me td{background:#efe9ff}
.lbTable .is-me td:first-child{box-shadow:inset 4px 0 0 #6d4aff}
.lbTable .lbWpm{font-size:17px;font-weight:900}
.lbBar{display:block;height:4px;margin:5px 0 0 auto;width:90px;max-width:100%;border-radius:4px;background:#e8ecf1;overflow:hidden}
.lbBar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#34b27b,#148357)}
@media(max-width:760px){
.lbPodium{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.podiumCard{padding:30px 5px 10px;border-radius:14px}
.podiumCard.podium1{padding-top:34px}
.podiumRank{left:6px;top:6px;width:22px;height:22px;font-size:11px}
.podiumCrown{right:6px;top:6px}
.podiumName{font-size:12px}
.podiumCat{display:none}
.podiumStats{grid-template-columns:minmax(0,1fr);gap:4px}
.podiumStats strong,.podium1 .podiumStats strong{font-size:14px}
.podiumStats small{font-size:9px}
.lbMe{gap:14px;padding:14px}
.lbMeRank strong{font-size:30px}
}

/* TyperBD Passage Library 2.0 — compact cards (scoped to the public passage library). */
.passage-grid{gap:12px}
.passage{padding:14px 15px 12px}
.passage .meta{display:flex;min-height:0;gap:5px;align-items:center}
.passage .meta .meta-row{min-height:0;gap:5px}
.passage .meta .meta-row:first-child .badge{font-size:11px;padding:3px 7px}
.passage h3{min-height:0;margin:8px 0 3px;font-size:15px;line-height:1.3}
.passage .p-code{min-height:0;font-size:10px;padding:1px 7px}
.passage .actions{padding-top:9px;margin-top:9px;gap:6px}
.passage .actions .btn{min-height:34px;height:34px;padding:0 10px}
.passage .actions .btn.icon-only{width:34px;min-width:34px;padding:0}
.passage .assignment-note{font-size:10px;color:var(--muted);margin-top:5px}
.post-dialog .pd-duration{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
.post-dialog .pd-duration label{display:flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid var(--border);border-radius:10px;font-size:12px;font-weight:800}
.post-dialog .pd-opt small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
@media(max-width:620px){.passage{padding:13px}.passage .actions{padding-top:8px;margin-top:8px}}

.post-dialog .pd-duration[hidden]{display:none}


/* Mock/Global exam cards — professional paper card: lab accent bar, info tiles, total time + start action. */
.passage-grid:has(>.combined-paper-card){display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.combined-paper-card{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) 230px;min-width:0;
  border:1px solid var(--border);border-radius:18px;background:var(--surface);
  box-shadow:var(--shadow-card);overflow:hidden;
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease
}
.combined-paper-card:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:5px;
  background:linear-gradient(180deg,var(--lab-accent,#6a4ccf),#12a76a)
}
.combined-paper-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-hover,0 14px 34px rgba(60,50,120,.12));border-color:#d9d2f5}
.mc-main{display:grid;gap:18px;min-width:0;padding:22px 24px 22px 29px}
.mc-top{display:flex;align-items:flex-start;gap:14px;min-width:0}
.ce-card-ico{
  flex:0 0 52px;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,#efe9ff,#e3f7ec);color:var(--primary)
}
.ce-card-ico svg{width:26px;height:26px}
.mc-heading{flex:1;min-width:0}
.mc-heading .meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 7px}
.mc-heading h3{margin:0;font-size:19px;line-height:1.4;font-weight:900;overflow-wrap:anywhere}
.mc-code{
  flex:none;align-self:flex-start;padding:5px 11px;border-radius:8px;border:1px solid var(--border);
  background:var(--surface2,#f8faf9);color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em
}
.mc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mc-tile{
  display:flex;align-items:center;gap:11px;min-width:0;padding:11px 13px;
  border:1px solid var(--border);border-radius:13px;background:var(--surface2,#f8faf9)
}
.mc-tile.is-post{grid-column:1/-1}
.mc-ti{flex:0 0 36px;width:36px;height:36px;border-radius:10px;display:grid;place-items:center}
.mc-ti svg{width:18px;height:18px}
.mc-ti.tone-post{background:#efe9ff;color:#6a4ccf}
.mc-ti.tone-bn{background:#dff6ea;color:#0b8a5a}
.mc-ti.tone-en{background:#e2edff;color:#2563eb}
.mc-ti.tone-gap{background:#fff1d6;color:#b26d0b}
.mc-tile>span:last-child{min-width:0}
.mc-tile small{display:block;font-size:11px;font-weight:700;color:var(--muted);line-height:1.3}
.mc-tile b{display:block;font-size:14px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.mc-side{
  display:flex;flex-direction:column;justify-content:center;gap:14px;margin:0;padding:22px;
  border-left:1px dashed var(--border);text-align:center;
  background:linear-gradient(180deg,rgba(106,76,207,.06),rgba(18,167,106,.07))
}
.mc-total small{display:block;font-size:11.5px;font-weight:800;color:var(--muted);letter-spacing:.04em}
.mc-total b{display:block;margin-top:2px;font-size:32px;line-height:1.15;font-weight:900;color:var(--primary);font-variant-numeric:tabular-nums}
.mc-total b span{font-size:14px;font-weight:800;color:var(--muted)}
.mc-side .btn{width:100%;min-height:44px;height:auto;border-radius:12px;justify-content:center}
html[data-theme="dark"] .mc-ti.tone-post{background:#2b1f66;color:#b8acff}
html[data-theme="dark"] .mc-ti.tone-bn{background:#0b3d27;color:#75e0a7}
html[data-theme="dark"] .mc-ti.tone-en{background:#10305e;color:#93c5fd}
html[data-theme="dark"] .mc-ti.tone-gap{background:#4a3306;color:#fec84b}
html[data-theme="dark"] .ce-card-ico{background:#2b2550;color:#b8acff}
@media(max-width:820px){
  .combined-paper-card{grid-template-columns:minmax(0,1fr)}
  .mc-side{flex-direction:row;align-items:center;justify-content:space-between;text-align:left;border-left:0;border-top:1px dashed var(--border);padding:16px 20px 16px 29px}
  .mc-side .btn{width:auto;min-width:190px}
}
@media(max-width:560px){
  .mc-main{padding:18px 16px 18px 21px}
  .mc-top{flex-wrap:wrap}
  .mc-code{order:3}
  .mc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-heading h3{font-size:17px}
  .mc-side{flex-direction:column;align-items:stretch;text-align:center;padding:16px}
  .mc-side .btn{width:100%}
}


/* ==========================================================================
   2026-11-15 — compact filters + the plain "why it failed" box on the result page.
   Declared last on purpose: it only tightens sizes, it changes no markup contract.
   ========================================================================== */
.filter-bar.filter-bar,.toolbar.filter-bar{gap:6px 8px;padding:8px 10px;margin-bottom:10px;align-items:flex-end}
.filter-bar.filter-bar .field,.filter-bar.filter-bar .field.w-lab,.filter-bar.filter-bar .field.w-lang,.filter-bar.filter-bar .field.w-dur,
.filter-bar.filter-bar .field.w-sort,.filter-bar.filter-bar .field.w-verdict,.filter-bar.filter-bar .field.w-kind,.filter-bar.filter-bar .field.w-period{flex:0 0 auto;width:auto;min-width:0}
.filter-bar.filter-bar .field.search{flex:1 1 170px;min-width:140px;max-width:260px}
.filter-bar.filter-bar .field.search .input,.filter-bar.filter-bar .field.search .search-wrap{width:100%}
.filter-bar.filter-bar .field>label{margin:0 0 2px;font-size:11px;line-height:1.15}
.filter-bar.filter-bar .input,.filter-bar.filter-bar .select{height:32px;min-height:32px;padding-top:0;padding-bottom:0;font-size:12.5px;width:auto;max-width:100%}
.filter-bar.filter-bar .field.search .input{width:100%}
.filter-bar.filter-bar .select{padding-left:9px;padding-right:26px;background-position:right 8px center;background-size:13px}
.filter-bar.filter-bar .search-wrap .input{padding-left:30px}
.filter-bar.filter-bar .search-wrap .icon{left:9px;width:14px;height:14px}
.filter-bar.filter-bar .filter-actions{gap:6px;width:auto}
.filter-bar.filter-bar .filter-actions .btn{height:32px;min-height:32px;padding:0 11px;font-size:12.5px;flex:0 0 auto}
.filter-bar.filter-bar .filter-count{height:32px;font-size:11.5px}
.notif-filter{gap:5px;margin-bottom:8px}
.notif-filter .chip{min-height:28px;padding:0 10px;font-size:12px}
@media(max-width:620px){
  .filter-bar.filter-bar .field.search{flex:1 1 100%;max-width:none}
  .filter-bar.filter-bar .filter-actions{width:auto}
}

/* Result page: the reasons a paper failed on structure — a coloured card per reason, no counts or scoring internals. */
.rp-issues{margin-top:14px;border:1px solid #f4c7c7;border-radius:16px;background:linear-gradient(180deg,#fff5f5 0%,#fff 70%);box-shadow:0 6px 18px rgba(214,69,69,.10);overflow:hidden}
.rp-issues-head{display:flex;align-items:center;gap:12px;padding:12px 16px;background:linear-gradient(135deg,#e03e3e,#f0643a);color:#fff}
.rp-issues-ico{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.2)}
.rp-issues-ico .icon{width:21px;height:21px;color:#fff}
.rp-issues-head h2{margin:0;font-size:17px;font-weight:800;color:#fff;line-height:1.25}
.rp-issues-head p{margin:2px 0 0;font-size:12.5px;color:rgba(255,255,255,.9)}
.rp-issues-count{margin-left:auto;display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#fff;color:#c93030;font-weight:900;font-size:14px}
.rp-issue-list{list-style:none;margin:0;padding:12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.rp-issue{--t:#d97706;--tb:#fff4e0;--tbd:#f6d9a8;display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--tbd);border-radius:13px;background:var(--tb)}
.rp-issue.tone-amber{--t:#c2650a;--tb:#fff3e0;--tbd:#f7d6a6}
.rp-issue.tone-violet{--t:#6d3fd8;--tb:#f3edff;--tbd:#d9cbfa}
.rp-issue.tone-blue{--t:#1d62d8;--tb:#eaf2ff;--tbd:#bcd5fa}
.rp-issue.tone-teal{--t:#0f8a7a;--tb:#e6f8f4;--tbd:#b4e6dc}
.rp-issue-ico{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--t);box-shadow:0 4px 10px rgba(0,0,0,.14)}
.rp-issue-ico .icon{width:20px;height:20px;color:#fff}
.rp-issue-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.rp-issue-txt b{font-size:14.5px;font-weight:800;color:var(--t)}
.rp-issue-txt span{font-size:13px;line-height:1.5;color:#3d4652}
@media(max-width:620px){.rp-issue-list{grid-template-columns:1fr}.rp-issues-head{padding:11px 13px}}

/* ===== 2026-11 update: congratulation modal ===== */
.celebrate{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;padding:18px;background:rgba(11,20,35,.62);backdrop-filter:blur(4px)}
.celebrate-card{position:relative;overflow:hidden;width:min(100%,440px);background:#fff;border-radius:22px;padding:30px 24px 24px;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.28);color:#172033;animation:celPop .35s ease-out}
@keyframes celPop{from{transform:scale(.9);opacity:0}to{transform:none;opacity:1}}
.celebrate-badge{width:64px;height:64px;margin:0 auto 10px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,#1ca46d,#6a4ccf);color:#fff}
.celebrate-badge svg{width:30px;height:30px}
.celebrate h2{margin:6px 0 4px;font-size:26px}
.celebrate-lead{margin:0 0 6px;font-size:16px;line-height:1.6}
.celebrate-until{margin:0 0 12px;color:#667085;font-size:13.5px}
.celebrate-steps{list-style:none;margin:14px 0;padding:12px;display:grid;gap:8px;text-align:left;background:#f6f8fb;border-radius:14px;font-size:14px}
.celebrate-steps li{display:flex;gap:10px;align-items:center}
.celebrate-steps span{flex:0 0 24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#6a4ccf;color:#fff;font-size:12px;font-weight:800}
.celebrate-note{margin:0 0 12px;font-size:12px;color:#8a5a12}
.celebrate-actions{display:flex;justify-content:center}
.celebrate-confetti i{position:absolute;top:-10px;left:calc(var(--i)*6.4%);width:8px;height:14px;border-radius:2px;background:hsl(calc(var(--i)*47),85%,58%);animation:celFall 2.6s ease-in calc(var(--i)*.09s) infinite}
@keyframes celFall{to{transform:translateY(520px) rotate(300deg);opacity:.2}}
@media(prefers-reduced-motion:reduce){.celebrate-confetti i,.celebrate-card{animation:none}}

/* ===== 2026-11 update: leaderboard cards — one small standard size (page + homepage) ===== */
.lbPodium{align-items:stretch!important;gap:10px!important;max-width:760px;margin-left:auto;margin-right:auto}
.podiumCard,.podiumCard.podium1{order:0!important;padding:14px 10px 12px!important;gap:3px!important;border-radius:14px!important;box-shadow:var(--shadow2)!important}
.podiumCard.podium2{order:0!important}.podiumCard.podium3{order:0!important}
.podiumCard.podium1{order:0!important}
.podiumName{font-size:14px!important}
.podiumStats{margin-top:6px!important;gap:6px!important}
.podiumStats div{padding:5px 4px!important;border-radius:10px!important}
.podiumStats strong,.podium1 .podiumStats strong{font-size:16px!important}
.podiumStats small{font-size:10px!important}
.podiumRank{width:22px!important;height:22px!important;font-size:11px!important;left:8px!important;top:8px!important}
.podiumCrown{right:8px!important;top:8px!important}
.podiumCrown .lucide,.podiumCrown i{width:16px!important;height:16px!important}
.lb-stats .stat{padding:10px 12px!important;gap:6px!important}
.lb-stats .stat .ico{width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important}
.lb-stats .stat strong{font-size:19px!important}
.lb-stats .stat .muted{font-size:10.5px!important}
.lb-stats .stat small{font-size:11px!important}
.lbMe{padding:10px 14px!important;gap:14px!important;border-width:1px!important}
.lbMeRank strong{font-size:26px!important}.lbMeFig strong{font-size:18px!important}.lbMeGap{font-size:13px!important}
.lbTable .lbWpm{font-size:15px!important}
.lbTable td,.lbTable th{padding-top:8px;padding-bottom:8px}
@media(max-width:760px){.podiumCard,.podiumCard.podium1{padding:24px 4px 8px!important}.podiumName{font-size:12px!important}}

/* ===== 2026-11 update: lab cards — calmer header (dashboard + passage library) ===== */
.exam-category-card::before{height:5px}
.exam-category-card h3,.exam-category-card .ec-title{font-family:"Hind Siliguri","Noto Sans Bengali",sans-serif;font-weight:700;letter-spacing:0;color:#1d2939}
.exam-category-card .badge.lab{height:26px;padding:0 12px;font-size:12px;font-weight:700;letter-spacing:.01em}
:root{--lab-dir:#0F766E;--lab-buet:#9A3412}

/* ===== 2026-11 update: friendlier subscription page ===== */
.subwall-soft{margin:0 22px 14px;padding:12px 14px;border-radius:14px;background:#f3f0ff;color:#3b3466;font-size:13.5px;line-height:1.7}
.subwall-soft b{color:#4a3699}
.subwall-why{margin:0 22px 14px;font-size:13px;color:#5b6b64;line-height:1.7}
