/* LMS Kuliah — gaya dasar di atas Bootstrap 5 */
:root {
  --campus: #1E5240;
  --campus-700: #153B2E;
  --campus-50: #E7F0EB;
  --gold: #D9A21B;
  --gold-50: #FBF3DE;
  --ink: #1A2421;
  --muted: #5E6B66;
  --line: #DCE3DF;
  --bg: #F2F5F3;
  --surface: #FFFFFF;

  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-primary: var(--campus);
  --bs-primary-rgb: 30, 82, 64;
  --bs-link-color: var(--campus);
  --bs-link-color-rgb: 30, 82, 64;
  --bs-link-hover-color: var(--campus-700);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
}

body { font-size: .9375rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.01em; }
.text-muted { color: var(--muted) !important; }
a { text-underline-offset: 3px; }

.btn-primary {
  --bs-btn-bg: var(--campus); --bs-btn-border-color: var(--campus);
  --bs-btn-hover-bg: var(--campus-700); --bs-btn-hover-border-color: var(--campus-700);
  --bs-btn-active-bg: var(--campus-700); --bs-btn-active-border-color: var(--campus-700);
  --bs-btn-disabled-bg: var(--campus); --bs-btn-disabled-border-color: var(--campus);
}
.btn-outline-primary {
  --bs-btn-color: var(--campus); --bs-btn-border-color: var(--campus);
  --bs-btn-hover-bg: var(--campus); --bs-btn-hover-border-color: var(--campus);
  --bs-btn-active-bg: var(--campus-700);
}
.btn { font-weight: 600; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--campus); box-shadow: 0 0 0 .2rem rgba(30, 82, 64, .18);
}
.form-check-input:checked { background-color: var(--campus); border-color: var(--campus); }
.form-label { font-weight: 600; font-size: .875rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Kerangka aplikasi ---------- */
.app { display: flex; min-height: 100vh; }
@media (min-width: 992px) {
  /* latar sidebar tetap penuh walau halaman panjang */
  .app { background: linear-gradient(to right, var(--campus-700) 260px, transparent 260px); }
}
.sidebar { --bs-offcanvas-width: 272px; }
.sidebar-inner {
  background: var(--campus-700); color: #DCE8E2; width: 100%;
  display: flex; flex-direction: column; min-height: 100%; padding: 1.25rem .9rem;
}
@media (min-width: 992px) {
  .sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; }
  .sidebar-inner { height: 100vh; overflow-y: auto; }
}
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; padding: .25rem .5rem 1.25rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--gold); color: var(--campus-700);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: .75rem; color: #9FBDB0; }

.nav-section { font-size: .75rem; color: #8FB0A2; padding: 1rem .75rem .35rem; font-weight: 600; }
.side-link {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 8px;
  color: #DCE8E2; text-decoration: none; font-weight: 500;
}
.side-link i { font-size: 1.1rem; opacity: .85; }
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-link.active { background: rgba(217, 162, 27, .16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }

.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: .65rem; padding: .9rem .5rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--campus-50); color: var(--campus); font-weight: 700; font-size: .8rem;
}
.sidebar-user .avatar { background: rgba(255, 255, 255, .12); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: .75rem; padding: .9rem 1.5rem;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020;
}
.page-title { font-size: 1.15rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 1.5rem; max-width: 1240px; width: 100%; }
@media (max-width: 575.98px) { .content { padding: 1rem; } .topbar { padding: .75rem 1rem; } }

/* ---------- Komponen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1rem; margin: 0; }
.panel-body { padding: 1.25rem; }
.panel .table { margin: 0; --bs-table-bg: var(--surface); }
.pagination {
  --bs-pagination-color: var(--campus); --bs-pagination-hover-color: var(--campus-700);
  --bs-pagination-active-bg: var(--campus); --bs-pagination-active-border-color: var(--campus);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(30, 82, 64, .18);
}
.join-form { display: flex; gap: .5rem; align-items: flex-start; width: 100%; }
.code-input { text-transform: uppercase; letter-spacing: .08em; }
.code-input::placeholder { text-transform: none; letter-spacing: normal; }
@media (min-width: 576px) { .join-form { width: auto; } .join-form .code-input { width: 200px; } }
.table > :not(caption) > * > * { padding: .7rem 1rem; }
.table thead th { font-size: .8rem; color: var(--muted); font-weight: 600; background: #F7F9F8; }

.stat { padding: 1.1rem 1.25rem; }
.stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: .35rem; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; color: #A9B8B1; }

.list-row { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .icon {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--campus-50); color: var(--campus); font-size: 1.1rem;
}
.list-row .icon.gold { background: var(--gold-50); color: #8A6407; }

.badge-soft { font-weight: 600; padding: .35em .6em; border-radius: 6px; font-size: .75rem; }
.badge-ok { background: var(--campus-50); color: var(--campus); }
.badge-warn { background: var(--gold-50); color: #7A5806; }
.badge-late { background: #FBE9E7; color: #A3322A; }
.badge-idle { background: #EEF1F0; color: var(--muted); }

/* ---------- Mata kuliah ---------- */
.course-card { display: block; text-decoration: none; color: inherit; height: 100%; overflow: hidden; transition: border-color .15s; }
.course-card:hover { border-color: var(--course, var(--campus)); color: inherit; }
.course-band { background: var(--course, var(--campus)); color: #fff; padding: 1rem 1.25rem 1.1rem; }
.course-code { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
.course-band .meta { font-size: .8rem; opacity: .85; margin-top: .35rem; }
.course-card h3 { font-size: 1rem; margin: 0 0 .25rem; }

.course-hero {
  background: var(--course, var(--campus)); color: #fff; border-radius: 14px; padding: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-end; justify-content: space-between;
}
.course-hero .course-code { font-size: 2.6rem; }
.course-hero h2 { font-size: 1.35rem; margin: .5rem 0 .35rem; }
.course-hero .facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .875rem; opacity: .9; }
.join-code {
  background: rgba(0, 0, 0, .18); border-radius: 10px; padding: .75rem 1rem; text-align: center; min-width: 150px;
}
.join-code small { display: block; font-size: .75rem; opacity: .85; }
.join-code strong { font-size: 1.5rem; letter-spacing: .18em; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 1.5rem 0 1.25rem; overflow-x: auto; }
.tabs a {
  padding: .7rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--course, var(--campus)); }

.meeting { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; margin-bottom: 1rem; }
.meeting-no { text-align: center; padding-top: .9rem; }
.meeting-no span { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.meeting-no strong { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--course, var(--campus)); }
@media (max-width: 575.98px) { .meeting { grid-template-columns: 1fr; gap: .25rem; } .meeting-no { text-align: left; padding: 0; } .meeting-no span, .meeting-no strong { display: inline; font-size: .9rem; } }

.prose { white-space: normal; line-height: 1.65; max-width: 75ch; }
.deadline-box { border-left: 4px solid var(--gold); background: var(--gold-50); padding: .9rem 1rem; border-radius: 0 8px 8px 0; }
.deadline-box.closed { border-color: #C0473E; background: #FBE9E7; }

.grade-big { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--campus); font-variant-numeric: tabular-nums; }
.grade-input { width: 92px; }
.table-grades td, .table-grades th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-grades .sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* ---------- Halaman login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: var(--campus-700); color: #DCE8E2; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px);
}
.auth-side h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; max-width: 14ch; }
.auth-side p { max-width: 42ch; color: #B8D0C5; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--surface); }
.auth-form .inner { width: 100%; max-width: 380px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Progres ---------- */
.progress-thin { height: 6px; background: #E3EAE6; border-radius: 99px; overflow: hidden; }
.progress-thin > span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.course-band .progress-thin { background: rgba(255, 255, 255, .22); }
.learn-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.1rem 1.25rem; }
.learn-card .grow { flex: 1 1 260px; }

/* ---------- Pemutar materi (halaman belajar) ---------- */
.learn { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 1199.98px) { .learn { grid-template-columns: 1fr; } }
.stage { background: #0E1512; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.stage iframe, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage.doc { aspect-ratio: auto; height: min(78vh, 900px); background: #4A4F52; }
.stage.image { aspect-ratio: auto; background: #0E1512; display: grid; place-items: center; padding: 1rem; }
.stage.image img { max-width: 100%; max-height: 75vh; }
.stage-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; text-align: center; color: #CFE0D8; padding: 2rem; }
.stage-empty i { font-size: 3rem; color: var(--gold); }
.lesson-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; }
.lesson-bar .pos { color: var(--muted); font-size: .85rem; margin-right: auto; }
.btn-done { border: 1.5px solid var(--campus); color: var(--campus); background: transparent; }
.btn-done:hover { background: var(--campus-50); color: var(--campus); }
.btn-done.is-done { background: var(--campus); color: #fff; }
.lesson-list { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden; }
.lesson-list .scroll { overflow-y: auto; }
@media (max-width: 1199.98px) { .lesson-list { position: static; max-height: none; } }
.lesson-group { padding: .55rem 1rem; font-size: .78rem; font-weight: 700; color: var(--muted); background: #F7F9F8; border-bottom: 1px solid var(--line); }
.lesson-item { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 1rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.lesson-item:hover { background: #F7F9F8; color: var(--ink); }
.lesson-item.current { background: var(--campus-50); box-shadow: inset 3px 0 0 var(--campus); }
.lesson-item .title { font-size: .875rem; font-weight: 600; line-height: 1.35; }
.lesson-meta { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B8C6BF; flex-shrink: 0; display: grid; place-items: center; font-size: .7rem; color: #fff; margin-top: 1px; }
.check.done { background: var(--campus); border-color: var(--campus); }
.thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; object-fit: cover; background: #1B2823; flex-shrink: 0; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb i { position: absolute; font-size: 1.4rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* ---------- Kuis: mode ujian ---------- */
.exam-body { background: var(--bg); min-height: 100vh; }
.exam-head {
  position: sticky; top: 0; z-index: 1030; background: var(--campus-700); color: #fff;
  display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem;
}
.exam-head .title { flex: 1; min-width: 0; line-height: 1.2; }
.exam-head .title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-head .title small { color: #A9C5B8; }
.timer {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.15rem; background: rgba(255, 255, 255, .12);
  padding: .35rem .8rem; border-radius: 8px; display: flex; gap: .45rem; align-items: center; white-space: nowrap;
}
.timer.low { background: #C0473E; }
.save-state { font-size: .75rem; color: #A9C5B8; white-space: nowrap; }
.exam { max-width: 1180px; margin: 0 auto; padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.5rem; align-items: start; }
@media (max-width: 991.98px) { .exam { grid-template-columns: 1fr; padding: 1rem; } }
.q-card { padding: 1.5rem; }
.q-no { font-size: .85rem; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.q-text { font-size: 1.08rem; line-height: 1.7; margin: .6rem 0 1.25rem; max-width: 72ch; }
.q-img { max-width: 100%; max-height: 340px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 1.25rem; display: block; }
.opt {
  display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 1rem; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; margin-bottom: .6rem; background: var(--surface); transition: border-color .12s, background-color .12s;
}
.opt:hover { border-color: #9DB5AA; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-letter {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #B8C6BF; display: grid; place-items: center;
  font-weight: 700; flex-shrink: 0; font-size: .85rem;
}
.opt-text { padding-top: .2rem; line-height: 1.5; }
.opt:has(input:checked) { border-color: var(--campus); background: var(--campus-50); }
.opt input:checked + .opt-letter { background: var(--campus); border-color: var(--campus); color: #fff; }
.opt input:focus-visible + .opt-letter { outline: 2px solid var(--gold); outline-offset: 2px; }
.q-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.doubt-toggle { margin-right: auto; display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; padding: .4rem .75rem; border-radius: 8px; border: 1.5px solid var(--line); }
.doubt-toggle:has(input:checked) { border-color: var(--gold); background: var(--gold-50); }
.exam-nav { position: sticky; top: 76px; }
@media (max-width: 991.98px) { .exam-nav { position: static; } }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.nav-num {
  aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface);
  font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--ink);
}
.nav-num.answered { background: var(--campus); border-color: var(--campus); color: #fff; }
.nav-num.doubt { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.nav-num.current { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .75rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; border: 1.5px solid var(--line); }
.legend .l-ans::before { background: var(--campus); border-color: var(--campus); }
.legend .l-doubt::before { background: var(--gold); border-color: var(--gold); }

/* ---------- Kuis: hasil ---------- */
.score-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding: 1.5rem; }
.score-big { font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--campus); font-variant-numeric: tabular-nums; }
.score-facts { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.score-facts strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.score-facts span { font-size: .8rem; color: var(--muted); }
.review-opt { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .85rem; border-radius: 8px; border: 1px solid var(--line); margin-bottom: .4rem; }
.review-opt.correct { border-color: #9BC7B1; background: var(--campus-50); }
.review-opt.wrong { border-color: #E8B4AE; background: #FBE9E7; }
.review-opt .opt-letter { width: 26px; height: 26px; font-size: .8rem; }
.review-opt.correct .opt-letter { background: var(--campus); border-color: var(--campus); color: #fff; }
.review-opt.wrong .opt-letter { background: #C0473E; border-color: #C0473E; color: #fff; }
.explain { background: var(--gold-50); border-radius: 8px; padding: .75rem 1rem; font-size: .9rem; margin-top: .75rem; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 56px; gap: .75rem; align-items: center; padding: .55rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .875rem; }
.bar-row:last-child { border-bottom: 0; }
.bar { height: 8px; background: #E3EAE6; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--campus); }
.bar span.hard { background: #C0473E; }
.q-preview .opt-letter { width: 24px; height: 24px; font-size: .75rem; }
.q-preview .is-key .opt-letter { background: var(--campus); border-color: var(--campus); color: #fff; }
.q-preview .is-key { font-weight: 600; }

/* Teks soal & pilihan: pertahankan baris baru dan indentasi (potongan kode) */
.keep-ws { white-space: pre-wrap; overflow-wrap: anywhere; }
.modal { --bs-modal-bg: var(--surface); }
.dropdown-menu { --bs-dropdown-bg: var(--surface); }
.nav-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
@media (max-width: 575.98px) {
  .doubt-toggle { flex-basis: 100%; margin-right: 0; justify-content: center; }
  .q-foot .btn { flex: 1; }
  .q-card { padding: 1.1rem; }
}

/* ---------- Jenis evaluasi, tipe soal, nilai ---------- */
.badge-exam { background: #2B2F3A; color: #fff; }
.tipe-chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: .15em .55em; border-radius: 99px; background: #EEF1F0; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); margin: -.5rem 0 1rem; }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: .5rem; align-items: center; margin-bottom: .6rem; }
.pair-row .arrow { text-align: center; color: var(--muted); }
.pair-left { padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #F7F9F8; font-weight: 500; }
@media (max-width: 575.98px) { .pair-row { grid-template-columns: 1fr; } .pair-row .arrow { display: none; } }
.essay-input { min-height: 220px; line-height: 1.6; }
.exam-warning { background: #2B2F3A; color: #E8EAEE; font-size: .82rem; padding: .45rem 1.25rem; display: flex; gap: .5rem; align-items: center; }
.grade-letter { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 .5rem; border-radius: 7px; font-weight: 800; background: var(--campus-50); color: var(--campus); }
.grade-letter.low { background: #FBE9E7; color: #A3322A; }
.grade-letter.mid { background: var(--gold-50); color: #7A5806; }
.weight-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.weight-chips span { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .7rem; font-size: .85rem; }
.weight-chips strong { font-variant-numeric: tabular-nums; }
.manual-mark { font-size: .65rem; vertical-align: super; color: #7A5806; font-weight: 700; margin-left: 1px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg a { padding: .4rem .9rem; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a.active { background: var(--campus); color: #fff; }
.essay-answer { background: #F7F9F8; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; line-height: 1.65; }
.tipe-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.tipe-picker label { border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .75rem; cursor: pointer; font-size: .875rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; background: var(--surface); }
.tipe-picker label:has(input:checked) { border-color: var(--campus); background: var(--campus-50); color: var(--campus); }
.tipe-picker input { position: absolute; opacity: 0; pointer-events: none; }
.tipe-picker label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg label { cursor: pointer; }
.seg label span { color: var(--muted); }
.seg label:has(input:checked) span { background: var(--campus); color: #fff; }
.seg label:has(input:focus-visible) span { outline: 2px solid var(--gold); outline-offset: -2px; }
.form-control, .form-select { background-color: var(--surface); }
.form-control:disabled, .form-select:disabled { background-color: #EEF1F0; }
.table-grades thead .sticky-col { background: #F7F9F8; }
