/* Shared student portal shell — sidebar, topbar, collapse */
:root {
  --paper: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #1b2130;
  --ink-2: #586173;
  --ink-3: #8b94a4;
  --line: #e8e6df;
  --line-2: #f0eee9;
  --brand: #4D3E77;
  --brand-2: #8067aa;
  --brand-soft: #EDE8F5;
  --success: #6B52A8;
  --success-soft: #EDE8F5;
  --warn: #d9901a;
  --warn-soft: #fbf1da;
  --danger: #dc4a40;
  --danger-soft: #fce9e7;
  --shadow-sm: 0 1px 2px rgba(27, 33, 48, .04), 0 1px 3px rgba(27, 33, 48, .05);
  --shadow-md: 0 4px 14px rgba(27, 33, 48, .06), 0 2px 6px rgba(27, 33, 48, .04);
  --shadow-lg: 0 18px 40px rgba(27, 33, 48, .10), 0 6px 14px rgba(27, 33, 48, .05);
  --r: 18px;
  --r-pill: 999px;
  --sans: 'Manrope', '-apple-system', "Segoe UI", sans-serif;
  --serif: 'Fraunces', 'Georgia', serif;
  --sidebar-w: 248px;
  --sidebar-collapsed-w: 72px;
}

body.student-portal-page {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

html:has(body.student-portal-page) {
  height: 100%;
  overflow: hidden;
}

body.student-portal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(77, 62, 119, .10), transparent 60%),
    radial-gradient(700px 420px at 12% 4%, rgba(91, 94, 240, .06), transparent 55%);
}

body.student-portal-page #layout-wrapper,
body.student-portal-page .vertical-menu,
body.student-portal-page #page-topbar { display: none !important; }

body.student-portal-page a { color: inherit; text-decoration: none; }
body.student-portal-page button { font-family: inherit; cursor: pointer; }

.portal-app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* SIDEBAR */
.portal-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  align-self: stretch;
  height: auto;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  z-index: 40;
  overflow: hidden;
}

@media (min-width: 921px) {
  .portal-sidebar {
    transition: width .28s ease, padding .28s ease;
  }
}

.portal-sidebar.collapsed {
  width: var(--sidebar-collapsed-w);
  padding: 20px 10px;
}

.portal-sidebar.collapsed .brand-name,
.portal-sidebar.collapsed .nav-label,
.portal-sidebar.collapsed .nav-text,
.portal-sidebar.collapsed .nav-sub,
.portal-sidebar.collapsed .upgrade p,
.portal-sidebar.collapsed .upgrade h4,
.portal-sidebar.collapsed #pwa-install-sidebar-link .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  display: none;
}

.portal-sidebar.collapsed .brand { justify-content: center; padding-bottom: 12px; }
.portal-sidebar.collapsed .nav-item { justify-content: center; padding: 10px; gap: 0; }
.portal-sidebar.collapsed .nav-item.active::before { left: -10px; }
.portal-sidebar.collapsed .upgrade { padding: 10px 8px; }
.portal-sidebar.collapsed .upgrade a {
  font-size: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-sidebar.collapsed .upgrade a::before {
  content: "↗";
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ink-2);
  margin-left: auto;
}
.portal-sidebar.collapsed .sidebar-brand-row {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.portal-sidebar.collapsed .sidebar-collapse-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin: 0 auto 8px;
  transform: rotate(180deg);
}
.portal-sidebar.collapsed .sidebar-collapse-btn svg {
  width: 12px;
  height: 12px;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 12px; flex: 1; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--brand-2) 0%, var(--brand) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(77, 62, 119, .35);
}
.brand-mark img { width: 28px; height: 28px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.1; transition: opacity .2s; }
.brand-name span { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); padding: 14px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); transition: all .16s ease; position: relative;
}
.nav-item i { width: 18px; height: 18px; flex-shrink: 0; font-size: 18px; text-align: center; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); }
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--brand); border-radius: 0 3px 3px 0;
}
/* Collapsible group: header is a button with a caret; sub-menu collapses by default */
.nav-group { display: flex; flex-direction: column; }
.nav-group-toggle { width: 100%; border: none; background: none; cursor: pointer; text-align: left; font-family: inherit; }
.nav-caret { margin-left: auto; font-size: 18px !important; width: auto !important; transition: transform .2s ease; opacity: .7; }
.nav-group.is-open > .nav-group-toggle .nav-caret { transform: rotate(180deg); }
.portal-sidebar.collapsed .nav-caret { display: none; }
.nav-group > .nav-sub {
  overflow: hidden;
  max-height: 0;
  margin: 0 0 0 30px;
  opacity: 0;
  transition: max-height .26s ease, opacity .2s ease, margin .26s ease;
}
.nav-group.is-open > .nav-sub { max-height: 320px; opacity: 1; margin: 2px 0 4px 30px; }
.nav-sub { margin: 2px 0 4px 30px; padding-left: 10px; border-left: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.nav-sub a { font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 7px 10px; border-radius: 8px; display: flex; align-items: center; gap: 9px; }
.nav-sub a i { width: 15px; font-size: 15px; }
.nav-sub a:hover { background: var(--surface-2); color: var(--ink); }
.nav-sub a.active { background: var(--brand-soft); color: var(--brand); }
.nav-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -4px;
  padding: 0 4px 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-2) var(--brand-soft);
}
.nav-scroll::-webkit-scrollbar { width: 8px; }
.nav-scroll::-webkit-scrollbar-track { background: var(--brand-soft); border-radius: 99px; }
.nav-scroll::-webkit-scrollbar-thumb {
  background: var(--brand-2);
  border-radius: 99px;
  border: 2px solid var(--brand-soft);
  min-height: 48px;
}
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); flex-shrink: 0; }

.upgrade {
  background: linear-gradient(160deg, #2D1F45 0%, #4D3E77 100%);
  border-radius: 14px; padding: 14px; color: #fff; position: relative; overflow: hidden;
}
.upgrade::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: rgba(128, 103, 170, .4); filter: blur(10px); }
.upgrade h4 { font-size: 13px; font-weight: 700; position: relative; color: #fff; margin: 0; }
.upgrade p { font-size: 11.5px; color: rgba(255, 255, 255, .85); margin: 3px 0 10px; position: relative; }
.upgrade a {
  background: #fff; color: #1b2130 !important; font-size: 12px; font-weight: 700;
  padding: 8px 12px; border-radius: 9px; width: 100%; position: relative;
  display: block; text-align: center; text-decoration: none;
  box-sizing: border-box; margin-top: 2px;
}
.upgrade a:hover { background: #f5f5f5; color: #1b2130 !important; }

#pwa-install-sidebar-link {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; margin-bottom: 4px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--brand); font-size: 12.5px; font-weight: 600;
}

/* TOPBAR */
.portal-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #c8c4bc var(--paper);
}
.portal-topbar {
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 245, 241, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 13px 26px; display: flex; align-items: center; gap: 16px;
}
.portal-main::-webkit-scrollbar { width: 10px; }
.portal-main::-webkit-scrollbar-track { background: var(--paper); }
.portal-main::-webkit-scrollbar-thumb {
  background: #d8d6cf;
  border-radius: 99px;
  border: 2px solid var(--paper);
}
.portal-main::-webkit-scrollbar-thumb:hover { background: #c3c1b8; }
.portal-hamburger {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  place-items: center;
}
.portal-topbar h1 { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; margin: 0; }
.portal-topbar h1 em { font-style: normal; color: var(--brand); }
.portal-top-spacer { flex: 1; }
.portal-search { flex: 1; max-width: 340px; position: relative; margin-left: 6px; }
.portal-search input {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 14px 9px 38px; font-size: 13px; color: var(--ink);
}
.portal-search input::placeholder { color: var(--ink-3); }
.portal-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.portal-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }

/* notifications — see notifications_panel.css */
.topbar-notif-wrap { position: relative; }
.topbar-notif-wrap .dropdown { position: relative; display: inline-block; }
.topbar-notif-wrap .dropdown-menu.show { display: block; }

.avatar-btn {
  display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
}
.avatar-btn span.nm { font-size: 13px; font-weight: 700; }
.avatar-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow-md); min-width: 140px; z-index: 50;
}
.avatar-dropdown.show { display: block; }
.avatar-dropdown a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--danger); }
.avatar-dropdown a:hover { background: var(--danger-soft); }

.portal-content {
  padding: 24px 26px 24px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.footer-asg {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 22px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  border-top: 1px solid var(--line);
}
.footer-asg b { color: var(--ink-2); font-weight: 700; }
.portal-legacy-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
}

/* Feedback wizard — don't stretch content area to full viewport */
body.student-portal-page.feedback-page .portal-legacy-content {
  flex: 0 1 auto;
}
.student-portal-page .page-title-box { display: none; }

/* Protect portal sidebar labels from legacy page CSS (e.g. student_analytics .nav-item span) */
body.student-portal-page .portal-sidebar:not(.collapsed) .nav-item .nav-text,
body.student-portal-page .portal-sidebar.open .nav-item .nav-text {
  display: inline;
  opacity: 1;
  width: auto;
  overflow: visible;
  white-space: nowrap;
}

body.student-portal-page .portal-sidebar:not(.collapsed) .nav-label,
body.student-portal-page .portal-sidebar.open .nav-label {
  display: block;
  opacity: 1;
  width: auto;
}

/* Beat assignments.css legacy rules that hide .nav-scroll scrollbars globally */
body.student-portal-page .portal-sidebar .nav-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.student-portal-page .portal-sidebar .nav-scroll::-webkit-scrollbar {
  width: 8px !important;
}

.portal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 35, .45);
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .26s ease, visibility .26s ease;
}
.portal-scrim.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Purple primary buttons — white text on purple */
.act-primary,
.student-portal-page .btn-primary:not(.btn-link) {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.act-primary svg,
.act-primary i,
.student-portal-page .btn-primary:not(.btn-link) svg,
.student-portal-page .btn-primary:not(.btn-link) i {
  color: #fff !important;
  stroke: #fff !important;
}
.act-submit { background: var(--danger) !important; color: #fff !important; border: none; }
.act-ghost { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

.act-btn {
  font-size: 11.5px; font-weight: 700; padding: 7px 12px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none;
}
.act-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.act-icon:hover { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.act-icon i { font-size: 16px; color: inherit; }

#feedback-gate-overlay {
  display: none !important; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 99999;
  align-items: center; justify-content: center;
}
#feedback-gate-overlay.visible { display: flex !important; }

@media (max-width: 920px) {
  body.student-portal-page.portal-nav-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body.student-portal-page.portal-nav-open .portal-main {
    overflow: hidden !important;
    z-index: 1;
  }

  .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(292px, 88vw) !important;
    max-width: 88vw;
    padding: 18px 14px !important;
    padding-top: max(18px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
    height: auto;
    z-index: 45;
    background: var(--surface);
    box-sizing: border-box;
    transform: translate3d(-105%, 0, 0);
    transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .portal-scrim.show {
    z-index: 800;
  }

  .portal-sidebar.open {
    transform: translate3d(0, 0, 0);
    box-shadow: var(--shadow-lg);
    z-index: 810;
  }

  /* Mobile drawer is always full — never use collapsed/icon-only mode */
  .portal-sidebar.collapsed {
    width: min(292px, 88vw) !important;
    padding: 18px 14px !important;
  }

  .portal-sidebar.collapsed .brand-name,
  .portal-sidebar.collapsed .nav-label,
  .portal-sidebar.collapsed .nav-text,
  .portal-sidebar.collapsed .nav-sub,
  .portal-sidebar.collapsed .upgrade p,
  .portal-sidebar.collapsed .upgrade h4,
  .portal-sidebar.collapsed #pwa-install-sidebar-link .nav-text {
    display: block;
    opacity: 1;
    width: auto;
    overflow: visible;
    white-space: normal;
  }

  .portal-sidebar.collapsed .brand {
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .portal-sidebar.collapsed .sidebar-brand-row {
    flex-direction: row;
    align-items: center;
  }

  .portal-sidebar.collapsed .nav-item {
    justify-content: flex-start;
    padding: 10px 12px;
    gap: 12px;
  }

  .portal-sidebar.collapsed .nav-item.active::before {
    left: -14px;
  }

  .portal-sidebar.collapsed .upgrade {
    padding: 14px;
  }

  .portal-sidebar.collapsed .upgrade a {
    font-size: 12px;
    padding: 7px 12px;
    display: block;
    text-align: center;
  }

  .portal-sidebar.collapsed .upgrade a::before {
    content: none;
  }

  .portal-sidebar .nav-item {
    min-height: 42px;
  }

  .portal-sidebar .nav-sub {
    margin: 2px 0 6px 22px;
    padding-left: 12px;
    border-left-width: 2px;
  }

  .portal-sidebar .nav-sub a {
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .portal-sidebar #pwa-install-sidebar-link {
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
  }

  .portal-sidebar .side-foot {
    padding-top: 12px;
    flex-shrink: 0;
  }

  body.student-portal-page .portal-sidebar .nav-item {
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }

  body.student-portal-page .portal-sidebar .nav-item .nav-text,
  body.student-portal-page .portal-sidebar .nav-sub .nav-text {
    display: inline !important;
    opacity: 1 !important;
    width: auto !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  body.student-portal-page .portal-sidebar .nav-scroll {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
  }

  body.student-portal-page .portal-sidebar .nav-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .portal-hamburger { display: grid; }
  .sidebar-collapse-btn { display: none; }

  .portal-topbar h1 {
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .avatar-btn span.nm { display: none; }
}

@media (max-width: 680px) {
  .portal-content { padding: 14px 12px 14px; }
  .portal-topbar { padding: 10px 12px; gap: 8px; }
  .portal-hamburger { width: 36px; height: 36px; }
  .portal-search { display: none; }
}

/* Mobile overflow — keep wide tables/charts inside the viewport */
@media (max-width: 760px) {
  body.student-portal-page .portal-legacy-content {
    overflow-x: clip;
    overflow-y: visible;
  }

  body.student-portal-page .portal-legacy-content > .toolbar {
    overflow: visible;
    position: relative;
  }

  body.student-portal-page .portal-legacy-content > .page-head,
  body.student-portal-page .portal-legacy-content > .subj-tabs,
  body.student-portal-page .portal-legacy-content > .kpi-row,
  body.student-portal-page .portal-legacy-content > .insight,
  body.student-portal-page .portal-legacy-content > .toolbar,
  body.student-portal-page .portal-legacy-content > .table-card,
  body.student-portal-page .portal-legacy-content > .subject-panel {
    max-width: 100%;
  }

  body.student-portal-page .portal-legacy-content img,
  body.student-portal-page .portal-legacy-content video {
    max-width: 100%;
    height: auto;
  }

  /* Do not force height:auto on embedded widgets (calendar, etc.) */
  body.student-portal-page .portal-legacy-content iframe:not([title="Assignment PDF preview"]) {
    max-width: 100%;
  }

  body.student-portal-page .portal-legacy-content .table-responsive,
  body.student-portal-page .portal-legacy-content .card-body > table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Active test alerts — shown across student portal when a test is live */
.student-active-test-alerts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 16px;
}

.student-active-test-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
}

.student-active-test-banner.is-available {
  background: linear-gradient(135deg, #fffdf5 0%, #fff6d6 100%);
  border-color: #f5e6a8;
}

.student-active-test-banner.is-in-progress {
  background: linear-gradient(135deg, #f8f5ff 0%, #ede8f5 100%);
  border-color: #d8cfe8;
}

.satb-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #fff;
}

.student-active-test-banner.is-available .satb-icon {
  background: linear-gradient(135deg, #d9901a 0%, #f0b429 100%);
}

.student-active-test-banner.is-in-progress .satb-icon {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.satb-body {
  flex: 1;
  min-width: 200px;
}

.satb-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.student-active-test-banner.is-available .satb-title {
  color: #8a5f00;
}

.student-active-test-banner.is-in-progress .satb-title {
  color: var(--brand);
}

.satb-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.satb-text strong {
  color: var(--ink);
  font-weight: 700;
}

.satb-subject {
  display: inline-block;
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .75);
  color: var(--brand);
  border: 1px solid var(--line);
  vertical-align: middle;
}

.satb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(77, 62, 119, .18);
}

.student-active-test-banner.is-available .satb-cta {
  background: #fcd208;
  color: #3c1348;
}

.student-active-test-banner.is-in-progress .satb-cta {
  background: var(--brand);
  color: #fff;
}

.satb-cta:hover {
  transform: translateY(-1px);
  color: inherit;
}

.student-active-test-banner.is-in-progress .satb-cta:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .satb-cta {
    width: 100%;
    justify-content: center;
  }
}
