/* LGSM Online Campus LMS – styles. Brand: LGSM blue, coral and navy; Montserrat + Open Sans. */

@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(fonts/opensans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/opensans-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(fonts/opensans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(fonts/opensans-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(fonts/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(fonts/montserrat-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(fonts/montserrat-800.woff2) format("woff2"); }

:root {
  --blue: #1F5FBF;
  --blue-dark: #174A96;
  --blue-tint: #EEF3FD;
  --coral: #E0304F;
  --coral-text: #B4213F;
  --coral-tint: #FFF1F4;
  --navy: #151948;
  --ink: #1B1F3B;
  --text2: #3A3F5C;
  --muted: #5A607A;
  --line: #E3E7F1;
  --line2: #C3C9DB;
  --bg: #F5F7FB;
  --bg2: #F1F3F9;
  --green: #1D7A50;
  --green-tint: #E8F5EE;
  --amber: #9A5B00;
  --amber-tint: #FFF6E5;
  --head: "Montserrat", "Open Sans", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: 30px; letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: 19px; }
h3 { font-weight: 700; font-size: 16px; }
p { margin: 0 0 .9em; }
ul { margin: 0 0 .9em; padding-left: 1.3em; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.nowrap { white-space: nowrap; }
.mobile-only, .mark.mobile-only { display: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(31, 95, 191, .45); outline-offset: 2px; }

/* LGSM four-tile mark */
.mark { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 32px; height: 32px; flex-shrink: 0; }
.mark i { border-radius: 3px; background: var(--blue); }
.mark i:nth-child(2), .mark i:nth-child(3) { background: var(--coral); }
.mark-lg { width: 46px; height: 46px; gap: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line2); background: #fff; color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; font-family: var(--head); font-weight: 700; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-accent { background: var(--coral-text); border-color: var(--coral-text); color: #fff; font-family: var(--head); font-weight: 700; }
.btn-accent:hover { background: #961a34; border-color: #961a34; color: #fff; }
.btn-danger { color: var(--coral-text); border-color: #F2B8C4; }
.btn-danger:hover { background: var(--coral-tint); color: var(--coral-text); border-color: var(--coral-text); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn .icon { width: 16px; height: 16px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }

/* Forms */
.form label, .login-form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=tel], input[type=datetime-local],
input[type=url], input[type=search], input[type=tel], input[type=time], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff;
  font: inherit; color: var(--ink); margin-bottom: 16px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 95, 191, .18); }
input[type=file] { margin-bottom: 16px; font: inherit; max-width: 100%; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin-bottom: 16px !important; }
.checkline input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.formactions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 4px; margin: 0 0 18px; }
legend { font-family: var(--head); font-weight: 700; color: var(--navy); padding: 0 6px; }

/* Flash messages */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash-success { background: var(--green-tint); color: #155C3C; }
.flash-error { background: var(--coral-tint); color: #8E1F38; }
.flash-info { background: var(--blue-tint); color: var(--blue-dark); }
.notice { background: var(--amber-tint); color: #6B4100; padding: 12px 14px; border-radius: 10px; font-size: 14px; }

/* App shell */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 20px;
  background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--navy); }
.brand em { font-style: normal; font-weight: 600; color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar-right form { margin: 0; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 0;
  background: transparent; color: var(--text2); cursor: pointer; }
.iconbtn:hover { background: var(--bg2); color: var(--blue); }
.menu-toggle { display: none; }
.userchip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.userchip:hover { background: var(--bg2); color: var(--ink); }
.userchip-text { display: flex; flex-direction: column; line-height: 1.25; }
.userchip-text strong { font-size: 14px; }
.userchip-text small { font-size: 12px; color: var(--muted); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: var(--head); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.coral { background: var(--coral); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }

.shell { display: flex; min-height: calc(100vh - 64px); }
.sidenav { width: 250px; flex-shrink: 0; background: var(--navy); padding: 22px 14px; display: flex; flex-direction: column; gap: 3px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: #C9CDE6; text-decoration: none; font-weight: 600; font-size: 14px; }
.sidenav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidenav a.active { background: var(--blue); color: #fff; }
.navlabel { margin: 18px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8A90B8; }
.main { flex: 1; min-width: 0; padding: 30px 36px 56px; max-width: 1280px; }

/* Page heading */
.pagehead { margin-bottom: 24px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs span { margin: 0 4px; color: var(--line2); }
.pagehead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.pagehead h1 { margin: 0; }
.pagehead-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.eyebrow.light { color: #8FB4F5; }
.eyebrow.coral { color: var(--coral-text); }

/* Cards and grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.dark h2, .card.dark h3 { color: #fff; }
.card.dark p { color: #C9CDE6; }
.card.dark a { color: #fff; }
.card.flush { padding: 0; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 22px; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-family: var(--head); font-weight: 800; font-size: 28px; color: var(--navy); line-height: 1.3; }
.stat.alert strong { color: var(--coral-text); }
.stat small { font-size: 12px; color: var(--muted); }

/* Due soon */
.due-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.due { border-radius: 12px; padding: 16px 18px; background: var(--bg2); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.due:hover { box-shadow: 0 6px 18px rgba(21, 25, 72, .1); color: var(--ink); }
.due .when { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.due strong { font-family: var(--head); font-size: 15px; line-height: 1.35; }
.due small { color: var(--muted); font-size: 13px; }
.due.urgent { background: var(--coral-tint); }
.due.urgent .when { color: var(--coral-text); }
.due.soon { background: var(--blue-tint); }
.due.soon .when { color: var(--blue); }
.due.done { background: var(--green-tint); }
.due.done .when { color: var(--green); }

/* Module cards */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.module-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.module-card:hover { box-shadow: 0 10px 24px rgba(21, 25, 72, .1); transform: translateY(-2px); color: var(--ink); }
.module-card .band { height: 92px; padding: 14px 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background-image: radial-gradient(circle at 85% 30%, rgba(255,255,255,.18) 0 22px, transparent 23px), radial-gradient(circle at 70% 90%, rgba(255,255,255,.1) 0 34px, transparent 35px); }
.module-card .band span { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.module-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.module-card .title { font-family: var(--head); font-weight: 700; font-size: 16px; line-height: 1.35; }
.module-card .meta { font-size: 13px; color: var(--muted); margin-top: auto; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }

/* Lists and tables */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list .grow small { color: var(--muted); font-size: 13px; }
.datechip { width: 52px; flex-shrink: 0; text-align: center; border-radius: 10px; background: var(--blue-tint); padding: 6px 0; line-height: 1.2; }
.datechip small { display: block; font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.datechip b { font-family: var(--head); font-weight: 800; font-size: 18px; }
.tablewrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 11px 14px; font-weight: 700; white-space: nowrap; }
.table td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #FAFBFE; }
.table td.actions { text-align: right; white-space: nowrap; }
.table .sub { display: block; font-size: 13px; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg2); color: var(--text2); }
.badge.green { background: var(--green-tint); color: var(--green); }
.badge.red { background: var(--coral-tint); color: var(--coral-text); }
.badge.blue { background: var(--blue-tint); color: var(--blue); }
.badge.amber { background: var(--amber-tint); color: var(--amber); }
.empty { color: var(--muted); padding: 8px 0; }
.details { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; }
.details dt { color: var(--muted); font-size: 14px; }
.details dd { margin: 0; font-weight: 600; }

/* Module page */
.module-hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; }
.module-hero h1 { color: #fff; margin: 4px 0 6px; }
.module-hero p { color: #C9CDE6; margin: 0; }
.module-hero .eyebrow { color: #FF8EA3; }
.progress-ring { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 16px; }
.progress-ring strong { font-family: var(--head); font-size: 22px; font-weight: 800; display: block; }
.progress-ring small { color: #C9CDE6; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--text2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--coral); }
.tabs a:hover { color: var(--blue); }
.course-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
.course-index { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.course-index .navtitle { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); padding: 0 12px 8px; }
.course-index a { padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text2); text-decoration: none; }
.course-index a:hover { background: #fff; color: var(--blue); }
.course-index a.done { color: var(--green); }
.course-index a.current { background: var(--blue); color: #fff; }
.week { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; scroll-margin-top: 84px; }
.week.current { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }
.week-head { padding: 20px 24px 6px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.week-head h2 { margin: 2px 0 0; font-size: 20px; }
.week-body { padding: 0 24px 20px; }
.week-body > p { color: var(--text2); }
.weekinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.weekinfo div { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.weekinfo span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.items { list-style: none; margin: 8px 0 0; padding: 0; }
.items li { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-top: 1px solid var(--line); border-radius: 0; }
.items li:hover { background: #FAFBFE; }
.items .ic { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ic.file { background: var(--coral-tint); color: var(--coral-text); }
.ic.link, .ic.video { background: var(--blue-tint); color: var(--blue); }
.ic.page { background: var(--bg2); color: var(--text2); }
.ic.task { background: var(--coral-tint); color: var(--coral-text); }
.items .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.items .grow a { font-weight: 600; color: var(--ink); text-decoration: none; }
.items .grow a:hover { color: var(--blue); }
.items .grow small { color: var(--muted); font-size: 13px; }
.items form { margin: 0; }
.donebtn { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text2); }
.donebtn.is-done { background: var(--green-tint); border-color: var(--green-tint); color: var(--green); }
.edit-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 10px 0; border-top: 1px dashed var(--line2); margin-top: 6px; }
.assessbox { border: 2px solid var(--coral); border-radius: var(--radius); background: #fff; padding: 22px 24px; margin-bottom: 22px; }
.video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: 16px; line-height: 1.7; max-width: 760px; }

/* Assignment upload */
.dropzone { border: 2px dashed var(--line2); border-radius: 12px; padding: 22px; text-align: center; margin-bottom: 16px; background: var(--bg); }
.dropzone .icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 6px; }
.dropzone input[type=file] { margin: 8px auto 0; display: block; }
.statusgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 18px; }
.statusgrid div { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.statusgrid span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.feedback { background: var(--green-tint); border-radius: 12px; padding: 16px 18px; }
.feedback .grade { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--green); }

/* Quick links */
.quicklinks { list-style: none; margin: 0; padding: 0; }
.quicklinks li + li { border-top: 1px solid var(--line); }
.quicklinks a { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 600; font-size: 14px; text-decoration: none; }
.quicklinks a::after { content: "\2192"; color: var(--muted); }

/* Login */
body.bare { background: var(--bg); }
.login { display: flex; flex-wrap: wrap; min-height: 100vh; }
.login-panel { flex: 1 1 520px; background: var(--navy); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; position: relative; overflow: hidden; }
.login-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.login-brand .mark i { background: #3F7FE0; }
.login-brand .mark i:nth-child(2), .login-brand .mark i:nth-child(3) { background: #F04868; }
.login-brandtext { display: flex; flex-direction: column; font-family: var(--head); text-transform: uppercase; }
.login-brandtext strong { font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.login-brandtext small { font-weight: 600; font-size: 11px; letter-spacing: .16em; color: #FF8EA3; }
.login-welcome { max-width: 520px; position: relative; z-index: 1; }
.login-welcome h1 { color: #fff; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; }
.login-intro { font-size: 17px; color: #C9CDE6; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; }
.login-help { font-size: 13px; color: #9BA1C7; margin: 0; position: relative; z-index: 1; }
.login-tiles { position: absolute; right: -160px; bottom: -190px; width: 420px; height: 420px; opacity: .18; }
.login-tiles rect { fill: none; stroke: #3F7FE0; stroke-width: 24; }
.login-tiles rect.alt { stroke: #F04868; }
.login-formwrap { flex: 1 1 460px; display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.login-form { width: 100%; max-width: 420px; }
.login-form h2 { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.login-form .muted { margin-bottom: 22px; }
.login-form .btn-block { min-height: 52px; font-size: 16px; margin: 4px 0 16px; }
.installer { max-width: 680px; margin: 40px auto; padding: 0 16px; }

/* Responsive */
@media (max-width: 1100px) {
  .layout-side { grid-template-columns: minmax(0, 1fr); }
  .course-layout { grid-template-columns: 1fr; }
  .course-index { position: static; flex-direction: row; flex-wrap: wrap; }
  .course-index .navtitle { width: 100%; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .sidenav { position: fixed; top: 64px; left: 0; bottom: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
  body.nav-open .sidenav { transform: none; box-shadow: 0 0 0 100vmax rgba(21, 25, 72, .4); }
  .main { padding: 22px 16px 48px; }
  .userchip-text { display: none; }
  .brand em { display: none; }
  h1 { font-size: 25px; }
  .card { padding: 18px; }
  .week-head, .week-body { padding-left: 16px; padding-right: 16px; }
  .module-hero { padding: 20px; }
  .login-panel { display: none; }
  .mobile-only, .mark.mobile-only { display: inline-grid; margin-bottom: 20px; }
  .items li { flex-wrap: wrap; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
}
@media print {
  .topbar, .sidenav, .pagehead-actions, .edit-row { display: none; }
  .main { padding: 0; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.card-section { margin-bottom: 8px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg2); padding: 2px 6px; border-radius: 6px; }
.card.dark code { background: rgba(255,255,255,.12); color: #fff; }

/* ---------------------------------------------------------------------------
   Version 2: student records – admissions, records, fees, attendance, boards.
   --------------------------------------------------------------------------- */
a.stat { text-decoration: none; color: inherit; transition: box-shadow .15s; }
a.stat:hover { box-shadow: 0 6px 18px rgba(21, 25, 72, .1); color: inherit; }
.stat strong.stat-text { font-size: 20px; padding: 4px 0 3px; }
.text-red { color: var(--coral-text); }
.center { text-align: center !important; }
.num { text-align: right !important; white-space: nowrap; }
.badge-lg .badge { font-size: 14px; padding: 6px 14px; }
.btn-sm .icon { width: 16px; height: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; margin-bottom: 18px; }
.filters > div { flex: 0 1 220px; }
.filters > div:first-of-type { flex: 1 1 260px; }
.filters label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text2); }
.filters .btn { margin-bottom: 16px; min-height: 46px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
details > summary { cursor: pointer; }
details.small summary { color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.notice-card { border-color: #F2D49B; background: var(--amber-tint); }
.notice-card h2 { color: #6B4100; }
.offer-card { border: 2px solid var(--green); background: linear-gradient(135deg, #fff 60%, var(--green-tint)); }
.offer-card h2 { font-size: 22px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.popover { position: relative; }
.popover > summary { list-style: none; }
.popover > summary::-webkit-details-marker { display: none; }
.popover[open] > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgba(21, 25, 72, .16); }
.popover label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
input.narrow { width: 90px; min-height: 40px; margin: 0; }
.board-form select { min-height: 40px; margin: 0; min-width: 120px; }
.form h3 { margin-top: 6px; }
.form + .form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.card > form.form + form.form { border-top: 1px solid var(--line); }

/* Application progress */
.appsummary { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.appsummary .grow { flex: 1 1 280px; }
.appsummary h2 { margin-bottom: 4px; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg2); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line2); font-size: 12px; }
.steps li.done { color: var(--green); background: var(--green-tint); }
.steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.current { color: var(--navy); background: var(--blue-tint); }
.steps li.current span { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps-text { padding-left: 1.2em; }
.steps-text li { margin-bottom: 8px; }

/* Timeline */
.timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 6px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; }
.timeline li.internal::before { background: var(--amber); }
.timeline li > strong { display: block; font-size: 14px; }
.timeline li > small { color: var(--muted); font-size: 12px; }
.timeline li .small p { margin: 4px 0 0; }

/* Public pages: apply and verify */
.pubbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.pubbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pubbar nav a:not(.btn) { font-weight: 600; font-size: 14px; color: var(--text2); text-decoration: none; }
.pubbar nav a.active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--coral); padding-bottom: 4px; }
.pubwrap { max-width: 1180px; margin: 0 auto; padding: 32px 20px 60px; }
.pubwrap.narrow { max-width: 760px; }
.pubhero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 32px; margin-bottom: 26px;
  background-image: radial-gradient(circle at 92% 20%, rgba(224, 48, 79, .35) 0 60px, transparent 61px), radial-gradient(circle at 80% 110%, rgba(31, 95, 191, .5) 0 90px, transparent 91px); }
.pubhero h1 { color: #fff; font-size: 34px; }
.pubhero p { color: #C9CDE6; max-width: 640px; margin: 0; }
.pubhero .eyebrow { color: #FF8FA3; }
.progcard h3 { font-size: 19px; margin-bottom: 4px; }
.progcard .table { margin-top: 10px; }
.verify-result.good { border: 2px solid var(--green); }
.verify-result.good .eyebrow { color: var(--green); }
.verify-result.bad { border: 2px solid var(--coral); }
.login-apply { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Board broadsheet */
.broadsheet td, .broadsheet th { padding-left: 10px; padding-right: 10px; }
.cell { display: inline-block; min-width: 46px; padding: 3px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--bg2); }
.cell.pass, .cell.exempt { background: var(--green-tint); color: var(--green); }
.cell.refer { background: var(--amber-tint); color: var(--amber); }
.cell.fail { background: var(--coral-tint); color: var(--coral-text); }
.cell.pending { background: #fff; border: 1px dashed var(--line2); color: var(--muted); }
.board-head .details { margin-bottom: 16px; }
.register td input[type=radio] { width: 20px; height: 20px; accent-color: var(--blue); }

/* Award banner */
.award-banner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* Printable documents: invoices and transcripts */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; max-width: 900px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 3px solid var(--navy); margin-bottom: 24px; }
.doc-head .brand { font-size: 17px; }
.doc-meta { text-align: right; font-size: 13px; color: var(--text2); }
.doc-meta strong { font-family: var(--head); font-size: 18px; letter-spacing: .08em; color: var(--navy); }
.doc-parties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; font-size: 14px; }
.doc-parties.three { grid-template-columns: repeat(3, 1fr); }
.doc-parties small, .doc-award small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.doc-parties strong { font-size: 15px; color: var(--navy); }
.doc-table tfoot th { background: var(--bg2); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--navy); }
.doc-award { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--blue-tint); }
.doc-award strong { font-family: var(--head); color: var(--navy); font-size: 17px; }
.doc-note { margin-top: 18px; font-size: 14px; }
.doc-warning { background: var(--amber-tint); color: #6B4100; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.doc-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Certificate (A4 landscape) */
.certificate { background: #fff; max-width: 1050px; aspect-ratio: 297 / 210; padding: 22px; border-radius: 6px; box-shadow: 0 10px 30px rgba(21, 25, 72, .12);
  background-image: linear-gradient(135deg, var(--navy) 0 14px, transparent 14px), linear-gradient(315deg, var(--coral) 0 14px, transparent 14px); }
.cert-inner { height: 100%; border: 2px solid var(--navy); outline: 1px solid var(--line2); outline-offset: -8px; padding: 34px 50px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.cert-brand { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 24px; }
.cert-brand strong { display: block; font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--navy); }
.cert-brand small { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.cert-lead { font-size: 15px; color: var(--text2); margin: 0 0 6px; letter-spacing: .04em; }
.cert-name { font-size: 38px; font-weight: 800; margin: 2px 0 14px; letter-spacing: -.01em; }
.cert-award { font-size: 26px; color: var(--blue-dark); margin: 4px 0 6px; }
.cert-class { font-family: var(--head); font-weight: 700; color: var(--coral-text); font-size: 18px; margin: 0 0 8px; }
.cert-meta { color: var(--text2); font-size: 14px; }
.cert-sign { display: flex; gap: 80px; margin: 30px 0 18px; font-size: 13px; color: var(--muted); }
.cert-sign div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cert-sign span { display: block; width: 200px; border-bottom: 1px solid var(--ink); height: 36px; }
.cert-foot { font-size: 11px; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .doc { padding: 22px 18px; }
  .doc-parties, .doc-parties.three { grid-template-columns: 1fr; }
  .doc-head { flex-direction: column; }
  .doc-meta { text-align: left; }
  .certificate { aspect-ratio: auto; }
  .cert-inner { padding: 24px 16px; }
  .cert-name { font-size: 28px; }
  .cert-sign { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .cert-sign span { width: 140px; }
  .pubhero { padding: 24px 20px; }
  .pubhero h1 { font-size: 27px; }
  .pubbar { padding: 12px 16px; }
  .popover[open] > div { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .noprint, .flash, .skip, .menu-toggle { display: none !important; }
  .doc { border: 0; padding: 0; max-width: none; }
  .certificate { box-shadow: none; max-width: none; width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.page-certificate { margin: 0; }
  .shell { display: block; }
}
@media print { .certificate { page: certificate; } @page certificate { size: A4 landscape; margin: 8mm; } }

.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }
aside textarea, .layout-side aside textarea { min-height: 84px; }

/* Version 2.1: cohorts and academic calendar */
.cohort-release { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 24px 4px; }
.cohort-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.cohort-chip div { display: flex; flex-direction: column; }
.cohort-chip small { color: var(--muted); font-size: 12px; }
.deadline-grid input[type=datetime-local] { min-height: 40px; margin: 0 0 4px; min-width: 200px; }
.deadline-grid td { vertical-align: top; }
.sub .icon, .hint .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }

/* 2.2 – unit allocation and payment plans */
.popover[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgba(21, 25, 72, .16); text-align: left; }
.popover[open] > form input { width: 100%; margin-bottom: 10px; }
.unit-actions { white-space: nowrap; }
.unit-actions > form, .unit-actions > details { display: inline-block; margin: 0 4px 4px 0; vertical-align: top; }
.unitpick td.center input, .unitpick th.center { width: 72px; }
.unitpick input[type=checkbox] { width: 18px; height: 18px; }
.pick-sem { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.sem-cell { vertical-align: top; white-space: nowrap; font-weight: 700; background: var(--wash, #f5f6fb); }
.alloc-target select { min-width: 180px; }
table.plan input { width: 100%; min-width: 120px; }
table.plan td:first-child input { min-width: 220px; }
@media (max-width: 720px) {
  .popover[open] > form { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .unit-actions { white-space: normal; }
}
.date-edit > summary { list-style: none; display: inline-flex; }
.date-edit > summary::-webkit-details-marker { display: none; }
.date-edit[open] > form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.details dd .sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted, #5b6180); }
.date-edit { margin-top: 12px; }

/* 3.0 – finance */
.stat strong.stat-num { font-size: 22px; white-space: nowrap; letter-spacing: -0.01em; }
.fin-action > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fin-action > summary::-webkit-details-marker { display: none; }
.fin-action > summary h2 { margin: 0; font-size: 17px; }
.fin-action > summary::after { content: "+"; font-size: 20px; font-weight: 600; color: var(--muted); }
.fin-action[open] > summary::after { content: "−"; }
.fin-action[open] > summary { margin-bottom: 14px; }
.big-rate { font-size: 22px; margin: 4px 0 6px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form input { min-width: 150px; flex: 1; }
.table.small td, .table.small th { font-size: 13px; }

/* 3.1 – search, timetable, teaching */
.topsearch { display: flex; align-items: center; flex: 0 1 380px; margin-left: 12px; background: var(--wash, #f2f4fa); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 38px; }
.topsearch input { border: 0; background: transparent; flex: 1; min-width: 0; height: 36px; padding: 0; font: inherit; font-size: 14px; outline: none; box-shadow: none; }
.topsearch button { border: 0; background: transparent; color: var(--muted); padding: 6px; cursor: pointer; display: inline-flex; }
.topsearch:focus-within { border-color: #1F5FBF; box-shadow: 0 0 0 3px rgba(31, 95, 191, .15); }
@media (max-width: 760px) { .topsearch { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters .grow { flex: 1 1 260px; }
.unit-search { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; max-width: 460px; }
.unit-search input { flex: 1; }
.tt-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 14px; }
.tt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.tt-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 140px; }
.tt-day.today { border-color: #1F5FBF; box-shadow: 0 0 0 2px rgba(31, 95, 191, .12); }
.tt-day h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 2px 2px 8px; }
.tt-card { border-left: 4px solid var(--c, #1F5FBF); background: var(--wash, #f5f6fb); border-radius: 8px; padding: 8px 9px; margin-bottom: 8px; font-size: 13px; line-height: 1.35; }
.tt-card strong { display: inline; }
.tt-card small { display: block; color: var(--muted); margin: 2px 0 6px; }
.tt-card .btn { margin-top: 2px; }
.tt-card.cancelled { opacity: .7; text-decoration: line-through; }
.tt-card.cancelled .badge, .tt-card.cancelled small { text-decoration: none; }
.tt-time { font-weight: 700; font-size: 12px; color: #151948; margin-bottom: 2px; }
.tt-note { color: #6B4100 !important; }
.tt-holiday { font-size: 12px; background: var(--amber-tint, #fff5e0); border-radius: 6px; padding: 4px 6px; margin: 0 0 8px; }
.tt-empty { font-size: 12px; color: var(--muted); margin: 4px 2px; }
@media (max-width: 1100px) { .tt-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tt-week { grid-template-columns: minmax(0, 1fr); } .tt-day { min-height: 0; } }
.tt-preview { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; background: var(--wash, #f5f6fb); }
.copyrow input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.alloc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; padding: 3px 0; }
input.narrow { width: 70px; min-width: 70px !important; flex: 0 0 auto; }
.card.focus { box-shadow: 0 0 0 3px rgba(31, 95, 191, .25); }
.text-green { color: #0B7A4B; }
@media print { .tt-week { grid-template-columns: repeat(7, 1fr); } .topsearch, .unit-search { display: none; } }
.tt-card .btn { font-size: 12px; padding: 4px 9px; min-height: 0; white-space: nowrap; }
.tt-card .btn .icon { width: 13px; height: 13px; }

/* 3.2 – teaching rules */
.notice.alarm { border-color: #E9A8A8; background: #FDF0F0; }
.notice.alarm strong, .notice.warn strong { display: flex; align-items: center; gap: 6px; }
.notice.warn { border-color: #F2D49B; background: var(--amber-tint); }
.notice .icon { width: 16px; height: 16px; }
.row-alert td, .row-alert th { background: #FDF3F3; }
.tt-grid { table-layout: fixed; min-width: 980px; }
.tt-grid th:first-child { width: 170px; }
.tt-grid th.today { color: #1F5FBF; }
.tt-grid td { vertical-align: top; padding: 8px 6px; }
.tt-slot { display: block; border-left: 4px solid var(--c, #1F5FBF); background: var(--wash, #f5f6fb); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 12.5px; line-height: 1.3; color: inherit; text-decoration: none; }
.tt-slot:hover { background: #EAEFFA; }
.tt-slot b { display: block; }
.tt-slot span { display: block; }
.tt-slot small { display: block; color: var(--muted); }
.tt-slot.cancelled { opacity: .55; text-decoration: line-through; }
.tt-slot.clash { background: #FDECEC; border-left-color: #C0392B; }
.tt-slot em { display: flex; gap: 4px; align-items: center; font-style: normal; color: #A52A1E; font-weight: 600; margin-top: 3px; }
.tt-slot em .icon { width: 13px; height: 13px; }
.unit-checks { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 14px; }
.unit-checks .checkline { margin: 6px 0; }
.inline-del { display: inline; margin-left: 6px; }
.muted-card { opacity: .7; }
.print-only { display: none; }
@media print { .print-only { display: block; } .tt-grid { min-width: 0; font-size: 11px; } }
.tt-grid tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: inherit; vertical-align: top; white-space: normal; padding: 10px 12px; }
.tt-grid tbody th strong { display: block; font-weight: 700; }
.tt-grid tbody th .sub { display: block; font-size: 12.5px; color: var(--muted); margin: 3px 0 6px; }
.tt-grid thead th:first-child { width: 190px; }

/* 3.3 sign-in options */
.login-tabs { display: flex; gap: 4px; padding: 4px; background: #E8EBF5; border-radius: 12px; margin: 0 0 26px; }
.login-tabs a { flex: 1; text-align: center; padding: 10px 12px; border-radius: 9px; font-weight: 700; font-family: var(--head); color: var(--muted, #5A6080); text-decoration: none; }
.login-tabs a.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(20, 26, 70, .15); }
.login-tabs a:focus-visible { outline: 3px solid #3F7FE0; outline-offset: 2px; }
.sso-buttons { display: grid; gap: 10px; margin: 0 0 6px; }
.btn.sso-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; background: #fff; border: 1px solid #C9CEE0; color: #1B1F3B; font-weight: 600; margin: 0; }
.btn.sso-btn:hover { border-color: #1F5FBF; background: #F7F9FF; }
.sso-btn svg { width: 20px; height: 20px; flex: none; }
.login-or { display: flex; align-items: center; gap: 12px; color: var(--muted, #5A6080); font-size: 13px; margin: 18px 0 14px; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--line, #E1E4EE); }
.login-form form .btn-block { min-height: 52px; font-size: 16px; margin: 4px 0 16px; }
.login-admin { margin: 18px 0 0; font-size: 14px; }
.login-admin summary { cursor: pointer; color: var(--muted, #5A6080); }
.login-admin form { margin-top: 12px; }
.sso-head { display: flex; align-items: center; gap: 10px; }
.sso-head svg { width: 22px; height: 22px; }
details.setup { margin: 4px 0 14px; }
details.setup summary { cursor: pointer; font-weight: 600; color: #1F5FBF; }
details.setup ol { margin: 8px 0 0; padding-left: 20px; }
details.setup code, .card code { word-break: break-all; }

/* 3.4 application form */
.app-sections ol { list-style: none; margin: 12px 0 0; padding: 0; }
.app-sections li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink, #1B1F3B); text-decoration: none; font-size: 15px; }
.app-sections li a:hover { background: #F2F4FA; }
.app-sections li.current a { background: #E8EFFC; font-weight: 700; }
.app-sections .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: inline-grid; place-items: center; flex: none; }
.app-sections li.ok .tick { background: #1E8A5A; border-color: #1E8A5A; color: #fff; }
.app-sections .tick svg { width: 14px; height: 14px; }
.meter { height: 8px; background: #E8EBF5; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: #1E8A5A; border-radius: 99px; }
.app-sections-mobile { display: none; }
.app-sections-mobile summary { cursor: pointer; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.repeat { background: #FAFBFE; position: relative; }
fieldset.repeat > legend { font-weight: 700; padding: 0 6px; display: flex; gap: 8px; align-items: center; }
fieldset.radios { border: 0; padding: 0; margin: 8px 0; }
fieldset.radios legend { font-weight: 600; margin-bottom: 4px; }
.appsection h3 { margin: 22px 0 10px; }
.upload-box { border: 1px dashed var(--line2); border-radius: 12px; padding: 16px; margin: 16px 0; }
.section-check { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.section-check li a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.section-check li.ok svg { color: #1E8A5A; }
.section-check li.todo svg { color: #C2410C; }
.section-check li svg { width: 18px; height: 18px; flex: none; }
.section-check small { display: block; margin: 2px 0 4px 28px; color: var(--muted); }
.flag-list { margin: 8px 0; padding-left: 20px; color: #9A3412; }
.flag-list li { margin-bottom: 4px; }
.ref-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.ref-card h3 { margin: 0 0 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ratings { width: 100%; border-collapse: collapse; font-size: 14px; }
.ratings th, .ratings td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.ratings td.c { text-align: center; }
.copylink { display: flex; gap: 8px; }
.copylink input { flex: 1; font-size: 13px; }
.verify-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) {
  .app-layout aside .app-sections { display: none; }
  .app-sections-mobile { display: block; }
  .ratings th, .ratings td { padding: 6px 3px; font-size: 13px; }
}
fieldset { min-width: 0; }
.rating-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.sidenav .ext { margin-left: auto; font-size: 12px; opacity: .7 }
.doc-logo { width: 300px; max-width: 60%; height: auto; display: block; }
.doc-head { border-bottom-color: #E8405F; }
.doc-pay { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 18px 0; }
.doc-pay h3, .doc-terms h3 { font-size: 14px; margin: 0 0 8px; color: var(--navy); }
.doc-pay .ref { color: #E8405F; font-weight: 700; margin: 0 0 10px; }
.doc-pay-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; }
.doc-pay dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.doc-pay dt { color: var(--muted); } .doc-pay dd { margin: 0; font-weight: 700; font-family: "Courier New", monospace; }
.doc-terms { font-size: 12px; color: var(--text2); } .doc-terms ol { margin: 0; padding-left: 18px; }
.doc-foot { font-size: 11px; text-align: center; }
@media (max-width: 700px) { .doc-parties.three { grid-template-columns: 1fr; } }

/* ---------- 3.5 Learning: criteria, lessons, journal, messages, programme map, unit guide ---------- */
.critcode { display: inline-block; min-width: 2.6em; text-align: center; padding: 1px 7px; border-radius: 6px; font: 700 12px/1.6 var(--head); background: var(--blue-tint); color: var(--blue-dark); }
.critcode.kM { background: #F1EEFF; color: #4B3FB5; }
.critcode.kD { background: var(--amber-tint); color: var(--amber); }
.crittable td { vertical-align: top; }
.critgrouphead th { background: var(--bg2); font-family: var(--head); font-size: 13px; color: var(--navy); text-align: left; }
.critgrouphead.kind-M th { background: #F6F4FF; }
.critgrouphead.kind-D th { background: var(--amber-tint); }
.critguide { margin-top: 6px; font-size: 13px; color: var(--text2); }
.critguide summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.critguide p { margin: 6px 0 0; }
.critmark { margin-bottom: 18px; }
.critgroup { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 4px; margin: 0 0 12px; }
.critgroup legend { font: 700 13px var(--head); color: var(--navy); padding: 0 6px; }
.critgroup.kind-M { border-color: #D9D3FF; }
.critgroup.kind-D { border-color: #F3D9A6; }
.critrow { padding: 8px 0; border-bottom: 1px solid var(--line); }
.critrow:last-child { border-bottom: 0; }
.critrow .checkline { margin-bottom: 6px !important; }
.critnote { font-size: 13px; padding: 6px 10px !important; margin: 0 0 0 28px !important; width: calc(100% - 28px) !important; }
.critresult { font-size: 15px; background: var(--blue-tint); border-radius: 10px; padding: 10px 14px; margin: 0; }
.critresult strong { color: var(--navy); font-family: var(--head); }
.critmini { list-style: none; padding: 0; margin: 0 0 10px; font-size: 13px; }
.critmini li { margin-bottom: 8px; }

.unit-hero .whygrid, .defgrid, .casegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.whycard, .defcard, .casecard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.whycard h3, .defcard h3, .casecard h3 { font-size: 15px; margin-bottom: 6px; }
.whycard p, .defcard p, .casecard p { margin: 0 0 8px; font-size: 14px; }
.defcard.theory { background: var(--bg); }
.casecard { border-left: 4px solid var(--coral); }
.casecard .lessonline { background: var(--coral-tint); border-radius: 8px; padding: 8px 10px; }
.journey, .lessonlist, .reviewpoints { list-style: none; padding: 0; margin: 0; }
.journey li, .lessonlist li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lessonlist li { align-items: center; }
.journey li:last-child, .lessonlist li:last-child { border-bottom: 0; }
.journey h3 { font-size: 16px; margin-bottom: 4px; }
.journey p { margin: 0 0 4px; }
.lessonlist small { display: block; color: var(--muted); }
.step-lo { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 800 15px var(--head); color: #fff; background: var(--navy); }
.done > .step-lo { background: var(--green); }
.glossary dt { font: 700 15px var(--head); color: var(--navy); margin-top: 14px; }
.glossary dd { margin: 4px 0 0; }
.refs li { margin-bottom: 8px; }

.lesson-hero { background: linear-gradient(135deg, var(--navy), var(--unit, var(--blue))); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 6px 0 22px; }
.lesson-hero h1 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.lesson-hero .eyebrow { color: rgba(255,255,255,.75); }
.lesson-hero .lo-title { opacity: .9; margin: 0 0 12px; }
.bigq { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px 16px; font-size: 17px; margin: 0; }
.bigq span { display: block; font: 700 11px var(--head); text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 4px; }
.lesson-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.lesson-side { position: sticky; top: 16px; }
.lesson-side .card { padding: 16px 18px; }
.lesson-side h2 { font-size: 15px; }
.lesson-toc a { display: block; padding: 5px 0; font-size: 14px; text-decoration: none; }
.steps { list-style: none; padding: 0; margin: 0 0 8px; }
.steps li { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; color: var(--muted); }
.steps li.ok { color: var(--green); font-weight: 600; }
.steps .dot { width: 14px; height: 14px; border: 2px solid var(--line2); border-radius: 50%; display: inline-block; }
.actag { display: inline-block; font: 700 11px var(--head); color: var(--blue-dark); background: var(--blue-tint); border-radius: 6px; padding: 1px 7px; margin-bottom: 6px; }
.lsection h2 { font-size: 20px; }
.keypoints { background: var(--bg); border-radius: 10px; padding: 12px 16px 12px 32px; }
.fromto { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.fromto > div { border-radius: 12px; padding: 12px 16px; background: var(--bg2); }
.fromto > div:last-child { background: var(--green-tint); }
.fromto h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.thinkbox { border-left: 4px solid var(--blue); }
.applybox { border-left: 4px solid var(--green); }
.activitybox { border: 2px solid var(--blue-tint); }
.takeaways { background: var(--navy); color: #fff; }
.takeaways h2 { color: #fff; }
.videowrap { position: relative; aspect-ratio: 16 / 9; }
.videowrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.lesson-body video { width: 100%; border-radius: 10px; background: #000; }
.slidestrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.slidestrip img { height: 120px; border-radius: 8px; border: 1px solid var(--line); }
.secimg { max-width: 100%; border-radius: 10px; }
.quiz .qitem { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }
.quiz legend { font-weight: 700; padding: 0 4px; }
.quiz .opt { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; font-weight: 400; cursor: pointer; }
.quiz .opt:hover { background: var(--bg); }
.quiz .opt input { margin-top: 4px; accent-color: var(--blue); }
.quiz .qitem.right { border-color: #A9D8BF; background: #FAFEFB; }
.quiz .qitem.wrong { border-color: #F2B8C4; background: #FFFBFC; }
.quiz .opt.is-answer { background: var(--green-tint); font-weight: 600; }
.quiz .why { font-size: 14px; margin: 8px 0 0; color: var(--text2); }
.lesson-pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
form.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.reviewpoints { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.reviewpoints li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.reviewpoints li.done { border-color: #A9D8BF; background: var(--green-tint); }
.reviewpoints strong { display: block; font-family: var(--head); color: var(--navy); }
.reviewpoints span { font-size: 13px; color: var(--text2); }
.tutorcomment { background: var(--blue-tint); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.tutorcomment p { margin: 6px 0 0; }
.chiplist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chipbox { display: inline-flex !important; gap: 6px; align-items: center; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; font-weight: 600 !important; font-size: 13px !important; margin: 0 !important; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
fieldset > legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }

.msg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.msg-list { padding: 8px; }
.msg-list a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.msg-list a small, .msg-list a span { display: block; }
.msg-list a.active { background: var(--blue-tint); }
.msg-list a.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 6px; vertical-align: middle; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msg { max-width: 85%; background: var(--bg2); border-radius: 12px; padding: 10px 14px; }
.msg.mine { align-self: flex-end; background: var(--blue-tint); }
.textarea.mono, textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

.subrow td { padding-top: 0 !important; border-top: 0 !important; }
.subrow summary { cursor: pointer; font-size: 13px; color: var(--blue); }
.lomap { margin: 8px 0; padding-left: 18px; font-size: 13px; }
.lomap li { margin-bottom: 6px; }
.unitguide { max-width: 900px; }
.ug-head { display: flex; gap: 18px; align-items: center; border-bottom: 3px solid var(--navy); padding-bottom: 14px; margin-bottom: 14px; }
.ug-logo { height: 58px; }
.ug-facts th { width: 18%; background: var(--bg2); }
.unitguide h2 { margin-top: 22px; font-size: 19px; }
.ug-foot { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 10px; }
@media (max-width: 860px) {
  .lesson-layout, .msg-layout { grid-template-columns: 1fr; }
  .lesson-side { position: static; }
  .fromto { grid-template-columns: 1fr; }
  .lesson-hero h1 { font-size: 24px; }
}
@media print {
  .unitguide { box-shadow: none; border: 0; max-width: none; }
  .critguide { display: block; }
  .critguide summary { display: none; }
  .critguide:not([open]) > p { display: block; }
}

/* 3.6 password reset pages */
.authpage { max-width: 480px; margin: 60px auto; padding: 0 16px; }
.authpage h1 { font-size: 24px; }
.mailbody { white-space: pre-wrap; font-family: var(--body); background: var(--bg); border-radius: 10px; padding: 16px; font-size: 14px; }

/* 3.7 attendance */
.regnote { min-width: 180px; font-size: 13px; padding: 6px 10px !important; margin: 0 !important; }
.attq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.attq:last-child { border-bottom: 0; }
.attq h3 { font-size: 16px; margin: 4px 0; }
.attq blockquote { margin: 8px 0; padding: 10px 14px; background: var(--bg); border-left: 3px solid var(--line2); border-radius: 6px; }

/* 3.9 worked examples and practice questions */
.workedbox { border-left: 4px solid var(--navy); }
.worksteps { padding-left: 22px; }
.worksteps li { margin-bottom: 6px; }
.workanswer { background: var(--green-tint); border-radius: 8px; padding: 10px 14px; }
.practicelist { padding-left: 22px; }
.practicelist li { margin-bottom: 14px; }
.practicelist details summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; }
.practicelist details p { background: var(--bg); border-radius: 8px; padding: 10px 14px; margin: 8px 0 0; white-space: pre-line; }

/* 3.9.1 LGSM logo: the official monogram replaces the four-square mark everywhere it appears. */
.mark { display: inline-block; width: 46px; height: 30px; background: url("lgsm-mark.png") center / contain no-repeat; gap: 0; }
.mark i { display: none; }
.mark-lg { width: 70px; height: 46px; }
.login-brand .mark { background-color: #fff; background-origin: content-box; padding: 6px 8px; width: 86px; height: 58px; border-radius: 10px; box-sizing: border-box; }
.login-logo { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 0 22px; }
.mobile-only.mark, .mark.mobile-only { display: none !important; }
@media (max-width: 860px) { .login-logo { max-width: 260px; } }
