/* MODIT NATIONS Web Edition — royal blue / white / gold */
:root{
  --royal:#1E40AF; --royal-dark:#172554; --royal-mid:#1E3A8A;
  --gold:#B8962E; --gold-bright:#D4AF37;
  --bg:#F1F5F9; --card:#FFFFFF; --ink:#1F2937; --muted:#6B7280;
  --line:#DDE3EC; --ok:#166534; --ok-bg:#DCFCE7; --err:#B91C1C; --err-bg:#FEE2E2;
  --info-bg:#DBEAFE;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Segoe UI",system-ui,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:15px}
a{color:var(--royal);text-decoration:none}
h1{font-size:22px;margin:0 0 4px}
h2{font-size:17px;color:var(--royal);margin:22px 0 10px;border-bottom:2px solid var(--gold-bright);padding-bottom:5px}
h3{font-size:15px;margin:14px 0 6px}
.subtitle{color:var(--muted);font-size:13px;margin-bottom:18px}

/* layout */
.shell{display:flex;min-height:100vh}
/* .sidebar base geometry is owned by theme.css (see --sidebar-w). */
.sidebar{background:var(--royal-dark);color:#E5E7EB}
.brand{display:flex;gap:10px;align-items:center;padding:16px 14px;border-bottom:1px solid #2B3A67}
.brand-mark{width:38px;height:38px;border-radius:9px;background:var(--royal);border:2px solid var(--gold-bright);display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff}
.brand-name{font-weight:700;font-size:13px;letter-spacing:.4px;color:#fff}
.brand-sub{font-size:11px;color:#93A5D4}
.sidebar nav{padding:10px 8px;flex:1;overflow-y:auto}
.sidebar nav a{display:block;color:#CBD5E1;padding:9px 12px;border-radius:8px;margin:2px 0;font-size:14px}
.sidebar nav a:hover{background:var(--royal-mid);color:#fff}
.sidebar nav a.active{background:var(--royal);color:#fff;font-weight:600}
.nav-sep{font-size:10px;letter-spacing:1px;color:#7C8DB8;margin:14px 10px 4px}
.sidebar-foot{padding:12px;border-top:1px solid #2B3A67}
.user-chip{font-size:13px;color:#fff;background:var(--royal-mid);border-radius:8px;padding:8px 10px;margin-bottom:8px}
.user-chip small{color:#93A5D4}
.ghost{display:block;text-align:center;color:#CBD5E1;border:1px solid #3B4C7E;border-radius:8px;padding:7px;margin-top:6px;font-size:13px}
.ghost:hover{background:var(--royal-mid);color:#fff}
.main{flex:1;padding:24px 28px;max-width:1180px}
.foot{margin-top:36px;color:var(--muted);font-size:12px;border-top:1px solid var(--line);padding-top:12px}

/* flash */
.flash{padding:11px 14px;border-radius:8px;margin-bottom:12px;font-size:14px}
.flash-ok{background:var(--ok-bg);color:var(--ok);border:1px solid #86EFAC}
.flash-error{background:var(--err-bg);color:var(--err);border:1px solid #FCA5A5}
.flash-info{background:var(--info-bg);color:var(--royal);border:1px solid #93C5FD}
.flash{transition:opacity .45s ease, transform .45s ease;box-shadow:0 4px 14px rgba(15,23,42,.08)}
.flash.flash-out{opacity:0;transform:translateY(-8px)}

/* cards & forms */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin:16px 0}
.stat{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--royal);border-radius:10px;padding:14px 16px}
.stat b{display:block;font-size:26px;color:var(--royal);margin-top:4px}
.stat span{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.stat.gold{border-top-color:var(--gold-bright)}
.stat.gold b{color:var(--gold)}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:18px}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}
label{display:block;font-size:12px;color:var(--muted);margin:10px 0 4px;font-weight:600}
input[type=text],input[type=password],input[type=date],input[type=number],input[type=email],select,textarea{
  width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;font-size:14px;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--royal);outline-offset:-1px;border-color:var(--royal)}
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 18px}
.inline-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:14px}
.inline-form>div{min-width:150px;flex:1}
.inline-form label{margin-top:0}
.btn{display:inline-block;background:var(--royal);color:#fff;border:none;border-radius:8px;padding:9px 16px;font-size:14px;cursor:pointer}
.btn:hover{background:var(--royal-mid)}
.btn-gold{background:var(--gold);color:#fff}
.btn-gold:hover{background:var(--gold-bright);color:var(--royal-dark)}
.btn-danger{background:var(--err)}
.btn-danger:hover{background:#991B1B}
.btn-plain{background:#fff;color:var(--royal);border:1px solid var(--royal)}
.btn-plain:hover{background:var(--royal);color:#fff}
.btn-sm{padding:5px 10px;font-size:13px;border-radius:6px}
fieldset{border:1px solid var(--line);border-radius:10px;margin:14px 0;padding:6px 16px 14px}
legend{font-size:12px;font-weight:700;color:var(--royal);text-transform:uppercase;letter-spacing:.6px;padding:0 8px}

/* tables */
table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:10px 0}
th{background:var(--royal);color:#fff;text-align:left;padding:9px 10px;font-size:13px}
td{padding:8px 10px;border-top:1px solid var(--line);font-size:14px}
tr:nth-child(even) td{background:#F6F8FC}
tr:hover td{background:var(--info-bg)}
.pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;background:var(--info-bg);color:var(--royal);font-weight:600}
.pill.gold{background:#FDF6E0;color:var(--gold)}
.pill.err{background:var(--err-bg);color:var(--err)}
.pill.ok{background:var(--ok-bg);color:var(--ok)}
.muted{color:var(--muted)}
.right{text-align:right}
.center{text-align:center}
.mt{margin-top:16px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:900px){.grid2{grid-template-columns:1fr}}

/* login */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--royal-dark),var(--royal))}
.login-card{background:#fff;border-radius:14px;padding:34px 36px;width:380px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.login-card h1{color:var(--royal);text-align:center;font-size:20px}
.login-card .sub{text-align:center;color:var(--muted);font-size:12px;margin:2px 0 18px}
.login-mark{width:64px;height:64px;border-radius:14px;background:var(--royal);border:3px solid var(--gold-bright);color:#fff;font-size:22px;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.login-card .btn{width:100%;margin-top:14px;padding:11px}
.login-note{margin-top:14px;font-size:12px;color:var(--muted);text-align:center}
@media print{.sidebar,.foot,.toolbar,.btn,.flash,.inline-form{display:none!important}.main{padding:0}}

/* ---- private chat ---------------------------------------------------- */
.tick { color:#1d9bf0; font-weight:700; }
.chat-row { display:flex; align-items:center; gap:10px; padding:10px 12px;
  border:1px solid var(--line); border-radius:10px; margin-bottom:8px;
  text-decoration:none; color:inherit; background:#fff; }
.chat-row:hover { border-color:var(--royal); }
.chat-avatar { width:40px; height:40px; border-radius:50%; background:var(--royal);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; flex:0 0 auto; }
.chat-row .grow { flex:1; min-width:0; }
.chat-row .snippet { font-size:13px; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; }
.chat-unread { background:#1d9bf0; color:#fff; border-radius:12px;
  padding:2px 9px; font-size:12px; font-weight:700; }
.chat-thread { display:flex; flex-direction:column; gap:8px; margin:14px 0; }
.bubble { max-width:72%; padding:9px 13px; border-radius:14px;
  background:#f0f2f5; align-self:flex-start; }
.bubble.mine { background:var(--royal); color:#fff; align-self:flex-end;
  border-bottom-right-radius:4px; }
.bubble.theirs { border-bottom-left-radius:4px; }
.bubble .bb { white-space:pre-wrap; word-wrap:break-word; font-size:14.5px; }
.bubble-meta { font-size:11px; margin-top:3px; opacity:.72; text-align:right; }
.chat-input { display:flex; gap:8px; margin-top:8px; }
.chat-input textarea { flex:1; resize:none; height:56px; }

/* ---- X-style verified badge (blue rosette) ---- */
.vtick { display:inline-block; line-height:0; }
.vtick svg { width:15px; height:15px; fill:#1d9bf0; vertical-align:-2px; }

/* ============================ MODIT AI ============================ */
.ai-layout { display:grid; grid-template-columns: 270px 1fr; gap:14px; height:calc(100vh - 130px); min-height:520px; }
.ai-side { display:flex; flex-direction:column; overflow:hidden; }
.ai-convlist { overflow-y:auto; flex:1; }
.ai-conv { display:flex; align-items:center; gap:4px; padding:6px 8px; border-radius:8px; }
.ai-conv.active { background:#eef3ff; font-weight:600; }
.ai-conv-title { flex:1; text-decoration:none; color:inherit; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.ai-conv-tools { display:none; gap:2px; }
.ai-conv:hover .ai-conv-tools { display:inline-flex; }
.ai-conv-tools button { border:0; background:none; cursor:pointer; font-size:12px; padding:1px; }
.ai-main { display:flex; flex-direction:column; overflow:hidden; }
.ai-head { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #e6e6ef; padding-bottom:8px; margin-bottom:8px; }
.ai-msgs { flex:1; overflow-y:auto; padding:6px 2px; }
.ai-row { display:flex; margin:10px 0; }
.ai-row.user { justify-content:flex-end; }
.ai-bubble { max-width:78%; padding:10px 14px; border-radius:14px; background:#f2f4fa; position:relative; }
.ai-row.user .ai-bubble { background:#1a3f8b; color:#fff; border-bottom-right-radius:4px; }
.ai-row.assistant .ai-bubble { border-bottom-left-radius:4px; border:1px solid #e6e6ef; background:#fff; }
.ai-actions { margin-top:6px; display:flex; gap:6px; }
.ai-actions button { border:1px solid #ddd; background:#fafafa; border-radius:6px; cursor:pointer; font-size:12px; padding:2px 6px; }
.ai-code { background:#0f2144; color:#e8ecff; padding:12px; border-radius:8px; overflow-x:auto; position:relative; font-size:13px; }
.ai-cc { position:absolute; top:6px; right:6px; border:0; background:#22345e; color:#fff; border-radius:6px; cursor:pointer; }
.ai-inline { background:#eef1f8; padding:1px 5px; border-radius:4px; font-size:.92em; }
.ai-tbl { border-collapse:collapse; margin:8px 0; font-size:13px; }
.ai-tbl th, .ai-tbl td { border:1px solid #d9dcea; padding:4px 8px; text-align:left; }
.ai-tbl th { background:#1a3f8b; color:#fff; }
.ai-chart { max-width:100%; border:1px solid #e1e4f0; border-radius:8px; margin-top:8px; }
.ai-empty { text-align:center; margin-top:60px; color:#444; }
.ai-chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.chip { border:1px solid #c9d3ee; background:#f4f7ff; color:#1a3f8b; border-radius:999px; padding:4px 12px; font-size:12.5px; cursor:pointer; }
.chip:hover { background:#1a3f8b; color:#fff; }
.ai-composer { display:flex; gap:8px; align-items:flex-end; border-top:1px solid #e6e6ef; padding-top:8px; }
.ai-composer textarea { flex:1; resize:none; max-height:140px; padding:10px; border:1px solid #cfd6ea; border-radius:10px; font:inherit; }
.ai-att { font-size:20px; cursor:pointer; padding:6px 4px; }
.ai-soon { opacity:.45; cursor:not-allowed; }
.ai-dots { color:#8a93b5; font-style:italic; }
.ai-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.ai-card { }
.ai-card.disabled { opacity:.6; }
.ai-fab { position:fixed; right:22px; bottom:22px; z-index:900; background:linear-gradient(135deg,#1a3f8b,#2f66d0); color:#fff;
  border:0; border-radius:999px; padding:13px 18px; font-size:15px; font-weight:700; cursor:pointer;
  box-shadow:0 6px 18px rgba(26,63,139,.4); text-decoration:none; display:inline-block; }
.ai-fab:hover { transform:translateY(-2px); }
@media (max-width: 900px) { .ai-layout { grid-template-columns:1fr; height:auto; } .ai-side { max-height:220px; } }

.gtick { display:inline-block; line-height:0; }
.gtick svg { width:15px; height:15px; fill:#829aab; vertical-align:-2px; }
/* Focused dashboard workspace */
.dash-welcome { margin:4px 0 24px; }.dash-welcome h1{margin:2px 0;font-size:31px;color:#162d62}.dash-welcome p{margin:5px 0;color:#66718a}.eyebrow{font-size:11px!important;font-weight:800;letter-spacing:1.5px;color:#b77916!important}.area-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px}.area-card{min-height:154px;padding:22px;display:flex;gap:17px;align-items:flex-start;text-decoration:none;border-radius:18px;color:#fff;box-shadow:0 10px 24px rgba(22,45,98,.14);transition:.18s}.area-card:hover{transform:translateY(-4px);color:#fff}.area-system{background:linear-gradient(135deg,#283b70,#536fae)}.area-class{background:linear-gradient(135deg,#087d72,#20a194)}.area-academic{background:linear-gradient(135deg,#7b4b9b,#a66ac3)}.area-school{background:linear-gradient(135deg,#b26a19,#de9d45)}.area-icon{font-size:33px;line-height:1}.area-card b{display:block;font-size:19px;margin:2px 0 7px}.area-card small{display:block;line-height:1.45;opacity:.92}.area-card em{display:block;font-style:normal;font-weight:bold;font-size:12px;margin-top:15px}.dashboard-stats{margin-top:26px}.focus-head{padding:8px 0 20px}.focus-head h1{margin:9px 0 4px;color:#162d62}.focus-head p{color:#66718a;margin:0}.back-link{font-size:13px;color:#37598e;text-decoration:none;font-weight:bold}.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.tool-card{min-height:126px;padding:18px;border:1px solid #e3e9f4;border-radius:14px;background:#fff;text-decoration:none;color:#20345f;box-shadow:0 4px 14px rgba(30,55,105,.06);transition:.16s}.tool-card:hover{border-color:#6c8dcc;transform:translateY(-2px);color:#20345f}.tool-card b,.tool-card span,.tool-card i{display:block}.tool-card b{font-size:16px}.tool-card span{font-size:13px;color:#6b7589;margin:9px 0}.tool-card i{font-size:12px;font-style:normal;font-weight:bold;color:#3261ae}
/* Edu Suite navigation and MODIT AI workspace */
.theme-toggle{margin:10px;border:1px solid rgba(255,255,255,.26);border-radius:9px;background:transparent;color:#fff;padding:7px 10px;cursor:pointer}.main{max-width:none}.ai-layout{height:calc(100vh - 115px);gap:18px}.ai-side,.ai-main{border-radius:18px;border:1px solid #e2e7f1;box-shadow:0 10px 36px rgba(28,50,91,.08);background:rgba(255,255,255,.9)}.ai-main{padding:16px}.ai-head{padding:4px 4px 14px}.ai-bubble{border-radius:18px;padding:13px 16px;line-height:1.55}.ai-row.user .ai-bubble{background:linear-gradient(135deg,#234b9d,#3c73d6)}.ai-composer{border:1px solid #dbe3f0;border-radius:18px;padding:8px 10px;background:#fff}.ai-composer textarea{border:0;outline:0}.ai-actions button{border:0;background:transparent;padding:4px;color:#55709f}.ai-actions button:hover{background:#edf2fb}.ai-empty{margin:auto;max-width:690px;padding:20px}.ai-empty h3{font-size:28px;color:#1c3268}.ai-suggestion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:22px}.ai-suggestion-grid button{background:#fff;border:1px solid #dfe6f2;border-radius:12px;padding:12px;text-align:left;color:#25406f;cursor:pointer;box-shadow:0 3px 10px rgba(33,60,108,.05)}.ai-suggestion-grid button:hover{border-color:#6386c4;background:#f6f9ff}.ai-side-toggle{border:0;background:transparent;color:#395889;font-size:18px;cursor:pointer}.ai-layout.side-closed{grid-template-columns:52px 1fr}.ai-layout.side-closed .ai-side>*:not(.ai-side-toggle){display:none}.ai-layout.side-closed .ai-side{padding:8px}.ai-layout.side-closed .ai-side-toggle{display:block}
body[data-theme="dark"]{background:#111827;color:#e7edf9}body[data-theme="dark"] .main,body[data-theme="dark"] .panel,body[data-theme="dark"] .ai-side,body[data-theme="dark"] .ai-main,body[data-theme="dark"] .ai-composer,body[data-theme="dark"] .tool-card{background:#182235;color:#e7edf9}body[data-theme="dark"] .ai-row.assistant .ai-bubble,body[data-theme="dark"] .ai-suggestion-grid button{background:#202d44;color:#edf3ff;border-color:#33435f}body[data-theme="dark"] .ai-empty h3{color:#eef4ff}body[data-theme="dark"] .ai-composer textarea{background:transparent;color:#eef4ff}body[data-theme="dark"] .muted{color:#b5c1d7}
@media(max-width:900px){.ai-layout,.ai-layout.side-closed{grid-template-columns:1fr;height:auto}.ai-side{min-height:64px}.ai-suggestion-grid{grid-template-columns:1fr 1fr}.ai-main{min-height:70vh}}
/* Work without distractions: the navigation can be hidden and restored. */
/* Navigation layout lives in theme.css. The legacy rules that used to sit
   here targeted .sidebar-reveal as a SIBLING of .shell; the button now sits
   inside .appbar, so those selectors could never match and instead left
   `.sidebar-reveal{display:none}` as the winning rule - which hid the only
   control that opens the menu. Removed deliberately. Do not re-add. */

/* ===== AI Teaching Timetable Generator (v1.4.0) ===================== */
.tt-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0}
.tt-stat{background:#fff;border:1px solid #dde4f0;border-radius:12px;padding:14px 16px;box-shadow:0 1px 3px rgba(17,32,64,.06)}
.tt-stat b{display:block;font-size:24px;color:var(--royal);line-height:1.15}
.tt-stat span{font-size:12px;color:#6b7a94}
.tt-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:16px 0}
.tt-card{display:block;background:#fff;border:1px solid #dde4f0;border-radius:14px;padding:16px;text-decoration:none;color:inherit;transition:transform .12s,box-shadow .12s,border-color .12s}
.tt-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(17,32,64,.10);border-color:var(--royal)}
.tt-card b{display:block;margin:8px 0 4px;color:var(--royal);font-size:15px}
.tt-card small{color:#6b7a94;font-size:12.5px;line-height:1.45}
.tt-ico{font-size:26px;line-height:1}
.tt-daygrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}
.tt-checks{display:flex;flex-wrap:wrap;gap:6px 14px}
.tt-inline{display:inline-flex;align-items:center;gap:6px;font-size:13px;margin-right:14px;white-space:nowrap}
.tt-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.tt-filters select,.tt-filters input{min-width:130px;padding:6px 8px;font-size:13px}
.tt-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tt-head-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-bottom:10px}
.tt-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tt-grid{border-collapse:collapse;width:100%;min-width:760px}
.tt-grid th,.tt-grid td{border:1px solid #d7dfee;padding:2px;vertical-align:top}
.tt-grid thead th{background:var(--royal);color:#fff;font-size:10px;padding:4px 2px;text-align:center;position:sticky;top:0;z-index:2}
.tt-day{display:block;font-weight:700}
.tt-p{display:block;opacity:.9}
.tt-time{display:block;font-weight:400;opacity:.75;font-size:9px}
.tt-corner,.tt-rowhead{background:#eef2fa;color:var(--royal);font-size:11px;text-align:left;padding:6px;min-width:110px;position:sticky;left:0;z-index:1}
.tt-grid thead .tt-corner{background:var(--royal);color:#fff;z-index:3}
.tt-cell{min-width:78px;height:56px;background:#fff}
.tt-cell.over{background:#fff6d8;outline:2px dashed var(--gold)}
.tt-breakcol{background:#f1f4fa;min-width:26px;max-width:34px;font-size:9px;color:#6b7a94}
.tt-lesson{background:#e8effc;border-left:3px solid var(--royal);border-radius:5px;padding:3px 4px;font-size:10px;line-height:1.3;cursor:grab;position:relative;height:100%}
.tt-lesson.dragging{opacity:.45}
.tt-lesson.is-event{background:#f3e8ff;border-left-color:#7C3AED}
.tt-lesson.is-locked{background:#fff4e0;border-left-color:var(--gold);cursor:not-allowed}
.tt-lesson b{display:block;font-size:10.5px;color:var(--royal)}
.tt-lesson span,.tt-lesson em,.tt-lesson small{display:block;font-style:normal;font-size:9px;color:#59667f}
.tt-lock{position:absolute;top:1px;right:1px;border:none;background:transparent;cursor:pointer;font-size:10px;padding:0;line-height:1}
.tt-grid.compact .tt-cell{height:50px}
.tt-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:middle}
.tt-report{margin-top:12px;background:#f7f9ff;border:1px solid #dde4f0;border-radius:10px;padding:12px 16px}
.tt-report h3{margin:0 0 8px;font-size:14px;color:var(--royal)}
.tt-report ul{margin:0;padding-left:18px}
.tt-report li{font-size:13px;margin:3px 0}
.tt-report li.good{color:#166534}
.tt-report li.bad{color:#991B1B}
.tt-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:var(--royal);color:#fff;padding:10px 18px;border-radius:8px;font-size:13.5px;box-shadow:0 6px 20px rgba(0,0,0,.22);z-index:9999}
.tt-toast.bad{background:#991B1B}
@media (max-width:760px){
  .tt-stat b{font-size:20px}
  .tt-filters select,.tt-filters input{min-width:112px;flex:1 1 112px}
  .tt-grid{min-width:640px}
  .tt-corner,.tt-rowhead{min-width:92px;font-size:10px}
}
body[data-theme="dark"] .tt-stat,body[data-theme="dark"] .tt-card{background:#182235;border-color:#33435f;color:#e7edf9}
body[data-theme="dark"] .tt-card b{color:#cfe0ff}
body[data-theme="dark"] .tt-cell{background:#182235}
body[data-theme="dark"] .tt-corner,body[data-theme="dark"] .tt-rowhead{background:#202d44;color:#dce7ff}
body[data-theme="dark"] .tt-lesson{background:#213050;color:#e7edf9}
body[data-theme="dark"] .tt-lesson b{color:#cfe0ff}
body[data-theme="dark"] .tt-report{background:#182235;border-color:#33435f}
@media print{.tt-actions,.tt-filters,.tt-lock,.tt-cards,.tt-stats{display:none!important}.tt-grid{min-width:0}}

/* ---- day-over-class master grid (time down the left) --------------- */
.tt-daygrid-table{min-width:900px}
.tt-daygrid-table thead .tt-dayhead{background:var(--royal-dark,#12224a);color:#fff;font-size:11.5px;letter-spacing:.06em;text-align:center;padding:6px 4px;border-left:2px solid #fff}
.tt-daygrid-table thead .tt-classhead{background:var(--royal);color:#fff;font-size:9.5px;font-weight:600;text-align:center;padding:4px 2px;white-space:nowrap;top:27px}
.tt-daygrid-table thead .tt-classhead.tt-daystart,.tt-daygrid-table thead .tt-dayhead{border-left:2px solid #f4f7fd}
.tt-daygrid-table td.tt-daystart{border-left:2px solid #b9c6de}
.tt-timecell{background:#eef2fa;color:var(--royal);font-size:10.5px;text-align:left;padding:5px 7px;min-width:104px;white-space:nowrap;position:sticky;left:0;z-index:1}
.tt-timecell b{display:block;font-size:11px}
.tt-timecell span{display:block;font-size:9px;color:#6b7a94;font-weight:400}
.tt-daygrid-table thead .tt-corner{vertical-align:middle;text-align:center;font-size:11px;letter-spacing:.05em}
.tt-breakrow td{background:#e6ebf5;text-align:center;font-size:10.5px;font-weight:600;color:#4a5a78;letter-spacing:.08em;padding:3px}
.tt-breakrow .tt-timecell{background:#e0e6f2}
.tt-cell.tt-closed{background:repeating-linear-gradient(45deg,#f4f6fa,#f4f6fa 6px,#eceff6 6px,#eceff6 12px)}
.tt-nolesson{display:block;text-align:center;color:#aab4c6;font-size:11px;line-height:34px}
body[data-theme="dark"] .tt-timecell{background:#202d44;color:#dce7ff}
body[data-theme="dark"] .tt-timecell span{color:#9fb0cc}
body[data-theme="dark"] .tt-breakrow td{background:#1b2740;color:#b7c6e2}
body[data-theme="dark"] .tt-breakrow .tt-timecell{background:#1b2740}
body[data-theme="dark"] .tt-cell.tt-closed{background:repeating-linear-gradient(45deg,#161f31,#161f31 6px,#1b2537 6px,#1b2537 12px)}
body[data-theme="dark"] .tt-daygrid-table td.tt-daystart{border-left-color:#3a4c6c}
@media (max-width:760px){.tt-daygrid-table{min-width:760px}.tt-timecell{min-width:88px;font-size:9.5px}}
