/* Copied unchanged from Airam1234/coreed-lms static/css/app.css – keep the two in sync. */
/* CoreEd Learning – CoreEd Visual Identity Guidelines v1.0 (Feb 2026). Single stylesheet, no build step.
   Brand palette: Midnight Blue #232B50, Wizard Blue #0073D9, Tangerine Orange #F57D21, Sea Green #2E8C57, Pure White.
   Typefaces: Gotham Rounded Medium for headlines (licensed font – falls back to Rubik), Rubik for body copy. */
:root {
  --navy: #232B50;
  --navy-m: #2F3A6B;
  --accent: #0073D9;
  --accent-d: #005FB3;
  --blue: #0073D9;
  --gold: #D9670F;
  --gold-l: #F57D21;
  --gold-bg: #FFF3E9;
  --slate: #3D4A5C;
  --slate-l: #64748B;
  --ice: #E6F1FB;
  --mint: #EAF3FC;
  --lgray: #F1F4F8;
  --border: #E2E8F0;
  --bg: #EBEEF6;
  --white: #FFFFFF;
  --green: #2E8C57;
  --green-l: #E3F3EA;
  --green-t: #1F7047; /* Sea Green shade for text on light backgrounds (AA contrast) */
  --gold-t: #9A4A0C;  /* Tangerine shade for text on light backgrounds (AA contrast) */
  --red: #B91C1C;
  --red-l: #FEE2E2;
  --amber: #9A4A0C;   /* warnings use the Tangerine family */
  --amber-l: #FFF3E9;
  --sans: "Rubik", Arial, sans-serif;
  --display: "Gotham Rounded", "Rubik", Arial, sans-serif;
  --sh: 0 1px 3px rgba(35, 43, 80, .08), 0 4px 16px rgba(35, 43, 80, .06);
  --r: 10px;
  --sidebar: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--slate); line-height: 1.6; }
a { color: var(--accent); }
a:hover { color: var(--navy-m); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-family: var(--display); font-size: 1.9rem; font-weight: 500; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
img, iframe, video { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(0, 115, 217, .45); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 200; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 60;
}
.sb-head { padding: 24px 24px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand { display: inline-block; line-height: 0; }
.brand img { display: block; height: auto; }
.sb-head .brand img { width: 150px; }
.sb-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; padding: 4px 10px; font-size: .72rem; font-weight: 600;
  color: rgba(255, 255, 255, .75);
}
.sb-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-l); }
.sb-nav { flex: 1; padding: 14px 12px; }
.sb-label {
  font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .35);
  padding: 0 8px; margin: 16px 0 6px;
}
.sb-label:first-child { margin-top: 0; }
.sb-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: .85rem; font-weight: 500;
  color: rgba(255, 255, 255, .68); text-decoration: none; position: relative;
}
.sb-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sb-link[aria-current="page"] { background: rgba(0, 115, 217, .3); color: #fff; }
.sb-link[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 0 2px 2px 0; background: var(--gold-l);
}
.sb-ico { width: 1.25rem; text-align: center; }
.sb-count { margin-left: auto; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.sb-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sb-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #1A6A9A, #0D4A7A);
  display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sb-user-name { font-size: .85rem; font-weight: 600; color: #fff; }
.sb-user-role { font-size: .72rem; color: rgba(255, 255, 255, .5); }
.sb-actions { display: flex; gap: 8px; margin-top: 10px; }
.sb-actions a, .sb-actions button {
  flex: 1; text-align: center; font-size: .75rem; padding: 6px 8px; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); text-decoration: none;
}
.sb-actions form { flex: 1; margin: 0; display: flex; }
.sb-actions a:hover, .sb-actions button:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border); height: 56px; padding: 0 32px; display: flex; align-items: center;
  gap: 12px; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 3px rgba(35, 43, 80, .06);
}
.crumbs { font-size: .8rem; color: var(--slate-l); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.crumbs a { color: var(--slate-l); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: #B6C0CE; }
.crumbs strong { color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn {
  display: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--lgray);
  font-size: 1.1rem; cursor: pointer; color: var(--navy);
}
.content { flex: 1; padding: 28px 32px 48px; max-width: 1240px; width: 100%; }
.site-footer { padding: 16px 32px 28px; color: var(--slate-l); font-size: .8rem; }
.scrim { display: none; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(35, 43, 80, .45); z-index: 50; }
  .menu-btn { display: inline-grid; place-items: center; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
  .site-footer { padding: 16px; }
  h1 { font-size: 1.5rem; }
}

/* ---------- Page furniture ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { margin: .2rem 0 0; color: var(--slate-l); }
.muted { color: var(--slate-l); }
.small { font-size: .84rem; }
.right { text-align: right; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 1rem; }
.mt { margin-top: 1.25rem; }
.grid { display: grid; gap: 1rem; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.two-col, .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 1060px) { .two-col, .layout { grid-template-columns: 1fr; } }
.section-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-l); margin: 1.5rem 0 .6rem; }
.section-heading { display: flex; align-items: center; gap: 12px; margin: 1.75rem 0 .9rem; }
.section-heading:first-child { margin-top: 0; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 0; font-size: .82rem; color: var(--slate-l); }
.section-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--mint); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh); padding: 1.25rem 1.35rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { padding: .85rem 1.2rem; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: .5rem; }
.card-body { padding: 1rem 1.2rem; }
a.card.link-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card.link-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.empty { text-align: center; color: var(--slate-l); padding: 2rem 1rem; }

.stat { position: relative; overflow: hidden; }
.stat .value { font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .label { padding-right: 2rem; font-size: .78rem; font-weight: 600; color: var(--slate-l); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.stat .sub { font-size: .8rem; color: var(--slate-l); }
.stat .ico { position: absolute; right: 14px; top: 14px; font-size: 1.3rem; opacity: .85; }
.stat.alert .value { color: var(--amber); }
.stat.accent { border-top: 3px solid var(--accent); }
.stat.gold { border-top: 3px solid var(--gold-l); }
.stat.green { border-top: 3px solid var(--green); }
.stat.navy { border-top: 3px solid var(--navy-m); }

/* Hero banners */
.hero {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 32px 34px 28px; position: relative; overflow: hidden;
  margin-bottom: 1.25rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 90% at 92% 40%, rgba(0, 115, 217, .35) 0%, transparent 70%);
}
.hero > * { position: relative; }
.hero h1 { color: #fff; font-size: 2rem; margin: .4rem 0 .35rem; }
.hero .hero-sub { color: #B9CBE0; font-size: .98rem; margin: 0; max-width: 60ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #DCE7F3;
}
.hero-badge.gold { background: rgba(245, 125, 33, .16); border-color: rgba(245, 125, 33, .4); color: var(--gold-l); }
.hero-lo { font-size: .8rem; color: #9FB6CF; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 22px; }
.hero-stat { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 10px 12px; }
.hero-stat-icon { font-size: 1.15rem; }
.hero-stat-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: #8EA8C8; font-weight: 700; }
.hero-stat-val { font-size: .88rem; color: #fff; font-weight: 600; }
.hero-progress { margin-top: 18px; max-width: 420px; }
.hero-progress .track { background: rgba(255, 255, 255, .14); }
.hero-progress .pct { color: #DCE7F3; }
@media (max-width: 700px) { .hero { padding: 24px 20px; } .hero h1 { font-size: 1.5rem; } }

/* Week strip */
.week-strip {
  display: flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px 18px; overflow-x: auto; margin-bottom: 1.25rem; box-shadow: var(--sh);
}
.week { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; flex-shrink: 0; min-width: 44px; }
.week-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--lgray); color: var(--slate-l); border: 2px solid var(--border);
}
.week-label { font-size: .68rem; color: var(--slate-l); font-weight: 600; white-space: nowrap; }
.week.done .week-dot { background: var(--green); border-color: var(--green); color: #fff; }
.week.open .week-dot { background: #fff; border-color: var(--accent); color: var(--accent); }
.week.current .week-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(0, 115, 217, .18); }
.week.current .week-label { color: var(--accent); }
.week.locked { opacity: .55; }
.week-line { flex: 1; min-width: 14px; height: 2px; background: var(--border); margin: 0 4px 18px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tab {
  border: 0; background: none; padding: 10px 14px; font-size: .88rem; font-weight: 600; color: var(--slate-l); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--navy); background: var(--lgray); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.js .tab-panel[hidden] { display: none; }
.no-js .tabs { display: none; }
.no-js .tab-panel { display: block !important; margin-bottom: 2rem; }

/* Callouts */
.callout { border-radius: var(--r); padding: 14px 16px; border: 1px solid; margin-bottom: 1rem; }
.callout-title { font-weight: 700; margin-bottom: .25rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.info { background: var(--mint); border-color: #BCD9F5; color: #004F96; }
.callout.warn { background: var(--amber-l); border-color: #FBCFA8; color: var(--gold-t); }
.callout.success { background: var(--green-l); border-color: #B5DEC6; color: var(--green-t); }
.callout.gold { background: var(--gold-bg); border-color: #FBCFA8; color: var(--gold-t); }
.callout.danger { background: var(--red-l); border-color: #FBC4C4; color: var(--red); }

/* Timeline */
.timeline { position: relative; padding-left: 8px; }
.timeline-item { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--border); }
.timeline-dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: grid; place-items: center; flex-shrink: 0; font-size: .95rem; }
.timeline-when { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.timeline-title { font-weight: 600; color: var(--navy); }
.timeline-detail { font-size: .87rem; color: var(--slate); }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--lgray); color: var(--slate-l); margin-top: 4px; }

/* Accordions (details/summary) */
.acc { background: #fff; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; box-shadow: 0 1px 2px rgba(35, 43, 80, .04); }
.acc > summary {
  list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--navy);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "▾"; margin-left: auto; color: var(--slate-l); transition: transform .15s; }
.acc[open] > summary::after { transform: rotate(180deg); }
.acc-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ice); color: var(--navy-m); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.acc-title { flex: 1; }
.acc-sub { font-size: .78rem; font-weight: 500; color: var(--slate-l); }
.acc-body { padding: 0 18px 14px 58px; }
.acc-body ul { margin: 0; padding-left: 1.1rem; }
.acc-body li { margin-bottom: .35rem; }
.key-message { margin-top: .75rem; padding: 10px 12px; background: var(--gold-bg); border-left: 3px solid var(--gold-l); border-radius: 0 8px 8px 0; font-style: italic; color: var(--gold-t); }
@media (max-width: 700px) { .acc-body { padding-left: 18px; } }

/* Sidebar cards */
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; margin-bottom: 1rem; }
.side-card-head { padding: 10px 14px; font-size: .82rem; font-weight: 700; color: var(--navy); background: var(--lgray); border-bottom: 1px solid var(--border); }
.side-card-head.teal { background: var(--mint); color: #004F96; }
.side-card-head.gold { background: var(--gold-bg); color: var(--gold-t); }
.side-card-body { padding: 12px 14px; }
.side-list { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.side-list li { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.side-list li:last-child { border-bottom: 0; }

/* Checklists */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { margin: 0; }
.checklist form { margin: 0; }
.check {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; background: none; border: 0; padding: 6px 0; text-align: left;
  font-size: .87rem; color: var(--slate); cursor: pointer;
}
.check[disabled] { cursor: default; }
.cbox { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #B6C0CE; flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; font-size: .7rem; color: #fff; }
.check.ticked .cbox { background: var(--green); border-color: var(--green); }
.check.ticked .ctext { text-decoration: line-through; color: var(--slate-l); }

/* Downloads and links */
.download-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; }
.download-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--ice); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.download-info { flex: 1; min-width: 0; }
.download-name { font-weight: 600; color: var(--navy); font-size: .9rem; }
.download-sub { font-size: .78rem; color: var(--slate-l); }
.file-badge { font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--lgray); color: var(--slate-l); text-transform: uppercase; }
.file-badge.docx { background: #DBEAFE; color: #1E40AF; }
.file-badge.pptx { background: #FFEDD5; color: #9A3412; }
.file-badge.pdf { background: var(--red-l); color: var(--red); }
.staff-tag { font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--navy); color: var(--gold-l); }

/* Session cards (unit page) */
.sess-list { display: grid; gap: 10px; }
.sess-card {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(35, 43, 80, .04);
}
a.sess-card:hover { border-color: var(--accent); }
.sess-num { width: 42px; height: 42px; border-radius: 10px; background: var(--ice); color: var(--navy-m); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.sess-card.current { border: 2px solid var(--accent); background: linear-gradient(90deg, var(--mint), #fff 40%); }
.sess-card.current .sess-num { background: var(--accent); color: #fff; }
.sess-card.done .sess-num { background: var(--green); color: #fff; }
.sess-card.locked { opacity: .65; background: var(--lgray); }
.sess-main { flex: 1; min-width: 0; }
.sess-kicker { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-l); }
.sess-title { font-weight: 600; color: var(--navy); }
.sess-sub { font-size: .82rem; color: var(--slate-l); }
.sess-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
@media (max-width: 640px) { .sess-card { flex-wrap: wrap; } .sess-meta { flex-direction: row; align-items: center; width: 100%; } }

/* Assignment parts */
.part { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; margin-bottom: 8px; }
.part-num { width: 32px; height: 32px; border-radius: 50%; background: var(--lgray); color: var(--slate-l); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.part.here { border: 2px solid var(--gold-l); background: var(--gold-bg); }
.part.here .part-num { background: var(--gold-l); color: var(--navy); }
.part-title { font-weight: 600; color: var(--navy); }
.part-detail { font-size: .8rem; color: var(--slate-l); }

/* Forum / prompts */
.prompt-box { background: linear-gradient(135deg, var(--navy), var(--navy-m)); color: #fff; border-radius: var(--r); padding: 18px 20px; }
.prompt-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-l); margin-bottom: 6px; }
.prompt-q { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; margin-bottom: 8px; }
.prompt-hint { font-size: .85rem; color: #B9CBE0; }
.q-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.q-row:last-child { border-bottom: 0; }
.q-num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.q-text { font-weight: 600; color: var(--navy); }
.q-hint { font-size: .84rem; color: var(--slate-l); }

/* Video / webinar */
.webinar {
  background: linear-gradient(135deg, #0B1831, #1A2E5E); border-radius: var(--r); color: #fff; padding: 26px; text-align: center;
}
.webinar-play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-grid; place-items: center; font-size: 1.3rem; margin-bottom: 10px; }
.webinar-title { font-weight: 600; font-size: 1.05rem; }
.webinar-when { color: #B9CBE0; font-size: .88rem; margin-top: 2px; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; background: #000; margin: 1rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px;
  padding: .55rem 1.05rem; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3;
  background: var(--accent); color: #fff; font-family: inherit;
}
.btn:hover { background: var(--accent-d); color: #fff; }
.btn.secondary, .btn.ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn.secondary:hover, .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.gold { background: var(--gold-l); color: var(--navy); }
.btn.gold:hover { background: var(--gold); color: var(--navy); }
.btn.success { background: var(--green-t); }
.btn.navy { background: var(--navy); }
.btn.sm { padding: .35rem .75rem; font-size: .8rem; }
.btn.lg { padding: .75rem 1.4rem; font-size: .95rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ms { background: #2f2f2f; }
.btn.ms:hover { background: #000; }

/* Badges */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--lgray); color: var(--slate-l); text-transform: uppercase; letter-spacing: .03em; }
.badge.ok { background: var(--green-l); color: var(--green-t); }
.badge.warn { background: #FFE4D5; color: var(--gold-t); }
.badge.wait { background: var(--amber-l); color: var(--amber); }
.badge.info { background: var(--ice); color: var(--navy-m); }
.badge.live { background: var(--gold-l); color: var(--navy); }
.badge.gold { background: var(--gold-l); color: var(--navy); }

/* Progress bars */
.progress { display: flex; align-items: center; gap: .6rem; }
.progress .track { flex: 1; height: 8px; background: var(--lgray); border-radius: 99px; overflow: hidden; min-width: 60px; }
.progress .fill { height: 100%; background: linear-gradient(90deg, var(--accent), #3D95E6); border-radius: 99px; }
.progress .pct { font-size: .8rem; color: var(--slate-l); min-width: 3ch; text-align: right; font-weight: 600; }

/* Lists and tables */
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.item-list li:last-child { border-bottom: 0; }
.item-list .title { flex: 1; }
.tick { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; border: 2px solid var(--border); color: transparent; flex-shrink: 0; }
.tick.done { background: var(--green); border-color: var(--green); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .9rem; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-l); background: var(--lgray); font-weight: 700; }
tr:hover td { background: #FAFCFE; }
dl.meta { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .87rem; }
dl.meta dt { color: var(--slate-l); }
dl.meta dd { margin: 0; color: var(--navy); font-weight: 500; }

/* Forms */
label { font-weight: 600; display: block; margin-bottom: .3rem; color: var(--navy); font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; font-size: .92rem; background: #fff; color: var(--slate);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 115, 217, .15); }
.field { margin-bottom: 1rem; }
.field .help, .helptext { display: block; font-size: .8rem; color: var(--slate-l); margin-top: .25rem; font-weight: 400; }
.errorlist { color: var(--red); list-style: none; padding: 0; margin: .25rem 0; font-size: .85rem; }
.checkbox-field label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
.checkbox-field input { margin-top: .3rem; }
.radio-inline ul, .radio-inline div { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.radio-inline label { font-weight: 500; display: inline-flex; gap: .35rem; align-items: center; }
.filters { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 170px; }
.word-count { display: flex; justify-content: space-between; font-size: .8rem; color: var(--slate-l); margin: .35rem 0 .75rem; }
.word-count.ok { color: var(--green-t); }
.word-count.over { color: var(--amber); }
.submit-textarea { min-height: 260px; line-height: 1.6; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem; background: var(--ice); color: var(--navy-m); border: 1px solid #C4DDF5; }
.messages li.success { background: var(--green-l); color: var(--green-t); border-color: #B5DEC6; }
.messages li.error { background: var(--red-l); color: var(--red); border-color: #FBC4C4; }
.messages li.warning { background: var(--amber-l); color: var(--amber); border-color: #FBCFA8; }

/* Prose content */
.prose { max-width: 78ch; }
.prose p, .prose li { font-size: .97rem; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1rem 0; padding: .25rem 1rem; color: var(--slate-l); }
.prose table { margin: 1rem 0; }
.prose img { border-radius: 8px; height: auto; }
.feedback { background: var(--lgray); border-left: 4px solid var(--accent); padding: .75rem 1rem; border-radius: 0 8px 8px 0; }
.criteria { list-style: none; padding: 0; margin: 0; }
.criteria li { padding: .3rem 0; }
.criteria .ref { font-weight: 700; color: var(--accent); margin-right: .35rem; }
.decision { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.decision:last-child { border-bottom: 0; }

/* Quizzes */
.quiz-question { margin-bottom: 1rem; }
.quiz-question fieldset { border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.25rem; background: #fff; }
.quiz-question legend { font-weight: 600; padding: 0 .35rem; color: var(--navy); }
.quiz-question label { font-weight: 400; display: flex; gap: .5rem; padding: .3rem 0; cursor: pointer; color: var(--slate); }
.choice.correct { color: var(--green-t); font-weight: 600; }
.choice.wrong { color: var(--red); text-decoration: line-through; }

/* Sign-in pages */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(ellipse 70% 60% at 85% 20%, rgba(0, 115, 217, .35), transparent 70%), var(--navy); }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 36px; }
.auth-brand .brand img { width: 210px; }
.auth-wrap .card { padding: 2rem; }
.auth-wrap h1 { font-size: 1.7rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--slate-l); font-size: .8rem; margin: 1.4rem 0; text-transform: uppercase; letter-spacing: .06em; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.auth-foot { text-align: center; color: #9FB6CF; font-size: .8rem; margin-top: 16px; }
.auth-foot a { color: #DCE7F3; }
