/* Fonts are bundled in assets/fonts, so pages look the same with or without internet (SIL Open Font License) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Sea blue (#006994) for bars, buttons and accents; alice blue (#F0F8FF) for page backgrounds */
  --seablue: #006994; --aliceblue: #F0F8FF;
  --blue: var(--seablue); --blue-dark: #00506f; --blue-50: #e2f1f8; --blue-100: #cbe6f2;
  --ink: #17191e; --ink-2: #4b5260; --ink-3: #7a8191; --line: #d6e4ef; --bg: var(--aliceblue); --side: #e2eff9;
  --green: #12805c; --red: #d42a2a; --amber: #b86e00; --teal: #0f766e; --teal-50: #e3f3f1;
  --radius: 6px; --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }

/* ---------- app shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: linear-gradient(90deg, #00587d, var(--seablue)); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px; letter-spacing: .2px; }
.brand strong { font-weight: 600; }
.role-pill { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: 999px; }
.topsearch { flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14);
  border-radius: 6px; padding: 0 12px; height: 40px; }
.topsearch input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; }
.topsearch input::placeholder { color: rgba(255,255,255,.85); }
.topsearch kbd { font: 600 12px var(--font); border: 1px solid rgba(255,255,255,.7); border-radius: 4px; padding: 2px 6px; }
.topicons { display: flex; align-items: center; gap: 6px; }
.topicon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; color: #fff; text-decoration: none; }
.topicon:hover { background: rgba(255,255,255,.14); }
.topicon .count { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5383b;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.userchip { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 6px 14px 6px 6px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--blue-100); color: var(--blue-dark); flex: none; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.avatar.teal { background: var(--teal-50); color: var(--teal); }

.shell { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 284px; flex: none; background: var(--side); padding: 24px 0 16px; position: relative; display: flex; flex-direction: column; }
.sidebar nav a { display: flex; align-items: center; gap: 18px; padding: 9px 20px 9px 22px; margin: 1px 4px; color: var(--ink); text-decoration: none; border-radius: 2px; font-size: 17px; }
.sidebar nav a svg { color: var(--ink-2); }
.sidebar nav a:hover { background: #d4e8f5; }
.sidebar nav a.active { background: var(--blue-100); }
.sidebar .badge { font-size: 11px; font-weight: 700; background: var(--blue); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: -6px; }
.sidebar .badge.count { background: #e5383b; }
.sidebar hr { border: 0; border-top: 1px solid var(--line); margin: 14px 4px; }
.sidebar .collapse { position: absolute; right: -19px; top: 40px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--blue); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
body.side-collapsed .sidebar { width: 72px; }
body.side-collapsed .sidebar nav a span, body.side-collapsed .sidebar .badge { display: none; }

.main { flex: 1; min-width: 0; padding: 32px 48px 48px; }
.pagehead { display: flex; align-items: baseline; gap: 20px; margin-bottom: 12px; }
.pagehead h1 { font-size: 22px; font-weight: 500; margin: 0; }
.pagehead .sub { font-size: 14px; color: var(--ink-3); }
.tabs { display: flex; gap: 8px; border-bottom: 0; margin: 16px 0 20px; }
.tabs a { padding: 12px 34px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--blue); border-color: var(--blue); }
.metaline { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.searchbox { display: flex; align-items: center; gap: 10px; border: 1px solid #c7ccd6; border-radius: 4px; padding: 0 12px; height: 46px; width: 280px; background: #fff; }
.searchbox input { border: 0; outline: 0; flex: 1; min-width: 0; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; border: 0; background: transparent; color: var(--blue); cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--blue-50); }
.iconbtn.danger { color: var(--red); } .iconbtn.danger:hover { background: #fdecec; }
.iconbtn.muted { color: var(--ink-2); }
.spacer { flex: 1; }

/* ---------- data table ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #e8f3fb; }
.table .chk { width: 40px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--green); }
.dot.off { background: transparent; border: 1.5px solid #9aa1ad; }
.dot.warn { background: var(--amber); }
.tablefoot { display: flex; justify-content: flex-end; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.empty { padding: 40px; text-align: center; color: var(--ink-3); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue-dark); }
.tag.teal { background: var(--teal-50); color: var(--teal); } .tag.gray { background: #eef0f3; color: var(--ink-2); } .tag.amber { background: #fdf1dc; color: var(--amber); }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 14px; }

/* ---------- cards / walkthrough ---------- */
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 18px; }
.section-title h2 { font-size: 20px; font-weight: 500; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.walk { display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 100px; text-decoration: none; color: var(--ink); }
.walk .art { width: 150px; background: var(--seablue); color: var(--aliceblue); display: grid; place-items: center; }
.walk .txt { padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.walk .txt b { font-weight: 500; font-size: 18px; } .walk .txt span { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .v { font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; } .stat .k { color: var(--ink-2); font-size: 14px; }

/* ---------- forms / buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--blue); background: var(--blue); color: #fff;
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); }
.btn.ghost { background: #fff; color: var(--blue); } .btn.ghost:hover { background: var(--blue-50); }
.btn.teal { background: var(--teal); border-color: var(--teal); } .btn.teal:hover { background: #0b5d57; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; align-items: end; }
.formgrid .span2 { grid-column: span 2; }
.field { min-width: 0; } input[type=file] { max-width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .fieldlabel { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 40px; border: 1px solid #c7ccd6; border-radius: 4px; padding: 0 10px; background: #fff; }
.field textarea { height: auto; padding: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-100); border-color: var(--blue); }
.checks { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 0; }
.checks label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; }
.flash.success { background: #e6f5ee; color: #0b5a40; border: 1px solid #bfe3d1; }
.flash.error { background: #fdecec; color: #8f1d1d; border: 1px solid #f4c4c4; }
.iconpick { display: flex; flex-wrap: wrap; gap: 6px; }
.iconpick label { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.iconpick input { display: none; }
.iconpick input:checked + label { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.preview-side { background: var(--side); border-radius: var(--radius); padding: 12px 0; }
.preview-side div { display: flex; align-items: center; gap: 14px; padding: 7px 18px; font-size: 15px; }
.preview-side div.off { opacity: .4; text-decoration: line-through; }

/* ---------- student inbox: friendly cards + reading pane ---------- */
.s-inbox { display: grid; grid-template-columns: 380px 1fr; gap: 24px; min-height: 560px; }
.s-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 14px; border-radius: 999px; background: #dcecf7; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip.active { background: var(--blue); color: #fff; }
.s-list { display: flex; flex-direction: column; gap: 10px; }
.s-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; }
.s-card:hover { border-color: #b9c8ea; }
.s-card.unread { border-left: 4px solid var(--blue); background: #f5fbff; }
.s-card.unread .subj { font-weight: 700; }
.s-card.open { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.s-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); }
.s-card .subj { margin: 2px 0; } .s-card .snip { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-card .body { min-width: 0; flex: 1; }
.s-read { border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: #fff; }
.s-read h2 { margin: 6px 0 14px; font-weight: 500; font-size: 22px; }
.s-read .from { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.s-read .msgbody { white-space: pre-wrap; line-height: 1.6; }
.s-read .bar { display: flex; gap: 6px; justify-content: flex-end; }
.s-empty { display: grid; place-items: center; text-align: center; color: var(--ink-3); border: 1px dashed #cfd5df; border-radius: 10px; padding: 40px; }
.announce { display: flex; gap: 10px; align-items: center; background: #fff7e6; border: 1px solid #f6dfae; color: #7a4b00; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }

/* ---------- tutor inbox: dense 3-pane, course folders ---------- */
.t-inbox { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 600px; }
.t-inbox.with-read { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); }
.t-folders { background: #e6f2fa; border-right: 1px solid var(--line); padding: 14px 0; }
.t-folders h4 { margin: 14px 16px 6px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3); }
.t-folders a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 16px; color: var(--ink); text-decoration: none; font-size: 14px; }
.t-folders a:hover { background: #d7eaf6; }
.t-folders a.active { background: var(--teal-50); color: var(--teal); font-weight: 600; box-shadow: inset 3px 0 0 var(--teal); }
.t-folders .n { font-size: 12px; font-weight: 700; color: var(--teal); }
.t-folders .compose { margin: 0 14px 10px; display: flex; justify-content: center; }
.t-list { border-right: 1px solid var(--line); min-width: 0; overflow: hidden; }
.t-list .table { table-layout: fixed; }
.t-inbox.with-read .col-course { display: none; }
.t-list .toolbar .searchbox { flex: 1; min-width: 160px; }
.t-list .toolbar { padding: 10px 12px; margin: 0; border-bottom: 1px solid var(--line); gap: 8px; }
.t-list .searchbox { height: 36px; width: 220px; }
.t-row td { font-size: 14px; padding: 8px 10px; cursor: pointer; }
.t-row.unread td { font-weight: 700; }
.t-row.open td { background: var(--teal-50) !important; }
.t-row .who, .t-row .subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row .subj small { font-weight: 400; color: var(--ink-3); }
.star { color: #c2c7d0; } .star.on { color: #e3a008; }
.t-read { padding: 22px; min-width: 0; }
.t-read h2 { font-size: 19px; font-weight: 500; margin: 0 0 10px; }
.t-read .head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-size: 14px; }
.t-read .msgbody { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.t-compose { padding: 22px; }
.reply { margin-top: 22px; }
.reply textarea { width: 100%; min-height: 110px; border: 1px solid #c7ccd6; border-radius: 6px; padding: 10px; }
.reply .row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------- auth pages (Sakai-inspired) ---------- */
.auth { min-height: 100vh; background: var(--aliceblue); display: flex; flex-direction: column; }
.auth-top { background: var(--aliceblue); border-bottom: 1px solid var(--line); }
.auth-top .in { max-width: 1180px; margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--seablue); font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.logo .mark { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--seablue); }
.auth-top nav { display: flex; gap: 26px; font-size: 15px; } .auth-top nav a { color: #00405a; text-decoration: none; font-weight: 500; }
.auth-top nav a:hover { color: var(--seablue); text-decoration: underline; }
.hero { background: linear-gradient(120deg, #004e6e 0%, var(--seablue) 55%, #0a83b3 100%); color: #fff; }
.hero .in { max-width: 1180px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1.15fr 420px; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; font-weight: 700; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: #bfe8f8; }
.hero p { font-size: 18px; color: #e3f3fb; max-width: 520px; margin: 0 0 26px; }
.hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--aliceblue); }
.hero li { display: flex; gap: 10px; align-items: center; } .hero li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aliceblue); }
.login-card { background: #fff; color: var(--ink); border-radius: 10px; padding: 30px 30px 26px; box-shadow: 0 18px 40px rgba(0,40,60,.35); border-top: 5px solid var(--seablue); }
.login-card h2 { margin: 0 0 4px; font-size: 22px; color: #00405a; } .login-card .lead { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.login-card .field { margin-bottom: 14px; }
.login-card .field input, .login-card .field select { height: 44px; }
.btn-primary { width: 100%; height: 46px; border: 0; border-radius: 6px; background: var(--seablue); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-primary:hover { background: #00506f; }
.login-card .alt { text-align: center; font-size: 14px; margin-top: 16px; color: var(--ink-2); }
.login-card .alt a { color: var(--seablue); font-weight: 600; }
.demo { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); background: var(--aliceblue); border-radius: 6px; padding: 10px 12px; }
.demo code { color: var(--ink); }
.features { max-width: 1180px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.features div { background: #fff; border-radius: 8px; padding: 20px; border: 1px solid var(--line); }
.features h3 { margin: 0 0 6px; color: var(--seablue); font-size: 17px; } .features p { margin: 0; color: var(--ink-2); font-size: 14px; }
.auth-foot { margin-top: auto; background: #004e6e; color: #cfe8f3; font-size: 13px; text-align: center; padding: 18px; }
.reg-wrap { max-width: 760px; margin: 36px auto; padding: 0 24px; width: 100%; }
.reg-wrap .login-card { box-shadow: 0 6px 20px rgba(5,20,40,.08); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.reg-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero .in { grid-template-columns: 1fr; padding: 32px 16px; } .hero h1 { font-size: 32px; }
  .auth-top nav { display: none; }
  .sidebar { width: 72px; } .sidebar nav a span, .sidebar .badge { display: none; } .sidebar .collapse { display: none; }
  .main { padding: 20px 16px; } .topsearch { display: none; }
  .s-inbox, .t-inbox, .t-inbox.with-read { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
}

/* Content surfaces sit on the alice blue page as white cards */
.table-wrap, .t-inbox, .s-card, .s-read, .panel, .stat, .walk, .searchbox { background: #fff; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); }
.t-inbox .table-wrap { border: 0; border-radius: 0; }
.tablefoot { border-bottom: 0; }
.sidebar { border-right: 1px solid var(--line); }

/* ---------- login page (v3): sea blue brand panel + alice blue sign-in side ---------- */
.auth { font-family: Nunito, var(--font); }
.login-page { background: var(--aliceblue); }
.lp { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.lp-brand { position: relative; overflow: hidden; color: #fff; background: linear-gradient(150deg, #00405a 0%, var(--seablue) 52%, #0b89bb 100%); }
.lp-pattern { position: absolute; inset: 0; }
.lp-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(240, 248, 255, .14); }
.lp-ring.r1 { width: 520px; height: 520px; right: -220px; top: -180px; }
.lp-ring.r2 { width: 340px; height: 340px; left: -140px; bottom: -120px; border-width: 40px; border-color: rgba(240, 248, 255, .06); }
.lp-brand-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; gap: 28px; padding: 40px clamp(24px, 5vw, 72px); }
.lp-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.lp-logo .mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--aliceblue); color: var(--seablue); box-shadow: 0 6px 14px rgba(0, 30, 50, .25); }
.lp-kicker { display: inline-block; margin-bottom: 10px !important; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #bfe8f8;
  padding: 6px 12px; border-radius: 999px; background: rgba(240, 248, 255, .12); margin-bottom: 18px; }
.lp-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-stats div { padding: 12px 18px; border-radius: 14px; background: rgba(240, 248, 255, .1); border: 1px solid rgba(240, 248, 255, .16); min-width: 110px; }
.lp-stats b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; } .lp-stats span { font-size: 13px; color: #cfe8f3; }
.lp-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 24px; gap: 24px;
  background: radial-gradient(circle at 80% 10%, #ffffff 0, var(--aliceblue) 45%); }
.lp-card { width: 100%; max-width: 430px; background: #fff; border-radius: 24px; overflow: hidden; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 40, 60, .06), 0 24px 60px rgba(0, 70, 110, .16); border: 1px solid #dceaf4; }
.lp-card-head { position: relative; text-align: center; padding: 26px 28px 44px; color: #fff;
  background: linear-gradient(135deg, var(--seablue), #0a86b8); }
.lp-card-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: #fff; border-radius: 22px 22px 0 0; }
.lp-card-head p { margin: 4px 0 0; font-size: 14px; color: #dcf0fa; }
.lp-body { padding: 8px 28px 26px; }
.lp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--aliceblue); border: 1px solid #d7e8f4; margin-bottom: 18px; }
.lp-seg button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  font: 700 14px Nunito, var(--font); color: #3f6a80; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.lp-seg button svg { width: 17px; height: 17px; }
.lp-seg button.on { background: #fff; color: var(--seablue); box-shadow: 0 1px 3px rgba(0, 50, 80, .15); }
.lp-field { display: block; margin-bottom: 14px; }
.lp-label { display: block; font-size: 13px; font-weight: 700; color: #2c4a5a; margin-bottom: 6px; }
.lp-input { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #cfe1ee; background: #fbfdff;
  color: #6f98ae; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.lp-input:focus-within { border-color: var(--seablue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 105, 148, .12); color: var(--seablue); }
.lp-input svg { width: 19px; height: 19px; flex: none; }
.lp-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 600 16px Nunito, var(--font); color: var(--ink); }
.lp-input input::placeholder { color: #9ab3c2; font-weight: 500; }
.peek { border: 0; background: none; color: #7aa9c2; cursor: pointer; padding: 6px; margin-right: -6px; display: grid; border-radius: 8px; }
.peek:hover { background: var(--aliceblue); color: var(--seablue); }
.lp-caps { margin: -6px 0 10px; font-size: 12.5px; font-weight: 700; color: var(--amber); }
.lp-btn { width: 100%; height: 52px; margin-top: 6px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #0a86b8, var(--seablue)); color: #fff; font: 800 17px Nunito, var(--font); cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 105, 148, .3); transition: transform .12s ease, box-shadow .12s ease; }
.lp-btn:hover { box-shadow: 0 14px 26px rgba(0, 105, 148, .36); } .lp-btn:hover svg { transform: translateX(3px); }
.lp-btn svg { transition: transform .15s ease; } .lp-btn:active { transform: scale(.98); }
.lp-btn:focus-visible, .lp-seg button:focus-visible { outline: 3px solid rgba(0, 105, 148, .35); outline-offset: 2px; }
.lp-alt { text-align: center; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.lp-alt a { color: var(--seablue); font-weight: 800; }
.lp-forgot { text-align: center; margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.lp-demo { margin-top: 18px; border-top: 1px dashed #d3e4ef; padding-top: 14px; }
.lp-demo summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--seablue); text-align: center; list-style: none; }
.lp-demo summary::-webkit-details-marker { display: none; }
.lp-demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.lp-demo-grid button { border: 1px solid #d7e8f4; background: var(--aliceblue); border-radius: 10px; padding: 8px 6px; cursor: pointer; font-family: inherit; text-align: center; }
.lp-demo-grid button:hover { border-color: var(--seablue); background: #fff; }
.lp-demo-grid b { display: block; font-size: 13px; color: #00405a; } .lp-demo-grid span { font-size: 11.5px; color: var(--ink-3); }
.lp-card .flash { border-radius: 12px; margin-bottom: 14px; }
.lp-foot { font-size: 13px; color: #5a7a8c; } .lp-foot a { color: var(--seablue); }
@media (max-width: 900px) {
  .lp { grid-template-columns: 1fr; }
  .lp-brand-in { gap: 22px; padding: 22px 20px 30px; }
      .lp-stats div { padding: 8px 12px; min-width: 0; flex: 1; } .lp-stats b { font-size: 19px; }
  .lp-side { padding: 0 16px 24px; justify-content: flex-start; background: var(--aliceblue); }
  .lp-card { margin-top: -18px; position: relative; } .lp-body { padding: 8px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .lp-btn, .lp-btn svg { transition: none; } }


/* ---------- v4: login with the tutor ---------- */
.lp-tutor { margin: auto 0; max-width: 620px; }
.lp-tutor-top { display: flex; align-items: center; gap: 26px; }
.lp-photo { position: relative; margin: 0; flex: none; }
.lp-photo img { display: block; width: 168px; height: 168px; object-fit: cover; border-radius: 32px; border: 5px solid rgba(240, 248, 255, .9);
  box-shadow: 0 22px 44px rgba(0, 25, 45, .4); background: #dfeef7; }
.lp-photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 36px; background: rgba(240, 248, 255, .12); z-index: -1; transform: rotate(-6deg); }
.lp-online { position: absolute; right: -10px; bottom: -10px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #f6b73c; color: #00405a; box-shadow: 0 8px 18px rgba(0, 25, 45, .3); }
.lp-who h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; margin: 0 0 8px; font-weight: 800; letter-spacing: -.6px; text-wrap: balance; }
.lp-who h1 em { font-style: normal; color: #bfe8f8; }
.lp-role { margin: 0; font-size: 16px; font-weight: 700; color: #bfe8f8; }
.lp-tagline { font-size: 17px; line-height: 1.55; color: #dcf0fa; margin: 24px 0 18px; max-width: 520px; }
.lp-expertise { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.lp-group { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(240, 248, 255, .08); border: 1px solid rgba(240, 248, 255, .12); }
.lp-gico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(240, 248, 255, .16); }
.lp-gico svg { width: 19px; height: 19px; }
.lp-group b { display: block; font-size: 14.5px; margin: 1px 0 6px; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-tags span { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--aliceblue); color: #00405a; }
.lp-card-mark { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: var(--aliceblue); color: var(--seablue);
  box-shadow: 0 10px 22px rgba(0, 30, 50, .25); }
.lp-card-mark svg { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .lp-tutor-top { gap: 16px; } .lp-photo img { width: 88px; height: 88px; border-radius: 22px; border-width: 3px; }
  .lp-photo::before, .lp-online { display: none; }
  .lp-who h1 { font-size: 24px; } .lp-role { font-size: 14px; }
  .lp-tagline { margin: 14px 0 0; font-size: 15px; }
  .lp-expertise { display: flex; overflow-x: auto; gap: 8px; margin-top: 14px; padding-bottom: 4px; scrollbar-width: none; }
  .lp-group { flex: none; padding: 8px 10px; } .lp-gico { display: none; } .lp-group b { display: none; } .lp-tags { flex-wrap: nowrap; }
  .lp-kicker { display: inline-block !important; font-size: 11px; padding: 4px 10px; }
}

/* Registration card matches the sign-in card */
.reg-wrap .login-card { border-radius: 20px; border: 1px solid #dceaf4; border-top: 5px solid var(--seablue); box-shadow: 0 24px 60px rgba(0, 70, 110, .12); padding: 30px; }
.login-card h2 { font-weight: 800; letter-spacing: -.3px; }
.login-card .field input, .login-card .field select { border-radius: 12px; border: 1.5px solid #cfe1ee; background: #fbfdff; padding: 0 12px; font-family: inherit; font-size: 15px; }
.login-card .field input:focus, .login-card .field select:focus { outline: 0; border-color: var(--seablue); box-shadow: 0 0 0 4px rgba(0, 105, 148, .12); background: #fff; }
.reg-wrap .btn-primary { border-radius: 12px; height: 50px; background: linear-gradient(135deg, #0a86b8, var(--seablue)); box-shadow: 0 10px 22px rgba(0, 105, 148, .25); font-family: inherit; font-weight: 800; }

/* ---------- v4: video tutorials ---------- */
.tut-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 30px; margin-bottom: 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 90% 0, rgba(240, 248, 255, .18), transparent 40%), linear-gradient(135deg, #00405a, var(--seablue) 60%, #0a86b8); }
.tut-hero h1 { margin: 6px 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -.4px; } .tut-hero p { margin: 0; color: #dcf0fa; max-width: 520px; }
.tut-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #bfe8f8; }
.tut-kicker svg { width: 16px; height: 16px; }
.tut-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: #fff; color: var(--ink-3); width: min(360px, 100%); }
.tut-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; min-width: 0; }
.tut-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tut-chips .chip span { opacity: .65; margin-left: 2px; font-variant-numeric: tabular-nums; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tcard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 70, 110, .14); border-color: #bcdcef; }
.tcard-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .22), transparent 45%), linear-gradient(135deg, var(--c1), var(--c2)); }
.tcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tcard:hover .tcard-media img { transform: scale(1.04); }
.tcard-art svg { width: 54px; height: 54px; opacity: .9; stroke-width: 1.4; }
.tcard-play { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--seablue);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25); opacity: 0; transform: scale(.85); transition: opacity .18s ease, transform .18s ease; }
.tcard-play svg { margin-left: 3px; }
.tcard:hover .tcard-play, .tcard-media:focus-visible .tcard-play { opacity: 1; transform: scale(1); }
.tcard-media:not(:has(img)) .tcard-play { opacity: 0; } .tcard:hover .tcard-media:not(:has(img)) .tcard-art { opacity: 0; }
.tcard:hover .tcard-media:not(:has(img)) .tcard-play { opacity: 1; }
.tcard-badge { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0, 25, 40, .72); color: #fff; }
.tcard-body { padding: 16px 18px 6px; flex: 1; }
.tcard-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--seablue); background: var(--aliceblue); border: 1px solid #d3e7f3; padding: 2px 9px; border-radius: 999px; text-decoration: none; }
.tcard-body h3 { margin: 10px 0 6px; font-size: 16.5px; line-height: 1.35; font-weight: 600; } .tcard-body h3 a { color: var(--ink); text-decoration: none; }
.tcard-body h3 a:hover { color: var(--seablue); }
.tcard-body p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-foot { display: flex; gap: 10px; align-items: stretch; padding: 14px 18px 18px; }
.tcard-doc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--aliceblue); border: 1px solid #d3e7f3;
  color: #00405a; text-decoration: none; transition: border-color .15s, background-color .15s; }
.tcard-doc:hover { border-color: var(--seablue); background: #fff; }
.tcard-doc .ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--seablue); }
.tcard-doc .ico svg { width: 18px; height: 18px; }
.tcard-doc .txt { flex: 1; min-width: 0; display: grid; } .tcard-doc b { font-size: 13px; } .tcard-doc small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-doc > svg { width: 17px; height: 17px; flex: none; color: var(--seablue); }
.tcard-doc.none { color: var(--ink-3); } .tcard-doc.none .ico { color: var(--ink-3); }
.tcard-watch { display: flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 12px; background: var(--seablue); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.tcard-watch:hover { background: #00506f; } .tcard-watch svg { width: 15px; height: 15px; fill: currentColor; }
.backlink { display: inline-block; margin-bottom: 12px; color: var(--seablue); text-decoration: none; font-weight: 600; font-size: 14px; }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #021d2a; box-shadow: 0 16px 40px rgba(0, 40, 60, .2); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #021d2a; }
.watch-head { margin: 18px 0 16px; } .watch-head h1 { margin: 10px 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -.3px; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.watch-desc p { margin: 0; line-height: 1.6; color: var(--ink-2); }
.doc-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .doc-row > div { display: grid; min-width: 0; } .doc-row b { overflow-wrap: anywhere; }
.doc-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdf-preview { margin-top: 16px; } .pdf-preview summary { cursor: pointer; }
.pdf-preview iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; background: #fff; }
.watch-side h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.up-next { display: flex; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--ink); align-items: center; }
.up-next:hover { background: #fff; box-shadow: 0 4px 14px rgba(0, 70, 110, .08); }
.un-thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.un-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .un-thumb svg { width: 26px; height: 26px; }
.un-thumb.sm { width: 72px; border-radius: 8px; } .un-thumb.sm svg { width: 18px; height: 18px; }
.un-txt { display: grid; gap: 3px; min-width: 0; } .un-txt b { font-size: 14px; font-weight: 600; line-height: 1.3; } .un-txt small { font-size: 12px; color: var(--ink-3); }
.row-tut { display: flex; align-items: center; gap: 12px; }
@media (max-width: 1000px) { .watch { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tut-hero { padding: 22px 18px; } .tut-hero h1 { font-size: 24px; } .tgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tcard, .tcard-media img, .tcard-play { transition: none; } .tcard:hover { transform: none; } }

/* Admin upload form */
.upload-panel > summary { cursor: pointer; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.up-box { border: 1.5px dashed #c4dceb; border-radius: 14px; padding: 14px 16px 6px; margin: 0; background: var(--aliceblue); min-width: 0; }
.up-box legend { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #00405a; padding: 0 6px; }
.up-box legend svg { width: 18px; height: 18px; }
.up-box input[type=file] { width: 100%; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.up-box input[name=youtube_url] { width: 100%; height: 40px; border: 1px solid #c7ccd6; border-radius: 8px; padding: 0 10px; }
.up-box .current { margin-top: 0; color: var(--ink-2); }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.seg-mini input { position: absolute; opacity: 0; pointer-events: none; }
.seg-mini span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg-mini input:checked + span { background: var(--seablue); color: #fff; }
.seg-mini input:focus-visible + span { outline: 2px solid var(--seablue); outline-offset: 2px; }
.up-progress { margin-top: 16px; } .up-progress .bar { height: 10px; border-radius: 999px; background: #e3eef5; overflow: hidden; }
.up-progress .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0a86b8, var(--seablue)); transition: width .2s ease; }
.up-progress.error p { color: var(--red); font-weight: 600; }
.tutor-set { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .tutor-set .field { flex: 1; min-width: 200px; } .tutor-set img { border-radius: 20px; object-fit: cover; border: 1px solid var(--line); flex: none; }

/* Dashboard strip of latest tutorials */
.tgrid.compact { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- v3: programme checkboxes, results ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--aliceblue); }
.check-grid .inline-check { align-items: flex-start; } .check-grid .inline-check input { flex: none; margin-top: 1px; }
.tag.red { background: #fdecec; color: var(--red); }
.filters-bar { flex-wrap: wrap; } .filters-bar select { height: 38px; border: 1px solid #c7ccd6; border-radius: 6px; padding: 0 8px; background: #fff; max-width: 220px; }
.results-list { display: grid; gap: 10px; }
.result-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.result-row:hover { border-color: var(--seablue); box-shadow: 0 4px 14px rgba(0, 70, 110, .1); }
.rr-body { flex: 1; min-width: 0; display: grid; gap: 2px; } .rr-body b { font-size: 15.5px; }
.rr-score { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; } .rr-score small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.mini-ring { --c: var(--teal); width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e6eef3 0); }
.mini-ring.fail { --c: var(--red); }
.mini-ring span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #00405a; }
.empty-results { text-align: center; padding: 40px 20px; color: var(--ink-2); } .empty-results svg { width: 36px; height: 36px; color: var(--seablue); }
@media (max-width: 640px) { .result-row { flex-wrap: wrap; } .result-row .tag { display: none; } }

/* ---------- admin forms ---------- */
.panel-title { margin: 0 0 14px; font-weight: 600; font-size: 16px; color: #00405a; }
details > summary.panel-title { margin: 0; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--aliceblue); cursor: pointer; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--seablue); flex: none; }
.inline-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--seablue); }
input[type=file] { font-size: 14px; }
code { background: var(--blue-50); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ---------- quiz cards (student inbox and My Quizzes) ---------- */
.quiz-inbox { border: 1px solid #bfe0f0; background: linear-gradient(180deg, #e3f3fc, #fff); border-radius: 14px; padding: 14px; margin-bottom: 18px; }
.quiz-inbox-head { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 10px; color: #00405a; }
.quiz-inbox-head b { display: flex; gap: 8px; align-items: center; }
.quiz-list { display: flex; flex-direction: column; gap: 12px; }
.quiz-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.quiz-inbox .quiz-card + .quiz-card { margin-top: 10px; }
.quiz-card.status-open, .quiz-card.status-in_progress { border-left: 4px solid var(--seablue); }
.qc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--seablue); flex: none; }
.qc-body { flex: 1; min-width: 0; }
.qc-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 16px; }
.qc-meta { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.qc-action { flex: none; }

/* ---------- quiz taking page ---------- */
.quiz-page { background: var(--aliceblue); min-height: 100vh; }
.quiz-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: linear-gradient(90deg, #00587d, var(--seablue)); color: #fff; }
.quiz-bar .qt { flex: 1; min-width: 0; } .quiz-bar .qt b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quiz-bar .qt span { font-size: 13px; opacity: .85; }
.timer { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--seablue); font: 700 22px/1 ui-monospace, Consolas, monospace; padding: 8px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; min-width: 130px; justify-content: center; }
.timer.warn { color: #b45309; background: #fff7e6; } .timer.danger { color: #fff; background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.quiz-wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 80px; position: relative; z-index: 2; }
.quiz-info { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; color: var(--ink-2); font-size: 14px; }
.qnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.qnav a { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.qnav a.done { background: var(--seablue); color: #fff; border-color: var(--seablue); }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; scroll-margin-top: 80px; }
.qcard .qh { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.qcard .qtext { font-size: 17px; margin: 0 0 14px; white-space: pre-wrap; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: #9ccbe2; }
.opt input { width: 18px; height: 18px; accent-color: var(--seablue); }
.opt .L { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--seablue); font-weight: 700; font-size: 13px; flex: none; }
.opt:has(input:checked) { border-color: var(--seablue); background: #eaf6fc; }
.saved-note { font-size: 12px; color: var(--green); min-height: 16px; }
.submit-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }

/* ---------- results ---------- */
.score-hero { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.score-ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--seablue) calc(var(--p) * 1%), #dcecf7 0); }
.score-ring span { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 24px Nunito, var(--font); color: #00405a; }
.res-q { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.res-q.right { border-left: 4px solid var(--green); } .res-q.wrong { border-left: 4px solid var(--red); }
.res-opt { padding: 6px 10px; border-radius: 8px; font-size: 14px; margin: 3px 0; }
.res-opt.correct { background: #e6f5ee; color: #0b5a40; font-weight: 600; } .res-opt.chosen-wrong { background: #fdecec; color: #8f1d1d; text-decoration: line-through; }

/* ---------- protection ---------- */
body.protected .quiz-layout, body.protected .main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.watermark { position: fixed; inset: 0; z-index: 1; pointer-events: none; background-repeat: repeat; }
body.protected .quiz-layout, body.protected .main { position: relative; }
.watermark { z-index: 40; }
.shield { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(240, 248, 255, .96); backdrop-filter: blur(14px); place-items: center; text-align: center; color: #00405a; cursor: pointer; font-weight: 600; }
body.shielded .shield { display: grid; }
body.shielded .quiz-layout, body.shielded .main { filter: blur(16px); }
@media print { body.protected * { display: none !important; } body.protected::after { content: "Printing is disabled for this page."; display: block; padding: 40px; } }
.auth > * { flex-shrink: 0; }
.auth .features { width: 100%; }
.cute-card .alt, .cute-card .lead { color: var(--ink-2); }
.cute-card .alt a { color: var(--seablue); font-weight: 700; }

/* Phones: keep the top bar inside the screen */
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .brand { font-size: 17px; min-width: 0; } .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .role-pill { display: none; }
  .topicons { margin-left: auto; gap: 2px; } .topicon { width: 36px; } .topicons .topicon:not(:nth-child(2)) { display: none; }
  .userchip { padding: 4px; font-size: 0; gap: 0; }
  .main { padding: 16px 12px; }
  .tabs { overflow-x: auto; scrollbar-width: none; } .tabs a { padding: 12px 16px; white-space: nowrap; }
  .walk .art { width: 84px; }
  .formgrid .span2 { grid-column: auto; }
  .pagehead { flex-wrap: wrap; gap: 6px 14px; }
  .up-grid { grid-template-columns: 1fr; }
}


/* =====================================================================
   v5 design system: one consistent, modern look for every page.
   These rules come last on purpose so they refine everything above.
   ===================================================================== */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Nunito", "Inter", system-ui, sans-serif;
  --radius: 14px; --line: #d9e7f1; --ink-2: #47566a; --ink-3: #74859a;
  --shadow-sm: 0 1px 2px rgba(10, 50, 80, .05), 0 2px 8px rgba(10, 50, 80, .04);
  --shadow: 0 2px 4px rgba(10, 50, 80, .05), 0 12px 32px rgba(10, 60, 100, .08);
}
body { font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); }

/* top bar and sidebar */
.topbar { height: 64px; box-shadow: 0 2px 10px rgba(0, 40, 60, .18); }
.brand { font-family: var(--display); font-weight: 800; font-size: 20px; } .brand strong { font-weight: 800; }
.topsearch { border-radius: 12px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .12); }
.topsearch:focus-within { background: rgba(255, 255, 255, .24); }
.topicon { border-radius: 10px; }
.userchip { border-radius: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 30, 50, .15); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding-top: 20px; }
.sidebar nav a { font-size: 15px; font-weight: 500; gap: 14px; padding: 10px 14px; margin: 2px 12px; border-radius: 10px; color: #23364a; }
.sidebar nav a svg { color: #5b7891; }
.sidebar nav a:hover { background: var(--aliceblue); }
.sidebar nav a.active { background: linear-gradient(90deg, #e1f1fa, #eef7fc); color: var(--seablue); font-weight: 600; box-shadow: inset 3px 0 0 var(--seablue); }
.sidebar nav a.active svg { color: var(--seablue); }
.sidebar hr { margin: 14px 18px; }
.sidebar .collapse { right: -17px; width: 34px; height: 34px; box-shadow: var(--shadow-sm); }

/* page structure */
.main { padding: 28px 36px 56px; }
.pagehead { align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 6px 16px; }
.pagehead h1 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; color: #0d2a3c; }
.pagehead .sub { font-size: 14px; }
.section-title { margin: 34px 0 16px; } .section-title h2 { font-size: 19px; font-weight: 800; color: #0d2a3c; }
.section-title a { font-weight: 600; text-decoration: none; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); max-width: 100%; }
.tabs a { padding: 8px 18px; border-radius: 9px; border-bottom: 0; font-size: 14px; font-weight: 600; }
.tabs a:hover { background: var(--aliceblue); }
.tabs a.active { background: var(--seablue); color: #fff; }
.metaline { margin-bottom: 16px; }

/* surfaces */
.panel { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow-sm); padding: 22px; }
.panel-title { font-family: var(--display); font-weight: 800; font-size: 16.5px; color: #0d2a3c; }
.table-wrap { border-radius: 16px; overflow-x: auto; box-shadow: var(--shadow-sm); }
.t-inbox .table-wrap { box-shadow: none; }
.table th { background: #f6fafd; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; }
.table td { padding: 12px 14px; border-color: #e7f0f6; }
.table tr:hover td { background: #f4f9fd; }
.table tbody tr:last-child td { border-bottom: 0; }
.tablefoot { border-bottom: 0; color: var(--ink-3); font-size: 14px; padding: 14px 4px; }
.stat { border-radius: 16px; box-shadow: var(--shadow-sm); padding: 18px 20px; position: relative; overflow: hidden; }
.stat .v { font-family: var(--display); font-size: 30px; font-weight: 800; color: #0d2a3c; line-height: 1.15; } .stat .v small { font-size: 15px; color: var(--ink-3); }
.stat .k { font-size: 13.5px; font-weight: 500; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--seablue); opacity: .85; }
.stat.accent-green::before { background: var(--green); } .stat.accent-red::before { background: var(--red); } .stat.accent-gray::before { background: #9aa8b8; }
.walk { box-shadow: var(--shadow-sm); background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.walk:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.walk .art { background: linear-gradient(135deg, var(--seablue), #0a86b8); }
.walk .txt b { font-weight: 700; font-size: 17px; }
.empty { color: var(--ink-3); }
.s-empty { border-radius: 16px; background: #fff; }
.announce { border-radius: 12px; }

/* controls */
.btn { height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 60, 90, .15); transition: background-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { box-shadow: 0 4px 12px rgba(0, 90, 130, .22); } .btn:active { transform: scale(.98); }
.btn.ghost { border-color: #bcd8ea; box-shadow: none; } .btn.ghost:hover { box-shadow: none; }
.btn.sm { height: 34px; border-radius: 9px; }
.btn.wide { width: 100%; justify-content: center; height: 46px; font-size: 15.5px; }
.btn.amber { background: #e09a14; border-color: #e09a14; } .btn.amber:hover { background: #c4840b; }
.btn.light { background: #fff; color: var(--seablue); border-color: #fff; } .btn.light:hover { background: var(--aliceblue); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; } .btn.outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn:disabled { opacity: .6; cursor: progress; }
.iconbtn { border-radius: 10px; }
.searchbox { border-radius: 12px; border-color: var(--line); height: 44px; box-shadow: var(--shadow-sm); }
.searchbox:focus-within { border-color: var(--seablue); box-shadow: 0 0 0 4px rgba(0, 105, 148, .1); }
.field label { font-size: 13px; font-weight: 600; color: #2c4256; }
.field input, .field select, .field textarea, .filters-bar select { height: 42px; border: 1.5px solid #d3e1ec; border-radius: 10px; background: #fbfdff; padding: 0 12px; }
.field textarea { padding: 10px 12px; height: auto; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--seablue); box-shadow: 0 0 0 4px rgba(0, 105, 148, .1); background: #fff; }
.chip { background: #fff; border: 1px solid var(--line); font-weight: 600; color: #34495e; padding: 6px 14px; transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: #a9cfe4; } .chip.active { border-color: var(--seablue); }
.tag { font-weight: 700; padding: 3px 9px; }
.flash { border-radius: 12px; font-weight: 500; box-shadow: var(--shadow-sm); }
.inline-check input, .switch-row input { accent-color: var(--seablue); }

/* shared page hero (quizzes, tutorials) */
.page-hero, .tut-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 30px; margin-bottom: 20px;
  border-radius: 22px; color: #fff; box-shadow: 0 16px 40px rgba(0, 70, 110, .18);
  background: radial-gradient(circle at 92% -10%, rgba(240, 248, 255, .22), transparent 42%), linear-gradient(135deg, #00405a, var(--seablue) 60%, #0a86b8); }
.page-hero h1, .tut-hero h1 { margin: 6px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.4px; color: #fff; }
.page-hero p { margin: 0; color: #dcf0fa; max-width: 520px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #bfe8f8; }
.hero-kicker svg { width: 16px; height: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 10px; }
.hero-stats div { padding: 12px 16px; border-radius: 14px; background: rgba(240, 248, 255, .12); border: 1px solid rgba(240, 248, 255, .18); }
.hero-stats b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; } .hero-stats span { font-size: 12.5px; color: #cfe8f3; }
.seg-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.seg-tabs a { padding: 8px 16px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.seg-tabs a:hover { background: var(--aliceblue); } .seg-tabs a.on { background: var(--seablue); color: #fff; }
.seg-tabs .seg-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--seablue); }
.seg-tabs .seg-link svg { width: 17px; height: 17px; }
.seg-tabs.small { margin: 0; box-shadow: none; } .seg-tabs.small a { padding: 6px 12px; font-size: 13px; }

/* quiz cards */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 18px; }
.qz { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.qz::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: #c9d6e2; }
.qz.status-open::before { background: linear-gradient(90deg, var(--seablue), #0a9bd0); } .qz.status-in_progress::before { background: #e09a14; }
.qz.status-finished::before { background: var(--teal); }
.qz:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qz-top { display: flex; align-items: center; gap: 8px; }
.qz-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--aliceblue); color: var(--seablue); margin-right: auto; }
.qz.status-in_progress .qz-ico { background: #fdf3e0; color: #b8770a; } .qz.status-finished .qz-ico { background: var(--teal-50); color: var(--teal); }
.qz-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; color: #0d2a3c; }
.qz-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.qz-facts li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: #34495e; background: var(--aliceblue); border: 1px solid #dcebf5; padding: 4px 9px; border-radius: 8px; }
.qz-facts svg { width: 14px; height: 14px; color: var(--seablue); }
.qz-when { display: flex; gap: 8px; margin: 0; font-size: 13.5px; color: var(--ink-2); } .qz-when svg { width: 17px; height: 17px; color: var(--ink-3); margin-top: 1px; }
.qz-best { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f6fafd; border: 1px solid #e3eef5; text-decoration: none; color: var(--ink); }
.qz-best:hover { border-color: #a9cfe4; } .qz-best b { display: block; font-size: 14px; } .qz-best small { color: var(--seablue); font-weight: 600; font-size: 12.5px; }
.qz-best .mini-ring { width: 46px; height: 46px; } .qz-best .mini-ring span { width: 36px; height: 36px; font-size: 11.5px; }
.qz-action { margin-top: auto; padding-top: 4px; } .qz-action form { margin: 0; }
.qz-note { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; background: #f3f6f9; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.qz-note svg { width: 17px; height: 17px; } .qz-note.ok { background: var(--teal-50); color: var(--teal); }
.quiz-inbox { border-radius: 18px; padding: 16px; background: linear-gradient(180deg, #e3f3fc, #f7fbfe); box-shadow: var(--shadow-sm); }
.quiz-inbox .qgrid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }

/* quiz taking page */
.quiz-page { background: var(--aliceblue); }
.quiz-bar { height: 64px; padding: 0 20px; gap: 18px; box-shadow: 0 2px 10px rgba(0, 40, 60, .2); }
.qb-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 17px; padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .25); }
.quiz-bar .qt b { font-family: var(--display); font-weight: 800; }
.quiz-bar .timer { display: none; font-family: var(--display); font-weight: 800; }
.quiz-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; align-items: start; position: relative; z-index: 2; }
.quiz-side { position: sticky; top: 88px; }
.qs-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.qs-timer { position: relative; width: 150px; height: 150px; margin: 0 auto 16px; }
.qs-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qs-timer circle { fill: none; stroke-width: 10; } .qs-timer .track { stroke: #e3eef5; }
.qs-timer .arc { stroke: var(--seablue); stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
.qs-timer > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.qs-timer b { font: 800 30px/1 var(--display); color: #0d2a3c; font-variant-numeric: tabular-nums; } .qs-timer span { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.qs-timer.warn .arc { stroke: #e09a14; } .qs-timer.warn b { color: #b8770a; }
.qs-timer.danger .arc { stroke: var(--red); } .qs-timer.danger b { color: var(--red); animation: pulse 1s infinite; }
.qs-progress { margin-bottom: 16px; } .qs-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.qs-row b { color: #0d2a3c; font-variant-numeric: tabular-nums; }
.qs-progress .bar { height: 8px; border-radius: 999px; background: #e3eef5; overflow: hidden; }
.qs-progress .bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #0a86b8, var(--seablue)); transition: width .25s ease; }
.qs-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.quiz-side .qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-bottom: 10px; }
.qnav a { width: auto; height: 38px; border-radius: 10px; border: 1.5px solid #d3e1ec; background: #fff; transition: background-color .15s, border-color .15s; }
.qnav a:hover { border-color: var(--seablue); color: var(--seablue); }
.qnav a.done { background: var(--seablue); border-color: var(--seablue); color: #fff; }
.qnav a.cur { box-shadow: 0 0 0 3px rgba(0, 105, 148, .25); border-color: var(--seablue); }
.qs-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.qs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid #d3e1ec; background: #fff; display: inline-block; } .lg.done { background: var(--seablue); border-color: var(--seablue); }
.qs-ends { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; text-align: center; line-height: 1.5; }
.quiz-intro h1 { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: #0d2a3c; letter-spacing: -.3px; }
.quiz-intro p { margin: 0 0 18px; color: var(--ink-2); }
.qcard { border-radius: 18px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; transition: border-color .2s; }
.qcard:has(input:checked) { border-color: #b7dbee; }
.qcard .qh, .res-q .qh { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.qnum { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--aliceblue); color: var(--seablue); font-weight: 800; font-size: 14px; flex: none; }
.qcard:has(input:checked) .qnum { background: var(--seablue); color: #fff; }
.qmarks { margin-left: auto; font-weight: 700; color: var(--ink-2); background: #f3f6f9; padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.qcard .qtext, .res-q .qtext { font-size: 17.5px; font-weight: 600; line-height: 1.5; color: #0d2a3c; margin: 0 0 16px; white-space: pre-wrap; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; gap: 14px; padding: 13px 16px; margin: 0; border: 1.5px solid #d3e1ec; border-radius: 14px; background: #fbfdff; font-size: 15.5px;
  transition: border-color .15s, background-color .15s, box-shadow .15s; }
.opt:hover { border-color: #8cc3df; background: #fff; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .L { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; background: #fff; border: 1.5px solid #d3e1ec; transition: inherit; }
.opt .T { flex: 1; }
.opt .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--seablue); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.opt:has(input:checked) { border-color: var(--seablue); background: #eaf6fc; box-shadow: 0 0 0 3px rgba(0, 105, 148, .1); }
.opt:has(input:checked) .L { background: var(--seablue); border-color: var(--seablue); color: #fff; }
.opt:has(input:checked) .tick { opacity: 1; transform: scale(1); }
.opt:has(input:focus-visible) { outline: 3px solid rgba(0, 105, 148, .35); outline-offset: 2px; }
.saved-note { margin-top: 8px; font-weight: 600; }
.submit-bar { border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) {
  .quiz-layout { grid-template-columns: 1fr; padding: 16px 12px 80px; gap: 14px; }
  .quiz-bar { height: auto; min-height: 60px; padding: 8px 12px; gap: 10px; } .qb-brand { display: none; }
  .quiz-bar .timer { display: flex; min-width: 0; font-size: 18px; padding: 7px 12px; }
  .quiz-side { position: static; } .qs-card { padding: 14px; border-radius: 16px; box-shadow: var(--shadow-sm); }
  .qs-timer, .qs-ends, .qs-card > .btn { display: none; }
  .quiz-side .qnav { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); } .qnav a { height: 34px; }
  .qcard { padding: 18px 16px; } .qcard .qtext { font-size: 16.5px; }
  .quiz-intro h1 { font-size: 20px; }
}

/* quiz result */
.result-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px 30px; border-radius: 22px; color: #fff; margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(0, 70, 110, .18); background: radial-gradient(circle at 92% -10%, rgba(240, 248, 255, .22), transparent 42%), linear-gradient(135deg, #00405a, var(--seablue) 60%, #0a86b8); }
.result-hero.fail { background: radial-gradient(circle at 92% -10%, rgba(240, 248, 255, .2), transparent 42%), linear-gradient(135deg, #2f3e52, #3c5a78 60%, #4e7598); }
.rh-body { flex: 1; min-width: 260px; }
.rh-body h1 { margin: 6px 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.rh-verdict { margin: 0; font-size: 18px; font-weight: 700; } .rh-verdict span { font-weight: 500; color: #cfe8f3; margin-left: 6px; }
.rh-meta { margin: 6px 0 16px; font-size: 14px; color: #cfe8f3; }
.rh-actions { display: flex; gap: 10px; flex-wrap: wrap; } .rh-actions form { margin: 0; }
.score-ring.big { width: 150px; height: 150px; --c: #7ee0b5; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); }
.result-hero.fail .score-ring.big { --c: #ffb4a8; }
.score-ring.big span { width: 118px; height: 118px; background: #fff; flex-direction: column; font-size: 34px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.score-ring.big small { font: 700 13px var(--font); color: var(--ink-3); margin-top: 6px; }
.res-q { border-radius: 16px; padding: 20px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); border-left-width: 1px; }
.res-q.right { border-left: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--green), var(--shadow-sm); }
.res-q.wrong { border-left: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--red), var(--shadow-sm); }
.res-badge { margin-left: auto; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.res-badge.ok { background: #e6f5ee; color: #0b5a40; } .res-badge.bad { background: #fdecec; color: #8f1d1d; } .res-badge.blank { background: #f1f3f6; color: var(--ink-2); }
.res-opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid #e3edf4; margin: 6px 0; font-size: 15px; }
.res-opt .L { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f3f6f9; font-weight: 800; font-size: 13px; flex: none; }
.res-opt em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; }
.res-opt.correct { border-color: #9fd8bd; background: #eef9f3; text-decoration: none; } .res-opt.correct .L { background: var(--green); color: #fff; }
.res-opt.chosen-wrong { border-color: #f2b8b8; background: #fdf1f1; text-decoration: none; } .res-opt.chosen-wrong .L { background: var(--red); color: #fff; }
.res-opt.chosen-wrong > span:not(.L) { text-decoration: line-through; }
@media (max-width: 640px) {
  .page-hero, .tut-hero, .result-hero { padding: 22px 18px; border-radius: 18px; } .page-hero h1, .rh-body h1 { font-size: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .score-ring.big { width: 120px; height: 120px; } .score-ring.big span { width: 94px; height: 94px; font-size: 28px; }
  .seg-tabs .seg-link { margin-left: 0; }
  .pagehead h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .qz, .walk, .btn, .opt, .opt .tick { transition: none; } .qz:hover, .walk:hover { transform: none; } }

/* Wide data tables: keep titles readable and dates on one line */
#t-q td:nth-child(2) { min-width: 190px; } #t-q td:nth-child(3) { min-width: 150px; } #t-q th { padding: 12px 10px; } #t-q td:nth-child(4), #t-q td:nth-child(5) { white-space: nowrap; }
#t-r td:nth-child(1), #t-r td:nth-child(5) { min-width: 170px; } #t-r td:nth-child(7) { white-space: nowrap; }
#t-u td:nth-child(2) { min-width: 160px; }

/* ================================================================ v6 */
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.btn.xl { background: #1d6f42; border-color: #1d6f42; color: #fff; }
.btn.xl:hover { filter: brightness(.95); }
.danger-zone { border-color: #f3c7c7; }
.place-label { font-weight: 600; font-size: 14px; color: var(--ink, #12324a); }
td.places { white-space: nowrap; }
td.places form { display: inline-block; margin: 0 4px 0 0; }
.place { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #d6e4ee; background: #fff; color: #6b8296; font: 600 12px/1 var(--font); padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.place svg { width: 13px; height: 13px; }
.place.on { background: #e3f1f8; border-color: #9ccbe2; color: #006994; }
.place:hover { border-color: #006994; }
.flash-fill { background: #fff7d6 !important; transition: background .6s; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: #f0f8ff; border: 1px solid #cfe3f0; border-radius: 12px; margin-bottom: 14px; }
.bulkbar .hint { margin: 0; }
.bulkbar input[type=number], .bulkbar input[type=text] { width: 110px; }
.table td input.cell { width: 90px; padding: 6px 8px; min-height: 0; height: 34px; }
.table td textarea.cell { width: 100%; min-width: 180px; min-height: 34px; height: 34px; padding: 6px 8px; resize: vertical; }
.tag.green { background: #e3f6ec; color: #17784a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.date-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.date-range input { width: auto; }
.meter { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 99px; background: #e7eef4; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: #17a673; }
.meter.mid span { background: #e8a33d; } .meter.low span { background: var(--red); }
.simple-table td, .simple-table th { padding-top: 11px; padding-bottom: 11px; }
/* student attendance cards */
.att-open { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 26px; }
.att-card { display: flex; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); border-left: 5px solid var(--seablue); }
.att-card.approved { border-left-color: #17a673; } .att-card.pending { border-left-color: #e8a33d; } .att-card.rejected { border-left-color: var(--red); }
.att-date { flex: none; width: 64px; height: 70px; border-radius: 14px; background: var(--aliceblue); color: var(--seablue); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.att-date b { font-family: var(--display); font-size: 26px; line-height: 1; } .att-date span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.att-body { flex: 1; min-width: 0; }
.att-body h3 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; }
.att-body .hint { margin: 0 0 12px; }
.att-state { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.att-form { display: flex; gap: 10px; flex-wrap: wrap; }
.att-form input { flex: 1 1 160px; font-size: 18px; font-weight: 700; letter-spacing: 1px; font-family: var(--font); }
@media (max-width: 640px) { .att-card { flex-direction: column; gap: 12px; } .att-date { flex-direction: row; gap: 8px; width: auto; height: auto; padding: 8px 12px; justify-content: flex-start; } }
/* assignments */
.asg-list { display: grid; gap: 16px; }
.asg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.asg-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.asg-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--aliceblue); color: var(--seablue); }
.asg-ico svg { width: 22px; height: 22px; }
.asg-title { flex: 1; min-width: 200px; } .asg-title h3 { margin: 0 0 3px; font-family: var(--display); font-size: 18px; } .asg-title .hint { margin: 0; }
.asg-mark { font-family: var(--display); font-size: 15px; color: var(--ink-2); } .asg-mark b { font-size: 26px; color: var(--seablue); }
.asg-text { margin: 14px 0 0; padding: 12px 14px; background: #f7fbfe; border-radius: 12px; font-size: 14.5px; line-height: 1.55; }
.asg-text.small { font-size: 13.5px; margin-top: 8px; }
.asg-feedback { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #e9f7f1; color: #165f42; font-size: 14.5px; } .asg-feedback b { display: block; margin-bottom: 4px; }
.asg-sub { margin: 14px 0 0; font-size: 14px; } .asg-sub a { display: inline-flex; align-items: center; gap: 5px; } .asg-sub svg { width: 15px; height: 15px; }
.asg-submit { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.asg-submit summary { cursor: pointer; font-weight: 700; color: var(--seablue); display: inline-flex; align-items: center; gap: 8px; }
.asg-submit summary svg { width: 17px; height: 17px; }
.asg-submit form { display: grid; gap: 12px; margin-top: 12px; max-width: 720px; }
.tcard-doc.inline { display: inline-flex; max-width: 100%; }
.sub-cell { font-size: 13.5px; } .sub-cell a { display: inline-flex; gap: 4px; align-items: center; } .sub-cell svg { width: 14px; height: 14px; }
details.answer summary { cursor: pointer; color: var(--seablue); font-size: 13px; } details.answer div { margin-top: 6px; padding: 8px 10px; background: #f7fbfe; border-radius: 8px; max-width: 420px; }
#t-mark { min-width: 860px; }

/* ================================================================ v6 login landing page (wide layout) */
.lx-page { display: block; background: #fff; }
.lx-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.lx-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #e3eef6; }
.lx-nav .lx-wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.lx-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 21px; font-weight: 800; color: #00405a; text-decoration: none; letter-spacing: -.2px; }
.lx-logo .mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--seablue); color: #fff; }
.lx-logo .mark svg { width: 22px; height: 22px; }
.lx-logo.light { color: #fff; } .lx-logo.light .mark { background: var(--aliceblue); color: var(--seablue); }
.lx-links { display: flex; gap: 26px; margin-right: auto; }
.lx-links a { color: #24485c; font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.lx-links a:hover { color: var(--seablue); border-bottom-color: var(--seablue); }
.lx-actions { display: flex; gap: 10px; }
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font: 700 15px var(--font); text-decoration: none; border: 1.5px solid var(--seablue); background: var(--seablue); color: #fff; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; }
.lx-btn:hover { box-shadow: 0 8px 18px rgba(0, 105, 148, .25); } .lx-btn:active { transform: scale(.97); }
.lx-btn svg { width: 18px; height: 18px; }
.lx-btn.ghost { background: transparent; color: var(--seablue); }
.lx-btn.light { background: var(--aliceblue); border-color: var(--aliceblue); color: #00405a; }
.lx-btn.outline-light { background: transparent; border-color: rgba(240, 248, 255, .55); color: #fff; }
.lx-btn.outline-light:hover { background: rgba(240, 248, 255, .1); }
.lx-hero { position: relative; overflow: hidden; contain: paint; color: #fff; background: linear-gradient(140deg, #003a52 0%, var(--seablue) 55%, #0b8fc2 100%); }
.lx-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: 56px; padding-bottom: 64px; }
.lx-intro h1 { font-family: var(--display); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -1px; margin: 4px 0 16px; }
.lx-intro h1 em { font-style: normal; color: #bfe8f8; }
.lx-lead { font-size: clamp(16px, 1.5vw, 19px); color: #dcf0fa; max-width: 620px; margin: 0 0 26px; line-height: 1.55; }
.lx-tutor { display: inline-flex; align-items: center; gap: 16px; padding: 10px 22px 10px 10px; border-radius: 20px; background: rgba(240, 248, 255, .1); border: 1px solid rgba(240, 248, 255, .18); margin-bottom: 26px; }
.lx-tutor img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 3px solid rgba(240, 248, 255, .9); }
.lx-tutor b { display: block; font-family: var(--display); font-size: 18px; } .lx-tutor span { font-size: 14px; color: #cfe8f3; }
.lx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.lx-signin { scroll-margin-top: 100px; }
.lx-signin .lp-card { max-width: none; box-shadow: 0 30px 60px rgba(0, 25, 40, .35); }
.lx-section { padding: 72px 0; background: #fff; scroll-margin-top: 60px; }
.lx-section.alt { background: var(--aliceblue); }
.lx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.lx-head h2 { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.6px; color: #00334a; margin: 4px 0 8px; }
.lx-head p { margin: 0; color: var(--ink-2); max-width: 640px; font-size: 16px; }
.lx-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--seablue); }
.lx-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1.5px solid #cfe1ee; border-radius: 12px; background: #fff; min-width: min(100%, 300px); color: #6b8296; }
.lx-search:focus-within { border-color: var(--seablue); box-shadow: 0 0 0 4px rgba(0, 105, 148, .12); }
.lx-search svg { width: 18px; height: 18px; } .lx-search input { border: 0; outline: 0; flex: 1; font: 500 15px var(--font); background: transparent; min-width: 0; height: auto; padding: 0; box-shadow: none; }
.lx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.lx-chips button { border: 1.5px solid #d3e4ef; background: #fff; color: #24485c; border-radius: 999px; padding: 8px 16px; font: 600 14px var(--font); cursor: pointer; }
.lx-chips button span { color: #8aa2b2; font-weight: 700; margin-left: 4px; }
.lx-chips button:hover { border-color: var(--seablue); }
.lx-chips button.on { background: var(--seablue); border-color: var(--seablue); color: #fff; } .lx-chips button.on span { color: #bfe8f8; }
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.lx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e1edf5; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 50, 80, .05); transition: transform .18s, box-shadow .18s; }
.lx-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 50, 80, .12); }
.lx-card[hidden] { display: none; }
.lx-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.lx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lx-media .tcard-art { position: absolute; inset: 0; display: grid; place-items: center; } .lx-media .tcard-art svg { width: 54px; height: 54px; opacity: .55; }
.lx-media .tcard-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--seablue); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .15s; }
.lx-media:hover .tcard-play { transform: translate(-50%, -50%) scale(1.08); }
.lx-media .tcard-badge { position: absolute; right: 10px; bottom: 10px; }
.lx-card-body { padding: 16px 18px 8px; flex: 1; }
.lx-card-body h3 { margin: 6px 0 6px; font-family: var(--display); font-size: 17.5px; line-height: 1.3; color: #00334a; }
.lx-card-body p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lx-card-foot { padding: 12px 18px 16px; }
.lx-doc { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--seablue); text-decoration: none; }
.lx-doc svg { width: 16px; height: 16px; } .lx-doc.none { color: #7b93a4; font-weight: 600; }
.lx-empty { text-align: center; color: var(--ink-2); padding: 30px 0; }
.lx-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.lx-subject { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid #d9e8f2; }
.lx-subject h3 { font-family: var(--display); font-size: 18px; margin: 14px 0 12px; color: #00334a; }
.lx-sico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.lx-sico svg { width: 24px; height: 24px; }
.lx-subject .lp-tags { flex-wrap: wrap; }
.lx-subject .lp-tags span { background: var(--aliceblue); color: #00405a; border-color: #d3e4ef; }
.lx-foot { background: #00293b; color: #b9d6e4; padding: 48px 0 28px; }
.lx-foot .lx-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.lx-foot b { display: block; color: #fff; margin-bottom: 10px; } .lx-foot a, .lx-foot span { display: block; color: #b9d6e4; text-decoration: none; margin-bottom: 6px; font-size: 14.5px; }
.lx-foot a:hover { color: #fff; } .lx-foot p { margin: 12px 0 0; max-width: 420px; }
.lx-copy { grid-column: 1 / -1; border-top: 1px solid rgba(240, 248, 255, .12); padding-top: 18px; font-size: 13px; color: #85a9bb; }
.lx-player { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #000; color: #fff; }
.lx-player::backdrop { background: rgba(0, 20, 32, .8); }
.lx-player-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #00293b; } .lx-player-head b { flex: 1; font-family: var(--display); }
.lx-close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(240, 248, 255, .12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lx-player-body { aspect-ratio: 16 / 9; } .lx-player-body video, .lx-player-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
@media (max-width: 1060px) { .lx-hero-grid { grid-template-columns: 1fr; } .lx-signin { max-width: 480px; width: 100%; margin: 0 auto; } }
@media (max-width: 760px) {
  .lx-links { display: none; } .lx-nav .lx-wrap { height: 64px; justify-content: space-between; } .lx-logo { font-size: 18px; }
  .lx-actions .lx-btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .lx-hero-grid { padding-top: 32px; padding-bottom: 40px; } .lx-section { padding: 48px 0; }
  .lx-foot .lx-wrap { grid-template-columns: 1fr; } .lx-tutor { padding-right: 14px; }
}
@media (max-width: 400px) { .lx-actions .ghost { display: none; } }
.lx-media .tcard-badge { left: auto; right: 10px; width: auto; }
.lx-media .tcard-play { opacity: 1; z-index: 2; }
.lx-media img { z-index: 1; } .lx-media .tcard-badge { z-index: 2; }
.lx-foot a.lx-logo { display: inline-flex; color: #fff; margin: 0; font-size: 20px; }
.table td input.cell, .table td textarea.cell, .bulkbar input[type=number], .bulkbar input[type=text] { border: 1.5px solid #cfe1ee; border-radius: 9px; background: #fbfdff; font: 500 14px var(--font); color: var(--ink); height: 38px; padding: 0 10px; }
.table td textarea.cell { padding: 8px 10px; height: 38px; }
.table td input.cell:focus, .table td textarea.cell:focus, .bulkbar input:focus { outline: 0; border-color: var(--seablue); box-shadow: 0 0 0 3px rgba(0, 105, 148, .12); background: #fff; }
@media (max-width: 640px) {
  .bulkbar .searchbox { margin-left: 0 !important; flex: 1 1 100%; min-width: 0; }
  .bulkbar .searchbox input { min-width: 0; width: 100%; }
  .bulkbar #bulk-fb { width: 100% !important; }
}

/* ================================================================ login landing page v6.1: light, grid, serif headline */
.lv-page { display: block; color: var(--ink); background-color: #fff;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .4) 420px, #fff 900px),
    linear-gradient(rgba(0, 105, 148, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 105, 148, .07) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px; }
.lv-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.lv-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); }
.lv-nav .lv-wrap { height: 84px; display: flex; align-items: center; gap: 36px; }
.lv-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 22px; font-weight: 800; color: #0d2230; text-decoration: none; letter-spacing: -.3px; }
.lv-logo .mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--seablue); color: #fff; }
.lv-logo .mark svg { width: 21px; height: 21px; }
.lv-links { display: flex; gap: 30px; margin-right: auto; }
.lv-links a { color: #16303f; font: 500 16px var(--font); text-decoration: none; }
.lv-links a:hover { color: var(--seablue); }
.lv-actions { display: flex; align-items: center; gap: 12px; }
.lv-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #16303f; }
.lv-icon:hover { background: var(--aliceblue); } .lv-icon svg { width: 22px; height: 22px; }
.lv-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px var(--font); text-decoration: none; background: var(--seablue); color: #fff; transition: background .15s, transform .1s, box-shadow .15s; }
.lv-pill:hover { background: #005a80; box-shadow: 0 10px 22px rgba(0, 105, 148, .25); } .lv-pill:active { transform: scale(.97); }
.lv-pill svg { width: 18px; height: 18px; }
.lv-pill.soft { background: #e3f1f9; color: var(--seablue); } .lv-pill.soft:hover { background: #d3e9f5; box-shadow: none; }
.lv-hero { position: relative; padding: 90px 0 40px; text-align: center; }
.lv-hero h1 { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.06; letter-spacing: -1.2px; color: #0d2230; margin: 0 auto 26px; max-width: 980px; }
.lv-lead { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; color: #3d5463; max-width: 880px; margin: 0 auto; }
.lv-rated { margin: 90px 0 22px; font-size: 19px; font-weight: 500; color: #24404f; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lv-stars { display: inline-flex; gap: 3px; color: #f5b301; }
.lv-badges { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.lv-badge { position: relative; width: 112px; height: 124px; padding: 14px 8px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #0d2230;
  background: #fff; clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%); filter: drop-shadow(0 2px 3px rgba(0, 40, 60, .18)); transition: transform .15s; }
.lv-badge:hover { transform: translateY(-3px); }
.lv-badge::before { content: ""; position: absolute; inset: 0; border-top: 5px solid var(--c1); pointer-events: none; }
.lv-badge-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.lv-badge-ico svg { width: 17px; height: 17px; }
.lv-badge b { font-size: 12.5px; line-height: 1.15; font-weight: 800; text-align: center; max-height: 2.4em; overflow: hidden; }
.lv-ribbon { position: absolute; left: -6px; right: -6px; top: 70px; padding: 3px 0; background: var(--c1); color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.lv-block { position: absolute; display: block; pointer-events: none; }
.lv-block.b1 { right: clamp(10px, 3vw, 52px); bottom: -120px; width: clamp(60px, 7vw, 124px); height: clamp(150px, 15vw, 245px); background: var(--seablue); z-index: 2; }
.lv-block.b2 { right: calc(clamp(10px, 3vw, 52px) + clamp(60px, 7vw, 124px)); bottom: -120px; width: clamp(48px, 5.4vw, 96px); height: clamp(60px, 5.4vw, 96px); background: #39b0e0; z-index: 2; }
.lv-block.b3 { left: clamp(10px, 3vw, 52px); top: 210px; width: 54px; height: 54px; background: #bfe3f3; }
.lv-panel-wrap { position: relative; padding: 30px 0 70px; scroll-margin-top: 90px; }
.lv-panel { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(28px, 5vw, 70px);
  background: #f2f6f9; border-radius: 28px; margin-bottom: 44px; }
.lv-panel h2, .lv-tutor h2, .lv-center-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -.6px; color: #0d2230; margin: 0 0 22px; }
.lv-panel-text p { font-size: 19px; line-height: 1.6; color: #3d5463; margin: 0 0 26px; }
.lv-panel-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lv-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.lv-points li { display: flex; align-items: center; gap: 10px; color: #24404f; font-weight: 500; }
.lv-points svg { width: 20px; height: 20px; color: var(--seablue); flex: none; }
.lv-window { background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 40, 60, .16); overflow: hidden; border: 1px solid #e3ebf1; }
.lv-window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid #edf2f6; background: #fafcfd; }
.lv-window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dee5; }
.lv-window-bar span { margin-left: 12px; font-size: 12px; color: #7b93a4; font-weight: 600; }
.lv-window-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.lv-screen { position: relative; aspect-ratio: 16 / 10; border: 0; padding: 0; cursor: pointer; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.lv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.lv-screen .tcard-art { position: absolute; inset: 0; display: grid; place-items: center; } .lv-screen .tcard-art svg { width: 64px; height: 64px; opacity: .5; }
.lv-screen .tcard-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; opacity: 1; z-index: 2; }
.lv-screen:hover .tcard-play { transform: translate(-50%, -50%) scale(1.08); }
.lv-window-side { padding: 16px; border-left: 1px solid #edf2f6; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lv-now { font-size: 14.5px; line-height: 1.3; color: #0d2230; }
.lv-window-side .tcard-cat { align-self: flex-start; }
.lv-queue { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lv-queue button, .lv-queue li.muted { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: 1px solid #e6eef3; background: #fbfdfe; cursor: pointer;
  font: 500 12.5px var(--font); color: #24404f; text-align: left; }
.lv-queue button:hover { border-color: var(--seablue); background: var(--aliceblue); }
.lv-queue svg { width: 14px; height: 14px; flex: none; color: var(--seablue); }
.lv-queue span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-queue li.muted { cursor: default; color: #7b93a4; }
.lv-window-body.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px; text-align: center; }
.lv-window-body.empty img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.lv-window-body.empty span { color: #5a7383; }
.lv-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.lv-tools .lx-chips { margin: 0; }
.lv-h3 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 28px; color: #0d2230; }
.lv-tutor { padding: 70px 0; background: var(--aliceblue); scroll-margin-top: 80px; }
.lv-tutor-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lv-tutor-photo { position: relative; margin: 0; }
.lv-tutor-photo img { position: relative; z-index: 1; display: block; width: clamp(180px, 22vw, 280px); height: clamp(180px, 22vw, 280px); object-fit: cover; border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 40, 60, .18); }
.lv-block.mini { right: -22px; bottom: -22px; width: 90px; height: 90px; background: var(--seablue); z-index: 0; }
.lv-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--seablue); }
.lv-tutor h2 { margin: 8px 0 6px; }
.lv-tutor-role { font-size: 19px; color: #3d5463; margin: 0 0 24px; }
.lv-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.lv-stats div { min-width: 120px; padding: 14px 18px; background: #fff; border-radius: 16px; border: 1px solid #d9e8f2; }
.lv-stats b { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 30px; font-weight: 600; color: var(--seablue); }
.lv-stats span { font-size: 13.5px; color: #5a7383; }
.lv-subjects-wrap { padding: 70px 0; scroll-margin-top: 80px; }
.lv-center-title { text-align: center; margin-bottom: 32px; }
.lx-foot .lx-foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.lv-signin { width: min(440px, 94vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.lv-signin::backdrop { background: rgba(0, 25, 40, .55); backdrop-filter: blur(3px); }
.lv-signin .lp-card { max-width: none; box-shadow: 0 30px 70px rgba(0, 20, 35, .4); }
.lv-x { position: absolute; z-index: 5; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(240, 248, 255, .18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lv-x:hover { background: rgba(240, 248, 255, .32); }
@media (max-width: 1100px) { .lv-links { gap: 20px; } .lv-links a:last-child { display: none; } }
@media (max-width: 960px) {
  .lv-panel { grid-template-columns: 1fr; } .lv-block.b1, .lv-block.b2 { bottom: -60px; }
}
@media (max-width: 760px) {
  .lv-links, .lv-icon { display: none; } .lv-nav .lv-wrap { height: 68px; justify-content: space-between; gap: 10px; }
  .lv-logo { font-size: 18px; } .lv-pill { height: 42px; padding: 0 16px; font-size: 15px; }
  .lv-hero { padding: 48px 0 20px; } .lv-rated { margin-top: 48px; font-size: 16px; }
  .lv-block.b1, .lv-block.b2, .lv-block.b3 { display: none; }
  .lv-badges { gap: 12px; } .lv-badge { width: 100px; }
  .lv-window-body { grid-template-columns: 1fr; } .lv-window-side { border-left: 0; border-top: 1px solid #edf2f6; }
  .lv-tutor-in { grid-template-columns: 1fr; justify-items: start; } .lx-foot .lx-foot-in { grid-template-columns: 1fr; }
  .lv-panel-text p { font-size: 17px; }
}
@media (max-width: 420px) { .lv-actions .soft { display: none; } }
/* badges: the outer link casts the shadow, the inner shield carries the shape */
.lv-badge { width: 118px; height: auto; padding: 0; display: block; background: none; clip-path: none; filter: drop-shadow(0 3px 4px rgba(0, 40, 60, .2)); }
.lv-badge::before { content: none; }
.lv-shield { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 150px; padding: 14px 8px 0; background: #fff;
  border-top: 6px solid var(--c1); clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%); }
.lv-badge b { min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.lv-ribbon { position: static; align-self: stretch; margin: 0 -8px; text-align: center; }
.lv-panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); }
.lv-window-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.lv-queue li { min-width: 0; } .lv-queue button { min-width: 0; box-sizing: border-box; }
@media (max-width: 960px) { .lv-panel { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .lv-badge { width: 100px; } .lv-window-body { grid-template-columns: 1fr; } }

/* ==================================================================== v7 */
[hidden] { display: none !important; }

/* report dates */
.report-stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--seablue); border-radius: 10px; padding: 8px 14px; margin: 0 0 16px; }
.report-stamp svg { width: 16px; height: 16px; color: var(--seablue); }
.report-stamp b { color: #0d2a3c; font-weight: 600; }
.range-fields { display: inline-flex; gap: 8px; flex-wrap: wrap; }
tr.is-off td { color: #8a97a6; background: #fafbfc; } tr.is-off a { color: #5f7183; }

/* login page: notice and reorderable top blocks */
.lv-hero-in { display: flex; flex-direction: column; }
.lv-notice { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 26px; padding: 9px 18px; border-radius: 999px; background: #fff4d6; color: #7a4b00;
  font-weight: 600; font-size: 15.5px; border: 1px solid #f3d58a; max-width: 100%; }
.lv-notice svg { flex: none; }

/* admin: login page text editor */
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 16px; }
.lt-block { margin: 0; }
.lt-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lt-head .hint { display: block; font-size: 12.5px; }
.lt-block textarea { width: 100%; border: 1px solid #c9d8e4; border-radius: 10px; padding: 8px 10px; margin: 10px 0; resize: vertical; }
.lt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px 12px; }
.lt-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lt-row select, .lt-row input[type=number] { height: 34px; border: 1px solid #c9d8e4; border-radius: 8px; padding: 0 8px; background: #fff; font-weight: 400; width: 100%; }
.lt-color { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.lt-color input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid #c9d8e4; border-radius: 8px; background: #fff; flex: none; }
.lt-color .inline-check { font-size: 12.5px; }
.lt-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lt-preview { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: #f6fafd; border: 1px dashed #c9d8e4; color: #0d2230; overflow-wrap: anywhere; line-height: 1.3; }
.lt-save { position: sticky; bottom: 0; padding: 14px 0 6px; display: flex; justify-content: flex-end; background: linear-gradient(rgba(240, 248, 255, 0), var(--bg) 45%); z-index: 2; }

/* ---------- student mail layout: blue top bar, icon rail, ribbon, folders, grouped list, reading pane ---------- */
.mail-ui .topbar { height: 48px; padding: 0 12px; gap: 12px; background: var(--seablue); box-shadow: none; }
.mail-ui .brand { font-size: 17px; }
.mail-ui .role-pill, .mail-ui .topsearch kbd { display: none; }
.mail-ui .topsearch { max-width: 640px; height: 34px; border-radius: 8px; background: #e6f2f9; border: 0; color: #12384d; }
.mail-ui .topsearch:focus-within { background: #fff; }
.mail-ui .topsearch svg { color: var(--seablue); width: 18px; height: 18px; }
.mail-ui .topsearch input { color: #12384d; } .mail-ui .topsearch input::placeholder { color: #4d6a7c; }
.mail-ui .topicon { width: 38px; height: 38px; border-radius: 8px; }
.mail-ui .userchip { padding: 0; background: transparent; box-shadow: none; font-size: 0; gap: 0; }
.mail-ui .userchip .avatar { background: #fff; color: var(--seablue); width: 32px; height: 32px; font-size: 12px; }
.mail-ui .shell { min-height: calc(100vh - 48px); }
.mail-ui .sidebar, .mail-ui.side-collapsed .sidebar { width: 70px; padding: 8px 0; background: #eef5fa; }
.mail-ui .sidebar .collapse { display: none; }
.mail-ui .sidebar nav a { position: relative; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 2px 6px; margin: 2px 6px; border-radius: 8px;
  font-size: 10.5px; font-weight: 600; line-height: 1.15; text-align: center; color: #2b4254; }
.mail-ui .sidebar nav a span, .mail-ui.side-collapsed .sidebar nav a span { display: block; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-ui .sidebar nav a:hover { background: #dcebf5; }
.mail-ui .sidebar nav a.active { background: #fff; color: var(--seablue); box-shadow: inset 3px 0 0 var(--seablue), 0 1px 3px rgba(10, 50, 80, .08); }
.mail-ui .sidebar .badge, .mail-ui.side-collapsed .sidebar .badge { display: block; position: absolute; top: 3px; right: 6px; margin: 0; font-size: 10px; padding: 1px 5px; }
.mail-ui .sidebar hr { margin: 8px 12px; }

.mail-full .main { padding: 0; height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; background: #f1f7fb; }
.mail-full .main > .flash { margin: 10px 10px 0; }
.mail-app { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.ribbon { margin: 8px 10px 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.ribbon-tabs { display: flex; gap: 2px; padding: 4px 12px 0; border-bottom: 1px solid #edf3f8; overflow-x: auto; }
.ribbon-tabs a { padding: 7px 12px 6px; font-size: 14px; color: #2b3d4f; text-decoration: none; border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.ribbon-tabs a:hover { color: var(--seablue); }
.ribbon-tabs a.on { color: var(--seablue); border-color: var(--seablue); font-weight: 700; }
.ribbon-bar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; overflow-x: auto; scrollbar-width: thin; }
.ribbon-bar form { display: contents; }
.rb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 6px; border: 0; background: transparent; color: #1f3343;
  font-size: 13.5px; text-decoration: none; white-space: nowrap; cursor: pointer; flex: none; }
.rb svg { width: 18px; height: 18px; color: var(--seablue); }
.rb:hover { background: #e8f3f9; }
.rb.primary { background: var(--seablue); color: #fff; padding: 0 14px; font-weight: 600; } .rb.primary svg { color: #fff; } .rb.primary:hover { background: var(--blue-dark); }
.rb.off, .rb:disabled { opacity: .45; cursor: default; } .rb.off:hover, .rb:disabled:hover { background: transparent; }
.rb.is-on svg { color: #e3a008; fill: #f8c94a; }
.rb-sep { width: 1px; height: 24px; background: #d9e7f1; margin: 0 6px; flex: none; }

.mail-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(300px, 410px) minmax(0, 1fr); margin: 8px 10px 10px; }
.mail-app.is-wide .mail-panes { grid-template-columns: 210px minmax(0, 1fr); }
.m-folders { overflow-y: auto; padding: 2px 8px 10px 0; min-width: 0; }
.m-fhead { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; padding: 10px 6px 4px; color: #1f3343; }
.m-fhead svg { width: 14px; height: 14px; transform: rotate(90deg); color: #5d7184; }
.m-folders a { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 20px; border-radius: 6px; color: #1f3343; text-decoration: none; font-size: 14px; }
.m-folders a svg { width: 18px; height: 18px; color: #4f6b80; }
.m-folders a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-folders a b { font-size: 12.5px; color: var(--seablue); font-weight: 700; } .m-folders a b.soft { color: #74859a; font-weight: 600; }
.m-folders a:hover { background: #e3f0f7; }
.m-folders a.on { background: #d3e9f5; font-weight: 600; } .m-folders a.on svg { color: var(--seablue); }

.m-list { background: #fff; border: 1px solid var(--line); border-radius: 10px 0 0 10px; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.m-list-head { padding: 12px 14px 8px; border-bottom: 1px solid #e7f0f6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.m-list-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.m-list-title h2 { font-size: 18px; margin: 0; font-weight: 800; color: #0d2a3c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-clear { text-decoration: none; color: var(--ink-3); font-size: 13px; }
.m-pivots { display: flex; }
.m-pivots a { padding: 3px 1px; margin-left: 12px; font-size: 13.5px; color: #3d5466; text-decoration: none; border-bottom: 2px solid transparent; font-weight: 600; }
.m-pivots a.on { color: var(--seablue); border-color: var(--seablue); }
.m-search { flex-basis: 100%; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: #f3f8fc; border-radius: 8px; border: 1px solid #e1ecf4; margin: 0; }
.m-search svg { width: 16px; height: 16px; color: #5d7184; }
.m-search input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 0; font-size: 13.5px; height: 30px; padding: 0; }
.m-chips { display: none; }
.m-scroll { overflow-y: auto; flex: 1; min-height: 0; }
.m-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 14px 6px; font-size: 13px; font-weight: 700; color: #1f3343;
  background: #fbfdff; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid #f0f5f9; }
.m-group > summary::-webkit-details-marker { display: none; }
.m-group > summary svg { width: 14px; height: 14px; color: #5d7184; transition: transform .15s; }
.m-group[open] > summary svg { transform: rotate(90deg); }
.m-item, .m-item.s-card { display: flex; gap: 12px; padding: 10px 14px 10px 11px; margin: 0; border: 0; border-radius: 0; border-left: 3px solid transparent; border-bottom: 1px solid #eef3f7;
  text-decoration: none; color: inherit; background: #fff; box-shadow: none; }
.m-item:hover { background: #f3f8fc; }
.m-item.unread, .m-item.s-card.unread { border-left: 3px solid var(--seablue); background: #fff; }
.m-item.open, .m-item.s-card.open { background: #d3e9f5; box-shadow: none; border-color: transparent; border-left-color: var(--seablue); border-bottom-color: #eef3f7; }
.m-item .avatar { width: 34px; height: 34px; margin-top: 2px; }
.avatar.kind { background: #e2f1f8; color: var(--seablue); } .avatar.kind svg { width: 18px; height: 18px; }
.k-quiz .avatar.kind { background: #fff1dc; color: #a35b00; } .k-assignment .avatar.kind { background: #e9e6fb; color: #5a43c4; }
.k-attendance .avatar.kind { background: #e2f5ec; color: #0b7a52; } .k-result .avatar.kind { background: #fde8ee; color: #b4234d; } .k-tutorial .avatar.kind { background: #e3f3f1; color: var(--teal); }
.m-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.m-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.m-from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; color: #1f3343; }
.m-item.unread .m-from { font-weight: 700; }
.m-flags { display: flex; gap: 4px; align-items: center; flex: none; max-width: 55%; overflow: hidden; }
.m-flags svg { width: 15px; height: 15px; color: var(--amber); } .m-flags .star { color: #e3a008; }
.m-flags .tag { font-size: 11px; padding: 1px 7px; white-space: nowrap; }
.m-subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: #1f3343; }
.m-item.unread .m-subj { color: var(--seablue); font-weight: 700; }
.m-item time { font-size: 12px; color: #5d7184; flex: none; } .m-item.unread time { color: var(--seablue); font-weight: 600; }
.m-snip { font-size: 13px; color: #5d7184; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-code { display: inline-block; font-size: 11px; font-weight: 700; color: var(--seablue); background: #e2f1f8; border-radius: 4px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.m-none { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 48px 20px; color: #5d7184; }
.m-none svg { width: 40px; height: 40px; color: #9fb7c8; } .m-none b { color: #1f3343; }

.m-read { background: #fff; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; overflow-y: auto; min-height: 0; min-width: 0; padding: 18px 22px 28px; }
.m-read.m-wide { border-left: 1px solid var(--line); border-radius: 10px; }
.m-read-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.m-read-head h2 { margin: 0; font: 700 20px/1.3 var(--font); color: #0d2a3c; overflow-wrap: anywhere; }
.m-card { border: 1px solid #e1ecf4; border-radius: 12px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.m-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.m-from-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.m-from-who { flex: 1; display: flex; flex-direction: column; min-width: 140px; }
.m-from-side { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.m-from-side form { display: inline; margin: 0; }
.m-msg.s-read { border: 0; padding: 0; background: transparent; }
.m-msg .msgbody { white-space: pre-wrap; line-height: 1.65; overflow-wrap: anywhere; }
.m-card.reply { margin-top: 0; }
.m-reply-to { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: #3d5466; margin-bottom: 8px; } .m-reply-to svg { width: 16px; height: 16px; }
.m-card.reply textarea { min-height: 90px; border-color: #d6e4ef; border-radius: 8px; resize: vertical; }
.m-back { display: none; }
.m-compose { border: 1px solid #e1ecf4; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.m-field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e1ecf4; padding: 4px 0; margin: 0; }
.m-field > span { width: 64px; color: #5d7184; font-size: 13.5px; flex: none; }
.m-field select, .m-field input { flex: 1; border: 0; outline: 0; background: transparent; height: 36px; min-width: 0; }
.m-compose textarea { width: 100%; border: 0; outline: 0; margin-top: 10px; resize: vertical; min-height: 220px; line-height: 1.6; }
.m-compose-bar { display: flex; gap: 8px; border-top: 1px solid #e1ecf4; padding-top: 12px; }
.m-empty-read { display: grid; justify-items: center; gap: 4px; text-align: center; color: #5d7184; padding: 36px 10px; }
.m-empty-read.small { padding: 18px 10px; }
.m-empty-art { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #dcedf7); display: grid; place-items: center; margin-bottom: 8px; }
.m-empty-art svg { width: 42px; height: 42px; color: var(--seablue); }
.m-empty-read b { color: #1f3343; font-size: 16px; } .m-empty-read .btn { margin-top: 12px; }
.m-foryou .quiz-inbox { margin-bottom: 14px; }
.m-foryou .tgrid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.m-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; margin: 0 0 6px; font-size: 14px; }
.m-facts dt { color: #5d7184; } .m-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.m-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; } .m-actions form { margin: 0; }
.m-hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 14px; color: #fff; margin-bottom: 14px;
  background: radial-gradient(circle at 95% 0%, rgba(240, 248, 255, .25), transparent 45%), linear-gradient(120deg, #00587d, var(--seablue) 55%, #0a86b8); }
.m-hello h2 { margin: 2px 0 4px; font-size: 24px; color: #fff; } .m-hello .hint { color: rgba(255, 255, 255, .82); } .m-hello p { margin: 0; color: #d6ecf6; font-size: 14px; }
.avatar.xl { width: 56px; height: 56px; font-size: 18px; background: #fff; color: var(--seablue); }
.m-overview .stats { margin-bottom: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.m-overview a.stat { text-decoration: none; color: inherit; } .m-overview a.stat:hover { border-color: #9ccbe2; }
.table-wrap.flat { box-shadow: none; border-radius: 10px; }

@media (max-width: 1180px) {
  .mail-panes { grid-template-columns: 190px minmax(270px, 340px) minmax(0, 1fr); }
  .rb span { display: none; } .rb.primary span { display: inline; } .rb { padding: 0 9px; }
}
@media (max-width: 900px) {
  .mail-ui .sidebar, .mail-ui.side-collapsed .sidebar { width: 62px; }
  .mail-ui .sidebar nav a span { display: none !important; }
  .mail-full .main { height: auto; overflow: visible; }
  .mail-panes, .mail-app.is-wide .mail-panes { grid-template-columns: minmax(0, 1fr); margin: 8px; }
  .m-folders { display: none; }
  .m-list { border-radius: 10px; }
  .m-chips { display: flex; flex-basis: 100%; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .m-chips a { flex: none; padding: 4px 11px; border-radius: 999px; background: #f3f8fc; border: 1px solid #e1ecf4; font-size: 12.5px; color: #3d5466; text-decoration: none; font-weight: 600; }
  .m-chips a.on { background: var(--seablue); border-color: var(--seablue); color: #fff; }
  .m-read { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; padding: 16px 14px 22px; }
  .mail-app.has-open .m-list { display: none; }
  .mail-app.has-open .m-read { margin-top: 0; }
  .m-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-weight: 600; text-decoration: none; }
  .m-empty-read { display: none; }
  .ribbon { margin: 8px 8px 0; }
}
@media (max-width: 520px) {
  .mail-ui .topbar { gap: 6px; } .mail-ui .brand span { display: none; }
  .mail-ui .topicon:nth-of-type(n+2) { display: none; }
  .m-hello { padding: 16px; } .m-hello .avatar.xl { display: none; }
  .m-facts { grid-template-columns: 1fr; gap: 2px; } .m-facts dd { margin-bottom: 8px; }
}
.avatar.lg { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; font-size: 14px; }
.avatar.lg.teal { background: var(--teal-50); } .avatar.lg.kind { background: #e2f1f8; }
.mail-ui .sidebar nav a span, .mail-ui.side-collapsed .sidebar nav a span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 10px; overflow-wrap: anywhere; }
.mail-ui .sidebar nav a span, .mail-ui.side-collapsed .sidebar nav a span { overflow-wrap: normal; font-size: 9.5px; letter-spacing: -.1px; }
@media (max-width: 520px) { .mail-ui .topicon:nth-of-type(n+2) { display: grid; } .mail-ui .topicon:not(:nth-of-type(2)) { display: none; } }
.tabs { overflow-x: auto; scrollbar-width: none; } .tabs a { white-space: nowrap; }
@media (max-width: 640px) { .toolbar form.toolbar { flex-wrap: wrap; max-width: 100%; min-width: 0; } .toolbar select { max-width: 100% !important; min-width: 0; } }

/* ==================================================================== v8 */
/* every table scrolls both ways when it is bigger than its box; headers stay visible */
.table-wrap { overflow: auto; max-height: max(360px, calc(100vh - 210px)); scrollbar-width: thin; }
.table-wrap > .table thead th { position: sticky; top: 0; z-index: 2; }
.table-wrap > .table { border-collapse: separate; border-spacing: 0; }
.mail-full .table-wrap { max-height: max(320px, calc(100vh - 300px)); }
@media print { .table-wrap { max-height: none !important; overflow: visible !important; } .table-wrap > .table thead th { position: static; } }

/* sidebar scrolls on its own when the menu is longer than the screen */
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); align-self: flex-start; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.mail-ui .sidebar { top: 48px; height: calc(100vh - 48px); }
/* the collapse button sits inside the scrolling sidebar so it is never cut off */
.sidebar .collapse { position: static; flex: none; align-self: flex-end; margin: -10px 10px 6px 0; }
body.side-collapsed .sidebar .collapse { align-self: center; margin: -10px 0 6px; }

/* results broadsheet */
.sheet-wrap { max-height: max(380px, calc(100vh - 240px)); }
.sheet th, .sheet td { white-space: nowrap; }
.sheet thead tr.sheet-groups th { top: 0; height: 34px; padding: 6px 14px; text-align: center; font-size: 11.5px; }
.sheet thead tr:nth-child(2) th { top: 34px; vertical-align: bottom; }
.sheet th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; color: #7b8fa1; font-size: 11px; }
.sheet .th-t { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: #1f3343; }
.sheet .grp.q { background: #e2f1f8; color: var(--seablue); } .sheet .grp.a { background: #efeafd; color: #5a43c4; } .sheet .grp.t { background: #fff4d6; color: #7a4b00; }
.sheet th.col-q { box-shadow: inset 0 3px 0 #9ccbe2; } .sheet th.col-a { box-shadow: inset 0 3px 0 #c3b6f2; } .sheet th.col-t, .sheet th.col-g { box-shadow: inset 0 3px 0 #f3d58a; }
.sheet .stick-l { position: sticky; z-index: 1; background: #fff; }
.sheet thead .stick-l { z-index: 3; background: #f6fafd; }
.sheet .c1 { left: 0; min-width: 104px; width: 104px; }
.sheet .c2 { left: 104px; min-width: 200px; box-shadow: 1px 0 0 #dbe8f1, 6px 0 8px -6px rgba(0, 40, 60, .18); }
.sheet .c2 .hint { font-size: 12px; white-space: nowrap; }
.sheet tr:hover td.stick-l { background: #f4f9fd; }
.sheet .mk b { display: block; } .sheet .mk small { display: block; color: #7b8fa1; font-size: 11px; }
.sheet .tot { background: #fffbef; font-weight: 600; } .sheet .tot.g { background: #fff1c9; font-weight: 800; color: #0d2a3c; font-size: 15px; }
@media (max-width: 640px) { .sheet .c1 { position: static; } .sheet .c2 { left: 0; min-width: 150px; } }

/* my results */
#t-myres tfoot td { background: #f6fafd; border-top: 1px solid #dbe8f1; }
#t-myres tfoot tr.grand td { background: #fff1c9; font-size: 15px; color: #0d2a3c; }
.hero-stats b small { font-size: 13px; font-weight: 600; opacity: .75; margin-left: 2px; }

/* ---------- student mail layout, closer to Outlook ---------- */
.mail-ui .topbar { gap: 10px; }
.mail-ui .topicon.waffle { color: #fff; flex: none; margin-right: -4px; }
.mail-ui .topicon.waffle:hover { background: rgba(255, 255, 255, .16); }
.mail-ui .topsearch { flex: 0 1 560px; margin: 0 auto 0 12vw; background: #fff; border-radius: 6px; }
.mail-ui .topicons { margin-left: auto; }

/* icon rail */
.mail-ui .sidebar, .mail-ui.side-collapsed .sidebar { width: 56px; padding: 6px 0; background: #f4f8fb; }
.mail-ui .sidebar nav a { margin: 2px 6px; padding: 10px 0; height: 42px; }
.mail-ui .sidebar nav a span, .mail-ui.side-collapsed .sidebar nav a span { display: none !important; }
.mail-ui .sidebar nav a svg { width: 22px; height: 22px; color: #4f6b80; }
.mail-ui .sidebar nav a[href^="/inbox"] svg, .mail-ui .sidebar nav a[href="/dashboard"] svg { color: #0f6cbd; }
.mail-ui .sidebar nav a[href^="/quizzes"] svg { color: #c27c0e; }
.mail-ui .sidebar nav a[href^="/assignments"] svg { color: #6b4fd8; }
.mail-ui .sidebar nav a[href^="/attendance"] svg { color: #0b7a52; }
.mail-ui .sidebar nav a[href^="/my-results"] svg, .mail-ui .sidebar nav a[href*="results"] svg { color: #c4314b; }
.mail-ui .sidebar nav a[href^="/tutorials"] svg { color: #038387; }
.mail-ui .sidebar nav a[href^="/courses"] svg, .mail-ui .sidebar nav a[href^="/catalogue"] svg { color: #8764b8; }
.mail-ui .sidebar nav a.active { background: #fff; }
.mail-ui .sidebar .badge, .mail-ui.side-collapsed .sidebar .badge { top: 2px; right: 2px; }

/* ribbon with labelled groups */
.ribbon { margin: 6px 8px 0; border-radius: 8px; }
.ribbon-tabs { align-items: center; padding: 2px 8px 0; }
.rt-menu { display: inline-grid; place-items: center; width: 32px; height: 30px; border: 0; background: transparent; border-radius: 6px; color: #2b3d4f; cursor: pointer; margin-right: 4px; flex: none; }
.rt-menu svg { width: 18px; height: 18px; } .rt-menu:hover { background: #e8f3f9; }
.ribbon-bar { align-items: stretch; gap: 0; padding: 4px 4px 2px; }
.rg { display: flex; flex-direction: column; align-items: center; padding: 0 6px; border-right: 1px solid #e3edf4; flex: none; }
.rg:last-child { border-right: 0; }
.rg-row { display: flex; align-items: flex-start; gap: 2px; flex: 1; }
.rg-row form, .rg-stack form { display: contents; }
.rg-stack { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.rg-label { font-size: 11px; color: #6b7f90; padding: 2px 0 1px; white-space: nowrap; }
.rb.big { flex-direction: column; height: auto; min-height: 66px; min-width: 54px; justify-content: flex-start; gap: 3px; padding: 5px 6px; font-size: 12px; line-height: 1.15; text-align: center; }
.rb.big .ri { display: grid; place-items: center; width: 32px; height: 32px; }
.rb.big .ri svg { width: 26px; height: 26px; }
.rb.sm { height: 26px; font-size: 12.5px; padding: 0 8px; justify-content: flex-start; }
.rb.sm svg { width: 16px; height: 16px; }
.c-blue svg, svg.c-blue { color: #0f6cbd !important; } .c-green svg { color: #0b7a52 !important; } .c-purple svg { color: #6b4fd8 !important; }
.c-amber svg { color: #c27c0e !important; } .c-red svg { color: #c4314b !important; } .c-teal svg { color: #038387 !important; } .c-gray svg { color: #5d7184 !important; }
.rb.big.is-on .ri svg { fill: #f8c94a; }
.rb.off .ri svg { color: #9aa9b6 !important; }

/* folder pane: hidden until the menu button opens it (remembered per browser) */
.mail-panes { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); margin: 6px 8px 8px; }
.mail-app.is-wide .mail-panes { grid-template-columns: minmax(0, 1fr); }
.m-folders { display: none; }
body.folders-open .mail-panes { grid-template-columns: 200px minmax(290px, 380px) minmax(0, 1fr); }
body.folders-open .mail-app.is-wide .mail-panes { grid-template-columns: 200px minmax(0, 1fr); }
body.folders-open .m-folders { display: block; }
body.folders-open .rt-menu { background: #d3e9f5; color: var(--seablue); }

/* message list head */
.m-list { border-radius: 8px 0 0 8px; }
.m-list-head { padding: 8px 10px 6px 12px; gap: 6px 4px; }
.m-pivots a:first-child { margin-left: 0; }
.m-tool { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #3d5466; cursor: pointer; }
.m-tool svg { width: 17px; height: 17px; } .m-tool:hover { background: #e8f3f9; color: var(--seablue); }
.m-sort { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #3d5466; padding: 0 4px; white-space: nowrap; }
.m-sort svg { width: 15px; height: 15px; }
.m-crumbs { flex-basis: 100%; display: flex; }
.m-chip-on { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 6px 3px 10px; border-radius: 999px; background: #e2f1f8; color: #0b4a68; font-size: 12.5px; font-weight: 600; }
.m-chip-on svg { width: 14px; height: 14px; flex: none; }
.m-chip-on a { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #0b4a68; text-decoration: none; font-size: 11px; }
.m-chip-on a:hover { background: #c8e3f1; }
.m-item .avatar { color: #fff; font-weight: 700; font-size: 12.5px; }

/* avatar colours from the person's name */
.avatar.tone0 { background: #0f6cbd; color: #fff; } .avatar.tone1 { background: #c4314b; color: #fff; } .avatar.tone2 { background: #038387; color: #fff; }
.avatar.tone3 { background: #8764b8; color: #fff; } .avatar.tone4 { background: #ca5010; color: #fff; } .avatar.tone5 { background: #498205; color: #fff; }
.avatar.tone6 { background: #005b70; color: #fff; } .avatar.tone7 { background: #b146c2; color: #fff; }
.k-quiz .avatar.kind, .k-assignment .avatar.kind, .k-attendance .avatar.kind, .k-result .avatar.kind, .k-tutorial .avatar.kind { font-weight: 700; }

/* reading pane: light grey with the message on a white card */
.m-read { background: #f5f7f9; padding: 14px 18px 24px; border-radius: 0 8px 8px 0; }
.m-read.m-wide { background: #fff; }
.m-read-head { margin-bottom: 10px; }
.m-read-head h2 { font-size: 19px; font-weight: 600; }
.m-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: #e2f1f8; color: #0b4a68; font-size: 12px; font-weight: 600; }
.m-pill svg { width: 13px; height: 13px; }
.m-card.m-mail { border-color: #e6ebef; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); padding: 14px 18px 20px; }
.m-sender { font-size: 15px; font-weight: 600; color: #1f3343; overflow-wrap: anywhere; }
.m-sender span { font-weight: 400; color: #5d7184; font-size: 13.5px; margin-left: 6px; }
.m-to { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #5d7184; margin-top: 2px; }
.m-to svg { width: 14px; height: 14px; }
.m-from-side { flex-direction: column; align-items: flex-end; gap: 2px; }
.m-from-side time { font-size: 12.5px; color: #5d7184; }
.m-acts { display: flex; gap: 0; } .m-acts form { display: inline; margin: 0; }
.m-acts .iconbtn { width: 32px; height: 32px; color: #3d5466; } .m-acts .iconbtn svg { width: 18px; height: 18px; }
.m-infobar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; margin: -4px 0 14px; border-radius: 4px; background: #f0f6fa; color: #2b4254; font-size: 13px; }
.m-infobar svg { width: 16px; height: 16px; color: var(--seablue); flex: none; }
.m-card.reply { border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.m-read .m-foryou .quiz-inbox { background: #fff; }

@media (max-width: 1180px) {
  .rb.big { min-width: 48px; } .rg-stack .rb.sm span { display: inline; }
  body.folders-open .mail-panes { grid-template-columns: 180px minmax(260px, 330px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .mail-ui .topsearch { margin: 0; }
  body.folders-open .mail-panes, body.folders-open .mail-app.is-wide .mail-panes, .mail-panes { grid-template-columns: minmax(0, 1fr); }
  body.folders-open .m-folders { display: none; }
  .rg-stack .rb.sm span, .rb.big span:not(.ri) { display: none; } .rb.big { min-height: 44px; min-width: 40px; }
  .rg-label { display: none; } .rt-menu { display: none; }
  .m-read { background: #fff; border-radius: 8px; }
}
@media (max-width: 520px) { .mail-ui .topicon.waffle { display: grid !important; } .m-sort { display: none; } }
.rg > .rg-stack { flex: 1; justify-content: flex-start; padding-top: 6px; }

/* ==================================================================== v9 */
/* small, compact sign-in box on the login page */
.lv-signin { width: min(320px, 92vw); }
.lv-signin .lp-card { border-radius: 16px; }
.lv-signin .lp-card-head { padding: 14px 18px 24px; }
.lv-signin .lp-card-head::after { height: 14px; border-radius: 14px 14px 0 0; }
.lv-signin .lp-card-mark { display: none; }
.lv-signin .lp-card-head h2 { font-size: 18px; margin: 0; }
.lv-signin .lp-card-head p { font-size: 12px; margin-top: 2px; }
.lv-signin .lp-body { padding: 4px 16px 14px; }
.lv-signin .lp-seg { margin-bottom: 10px; } .lv-signin .lp-seg button { padding: 6px 8px; font-size: 12.5px; } .lv-signin .lp-seg svg { width: 15px; height: 15px; }
.lv-signin .lp-field { margin-bottom: 8px; } .lv-signin .lp-label { font-size: 12px; margin-bottom: 3px; }
.lv-signin .lp-input { height: 38px; border-radius: 10px; } .lv-signin .lp-input input { font-size: 14px; } .lv-signin .lp-input svg { width: 16px; height: 16px; }
.lv-signin .lp-btn { height: 38px; font-size: 14.5px; border-radius: 10px; margin-top: 4px; }
.lv-signin .lp-alt { font-size: 12.5px; margin-top: 8px; } .lv-signin .lp-forgot { font-size: 11.5px; margin: 4px 0 0; }
.lv-signin .lp-demo { margin-top: 6px; font-size: 12px; } .lv-signin .lp-demo-grid button { padding: 6px; font-size: 11.5px; }
.lv-signin .flash { font-size: 12.5px; padding: 8px 10px; margin-bottom: 8px; }
.lv-signin .lv-x { width: 28px; height: 28px; font-size: 18px; }

/* filter strip in the mail-style lists */
.m-rf { flex-basis: 100%; font-size: 12.5px; }
.m-rf > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #3d5466; font-weight: 600; padding: 2px 0; }
.m-rf > summary::-webkit-details-marker { display: none; }
.m-rf > summary svg { width: 14px; height: 14px; color: var(--seablue); }
.m-rf-on { font-weight: 600; color: #0b4a68; background: #e2f1f8; border-radius: 999px; padding: 1px 9px; }
.m-rf form { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 2px; align-items: center; }
.m-rf select, .m-rf input[type=date] { height: 30px; font-size: 12.5px; border: 1px solid #d6e4ef; border-radius: 6px; padding: 0 6px; background: #fff; max-width: 100%; min-width: 0; }
.m-rf .range-fields { gap: 6px; } .m-rf .date-range { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; } .btn.sm svg { width: 14px; height: 14px; }
.t-inbox .m-rf, .tlist .m-rf { padding: 6px 14px; }

/* users: move ticked students */
.bulk-move { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bulk-move select { height: 36px; border: 1px solid #c9d8e4; border-radius: 8px; padding: 0 8px; background: #fff; max-width: 100%; }
.cell-input { height: 32px; border: 1px solid #d6e4ef; border-radius: 6px; padding: 0 8px; width: 100%; max-width: 220px; }
.confirm-input { height: 34px; width: 110px; border: 1px solid #e5a3a3; border-radius: 8px; padding: 0 8px; margin-left: 6px; text-transform: uppercase; }
.del-bar { border-color: #f3c4c4; background: #fff7f7; }

.lv-signin .lp-seg button { height: 32px; } .lv-signin .lp-seg { padding: 3px; border-radius: 10px; }

/* ==================================================================== v10 */
/* small, compact student registration card */
.reg-wrap { max-width: 420px; margin: 18px auto; padding: 0 12px; }
.reg-wrap .login-card { padding: 16px 18px 14px; border-radius: 14px; border-top-width: 4px; box-shadow: 0 12px 30px rgba(0, 70, 110, .10); }
.reg-wrap .login-card h2 { font-size: 17px; margin: 0 0 2px; }
.reg-wrap .login-card .lead { font-size: 12px; margin: 0 0 10px; }
.reg-grid { gap: 0 10px; }
.reg-wrap .field { margin-bottom: 8px; gap: 3px; }
.reg-wrap .field label { font-size: 11.5px; margin-bottom: 2px; }
.reg-wrap .field input, .reg-wrap .field select { height: 32px; min-height: 32px; font-size: 13px; padding: 0 8px; border-radius: 8px; }
.reg-wrap .field .hint { font-size: 10.5px; line-height: 1.3; }
.reg-wrap .btn-primary { height: 36px; font-size: 14px; border-radius: 9px; margin-top: 4px !important; }
.reg-wrap .alt { font-size: 12px; margin: 8px 0 0; }
.reg-wrap .flash { font-size: 12px; padding: 7px 10px; margin-bottom: 8px; }
@media (max-width: 900px) { .reg-wrap .reg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) { .reg-wrap .reg-grid { grid-template-columns: 1fr; } }
.stats.att-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.att-stats .stat { padding: 10px 12px; } .att-stats .stat .v { font-size: 22px; } .att-stats .stat .k { font-size: 12.5px; }
/* v11: quiz random sample note */
.notice-strip { display: block; background: var(--sea-50, #F0F8FF); border: 1px solid #b8d9e8; border-left: 4px solid #006994; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; color: #0b3b52; }
.notice-strip svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; color: #006994; }
/* v13: quiz review and leaving for the dashboard */
.qs-card .btn.wide + .btn.wide { margin-top: 8px; }
.leave-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 30px; }
.review-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(6, 40, 58, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; }
.review-wrap[hidden] { display: none; }
.review-box { background: #fff; border-radius: 14px; width: min(760px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.review-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 8px; flex-wrap: wrap; }
.review-head h2 { margin: 0; font-size: 19px; color: #006994; } .review-head .iconbtn { margin-left: auto; }
.review-tabs { margin: 0 20px 8px; }
.review-list { list-style: none; margin: 0; padding: 0 20px; overflow: auto; flex: 1; }
.review-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e6eef3; }
.review-list .rn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: #fdecec; color: #b42318; }
.review-list li.done .rn { background: #e1f3ec; color: #0f7b5f; }
.review-list .rq { flex: 1; font-size: 14px; } .review-list .ra { display: block; margin-top: 3px; color: #b42318; font-size: 12.5px; }
.review-list li.done .ra { color: #0f7b5f; }
.review-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid #e6eef3; }
body.reviewing { overflow: hidden; }
.submit-bar #progress { flex: 1; }
