:root {
  --aims-maroon: #8d111c;
  --aims-maroon-dark: #5d0911;
  --aims-maroon-soft: #f7e8ea;
  --ink: #18191f;
  --muted: #65727f;
  --line: #e6e8ec;
  --panel: #ffffff;
  --paper: #f7f8fa;
  --teal: #0f8b8d;
  --teal-soft: #e2f5f2;
  --gold: #c7942f;
  --gold-soft: #fff4d9;
  --green: #23845f;
  --green-soft: #e7f6ed;
  --blue: #315f9c;
  --blue-soft: #e7effd;
  --danger: #be3144;
  --danger-soft: #fde8ea;
  --shadow: 0 18px 50px rgba(24, 25, 31, 0.08);
  --radius: 8px;
  --sidebar: 284px;
  --mobile-nav: 74px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --aims-maroon: #a31826;
  --aims-maroon-dark: #710c16;
  --aims-maroon-soft: rgba(233, 75, 91, 0.15);
  --ink: #f4f7fb;
  --muted: #aeb8c6;
  --line: #303741;
  --panel: #191d24;
  --paper: #101319;
  --teal-soft: rgba(24, 166, 160, 0.16);
  --gold-soft: rgba(227, 178, 75, 0.16);
  --green-soft: rgba(70, 187, 134, 0.16);
  --blue-soft: rgba(95, 145, 219, 0.18);
  --danger-soft: rgba(232, 82, 103, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(141, 17, 28, 0.92), rgba(93, 9, 17, 0.98)),
    var(--aims-maroon);
  color: #fff;
  overflow: hidden;
}

.brand-panel {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.logo-lockup {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.logo-lockup img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
}

.brand-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.16;
  font-weight: 850;
}

.assistant-pulse {
  margin-top: 18px;
  padding: 12px;
  display: grid;
  gap: 9px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pulse-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

.pulse-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.45;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #54e3b2;
  box-shadow: 0 0 0 6px rgba(84, 227, 178, 0.16);
}

.nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(8px, 1.5vh, 14px) 10px;
  display: grid;
  align-content: start;
  gap: clamp(3px, 0.7vh, 5px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.nav::-webkit-scrollbar {
  width: 7px;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.nav-button {
  width: 100%;
  min-height: clamp(38px, 5.7vh, 46px);
  padding: clamp(8px, 1.25vh, 11px) 12px;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.77);
  background: transparent;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.15;
}

.nav-button span:not(.count) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.nav-button .count {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.role-card {
  flex: 0 0 auto;
  margin: 0 14px 16px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

.role-card label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.role-card select {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #18191f;
  font-weight: 560;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.account-card {
  display: grid;
  gap: 8px;
}

.account-card strong,
.account-card small {
  display: block;
  min-width: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.account-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.account-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.account-card .button {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card,
.main,
.view,
.mission-card,
.card-body {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 250, 0.9);
  backdrop-filter: blur(16px);
}

.page-title h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.search {
  position: relative;
  min-width: 280px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px 12px 11px 40px;
  color: var(--ink);
  outline: 0;
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.main {
  padding: 22px 24px 32px;
}

.view {
  display: grid;
  gap: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 16px 16px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.mission-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(93, 9, 17, 0.96), rgba(141, 17, 28, 0.86)),
    var(--aims-maroon);
}

.mission-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 66%);
  pointer-events: none;
}

.mission-card .card-body {
  position: relative;
  z-index: 1;
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.mission-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.mission-card h2 {
  margin: 13px 0 8px;
  max-width: 730px;
  font-size: clamp(27px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.mission-card p {
  max-width: 730px;
  margin: 0;
  color: rgba(255, 255, 255, 0.81);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-actions {
  margin-top: 14px;
}

.muted-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.kpi-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kpi-value {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.kpi-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cfa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(93, 9, 17, 0.97), rgba(49, 95, 156, 0.82)),
    var(--aims-maroon);
  box-shadow: var(--shadow);
}

.cfa-hero h2 {
  max-width: 780px;
  margin: 13px 0 8px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.cfa-hero p {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.cfa-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.call-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.call-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 248px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.call-card.featured {
  border-color: rgba(35, 132, 95, 0.42);
  box-shadow:
    inset 4px 0 0 var(--green),
    var(--shadow);
}

.call-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.call-status-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.call-code {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.call-card h3 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.18;
}

.call-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.call-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.call-card-actions .button {
  flex: 1 1 138px;
}

.cfa-flow {
  display: grid;
  gap: 10px;
}

.flow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-step span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--aims-maroon);
  font-size: 12px;
  font-weight: 900;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.prompt-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--aims-maroon);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
}

.review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 139, 141, 0.95), rgba(93, 9, 17, 0.96)),
    var(--teal);
  box-shadow: var(--shadow);
}

.review-hero h2 {
  max-width: 780px;
  margin: 13px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.02;
}

.review-hero p {
  max-width: 820px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.review-session-card {
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.review-session-card h3 {
  margin: 0;
  font-size: 20px;
}

.review-session-card p {
  margin: 0;
  font-size: 13px;
}

.review-error {
  width: fit-content;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(190, 49, 68, 0.9);
  font-weight: 800;
}

.review-status {
  width: fit-content;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--tf-ink);
  background: #f0eee8;
  border: 1px solid var(--tf-line);
  font-weight: 800;
}

.review-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.funnel-step {
  min-height: 112px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  box-shadow: var(--shadow);
}

.funnel-step.active {
  border-color: rgba(141, 17, 28, 0.45);
  box-shadow:
    inset 4px 0 0 var(--aims-maroon),
    var(--shadow);
}

.funnel-step strong {
  font-size: 14px;
  line-height: 1.2;
}

.funnel-step span,
.funnel-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.review-coverage-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.coverage-cell {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
}

.coverage-cell small {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  opacity: 0.86;
}

.coverage-cell.lecture {
  background: var(--green);
}

.coverage-cell.tutor {
  background: var(--gold);
}

.coverage-cell.gap {
  background: var(--danger);
}

.gender-counter {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 156px;
}

.gender-counter strong {
  font-size: 48px;
  line-height: 1;
  color: var(--aims-maroon);
}

.gender-counter p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tf-review-grid {
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.35fr);
}

.applicant-review-list {
  display: grid;
  gap: 10px;
  max-height: 72vh;
  overflow: auto;
}

.tf-applicant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, 0.24fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tf-applicant-row.active {
  border-color: rgba(15, 139, 141, 0.5);
  box-shadow: inset 4px 0 0 var(--teal);
}

.tf-applicant-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.tf-applicant-main strong,
.tf-applicant-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-applicant-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.tf-score-strip {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  gap: 6px;
}

.tf-score-strip span {
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.tf-score-strip b {
  font-size: 15px;
  line-height: 1;
}

.tf-score-strip small {
  margin-top: 3px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

.stage-select {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: #fff;
  color: var(--ink);
}

.tf-review-detail {
  min-width: 0;
}

.review-tabs {
  margin-bottom: 14px;
}

.review-detail-stack {
  display: grid;
  gap: 14px;
}

.review-score-editor {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.review-score-editor .full {
  grid-column: 1 / -1;
}

.weighted-preview {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.weighted-preview span {
  color: var(--green);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.weighted-preview small {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.review-section-title {
  margin: 0 0 8px;
  font-size: 15px;
}

.ranked-fit-list,
.component-matrix,
.application-answer-list {
  display: grid;
  gap: 8px;
}

.ranked-fit,
.component-row,
.application-answer-list > div,
.review-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px;
}

.ranked-fit p,
.application-answer-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.component-matrix {
  max-height: 360px;
  overflow: auto;
}

.component-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.28fr);
  gap: 10px;
  align-items: center;
}

.component-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.research-bars {
  display: grid;
  gap: 9px;
}

.research-bar {
  position: relative;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}

.research-bar b {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--teal);
}

.research-bar small {
  color: var(--muted);
  font-weight: 900;
}

.application-answer-list b,
.review-note h4 {
  font-size: 13px;
}

.review-note h4 span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.review-note textarea {
  width: 100%;
  min-height: 104px;
  margin-top: 8px;
}

.review-note.withdrawn {
  opacity: 0.62;
  background: #f6f2f2;
}

.review-login-card {
  max-width: 760px;
}

@media (max-width: 1180px) {
  .review-hero,
  .review-coverage-grid,
  .tf-review-grid {
    grid-template-columns: 1fr;
  }

  .review-funnel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-score-editor,
  .review-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-applicant-row {
    grid-template-columns: 1fr;
  }

  .tf-score-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .review-hero {
    padding: 16px;
  }

  .review-hero h2 {
    font-size: 24px;
    line-height: 1.05;
  }

  .review-funnel,
  .review-score-editor,
  .review-summary-grid,
  .component-row,
  .research-bar {
    grid-template-columns: 1fr;
  }

  .applicant-review-list,
  .component-matrix {
    max-height: none;
  }
}

.tf-review-mock {
  --tf-maroon: #800000;
  --tf-navy: #0c1940;
  --tf-paper: #fbfaf7;
  --tf-line: #ded9cf;
  --tf-ink: #1b1f2a;
  --tf-muted: #6e6a62;
  --tf-gold: #b08c3a;
  --tf-ok: #2f6b4f;
  --tf-warn: #9a5b12;
  --tf-bad: #a33131;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--tf-line);
  border-radius: 2px;
  background: var(--tf-paper);
  color: var(--tf-ink);
  font-family: "Myriad Pro", "Segoe UI", Frutiger, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: var(--shadow);
}

.tf-review-mock button,
.tf-review-mock input,
.tf-review-mock select,
.tf-review-mock textarea {
  font: inherit;
  border-radius: 2px;
}

.tf-review-mock button {
  min-height: 0;
  padding: 6px 12px;
  border: 1px solid var(--tf-navy);
  background: #fff;
  color: var(--tf-navy);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.tf-review-mock button:hover {
  background: var(--tf-navy);
  color: #fff;
}

.tf-review-mock button.primary,
.tf-review-mock .primary {
  border-color: var(--tf-maroon);
  background: var(--tf-maroon);
  color: #fff;
}

.tf-review-mock button.primary:hover,
.tf-review-mock .primary:hover {
  background: #660000;
}

.tf-review-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 26px;
  border-bottom: 4px solid var(--tf-maroon);
  background: var(--tf-navy);
  color: #fff;
}

.tf-review-masthead h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.tf-review-sub {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  opacity: 0.78;
}

.tf-gcount {
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.tf-glabel {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.75;
}

.tf-gcount b {
  font-size: 17px;
}

.tf-gbar {
  width: 170px;
  height: 6px;
  margin-top: 5px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.tf-gbar i {
  display: block;
  height: 100%;
  background: var(--tf-gold);
}

.tf-review-note {
  padding: 9px 26px;
  border-bottom: 1px solid var(--tf-line);
  background: #f2ece4;
  color: var(--tf-muted);
  font-size: 12px;
}

.tf-funnel {
  display: flex;
  overflow-x: auto;
  padding: 0 26px;
  border-bottom: 1px solid var(--tf-line);
  background: #fff;
}

.tf-stage {
  position: relative;
  flex: 1 1 0;
  min-width: 146px;
  display: block;
  padding: 14px 13px 12px;
  border: 0;
  border-right: 1px solid var(--tf-line);
  border-radius: 0;
  background: #fff;
  color: var(--tf-ink);
  text-align: left;
}

.tf-stage:last-child {
  border-right: 0;
}

.tf-stage:hover {
  background: #f5f2ec;
  color: var(--tf-ink);
}

.tf-stage.active {
  background: #f2ece4;
}

.tf-stage.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--tf-maroon);
}

.tf-stage-name {
  display: block;
  color: var(--tf-muted);
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.tf-stage-count {
  display: block;
  color: var(--tf-navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.tf-stage-percent {
  display: block;
  color: var(--tf-maroon);
  font-size: 11.5px;
  font-weight: 600;
}

.tf-stage-bar {
  display: block;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: #ede8e0;
}

.tf-stage-bar i {
  display: block;
  height: 100%;
  background: var(--tf-maroon);
}

.tf-review-toolbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px 26px;
  border-bottom: 1px solid var(--tf-line);
  background: var(--tf-paper);
}

.tf-review-toolbar input,
.tf-review-toolbar select,
.tf-overrides input,
.tf-overrides select {
  border: 1px solid var(--tf-line);
  background: #fff;
  color: var(--tf-ink);
  padding: 6px 9px;
  font-size: 14px;
}

.tf-review-toolbar input {
  min-width: 210px;
}

.tf-reviewer {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tf-muted);
  font-size: 13px;
}

.tf-review-main {
  max-width: 1220px;
  padding: 18px 26px 70px;
}

.tf-cov {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--tf-line);
  border-top: 3px solid var(--tf-navy);
  background: #fff;
}

.tf-cov h3 {
  margin: 0 0 3px;
  color: var(--tf-navy);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.tf-cov-summary {
  margin-bottom: 11px;
  color: var(--tf-muted);
  font-size: 12.5px;
}

.tf-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 5px;
}

.tf-coverage-cell {
  border: 1px solid var(--tf-line);
  padding: 6px 7px;
  background: #f7f5f1;
  font-size: 11px;
}

.tf-coverage-cell b {
  display: block;
  color: var(--tf-ink);
  font-size: 11.5px;
  letter-spacing: 0.4px;
}

.tf-coverage-cell small {
  display: block;
  color: var(--tf-muted);
  font-size: 11px;
}

.tf-coverage-cell.lecture {
  border-color: #a8c6b4;
  background: #e6efe9;
}

.tf-coverage-cell.tutor {
  border-color: #e0cb99;
  background: #faf2de;
}

.tf-coverage-cell.gap {
  border-color: #ddb3b3;
  background: #f8e7e7;
}

.tf-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 9px;
  color: var(--tf-muted);
  font-size: 11.5px;
}

.tf-sw {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border: 1px solid var(--tf-line);
  vertical-align: -1px;
}

.tf-sw.lecture {
  border-color: #a8c6b4;
  background: #e6efe9;
}

.tf-sw.tutor {
  border-color: #e0cb99;
  background: #faf2de;
}

.tf-sw.gap {
  border-color: #ddb3b3;
  background: #f8e7e7;
}

.tf-review-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.tf-review-list {
  display: grid;
  gap: 8px;
}

.tf-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 168px;
  gap: 14px;
  align-items: start;
  margin-bottom: 0;
  padding: 13px 15px;
  border: 1px solid var(--tf-line);
  border-left: 4px solid var(--tf-line);
  background: #fff;
}

.tf-row.active {
  outline: 2px solid rgba(128, 0, 0, 0.12);
}

.tf-row[data-s="shortlist"] {
  border-left-color: var(--tf-gold);
}

.tf-row[data-s="final"] {
  border-left-color: var(--tf-navy);
}

.tf-row[data-s="award"] {
  border-left-color: var(--tf-ok);
}

.tf-row[data-s="reject"] {
  border-left-color: var(--tf-bad);
  opacity: 0.72;
}

.tf-idtag {
  padding-top: 3px;
  color: var(--tf-muted);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.tf-name {
  color: var(--tf-navy);
  font-size: 16px;
  font-weight: 600;
}

.tf-ident {
  max-width: 660px;
  display: flex;
  gap: 0;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--tf-line);
  border-radius: 2px;
  background: #fcfbf8;
}

.tf-ident div {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 10px;
  border-right: 1px solid var(--tf-line);
}

.tf-ident div:last-child {
  flex: 2 1 auto;
  border-right: 0;
}

.tf-ident .k,
.tf-dual .k {
  display: block;
  color: var(--tf-muted);
  font-size: 9.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.tf-ident .v {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-ident .v.f {
  color: var(--tf-maroon);
}

.tf-ident .v.m {
  color: var(--tf-navy);
}

.tf-dual {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.tf-dual div {
  flex: 1;
  padding: 4px 7px;
  border: 1px solid var(--tf-line);
  background: #fcfbf8;
  text-align: center;
}

.tf-dual .weighted {
  background: #f2f4f9;
}

.tf-dual .v {
  font-size: 12.5px;
  font-weight: 600;
}

.tf-dual .Strong,
.tf-gate-rec.s {
  color: var(--tf-ok);
}

.tf-dual .Credible {
  color: var(--tf-navy);
}

.tf-dual .Thin,
.tf-gate-rec.r {
  color: var(--tf-warn);
}

.tf-dual .Notevidenced,
.tf-gate-rec.d {
  color: var(--tf-bad);
}

.tf-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.tf-chip {
  padding: 3px 8px;
  border: 1px solid var(--tf-line);
  background: #faf8f4;
  color: var(--tf-muted);
  font-size: 11px;
  letter-spacing: 0.4px;
}

.tf-chip.good {
  border-color: #bfd8cb;
  color: var(--tf-ok);
}

.tf-chip.flag {
  border-color: #e3cda8;
  color: var(--tf-warn);
}

.tf-chip.bad {
  border-color: #e0b9b9;
  color: var(--tf-bad);
}

.tf-chip.crs {
  border-color: #b9c2d6;
  background: #f2f4f9;
  color: var(--tf-navy);
  font-weight: 600;
}

.tf-chip.crs.bf {
  border-color: var(--tf-navy);
  background: var(--tf-navy);
  color: #fff;
}

.tf-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

.tf-rec {
  width: 100%;
  padding: 5px 9px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.tf-rec.s {
  border-color: var(--tf-ok);
  background: var(--tf-ok);
  color: #fff;
}

.tf-rec.p {
  border-color: #a8c6b4;
  background: #eff5f1;
  color: var(--tf-ok);
}

.tf-rec.r {
  border-color: #e0cb99;
  background: #fbf5e7;
  color: var(--tf-warn);
}

.tf-rec.d {
  border-color: var(--tf-bad);
  background: var(--tf-bad);
  color: #fff;
}

.tf-covnum {
  color: var(--tf-muted);
  font-size: 11.5px;
}

.tf-notecount {
  color: var(--tf-maroon);
  font-size: 12px;
  font-weight: 600;
}

.tf-review-mock .stage-select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--tf-line);
  background: #fff;
  color: var(--tf-ink);
  padding: 6px 8px;
  font-size: 12px;
}

.tf-drawer-card {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--tf-maroon);
  background: #fff;
  box-shadow: var(--shadow);
}

.tf-dhead {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tf-line);
  background: var(--tf-navy);
  color: #fff;
}

.tf-dhead h2 {
  margin: 0;
  font-size: 18px;
}

.tf-dmeta {
  margin-top: 3px;
  font-size: 12.5px;
  opacity: 0.82;
}

.tf-tabs {
  display: flex;
  border-bottom: 1px solid var(--tf-line);
  background: #f7f4ef;
}

.tf-tabs button {
  padding: 9px 15px;
  border: 0;
  border-right: 1px solid var(--tf-line);
  border-radius: 0;
  background: transparent;
  color: var(--tf-muted);
}

.tf-tabs button.on {
  background: #fff;
  color: var(--tf-maroon);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--tf-maroon);
}

.tf-stagepick {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 11px 20px;
  border-bottom: 1px solid var(--tf-line);
  background: #f7f4ef;
}

.tf-stagepick button.sel {
  border-color: var(--tf-maroon);
  background: var(--tf-maroon);
  color: #fff;
}

.tf-dbody {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.tf-eval-stack {
  display: grid;
  gap: 15px;
}

.tf-narr,
.tf-overrides,
.tf-gate,
.tf-topfit {
  padding: 13px 15px;
  border: 1px solid var(--tf-line);
  background: #fcfbf8;
}

.tf-narr {
  border-top: 3px solid var(--tf-gold);
}

.tf-narr h4,
.tf-gate h4 {
  margin: 0 0 7px;
  color: var(--tf-maroon);
  font-size: 10.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.tf-narr h5 {
  margin: 12px 0 4px;
  color: var(--tf-navy);
  font-size: 12.5px;
}

.tf-narr ul,
.tf-gate ul {
  margin: 0;
  padding-left: 17px;
  font-size: 13.5px;
}

.tf-narr li {
  margin-bottom: 4px;
}

.tf-disc {
  margin-top: 11px;
  padding-top: 8px;
  border-top: 1px solid var(--tf-line);
  color: var(--tf-muted);
  font-size: 11.5px;
}

.tf-rbars {
  display: grid;
  grid-template-columns: 150px 1fr 34px;
  gap: 7px;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12.5px;
}

.tf-rbars .t {
  height: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: #ede8e0;
}

.tf-rbars .t i {
  display: block;
  height: 100%;
  background: var(--tf-navy);
}

.tf-overrides {
  border-left: 3px solid var(--tf-gold);
  background: #fcfaf5;
}

.tf-ov-title {
  margin-bottom: 7px;
  color: var(--tf-navy);
  font-size: 12.5px;
  font-weight: 600;
}

.tf-ov-row {
  display: grid;
  grid-template-columns: 150px 78px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12.5px;
}

.tf-ov-row input[type="number"] {
  width: 72px;
  padding: 4px 6px;
}

.tf-ov-row.wide {
  grid-template-columns: 150px minmax(0, 1fr) 1px;
}

.tf-overrides > input[type="text"] {
  width: 100%;
  margin: 7px 0 8px;
  padding: 5px 7px;
  font-size: 13px;
}

.tf-overrides .was {
  color: var(--tf-muted);
  font-size: 11.5px;
}

.tf-gate {
  background: #fcfbf8;
}

.tf-gate-rec {
  font-size: 15px;
  font-weight: 600;
}

.tf-gate p {
  margin: 8px 0 0;
  color: var(--tf-muted);
  font-size: 12.5px;
}

.tf-topfit {
  border-left: 3px solid var(--tf-navy);
  background: #f7f9fc;
}

.tf-topfit .b {
  margin-bottom: 7px;
  color: var(--tf-navy);
  font-size: 12.5px;
  font-weight: 600;
}

.tf-unit {
  padding: 4px 0;
  border-bottom: 1px solid #e7ebf2;
  font-size: 12.5px;
}

.tf-unit b {
  color: var(--tf-navy);
}

.tf-unit span,
.tf-unit-note {
  color: var(--tf-muted);
  font-size: 11.5px;
}

.tf-crow {
  display: grid;
  grid-template-columns: 56px 1fr 122px;
  gap: 9px;
  align-items: start;
  padding: 7px 8px;
  border-bottom: 1px solid #efebe4;
  font-size: 13px;
}

.tf-crow code {
  color: var(--tf-muted);
  font-size: 11.5px;
}

.tf-ev {
  display: block;
  color: var(--tf-muted);
  font-size: 11.5px;
}

.tf-lv {
  padding: 4px 6px;
  border: 1px solid var(--tf-line);
  background: #fff;
  font-size: 11px;
}

.tf-lv.l {
  color: var(--tf-ok);
}

.tf-lv.t {
  color: var(--tf-warn);
}

.tf-lv.n {
  color: #a39c90;
}

.tf-notes {
  max-height: 28vh;
  overflow-y: auto;
  padding: 13px 20px;
  border-top: 1px solid var(--tf-line);
  background: var(--tf-paper);
}

.tf-note {
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 1px solid var(--tf-line);
  border-left: 3px solid var(--tf-gold);
  background: #fff;
}

.tf-note.withdrawn {
  opacity: 0.62;
}

.tf-note .who {
  color: var(--tf-navy);
  font-size: 12px;
  font-weight: 600;
}

.tf-note .when {
  margin-left: 6px;
  color: var(--tf-muted);
  font-size: 11px;
  font-weight: 400;
}

.tf-note textarea {
  width: 100%;
  min-height: 70px;
  margin-top: 6px;
  border: 1px solid var(--tf-line);
  padding: 7px;
  resize: vertical;
}

.tf-note-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 5px;
}

.tf-note-actions button {
  padding: 2px 7px;
  border-color: var(--tf-line);
  color: var(--tf-muted);
  font-size: 11px;
}

.tf-note .ed {
  color: var(--tf-warn);
  font-size: 10.5px;
  font-style: italic;
}

.tf-empty-note {
  padding: 12px;
  color: var(--tf-muted);
  text-align: center;
}

.tf-noteform {
  display: flex;
  gap: 8px;
  padding: 11px 20px;
  border-top: 1px solid var(--tf-line);
  background: #fff;
}

.tf-noteform textarea {
  flex: 1;
  min-height: 50px;
  border: 1px solid var(--tf-line);
  padding: 7px;
  resize: vertical;
}

.tf-review-mock .application-answer-list {
  gap: 0;
}

.tf-review-mock .application-answer-list > div {
  padding: 0 0 15px;
  border: 0;
  background: transparent;
}

.tf-review-mock .application-answer-list b {
  display: block;
  margin-bottom: 3px;
  color: var(--tf-maroon);
  font-size: 10.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.tf-review-mock .application-answer-list p {
  margin: 0;
  color: var(--tf-ink);
  font-size: 14px;
  white-space: pre-wrap;
}

.tf-review-empty {
  padding: 34px;
  background: #fff;
  color: var(--tf-muted);
  text-align: center;
}

.tf-login-card {
  max-width: 900px;
  padding: 24px;
  border: 1px solid var(--tf-line);
  border-left: 4px solid var(--tf-maroon);
  background: #fff;
  box-shadow: var(--shadow);
}

.tf-login-label {
  color: var(--tf-maroon);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.tf-login-card h2 {
  max-width: 720px;
  margin: 6px 0 18px;
  color: var(--tf-navy);
  font-size: 24px;
  line-height: 1.25;
}

.tf-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tf-login-grid label {
  display: grid;
  gap: 6px;
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 600;
}

.tf-login-grid input {
  width: 100%;
  border: 1px solid var(--tf-line);
  background: #fcfbf8;
  color: var(--tf-ink);
  padding: 10px 12px;
  font-size: 15px;
}

.tf-login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .tf-review-board {
    grid-template-columns: 1fr;
  }

  .tf-drawer-card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .tf-review-masthead,
  .tf-review-toolbar,
  .tf-review-main {
    padding-inline: 14px;
  }

  .tf-row {
    grid-template-columns: 1fr;
  }

  .tf-actions {
    flex-direction: row;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
  }

  .tf-ident,
  .tf-dual,
  .tf-noteform {
    flex-wrap: wrap;
  }

  .tf-rec,
  .tf-review-mock .stage-select {
    width: auto;
  }

  .tf-crow,
  .tf-ov-row,
  .tf-ov-row.wide,
  .tf-rbars,
  .tf-login-grid {
    grid-template-columns: 1fr;
  }
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-action {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px;
  text-align: left;
  display: grid;
  gap: 12px;
  align-content: start;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 17, 28, 0.3);
  box-shadow: 0 14px 34px rgba(24, 25, 31, 0.08);
}

.quick-action strong {
  display: block;
  line-height: 1.2;
}

.quick-action span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.icon-box {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: var(--aims-maroon);
  background: var(--aims-maroon-soft);
}

.icon-box.teal {
  color: var(--teal);
  background: var(--teal-soft);
}

.icon-box.gold {
  color: #865f0d;
  background: var(--gold-soft);
}

.icon-box.green {
  color: var(--green);
  background: var(--green-soft);
}

.icon-box.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-box.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.icon-box.gray {
  color: #4c5662;
  background: #eef0f3;
}

.button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--aims-maroon);
}

.button.primary:hover {
  background: var(--aims-maroon-dark);
}

.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.soft {
  color: var(--aims-maroon);
  background: var(--aims-maroon-soft);
}

.button.icon-only {
  width: 40px;
  padding: 0;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.theme-toggle {
  width: 40px;
  min-width: 40px;
  padding: 0;
  flex: 0 0 40px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tab {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.tab.active {
  color: #fff;
  background: var(--aims-maroon);
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  white-space: nowrap;
}

.badge.maroon,
.chip.maroon {
  color: var(--aims-maroon);
  background: var(--aims-maroon-soft);
}

.badge.teal,
.chip.teal {
  color: var(--teal);
  background: var(--teal-soft);
}

.badge.gold,
.chip.gold {
  color: #805900;
  background: var(--gold-soft);
}

.badge.green,
.chip.green {
  color: var(--green);
  background: var(--green-soft);
}

.badge.blue,
.chip.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.danger,
.chip.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge.gray,
.chip.gray {
  color: #4c5662;
  background: #eef0f3;
}

.insight-list,
.agenda-list,
.people-list,
.course-list,
.timeline-list {
  display: grid;
  gap: 10px;
}

.insight,
.agenda-item,
.person-row,
.course-row,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.insight {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: start;
}

.insight h4,
.agenda-item h4,
.person-row h4,
.course-row h4,
.timeline-item h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.insight p,
.agenda-item p,
.person-row p,
.course-row p,
.timeline-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.43;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 18px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 10px;
}

.phase {
  position: relative;
  min-height: 84px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.phase.active {
  border-color: rgba(141, 17, 28, 0.42);
  box-shadow: inset 4px 0 0 var(--aims-maroon);
}

.phase-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.phase-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.phase-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.phase-courses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.week-grid {
  min-width: 640px;
  display: grid;
  grid-template-columns: 78px repeat(5, minmax(110px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.week-cell,
.week-head,
.time-cell {
  min-height: 82px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.week-head,
.time-cell {
  min-height: 42px;
  background: #fafbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.week-cell:nth-child(6n),
.week-head:nth-child(6n) {
  border-right: 0;
}

.session-card {
  min-height: 62px;
  padding: 8px;
  border-radius: 7px;
  color: #fff;
  display: grid;
  gap: 4px;
  align-content: start;
}

.session-card strong {
  font-size: 12px;
  line-height: 1.18;
}

.session-card span {
  font-size: 11px;
  opacity: 0.86;
  line-height: 1.25;
}

.session-card.skills {
  background: var(--blue);
}

.session-card.specialization {
  background: var(--aims-maroon);
}

.session-card.elective {
  background: var(--teal);
}

.session-card.professional {
  background: #895f0f;
}

.session-card.practical {
  background: var(--green);
}

.scroll-x {
  overflow-x: auto;
  padding-bottom: 2px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(24, 25, 31, 0.36);
  display: flex;
  justify-content: flex-end;
}

.drawer {
  width: min(540px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(24, 25, 31, 0.18);
}

.drawer-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.drawer-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.drawer-body {
  padding: 18px;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.drawer-footer {
  margin-top: auto;
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.profile-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--aims-maroon);
  font-weight: 900;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-box {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.meta-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-box strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.person-row,
.course-row,
.agenda-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.row-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff2;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--aims-maroon);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.assistant-stack {
  display: grid;
  gap: 12px;
}

.planner-hero,
.support-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: 18px;
  align-items: end;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(93, 9, 17, 0.96), rgba(15, 139, 141, 0.82)),
    var(--aims-maroon);
  box-shadow: var(--shadow);
}

.support-hero {
  background:
    linear-gradient(120deg, rgba(93, 9, 17, 0.97), rgba(49, 95, 156, 0.82)),
    var(--aims-maroon);
}

.groups-hero {
  background:
    linear-gradient(120deg, rgba(93, 9, 17, 0.97), rgba(35, 132, 95, 0.82)),
    var(--aims-maroon);
}

.planner-hero h2,
.support-hero h2 {
  max-width: 820px;
  margin: 12px 0 8px;
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.planner-hero p,
.support-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.planner-metrics,
.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.planner-board,
.appointment-list,
.availability-list,
.todo-list,
.support-list,
.group-list,
.invitation-list,
.student-directory {
  display: grid;
  gap: 12px;
}

.planner-card,
.appointment-card,
.todo-card,
.support-card,
.group-card,
.invitation-card,
.sync-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px;
}

.planner-card {
  display: grid;
  gap: 10px;
}

.planner-card-top,
.appointment-main,
.support-main,
.group-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.planner-card h4,
.appointment-card h4,
.todo-card h4,
.support-card h4,
.group-card h4,
.invitation-card h4,
.sync-panel h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.planner-card p,
.appointment-card p,
.todo-card p,
.support-card p,
.group-card p,
.invitation-card p,
.sync-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.planner-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.appointment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.todo-card,
.support-card,
.group-card,
.invitation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.todo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.invite-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.student-mini {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.student-mini strong,
.student-mini span,
.student-mini small {
  display: block;
}

.student-mini span,
.student-mini small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-heading {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.activity-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 7px;
  background: #f5f7f9;
}

.activity-row strong,
.activity-row span {
  display: block;
}

.activity-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.availability-preview {
  display: grid;
  gap: 10px;
}

.sync-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #fff, #fafbfc);
}

.priority {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.priority strong {
  display: block;
  font-size: 13px;
}

.priority span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.mobile-bottom-nav {
  display: none;
}

.empty {
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cfd4da;
  border-radius: var(--radius);
  background: #fff;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.2s ease-out;
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(141, 17, 28, 0.96), rgba(17, 24, 39, 0.94)),
    var(--aims-maroon);
}

.auth-panel {
  width: min(520px, 100%);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.auth-brand {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.auth-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--aims-maroon-soft);
  padding: 5px;
}

.auth-brand p,
.auth-copy p {
  margin: 0;
  color: var(--muted);
}

.auth-brand h1,
.auth-copy h2 {
  margin: 3px 0 0;
  color: var(--ink);
  line-height: 1.05;
}

.auth-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-copy p {
  line-height: 1.55;
}

.auth-form {
  grid-template-columns: 1fr;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.desktop-only {
  display: initial;
}

@media (max-height: 860px) and (min-width: 761px) {
  .brand-panel {
    padding: 16px 18px 12px;
  }

  .logo-lockup {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .logo-lockup img {
    width: 52px;
    height: 52px;
  }

  .assistant-pulse {
    margin-top: 12px;
    padding: 10px;
  }

  .pulse-copy {
    display: none;
  }

  .nav {
    padding-block: 8px;
  }

  .nav-button {
    min-height: 39px;
    padding-block: 8px;
  }

  .role-card {
    margin-bottom: 12px;
    padding: 10px;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .assistant-pulse {
    display: none;
  }

  .brand-panel {
    padding-bottom: 10px;
  }

  .nav-button {
    min-height: 37px;
    font-size: 14px;
  }

  .role-card label {
    display: none;
  }
}

@media (max-height: 660px) and (min-width: 761px) {
  .role-card {
    display: none;
  }

  .nav {
    padding-block: 7px;
  }

  .nav-button {
    min-height: 36px;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .sidebar {
    width: 96px;
  }

  .logo-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .logo-lockup img {
    width: 56px;
    height: 56px;
  }

  .brand-title,
  .brand-kicker,
  .assistant-pulse,
  .role-card label,
  .nav-button span,
  .nav-button .count {
    display: none;
  }

  .nav-button {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 12px 8px;
  }

  .role-card {
    margin: auto 10px 14px;
    padding: 8px;
  }

  .role-card select {
    padding: 8px 4px;
    font-size: 11px;
  }

  .hero-strip,
  .cfa-hero,
  .section-grid,
  .calendar-layout,
  .planner-hero,
  .support-hero {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  html,
  body,
  #app,
  .app-shell,
  .content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    min-height: 100vh;
    padding-bottom: var(--mobile-nav);
  }

  .topbar {
    position: static;
    padding: 16px;
    display: block;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .page-title h1 {
    font-size: 24px;
  }

  .page-title p {
    font-size: 13px;
  }

  .main {
    width: 100%;
    padding: 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .card {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .search {
    min-width: 0;
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .top-actions {
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 32px);
    margin-top: 14px;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .top-actions .search {
    grid-column: 1 / -1;
  }

  .button {
    min-width: 0;
    max-width: 100%;
  }

  .top-actions .button:not(.theme-toggle),
  .toolbar .button,
  .drawer-footer .button {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .top-actions .theme-toggle {
    width: 40px;
    max-width: 40px;
    justify-self: start;
  }

  .mission-card {
    min-height: 270px;
  }

  .mission-card .card-body {
    min-height: 270px;
    padding: 16px;
  }

  .mission-card h2 {
    width: 100%;
    max-width: 310px;
    font-size: 24px;
    line-height: 1.05;
  }

  .mission-card p {
    width: 100%;
    max-width: 310px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 310px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .kpi-grid,
  .cfa-metrics,
  .call-grid,
  .quick-grid,
  .form-grid,
  .meta-grid,
  .planner-metrics,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar > * {
    width: 100%;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
  }

  .tab {
    flex: 1 0 auto;
  }

  .phase {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .phase-courses {
    justify-content: flex-start;
  }

  .person-row,
  .course-row,
  .agenda-item,
  .insight,
  .appointment-card,
  .todo-card,
  .support-card,
  .group-card,
  .invitation-card,
  .sync-panel {
    grid-template-columns: 1fr;
  }

  .planner-hero,
  .support-hero,
  .cfa-hero {
    min-height: 300px;
    padding: 16px;
    align-items: start;
  }

  .planner-hero h2,
  .support-hero h2,
  .cfa-hero h2 {
    max-width: 310px;
    font-size: 24px;
    line-height: 1.05;
  }

  .planner-hero p,
  .support-hero p,
  .cfa-hero p {
    max-width: 310px;
    font-size: 14px;
  }

  .planner-card-actions,
  .todo-actions,
  .invite-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .drawer {
    width: 100vw;
  }

  .drawer-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: var(--mobile-nav);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100vw;
    overflow: hidden;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav button {
    min-width: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-bottom-nav button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav button.active {
    color: var(--aims-maroon);
  }

  .desktop-only {
    display: none;
  }
}

@media (max-width: 430px) {
  .card,
  .search,
  .top-actions,
  .top-actions .button {
    max-width: 358px;
  }
}

:root[data-theme="dark"] .topbar {
  background: rgba(16, 19, 25, 0.9);
}

:root[data-theme="dark"] .search input,
:root[data-theme="dark"] .kpi,
:root[data-theme="dark"] .quick-action,
:root[data-theme="dark"] .call-card,
:root[data-theme="dark"] .button,
:root[data-theme="dark"] .button.ghost,
:root[data-theme="dark"] .tabs,
:root[data-theme="dark"] .insight,
:root[data-theme="dark"] .agenda-item,
:root[data-theme="dark"] .person-row,
:root[data-theme="dark"] .course-row,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .funnel-step,
:root[data-theme="dark"] .tf-applicant-row,
:root[data-theme="dark"] .stage-select,
:root[data-theme="dark"] .ranked-fit,
:root[data-theme="dark"] .component-row,
:root[data-theme="dark"] .application-answer-list > div,
:root[data-theme="dark"] .review-note,
:root[data-theme="dark"] .flow-step,
:root[data-theme="dark"] .prompt-box,
:root[data-theme="dark"] .planner-card,
:root[data-theme="dark"] .appointment-card,
:root[data-theme="dark"] .todo-card,
:root[data-theme="dark"] .support-card,
:root[data-theme="dark"] .group-card,
:root[data-theme="dark"] .invitation-card,
:root[data-theme="dark"] .student-mini,
:root[data-theme="dark"] .check-card,
:root[data-theme="dark"] .sync-panel,
:root[data-theme="dark"] .phase,
:root[data-theme="dark"] .week-grid,
:root[data-theme="dark"] .week-cell,
:root[data-theme="dark"] .meta-box,
:root[data-theme="dark"] .priority,
:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .drawer {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .week-head,
:root[data-theme="dark"] .time-cell,
:root[data-theme="dark"] .drawer-footer {
  background: #141820;
  border-color: var(--line);
}

:root[data-theme="dark"] .button.primary {
  color: #fff;
  background: var(--aims-maroon);
}

:root[data-theme="dark"] .button.soft {
  color: #ffb9c1;
  background: rgba(233, 75, 91, 0.13);
}

:root[data-theme="dark"] .sync-panel {
  background: var(--panel);
}

:root[data-theme="dark"] .icon-box.gray {
  color: #c5cbd4;
  background: #2a3038;
}

:root[data-theme="dark"] .quick-action:hover {
  border-color: rgba(255, 172, 183, 0.36);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .progress {
  background: #2b313a;
}

:root[data-theme="dark"] .activity-row {
  background: #141820;
}

:root[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(25, 29, 36, 0.96);
}
