/* TyperBD theme layer — v1.0
   Loaded by public/member/admin shells only. The standalone typing exam shell does not load this file. */
:root{
 --bg:#f5f7f6;--surface:#fff;--surface2:#f8faf9;--soft:#f1f5f3;
 --text:#1d2b26;--muted:#5d7269;--border:#e5ece7;--border-ctl:#dfe7e2;
 --shadow:0 20px 42px rgba(53,97,76,.08);--shadow2:0 12px 30px rgba(55,73,65,.08);
}
html[data-theme="dark"]{
 color-scheme:dark;
 --bg:#111916;--surface:#19231f;--surface2:#202c27;--soft:#25332d;
 --text:#e8f0eb;--muted:#a4b5ab;--border:#33443b;--border-ctl:#405248;
 --shadow:0 18px 40px rgba(0,0,0,.28);--shadow2:0 12px 30px rgba(0,0,0,.24);
 --shadow-card:0 1px 2px rgba(0,0,0,.18),0 8px 22px rgba(0,0,0,.18);
 --shadow-hover:0 2px 4px rgba(0,0,0,.2),0 12px 28px rgba(0,0,0,.3);
 --btn-bg:#202c27;--btn-fg:#e8f0eb;--btn-soft-bg:#20372d;--btn-soft-fg:#9be2bc;--btn-soft-border:#345542;
 --menu-bg:#202c27;--menu-border:#405248;--menu-shadow:0 18px 40px rgba(0,0,0,.45);
}
html[data-theme="dark"] body.shell{
 background:radial-gradient(560px 280px at 100% 0%,rgba(139,92,246,.08),transparent 65%),radial-gradient(560px 280px at 0 10%,rgba(20,184,166,.06),transparent 65%),var(--bg);
 color:var(--text);
}
html[data-theme="dark"] .topbar{background:rgba(25,35,31,.96);border-color:var(--border)}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#19231f,#17211d);border-color:var(--border)}
html[data-theme="dark"] .side-brand{background:#202d27;border-color:#34463c}
html[data-theme="dark"] .side-label{color:#91a69a}
html[data-theme="dark"] .side-nav a,html[data-theme="dark"] .side-parent{color:#c5d2ca}
html[data-theme="dark"] .side-nav a:hover,html[data-theme="dark"] .side-nav a.active{background:#293b32;color:#b8f0cf}
html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .acct-menu,html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .nb-card,html[data-theme="dark"] .course-card,
html[data-theme="dark"] .lesson-card,html[data-theme="dark"] .support-card{
 background:var(--surface);color:var(--text);border-color:var(--border);box-shadow:var(--shadow-card)
}
html[data-theme="dark"] .acct-menu,html[data-theme="dark"] .acct-menu a{color:var(--text)}
html[data-theme="dark"] .acct-head{background:var(--surface2);border-color:var(--border)}
html[data-theme="dark"] .head p,html[data-theme="dark"] .muted,html[data-theme="dark"] .help,
html[data-theme="dark"] .field label{color:var(--muted)}
html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea,
html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]),
html[data-theme="dark"] select,html[data-theme="dark"] textarea{
 background:#121b17;color:var(--text);border-color:var(--border-ctl)
}
html[data-theme="dark"] .input::placeholder,html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#82958a}
html[data-theme="dark"] .table-wrap{background:var(--surface);border-color:var(--border)}
html[data-theme="dark"] .table th{background:#24322b;color:#c0d0c6}
html[data-theme="dark"] .table td,html[data-theme="dark"] .table th{border-color:#34453b;color:var(--text)}
html[data-theme="dark"] .table tr:hover td{background:#202e27}
html[data-theme="dark"] .btn:not(.primary):not(.danger),html[data-theme="dark"] button.btn:not(.primary){
 background:var(--btn-bg);color:var(--btn-fg);border-color:var(--border-ctl)
}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .btn.soft{background:#20372d;color:#a9e8c4;border-color:#345542}
html[data-theme="dark"] hr,html[data-theme="dark"] .divider{border-color:var(--border)}
html[data-theme="dark"] .pageWrap{color:var(--text)}
html[data-theme="dark"] .ticker{
 background:linear-gradient(100deg,#1d3028 0%,#263d32 52%,#1c3028 100%);
 color:#eaf5ed;border-bottom:1px solid #3b5948;
 box-shadow:0 5px 16px rgba(0,0,0,.16)
}
html[data-theme="dark"] .tk-label{
 background:linear-gradient(135deg,#287b58,#1d6245);
 color:#f1fff6;box-shadow:5px 0 14px rgba(0,0,0,.18)
}
html[data-theme="dark"] .tk-item a{color:#d9f7e5;text-decoration-color:rgba(217,247,229,.55)}
html[data-theme="dark"] .tk-dot{background:#8ce0ad;box-shadow:0 0 0 3px rgba(140,224,173,.18)}
.theme-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;
 padding:0 11px;border:1px solid var(--border);border-radius:999px;
 background:var(--surface);color:var(--text);font:700 12px Inter,"Noto Sans Bengali",sans-serif;
 cursor:pointer;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s
}
.theme-toggle:hover{border-color:var(--primary);transform:translateY(-1px)}
.theme-toggle .theme-icon-light,.theme-toggle .theme-icon-dark{font-size:16px;line-height:1}
html[data-theme="light"] .theme-icon-dark,html:not([data-theme="dark"]) .theme-icon-dark{display:none}
html[data-theme="dark"] .theme-icon-light{display:none}
html[data-theme="dark"] .theme-toggle{background:#202c27;color:#e8f0eb;border-color:#405248}
@media(max-width:520px){.theme-toggle{width:38px;min-width:38px;padding:0}.theme-toggle-text{display:none}.top-actions{gap:5px}}
/* Preserve lab typography and all standalone exam visuals: this stylesheet is intentionally absent from exam.php. */


/* Ticker theme refinement — explicit colors for both themes.
   Keep the ticker readable and visually integrated; never use pure black. */
html[data-theme="light"] body.shell .ticker{
  background:linear-gradient(105deg,#e8f4ed 0%,#f2f8f4 48%,#e5f1e9 100%);
  color:#203b2d;
  border-bottom:1px solid #cfe2d5;
  box-shadow:0 3px 12px rgba(31,76,51,.07);
}
html[data-theme="light"] body.shell .ticker .tk-label{
  background:linear-gradient(135deg,#238653 0%,#176b42 100%);
  color:#fff;
  box-shadow:4px 0 12px rgba(23,92,55,.14);
}
html[data-theme="light"] body.shell .ticker .tk-item,
html[data-theme="light"] body.shell .ticker .tk-item > span{color:#294b38}
html[data-theme="light"] body.shell .ticker .tk-item a{
  color:#176b42;text-decoration-color:rgba(23,107,66,.42)
}
html[data-theme="light"] body.shell .ticker .tk-dot{
  background:#26945b;box-shadow:0 0 0 3px rgba(38,148,91,.15)
}

html[data-theme="dark"] body.shell .ticker{
  background:linear-gradient(105deg,#20352b 0%,#293f33 48%,#20352b 100%);
  color:#e5f1e9;
  border-bottom:1px solid #405b49;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}
html[data-theme="dark"] body.shell .ticker .tk-label{
  background:linear-gradient(135deg,#32865b 0%,#246b48 100%);
  color:#f4fff7;
  box-shadow:4px 0 12px rgba(0,0,0,.2);
}
html[data-theme="dark"] body.shell .ticker .tk-item,
html[data-theme="dark"] body.shell .ticker .tk-item > span{color:#e1eee5}
html[data-theme="dark"] body.shell .ticker .tk-item a{
  color:#b9efcb;text-decoration-color:rgba(185,239,203,.48)
}
html[data-theme="dark"] body.shell .ticker .tk-dot{
  background:#8bd9a8;box-shadow:0 0 0 3px rgba(139,217,168,.16)
}
@media(prefers-reduced-motion:reduce){
  html body.shell .ticker .tk-label svg{animation:none}
}


/* Bengali UI readability: shared by member dashboard, admin, notices, results and content pages.
   Exam typing surfaces are deliberately excluded so measured text/input geometry is unchanged. */
body{font-size:17px}
body :is(p,li,label,.side-item,.side-parent,.field input,.field select,.field textarea,.btn,.table td){line-height:1.65}
body :is(.side-item,.side-parent){font-size:var(--text-nav)}
body :is(.table td,.field label,.field input,.field select,.field textarea){font-size:14px}
body :is(.muted,.footer-note,.keyboard-hint,.timeline small,.practice-card small,.list-item p){font-size:13px}
body :is(.badge,.status,.best){font-size:12px}

/* ===== Uniform cards (2026-11-16): every card of a kind shares one size in a row, and long text never stretches it ===== */
.grid,.grid2,.grid3,.grid4,.grid5,.lab-grid,.trial-grid,.qa-grid,.continue-grid{align-items:stretch}
.grid>.card.stat,.stat-row--primary>.stat,.stat-row--secondary>.stat{height:100%;min-height:68px;align-items:center}
.stat>div{min-width:0}
.stat strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat strong small{font-size:.62em;font-weight:700}
.stat small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid3>.plan{display:flex;flex-direction:column;height:100%}
.grid3>.plan .checklist{flex:1 1 auto}
.grid3>.plan>.btn{margin-top:auto}
.plan .muted{margin:4px 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lab-grid>.exam-category-card,.trial-grid>.trial-card{height:100%}
.qa-grid>.qa-tile{height:100%;min-height:96px}
.gr-quota b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card,.panel{min-width:0}
