@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");
/* MWR Student Dashboard — muted academic blue (desaturated) (loaded LAST, after the page's own <style>).
   Same palette as mwr-theme.css (white + #1F4170 / #3F6F96). Only touches the post-login shell (#dashScreen);
   login screen, JS, IDs and data flow are unchanged. Dark mode (data-theme="dark") keeps working: every rule
   below is scoped to the light theme. */

html:not([data-theme="dark"]){
  --bg:#F1F4F8; --bg-deep:#F4F6F9; --panel:#fff; --panel-2:#EBF0F6; --panel-3:#DCE5F0;
  --chalk:#172033; --chalk-dim:#44536A; --muted:#6B7889;
  --line:#D3DBE6; --gold-line:#BAC8D8;
  --yellow:#1F4170; --yellow-fill:#1F4170; --gold-bright:#3F6F96;
  --teal:#3F6F96; --teal-soft:#3F7D62; --clay:#1F4170; --clay-soft:#A3584A;
  --radius:14px;
  --shadow:0 18px 40px -24px rgba(31,65,112,.28),0 3px 10px rgba(31,65,112,.06);
  --shadow-sm:0 6px 18px -12px rgba(31,65,112,.22);
  --sidebar-w:254px;
}
html:not([data-theme="dark"]) body{background:var(--bg)}
html:not([data-theme="dark"]) body::before{display:none}

/* ---------- Sidebar ---------- */
html:not([data-theme="dark"]) .sidebar{
  --panel:#fff; --panel-2:#EBF0F6; --chalk:#172033; --chalk-dim:#44536A; --muted:#6B7889;
  --line:#D3DBE6; --gold-line:#BAC8D8; --gold-bright:#1F4170; --yellow:#3F6F96; --teal-soft:#3F6F96;
  background:#fff;border-right:1px solid #D3DBE6;box-shadow:none;padding:16px 14px 0;
}
:where(html:not([data-theme="dark"])) .sidebar-brand{background:#fff!important;border:0!important;box-shadow:none!important;padding:4px 6px 14px!important;margin-bottom:10px!important;border-bottom:1px solid #E1E7EF!important;border-radius:0!important}
:where(html:not([data-theme="dark"])) .sidebar-brand:hover{transform:none!important}
:where(html:not([data-theme="dark"])) .sidebar-brand .brand-logo{width:46px;height:auto;flex-shrink:0;display:block}
:where(html:not([data-theme="dark"])) .sidebar-brand{gap:10px!important}
:where(html:not([data-theme="dark"])) .sidebar-brand>div:last-child{min-width:0}
/* wordmark = same treatment as the public site header (Montserrat, bold, uppercase, tracked, academic blue) */
:where(html:not([data-theme="dark"])) .sidebar-brand .brand-name,:where(html:not([data-theme="dark"])) .sidebar-brand .brand-name span{
  font-family:Montserrat,Inter,system-ui,sans-serif!important;font-weight:700!important;font-style:normal!important;
  font-size:12px!important;letter-spacing:.06em!important;text-transform:uppercase;color:#1F4170!important;text-shadow:none!important;white-space:nowrap;line-height:1.05}
:where(html:not([data-theme="dark"])) .sidebar-brand .brand-tag{color:#3F6F96!important;font-family:Inter,system-ui,sans-serif!important;font-weight:700!important;font-size:8.5px!important;letter-spacing:.2em!important;text-transform:uppercase;margin-top:6px!important;white-space:nowrap}
html:not([data-theme="dark"]) .sidebar-clock{background:var(--panel-2);border:1px solid var(--line);color:#1F4170;border-radius:10px;font-family:'Inter',sans-serif;font-weight:600}
html:not([data-theme="dark"]) .sidebar-clock .sc-dot{background:#3F6F96;box-shadow:0 0 0 3px rgba(63,111,150,.18)}
html:not([data-theme="dark"]) .sidebar-clock .sc-colon{color:#3F6F96}
:where(html:not([data-theme="dark"])) .nav-group-label{font-family:'Inter',sans-serif!important;font-weight:600;font-size:11px!important;letter-spacing:.04em!important;text-transform:none!important}
html:not([data-theme="dark"]) .navlist button{border-radius:10px;font-size:13.5px;color:#44536A;transform:none}
html:not([data-theme="dark"]) .navlist button:hover{background:#EBF0F6;color:#1F4170;transform:none}
html:not([data-theme="dark"]) .navlist button.active{background:#E6ECF4;color:#1F4170;font-weight:600;box-shadow:none}
html:not([data-theme="dark"]) .navlist button.active::before{left:-14px;width:4px;height:22px;background:#1F4170;box-shadow:none;border-radius:0 4px 4px 0}
html:not([data-theme="dark"]) .nav-symbol{background:#F1F4F8;border:1px solid #D3DBE6;color:#3F6F96;border-radius:9px;font-family:'Inter',sans-serif}
html:not([data-theme="dark"]) .navlist button.active .nav-symbol{background:#1F4170;border-color:#1F4170;color:#fff}
html:not([data-theme="dark"]) .sidebar-footer{background:#F4F6F9;border-top:1px solid #D3DBE6;box-shadow:none;margin:0 -14px;padding:12px 14px 14px}
html:not([data-theme="dark"]) .sidebar-logout{background:#fff;border:1px solid #BAC8D8;color:#1F4170;font-family:'Inter',sans-serif;font-weight:600;font-size:13px;border-radius:10px;padding:10px}
html:not([data-theme="dark"]) .sidebar-logout:hover{background:#F6EDEA;border-color:#A3584A;color:#A3584A}

/* ---------- Top bar ---------- */
:where(html:not([data-theme="dark"])) .dash-body{padding:0 28px}
:where(html:not([data-theme="dark"])) .topbar{margin:14px 0 14px!important;border-radius:14px!important;padding:10px 16px!important}
:where(html:not([data-theme="dark"])) .topbar-search{background:#F1F4F8!important;border-radius:10px!important}
:where(html:not([data-theme="dark"])) .topbar-search:focus-within{border-color:#3F6F96!important;box-shadow:0 0 0 3px rgba(63,111,150,.15)!important}
:where(html:not([data-theme="dark"])) .acct-avatar{background:#1F4170!important;color:#fff!important;border:0!important;font-family:'Inter',sans-serif!important;font-weight:700}
:where(html:not([data-theme="dark"])) .acct-name{color:#172033!important;font-weight:600}
:where(html:not([data-theme="dark"])) .acct-role{color:#3F6F96!important;font-weight:600}
:where(html:not([data-theme="dark"])) .tb-icon-btn,:where(html:not([data-theme="dark"])) .tb-notif-bell{border-radius:10px!important;border:1px solid #D3DBE6!important;background:#fff!important;color:#1F4170!important}
:where(html:not([data-theme="dark"])) .tb-icon-btn:hover,:where(html:not([data-theme="dark"])) .tb-notif-bell:hover{background:#EBF0F6!important;border-color:#3F6F96!important}
:where(html:not([data-theme="dark"])) .tb-notif-badge{background:#A3584A!important;color:#fff!important}

/* ---------- Overview ---------- */
html:not([data-theme="dark"]) .ov-banner{
  background:linear-gradient(120deg,#1F4170 0%,#3F6F96 100%);border:0;border-radius:18px;color:#fff;
  box-shadow:0 22px 40px -26px rgba(31,65,112,.7);position:relative;overflow:hidden;
}
html:not([data-theme="dark"]) .ov-banner::before,html:not([data-theme="dark"]) .ov-banner::after{background:radial-gradient(circle,rgba(255,255,255,.12),transparent 70%)}
html:not([data-theme="dark"]) .ov-banner *{color:#fff}
html:not([data-theme="dark"]) .ov-banner-greeting{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);color:#fff;font-family:'Inter',sans-serif}
html:not([data-theme="dark"]) .ov-hello{font-family:'Fraunces',serif;font-weight:600;color:#fff}
html:not([data-theme="dark"]) .ov-banner-quote{color:rgba(255,255,255,.85);font-style:italic}
html:not([data-theme="dark"]) .ov-banner-datebox{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:12px;box-shadow:none}
html:not([data-theme="dark"]) .ov-banner-divider{background:rgba(255,255,255,.22)}
html:not([data-theme="dark"]) .ov-banner-illustration{opacity:.95;filter:saturate(.8)}

:where(html:not([data-theme="dark"])) .ovkpi-card,:where(html:not([data-theme="dark"])) .ov-card,:where(html:not([data-theme="dark"])) .ov-panel,:where(html:not([data-theme="dark"])) .table-panel,:where(html:not([data-theme="dark"])) .ov-quote-card{
  background:#fff!important;border:1px solid #D3DBE6!important;border-radius:14px!important;box-shadow:var(--shadow-sm)!important;
}
:where(html:not([data-theme="dark"])) .ovkpi-card:hover,:where(html:not([data-theme="dark"])) .ov-card:hover{border-color:#3F6F96!important;box-shadow:var(--shadow)!important;transform:translateY(-2px)}
html:not([data-theme="dark"]) .ovkpi-card:nth-child(n){--ovkpi-tint:#E6ECF4;--ovkpi-accent:#1F4170}
html:not([data-theme="dark"]) .ovkpi-card:nth-child(3){--ovkpi-tint:#F6EDEA;--ovkpi-accent:#A3584A}
html:not([data-theme="dark"]) .ovkpi-card:nth-child(2){--ovkpi-tint:#E7F1EB;--ovkpi-accent:#3F7D62}
html:not([data-theme="dark"]) .ov-card:nth-child(n){--ov-tint:#E6ECF4;--ov-accent:#1F4170}
:where(html:not([data-theme="dark"])) .ov-panel-head{border-bottom:1px solid #E1E7EF;padding-bottom:10px}
:where(html:not([data-theme="dark"])) .ov-panel-link{color:#3F6F96!important;font-weight:600}

/* ---------- Tabs: heroes, tables, controls ---------- */
html:not([data-theme="dark"]) .profile-hero{background:linear-gradient(120deg,#EBF0F6,#fff 70%);border:1px solid #D3DBE6;border-radius:16px;box-shadow:var(--shadow-sm)}
html:not([data-theme="dark"]) .profile-hero .profile-name-row,html:not([data-theme="dark"]) .profile-hero h2{color:#1F4170}
:where(html:not([data-theme="dark"])) .profile-tag{background:#E6ECF4!important;color:#1F4170!important;border:1px solid #BAC8D8!important}
:where(html:not([data-theme="dark"])) table{font-size:13.5px}
:where(html:not([data-theme="dark"])) thead th,:where(html:not([data-theme="dark"])) table th{background:#EBF0F6!important;color:#1F4170!important;font-family:'Inter',sans-serif!important;font-weight:600!important;letter-spacing:.02em;border-bottom:1px solid #D3DBE6!important}
:where(html:not([data-theme="dark"])) table td{border-bottom:1px solid #E8EDF3!important}
:where(html:not([data-theme="dark"])) table tbody tr:hover td{background:#F4F6F9}
:where(html:not([data-theme="dark"])) .att-view-btn{border-radius:9px!important;font-family:'Inter',sans-serif!important;font-weight:600}
:where(html:not([data-theme="dark"])) .att-view-btn.active{background:#1F4170!important;border-color:#1F4170!important;color:#fff!important}
html:not([data-theme="dark"]) .btn{background:#1F4170;border:1px solid #1F4170;color:#fff;box-shadow:0 10px 20px -12px rgba(31,65,112,.6)}
html:not([data-theme="dark"]) .btn:hover{background:#3F6F96;border-color:#3F6F96;filter:none}
html:not([data-theme="dark"]) .btn-ghost,html:not([data-theme="dark"]) .btn-tiny{color:#1F4170;border-color:#BAC8D8;background:#fff;font-family:'Inter',sans-serif;font-weight:600}
html:not([data-theme="dark"]) .btn-ghost:hover,html:not([data-theme="dark"]) .btn-tiny:hover{background:#EBF0F6;border-color:#3F6F96;color:#1F4170}
:where(html:not([data-theme="dark"])) .status-pill{font-family:'Inter',sans-serif!important;font-weight:600!important}
:where(html:not([data-theme="dark"])) .status-pill.neutral{background:#E6ECF4!important;color:#1F4170!important;border-color:#BAC8D8!important}
:where(html:not([data-theme="dark"])) .status-pill.paid{background:#E7F1EB!important;color:#3F7D62!important;border-color:#BCD6C6!important}
:where(html:not([data-theme="dark"])) .status-pill.pending{background:#F6EDEA!important;color:#A3584A!important;border-color:#E0C4BD!important}

/* ---------- Mobile ---------- */
@media (max-width:900px){:where(html:not([data-theme="dark"])) .dash-body{padding:0 14px}:where(html:not([data-theme="dark"])) .ov-banner{border-radius:14px}}

/* ---------- Sidebar logo = index header logo ----------
   LIGHT MODE ONLY: sidebar header logo = the index.html header logo (blue gradient "MwR" mark with the gold "w",
   blue MATHS WITH RAJESH wordmark, gold tag line). Reuses the .brand-logo-ft mark that is already in the markup
   (its colours are re-pointed here); the old logo image is hidden. Dark mode is not touched. */
html:not([data-theme="dark"]) .sidebar-brand{gap:9px!important}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo{display:none!important}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft{display:block!important;flex:0 0 auto;width:50px;height:30px;border-radius:0;filter:drop-shadow(0 4px 8px rgba(11,58,130,.28))}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft rect{fill:url(#mwrG)}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(1){stroke:#fff;stroke-opacity:.35}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(2),
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(4){stroke:#fff;stroke-opacity:1}
html:not([data-theme="dark"]) .sidebar-brand .brand-logo-ft path:nth-of-type(3){stroke:#F2C94C;stroke-opacity:1}
html:not([data-theme="dark"]) .sidebar-brand .brand-name,
html:not([data-theme="dark"]) .sidebar-brand .brand-name span{color:#0B3A82!important;font-size:11px!important}
html:not([data-theme="dark"]) .sidebar-brand .brand-tag{color:#B8860B!important}

/* ---------- Sidebar header = admin dashboard's light-mode sidebar header ----------
   LIGHT MODE ONLY. Same top offset, same side inset (logo and divider line up with the admin sidebar)
   and the same divider colour as admin. Dark mode is not touched. */
html:not([data-theme="dark"]) .sidebar{padding-top:2px!important}
html:not([data-theme="dark"]) .sidebar .sidebar-brand{margin:0 -2px 10px!important;padding:4px 6px 14px!important;border-bottom:1px solid rgba(16,35,80,.12)!important}

/* ---------- Login screen centred in the space under the header (left/right and top/bottom) ----------
   Both themes. The card block already sat in the horizontal middle; auto margins now centre it vertically too. */
#loginScreen .lg-shell{margin:auto}
