:root {
  --bg: #EFF7FB;
  --bg-soft: #FFFCF5;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-soft: rgba(255, 255, 255, 0.58);
  --surface-mint: #effbf4;
  --text: #081C2D;
  --muted: #5D748A;
  --border: #CFE0EF;
  --border-strong: #B8D0E4;
  --accent: #1268D6;
  --accent-strong: #0B4FA8;
  --accent-soft: #EAF3FF;
  --highlight: #20C46B;
  --highlight-soft: #E9F9F0;
  --danger: #b63d2a;
  --shadow: 0 24px 60px rgba(8, 28, 45, 0.1);
  --shadow-soft: 0 16px 34px rgba(8, 28, 45, 0.07);
  --harbor-sticky-header-clearance: 120px;
  --harbor-sticky-panel-top: 132px;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Suggestion-first school picker */
.school-picker-page {
  background: transparent !important;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 760px;
  min-height: min(760px, calc(100dvh - 120px));
  padding: 0 !important;
  width: 100%;
}

.school-picker-backdrop {
  flex: 0 0 44px;
}

.school-picker-sheet {
  background: #ffffff;
  border-radius: 30px 30px 0 0;
  color: #101d38;
  flex: 1;
  min-height: 0;
  padding: 28px 36px 48px;
}

.school-picker-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  text-align: left;
}

.school-picker-heading > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.school-picker-heading span {
  color: #255ce8;
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.school-picker-heading h1 {
  color: #101d38;
  font-size: clamp(2rem, 6vw, 2.45rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.school-picker-close {
  align-items: center;
  border: 1.5px solid #e5e8ed;
  border-radius: 50%;
  color: #61728b;
  display: flex;
  flex: 0 0 46px;
  font-size: 1.8rem;
  font-weight: 350;
  height: 46px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.school-picker-close:hover,
.school-picker-close:focus-visible {
  background: #f5f7fa;
  color: #255ce8;
  outline: none;
}

.school-picker-search-form {
  margin-top: 26px;
}

.school-picker-page .school-picker-search {
  display: block;
  position: relative;
}

.school-picker-page .school-picker-search > svg {
  color: #8092ad;
  height: 23px;
  left: 18px;
  top: 18px;
  width: 23px;
}

.school-picker-page .school-picker-search input {
  background: #ffffff !important;
  border: 2px solid #255ce8 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  color: #101d38 !important;
  font-size: 1.08rem;
  min-height: 60px;
  padding: 12px 18px 12px 54px;
}

.school-picker-page .school-picker-search input:focus {
  border-color: #255ce8 !important;
  box-shadow: 0 0 0 4px rgba(37, 92, 232, 0.1) !important;
  outline: none;
}

.school-picker-page .school-picker-search input::placeholder {
  color: #80838a;
}

.school-picker-page .school-picker-results-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  margin-top: 14px;
  overflow: visible;
}

.school-picker-page .school-picker-row {
  border: 0 !important;
  border-radius: 18px;
  color: #101d38 !important;
  gap: 14px;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  min-height: 68px;
  padding: 11px 16px;
}

.school-picker-page .school-picker-row + .school-picker-row {
  border-top: 0 !important;
}

.school-picker-page .school-picker-row:hover,
.school-picker-page .school-picker-row:focus-within,
.school-picker-page .school-picker-row.is-keyboard-active {
  background: #f5f7fb !important;
}

.school-picker-page .school-picker-row.is-selected {
  background: #edf2fa !important;
}

.school-picker-cap {
  color: #255ce8;
  height: 27px;
  width: 27px;
}

.school-picker-page .school-picker-copy {
  display: block;
}

.school-picker-page .school-picker-copy strong {
  color: #101d38 !important;
  font-size: 1.02rem;
  font-weight: 520;
  line-height: 1.35;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
}

.school-picker-page .school-picker-select {
  background: transparent !important;
  border: 0 !important;
  color: transparent;
  font-size: 1.35rem;
  height: 28px;
  width: 28px;
}

.school-picker-page .school-picker-row.is-selected .school-picker-select {
  background: transparent !important;
  color: #255ce8;
}

.school-picker-page .school-picker-empty {
  color: #61728b;
  padding: 30px 16px 10px;
}

.school-picker-page .school-picker-empty strong {
  color: #101d38;
  font-weight: 600;
}

.school-picker-page .school-picker-missing {
  color: #255ce8;
  display: block;
  font-weight: 600;
  margin: 8px auto 0;
  padding: 12px 14px;
}

.school-picker-page .school-picker-missing[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .school-picker-page {
    margin-inline: -14px;
    max-width: none;
    min-height: calc(100dvh - 80px);
    width: calc(100% + 28px);
  }

  .school-picker-backdrop {
    flex-basis: 36px;
  }

  .school-picker-sheet {
    padding: 24px 20px 40px;
  }

  .school-picker-heading h1 {
    font-size: 2rem;
  }

  .school-picker-page .school-picker-row {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    padding-inline: 12px;
  }
}

/* ==========================================================================
   Phase 13 — Admin operations system.

   The designer handoff treats the admin product as a compact operating
   console: one grouped rail, quiet page headers, white metric bands, and
   table-first work surfaces on a pale blue workspace. These rules intentionally
   live under .shell-admin so student, marketing, and native-tablet surfaces do
   not inherit admin density.
   ========================================================================== */

body.body-admin {
  background: #eef3fa;
}

.shell.shell-wide.shell-authenticated.shell-admin {
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  padding: 0 18px 64px 0;
  background: linear-gradient(180deg, #f3f6fb 0%, #eaf0f8 100%);
}

.shell-authenticated.shell-admin > .topbar {
  width: min(100%, 1560px);
  min-height: 66px;
  margin: 0 auto 22px;
  padding: 8px 0;
}

.shell-authenticated.shell-admin > .topbar::before {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e4ebf4;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.shell-authenticated.shell-admin .admin-workspace {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shell-authenticated.shell-admin .admin-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 14px 12px;
  border: 1px solid #e3eaf3;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 18px 36px -28px rgba(15, 39, 69, 0.45);
  scrollbar-width: thin;
}

.shell-authenticated.shell-admin .admin-links.admin-links-sidebar {
  display: grid;
  gap: 14px;
}

.shell-authenticated.shell-admin .admin-nav-group {
  display: grid;
  gap: 2px;
}

.shell-authenticated.shell-admin .admin-nav-group-label {
  padding: 5px 10px 7px;
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shell-authenticated.shell-admin .admin-nav-link {
  position: relative;
  min-height: 40px;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #41546d;
  font: 550 14px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-nav-link:hover {
  background: #f5f8fc;
  color: #0f2745;
}

.shell-authenticated.shell-admin .admin-nav-link.is-active {
  background: #eff4ff;
  color: #0f2745;
  font-weight: 700;
  box-shadow: none;
}

.shell-authenticated.shell-admin .admin-nav-link.is-active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -12px;
  width: 3px;
  border-radius: 999px;
  background: #2563eb;
  content: "";
}

.shell-authenticated.shell-admin .admin-nav-icon-wrap {
  width: 20px;
  height: 20px;
  color: #91a2ba;
}

.shell-authenticated.shell-admin .admin-nav-link.is-active .admin-nav-icon-wrap {
  color: #2563eb;
}

.shell-authenticated.shell-admin .admin-nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.shell-authenticated.shell-admin .admin-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.shell-authenticated.shell-admin .admin-toolbar {
  min-height: 72px;
  padding: 2px 2px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell-authenticated.shell-admin .admin-toolbar-copy {
  display: grid;
  align-content: center;
  gap: 4px;
}

.shell-authenticated.shell-admin .admin-toolbar-title {
  color: #0f2745;
  font: 700 clamp(25px, 2.2vw, 30px) / 1.08 var(--hb-font-display);
  letter-spacing: -0.045em;
}

.shell-authenticated.shell-admin .admin-toolbar-meta {
  color: #7d8ca1;
  font: 500 13px / 1.35 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-toolbar-controls {
  gap: 10px;
}

.shell-authenticated.shell-admin .admin-toolbar-form {
  gap: 10px;
}

.shell-authenticated.shell-admin .admin-toolbar-form .field {
  min-width: 210px;
}

.shell-authenticated.shell-admin .admin-toolbar-form .admin-toolbar-select-field {
  flex: 0 1 180px;
  min-width: 160px;
}

.shell-authenticated.shell-admin .admin-toolbar-form input,
.shell-authenticated.shell-admin .admin-toolbar-form select,
.shell-authenticated.shell-admin .admin-toolbar-controls input,
.shell-authenticated.shell-admin .admin-toolbar-controls select {
  min-height: 40px;
  padding-inline: 15px;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  background: #fff;
  color: #0f2745;
  box-shadow: none;
  font: 550 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-workspace .card,
.shell-authenticated.shell-admin .admin-workspace .panel {
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 16px 34px -28px rgba(15, 39, 69, 0.48);
}

.shell-authenticated.shell-admin .admin-workspace .panel {
  padding: 20px 22px;
}

.shell-authenticated.shell-admin .admin-workspace .panel > .eyebrow:first-child {
  margin-bottom: 7px;
}

.shell-authenticated.shell-admin .admin-workspace .panel > h2 {
  margin: 0 0 16px;
  color: #0f2745;
  font: 700 17px / 1.25 var(--hb-font-display);
  letter-spacing: -0.025em;
}

.shell-authenticated.shell-admin .admin-workspace .panel > p {
  max-width: 76ch;
  margin: -8px 0 16px;
  color: #7d8ca1;
  font-size: 13px;
}

.shell-authenticated.shell-admin .admin-workspace .eyebrow {
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.12em;
}

.shell-authenticated.shell-admin .admin-workspace .button {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  font: 700 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-workspace .button-primary {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 16px -10px rgba(37, 99, 235, 0.9);
}

.shell-authenticated.shell-admin .admin-workspace .button-secondary {
  border-color: #dfe7f1;
  background: #fff;
  color: #0f2745;
}

.shell-authenticated.shell-admin .admin-workspace .button-secondary:hover {
  border-color: #cfd9e7;
  background: #f8fafd;
}

.shell-authenticated.shell-admin .admin-workspace .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
}

.shell-authenticated.shell-admin .admin-workspace .stat {
  min-height: 104px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e3eaf3;
  border-radius: 16px;
  background: #fff;
}

.shell-authenticated.shell-admin .admin-workspace .stat strong {
  color: #0f2745;
  font: 700 27px / 1 var(--hb-font-display);
  letter-spacing: -0.045em;
}

.shell-authenticated.shell-admin .admin-workspace .stat .inline-note {
  color: #7d8ca1;
  font: 500 12.5px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-workspace .table-wrap {
  margin-inline: -22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.shell-authenticated.shell-admin .admin-workspace table {
  min-width: 760px;
}

.shell-authenticated.shell-admin .admin-workspace th {
  padding: 10px 14px;
  border-block: 1px solid #edf2f7;
  background: #fbfcfe;
  color: #94a2b7;
  font: 700 10px var(--hb-font-text);
  letter-spacing: 0.09em;
}

.shell-authenticated.shell-admin .admin-workspace td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f4f8;
  color: #41546d;
  font: 520 13px / 1.4 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-workspace td strong {
  color: #0f2745;
  font-weight: 700;
}

.shell-authenticated.shell-admin .admin-workspace tbody tr:hover {
  background: #fbfcfe;
}

.shell-authenticated.shell-admin .admin-workspace .inline-note {
  color: #7d8ca1;
}

.shell-authenticated.shell-admin .admin-workspace .pill {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  background: #fff;
  color: #5a6f8a;
  font: 700 12px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-filter-group {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.shell-authenticated.shell-admin .admin-filter-label {
  color: #94a2b7;
}

.shell-authenticated.shell-admin .admin-filter-links {
  gap: 7px;
}

.shell-authenticated.shell-admin .admin-filter-links .button,
.shell-authenticated.shell-admin .admin-filter-links .pill {
  min-height: 32px;
  padding: 0 13px;
}

.shell-authenticated.shell-admin .admin-filter-links .pill {
  border-color: #0f2745;
  background: #0f2745;
  color: #fff;
}

/* ---- Wrong-for-class review queue ---- */
.shell-authenticated.shell-admin .admin-review-state-filter {
  margin-top: 0;
  display: grid;
  gap: 7px;
}

.shell-authenticated.shell-admin .admin-review-state-filter .admin-filter-label {
  text-transform: uppercase;
}

.shell-authenticated.shell-admin .admin-review-state-filter .admin-filter-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
}

.shell-authenticated.shell-admin .admin-review-state-filter .button,
.shell-authenticated.shell-admin .admin-review-state-filter .pill {
  justify-content: center;
  min-height: 40px;
}

.shell-authenticated.shell-admin .admin-review-state-filter .pill {
  border-color: #2563eb;
  background: #eef4ff;
  color: #2563eb;
}

.shell-authenticated.shell-admin .admin-wrong-for-class-queue-head {
  min-height: 0;
  padding: 24px 26px 14px;
  border-bottom: 0;
}

.shell-authenticated.shell-admin .admin-wrong-for-class-queue-head > div {
  display: grid;
  gap: 5px;
}

.shell-authenticated.shell-admin .admin-wrong-for-class-queue-head h2 {
  margin-top: 4px;
  font-size: 20px;
}

.shell-authenticated.shell-admin .admin-wrong-for-class-queue-head p {
  margin: 0;
  color: #7d8ca1;
  font-size: 13px;
}

.shell-authenticated.shell-admin .admin-wrong-for-class-status {
  color: #7d8ca1;
  font: 700 13px / 1.35 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wrong-for-class-queue td:last-child .button {
  white-space: nowrap;
}

.shell-authenticated.shell-admin .admin-workspace .admin-button-danger-outline {
  border-color: #f2c7c7;
  background: #fff;
  color: #c92525;
  box-shadow: none;
}

.shell-authenticated.shell-admin .admin-workspace .admin-button-danger-outline:hover {
  border-color: #e9abab;
  background: #fff7f7;
}

@media (max-width: 680px) {
  .shell-authenticated.shell-admin .admin-review-state-filter,
  .shell-authenticated.shell-admin .admin-review-state-filter .admin-filter-links {
    width: 100%;
  }

  .shell-authenticated.shell-admin .admin-wrong-for-class-queue-head {
    padding: 21px 20px 12px;
  }

}

/* ---- Wrong-for-class element review ---- */
.shell-authenticated.shell-admin .admin-wfc-review {
  display: grid;
  gap: 24px;
}

.shell-authenticated.shell-admin .admin-wfc-topbar,
.shell-authenticated.shell-admin .admin-wfc-topbar-actions,
.shell-authenticated.shell-admin .admin-wfc-heading-status,
.shell-authenticated.shell-admin .admin-wfc-context,
.shell-authenticated.shell-admin .admin-wfc-head-actions,
.shell-authenticated.shell-admin .admin-wfc-form-actions {
  display: flex;
  align-items: center;
}

.shell-authenticated.shell-admin .admin-wfc-topbar {
  min-height: 40px;
  justify-content: space-between;
  gap: 20px;
}

.shell-authenticated.shell-admin .admin-wfc-topbar .button {
  min-height: 38px;
  padding-inline: 17px;
}

.shell-authenticated.shell-admin .admin-wfc-back {
  gap: 8px;
}

.shell-authenticated.shell-admin .admin-wfc-back > span {
  margin-top: -2px;
  color: #71839b;
  font-size: 25px;
  font-weight: 400;
  line-height: 0;
}

.shell-authenticated.shell-admin .admin-wfc-topbar-actions {
  justify-content: flex-end;
  gap: 10px;
}

.shell-authenticated.shell-admin .admin-wfc-topbar-actions > span:first-child {
  margin-right: 4px;
  color: #8392a8;
  font: 700 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .button.is-disabled {
  border-color: #e4eaf2;
  background: #f6f8fb;
  color: #b7c1cf;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.shell-authenticated.shell-admin .admin-wfc-heading {
  display: grid;
  gap: 9px;
  padding: 0 2px 2px;
}

.shell-authenticated.shell-admin .admin-wfc-heading-status {
  flex-wrap: wrap;
  gap: 12px;
}

.shell-authenticated.shell-admin .admin-wfc-heading-status > span:last-child {
  color: #7d8ca1;
  font: 600 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-heading h1 {
  max-width: 980px;
  margin: 0;
  color: #0b2545;
  font: 700 clamp(30px, 3.1vw, 42px) / 1.1 var(--hb-font-display);
  letter-spacing: -0.045em;
}

.shell-authenticated.shell-admin .admin-wfc-context {
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a8ca5;
  font: 600 14px / 1.45 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-context a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.shell-authenticated.shell-admin .admin-wfc-context a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.shell-authenticated.shell-admin .admin-wfc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.98fr);
  align-items: start;
  gap: 20px;
}

.shell-authenticated.shell-admin .admin-wfc-column {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.shell-authenticated.shell-admin .admin-wfc-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dfe7f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(30, 58, 91, 0.07);
}

.shell-authenticated.shell-admin .admin-wfc-card h2 {
  margin: 7px 0 0;
  color: #0f2745;
  font: 700 20px / 1.2 var(--hb-font-display);
  letter-spacing: -0.02em;
}

.shell-authenticated.shell-admin .admin-wfc-card-head {
  margin: -24px -24px 24px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e8edf4;
}

.shell-authenticated.shell-admin .admin-wfc-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.shell-authenticated.shell-admin .admin-wfc-head-actions .button {
  min-height: 38px;
}

.shell-authenticated.shell-admin .admin-wfc-preview {
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 15px;
  background: #fff;
}

.shell-authenticated.shell-admin .admin-wfc-preview-title {
  padding: 20px 22px;
  display: block;
  border-bottom: 1px solid #e9eef5;
  color: #0f2745;
  font: 700 16px / 1.4 var(--hb-font-display);
}

.shell-authenticated.shell-admin .admin-wfc-preview-body {
  padding: 20px 22px;
  color: #445a76;
}

.shell-authenticated.shell-admin .admin-wfc-preview-body .element-body,
.shell-authenticated.shell-admin .admin-wfc-preview-body .element-text {
  margin: 0;
}

.shell-authenticated.shell-admin .admin-wfc-preview-body .element-body {
  display: grid;
  gap: 12px;
}

.shell-authenticated.shell-admin .admin-wfc-preview-body .element-text {
  color: #445a76;
  font: 500 15px / 1.55 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-footnote,
.shell-authenticated.shell-admin .admin-wfc-activity > p,
.shell-authenticated.shell-admin .admin-wfc-signal-row > p,
.shell-authenticated.shell-admin .admin-wfc-audit-note {
  margin: 16px 0 0;
  color: #8392a8;
  font: 500 13px / 1.5 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-activity > p {
  margin-top: 8px;
}

.shell-authenticated.shell-admin .admin-wfc-activity-list {
  margin-top: 18px;
  display: grid;
}

.shell-authenticated.shell-admin .admin-wfc-activity-row {
  padding: 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #e8edf4;
}

.shell-authenticated.shell-admin .admin-wfc-activity-row:first-child {
  border-top: 0;
}

.shell-authenticated.shell-admin .admin-wfc-activity-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shell-authenticated.shell-admin .admin-wfc-activity-user > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.shell-authenticated.shell-admin .admin-wfc-activity-user strong,
.shell-authenticated.shell-admin .admin-wfc-activity-user span,
.shell-authenticated.shell-admin .admin-wfc-activity-signal {
  font-family: var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-activity-user strong {
  overflow: hidden;
  color: #0f2745;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-authenticated.shell-admin .admin-wfc-activity-user span {
  color: #71839b;
  font-size: 12.5px;
  font-weight: 600;
}

.shell-authenticated.shell-admin .admin-wfc-signal-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.shell-authenticated.shell-admin .admin-wfc-signal-dot.is-danger {
  background: #dc2626;
}

.shell-authenticated.shell-admin .admin-wfc-activity-signal {
  flex: 0 0 auto;
  color: #b45309;
  font-size: 13px;
}

.shell-authenticated.shell-admin .admin-wfc-activity-empty {
  padding: 18px 0 2px;
  color: #8392a8;
  font: 500 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-decision-options {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shell-authenticated.shell-admin .admin-wfc-decision-option {
  position: relative;
  min-height: 126px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  border: 1px solid #dfe7f0;
  border-radius: 16px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.shell-authenticated.shell-admin .admin-wfc-decision-option:has(input:checked) {
  border-color: #2563eb;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.shell-authenticated.shell-admin .admin-wfc-decision-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shell-authenticated.shell-admin .admin-wfc-radio {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #d5deea;
  border-radius: 50%;
  background: #fff;
}

.shell-authenticated.shell-admin .admin-wfc-decision-option:has(input:checked) .admin-wfc-radio {
  border-color: #2563eb;
}

.shell-authenticated.shell-admin .admin-wfc-decision-option:has(input:checked) .admin-wfc-radio::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  content: "";
}

.shell-authenticated.shell-admin .admin-wfc-decision-copy {
  display: grid;
  gap: 5px;
}

.shell-authenticated.shell-admin .admin-wfc-decision-copy strong {
  color: #0f2745;
  font: 700 14px / 1.35 var(--hb-font-display);
}

.shell-authenticated.shell-admin .admin-wfc-decision-option:has(input:checked) .admin-wfc-decision-copy strong {
  color: #2563eb;
}

.shell-authenticated.shell-admin .admin-wfc-decision-copy > span {
  color: #7d8ca1;
  font: 500 13px / 1.5 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-note {
  margin-top: 18px;
}

.shell-authenticated.shell-admin .admin-wfc-note label {
  color: #8190a5;
  font: 700 11.5px var(--hb-font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shell-authenticated.shell-admin .admin-wfc-note textarea {
  min-height: 112px;
  margin-top: 8px;
  resize: vertical;
}

.shell-authenticated.shell-admin .admin-wfc-form-actions {
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.shell-authenticated.shell-admin .admin-wfc-form-actions .button {
  min-height: 43px;
  padding-inline: 20px;
}

.shell-authenticated.shell-admin .admin-wfc-audit-note {
  margin-top: 12px;
}

.shell-authenticated.shell-admin .admin-wfc-signals {
  display: grid;
  gap: 21px;
}

.shell-authenticated.shell-admin .admin-wfc-signal-row {
  display: grid;
  gap: 9px;
}

.shell-authenticated.shell-admin .admin-wfc-signal-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.shell-authenticated.shell-admin .admin-wfc-signal-row > div:first-child > span,
.shell-authenticated.shell-admin .admin-wfc-signal-row > div:first-child > strong {
  font: 600 13px / 1.4 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-signal-row > div:first-child > span {
  color: #7d8ca1;
}

.shell-authenticated.shell-admin .admin-wfc-signal-row > div:first-child > strong {
  color: #0f2745;
  text-align: right;
}

.shell-authenticated.shell-admin .admin-wfc-signal-row:first-of-type > div:first-child > strong {
  color: #dc2626;
}

.shell-authenticated.shell-admin .admin-wfc-bar-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #edf1f6;
}

.shell-authenticated.shell-admin .admin-wfc-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0;
  border-radius: inherit;
}

.shell-authenticated.shell-admin .admin-wfc-bar-fill.is-red {
  background: #dc2626;
}

.shell-authenticated.shell-admin .admin-wfc-bar-fill.is-orange {
  background: #e98200;
}

.shell-authenticated.shell-admin .admin-wfc-readiness-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.shell-authenticated.shell-admin .admin-wfc-readiness-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f2745;
  font: 700 12.5px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-readiness-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.shell-authenticated.shell-admin .admin-wfc-readiness-legend i.is-ready {
  background: #16a34a;
}

.shell-authenticated.shell-admin .admin-wfc-readiness-legend i.is-not-ready {
  background: #f59e0b;
}

.shell-authenticated.shell-admin .admin-wfc-signal-row > p {
  margin-top: 0;
}

.shell-authenticated.shell-admin .admin-wfc-tag-counts {
  margin: 1px 0 0;
  padding-top: 17px;
  display: grid;
  gap: 12px;
  border-top: 1px solid #e8edf4;
}

.shell-authenticated.shell-admin .admin-wfc-tag-counts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.shell-authenticated.shell-admin .admin-wfc-tag-counts dt,
.shell-authenticated.shell-admin .admin-wfc-tag-counts dd {
  margin: 0;
  font: 600 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-tag-counts dt {
  color: #7d8ca1;
}

.shell-authenticated.shell-admin .admin-wfc-tag-counts dd {
  color: #0f2745;
}

.shell-authenticated.shell-admin .admin-wfc-verification {
  display: grid;
  gap: 14px;
}

.shell-authenticated.shell-admin .admin-wfc-verification-score {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}

.shell-authenticated.shell-admin .admin-wfc-verification-score strong {
  color: #d97706;
  font: 700 34px / 1 var(--hb-font-display);
  letter-spacing: -0.04em;
}

.shell-authenticated.shell-admin .admin-wfc-verification-score span {
  color: #7d8ca1;
  font: 600 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-compact-metrics {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfcfe;
}

.shell-authenticated.shell-admin .admin-wfc-compact-metrics > div {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 3px;
}

.shell-authenticated.shell-admin .admin-wfc-compact-metrics > div + div {
  border-left: 1px solid #e2e8f0;
}

.shell-authenticated.shell-admin .admin-wfc-compact-metrics strong {
  color: #0f2745;
  font: 700 20px var(--hb-font-display);
}

.shell-authenticated.shell-admin .admin-wfc-compact-metrics span {
  color: #7d8ca1;
  font: 500 12px / 1.35 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-source {
  display: grid;
  gap: 14px;
}

.shell-authenticated.shell-admin .admin-wfc-source-list {
  display: grid;
  gap: 10px;
}

.shell-authenticated.shell-admin .admin-wfc-source-empty {
  min-height: 136px;
  padding: 18px;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 1px dashed #d6dfeb;
  border-radius: 15px;
  background: #fbfcfe;
}

.shell-authenticated.shell-admin .admin-wfc-source-empty > span {
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef3fb;
  color: #5a6f8a;
  font: 700 11px var(--hb-font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-authenticated.shell-admin .admin-wfc-source-empty p {
  margin: 0;
  color: #7d8ca1;
  font: 500 13px / 1.55 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-wfc-source-row {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfcfe;
}

.shell-authenticated.shell-admin .admin-wfc-source-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.shell-authenticated.shell-admin .admin-wfc-source-row strong {
  overflow: hidden;
  color: #0f2745;
  font: 700 13px var(--hb-font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-authenticated.shell-admin .admin-wfc-source-row span {
  color: #7d8ca1;
  font: 500 11.5px / 1.4 var(--hb-font-text);
}

@media (max-width: 980px) {
  .shell-authenticated.shell-admin .admin-wfc-grid {
    grid-template-columns: 1fr;
  }

  .shell-authenticated.shell-admin .admin-wfc-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .shell-authenticated.shell-admin .admin-wfc-source {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell-authenticated.shell-admin .admin-wfc-review {
    gap: 20px;
  }

  .shell-authenticated.shell-admin .admin-wfc-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell-authenticated.shell-admin .admin-wfc-topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .shell-authenticated.shell-admin .admin-wfc-topbar-actions > span:first-child {
    width: 100%;
    margin: 0;
  }

  .shell-authenticated.shell-admin .admin-wfc-heading h1 {
    font-size: 30px;
  }

  .shell-authenticated.shell-admin .admin-wfc-card {
    padding: 20px;
  }

  .shell-authenticated.shell-admin .admin-wfc-card-head {
    margin: -20px -20px 20px;
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .shell-authenticated.shell-admin .admin-wfc-head-actions {
    justify-content: flex-start;
  }

  .shell-authenticated.shell-admin .admin-wfc-decision-options,
  .shell-authenticated.shell-admin .admin-wfc-aside {
    grid-template-columns: 1fr;
  }

  .shell-authenticated.shell-admin .admin-wfc-source {
    grid-column: auto;
  }

  .shell-authenticated.shell-admin .admin-wfc-activity-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shell-authenticated.shell-admin .admin-wfc-form-actions,
  .shell-authenticated.shell-admin .admin-wfc-form-actions .button {
    width: 100%;
  }

  .shell-authenticated.shell-admin .admin-wfc-source-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---- OpenAI usage tracker ---- */
.shell-authenticated.shell-admin .admin-usage-period-filter {
  margin-top: 0;
  display: grid;
  gap: 7px;
}

.shell-authenticated.shell-admin .admin-usage-period-filter .admin-filter-label {
  text-transform: uppercase;
}

.shell-authenticated.shell-admin .admin-usage-period-filter .admin-filter-links {
  flex-wrap: nowrap;
  gap: 9px;
}

.shell-authenticated.shell-admin .admin-usage-period-filter .button,
.shell-authenticated.shell-admin .admin-usage-period-filter .pill {
  justify-content: center;
  min-height: 40px;
  padding-inline: 17px;
}

.shell-authenticated.shell-admin .admin-usage-period-filter .pill {
  border-color: #2563eb;
  background: #eef4ff;
  color: #2563eb;
}

.shell-authenticated.shell-admin .admin-usage-card-head {
  min-height: 88px;
  padding: 20px 26px 13px;
  border-bottom: 0;
}

.shell-authenticated.shell-admin .admin-usage-card-head > div {
  display: grid;
  gap: 7px;
}

.shell-authenticated.shell-admin .admin-usage-card-head h2 {
  font-size: 19px;
}

.shell-authenticated.shell-admin .admin-usage-model-body {
  padding: 0 26px 20px;
}

.shell-authenticated.shell-admin
  .admin-usage-model-card
  .admin-model-settings-list {
  gap: 0;
}

.shell-authenticated.shell-admin
  .admin-usage-model-card
  .admin-model-settings-list
  li {
  min-height: 48px;
  padding: 10px 2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  font-size: 14px;
}

.shell-authenticated.shell-admin
  .admin-usage-model-card
  .admin-model-settings-list
  li:last-child {
  border-bottom: 1px solid #edf2f7;
}

.shell-authenticated.shell-admin
  .admin-usage-model-card
  .admin-model-settings-list
  span {
  color: #5f748f;
}

.shell-authenticated.shell-admin
  .admin-usage-model-card
  .admin-model-settings-list
  strong {
  justify-self: end;
  color: #0f2745;
  font-size: 13.5px;
}

.shell-authenticated.shell-admin .admin-usage-overview {
  padding: 24px 26px 26px;
}

.shell-authenticated.shell-admin .admin-usage-period-label {
  display: block;
  margin-top: 10px;
  color: #7d8ca1;
  font: 500 13px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-usage-overview > h2 {
  margin: 4px 0 0;
  color: #0f2745;
  font: 700 19px / 1.25 var(--hb-font-display);
  letter-spacing: -0.025em;
}

.shell-authenticated.shell-admin .admin-usage-stat-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shell-authenticated.shell-admin .admin-usage-stat {
  min-height: 96px;
  padding: 18px 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #e3eaf3;
  border-radius: 15px;
  background: #fbfcfe;
}

.shell-authenticated.shell-admin .admin-usage-stat strong {
  color: #91a2b8;
  font: 700 28px / 1 var(--hb-font-display);
  letter-spacing: -0.04em;
}

.shell-authenticated.shell-admin .admin-usage-stat span {
  color: #7d8ca1;
  font: 500 12.5px var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-usage-cost {
  min-height: 70px;
  margin-top: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  border: 1px solid #e3eaf3;
  border-radius: 15px;
  background: #f8fafd;
}

.shell-authenticated.shell-admin .admin-usage-cost > div {
  display: grid;
  gap: 4px;
}

.shell-authenticated.shell-admin .admin-usage-cost strong {
  color: #0f2745;
  font: 700 13.5px var(--hb-font-display);
}

.shell-authenticated.shell-admin .admin-usage-cost span {
  color: #7d8ca1;
  font: 600 13px var(--hb-font-mono);
}

.shell-authenticated.shell-admin .admin-usage-table-wrap {
  border-top: 1px solid #edf2f7;
}

.shell-authenticated.shell-admin .admin-usage-table-wrap table {
  min-width: 1040px;
}

.shell-authenticated.shell-admin
  .admin-usage-table-wrap
  .admin-usage-empty-row:hover {
  background: transparent;
}

.shell-authenticated.shell-admin
  .admin-usage-table-wrap
  .admin-usage-empty-row
  td {
  padding: 0;
  border-bottom: 0;
}

.shell-authenticated.shell-admin .admin-usage-debug-link {
  color: #2563eb;
  font-family: var(--hb-font-mono);
  font-weight: 700;
  text-decoration: none;
}

.shell-authenticated.shell-admin .admin-usage-debug-link:hover,
.shell-authenticated.shell-admin .admin-usage-debug-link:focus-visible {
  text-decoration: underline;
}

.shell-authenticated.shell-admin .admin-usage-debug-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.shell-authenticated.shell-admin .admin-usage-empty-state {
  min-height: 220px;
}

.shell-authenticated.shell-admin .admin-usage-empty-state span {
  max-width: 560px;
}

@media (max-width: 820px) {
  .shell-authenticated.shell-admin .admin-usage-period-filter,
  .shell-authenticated.shell-admin .admin-usage-period-filter .admin-filter-links {
    width: 100%;
  }

  .shell-authenticated.shell-admin .admin-usage-period-filter .admin-filter-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .shell-authenticated.shell-admin .admin-usage-card-head,
  .shell-authenticated.shell-admin .admin-usage-overview {
    padding-inline: 20px;
  }

  .shell-authenticated.shell-admin .admin-usage-card-head {
    align-items: flex-start;
  }

  .shell-authenticated.shell-admin .admin-usage-model-body {
    padding-inline: 20px;
  }

  .shell-authenticated.shell-admin .admin-usage-stat-grid {
    grid-template-columns: 1fr;
  }
}

.shell-authenticated.shell-admin .admin-workspace input:not([type="checkbox"]):not([type="radio"]),
.shell-authenticated.shell-admin .admin-workspace select,
.shell-authenticated.shell-admin .admin-workspace textarea {
  border-color: #dfe7f1;
  border-radius: 11px;
  background: #fbfcfe;
  box-shadow: none;
}

.shell-authenticated.shell-admin .admin-workspace input:focus,
.shell-authenticated.shell-admin .admin-workspace select:focus,
.shell-authenticated.shell-admin .admin-workspace textarea:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.08);
}

.shell-authenticated.shell-admin .admin-workspace .message {
  margin: 0;
  border-radius: 14px;
}

.shell-authenticated.shell-admin .admin-workspace .feature-list,
.shell-authenticated.shell-admin .admin-workspace .result-list,
.shell-authenticated.shell-admin .admin-workspace .statistics-stack {
  gap: 10px;
}

.shell-authenticated.shell-admin .admin-workspace .feature-item,
.shell-authenticated.shell-admin .admin-workspace .selection-card,
.shell-authenticated.shell-admin .admin-workspace .task-card {
  border-color: #edf2f7;
  border-radius: 12px;
  background: #fbfcfe;
  box-shadow: none;
}

/* Shared designer primitives used by the highest-traffic admin screens. */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-kpi-grid.admin-kpi-grid-six {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpi-card {
  min-height: 132px;
  padding: 18px 19px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e3eaf3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 16px 34px -28px rgba(15, 39, 69, 0.45);
}

.admin-kpi-label,
.admin-section-kicker {
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-kpi-value {
  color: #0f2745;
  font: 700 36px / 1 var(--hb-font-display);
  letter-spacing: -0.055em;
}

.admin-kpi-meta {
  color: #7d8ca1;
  font: 500 12.5px / 1.35 var(--hb-font-text);
}

.admin-mini-sparkline {
  width: 100%;
  height: 34px;
  margin-top: auto;
  overflow: visible;
  color: #2563eb;
}

.admin-mini-sparkline polyline {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.admin-mini-sparkline.is-muted polyline {
  stroke: #9babc0;
}

.admin-mini-sparkline.is-muted {
  color: #9babc0;
}

.admin-metric-band {
  display: grid;
  grid-template-columns: repeat(var(--admin-metric-columns, 5), minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e3eaf3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 16px 34px -28px rgba(15, 39, 69, 0.4);
}

.admin-metric-band-item {
  min-height: 78px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid #e8eef6;
}

.admin-metric-band-item:last-child {
  border-right: 0;
}

.admin-metric-band-item strong {
  color: #0f2745;
  font: 700 20px / 1 var(--hb-font-display);
  letter-spacing: -0.035em;
}

.admin-metric-band-item span {
  overflow: hidden;
  color: #7d8ca1;
  font: 500 12px var(--hb-font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* R monitoring: the whole fall is allocated off this one number, so it gets
   the page's largest type and nothing competes with it. */
.admin-hero-metric {
  display: grid;
  gap: 6px;
  padding: 28px 24px 24px;
}

.admin-hero-number {
  margin: 0;
  color: #0f2745;
  font: 700 clamp(56px, 12vw, 104px) / 0.95 var(--hb-font-display);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.admin-hero-sub {
  margin: 0;
  color: #40566f;
  font: 500 15px var(--hb-font-text);
}

.admin-flag-list {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.admin-flag-list li {
  padding: 12px 14px;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  background: #fbfcfe;
  font: 500 14px var(--hb-font-text);
}

.admin-inline-form {
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font: 500 13px var(--hb-font-text);
}

.admin-inline-form input {
  width: 96px;
  padding: 8px 10px;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  font: 500 14px var(--hb-font-text);
}

.admin-data-card {
  overflow: hidden;
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 16px 34px -28px rgba(15, 39, 69, 0.45);
}

.admin-data-card-head {
  min-height: 64px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf2f7;
}

.admin-data-card-head h2,
.admin-data-card-head h3 {
  margin: 0;
  color: #0f2745;
  font: 700 17px / 1.2 var(--hb-font-display);
  letter-spacing: -0.025em;
}

.admin-data-card-head p {
  margin: 3px 0 0;
  color: #7d8ca1;
  font-size: 12.5px;
}

.admin-data-card-body {
  padding: 20px;
}

.admin-data-card .table-wrap {
  margin: 0 !important;
}

.admin-data-card .admin-filter-group {
  padding: 13px 20px;
  border-bottom: 1px solid #edf2f7;
}

.admin-empty-state {
  min-height: 210px;
  padding: 42px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #7d8ca1;
  text-align: center;
}

.admin-empty-state strong {
  color: #0f2745;
  font: 700 15px var(--hb-font-display);
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3fb;
  color: #5a6f8a;
  font: 700 11.5px var(--hb-font-text);
  white-space: nowrap;
}

.admin-status-chip.is-good {
  background: #ecfdf3;
  color: #15803d;
}

.admin-status-chip.is-warning {
  background: #fffbeb;
  color: #b45309;
}

.admin-status-chip.is-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-status-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.admin-chart-bars {
  height: 230px;
  padding: 16px 4px 0;
  display: grid;
  grid-template-columns: repeat(var(--admin-chart-columns, 14), minmax(12px, 1fr));
  align-items: end;
  gap: 7px;
  border-bottom: 1px dashed #e6edf6;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 55px,
    #eef3f8 56px
  );
}

.admin-chart-column {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 24px;
  align-items: end;
  gap: 7px;
}

.admin-chart-bar {
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  background: #8eacf3;
}

.admin-chart-column span {
  overflow: hidden;
  color: #94a2b7;
  font: 600 10.5px var(--hb-font-text);
  text-align: center;
  text-overflow: ellipsis;
}

.admin-readiness-cell {
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-readiness-track {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.admin-readiness-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--admin-readiness-color, #2563eb);
}

.admin-readiness-cell strong {
  min-width: 34px;
  color: var(--admin-readiness-color, #2563eb) !important;
  text-align: right;
}

.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.admin-callout-dark {
  padding: 22px 24px;
  border-radius: 18px;
  background: #0f2b4c;
  color: #fff;
}

.admin-callout-dark .admin-section-kicker {
  color: #8da4c0;
}

.admin-callout-dark strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font: 700 20px / 1.35 var(--hb-font-display);
  letter-spacing: -0.025em;
}

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

.admin-table-disclosure {
  margin-top: 16px;
}

.admin-table-disclosure > summary {
  width: fit-content;
  cursor: pointer;
  color: #5a6f8a;
  font: 700 12px var(--hb-font-text);
  list-style: none;
}

.admin-table-disclosure > summary::-webkit-details-marker {
  display: none;
}

.admin-table-disclosure > summary::after {
  margin-left: 7px;
  content: "↓";
}

.admin-table-disclosure[open] > summary::after {
  content: "↑";
}

.admin-table-disclosure .table-wrap {
  margin-top: 14px !important;
}

.admin-kpi-card.is-danger {
  border-color: #f2c7c7;
}

.admin-kpi-card.is-danger .admin-kpi-label,
.admin-kpi-card.is-danger .admin-kpi-value {
  color: #b91c1c;
}

.admin-lane-grid {
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-lane-card {
  min-width: 0;
  padding: 15px 16px;
  display: grid;
  gap: 10px;
  border: 1px solid #e6ecf4;
  border-radius: 14px;
  background: #fbfcfe;
}

.admin-lane-card > .admin-inline-toolbar > strong {
  color: #0f2745;
  font: 700 13.5px var(--hb-font-mono);
}

.admin-lane-counts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #7d8ca1;
  font-size: 12px;
}

.admin-lane-counts strong {
  color: #41546d;
}

.admin-lane-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f6;
}

.admin-lane-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #22c55e;
}

.admin-inline-filter-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-inline-filter-form select,
.admin-inline-filter-form input {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dfe7f1;
  border-radius: 999px !important;
  background: #fbfcfe;
  color: #41546d;
  font: 600 12.5px var(--hb-font-text);
}

.admin-data-card-footer {
  padding: 12px 20px;
  border-top: 1px solid #edf2f7;
}

.admin-data-card-footer .hero-actions {
  margin: 0;
  justify-content: flex-end;
}

.shell-authenticated.shell-admin .admin-school-back {
  width: fit-content;
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  background: #fff;
  color: #526783;
  font: 700 13px var(--hb-font-text);
  text-decoration: none;
}

.shell-authenticated.shell-admin .admin-school-back:hover {
  border-color: #cfd9e7;
  color: #0f2745;
}

.shell-authenticated.shell-admin .admin-school-back > span {
  color: #8b9ab0;
  font-size: 21px;
  line-height: 0;
}

.admin-school-identity-card {
  padding: 28px 30px 30px;
  overflow: hidden;
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 16px 34px -28px rgba(15, 39, 69, 0.45);
}

.admin-school-identity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.admin-school-identity-copy {
  min-width: 0;
}

.admin-school-identity-status {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b9ab0;
  font: 700 11px var(--hb-font-text);
  letter-spacing: 0.08em;
}

.admin-school-identity-status > span:first-child {
  text-transform: uppercase;
}

.admin-school-identity-status .admin-status-chip {
  min-height: 25px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-school-identity-copy h1 {
  max-width: 820px;
  margin: 10px 0 0;
  color: #0f2745;
  font: 700 clamp(30px, 3vw, 42px) / 1.05 var(--hb-font-display);
  letter-spacing: -0.05em;
}

.admin-school-identity-copy p {
  margin: 10px 0 0;
  color: #617590;
  font: 600 14px / 1.4 var(--hb-font-text);
}

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

.admin-school-identity-metrics {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(var(--admin-school-metric-columns, 5), minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e7edf5;
  border-radius: 15px;
  background: #fbfcfe;
}

.admin-school-identity-metrics > div {
  min-width: 0;
  min-height: 88px;
  padding: 17px 20px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid #e8eef6;
}

.admin-school-identity-metrics > div:last-child {
  border-right: 0;
}

.admin-school-identity-metrics strong {
  overflow: hidden;
  color: #0f2745;
  font: 700 25px / 1 var(--hb-font-display);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-school-identity-metrics span {
  overflow: hidden;
  color: #7d8ca1;
  font: 500 12.5px var(--hb-font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-school-table-order {
  color: #8b9ab0;
  font: 650 12px var(--hb-font-text);
  text-transform: lowercase;
}

.admin-school-class-table {
  min-width: 820px !important;
}

.admin-school-class-table th:first-child,
.admin-school-class-table td:first-child {
  width: 40%;
}

.admin-school-class-table th:nth-child(2),
.admin-school-class-table td:nth-child(2) {
  width: 24%;
}

.admin-school-class-table .admin-readiness-cell {
  max-width: 230px;
}

.admin-school-class-link {
  color: #2563eb;
  text-decoration: none;
}

.admin-school-class-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.admin-school-class-table .inline-note {
  display: inline-block;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.admin-school-empty-state {
  min-height: 150px;
}

.admin-school-source-card .admin-data-card-body {
  padding: 24px 26px 26px;
}

.admin-school-source-card h2 {
  margin: 7px 0 22px;
  color: #0f2745;
  font: 700 18px / 1.2 var(--hb-font-display);
  letter-spacing: -0.025em;
}

.admin-school-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 34px;
}

.admin-school-source-grid > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-school-source-grid span {
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-school-source-grid strong {
  overflow-wrap: anywhere;
  color: #0f2745;
  font: 700 13.5px / 1.4 var(--hb-font-text);
}

.admin-school-operations-card > summary {
  min-height: 66px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: #0f2745;
  list-style: none;
}

.admin-school-operations-card > summary::-webkit-details-marker {
  display: none;
}

.admin-school-operations-card > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.admin-school-operations-card > summary strong {
  font: 700 15px var(--hb-font-display);
}

.admin-school-operations-card > summary small {
  color: #7d8ca1;
  font: 500 12px var(--hb-font-text);
}

.admin-school-operations-card > summary > span:last-child {
  color: #8b9ab0;
  font-size: 21px;
  transition: transform 140ms ease;
}

.admin-school-operations-card[open] > summary {
  border-bottom: 1px solid #edf2f7;
}

.admin-school-operations-card[open] > summary > span:last-child {
  transform: rotate(180deg);
}

.admin-school-operations-content {
  padding: 20px;
}

.admin-school-operations-content > .hero-grid {
  margin-top: 0;
}

.admin-user-identity-card {
  padding: 28px 30px 26px;
  overflow: hidden;
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 16px 34px -28px rgba(15, 39, 69, 0.45);
}

.admin-user-identity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.admin-user-person {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.admin-user-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font: 700 20px var(--hb-font-display);
  letter-spacing: -0.03em;
}

.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user-identity-copy {
  min-width: 0;
}

.admin-user-identity-status {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-user-identity-status .admin-status-chip,
.admin-user-context .admin-status-chip {
  letter-spacing: 0;
  text-transform: none;
}

.admin-user-identity-copy h1 {
  margin: 7px 0 0;
  color: #0f2745;
  font: 700 clamp(30px, 3vw, 39px) / 1.05 var(--hb-font-display);
  letter-spacing: -0.05em;
}

.admin-user-email {
  display: block;
  margin-top: 10px;
  color: #41546d;
  font: 650 13.5px var(--hb-font-text);
}

.admin-user-context {
  min-height: 25px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: #7d8ca1;
  font: 500 13px var(--hb-font-text);
}

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

.admin-user-identity-actions form {
  display: inline-flex;
  margin: 0;
}

.admin-user-account-meta {
  margin-top: 26px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid #edf2f7;
}

.admin-user-account-meta > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-user-account-meta span {
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-user-account-meta strong {
  overflow-wrap: anywhere;
  color: #0f2745;
  font: 700 13px / 1.35 var(--hb-font-text);
}

.admin-user-access-card {
  min-height: 106px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #cadbff;
  border-radius: 18px;
  background: #eef4ff;
}

.admin-user-access-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #2563eb;
}

.admin-user-access-icon svg {
  width: 22px;
  height: 22px;
}

.admin-user-access-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user-access-copy strong {
  color: #0f2745;
  font: 700 16px var(--hb-font-display);
}

.admin-user-access-copy span {
  color: #5f7390;
  font: 500 13px / 1.4 var(--hb-font-text);
}

.admin-user-usage-card .admin-data-card-body {
  padding: 24px;
}

.admin-user-usage-card h2 {
  margin: 7px 0 20px;
  color: #0f2745;
  font: 700 19px / 1.2 var(--hb-font-display);
  letter-spacing: -0.025em;
}

.admin-user-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e5ebf3;
  border-radius: 15px;
  background: #fbfcfe;
}

.admin-user-metric-grid > div {
  min-width: 0;
  min-height: 82px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid #e7edf5;
}

.admin-user-metric-grid > div:nth-child(5) {
  border-right: 0;
}

.admin-user-metric-grid > div.admin-user-cost-metric {
  min-height: 72px;
  grid-column: 1 / -1;
  border-top: 1px solid #e7edf5;
  border-right: 0;
  background: #f4f7fb;
}

.admin-user-metric-grid strong {
  color: #0f2745;
  font: 700 24px / 1 var(--hb-font-display);
  letter-spacing: -0.04em;
}

.admin-user-metric-grid span {
  overflow: hidden;
  color: #7d8ca1;
  font: 500 12px var(--hb-font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-signal-mix {
  margin-top: 16px;
  padding: 16px 18px;
  display: grid;
  gap: 5px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fbfcfe;
}

.admin-user-signal-mix strong {
  color: #0f2745;
  font: 700 13px var(--hb-font-text);
}

.admin-user-signal-mix span,
.admin-user-feed-item span,
.admin-user-feedback-item > span {
  color: #7d8ca1;
  font: 500 12.5px / 1.4 var(--hb-font-text);
}

.admin-user-sections-table {
  min-width: 900px !important;
}

.admin-user-sections-table th:first-child,
.admin-user-sections-table td:first-child {
  width: 18%;
}

.admin-user-sections-table th:nth-child(2),
.admin-user-sections-table td:nth-child(2) {
  width: 29%;
}

.admin-user-sections-table td span {
  color: #7d8ca1;
  font-size: 12px;
}

.admin-user-class-link,
.admin-user-feed-item .card-link {
  color: #2563eb;
  text-decoration: none;
}

.admin-user-class-link:hover,
.admin-user-feed-item .card-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.admin-user-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-user-feed-list,
.admin-user-feedback-list {
  display: grid;
  gap: 10px;
}

.admin-user-feed-item,
.admin-user-feedback-item {
  padding: 15px 16px;
  display: grid;
  gap: 5px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fbfcfe;
}

.admin-user-feed-item > strong {
  font: 700 13.5px var(--hb-font-display);
}

.admin-user-feedback-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-user-feedback-title > strong {
  color: #0f2745;
  font: 700 13.5px var(--hb-font-display);
}

.admin-user-empty-state {
  min-height: 145px;
  padding: 26px 20px;
}

.admin-class-identity-card {
  padding: 28px 30px 30px;
  overflow: hidden;
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.04),
    0 16px 34px -28px rgba(15, 39, 69, 0.45);
}

.admin-class-identity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.admin-class-identity-copy {
  min-width: 0;
}

.admin-class-identity-status {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-class-identity-status .admin-status-chip {
  letter-spacing: 0;
  text-transform: none;
}

.admin-class-identity-copy h1 {
  margin: 9px 0 4px;
  color: #0f2745;
  font: 700 clamp(32px, 3vw, 42px) / 1.02 var(--hb-font-display);
  letter-spacing: -0.05em;
}

.admin-class-identity-copy > strong {
  color: #0f2745;
  font: 700 16px / 1.35 var(--hb-font-text);
}

.admin-class-identity-copy p {
  margin: 7px 0 0;
  color: #7d8ca1;
  font: 500 13px / 1.4 var(--hb-font-text);
}

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

.admin-class-metrics {
  margin-top: 26px;
}

.admin-class-materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.admin-class-materials-grid form {
  align-content: start;
  padding: 20px;
  border: 1px solid #e7edf5;
  border-radius: 16px;
  background: #fbfcfe;
}

.admin-syllabus-candidate-list {
  display: grid;
  gap: 14px;
}

.admin-syllabus-candidate {
  padding: 18px;
  border: 1px solid #e3eaf3;
  border-radius: 16px;
  background: #fbfcfe;
}

.admin-syllabus-candidate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #0f2745;
  font: 700 13px var(--hb-font-text);
}

.admin-syllabus-candidate-fields {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(220px, 1fr) minmax(150px, 0.6fr);
  gap: 12px;
}

.admin-syllabus-wide-field {
  grid-column: span 2;
}

.admin-class-record-card .admin-data-card-body {
  padding: 24px 26px 26px;
}

.admin-class-record-card h2 {
  margin: 7px 0 22px;
  color: #0f2745;
  font: 700 18px / 1.2 var(--hb-font-display);
  letter-spacing: -0.025em;
}

.admin-class-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 34px;
}

.admin-class-record-grid > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-class-record-grid span {
  color: #94a2b7;
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-class-record-grid strong {
  overflow-wrap: anywhere;
  color: #0f2745;
  font: 700 13px / 1.4 var(--hb-font-text);
}

.admin-class-elements-table {
  min-width: 1060px !important;
}

.admin-class-elements-table th:first-child,
.admin-class-elements-table td:first-child {
  width: 36%;
}

.admin-class-elements-table td:first-child span {
  color: #7d8ca1;
  font-size: 12px;
}

.admin-class-elements-table td:last-child {
  text-align: right;
}

.admin-class-element-link {
  color: #2563eb;
  text-decoration: none;
}

.admin-class-element-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.admin-class-empty-state {
  min-height: 170px;
}

.admin-class-ranking-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-class-ranking-grid > div {
  min-width: 0;
  padding: 15px;
  display: grid;
  gap: 5px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fbfcfe;
}

.admin-class-ranking-grid strong {
  color: #0f2745;
  font: 700 13.5px var(--hb-font-display);
}

.admin-class-ranking-grid span {
  color: #7d8ca1;
  font: 500 12.5px / 1.45 var(--hb-font-text);
}

.shell-authenticated.shell-admin .admin-mono,
.shell-authenticated.shell-admin code {
  font-family: var(--hb-font-mono);
  font-size: 0.92em;
}

.admin-warning-banner {
  min-height: 86px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #f1d28d;
  border-radius: 17px;
  background: #fff9e8;
}

.admin-warning-banner.is-enabled {
  border-color: #bfe7cc;
  background: #f1fbf4;
}

.admin-warning-banner > div {
  display: grid;
  gap: 3px;
}

.admin-warning-banner strong {
  color: #0f2745;
  font: 700 15px var(--hb-font-display);
}

.admin-warning-banner span:not(.admin-status-chip) {
  color: #8b6b26;
  font-size: 12.5px;
}

.admin-config-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.admin-config-list > div {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-config-list dt {
  color: #5a6f8a;
  font: 700 11.5px var(--hb-font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-config-list dd {
  margin: 0;
  color: #0f2745;
  font: 600 12.5px var(--hb-font-mono);
  text-align: right;
}

.admin-channel-grid {
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-channel-card {
  min-width: 0;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid #e4eaf2;
  border-radius: 15px;
  background: #fbfcfe;
}

.admin-channel-card > .admin-inline-toolbar > strong {
  color: #0f2745;
  font: 700 15px var(--hb-font-display);
}

.admin-channel-card > p,
.admin-channel-limit p {
  margin: 0;
  color: #6f8098;
  font-size: 12.5px;
  line-height: 1.5;
}

.admin-channel-metrics {
  padding-block: 11px;
  display: flex;
  gap: 18px;
  border-block: 1px solid #edf2f7;
  flex-wrap: wrap;
  color: #8a99ad;
  font-size: 11px;
}

.admin-channel-metrics strong {
  display: block;
  color: #0f2745;
  font: 700 18px var(--hb-font-display);
}

.admin-channel-limit {
  display: grid;
  gap: 5px;
}

.admin-channel-limit > strong {
  color: #41546d;
  font-size: 12px;
}

.admin-channel-activity {
  margin-top: 10px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #edf2f7;
}

.admin-channel-activity > div {
  min-width: 0;
}

@media (max-width: 800px) {
  .admin-channel-grid {
    grid-template-columns: 1fr;
  }
}

.admin-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 11px;
}

.admin-lifecycle-card {
  min-width: 0;
  min-height: 92px;
  padding: 13px 14px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  background: #fff;
  color: #5a6f8a !important;
  text-decoration: none;
}

.admin-lifecycle-card.is-active {
  border-color: #2563eb;
  background: #eff4ff;
}

.admin-lifecycle-card > span {
  overflow: hidden;
  font: 650 11.5px var(--hb-font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-lifecycle-card > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.admin-lifecycle-card strong {
  color: #0f2745;
  font: 700 23px var(--hb-font-display);
}

.admin-lifecycle-card em {
  color: #8a99ad;
  font: 600 11px var(--hb-font-text);
}

.admin-lifecycle-card > i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.admin-lifecycle-card > i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.admin-rep-assign-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(180px, 1fr) minmax(210px, 1.15fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-rep-assign-grid .field {
  margin: 0;
}

.shell-authenticated.shell-admin dialog[data-modal-dialog].hb-modal.admin-ab-test-dialog {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid #dfe7f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 39, 69, 0.28);
}

.admin-ab-test-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 104px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #edf2f7;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.admin-ab-test-modal-head h2 {
  margin: 5px 0 0;
  color: #0f2745;
  font: 700 25px / 1.1 var(--hb-font-display);
  letter-spacing: -0.04em;
}

.admin-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f5f8fc;
  color: #5a6f8a;
  cursor: pointer;
  font: 400 27px / 1 var(--hb-font-text);
}

.admin-ab-test-dialog > form {
  padding: 26px 28px 28px;
}

.admin-ab-test-dialog .form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.admin-ab-test-dialog .form-grid > label {
  min-width: 0;
  display: grid;
  grid-column: span 6;
  gap: 6px;
}

.admin-ab-test-dialog .form-grid > label:nth-child(3),
.admin-ab-test-dialog .form-grid > label:nth-child(4) {
  grid-column: span 4;
}

.admin-ab-test-dialog .form-grid > label:nth-child(5),
.admin-ab-test-dialog .form-grid > label:nth-child(6) {
  grid-column: span 2;
}

.admin-ab-test-dialog .hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-ab-test-dialog .hero-grid > .panel {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: start;
  column-gap: 14px;
  border-radius: 18px !important;
  background: #fbfcfe !important;
  box-shadow: none !important;
}

.admin-ab-test-dialog .hero-grid > .panel > .eyebrow {
  grid-column: 1 / -1;
}

.admin-ab-test-dialog .hero-grid > .panel:nth-child(2) {
  border-color: #b9cdfd !important;
  background: #f7f9ff !important;
}

.admin-ab-test-dialog .hero-grid > .panel label {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  margin-top: 12px;
}

.admin-ab-test-dialog .hero-grid > .panel label:nth-of-type(1) {
  grid-column: span 9;
}

.admin-ab-test-dialog .hero-grid > .panel label:nth-of-type(2) {
  grid-column: span 3;
}

.admin-ab-test-dialog form:not(:has(select[name="surface"] option[value="email"]:checked))
  .hero-grid
  > .panel
  label:nth-of-type(6),
.admin-ab-test-dialog form:not(:has(select[name="surface"] option[value="email"]:checked))
  .hero-grid
  > .panel
  label:nth-of-type(7) {
  display: none;
}

.admin-ab-test-dialog form:has(select[name="surface"] option[value="email"]:checked)
  .hero-grid
  > .panel
  label:nth-of-type(3),
.admin-ab-test-dialog form:has(select[name="surface"] option[value="email"]:checked)
  .hero-grid
  > .panel
  label:nth-of-type(4),
.admin-ab-test-dialog form:has(select[name="surface"] option[value="email"]:checked)
  .hero-grid
  > .panel
  label:nth-of-type(5) {
  display: none;
}

.admin-ab-test-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1050px) {
  .admin-rep-assign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-rep-assign-grid,
  .admin-ab-test-dialog .form-grid,
  .admin-ab-test-dialog .hero-grid {
    grid-template-columns: 1fr;
  }

  .admin-ab-test-modal-head,
  .admin-ab-test-dialog > form {
    padding-inline: 20px;
  }
}

@media (max-width: 1260px) {
  .admin-lifecycle-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-lifecycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .admin-lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-lane-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .shell-authenticated.shell-admin .admin-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }

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

  .admin-metric-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-metric-band-item:nth-child(3n) {
    border-right: 0;
  }

  .admin-metric-band-item:nth-child(n + 4) {
    border-top: 1px solid #e8eef6;
  }

  .admin-school-identity-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-school-identity-metrics > div:nth-child(3) {
    border-right: 0;
  }

  .admin-school-identity-metrics > div:nth-child(n + 4) {
    border-top: 1px solid #e8eef6;
  }
}

@media (max-width: 880px) {
  .shell.shell-wide.shell-authenticated.shell-admin {
    padding-inline: 16px;
  }

  .shell-authenticated.shell-admin .admin-workspace {
    grid-template-columns: 1fr;
  }

  .shell-authenticated.shell-admin .admin-sidebar {
    position: static;
    max-height: none;
    border-left: 1px solid #e3eaf3;
    border-radius: 18px;
  }

  .shell-authenticated.shell-admin .admin-links.admin-links-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell-authenticated.shell-admin .admin-nav-group {
    align-content: start;
  }

  .admin-two-column {
    grid-template-columns: 1fr;
  }

  .admin-school-identity-head {
    display: grid;
  }

  .admin-user-identity-head {
    display: grid;
  }

  .admin-school-identity-actions,
  .admin-user-identity-actions {
    justify-content: flex-start;
  }

  .admin-user-secondary-grid {
    grid-template-columns: 1fr;
  }

  .admin-class-identity-head {
    display: grid;
  }

  .admin-class-identity-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 620px) {
  .shell-authenticated.shell-admin .admin-links.admin-links-sidebar,
  .admin-kpi-grid,
  .admin-metric-band {
    grid-template-columns: 1fr;
  }

  .admin-metric-band-item,
  .admin-metric-band-item:nth-child(3n) {
    border-right: 0;
    border-top: 1px solid #e8eef6;
  }

  .admin-metric-band-item:first-child {
    border-top: 0;
  }

  .admin-school-identity-card,
  .admin-user-identity-card,
  .admin-class-identity-card {
    padding: 22px 20px;
  }

  .admin-school-identity-actions,
  .admin-school-identity-actions .button,
  .admin-user-identity-actions,
  .admin-user-identity-actions form,
  .admin-user-identity-actions .button {
    width: 100%;
  }

  .admin-school-identity-metrics,
  .admin-school-source-grid {
    grid-template-columns: 1fr;
  }

  .admin-school-identity-metrics > div,
  .admin-school-identity-metrics > div:nth-child(3) {
    border-right: 0;
    border-top: 1px solid #e8eef6;
  }

  .admin-school-identity-metrics > div:first-child {
    border-top: 0;
  }

  .admin-user-person {
    display: grid;
  }

  .admin-user-account-meta,
  .admin-user-metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-account-meta {
    gap: 16px;
  }

  .admin-user-access-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-user-access-card > .button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .admin-user-metric-grid > div,
  .admin-user-metric-grid > div:nth-child(5) {
    border-top: 1px solid #e7edf5;
    border-right: 0;
  }

  .admin-user-metric-grid > div:first-child {
    border-top: 0;
  }

  .admin-class-identity-actions,
  .admin-class-identity-actions .button {
    width: 100%;
  }

  .admin-class-record-grid,
  .admin-class-ranking-grid,
  .admin-class-materials-grid,
  .admin-syllabus-candidate-fields {
    grid-template-columns: 1fr;
  }

  .admin-syllabus-wide-field {
    grid-column: auto;
  }

  .shell-authenticated.shell-admin .admin-toolbar {
    align-items: flex-start;
  }

  .shell-authenticated.shell-admin .admin-toolbar-controls,
  .shell-authenticated.shell-admin .admin-toolbar-form {
    width: 100%;
    justify-content: flex-start;
  }
}

html {
  scroll-padding-top: var(--harbor-sticky-header-clearance);
}

/* ============================================================
   STUDENT APP REDESIGN — fonts, design tokens, shared primitives
   Scoped to `.shell-authenticated` only. Marketing/auth pages are
   unaffected and keep the SF Pro system-font look defined above.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/space-grotesk-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/space-grotesk-medium.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/space-grotesk-semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/space-grotesk-bold.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/instrument-sans-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/instrument-sans-medium.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/instrument-sans-semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/instrument-sans-bold.ttf") format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/jetbrains-mono-medium.ttf") format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/jetbrains-mono-semibold.ttf") format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/jetbrains-mono-bold.ttf") format("truetype");
}

.shell.shell-authenticated {
  --hb-font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hb-font-text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hb-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Light theme (default) */
  --hb-bg: #eef1f7;
  --hb-card: #fff;
  --hb-card2: #fbfcfe;
  --hb-subtle: #f7f9fc;
  --hb-hover: #f6f8fc;
  --hb-text: #0a1730;
  --hb-text2: #5a6b85;
  --hb-text3: #7a8aa3;
  --hb-border: rgba(10, 23, 48, 0.08);
  --hb-border2: rgba(10, 23, 48, 0.12);
  --hb-track: #eef1f7;
  --hb-accent: #1b49c6;
  --hb-accent-strong: #1a46c2;
  --hb-green: #0e8f4e;
  --hb-amber: #8a5300;
  --hb-red: #c0392b;

  font-family: var(--hb-font-text);
  color: var(--hb-text);
  width: min(1200px, calc(100% - 60px));
}

html[data-theme="dark"] .shell-authenticated {
  --hb-bg: #0b1220;
  --hb-card: #161f33;
  --hb-card2: #121b2c;
  --hb-subtle: #1b2740;
  --hb-hover: #1e2a44;
  --hb-text: #eaf0fb;
  --hb-text2: #a4b1c8;
  --hb-text3: #8494ad;
  --hb-border: rgba(255, 255, 255, 0.09);
  --hb-border2: rgba(255, 255, 255, 0.15);
  --hb-track: rgba(255, 255, 255, 0.1);
  --hb-accent: #7aa7ff;
  --hb-accent-strong: #6f97e6;
}

/* ---- Shared primitive: ModalShell (extends native <dialog data-modal-dialog>) ---- */
.shell-authenticated dialog[data-modal-dialog].hb-modal {
  width: min(480px, calc(100vw - 32px));
  border: 1px solid var(--hb-border);
  border-radius: 24px;
  padding: 0;
  background: var(--hb-card);
  color: var(--hb-text);
  box-shadow: 0 40px 80px -30px rgba(10, 23, 48, 0.6);
}
.shell-authenticated dialog[data-modal-dialog].hb-modal::backdrop {
  background: rgba(10, 23, 48, 0.45);
}
.hb-modal-body { position: relative; padding: 30px 30px 28px; }
.hb-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--hb-border);
  background: var(--hb-card);
  color: var(--hb-text2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hb-modal-eyebrow {
  font: 700 11.5px "Instrument Sans", sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--hb-accent);
}
.hb-modal-title {
  margin: 6px 0 22px;
  font: 600 24px "Space Grotesk", sans-serif;
  letter-spacing: -0.4px;
  color: var(--hb-text);
}
.hb-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ---- Shared primitive: InviteModal ---- */
.hb-invite-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--hb-border2);
  border-radius: 12px;
  background: var(--hb-subtle);
  font: 500 14px "Instrument Sans", sans-serif;
  color: var(--hb-text2);
}
.hb-invite-link-row button {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--hb-accent);
  color: #fff;
  font: 600 12.5px "Instrument Sans", sans-serif;
  cursor: pointer;
}
.hb-invite-share-row { display: flex; gap: 10px; margin-top: 16px; }
.hb-invite-share-row a,
.hb-invite-share-row button {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text);
  font: 600 13.5px "Instrument Sans", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

/* ---- Shared primitive: ReadinessRing / MasteryRing ---- */
.hb-ring-row { display: inline-flex; align-items: center; gap: 10px; }
/* Rotate only the progress arc so it starts at 12 o'clock. Rotating the whole
   <svg> also turned the inline numeral on its side wherever a ring renders one
   (Home's class rows, the Section rail, Deep Study's mastery ring).
   50%/50% resolves against the viewBox here, which is the ring's center. */
.hb-ring { display: block; }
.hb-ring-track { fill: none; stroke: var(--hb-track); }
.hb-ring-fg {
  fill: none;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hb-ring-fg.is-green { stroke: #34c759; }
.hb-ring-fg.is-amber { stroke: #ff9f0a; }
.hb-ring-fg.is-red { stroke: #ff3b30; }
.hb-ring-label {
  font: 600 15px "Space Grotesk", sans-serif;
  letter-spacing: -0.2px;
}
.hb-ring-label.is-green { color: #0e8f4e; }
.hb-ring-label.is-amber { color: #8a5300; }
.hb-ring-label.is-red { color: #c0392b; }
.hb-ring-inline-text {
  font: 700 12px "JetBrains Mono", monospace;
  alignment-baseline: central;
  dominant-baseline: central;
  text-anchor: middle;
}
.hb-ring-inline-text.is-green { fill: #0e8f4e; }
.hb-ring-inline-text.is-amber { fill: #8a5300; }
.hb-ring-inline-text.is-red { fill: #c0392b; }

/* ---- Shared primitive: ClassTileChip ---- */
.hb-class-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  font: 700 13px "Space Grotesk", sans-serif;
  letter-spacing: 0.3px;
  color: #fff;
}

/* ---- Shared primitive: ReadyNotReadyToggle ---- */
.hb-rnr {
  display: inline-flex;
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  overflow: hidden;
}
.hb-rnr button {
  border: none;
  background: var(--hb-card);
  color: var(--hb-text2);
  font: 600 12.5px "Instrument Sans", sans-serif;
  padding: 7px 14px;
  cursor: pointer;
}
.hb-rnr button.is-active.is-ready { background: #e7f8ef; color: #0e8f4e; }
.hb-rnr button.is-active.is-not-ready { background: #fdecec; color: #c0392b; }

/* ---- Shared primitive: ToggleSwitch ---- */
.hb-switch {
  position: relative;
  width: 50px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--hb-track);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}
.hb-switch[aria-checked="true"] {
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  box-shadow: 0 8px 16px -8px rgba(26, 70, 194, 0.7);
}
.hb-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(10, 23, 48, 0.35);
  transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.hb-switch[aria-checked="true"] .hb-switch-knob { left: 23px; }

/* ---- Shared primitive: CollapsibleSection ---- */
.hb-collapsible-headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.hb-collapsible-head {
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -5px 0 -5px -9px;
  padding: 5px 9px;
  border-radius: 9px;
  transition: background 0.15s ease;
  font-family: inherit;
  text-align: left;
  min-width: 0;
}
.hb-collapsible-head:hover { background: var(--hb-hover); }
.hb-collapsible-head:hover .hb-collapsible-title { color: var(--hb-accent); }
.hb-collapsible-head:hover .hb-collapsible-chevron { color: var(--hb-accent); }
/* Mouse clicks left the browser's default focus ring drawn around the
   header, which read as a blue outlined pill sitting on the card. Keep the
   ring for keyboard users only; hover stays the grey fill above. */
.hb-collapsible-head:focus { outline: none; }
.hb-collapsible-head:focus-visible {
  outline: 2px solid var(--hb-accent);
  outline-offset: 2px;
}
.hb-collapsible-icon {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--hb-text3);
}
.hb-collapsible-icon.is-accent { color: var(--hb-accent); }
.hb-collapsible-icon.is-danger { color: var(--hb-red); }
html[data-theme="dark"] .hb-collapsible-icon.is-danger { color: #ff9a8a; }
.hb-collapsible-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 20px "Space Grotesk", sans-serif;
  color: var(--hb-text);
  letter-spacing: -0.3px;
  transition: color 0.15s ease;
}
.hb-collapsible-count {
  font: 600 11.5px "Instrument Sans", sans-serif;
  color: var(--hb-text2);
  background: var(--hb-subtle);
  border-radius: 999px;
  padding: 2px 8px;
}
/* A subtitle stacks under the title (Add Classes' "Your classes" header),
   so the row switches from inline-flex to a column when one is present. */
.hb-collapsible-title:has(.hb-collapsible-subtitle) {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: 1;
  min-width: 0;
  font-size: 17px;
}
/* ---------------------------------------------------------------------------
 * Deep Study — header traced from `Deep Study.dc.html`: a back link, a hero
 * pairing the element title with a mastery ring, then the three-step loop
 * (Understand -> Prove it -> Say it back) above a quiet row for the rest.
 * ------------------------------------------------------------------------ */
.ds-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  color: var(--hb-text3);
  font: 600 13px "Instrument Sans", sans-serif;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.ds-back:hover { background: var(--hb-hover); color: var(--hb-accent); text-decoration: none; }

.ds-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}
.ds-hero-copy { min-width: 0; }
.ds-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 11px "Instrument Sans", sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--hb-text3);
}
.ds-hero-eyebrow-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}
.ds-hero h1 {
  margin: 8px 0 0;
  font: 600 28px/1.15 "Space Grotesk", sans-serif;
  letter-spacing: -0.5px;
  color: var(--hb-text);
}
.ds-hero-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 6px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.ds-hero-ring:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 6px var(--hb-hover);
  text-decoration: none;
}
.ds-hero-ring-label {
  font: 700 10px "Instrument Sans", sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hb-text3);
}
/* The shared ring sizes its numeral for the 44-54px rail rings; at 92px it
   needs to scale up to stay the focal point the mockup makes it. */
.ds-hero-ring .hb-ring-inline-text { font-size: 24px; }

.ds-tabs { display: flex; flex-direction: column; gap: 12px; }
.ds-loop { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ds-loop-item { display: inline-flex; align-items: center; gap: 4px; }
.ds-loop-arrow { color: var(--hb-text3); flex: none; }
.ds-loop-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 12px;
  background: var(--hb-card);
  color: var(--hb-text2);
  font: 600 14px "Instrument Sans", sans-serif;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.ds-loop-step:hover { border-color: var(--hb-accent); color: var(--hb-accent); text-decoration: none; }
.ds-loop-step.is-active {
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 24px -14px rgba(26, 70, 194, 0.8);
}
.ds-loop-step-badge {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: var(--hb-track);
  color: var(--hb-text3);
  font: 700 11px "JetBrains Mono", monospace;
}
.ds-loop-step.is-active .ds-loop-step-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.ds-quiet-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-quiet {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--hb-text3);
  font: 600 12.5px "Instrument Sans", sans-serif;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.ds-quiet:hover { background: var(--hb-hover); color: var(--hb-text); text-decoration: none; }
.ds-quiet.is-active { background: var(--hb-hover); color: var(--hb-text); }

@media (max-width: 640px) {
  .ds-hero { flex-direction: column; align-items: flex-start; }
  .ds-loop { gap: 2px; }
  .ds-loop-step { padding: 0 12px; font-size: 13px; }
}

.hb-collapsible-subtitle {
  display: block;
  font: 400 12.5px "Instrument Sans", sans-serif;
  color: var(--hb-text3);
  letter-spacing: 0;
  margin-top: 1px;
}
.hb-collapsible-badge {
  font: 700 12px "JetBrains Mono", monospace;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--hb-track);
  color: var(--hb-text3);
  flex: none;
}
.hb-collapsible-badge.is-accent { background: #eaf0fe; color: var(--hb-accent); }
html[data-theme="dark"] .hb-collapsible-badge.is-accent {
  background: rgba(122, 167, 255, 0.16);
  color: #a9c3ff;
}
.hb-collapsible-chevron {
  color: #b3bdce;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}
.hb-collapsible.is-collapsed .hb-collapsible-chevron { transform: rotate(-90deg); }
.hb-collapsible-body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease, margin 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}
.hb-collapsible-body > .hb-collapsible-inner { overflow: hidden; min-height: 0; }
.hb-collapsible.is-collapsed .hb-collapsible-body { grid-template-rows: 0fr; opacity: 0; }

/* ---- Shared primitive: Stepper ---- */
.hb-stepper { display: flex; align-items: center; gap: 8px; }
.hb-stepper-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px "Instrument Sans", sans-serif;
  color: var(--hb-text3);
}
.hb-stepper-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 700 12px "Space Grotesk", sans-serif;
  background: var(--hb-track);
  color: var(--hb-text3);
}
.hb-stepper-step.is-done .hb-stepper-step-dot { background: #0e8f4e; color: #fff; }
.hb-stepper-step.is-current .hb-stepper-step-dot { background: var(--hb-accent); color: #fff; }
.hb-stepper-step.is-current { color: var(--hb-text); }
.hb-stepper-connector { width: 24px; height: 1px; background: var(--hb-border2); }

/* ---- Shared primitive: ClassSwitcherDropdown ---- */
.hb-class-switcher summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hb-border2);
  border-radius: 12px;
  font: 600 14px "Instrument Sans", sans-serif;
  color: var(--hb-text);
  background: var(--hb-card);
}
.hb-class-switcher summary::-webkit-details-marker { display: none; }
.hb-class-switcher-menu {
  margin-top: 6px;
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  background: var(--hb-card);
  box-shadow: 0 20px 44px -20px rgba(10, 23, 48, 0.35);
  padding: 6px;
  min-width: 220px;
}
.hb-class-switcher-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font: 500 14px "Instrument Sans", sans-serif;
  color: var(--hb-text);
  text-decoration: none;
}
.hb-class-switcher-menu a:hover { background: var(--hb-hover); }

/* ---- Shared primitive: CountUpNumber (see [data-countup] handler in app-shell.js) ---- */
.hb-countup {
  font: 600 24px "Space Grotesk", sans-serif;
  color: var(--hb-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hb-countup.is-accent { color: var(--hb-accent); }
.hb-countup.is-green { color: var(--hb-green); }

/* ============================================================
   Home dashboard (renderHomeDashboard in student-pages.js)
   ============================================================ */
@keyframes hb-home-float-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.shell-home {
  width: min(1200px, calc(100% - 60px));
  min-height: 100vh;
  padding-bottom: 0;
}

body:has(.shell-home) {
  background: #eef1f7;
}

body:has(.shell-section-workspace) {
  background: #eef1f7;
}

html[data-theme="dark"] body:has(.shell-home) {
  background: #0b1220;
}

html[data-theme="dark"] body:has(.shell-section-workspace) {
  background: #0b1220;
}

.shell-section-workspace {
  min-height: 100vh;
}

.shell-authenticated .topbar {
  margin-bottom: 0;
  padding-block: 14px;
}

.shell-authenticated .brand-lockup {
  transition: opacity 150ms ease, transform 120ms ease;
}

.shell-authenticated .brand-lockup:hover {
  opacity: 0.82;
}

.shell-authenticated .brand-lockup:active {
  transform: scale(0.96);
}

.shell-authenticated .brand-logo {
  width: auto;
  height: 22px;
}

.shell-authenticated .header-pill-icon-only,
.shell-authenticated .notifications-toggle {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.shell-authenticated .nav-signed-in .header-pill-icon-only .header-pill-icon-mobile,
.shell-authenticated .nav-signed-in .notifications-toggle-icon-connect {
  width: 22px;
  height: 22px;
}

.shell-authenticated .header-avatar {
  min-height: 48px;
  gap: 6px;
  padding: 4px 12px 4px 4px;
}

.shell-authenticated .header-avatar-face {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.hb-home {
  /* Full-bleed the themed background out to the viewport edges even
     though `.shell` centers content in a max-width column — otherwise
     the old marketing `body` gradient shows through around/behind the
     dashboard in dark mode, where `--hb-text` is too light to read on
     it. */
  background: var(--hb-bg);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 24px calc(50vw - 50%) 48px;
}
.hb-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 8px 6px 4px;
  animation: hb-home-float-up 500ms ease both;
}
.hb-h1 {
  margin: 0;
  font: 600 30px/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -0.5px;
  color: var(--hb-text);
}
.hb-namelink {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}
.hb-namelink:hover { color: var(--hb-accent); text-decoration: none; }
.hb-greetlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--hb-text2);
  text-decoration: none;
}
.hb-greetlink:hover { color: var(--hb-accent); text-decoration: none; }
.hb-greetlink svg { width: 16px; height: 16px; }
.hb-greet-sub { margin: 8px 0 0; font-size: 15px; color: var(--hb-text2); }

.hb-kpis { display: flex; align-items: flex-end; gap: 24px; }
.hb-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  text-decoration: none;
  color: inherit;
  padding: 6px 10px;
  margin: -6px -4px;
  border-radius: 12px;
  transition: background 0.14s, transform 0.14s;
}
.hb-kpi:hover { background: var(--hb-hover); transform: translateY(-2px); text-decoration: none; }
.hb-kpi .hb-countup {
  font: 600 24px/1 var(--hb-font-display);
  color: var(--hb-text);
}
.hb-kpi .hb-countup.is-accent { color: var(--hb-accent); }
.hb-kpi .hb-countup.is-green { color: var(--hb-green); }
.hb-kpi > span:last-child {
  font-size: 12px;
  color: var(--hb-text3);
}
.hb-kpi-trend .hb-trend-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--hb-green);
}
.hb-spark { display: block; overflow: visible; }
.hb-kpi .hb-trend-delta {
  font-family: var(--hb-font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--hb-green);
}
.hb-kpi .hb-trend-delta.is-down { color: var(--hb-red); }
.hb-kpi-trend .hb-trend-row:has(.hb-trend-delta.is-down) { color: var(--hb-red); }
html[data-theme="dark"] .hb-kpi .hb-trend-delta.is-down,
html[data-theme="dark"] .hb-kpi-trend .hb-trend-row:has(.hb-trend-delta.is-down) {
  color: #ff9a8a;
}
.hb-kpidiv { width: 1px; height: 32px; background: var(--hb-border2); }

.hb-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 430px;
  padding: 13px 15px 13px 14px;
  background: linear-gradient(135deg, #fdf5e1, #fefaf0);
  border: 1px solid #f0deb0;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(138, 83, 0, 0.06);
}
html[data-theme="dark"] .hb-tip { background: linear-gradient(135deg, #2a2210, #241d0d); border-color: #4a3a12; }
.hb-tip-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f6e2a6;
  color: #8a5300;
  flex: none;
}
.hb-tip-text { font-size: 13.5px; line-height: 1.5; color: #6b5a2e; }
html[data-theme="dark"] .hb-tip-text { color: #e0c98a; }
.hb-tip-text a { color: var(--hb-accent); font-weight: 600; white-space: nowrap; }
.hb-tip-text strong { color: #8a5300; }
html[data-theme="dark"] .hb-tip-text strong { color: #e0c98a; }
.hb-tip-dismiss {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b79a52;
  cursor: pointer;
  transition: background 140ms ease;
}
.hb-tip-dismiss:hover { background: rgba(138, 83, 0, 0.08); }

.hb-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
@media (max-width: 920px) { .hb-grid { grid-template-columns: 1fr; } }

.hb-sec {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
  animation: hb-home-float-up 600ms ease 60ms both;
}
.hb-rail { display: flex; flex-direction: column; gap: 20px; }
.hb-rail .hb-sec { padding: 20px 22px; }
.hb-rail .hb-collapsible-title {
  font-size: 15px;
  letter-spacing: 0;
}
.hb-sec-classes .hb-collapsible-headrow { margin-bottom: 18px; }
.hb-rail .hb-sec:nth-child(1) { animation-delay: 120ms; }
.hb-rail .hb-sec:nth-child(2) { animation-delay: 160ms; }
.hb-rail .hb-sec:nth-child(3) { animation-delay: 200ms; }

.hb-sec-headnote {
  font: 600 11.5px "Instrument Sans", sans-serif;
  color: var(--hb-text3);
  white-space: nowrap;
}
.hb-sec-viewall svg { width: 15px; height: 15px; }
.hb-sec-viewall {
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  color: var(--hb-accent);
  text-decoration: none;
}
.hb-sec-viewall svg {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hb-sec-viewall:hover { text-decoration: none; }
.hb-sec-viewall:hover svg { transform: translateX(3px); }
.hb-sec-add-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--hb-accent);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  border-radius: 999px;
}
.hb-sec-add-button:hover { color: var(--hb-accent-strong); transform: scale(1.12); }

.hb-classlist { display: flex; flex-direction: column; }
.hb-classrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--hb-card2);
  border: 1px solid var(--hb-border2);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.hb-classrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -20px rgba(16, 42, 90, 0.4);
  border-color: var(--hb-border2);
}
.hb-classrow--up {
  padding: 20px 22px 20px 24px;
  background: var(--hb-card);
  box-shadow: 0 14px 30px -18px rgba(16, 42, 90, 0.5);
}
.hb-classrow--up:hover { box-shadow: 0 26px 46px -22px rgba(16, 42, 90, 0.62); }
.hb-classrow-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2a62f0, #1747c9);
}
.hb-classrow-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.hb-classrow-copy { min-width: 0; }
.hb-classrow-toprow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hb-classrow-toprow h3 { margin: 0; font: 600 20px "Space Grotesk", sans-serif; }
.hb-classrow-toprow h3 a { color: var(--hb-text); text-decoration: none; transition: color 0.15s; }
.hb-classrow-toprow h3 a:hover { color: var(--hb-accent); text-decoration: none; }
.hb-classrow:not(.hb-classrow--up) .hb-classrow-toprow h3 { font-size: 18px; }
.hb-classrow-upnext {
  font: 700 10.5px "Instrument Sans", sans-serif;
  letter-spacing: 1px;
  color: #fff;
  background: #1747c9;
  padding: 3px 9px;
  border-radius: 6px;
}
.hb-classrow-title { margin: 5px 0 10px; font-size: 13.5px; color: var(--hb-text2); }
.hb-classrow-subtitle { margin: 5px 0 0; font-size: 13.5px; color: var(--hb-text2); }
.hb-classrow-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hb-classrow-pill {
  font: 600 12px "Instrument Sans", sans-serif;
  padding: 4px 10px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.14s;
}
.hb-classrow-pill:hover { text-decoration: none; }
.hb-classrow-pill.is-info { color: var(--hb-accent); background: #eaf0fe; }
.hb-classrow-pill.is-info:hover { background: #dce8ff; }
html[data-theme="dark"] .hb-classrow-pill.is-info { background: rgba(122, 167, 255, 0.16); }
.hb-classrow-pill.is-danger { color: #c0392b; background: #fdecec; }
.hb-classrow-pill.is-danger:hover { background: #fbdddd; }
html[data-theme="dark"] .hb-classrow-pill.is-danger { background: rgba(224, 86, 63, 0.18); color: #ff9a8a; }

.hb-classrow-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 11.5px "Instrument Sans", sans-serif;
  padding: 3px 9px;
  border-radius: 999px;
}
.hb-classrow-status-dot { width: 5px; height: 5px; border-radius: 999px; background: currentColor; }
.hb-classrow-status.is-warning { background: #fdf1d8; color: #8a5300; }
.hb-classrow-status.is-success { background: #e4f6ee; color: #0e8f4e; }
.hb-classrow-status.is-info { background: #eaf0fe; color: #1b49c6; }
html[data-theme="dark"] .hb-classrow-status.is-warning { background: rgba(217, 154, 43, 0.18); color: #e8b04a; }
html[data-theme="dark"] .hb-classrow-status.is-success { background: rgba(14, 143, 78, 0.2); color: #4fd394; }
html[data-theme="dark"] .hb-classrow-status.is-info { background: rgba(122, 167, 255, 0.16); color: #a9c3ff; }

.hb-classrow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 30px;
  border-radius: 13px;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  color: #fff;
  font: 600 15.5px "Instrument Sans", sans-serif;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 28px -12px rgba(26, 70, 194, 0.8);
  flex: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hb-classrow-cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 22px 34px -12px rgba(26, 70, 194, 0.9);
}
.hb-classrow-cta:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 5px 12px -8px rgba(26, 70, 194, 0.85);
}
.hb-classrow-cta-arrow { transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.hb-classrow-cta:hover .hb-classrow-cta-arrow { transform: translateX(4px); }

.hb-classrow-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--hb-card);
  color: var(--hb-accent);
  border: 1.5px solid var(--hb-border2);
  font: 600 14.5px "Instrument Sans", sans-serif;
  flex: none;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.hb-classrow-secondary-cta:hover { background: var(--hb-hover); border-color: var(--hb-accent); text-decoration: none; }
.hb-classrow-secondary-cta:active {
  background: #e0eaff;
  border-color: var(--hb-accent);
  transform: scale(0.985);
}
.hb-classrow-plus { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.hb-classrow-secondary-cta:hover .hb-classrow-plus { transform: rotate(90deg); }

.hb-addclass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border: 1px dashed var(--hb-border2);
  border-radius: 14px;
  color: var(--hb-text2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.hb-addclass:hover { border-color: var(--hb-accent); color: var(--hb-accent); text-decoration: none; }
.hb-addclass:active { transform: scale(0.99); }
.hb-addclass svg { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.hb-addclass:hover svg { transform: rotate(90deg); }

.hb-review-list { display: flex; flex-direction: column; gap: 10px; }
.hb-review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.14s, border-color 0.14s;
}
.hb-review-row:hover { background: var(--hb-hover); border-color: var(--hb-border2); text-decoration: none; }
.hb-review-row:active {
  background: var(--hb-hover);
  border-color: var(--hb-border2);
  transform: scale(0.994);
}
.hb-review-datebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eaf0fe;
  flex: none;
}
html[data-theme="dark"] .hb-review-datebox { background: rgba(122, 167, 255, 0.14); }
.hb-review-datebox strong { font: 600 13.5px "Space Grotesk", sans-serif; color: var(--hb-accent); line-height: 1; white-space: nowrap; }
.hb-review-datebox span { font: 600 9px "JetBrains Mono", monospace; color: #5f7bb0; letter-spacing: 1px; margin-top: 4px; }
.hb-review-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hb-review-copy strong { font: 600 15px "Space Grotesk", sans-serif; color: var(--hb-text); }
.hb-review-copy span { font-size: 12.5px; color: var(--hb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-review-row.is-material { align-items: flex-start; }
.hb-review-pill { flex: none; font: 600 11.5px "Instrument Sans", sans-serif; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hb-review-pill.is-high,
.hb-review-pill.is-mid,
.hb-review-pill.is-pending,
.hb-review-pill.is-low,
.hb-review-pill.is-neutral { background: #eef4ff; color: var(--hb-accent); }
.hb-review-pill.is-danger { background: #fdecec; color: #c0392b; }
html[data-theme="dark"] .hb-review-pill.is-danger { background: rgba(224, 86, 63, 0.18); color: #ff9a8a; }
html[data-theme="dark"] .hb-review-pill:not(.is-danger) { background: rgba(122, 167, 255, 0.16); color: #a9c3ff; }
/* Assessment rows nest the readiness pill under the class name (the material
   rows keep it as a right-aligned sibling), then end with a chevron. */
.hb-review-copy .hb-review-pill {
  align-self: flex-start;
  margin-top: 6px;
  overflow: visible;
  font-size: 11.5px;
}
.hb-review-chevron { flex: none; color: #c3ccdb; }

.hb-review-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--hb-subtle);
  border: 1px dashed var(--hb-border2);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.hb-review-empty.is-link:hover { border-color: var(--hb-accent); text-decoration: none; }
.hb-review-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #e4f6ee;
  color: #12a26b;
  flex: none;
}
html[data-theme="dark"] .hb-review-empty-icon { background: rgba(14, 143, 78, 0.2); color: #4fd394; }
.hb-review-empty strong { display: block; font-weight: 600; color: var(--hb-text); font-size: 14px; }
.hb-review-empty span { display: block; font-size: 12.5px; color: var(--hb-text3); margin-top: 3px; line-height: 1.5; }

.hb-topics-lead { margin: 0 0 15px; font-size: 12.5px; color: var(--hb-text3); }
.hb-topics-list { display: flex; flex-direction: column; gap: 14px; }
.hb-topic-row {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0 -10px;
  padding: 9px 10px;
  border-radius: 11px;
  transition: background 0.14s;
}
.hb-topic-row:hover { background: var(--hb-hover); text-decoration: none; }
.hb-topic-row:active { transform: scale(0.99); }
.hb-topic-row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 10px; }
.hb-topic-row-label { font: 600 13.5px "Instrument Sans", sans-serif; color: var(--hb-text); }
.hb-topic-row-percent { display: inline-flex; align-items: center; gap: 6px; font: 700 12px "JetBrains Mono", monospace; flex: none; }
.hb-topic-row-percent svg { color: #c3ccdb; }
.hb-topic-row-percent.is-green { color: var(--hb-green); }
.hb-topic-row-percent.is-amber { color: var(--hb-amber); }
.hb-topic-row-percent.is-red { color: var(--hb-red); }
.hb-topic-row-track { height: 6px; border-radius: 999px; background: var(--hb-bg); overflow: hidden; }
.hb-topic-row-fill { height: 100%; border-radius: 999px; }
.hb-topic-row-fill.is-green { background: linear-gradient(90deg, #22b573, #0e8f4e); }
.hb-topic-row-fill.is-amber { background: linear-gradient(90deg, #e8b04a, #d99a2b); }
.hb-topic-row-fill.is-red { background: linear-gradient(90deg, #e0563f, #c0392b); }
.hb-topics-studyall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--hb-accent);
  text-decoration: none;
}
.hb-topics-studyall:hover { text-decoration: none; }

.shell-authenticated #home-add-assessment-modal {
  width: min(520px, calc(100vw - 32px));
  border: 1.5px solid var(--hb-border2);
  border-radius: 24px;
}
.shell-authenticated #home-add-assessment-modal:focus {
  outline: none;
}
#home-add-assessment-modal .hb-modal-body {
  padding: 30px 32px 28px;
}
#home-add-assessment-modal .hb-modal-close {
  top: 25px;
  right: 28px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: var(--hb-text3);
  background: transparent;
  transition: color 140ms ease, background 140ms ease, transform 120ms ease;
}
#home-add-assessment-modal .hb-modal-close:hover,
#home-add-assessment-modal .hb-modal-close:focus-visible {
  color: var(--hb-accent);
  background: var(--hb-hover);
}
#home-add-assessment-modal .hb-modal-close:active {
  transform: scale(0.9);
}
#home-add-assessment-modal .hb-modal-title {
  margin: 4px 0 22px;
  font: 600 24px/1.2 var(--hb-font-display);
  letter-spacing: -0.35px;
}
.hb-assessment-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hb-assessment-calendar {
  display: grid;
  gap: 14px;
}
.hb-assessment-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hb-assessment-calendar-toolbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
}
.hb-assessment-calendar-toolbar > strong {
  color: var(--hb-text);
  font: 600 20px/1 var(--hb-font-display);
  text-align: center;
}
.hb-assessment-month-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid var(--hb-border2);
  border-radius: 12px;
  color: var(--hb-text2);
  background: var(--hb-card);
  font: 600 26px/1 var(--hb-font-text);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease,
    transform 120ms ease;
}
.hb-assessment-month-button:hover,
.hb-assessment-month-button:focus-visible {
  border-color: var(--hb-accent);
  color: var(--hb-accent);
  background: var(--hb-hover);
}
.hb-assessment-month-button:active {
  transform: scale(0.92);
}
.hb-assessment-weekdays,
.hb-assessment-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
}
.hb-assessment-weekdays {
  color: var(--hb-text3);
  font: 600 13px/1 var(--hb-font-text);
  text-align: center;
}
.hb-assessment-calendar-grid {
  row-gap: 6px;
}
.hb-assessment-calendar-grid > span,
.hb-assessment-day {
  min-width: 0;
  height: 40px;
}
.hb-assessment-day {
  display: grid;
  place-items: center;
  width: 40px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--hb-text);
  background: transparent;
  font: 600 16px/1 var(--hb-font-text);
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease, transform 120ms ease,
    box-shadow 120ms ease;
}
.hb-assessment-day:hover:not(:disabled),
.hb-assessment-day:focus-visible:not(:disabled) {
  color: var(--hb-accent);
  background: var(--hb-hover);
  box-shadow: 0 0 0 1px var(--hb-border2);
}
.hb-assessment-day:active:not(:disabled) {
  transform: scale(0.9);
}
.hb-assessment-day.is-selected {
  color: #ffffff;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  box-shadow: 0 8px 18px -10px rgba(26, 70, 194, 0.75);
}
.hb-assessment-day:disabled {
  color: var(--hb-text3);
  cursor: not-allowed;
  opacity: 0.42;
}
.hb-assessment-field-label {
  display: block;
  margin: 20px 0 10px;
  color: var(--hb-text3);
  font: 600 13px/1 var(--hb-font-text);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.hb-assessment-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hb-chip-radio { position: relative; }
.hb-chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hb-chip-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 13px;
  cursor: pointer;
  font: 600 16px/1 var(--hb-font-text);
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text2);
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease,
    transform 120ms ease, box-shadow 120ms ease;
}
.hb-chip-radio:hover span {
  border-color: var(--hb-accent);
  color: var(--hb-accent);
  background: var(--hb-hover);
}
.hb-chip-radio:active span {
  transform: scale(0.96);
}
.hb-chip-radio input:checked + span {
  border-color: var(--hb-accent);
  background: #eef4ff;
  color: var(--hb-accent-strong);
  box-shadow: 0 8px 18px -12px rgba(33, 89, 230, 0.45);
}
html[data-theme="dark"] .hb-chip-radio input:checked + span { background: rgba(122, 167, 255, 0.16); }
.hb-chip-radio input:focus-visible + span { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hb-assessment-submit {
  margin-top: 26px;
  width: 100%;
  height: 58px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font: 600 17px/1 var(--hb-font-text);
  color: #fff;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  box-shadow: 0 12px 22px -12px rgba(26, 70, 194, 0.7);
  transition: filter 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}
.hb-assessment-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -14px rgba(26, 70, 194, 0.85);
}
.hb-assessment-submit:active:not(:disabled) {
  transform: scale(0.98);
}
.hb-assessment-submit:disabled {
  color: rgba(255, 255, 255, 0.9);
  background: #bdc8da;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  #home-add-assessment-modal .hb-modal-body {
    padding: 24px 20px 22px;
  }
  #home-add-assessment-modal .hb-modal-close {
    top: 19px;
    right: 17px;
  }
  .hb-assessment-calendar {
    gap: 11px;
  }
  .hb-assessment-calendar-toolbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }
  .hb-assessment-month-button {
    width: 42px;
    height: 42px;
  }
  .hb-assessment-calendar-grid {
    row-gap: 3px;
  }
  .hb-assessment-calendar-grid > span,
  .hb-assessment-day {
    height: 36px;
  }
  .hb-assessment-day {
    width: 36px;
    font-size: 14px;
  }
  .hb-assessment-field-label {
    margin-top: 16px;
  }
  .hb-chip-radio span {
    min-height: 44px;
    padding: 0 17px;
    font-size: 14px;
  }
  .hb-assessment-submit {
    height: 54px;
    margin-top: 22px;
  }
  .shell-home { width: calc(100% - 32px); }
  .shell-home .topbar { padding-block: 12px; }
  .hb-welcome { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px; }
  .hb-kpis { width: 100%; flex-wrap: wrap; gap: 16px 26px; }
  .hb-kpidiv { display: none; }
  .hb-h1 { font-size: 26px; }
  .hb-classrow { flex-wrap: wrap; gap: 14px; }
  .hb-classrow-cta,
  .hb-classrow-secondary-cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-welcome,
  .hb-sec {
    animation: none;
  }

  .hb-kpi,
  .hb-classrow,
  .hb-classrow-cta,
  .hb-classrow-secondary-cta,
  .hb-review-row,
  .hb-topic-row {
    transition-duration: 0.01ms;
  }
}

.home-first-run {
  display: grid;
  min-height: min(68vh, 720px);
  place-items: center;
  padding: clamp(18px, 5vw, 56px) 0;
}

.home-first-run-card {
  display: grid;
  width: min(100%, 720px);
  gap: clamp(16px, 2vw, 22px);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--hb-border);
  border-radius: 22px;
  background: var(--hb-card);
  box-shadow: 0 24px 60px rgba(16, 42, 90, 0.1);
}

.home-first-run-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  background: rgba(27, 73, 198, 0.1);
  color: var(--hb-accent);
}

.home-first-run-icon svg {
  width: 27px;
  height: 27px;
}

.home-first-run-eyebrow {
  color: var(--hb-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.home-first-run-card h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: clamp(2.25rem, 6vw, 4.1rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-first-run-card > p {
  max-width: 600px;
  margin: 0;
  color: var(--hb-text2);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.home-first-run-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.home-first-run-step {
  min-width: 0;
}

.home-first-run-step-track {
  display: flex;
  align-items: center;
  width: 100%;
}

.home-first-run-step-dot {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--hb-hover);
  color: var(--hb-text3);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-first-run-step.is-current .home-first-run-step-dot {
  background: var(--hb-accent);
  color: #ffffff;
}

.home-first-run-step.is-complete .home-first-run-step-dot {
  background: var(--hb-green);
  color: #ffffff;
}

.home-first-run-step-line {
  height: 2px;
  flex: 1;
  margin: 0 8px;
  background: var(--hb-border2);
}

.home-first-run-step.is-complete .home-first-run-step-line {
  background: var(--hb-green);
}

.home-first-run-step-label {
  display: block;
  margin-top: 8px;
  color: var(--hb-text3);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-first-run-step.is-current .home-first-run-step-label,
.home-first-run-step.is-complete .home-first-run-step-label {
  color: var(--hb-text);
}

.home-first-run-action {
  width: max-content;
  min-height: 54px;
  gap: 10px;
  margin-top: 2px;
  padding-inline: 24px;
}

/* ============================================================
   Shared study element card reskin — same selectors/DOM as the
   existing renderStudyElementCard/renderElementInteractionControls
   (apps/web/src/app.js), restyled only. These rules are declared
   after the base rules above (~L8929-L10010) so they win on equal
   specificity without touching the underlying structural/state CSS
   (hidden/expanded/menu-open/audio-status attribute selectors, etc).
   Renders on every logged-in page that embeds the card, including
   ones not yet rebuilt — intentional, see Phase 1.5 of the redesign.
   ============================================================ */
.shell-authenticated .study-card {
  padding: 18px 20px 16px;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: var(--hb-card);
  box-shadow: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.shell-authenticated .study-card:hover {
  transform: translateY(-3px);
  border-color: var(--hb-border2);
  box-shadow: 0 24px 48px -24px rgba(16, 42, 90, 0.45);
}

.shell-authenticated .study-card-predicted-knows,
.shell-authenticated .study-card-focus.study-card-predicted-knows {
  border-color: rgba(18, 162, 107, 0.55);
  background: var(--hb-card);
  box-shadow: 0 0 0 3px rgba(18, 162, 107, 0.13);
}
.shell-authenticated .study-card-predicted-knows .study-card-content-shell,
.shell-authenticated .study-card-focus.study-card-predicted-knows .study-card-content-shell { border-color: transparent; }
.shell-authenticated .study-card-predicted-unknown,
.shell-authenticated .study-card-focus.study-card-predicted-unknown {
  border-color: rgba(224, 86, 63, 0.5);
  background: var(--hb-card);
  box-shadow: 0 0 0 3px rgba(224, 86, 63, 0.13);
}
.shell-authenticated .study-card-predicted-unknown .study-card-content-shell,
.shell-authenticated .study-card-focus.study-card-predicted-unknown .study-card-content-shell { border-color: transparent; }
.shell-authenticated .study-card-focus {
  border-color: var(--hb-border2);
  background: var(--hb-card);
  box-shadow: 0 18px 32px -20px rgba(16, 42, 90, 0.35);
}

.shell-authenticated .study-card-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font: 600 11.5px "Instrument Sans", sans-serif;
}
.shell-authenticated .study-card-tag-icon svg, .shell-authenticated .study-chip-icon svg { width: 12px; height: 12px; }
.shell-authenticated .study-card-tag-important { color: #8a5300; background: #fdf1d8; }
.shell-authenticated .study-card-tag-confusing { color: #7a3fd1; background: #f1e9fd; }
.shell-authenticated .study-card-tag-risk { color: #75500a; background: #fff2cf; }
.shell-authenticated .study-card-tag-risk-danger { color: #a2352d; background: #fde9e7; }
.shell-authenticated .study-card-tag-risk-neutral { color: #53657f; background: #edf2f8; }
html[data-theme="dark"] .shell-authenticated .study-card-tag-important { color: #e8b04a; background: rgba(217, 154, 43, 0.18); }
html[data-theme="dark"] .shell-authenticated .study-card-tag-confusing { color: #c9a8f5; background: rgba(122, 63, 214, 0.22); }
html[data-theme="dark"] .shell-authenticated .study-card-tag-risk { color: #f0c369; background: rgba(217, 154, 43, 0.18); }
html[data-theme="dark"] .shell-authenticated .study-card-tag-risk-danger { color: #f1a59d; background: rgba(196, 61, 48, 0.2); }
html[data-theme="dark"] .shell-authenticated .study-card-tag-risk-neutral { color: #b5c3d8; background: rgba(122, 144, 176, 0.18); }

.shell-authenticated .study-card-expand-button { color: var(--hb-text3); }
.shell-authenticated .study-card-expand-button:hover, .shell-authenticated .study-card-expand-button:focus-visible {
  background: var(--hb-hover);
  color: var(--hb-text);
}

.shell-authenticated .study-card-heading strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--hb-text);
}

.shell-authenticated .study-card-audio-button {
  border-color: var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-accent);
}
.shell-authenticated .study-card-audio-button:hover, .shell-authenticated .study-card-audio-button:focus-visible {
  background: var(--hb-accent);
  border-color: var(--hb-accent);
  color: #fff;
}
.shell-authenticated .study-card-audio-status { color: var(--hb-text3); }

.shell-authenticated .study-card-content-shell {
  font-family: "Instrument Sans", sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--hb-text2);
}
.shell-authenticated .study-card-prediction,
.shell-authenticated .study-card-prediction-wrap summary.study-card-prediction {
  border-radius: 999px;
  padding: 3px 10px;
  font: 600 11.5px "Instrument Sans", sans-serif;
}
.shell-authenticated .study-card-prediction-popover {
  border-radius: 14px;
  border-color: var(--hb-border);
  background: var(--hb-card);
  color: var(--hb-text2);
  font: 500 12.5px/1.5 "Instrument Sans", sans-serif;
  box-shadow: 0 26px 50px -18px rgba(16, 42, 90, 0.4);
}
.shell-authenticated .study-card-prediction-knows { background: #e4f6ee; color: #0f7a53; }
.shell-authenticated .study-card-prediction-unknown { background: #fdecec; color: #c0392b; }
.shell-authenticated .study-card-prediction-evaporating { background: #fff1cf; color: #986100; }
html[data-theme="dark"] .shell-authenticated .study-card-prediction-knows { background: rgba(14, 143, 78, 0.2); color: #4fd394; }
html[data-theme="dark"] .shell-authenticated .study-card-prediction-unknown { background: rgba(224, 86, 63, 0.18); color: #ff9a8a; }
html[data-theme="dark"] .shell-authenticated .study-card-prediction-evaporating { background: rgba(224, 159, 31, 0.2); color: #ffd276; }

.shell-authenticated .study-button {
  border-radius: 12px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, background 0.14s, border-color 0.14s;
}
.shell-authenticated .study-button-know {
  border-color: #0f9f6e;
  background: transparent;
  color: #0f9f6e;
  box-shadow: none;
}
.shell-authenticated .study-button-know:hover:not(.study-button-active) {
  border-color: #22b573;
  background: rgba(15, 159, 110, 0.08);
  color: #0f9f6e;
  transform: translateY(-1px);
  box-shadow: none;
}
.shell-authenticated .study-button-dont-know {
  border-color: var(--hb-accent);
  background: transparent;
  color: var(--hb-accent);
  box-shadow: none;
}
.shell-authenticated .study-button-dont-know:hover:not(.study-button-active) {
  background: rgba(33, 89, 230, 0.08);
  border-color: var(--hb-accent);
  transform: translateY(-1px);
  box-shadow: none;
}
.shell-authenticated .study-button-know.study-button-active,
.shell-authenticated .study-button-know.study-button-active:hover {
  border-color: #0f9f6e;
  background: linear-gradient(180deg, #22b573, #0f9f6e);
  color: #fff;
  filter: saturate(1.2);
  box-shadow: 0 12px 24px -12px rgba(15, 159, 110, 0.85);
}
.shell-authenticated .study-button-dont-know.study-button-active,
.shell-authenticated .study-button-dont-know.study-button-active:hover {
  border-color: var(--hb-accent);
  background: linear-gradient(180deg, #2f63ec, #1b49c6);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(33, 89, 230, 0.68);
}

html[data-theme="dark"] .shell-authenticated .study-button-know:not(.study-button-active) {
  border-color: #4fd394;
  color: #4fd394;
}

html[data-theme="dark"] .shell-authenticated .study-button-know:hover:not(.study-button-active) {
  background: rgba(79, 211, 148, 0.1);
  color: #67dfaa;
}

html[data-theme="dark"] .shell-authenticated .study-button-dont-know:hover:not(.study-button-active) {
  background: rgba(122, 167, 255, 0.1);
}

.shell-authenticated .study-share-button {
  border-radius: 10px;
  background: var(--hb-subtle);
  color: var(--hb-text2);
  font: 600 12.5px "Instrument Sans", sans-serif;
  border-color: transparent;
}
.shell-authenticated .study-share-button:hover {
  background: var(--hb-accent);
  color: #fff;
}

.shell-authenticated .study-secondary-summary { color: var(--hb-text3); }
.shell-authenticated .study-secondary-summary:hover { background: var(--hb-hover); }
.shell-authenticated .study-secondary-disclosure[open] .study-secondary-panel {
  border-radius: 14px;
  border-color: var(--hb-border);
  background: var(--hb-card);
  box-shadow: 0 26px 50px -18px rgba(16, 42, 90, 0.4);
}

.shell-authenticated .study-chip {
  font-family: "Instrument Sans", sans-serif;
  font-size: 13.5px;
  color: var(--hb-text);
  border-radius: 9px;
}
.shell-authenticated .study-chip:hover { background: var(--hb-hover); }
.shell-authenticated .study-chip-important { color: #b46a00; }
.shell-authenticated .study-chip-confusing { color: #7a3fd1; }
.shell-authenticated .study-chip-dismiss { color: #c0392b; }
.shell-authenticated .study-chip-dismiss:hover { background: rgba(224, 86, 63, 0.1); }
html[data-theme="dark"] .shell-authenticated .study-chip-important { color: #e8b04a; }
html[data-theme="dark"] .shell-authenticated .study-chip-confusing { color: #c9a8f5; }
html[data-theme="dark"] .shell-authenticated .study-chip-dismiss { color: #ff9a8a; }

.shell-authenticated .study-decision-feedback { color: var(--hb-text3); font: 500 12px "Instrument Sans", sans-serif; }

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-text);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.shell.shell-wide {
  width: 100%;
  max-width: none;
  padding: 0 16px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: sticky;
  top: 0;
  z-index: 220;
  overflow: visible;
}

.performance-trial-banner {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 4px 4px 13px;
  border: 1px solid rgba(207, 224, 239, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(16, 42, 90, 0.05);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 160ms ease,
    border-color 160ms ease;
}

.performance-trial-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 23, 48, 0.12);
  box-shadow: 0 12px 24px -14px rgba(16, 42, 90, 0.4);
}

.performance-trial-banner strong {
  color: var(--text);
  font-weight: 700;
}

.performance-trial-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 16px -8px rgba(26, 70, 194, 0.7);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, opacity 140ms ease;
  will-change: transform;
}

.performance-trial-banner a:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(8, 28, 45, 0.24);
}

.performance-trial-banner a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.performance-trial-banner a:active {
  transform: translateY(0) scale(0.95);
  filter: brightness(0.92);
  box-shadow: 0 1px 3px rgba(8, 28, 45, 0.22);
  transition-duration: 60ms;
}

/* Pressed → navigating: hold a loading state until the next page paints */
.performance-trial-banner a.is-loading {
  pointer-events: none;
  transform: translateY(0) scale(0.97);
  filter: brightness(0.95);
}

.performance-trial-banner a.is-loading::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  animation: performance-trial-spin 600ms linear infinite;
}

@keyframes performance-trial-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .performance-trial-banner a,
  .performance-trial-banner a:hover,
  .performance-trial-banner a:active { transform: none; transition: filter 140ms ease; }
  .performance-trial-banner a.is-loading::after { animation-duration: 1200ms; }
}

.performance-trial-banner.is-expired a {
  background: var(--text);
}

.performance-trial-banner.is-expired a:hover {
  filter: brightness(1.35);
}

/*
 * Harbor Home.dc.html centers the trial pill between the brand and the nav
 * icons (the nav is `justify-content:space-between` with exactly these three
 * children). An earlier `margin-left:auto` here pinned it against the avatar.
 */
.topbar .performance-trial-banner {
  flex: 0 0 auto;
}

@media (min-width: 901px) {
  .topbar-signed-in .performance-trial-banner {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .topbar-signed-in .performance-trial-banner:hover {
    transform: translate(-50%, -2px);
  }
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(207, 224, 239, 0.9);
  box-shadow: 0 8px 24px rgba(10, 31, 53, 0.04);
  z-index: -1;
}

.topbar-signed-in {
  flex-wrap: wrap;
  row-gap: 10px;
}

.public-site-topbar {
  padding: 14px 10px;
  border-radius: 0;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(207, 224, 239, 0.9);
}

.public-site-nav {
  gap: 6px;
}

.public-site-nav .public-nav-link,
.public-site-nav .public-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.public-site-nav .public-nav-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  box-shadow: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.public-site-nav .public-nav-link.is-current {
  color: var(--text);
}

.public-site-nav .public-nav-link:hover,
.public-site-nav .public-nav-link:focus-visible {
  color: var(--text);
  opacity: 0.78;
  transform: none;
  background: transparent;
  border-color: transparent;
}

.public-site-nav .public-nav-link-secondary {
  margin-left: 4px;
}

.brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(148px, 16vw, 180px);
  height: auto;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 90;
}

.nav a,
.nav button,
.notifications-toggle {
  border: 1px solid rgba(167, 203, 223, 0.8);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 2px;
  padding: 10px 16px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.nav a:hover,
.nav button:hover,
.notifications-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.nav-signed-in {
  margin-left: auto;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-signed-in .header-pill,
.nav-signed-in .notifications-toggle,
.nav-signed-in .header-avatar {
  min-height: 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-signed-in .header-pill,
.nav-signed-in .notifications-toggle {
  border-radius: 10px;
}

.nav-signed-in .header-pill:hover,
.nav-signed-in .header-pill:focus-visible,
.nav-signed-in .notifications-toggle:hover,
.nav-signed-in .notifications-toggle:focus-visible {
  border-color: transparent;
  background: #f2f4f7;
  transform: none;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-pill-primary {
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.header-pill-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.header-pill-icon-mobile,
.notifications-toggle-icon-connect {
  width: 42px;
  height: 42px;
  color: inherit;
}

.nav-signed-in .header-pill-icon-only .header-pill-icon-mobile,
.nav-signed-in .notifications-toggle-icon-connect {
  width: 48px;
  height: 48px;
}

.header-pill-icon svg,
.notifications-toggle-icon svg,
.header-avatar-caret svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mobile-tab-icon-svg {
  overflow: visible;
}

.header-pill-icon-only {
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.notifications-menu {
  position: relative;
}

.notifications-menu[open] {
  z-index: 5000;
}

.notifications-menu summary {
  list-style: none;
}

.notifications-menu summary::-webkit-details-marker {
  display: none;
}

.notifications-toggle {
  min-width: 56px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.notifications-toggle.has-unread {
  border-color: rgba(77, 171, 92, 0.44);
}

.notifications-toggle-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.notifications-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid #ffffff;
  background: #45ae56;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.notifications-panel {
  position: fixed;
  top: 94px;
  right: max(16px, calc((100vw - 1120px) / 2 + 16px));
  width: min(380px, calc(100vw - 32px));
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(167, 203, 223, 0.82);
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(10, 31, 53, 0.14);
  z-index: 5100;
  overflow: hidden;
}

.notifications-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(8, 32, 51, 0.12);
  background: #ffffff;
}

.notifications-panel-header span {
  color: var(--muted);
  font-size: 0.95rem;
}

.notifications-list {
  display: block;
  background: #ffffff;
}

.notifications-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 22px;
  background: #ffffff;
}

.notifications-row + .notifications-row {
  border-top: 1px solid rgba(8, 32, 51, 0.12);
}

.nav .notifications-item-form,
.nav .notifications-clear-form {
  margin: 0;
}

.nav .notifications-item-link {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  width: 100%;
  font: inherit;
  text-align: left;
}

.notifications-item-copy {
  display: grid;
  gap: 0;
}

.notifications-item-copy strong {
  font-weight: 400;
}

.notifications-item-time,
.notifications-empty span,
.notifications-clear {
  color: var(--muted);
}

.notifications-item-time {
  font-size: 0.92rem;
}

.nav .notifications-clear {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease;
}

.nav .notifications-item-link:hover,
.nav .notifications-clear:hover {
  transform: none;
  background: transparent;
}

.notifications-clear:hover {
  color: var(--accent);
}

.notifications-empty {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  background: #ffffff;
}

.header-avatar-menu {
  position: relative;
  margin-bottom: -12px;
  padding-bottom: 12px;
}

.header-avatar-menu[open] {
  z-index: 5200;
}

.header-avatar-menu summary {
  list-style: none;
}

.header-avatar-menu summary::-webkit-details-marker {
  display: none;
}

.header-avatar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: box-shadow 140ms ease, background 140ms ease;
}

.header-avatar-menu[open] .header-avatar,
.header-avatar-menu:hover .header-avatar,
.header-avatar-menu:focus-within .header-avatar {
  background: transparent;
}

.header-avatar-face {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0071e3;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  transition: box-shadow 150ms ease;
}

.header-avatar-menu[open] .header-avatar-face,
.header-avatar-menu:hover .header-avatar-face,
.header-avatar-menu:focus-within .header-avatar-face {
  box-shadow: 0 0 0 4px #dbe6fb;
}

.header-avatar-face img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.header-avatar-caret {
  width: 16px;
  height: 16px;
  color: #111111;
  transition: transform 140ms ease;
}

.header-avatar-menu[open] .header-avatar-caret {
  transform: rotate(180deg);
}

.header-avatar-panel {
  position: absolute;
  right: 0;
  top: 100%;
  width: 236px;
  padding: 8px;
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 26px 50px -18px rgba(16, 42, 90, 0.4);
  display: grid;
  gap: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .header-avatar-menu:not([open]) .header-avatar-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .header-avatar-menu:hover .header-avatar-panel,
  .header-avatar-menu:focus-within .header-avatar-panel {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-avatar-panel {
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .header-avatar-menu:hover .header-avatar-caret,
  .header-avatar-menu:focus-within .header-avatar-caret {
    transform: rotate(180deg);
  }
}

.header-avatar-panel a,
.header-avatar-panel button {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1d1d1f;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  justify-content: flex-start;
  padding: 0 14px;
  text-align: left;
  text-decoration: none;
}

.header-avatar-divider {
  height: 1px;
  margin: 6px 12px;
  background: var(--hb-border);
}

.header-avatar-theme-label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.header-avatar-theme-label svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--hb-text2);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-avatar-panel a:hover,
.header-avatar-panel button:hover {
  background: #f2f2f3;
  transform: none;
}

.header-avatar-panel form {
  border-top: 1px solid var(--hb-border);
  margin: 6px 12px 0;
  padding-top: 6px;
}

.header-avatar-panel form button {
  margin: 0 -12px;
  width: calc(100% + 24px);
  color: #ff3b30;
  cursor: pointer;
}

@media (max-width: 720px) {
  .shell.shell-authenticated {
    width: calc(100% - 32px);
  }

  .topbar .performance-trial-banner {
    position: static;
    order: 2;
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
    margin: 0;
    transform: none;
  }

  .nav-signed-in {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .shell-authenticated .topbar-signed-in {
    flex-wrap: nowrap;
  }

  .shell-authenticated .performance-trial-banner {
    display: none;
  }

  .shell-authenticated .nav-signed-in {
    order: initial;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .shell-authenticated .brand-logo { height: 20px; }
  .shell-authenticated .header-avatar { padding-right: 8px; }

  .notifications-panel {
    top: 82px;
    right: 16px;
    width: calc(100vw - 32px);
  }

  .deep-study-stats-grid {
    grid-template-columns: 1fr;
  }
}

.hero-grid {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
}

.hero-grid-split {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.hero-grid > .card {
  min-width: 0;
}

.section-workspace-grid {
  width: min(100%, 1280px);
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy,
.panel {
  padding: 34px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 106, 181, 0.15);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  font-size: clamp(1.645rem, 3.64vw, 2.94rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.hero-copy p {
  margin-top: 16px;
  max-width: 55ch;
  font-size: 1.06rem;
}

.settings-account-name {
  margin-top: 4px;
}

.academic-profile-page {
  display: grid;
  gap: 34px;
  margin: 0 auto;
  max-width: 760px;
  padding: 16px 0 56px;
}

.academic-profile-identity {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 4px;
  text-align: center;
}

.academic-profile-avatar {
  align-items: center;
  background: linear-gradient(145deg, #176fe8 0%, #28aef1 52%, #22be78 100%);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 111, 232, 0.18);
  color: #fff;
  display: flex;
  font-size: 1.75rem;
  font-weight: 700;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.academic-profile-avatar img {
  border-radius: inherit;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.academic-profile-identity h1 {
  font-size: 2.25rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 14px 0 0;
}

.academic-profile-identity > p {
  color: #71747a;
  font-size: 1rem;
  margin: 0;
}

.academic-profile-school {
  align-items: center;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 999px;
  color: #202225;
  display: inline-flex;
  font-size: 0.92rem;
  gap: 8px;
  margin-top: 8px;
  min-height: 38px;
  padding: 7px 14px;
  text-decoration: none;
}

.academic-profile-school svg {
  color: #0876e8;
  height: 18px;
  width: 18px;
}

.academic-profile-group {
  display: grid;
  gap: 10px;
}

.academic-profile-group > h2 {
  align-items: baseline;
  color: #797d83;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin: 0 16px;
  text-transform: uppercase;
}

.academic-profile-group > h2 small {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.academic-profile-card {
  background: #fff;
  border: 1px solid #e5e7ea;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 32, 45, 0.07);
  overflow: hidden;
}

.academic-degree-main {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 34px 38px 28px;
}

.academic-degree-rings {
  display: block;
  height: 180px;
  width: 180px;
}

.academic-ring-track,
.academic-ring-progress {
  fill: none;
  stroke-linecap: round;
}

.academic-ring-track { stroke: #e6e8eb; }
.academic-ring-progress { transition: stroke-dashoffset 220ms ease; }

/* Profile.dc.html centres the completion figure inside the bucket rings. */
.academic-degree-percent {
  fill: var(--hb-text);
  font: 600 30px "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  text-anchor: middle;
}
.academic-degree-percent-label {
  fill: var(--hb-text3);
  font: 700 10px "Instrument Sans", sans-serif;
  letter-spacing: 1.4px;
  text-anchor: middle;
}
.academic-ring-progress.is-major { stroke: #3478f6; }
.academic-ring-progress.is-general_education { stroke: #31cb8b; }
.academic-ring-progress.is-elective { stroke: #ff9f0a; }

.academic-degree-legend {
  min-width: 0;
}

.academic-credit-total {
  align-items: baseline;
  display: flex;
  font-size: 2.35rem;
  font-weight: 690;
  gap: 8px;
}

.academic-credit-total small {
  color: #767a80;
  font-size: 1rem;
  font-weight: 500;
}

.academic-degree-legend > p {
  color: #85898f;
  font-size: 0.9rem;
  margin: 4px 0 20px;
}

.academic-degree-legend ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.academic-degree-legend li {
  align-items: center;
  color: #74787e;
  display: grid;
  font-size: 0.9rem;
  gap: 9px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.academic-degree-legend li strong {
  color: #26292d;
  font-weight: 600;
}

.academic-bucket-dot {
  border-radius: 3px;
  height: 12px;
  width: 12px;
}

.academic-bucket-dot.is-major { background: #3478f6; }
.academic-bucket-dot.is-general_education { background: #31cb8b; }
.academic-bucket-dot.is-elective { background: #ff9f0a; }

.academic-degree-stats {
  border-top: 1px solid #e9ebee;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 0;
}

.academic-degree-stats > span {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.academic-degree-stats > span + span { border-left: 1px solid #e9ebee; }
.academic-degree-stats strong { font-size: 1.55rem; font-weight: 650; }
.academic-degree-stats small { color: #8a8d92; font-size: 0.82rem; }

.academic-profile-row {
  align-items: center;
  background: #fff;
  border: 0;
  color: #202225;
  display: grid;
  font: inherit;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto 14px;
  min-height: 64px;
  padding: 10px 16px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.academic-profile-row + .academic-profile-row { border-top: 1px solid #eceef0; }
.academic-profile-row:hover { background: #f7f8fa; }
.academic-profile-row > strong { color: #85898f; font-weight: 500; }
.academic-profile-row > strong.is-unset { color: #a25d00; }

.academic-profile-row-icon {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.academic-profile-row-icon svg { height: 20px; width: 20px; }
.academic-profile-row-icon.is-major { background: #3478f6; }
.academic-profile-row-icon.is-level { background: #af52de; }
.academic-profile-row-icon.is-graduation { background: #2bc76f; }
.academic-profile-row-icon.is-settings { background: #777b81; }
.academic-row-chevron { color: #b0b4b9; font-size: 1.7rem; line-height: 1; }

.academic-coursework-card { box-shadow: 0 12px 30px rgba(22, 32, 45, 0.05); }
.academic-term-group + .academic-term-group { border-top: 1px solid #dedfe2; }

.academic-term-group > header {
  align-items: center;
  background: #f5f5f7;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 16px;
}

.academic-term-group > header strong { font-size: 0.9rem; }
.academic-term-group > header span { color: #8a8d92; font-size: 0.82rem; }

.academic-course-row {
  align-items: center;
  background: #fff;
  border: 0;
  color: #202225;
  display: grid;
  font: inherit;
  gap: 14px;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
}

.academic-course-row + .academic-course-row { border-top: 1px solid #eceef0; }
.academic-course-row:hover { background: #f8f9fa; }

.academic-course-bucket {
  align-self: stretch;
  border-radius: 4px;
  min-height: 44px;
  width: 5px;
}

.academic-course-bucket.is-major { background: #3478f6; }
.academic-course-bucket.is-general_education { background: #31cb8b; }
.academic-course-bucket.is-elective { background: #ff9f0a; }

.academic-course-copy { display: grid; gap: 3px; min-width: 0; }
.academic-course-copy strong { font-size: 1rem; font-weight: 620; overflow-wrap: anywhere; }
.academic-course-copy span { color: #888c91; font-size: 0.84rem; }

.academic-course-grade {
  background: #eceef0;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 650;
  min-width: 48px;
  padding: 7px 10px;
  text-align: center;
}

.academic-course-grade.is-high { background: #ddf7e9; color: #15864e; }
.academic-course-grade.is-low { background: #fff0ed; color: #b53c2e; }
.academic-course-grade.is-progress { background: transparent; border: 1px dashed #b8bcc2; color: #85898f; font-weight: 500; }

.academic-add-course {
  align-items: center;
  background: #fff;
  border: 0;
  border-top: 1px solid #eceef0;
  color: #0876e8;
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
}

.academic-add-course:hover { background: #f8f9fa; }
.academic-add-course span { color: #b0b4b9; font-size: 1.7rem; }
.academic-course-empty { color: #777b81; padding: 26px 16px; text-align: center; }
.academic-course-empty p { margin: 0; }

.academic-profile-footnote {
  color: #8b8f94;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.academic-profile-dialog { max-width: 560px; }
.academic-profile-sheet { border-radius: 8px; }
.academic-course-form { display: grid; gap: 16px; }
.academic-profile-sheet .study-info-dialog-label { letter-spacing: 0.12em; }
.academic-profile-sheet .field > label {
  color: #7b7f86;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.academic-profile-sheet .field input,
.academic-profile-sheet .field select {
  min-height: 52px;
  border-color: #dfe3e8;
  border-radius: 10px;
  background: #fff;
  color: #24262b;
  font-size: 1rem;
  font-weight: 600;
}
.academic-profile-sheet .field input:focus,
.academic-profile-sheet .field select:focus {
  border-color: #0876e8;
  box-shadow: 0 0 0 3px rgba(8, 118, 232, 0.13);
  outline: none;
}
.academic-identity-combobox { position: relative; }
.academic-identity-combobox input { padding-right: 42px; }
.academic-identity-combobox > span {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #8a8e95;
  font-size: 1rem;
  pointer-events: none;
  transform: translateY(-56%);
}
.academic-identity-field-hint {
  display: block;
  margin-top: 7px;
  color: #898d94;
  font-size: 0.78rem;
}
.academic-form-grid { display: grid; gap: 14px; }
.academic-form-grid.is-two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.academic-dialog-actions { margin-top: 4px; }
.academic-course-delete-form { border-top: 1px solid #eceef0; margin-top: 18px; padding-top: 18px; }

@media (max-width: 600px) {
  .academic-profile-page { gap: 28px; padding-top: 0; }
  .academic-profile-identity { padding-top: 4px; }
  .academic-profile-avatar { height: 80px; width: 80px; }
  .academic-profile-identity h1 { font-size: 1.8rem; }
  .academic-profile-group > h2 { align-items: flex-start; flex-direction: column; gap: 4px; }
  .academic-degree-main { gap: 18px; grid-template-columns: 118px minmax(0, 1fr); padding: 24px 18px; }
  .academic-degree-rings { height: 118px; width: 118px; }
  .academic-credit-total { display: block; font-size: 1.8rem; }
  .academic-credit-total small { display: block; font-size: 0.85rem; margin-top: 2px; }
  .academic-degree-legend > p { font-size: 0.78rem; margin-bottom: 14px; }
  .academic-degree-legend li { font-size: 0.78rem; gap: 6px; grid-template-columns: 10px minmax(0, 1fr) auto; }
  .academic-bucket-dot { height: 10px; width: 10px; }
  .academic-degree-stats strong { font-size: 1.12rem; overflow-wrap: anywhere; }
  .academic-degree-stats small { font-size: 0.72rem; }
  .academic-profile-row { grid-template-columns: 38px minmax(0, 1fr) auto 10px; padding-inline: 12px; }
  .academic-profile-row > strong { font-size: 0.84rem; }
  .academic-course-row { gap: 10px; padding-inline: 12px; }
  .academic-course-grade { font-size: 0.75rem; min-width: 40px; padding: 6px 7px; }
  .academic-term-group > header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .academic-form-grid.is-two-column { grid-template-columns: 1fr; }
}

.settings-page-stack {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1080px;
}

.settings-profile-card,
.settings-actions-panel {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(18, 62, 91, 0.07);
}

.settings-profile-card {
  gap: 28px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  position: relative;
}

.settings-profile-card::after {
  background: linear-gradient(90deg, #1264d8 0%, #21b7a9 100%);
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.settings-profile-header {
  align-items: center;
  display: flex;
  gap: 18px;
}

.settings-avatar-button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin: 0 0 8px;
  padding: 0;
  position: relative;
}

.settings-avatar-button:focus-visible {
  outline: 3px solid rgba(23, 111, 232, 0.3);
  outline-offset: 5px;
}

.settings-avatar {
  align-items: center;
  background: linear-gradient(145deg, #0d62dc 0%, #22c879 100%);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 720;
  height: 64px;
  justify-content: center;
  letter-spacing: 0;
  width: 64px;
}

.settings-profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-profile-copy h1 {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.settings-profile-copy h2 {
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  margin-bottom: 0;
}

.lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.auth-single-shell {
  width: min(100%, 720px);
  margin: 0 auto;
}

.auth-login-shell {
  width: min(100%, 680px);
}

.auth-single-card {
  position: relative;
  gap: 22px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 6px;
  background:
    radial-gradient(circle at top right, rgba(27, 166, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(243, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 26px 58px rgba(0, 77, 128, 0.12);
}

.auth-signup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 106, 181, 0.04) 0%, transparent 42%),
    radial-gradient(circle at bottom left, rgba(27, 166, 166, 0.08), transparent 30%);
  pointer-events: none;
}

.auth-signup-header {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-signup-header .auth-single-copy {
  display: grid;
  gap: 0;
  justify-items: center;
}

.auth-signup-header .auth-single-copy h1 {
  margin-top: 2px;
  font-size: clamp(2rem, 4.1vw, 3rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  color: #17344e;
}

.auth-signup-header .lead {
  margin-top: 8px;
  max-width: 24ch;
  color: #97a9bb;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  font-weight: 450;
  text-align: center;
}

.auth-login-card {
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 20px 44px rgba(9, 42, 66, 0.08);
}

.auth-single-header,
.auth-single-copy,
.auth-single-footer,
.auth-single-form {
  position: relative;
  z-index: 1;
}

.auth-single-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-single-copy {
  min-width: 0;
}

.auth-single-copy h1 {
  margin-top: 2px;
  font-weight: 560;
}

.auth-single-copy .lead {
  margin-top: 14px;
  max-width: 46ch;
  font-weight: 450;
}

.auth-login-header {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-login-header .auth-single-copy {
  display: grid;
  gap: 0;
  justify-items: center;
}

.auth-login-header .auth-single-copy h1 {
  margin-top: 2px;
  color: #071342;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.auth-login-header .lead {
  margin-top: 8px;
  max-width: 30ch;
  font-size: 1.12rem;
  color: #2a355d;
  font-weight: 540;
  text-align: center;
}

.auth-login-form {
  gap: 18px;
}

.auth-login-form .field {
  gap: 10px;
}

.auth-login-form .field label {
  color: #121a42;
  font-size: 0.98rem;
  font-weight: 760;
}

.auth-login-form .field input {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 3px;
  border-color: rgba(188, 209, 237, 0.95);
  background: #ffffff;
  color: #101834;
  font-size: 1.04rem;
  box-shadow: none;
}

.auth-login-form .field input::placeholder {
  color: #7f87a8;
}

.auth-login-submit {
  min-height: 64px;
  border-radius: 2px;
  background: linear-gradient(135deg, #0d68ff 0%, #053df2 100%);
  box-shadow: 0 14px 26px rgba(12, 99, 255, 0.22);
  font-size: 1.1rem;
  font-weight: 650;
}

.auth-login-forgot {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.auth-login-forgot:hover,
.auth-login-forgot:focus-visible {
  color: var(--accent-strong);
}

.auth-login-footer {
  justify-items: center;
  gap: 14px;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

.auth-login-footer .inline-note {
  max-width: 34ch;
}

.auth-login-footer .inline-note:last-child {
  font-size: 1.02rem;
}

.auth-signup-footer {
  justify-items: center;
  gap: 14px;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

.auth-signup-footer .inline-note {
  max-width: 34ch;
}

.auth-signup-footer .inline-note:last-child {
  font-size: 1.02rem;
}

.auth-single-note {
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 0.98rem;
  font-weight: 600;
}

.auth-single-intent .task-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(167, 203, 223, 0.9);
  box-shadow: var(--shadow-soft);
}

.auth-single-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-signup-card .auth-single-form .field,
.auth-signup-card .auth-single-form .choice-chip-group {
  position: relative;
  z-index: 1;
}

.auth-signup-card .auth-single-form .field {
  gap: 10px;
}

.auth-signup-card .auth-single-form .field label,
.auth-signup-card .auth-single-form .field-legend {
  font-size: 1.02rem;
  font-weight: 650;
  color: #17344e;
}

.auth-signup-card .auth-single-form .field input {
  min-height: 64px;
  padding: 0 18px;
  border-radius: 5px;
  border-color: rgba(198, 214, 237, 0.92);
  background: #f5f9ff;
}

.auth-signup-card .choice-chip-group {
  gap: 10px;
}

.auth-signup-card .choice-chip-label {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(198, 214, 237, 0.96);
  background: #ffffff;
  color: #7f8fa4;
  font-size: 0.94rem;
  font-weight: 600;
}

.auth-signup-card .choice-chip-input:checked + .choice-chip-label {
  box-shadow: 0 10px 22px rgba(0, 106, 181, 0.14);
}

.auth-submit-button {
  width: 100%;
  margin-top: 2px;
}

.auth-signup-card .auth-submit-button {
  min-height: 58px;
  font-size: 1.08rem;
  border-radius: 5px;
  font-weight: 600;
}

.auth-signup-page {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.auth-signup-hero {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
  padding: clamp(6px, 1.2vw, 14px) 0 0;
}

.auth-signup-spark {
  position: relative;
  width: 28px;
  height: 28px;
  color: #3b20de;
}

.auth-signup-spark::before,
.auth-signup-spark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.auth-signup-spark::after {
  inset: 10px;
  background: #7f78ff;
}

.auth-signup-hero h1 {
  max-width: 9.5ch;
  margin: 0;
  color: #071342;
  font-size: clamp(3rem, 6vw, 4.9rem);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.auth-signup-hero h1 span {
  display: block;
  color: #0759f8;
}

.auth-signup-hero > p {
  max-width: 32ch;
  margin: 0;
  color: #1d2b5a;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  font-weight: 520;
  line-height: 1.72;
}

.auth-signup-benefits {
  display: grid;
  gap: clamp(20px, 2.4vw, 26px);
  margin-top: clamp(8px, 1.2vw, 14px);
}

.auth-signup-benefits article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.auth-signup-benefits strong {
  display: block;
  color: #071342;
  font-size: 1.08rem;
  font-weight: 780;
}

.auth-signup-benefits p {
  margin-top: 6px;
  color: #36436d;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.auth-signup-benefit-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 5px;
  background: #eef4ff;
  color: #0c63ff;
}

.auth-signup-benefit-icon::before,
.auth-signup-benefit-icon::after {
  content: "";
  position: absolute;
}

.auth-signup-benefit-icon.is-upload::before {
  width: 34px;
  height: 23px;
  border: 4px solid currentColor;
  border-radius: 4px;
  border-bottom-color: transparent;
}

.auth-signup-benefit-icon.is-upload::after {
  width: 4px;
  height: 28px;
  background: currentColor;
  box-shadow: -9px 10px 0 -5px currentColor, 9px 10px 0 -5px currentColor;
}

.auth-signup-benefit-icon.is-brain {
  background: #f0ecff;
  color: #4c32e6;
}

.auth-signup-benefit-icon.is-brain::before {
  width: 28px;
  height: 34px;
  border: 4px solid currentColor;
  border-radius: 4px 4px 3px 3px;
}

.auth-signup-benefit-icon.is-brain::after {
  width: 4px;
  height: 34px;
  background: currentColor;
  box-shadow: -12px -6px 0 -1px currentColor, 12px 6px 0 -1px currentColor;
}

.auth-signup-benefit-icon.is-target {
  background: #eaf9ef;
  color: #1ea85b;
}

.auth-signup-benefit-icon.is-target::before {
  width: 34px;
  height: 34px;
  border: 4px solid currentColor;
  border-radius: 13%;
  box-shadow: inset 0 0 0 8px #eaf9ef;
}

.auth-signup-benefit-icon.is-target::after {
  width: 32px;
  height: 4px;
  background: currentColor;
  transform: rotate(-38deg) translate(5px, -6px);
}

.auth-signup-benefit-icon.is-progress {
  background: #edf4ff;
}

.auth-signup-benefit-icon.is-progress::before {
  bottom: 18px;
  width: 6px;
  height: 24px;
  background: currentColor;
  border-radius: 8px;
  box-shadow: -13px 9px 0 currentColor, 13px -8px 0 currentColor;
}

.auth-signup-benefit-icon.is-progress::after {
  bottom: 15px;
  width: 42px;
  height: 3px;
  background: rgba(12, 99, 255, 0.2);
}

.auth-signup-benefit-icon.has-image {
  width: 74px;
  height: 76px;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.auth-signup-benefit-icon.has-image::before,
.auth-signup-benefit-icon.has-image::after {
  content: none;
}

.auth-signup-benefit-icon.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-signup-quotes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  margin-top: clamp(2px, 1vw, 10px);
}

.auth-signup-quote {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(217, 226, 241, 0.9);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 58px rgba(18, 44, 92, 0.1);
}

.auth-signup-quote span {
  display: block;
  color: #f5b31b;
  font-size: 1.04rem;
  letter-spacing: 0.1em;
}

.auth-signup-quote p {
  margin-top: 16px;
  margin-bottom: 0;
  color: #1d2b5a;
  font-size: clamp(0.96rem, 1.12vw, 1.04rem);
  font-weight: 650;
  line-height: 1.58;
}

.auth-signup-quote strong {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: #0c63ff;
}

.auth-signup-card {
  width: 100%;
  gap: 22px;
  padding: clamp(32px, 4.6vw, 58px);
  border: 1px solid rgba(229, 235, 247, 0.98);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 72px rgba(22, 44, 86, 0.13);
}

.auth-signup-card::before {
  display: none;
}

.auth-signup-header {
  justify-content: flex-start;
  text-align: left;
}

.auth-signup-header .auth-single-copy {
  justify-items: start;
}

.auth-signup-header .auth-single-copy h1 {
  color: #071342;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.auth-signup-header .lead {
  max-width: none;
  color: #2a355d;
  font-size: 1.12rem;
  font-weight: 540;
  text-align: left;
}

.auth-signup-card .auth-single-form {
  gap: 18px;
}

.auth-signup-card .auth-single-form .field label {
  color: #121a42;
  font-size: 0.98rem;
  font-weight: 760;
}

.auth-signup-card .auth-single-form .field input {
  width: 100%;
  min-height: 62px;
  border-radius: 3px;
  background: #ffffff;
  color: #101834;
  font-size: 1.04rem;
  box-shadow: none;
}

.auth-signup-card .auth-single-form .field input::placeholder {
  color: #7f87a8;
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 56px;
}

.auth-password-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6f789d;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-eye:hover {
  color: #0c2abf;
}

.auth-password-eye:focus-visible {
  outline: 3px solid rgba(12, 42, 191, 0.24);
  outline-offset: 1px;
}

.auth-password-eye svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-password-eye-hide,
.auth-password-eye.is-visible .auth-password-eye-show {
  display: none;
}

.auth-password-eye.is-visible .auth-password-eye-hide {
  display: block;
}

.auth-password-hints {
  display: grid;
  gap: 9px;
  margin: -2px 0 4px;
  padding: 0;
  list-style: none;
  color: #56607f;
  font-size: 0.96rem;
  font-weight: 560;
}

.auth-password-hints li {
  position: relative;
  padding-left: 28px;
}

.auth-password-hints li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 13%;
  background: #25b86b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.auth-signup-card .auth-submit-button {
  min-height: 64px;
  border-radius: 2px;
  background: linear-gradient(135deg, #0d68ff 0%, #053df2 100%);
  box-shadow: 0 14px 26px rgba(12, 99, 255, 0.22);
  font-size: 1.1rem;
  font-weight: 650;
}

.auth-signup-footer {
  max-width: 34ch;
  justify-self: center;
  color: #6f789d;
}

.auth-signup-footer .inline-note {
  max-width: none;
  font-size: 0.96rem;
  line-height: 1.6;
}

.auth-signup-bottom-login {
  margin: 18px -54px -54px;
  padding: 26px 18px;
  border-top: 1px solid rgba(207, 216, 234, 0.88);
  color: #2a355d;
  font-weight: 620;
}

.auth-signup-bottom-login a {
  color: #0759f8;
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 980px) {
  .auth-signup-page {
    width: min(100%, 760px);
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .auth-signup-hero {
    display: none;
  }

  .auth-signup-card {
    padding: clamp(28px, 6vw, 44px);
  }

}

@media (max-width: 620px) {
  .auth-signup-page {
    width: min(100%, calc(100vw - 24px));
  }

  .auth-signup-hero {
    gap: 22px;
  }

  .auth-signup-benefits article {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .auth-signup-benefit-icon {
    width: 54px;
    height: 54px;
    border-radius: 4px;
  }

  .auth-signup-benefit-icon.has-image {
    width: 68px;
    height: 70px;
    border-radius: 0;
  }

  .auth-signup-bottom-login {
    margin: 4px -20px -28px;
  }
}

/* ---------------------------------------------------------------------------
 * Deep Study V2
 * The learning loop is intentionally quieter than the section workspace:
 * one title, one evidence signal, and one action surface at a time.
 * ------------------------------------------------------------------------ */
.shell-deep-study {
  background: var(--hb-bg);
}

.deep-study-body {
  background: #eef1f7;
}

html[data-theme="dark"] .deep-study-body {
  background: #0b1220;
}

.shell-deep-study .ds-page {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 28px 0 80px;
  gap: 24px;
}

.shell-deep-study .ds-back {
  padding: 8px 10px;
  color: var(--hb-text2);
  font: 600 14px/1.2 var(--font-text);
}

.shell-deep-study .ds-hero {
  align-items: flex-start;
  min-height: 112px;
  padding: 18px 8px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell-deep-study .ds-hero-eyebrow {
  color: var(--hb-accent);
  font: 700 12px/1.2 var(--font-text);
  letter-spacing: 0.12em;
}

.shell-deep-study .ds-hero-eyebrow > :last-child:not(:first-child) {
  color: var(--hb-text3);
  letter-spacing: 0;
  text-transform: none;
}

.shell-deep-study .ds-hero h1 {
  max-width: 28ch;
  margin-top: 14px;
  color: var(--hb-text);
  font: 500 clamp(25px, 3vw, 39px)/1.08 var(--font-display);
  letter-spacing: -0.025em;
}

.shell-deep-study .ds-hero-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 140ms ease;
}

.shell-deep-study .ds-hero-title-link:hover {
  color: var(--hb-accent);
  text-decoration: none;
}

.shell-deep-study .ds-hero-title-link:focus-visible {
  color: var(--hb-accent);
  outline: none;
  text-decoration: none;
}

.shell-deep-study .ds-hero-title-link:focus:not(:focus-visible) {
  outline: none;
}

.shell-deep-study .ds-hero-ring {
  margin-top: -2px;
  padding: 0;
}

.shell-deep-study .ds-hero-ring:hover {
  box-shadow: none;
}

.shell-deep-study .ds-hero-ring-label {
  margin-top: -20px;
  font: 700 9px/1 var(--font-text);
  letter-spacing: 0.22em;
}

.shell-deep-study .ds-tabs {
  align-items: center;
  position: sticky;
  top: 72px;
  z-index: 120;
  gap: 22px;
  margin: 0 -12px 20px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--hb-border);
  background: color-mix(in srgb, var(--hb-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.shell-deep-study .ds-loop {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  background: var(--hb-card);
  box-shadow: 0 3px 8px rgba(16, 42, 90, 0.08);
}

.shell-deep-study .ds-loop-item {
  gap: 0;
}

.shell-deep-study .ds-loop-arrow {
  margin: 0 2px;
}

.shell-deep-study .ds-loop-step {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 14px/1 var(--font-text);
}

.shell-deep-study .ds-loop-step.is-active {
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
}

.shell-deep-study .ds-loop-step.is-complete {
  color: #0f8b62;
}

.shell-deep-study .ds-loop-step.is-complete .ds-loop-step-badge {
  background: #12a26b;
  color: #fff;
}

.shell-deep-study .ds-quiet-tabs {
  align-self: flex-start;
  gap: 10px;
  padding-left: 8px;
}

.shell-deep-study .ds-quiet-tabs[hidden] {
  display: none;
}

.shell-deep-study .ds-quiet {
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  color: var(--hb-text2);
  font: 600 14px/1 var(--font-text);
}

.shell-deep-study .ds-quiet.is-active {
  border-color: rgba(33, 89, 230, 0.4);
  background: var(--hb-card);
  color: var(--hb-accent);
}

.shell-deep-study .ds-card {
  border: 1px solid var(--hb-border);
  border-radius: 22px;
  background: var(--hb-card);
  box-shadow: 0 4px 12px rgba(16, 42, 90, 0.06);
}

.shell-deep-study .ds-eyebrow {
  color: var(--hb-accent);
  font: 700 12px/1.2 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shell-deep-study .ds-primary-button,
.shell-deep-study .ds-chip-button,
.shell-deep-study .ds-ready-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 13px;
  cursor: pointer;
  font: 600 14px/1 var(--font-text);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.shell-deep-study .ds-primary-button {
  padding: 0 24px;
  border: 0;
  background: linear-gradient(180deg, #2f66f2, #1e49c9);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(30, 73, 201, 0.8);
}

.shell-deep-study .ds-primary-button:hover,
.shell-deep-study .ds-ready-button.is-ready:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.shell-deep-study .ds-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.shell-deep-study .ds-chip-button {
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text2);
}

.shell-deep-study .ds-chip-button:hover,
.shell-deep-study .ds-chip-button.is-accent {
  border-color: rgba(33, 89, 230, 0.42);
  color: var(--hb-accent);
  text-decoration: none;
}

.shell-deep-study .ds-element-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 34px;
}

.shell-deep-study .ds-element-stage {
  display: grid;
  gap: 14px;
}

.shell-deep-study .ds-element-audio {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 999px;
  color: var(--hb-accent);
  font: 700 13px/1 var(--font-text);
}

.shell-deep-study .ds-element-audio svg {
  display: block;
}

.shell-deep-study .ds-element-content {
  min-width: 0;
}

.shell-deep-study .ds-element-body {
  max-width: 58ch;
  margin: 4px 0 0;
  color: var(--hb-text);
  font: 400 clamp(18px, 2vw, 23px)/1.55 var(--font-text);
}

.shell-deep-study .ds-element-source {
  margin: 14px 0 0;
  color: var(--hb-text3);
  font: 500 13px/1.4 var(--font-text);
}

.shell-deep-study .ds-element-source a {
  color: var(--hb-accent);
  font-weight: 600;
}

.shell-deep-study .ds-element-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.shell-deep-study .ds-element-actions form {
  display: contents;
}

.shell-deep-study .ds-ready-button {
  width: 100%;
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-accent);
}

.shell-deep-study .ds-ready-button.is-ready {
  border-color: transparent;
  background: linear-gradient(180deg, #25bf7e, #0da76d);
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(13, 167, 109, 0.72);
}

.shell-deep-study .ds-element-understand {
  width: 100%;
}

.shell-deep-study .ds-signal-layout {
  display: grid;
  gap: 18px;
}

.shell-deep-study .ds-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shell-deep-study .ds-signal-card {
  padding: 28px 30px;
}

.shell-deep-study .ds-signal-card > strong {
  display: block;
  margin-top: 12px;
  color: var(--hb-text);
  font: 600 46px/0.95 var(--font-display);
  letter-spacing: -0.04em;
}

.shell-deep-study .ds-signal-card p,
.shell-deep-study .ds-confidence-card p,
.shell-deep-study .ds-video-empty p,
.shell-deep-study .ds-related-card p {
  margin: 14px 0 0;
  color: var(--hb-text2);
  font: 400 14px/1.55 var(--font-text);
}

.shell-deep-study .ds-signal-track,
.shell-deep-study .ds-confidence-track {
  height: 8px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hb-track);
}

.shell-deep-study .ds-signal-track > span,
.shell-deep-study .ds-confidence-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2455dc;
}

.shell-deep-study .ds-signal-card.is-green .ds-signal-track > span {
  background: #12a26b;
}

.shell-deep-study .ds-confidence-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  padding: 30px;
}

.shell-deep-study .ds-confidence-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #c0392b;
}

.shell-deep-study .ds-confidence-score strong {
  font: 600 48px/0.95 var(--font-display);
  letter-spacing: -0.05em;
}

.shell-deep-study .ds-confidence-score span {
  margin-top: 6px;
  font: 600 12px/1 var(--font-text);
}

.shell-deep-study .ds-confidence-track,
.shell-deep-study .ds-confidence-legend {
  grid-column: 1 / -1;
}

.shell-deep-study .ds-confidence-track {
  margin-top: 12px;
}

.shell-deep-study .ds-confidence-track > span {
  background: linear-gradient(90deg, #2865ed, #13a56e);
}

.shell-deep-study .ds-confidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--hb-text3);
  font: 500 12px/1.3 var(--font-text);
}

.shell-deep-study .ds-explain-card {
  padding: 30px 34px;
}

.shell-deep-study .ds-explain-lead {
  margin: 14px 0 0;
  color: var(--hb-text);
  font: 500 17px/1.55 var(--font-text);
}

.shell-deep-study .ds-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.shell-deep-study .ds-explain-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--hb-border2);
  border-radius: 16px;
  background: var(--hb-card2);
}

.shell-deep-study .ds-explain-grid article > span,
.shell-deep-study .ds-confused-list li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eaf0fe;
  color: var(--hb-accent);
  font: 700 12px/1 var(--font-text);
}

.shell-deep-study .ds-explain-grid p,
.shell-deep-study .ds-explain-section p,
.shell-deep-study .ds-confused-list p {
  margin: 0;
  color: var(--hb-text2);
  font: 500 14px/1.55 var(--font-text);
}

.shell-deep-study .ds-explain-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hb-border);
}

.shell-deep-study .ds-explain-section > p {
  margin-top: 12px;
  color: var(--hb-text);
}

.shell-deep-study .ds-confused-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.shell-deep-study .ds-confused-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.shell-deep-study .ds-confused-list li > span {
  background: #fdf1d8;
  color: #8a5300;
}

.shell-deep-study .ds-explain-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hb-border);
}

.shell-deep-study .ds-explain-footer > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.shell-deep-study .ds-test-clues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.shell-deep-study .ds-test-clues span {
  display: flex;
  align-items: flex-start;
  min-height: 68px;
  padding: 13px 15px;
  border: 1px solid #dce5fb;
  border-radius: 16px;
  background: #eef3ff;
  color: var(--hb-accent);
  font: 600 12px/1.4 var(--font-text);
  overflow-wrap: anywhere;
}

.shell-deep-study .ds-video-card {
  padding: 30px 34px;
}

.shell-deep-study .ds-video-empty {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.shell-deep-study .ds-video-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #eaf0fe;
  color: var(--hb-accent);
  font-size: 26px;
}

.shell-deep-study .ds-video-empty strong {
  color: var(--hb-text);
  font: 600 17px/1.3 var(--font-text);
}

.shell-deep-study .ds-video-empty p {
  margin-top: 4px;
}

.shell-deep-study .ds-related-list {
  display: grid;
  gap: 14px;
}

.shell-deep-study .ds-related-card {
  padding: 22px 26px;
}

.shell-deep-study .ds-related-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shell-deep-study .ds-related-heading strong {
  color: var(--hb-text);
  font: 600 16px/1.3 var(--font-text);
}

.shell-deep-study .ds-related-heading span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf0fe;
  color: var(--hb-accent);
  font: 700 11px/1 var(--font-text);
}

.shell-deep-study .ds-related-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}

.shell-deep-study .ds-ask-layout {
  display: grid;
  gap: 14px;
}

.shell-deep-study .ds-ask-card,
.shell-deep-study .ds-comments-card,
.shell-deep-study .ds-thought-card {
  padding: 28px 30px;
}

.shell-deep-study .ds-input,
.shell-deep-study .ds-comment-box textarea {
  width: 100%;
  min-height: 108px;
  margin-top: 14px;
  padding: 16px 18px;
  resize: vertical;
  border: 1.5px solid var(--hb-border2);
  border-radius: 15px;
  outline: none;
  background: var(--hb-card);
  color: var(--hb-text);
  font: 400 15px/1.55 var(--font-text);
}

.shell-deep-study .ds-input:focus,
.shell-deep-study .ds-comment-box textarea:focus {
  border-color: var(--hb-accent);
  box-shadow: 0 0 0 4px rgba(33, 89, 230, 0.08);
}

.shell-deep-study .deep-study-ask-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.shell-deep-study .deep-study-friend-field {
  max-width: 320px;
}

.shell-deep-study .ds-question-history {
  margin-top: 16px;
}

.shell-deep-study .ds-answer-element-form {
  margin-top: 6px;
}

.shell-deep-study .ds-answer-element-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hb-accent);
  cursor: pointer;
  font: 600 12px/1.35 var(--hb-font-text);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.shell-deep-study .ds-answer-element-link:hover,
.shell-deep-study .ds-answer-element-link:focus-visible {
  color: var(--hb-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell-deep-study .ds-comments-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shell-deep-study .ds-comments-heading > :last-child {
  margin-left: auto;
  color: var(--hb-text3);
  font: 500 12px/1 var(--font-text);
}

.shell-deep-study .ds-comment-count {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--hb-track);
  color: var(--hb-text3);
  font: 700 11px/1 var(--font-text);
}

.shell-deep-study .ds-comment-composer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.shell-deep-study .ds-comment-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eaf0fe;
  color: var(--hb-accent);
  font: 700 11px/1 var(--font-text);
}

.shell-deep-study .ds-comment-box {
  padding: 0 14px 10px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 16px;
}

.shell-deep-study .ds-comment-box textarea {
  min-height: 72px;
  margin: 0;
  padding-inline: 2px;
  border: 0;
  box-shadow: none;
}

.shell-deep-study .ds-comment-box textarea:focus {
  border: 0;
  box-shadow: none;
}

.shell-deep-study .ds-comment-box > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hb-border);
  color: var(--hb-text3);
  font: 500 12px/1 var(--font-text);
}

.shell-deep-study .ds-comment-post {
  min-height: 38px;
  margin-left: auto;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: #2455dc;
  color: #fff;
  cursor: pointer;
  font: 600 13px/1 var(--font-text);
}

.shell-deep-study .ds-comment-list {
  margin-top: 10px;
}

.shell-deep-study .ds-comment-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 18px 2px;
  border-top: 1px solid var(--hb-border);
}

.shell-deep-study .ds-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shell-deep-study .ds-comment-meta strong {
  color: var(--hb-text);
  font: 600 13px/1.3 var(--font-text);
}

.shell-deep-study .ds-comment-meta span {
  color: var(--hb-text3);
  font: 500 11px/1.3 var(--font-text);
}

.shell-deep-study .ds-comment-copy p {
  margin: 5px 0 0;
  color: var(--hb-text2);
  font: 400 14px/1.5 var(--font-text);
}

.shell-deep-study .ds-comment-vote {
  min-width: 54px;
  height: 34px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 999px;
  background: var(--hb-card);
  color: var(--hb-text3);
  cursor: pointer;
  font: 600 12px/1 var(--font-text);
}

.shell-deep-study .ds-comment-vote.is-active {
  border-color: rgba(33, 89, 230, 0.35);
  color: var(--hb-accent);
}

.shell-deep-study .ds-thought-intro {
  margin: 12px 0 0;
  color: var(--hb-text2);
  font: 400 16px/1.45 var(--font-text);
}

.shell-deep-study .ds-thought-input {
  min-height: 150px;
}

.shell-deep-study .ds-thought-submit {
  gap: 9px;
  min-width: 174px;
}

.shell-deep-study .ds-thought-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 999px;
  animation: deep-study-loading-spin 0.72s linear infinite;
}

.shell-deep-study
  .deep-study-thought-form[data-submitting="true"]
  .ds-thought-submit-spinner {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .shell-deep-study .ds-thought-submit-spinner {
    animation-duration: 1.8s;
  }
}

.shell-deep-study .ds-thinking-feedback {
  margin-top: 20px;
}

.shell-deep-study .ds-thinking-feedback-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.shell-deep-study .ds-thinking-feedback-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.shell-deep-study .ds-thinking-feedback-row > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font: 700 12px/1 var(--font-text);
}

.shell-deep-study .ds-thinking-feedback-row.is-covered > span {
  background: #e4f6ee;
  color: #0f7a53;
}

.shell-deep-study .ds-thinking-feedback-row.is-sharpener > span {
  background: #fdf1d8;
  color: #8a5300;
}

.shell-deep-study .ds-thinking-feedback-row p {
  margin: 2px 0 0;
  color: var(--hb-text2);
  font: 500 14px/1.45 var(--font-text);
}

.shell-deep-study .ds-thinking-feedback-copy {
  min-width: 0;
}

.shell-deep-study .ds-thinking-feedback-copy strong {
  color: var(--hb-text);
  font: 700 14px/1.35 var(--font-text);
}

.shell-deep-study .ds-thought-result {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--hb-border2);
  border-radius: 18px;
  background: var(--hb-card2);
}

.shell-deep-study .ds-lock-readiness {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hb-border);
  color: var(--hb-text3);
  font: 500 12px/1.3 var(--font-text);
}

.shell-deep-study .ds-lock-readiness form {
  display: contents;
}

.shell-deep-study .ds-thought-question {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--hb-text3);
  font: 500 12px/1.3 var(--font-text);
}

.shell-deep-study .ds-thought-question a {
  margin-left: auto;
}

.shell-deep-study .ds-thought-next {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
}

.shell-deep-study .ds-test-card {
  padding: 30px 34px;
}

.shell-deep-study .ds-test-prompt {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--hb-text);
  font: 600 clamp(18px, 2vw, 22px)/1.5 var(--font-text);
}

.shell-deep-study .deep-study-test-choice {
  min-height: 70px;
  padding: 14px 18px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 16px;
  background: var(--hb-card);
  color: var(--hb-text);
}

.shell-deep-study .deep-study-test-choice::before {
  display: none;
}

.shell-deep-study .deep-study-test-choice > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--hb-track);
  color: var(--hb-text3);
  font: 700 12px/1 var(--font-text);
}

.shell-deep-study .deep-study-test-choice > strong {
  margin: 0;
  color: inherit;
  font: 500 15px/1.45 var(--font-text);
}

.shell-deep-study .deep-study-test-choice-correct {
  border-color: #12a26b;
  background: #e4f6ee;
}

.shell-deep-study .deep-study-test-choice-missed {
  border-color: #e2564d;
  background: #fdecec;
}

.shell-deep-study .deep-study-test-choice-correct > span {
  background: #12a26b;
  color: #fff;
}

.shell-deep-study .deep-study-test-choice-missed > span {
  background: #e2564d;
  color: #fff;
}

.shell-deep-study .deep-study-test-status {
  min-height: 0;
  margin-top: 14px;
  padding: 0;
  border-radius: 15px;
  font: 500 14px/1.45 var(--font-text);
}

.shell-deep-study .deep-study-test-status:not(:empty) {
  padding: 16px 18px;
}

.shell-deep-study .deep-study-test-status-correct {
  background: #e4f6ee;
  color: #0f7a53;
}

.shell-deep-study .deep-study-test-status-missed {
  background: #fdecec;
  color: #a43128;
}

.shell-deep-study .ds-test-result-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.shell-deep-study .ds-test-retry {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: #c93a2d;
  color: #fff;
  cursor: pointer;
  font: 600 14px/1 var(--font-text);
}

.shell-deep-study .ds-test-answer-card {
  display: none;
}

.shell-deep-study .ds-test-breakdown-card {
  min-height: 130px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
}

.shell-deep-study .ds-test-breakdown-card > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--hb-accent);
  font: 700 12px/1.2 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shell-deep-study .ds-test-breakdown-card .deep-study-reading-copy {
  max-width: 74ch;
  color: var(--hb-text2);
  font: 400 14px/1.6 var(--font-text);
}

.shell-deep-study .deep-study-test-reveal-button {
  top: 48px;
}

@media (max-width: 760px) {
  .shell-deep-study .ds-page {
    padding: 16px 0 64px;
    gap: 18px;
  }

  .shell-deep-study .ds-hero {
    min-height: 100px;
    padding-inline: 2px;
  }

  .shell-deep-study .ds-hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .shell-deep-study .ds-hero-ring {
    position: absolute;
    right: 16px;
  }

  .shell-deep-study .ds-hero-copy {
    padding-right: 82px;
  }

  .shell-deep-study .ds-tabs {
    align-items: stretch;
    overflow: hidden;
    top: 64px;
  }

  .shell-deep-study .ds-loop {
    width: 100%;
    overflow-x: auto;
  }

  .shell-deep-study .ds-loop-step {
    padding-inline: 12px;
    font-size: 12px;
  }

  .shell-deep-study .ds-quiet-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-left: 0;
  }

  .shell-deep-study .ds-element-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .shell-deep-study .ds-element-actions,
  .shell-deep-study .ds-lock-readiness {
    grid-template-columns: 1fr;
  }

  .shell-deep-study .ds-signal-grid,
  .shell-deep-study .ds-explain-grid {
    grid-template-columns: 1fr;
  }

  .shell-deep-study .ds-confidence-card {
    grid-template-columns: 1fr;
  }

  .shell-deep-study .ds-confidence-score {
    align-items: flex-start;
  }

  .shell-deep-study .ds-explain-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .shell-deep-study .ds-test-clues {
    grid-template-columns: 1fr;
  }

  .shell-deep-study .ds-video-empty {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .shell-deep-study .ds-video-empty form {
    grid-column: 1 / -1;
  }

  .shell-deep-study .ds-video-empty .ds-primary-button {
    width: 100%;
  }

  .shell-deep-study .ds-ask-card,
  .shell-deep-study .ds-comments-card,
  .shell-deep-study .ds-thought-card,
  .shell-deep-study .ds-test-card,
  .shell-deep-study .ds-explain-card,
  .shell-deep-study .ds-video-card {
    padding: 22px;
  }

  .shell-deep-study .ds-comment-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .shell-deep-study .ds-comment-row form {
    grid-column: 2;
  }

  .shell-deep-study .ds-thought-question {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell-deep-study .ds-thought-question a {
    width: 100%;
    margin-left: 0;
  }

  .shell-deep-study .deep-study-test-choice {
    min-height: 62px;
    padding: 12px 14px;
  }
}

/* Unified Classes page */
body:has(.shell-classes) {
  background: #eef1f7;
}

html[data-theme="dark"] body:has(.shell-classes) {
  background: #0b1220;
}

.shell-classes {
  width: min(1200px, calc(100% - 60px));
  min-height: 100vh;
}

.shell-classes .classes-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 26px 0 72px;
}

.shell-classes .classes-page-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px -8px;
  padding: 7px 12px 7px 8px;
  border-radius: 10px;
  color: var(--hb-text3);
  font: 600 13px/1.2 var(--hb-font-text);
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}

.shell-classes .classes-page-back span {
  font-size: 22px;
  font-weight: 400;
  line-height: 0.8;
}

.shell-classes .classes-page-back:hover,
.shell-classes .classes-page-back:focus-visible {
  color: var(--hb-text2);
  background: var(--hb-hover);
  text-decoration: none;
  outline: none;
}

.shell-classes .classes-page-card {
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 22px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}

.shell-classes .classes-page-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
}

.shell-classes .classes-page-card > header h1 {
  margin: 0;
  color: var(--hb-text);
  font: 600 26px/1.15 var(--hb-font-display);
  letter-spacing: -0.5px;
}

.shell-classes .classes-page-card > header p {
  margin: 5px 0 0;
  color: var(--hb-text3);
  font: 400 13.5px/1.35 var(--hb-font-text);
}

.shell-classes .classes-page-card > header > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--hb-accent);
  font: 600 14.5px/1.2 var(--hb-font-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease, transform 140ms ease;
}

.shell-classes .classes-page-card > header > a span {
  font-size: 20px;
}

.shell-classes .classes-page-card > header > a:hover,
.shell-classes .classes-page-card > header > a:focus-visible {
  background: var(--hb-hover);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.shell-classes .classes-page-divider {
  height: 1px;
  background: var(--hb-border);
}

.shell-classes .classes-page-row {
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 102px;
  padding: 19px 24px 19px 0;
  border: 0;
  color: var(--hb-text);
  background: transparent;
  font: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: background 140ms ease;
}

.shell-classes .classes-page-row + .classes-page-row {
  border-top: 1px solid var(--hb-border);
}

.shell-classes .classes-page-row:hover,
.shell-classes .classes-page-row:focus-visible {
  color: var(--hb-text);
  background: var(--hb-hover);
  text-decoration: none;
  outline: none;
}

.shell-classes .classes-page-accent {
  align-self: stretch;
  border-radius: 0 999px 999px 0;
  background: var(--class-accent);
}

.shell-classes .classes-page-copy {
  display: grid;
  min-width: 0;
}

.shell-classes .classes-page-copy strong {
  overflow: hidden;
  color: var(--hb-text);
  font: 600 18px/1.25 var(--hb-font-display);
  letter-spacing: -0.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-classes .classes-page-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--hb-text3);
  font: 400 13.5px/1.35 var(--hb-font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-classes .classes-page-copy i {
  display: block;
  width: min(300px, 100%);
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hb-track);
}

.shell-classes .classes-page-copy i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f9f6e;
}

.shell-classes .classes-page-copy i b.is-needs-work {
  background: #c0392b;
}

.shell-classes .classes-page-row em {
  color: #0f9f6e;
  font: 700 17px/1 var(--hb-font-display);
  font-style: normal;
}

.shell-classes .classes-page-row em.is-needs-work {
  color: #c0392b;
}

.shell-classes .classes-page-row em.is-warming {
  color: #a66600;
}

.shell-classes .classes-page-chevron {
  color: var(--hb-text3);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: transform 140ms ease;
}

.shell-classes .classes-page-row:hover .classes-page-chevron,
.shell-classes .classes-page-row:focus-visible .classes-page-chevron {
  transform: translateX(2px);
}

.shell-classes .classes-page-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 44px 24px;
  text-align: center;
}

.shell-classes .classes-page-empty strong {
  color: var(--hb-text);
  font: 600 16px/1.25 var(--hb-font-display);
}

.shell-classes .classes-page-empty span {
  color: var(--hb-text3);
  font: 400 13.5px/1.45 var(--hb-font-text);
}

.shell-classes .classes-page-empty a {
  margin-top: 5px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  font: 600 14px/1.2 var(--hb-font-text);
  text-decoration: none;
}

.shell-classes .classes-page-bins {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.shell-classes .classes-page-bins details {
  position: relative;
}

.shell-classes .classes-page-bins summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  color: var(--hb-text);
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
  font: 600 14px/1.2 var(--hb-font-text);
  cursor: pointer;
  list-style: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.shell-classes .classes-page-bins summary::-webkit-details-marker {
  display: none;
}

.shell-classes .classes-page-bins summary:hover,
.shell-classes .classes-page-bins summary:focus-visible,
.shell-classes .classes-page-bins details[open] summary {
  border-color: var(--hb-border2);
  transform: translateY(-1px);
  outline: none;
}

.shell-classes .classes-page-bins summary span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  color: var(--hb-text2);
  background: var(--hb-subtle);
  font: 700 11px/1 var(--hb-font-mono);
}

.shell-classes .classes-page-bin-panel {
  position: absolute;
  top: 58px;
  left: 0;
  z-index: 5;
  width: min(540px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
  box-shadow: 0 22px 46px -25px rgba(16, 42, 90, 0.45);
}

.shell-classes .classes-page-bin-panel h2 {
  margin: 0;
  padding: 14px 20px 12px;
  color: var(--hb-text3);
  font: 700 10.5px/1.2 var(--hb-font-text);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.shell-classes .classes-archive-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 10px 14px;
  border-top: 1px solid var(--hb-border);
}

.shell-classes .classes-grade-badge,
.shell-classes .classes-dropped-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  color: #0f7a53;
  background: #e4f6ee;
  font: 700 15px/1 var(--hb-font-display);
}

.shell-classes .classes-grade-badge.is-red,
.shell-classes .classes-dropped-icon {
  color: var(--hb-text3);
  background: var(--hb-subtle);
}

.shell-classes .classes-grade-badge.is-amber {
  color: #8a5300;
  background: #fff0d6;
}

.shell-classes .classes-grade-badge.is-accent {
  color: var(--hb-accent);
  background: rgba(42, 98, 240, 0.1);
}

.shell-classes .classes-archive-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  color: var(--hb-text);
  text-decoration: none;
}

.shell-classes .classes-archive-copy strong {
  overflow: hidden;
  font: 600 14.5px/1.3 var(--hb-font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-classes .classes-archive-copy span {
  margin-top: 2px;
  color: var(--hb-text3);
  font: 400 12.5px/1.3 var(--hb-font-text);
}

.shell-classes .classes-archive-row form {
  margin: 0;
}

.shell-classes .classes-archive-row form button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hb-border2);
  border-radius: 10px;
  color: var(--hb-accent);
  background: var(--hb-card);
  font: 600 12px/1.2 var(--hb-font-text);
  cursor: pointer;
}

.shell-classes .classes-page-empty-bin {
  margin: 0;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--hb-border);
  color: var(--hb-text3);
  font: 400 13px/1.4 var(--hb-font-text);
}

.classes-manage-dialog {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px 16px;
  overflow-y: auto;
  border: 0;
  color: var(--hb-text);
  background: transparent;
}

.classes-manage-dialog[hidden] {
  display: none;
}

body.classes-manage-modal-open {
  overflow: hidden;
}

.classes-manage-backdrop {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(23, 35, 60, 0.48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.classes-manage-dialog.is-open .classes-manage-sheet {
  animation: classes-manage-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.classes-manage-sheet {
  position: relative;
  z-index: 10;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  padding: 34px;
  overflow-y: auto;
  border: 1px solid rgba(218, 224, 235, 0.95);
  border-radius: 26px;
  background: var(--hb-card);
  box-shadow: 0 36px 80px -32px rgba(10, 23, 48, 0.64);
}

.classes-manage-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hb-border);
  border-radius: 50%;
  color: var(--hb-text2);
  background: var(--hb-card);
  font: 300 27px/1 var(--hb-font-text);
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.classes-manage-close:hover,
.classes-manage-close:focus-visible {
  color: var(--hb-text);
  background: var(--hb-hover);
  transform: translateY(-1px);
  outline: none;
}

.classes-manage-panel[hidden] {
  display: none;
}

.classes-manage-panel.is-active {
  animation: classes-manage-panel-enter 180ms ease both;
}

.classes-manage-eyebrow {
  display: block;
  padding-right: 56px;
  color: var(--hb-accent);
  font: 700 11.5px/1.2 var(--hb-font-text);
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.classes-manage-eyebrow.is-danger {
  color: #c0392b;
}

.classes-manage-panel h2 {
  margin: 7px 56px 22px 0;
  color: var(--hb-text);
  font: 600 29px/1.1 var(--hb-font-display);
  letter-spacing: -0.6px;
}

.classes-manage-panel h2:focus {
  outline: none;
}

.classes-manage-summary {
  padding: 19px 20px;
  border: 1px solid var(--hb-border);
  border-radius: 17px;
  background: var(--hb-card2);
}

.classes-manage-summary > strong {
  display: block;
  color: var(--hb-text);
  font: 600 17px/1.25 var(--hb-font-display);
}

.classes-manage-summary > span {
  display: block;
  margin-top: 3px;
  color: var(--hb-text3);
  font: 400 13.5px/1.35 var(--hb-font-text);
}

.classes-manage-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 15px;
  color: var(--hb-text2);
  font: 500 13px/1.35 var(--hb-font-text);
}

.classes-manage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.classes-manage-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 15px;
  background: var(--hb-card);
  font: 600 15px/1.2 var(--hb-font-text);
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.classes-manage-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.classes-manage-action.is-complete {
  border-color: rgba(42, 98, 240, 0.34);
  color: var(--hb-accent);
}

.classes-manage-action.is-drop {
  border-color: rgba(192, 57, 43, 0.32);
  color: #c0392b;
}

.classes-manage-action:hover,
.classes-manage-action:focus-visible {
  background: var(--hb-hover);
  box-shadow: 0 14px 28px -22px rgba(16, 42, 90, 0.55);
  transform: translateY(-1px);
  outline: none;
}

.classes-manage-helper,
.classes-manage-intro {
  color: var(--hb-text3);
  font: 400 13px/1.55 var(--hb-font-text);
}

.classes-manage-helper {
  margin: 17px 8px 0;
  text-align: center;
}

.classes-manage-intro {
  margin: -8px 0 20px;
  color: var(--hb-text2);
}

.classes-manage-grade-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.classes-manage-grade-grid label {
  position: relative;
  cursor: pointer;
}

.classes-manage-grade-grid label:last-child {
  grid-column: span 2;
}

.classes-manage-grade-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.classes-manage-grade-grid span {
  display: grid;
  place-items: center;
  min-height: 45px;
  border: 1px solid var(--hb-border2);
  border-radius: 12px;
  color: var(--hb-text2);
  background: var(--hb-card);
  font: 600 14px/1 var(--hb-font-text);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.classes-manage-grade-grid input:checked + span {
  border-color: var(--hb-accent);
  color: var(--hb-accent);
  background: rgba(42, 98, 240, 0.09);
}

.classes-manage-grade-grid input:focus-visible + span {
  outline: 3px solid rgba(42, 98, 240, 0.18);
  outline-offset: 2px;
}

.classes-manage-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.classes-manage-submit,
.classes-manage-back {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 13px;
  font: 600 14.5px/1.2 var(--hb-font-text);
  cursor: pointer;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.classes-manage-submit {
  flex: 1;
  border: 0;
  color: #fff;
}

.classes-manage-submit.is-complete {
  background: linear-gradient(180deg, #2f68f4, #1c49c7);
}

.classes-manage-submit.is-drop {
  background: #c0392b;
}

.classes-manage-back {
  border: 1px solid var(--hb-border2);
  color: var(--hb-text2);
  background: var(--hb-card);
}

.classes-manage-submit:hover,
.classes-manage-submit:focus-visible,
.classes-manage-back:hover,
.classes-manage-back:focus-visible {
  box-shadow: 0 14px 28px -20px rgba(16, 42, 90, 0.58);
  transform: translateY(-1px);
  outline: none;
}

@keyframes classes-manage-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes classes-manage-panel-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .shell-classes {
    width: calc(100% - 32px);
  }

  .shell-classes .classes-page {
    padding-top: 18px;
  }

  .shell-classes .classes-page-card > header {
    align-items: flex-start;
    padding-inline: 18px;
  }

  .shell-classes .classes-page-row {
    grid-template-columns: 5px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 92px;
    padding-right: 18px;
  }

  .shell-classes .classes-page-chevron {
    display: none;
  }

  .shell-classes .classes-page-copy strong {
    font-size: 16px;
  }

  .shell-classes .classes-page-copy small {
    white-space: normal;
  }

  .shell-classes .classes-page-bins {
    flex-wrap: wrap;
  }

  .shell-classes .classes-page-bin-panel {
    position: fixed;
    inset: auto 16px 18px;
    width: auto;
    max-height: min(60vh, 520px);
    overflow-y: auto;
  }

  .classes-manage-sheet {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }

  .classes-manage-close {
    top: 16px;
    right: 16px;
  }

  .classes-manage-panel h2 {
    font-size: 25px;
  }

  .classes-manage-actions {
    grid-template-columns: 1fr;
  }

  .classes-manage-grade-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .classes-manage-grade-grid label:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .shell-classes .classes-page-card > header {
    flex-direction: column;
    gap: 8px;
  }

  .shell-classes .classes-page-card > header > a {
    margin-left: -10px;
  }
}

.auth-single-footer {
  display: grid;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(207, 226, 239, 0.92);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

button.button {
  cursor: pointer;
  font: inherit;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 106, 181, 0.24);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.public-class-confirm-page {
  display: grid;
  justify-items: center;
  gap: 26px;
  width: min(100%, 900px);
  margin: 0 auto;
}

.public-class-confirm-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.public-class-confirm-header span {
  color: #07883a;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-class-confirm-header b {
  margin: 0 14px;
}

.public-class-confirm-header h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.public-class-confirm-header p {
  color: #263956;
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
}

.public-class-confirm-card {
  display: grid;
  gap: 26px;
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid #d7e4ee;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(38, 56, 80, 0.08);
}

.public-class-confirm-summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: clamp(28px, 5vw, 42px) clamp(28px, 5vw, 48px) 0;
}

.public-class-confirm-cap {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
}

.public-class-confirm-cap img,
.public-class-confirm-steps article > span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-class-confirm-summary h2 {
  margin: 0 0 8px;
  font-size: clamp(1.42rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.public-class-confirm-summary strong {
  display: block;
  margin-bottom: 16px;
  color: #07883a;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1;
}

.public-class-confirm-summary p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: #263956;
  font-weight: 700;
  line-height: 1.35;
}

.public-class-confirm-summary p svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #31445f;
}

.public-class-confirm-divider {
  height: 1px;
  margin: 0 clamp(28px, 5vw, 48px);
  background: #dfe9f0;
}

.public-class-confirm-copy {
  margin: 0 clamp(28px, 5vw, 48px);
  color: #263956;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 650;
}

.public-class-confirm-section-title {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 0 clamp(28px, 5vw, 48px);
  color: #07883a;
  text-align: center;
}

.public-class-confirm-section-title span {
  height: 1px;
  background: #dfe9f0;
}

.public-class-confirm-section-title strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.public-class-confirm-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 clamp(28px, 5vw, 48px);
}

.public-class-confirm-steps article {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  text-align: center;
}

.public-class-confirm-steps article > span {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
}

.public-class-confirm-steps article strong {
  color: #071d49;
  font-size: clamp(0.94rem, 1.7vw, 1.08rem);
  line-height: 1.45;
}

.public-class-confirm-steps > i {
  display: grid;
  place-items: center;
  margin-top: 34px;
  color: #96a4b7;
  font-style: normal;
}

.public-class-confirm-steps > i svg {
  width: 28px;
  height: 28px;
}

.public-class-confirm-actions {
  display: grid;
  gap: 16px;
  padding: 0 clamp(28px, 5vw, 48px);
}

.public-class-confirm-action-form {
  margin: 0;
}

.public-class-confirm-primary,
.public-class-confirm-secondary {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 18px 28px;
  border-radius: 3px;
  text-align: left;
  text-decoration: none;
}

button.public-class-confirm-primary {
  cursor: pointer;
  font: inherit;
}

.public-class-confirm-primary {
  border: 0;
  background: linear-gradient(135deg, #07883a 0%, #04a84a 100%);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(7, 136, 58, 0.22);
}

.public-class-confirm-secondary {
  border: 1px solid #cdddea;
  background: #ffffff;
  color: #071d49;
}

.public-class-confirm-primary > span,
.public-class-confirm-secondary > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
}

.public-class-confirm-primary svg,
.public-class-confirm-secondary svg {
  width: 42px;
  height: 42px;
}

.public-class-confirm-primary strong,
.public-class-confirm-secondary strong {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.18;
}

.public-class-confirm-primary em,
.public-class-confirm-secondary em {
  color: inherit;
  font-style: normal;
  opacity: 0.82;
}

.public-class-confirm-state-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid #d7e4ee;
  border-radius: 3px;
  background: #f8fbff;
}

.public-class-confirm-different {
  display: grid;
  gap: 14px;
  padding: 0 clamp(28px, 5vw, 48px);
  text-align: center;
}

.public-class-confirm-different a {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 10px;
  color: #07883a;
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
}

.public-class-confirm-different svg {
  width: 24px;
  height: 24px;
}

.public-class-confirm-reassurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 18px clamp(20px, 4vw, 34px);
  border-top: 1px solid #dfe9f0;
  background: #f8fbff;
}

.public-class-confirm-reassurance span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #31445f;
  font-weight: 700;
}

.public-class-confirm-reassurance span + span {
  border-left: 1px solid #d4e0ea;
}

.public-class-confirm-reassurance svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.public-class-confirm-help {
  color: #263956;
  font-weight: 700;
}

.public-class-confirm-help a {
  color: #07883a;
  font-weight: 900;
  text-decoration: none;
}

.button-danger {
  background: linear-gradient(135deg, #d52b1e 0%, #b0180c 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(181, 36, 12, 0.2);
}

.button-compact {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 0.96rem;
}

.button-text {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  font-size: 0.92rem;
}

.button-text:hover {
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  text-decoration: underline;
  transform: none;
}

.button-text:disabled {
  cursor: default;
  color: var(--accent-strong);
  opacity: 1;
}

.button-text:disabled:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.calendar-feedback-actions {
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(243, 251, 255, 0.64) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.hero-copy {
  position: relative;
  background:
    linear-gradient(180deg, rgba(223, 241, 255, 0.82) 0%, rgba(255, 255, 255, 0.98) 42%),
    linear-gradient(135deg, rgba(0, 106, 181, 0.04) 0%, rgba(27, 166, 166, 0.04) 100%);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--highlight) 100%);
}

.shell-authenticated .hero-copy {
  padding: clamp(20px, 2vw, 26px) clamp(22px, 2.6vw, 30px);
  border-radius: 6px;
}

.shell-authenticated .hero-copy::after {
  height: 5px;
}

.shell-authenticated .hero-copy h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.shell-authenticated .hero-copy p,
.shell-authenticated .hero-copy .lead {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.52;
}

.shell-authenticated .hero-copy .hero-actions {
  gap: 10px;
  margin-top: 16px;
}

.shell-authenticated .hero-copy .button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 0.96rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
}

.field-legend {
  font-size: 0.92rem;
  font-weight: 700;
}

.choice-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip-option {
  position: relative;
}

.choice-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease, transform 0.16s ease;
}

.choice-chip-label:hover {
  border-color: rgba(0, 106, 181, 0.32);
  color: var(--text);
  transform: translateY(-1px);
}

.choice-chip-input:focus-visible + .choice-chip-label {
  outline: 2px solid rgba(0, 106, 181, 0.28);
  outline-offset: 2px;
}

.choice-chip-input:checked + .choice-chip-label {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 106, 181, 0.18);
}

.note-upload-dropzone {
  position: relative;
  min-height: 104px;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.note-upload-dropzone:hover,
.note-upload-dropzone:focus-within,
.note-upload-dropzone.is-dragover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(223, 241, 255, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 106, 181, 0.14);
}

.note-upload-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.note-upload-dropzone-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 18px 20px;
  pointer-events: none;
}

.note-upload-dropzone-trigger {
  flex: 0 0 auto;
}

.note-upload-dropzone-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.note-upload-dropzone-copy strong {
  font-size: 1rem;
  line-height: 1.35;
}

.admin-seed-upload-panel {
  padding: 22px;
}

.admin-seed-upload-form {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-seed-upload-dropzone {
  min-height: 132px;
  border-color: var(--hb-border, #d7e1ef);
  border-radius: 16px;
  background: var(--hb-card2, #f7f9fc);
}

.admin-seed-upload-dropzone:hover,
.admin-seed-upload-dropzone:focus-within,
.admin-seed-upload-dropzone.is-dragover {
  border-color: var(--hb-accent, #2458df);
  background: color-mix(in srgb, var(--hb-accent, #2458df) 5%, var(--hb-card, #ffffff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-accent, #2458df) 18%, transparent);
}

.admin-seed-upload-dropzone.is-selected {
  border-style: solid;
}

.admin-seed-upload-dropzone-content {
  min-height: 132px;
  padding: 22px 24px;
}

.admin-seed-upload-icon {
  align-items: center;
  background: color-mix(in srgb, var(--hb-accent, #2458df) 10%, var(--hb-card, #ffffff));
  border-radius: 14px;
  color: var(--hb-accent, #2458df);
  display: inline-flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.admin-seed-upload-icon svg {
  height: 27px;
  width: 27px;
}

.admin-seed-upload-copy {
  flex: 1 1 auto;
}

.admin-seed-upload-copy strong {
  color: var(--hb-text, #10203c);
  font: 650 16px/1.35 var(--hb-font-text, var(--font-text));
  overflow-wrap: anywhere;
}

.admin-seed-upload-copy .inline-note {
  color: var(--hb-text3, #74839e);
  font: 500 13px/1.4 var(--hb-font-text, var(--font-text));
}

.admin-seed-upload-choose {
  min-height: 42px;
}

.admin-seed-upload-submit {
  min-width: 128px;
}

@media (max-width: 720px) {
  .admin-seed-upload-panel {
    padding: 16px;
  }

  .admin-seed-upload-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-seed-upload-dropzone-content {
    flex-direction: column;
    min-height: 210px;
    padding: 24px 18px;
    text-align: center;
  }

  .admin-seed-upload-copy {
    flex: 0 1 auto;
  }

  .admin-seed-upload-submit {
    width: 100%;
  }
}

.section-upload-modern {
  gap: 26px;
  width: min(100%, 640px);
  max-width: 640px;
  margin-inline: auto;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.section-upload-intro {
  display: grid;
  gap: 8px;
}

.section-upload-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-upload-intro p {
  margin: 0;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.35;
}

.section-upload-dropzone-shell {
  display: grid;
}

.section-upload-modern .section-upload-dropzone {
  min-height: 0;
  border: 1.5px dashed rgba(0, 113, 227, 0.35);
  border-radius: 20px;
  background: #ffffff;
}

.section-upload-modern .section-upload-dropzone:hover,
.section-upload-modern .section-upload-dropzone:focus-within,
.section-upload-modern .section-upload-dropzone.is-dragover {
  border-color: rgba(22, 101, 216, 0.72);
  background: rgba(248, 252, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(22, 101, 216, 0.08);
}

.section-upload-modern .section-upload-dropzone-content {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 52px 24px;
  text-align: center;
}

.section-upload-cloud-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(231, 243, 255, 0.86);
  color: var(--accent);
  box-shadow: none;
}

.section-upload-cloud-icon svg {
  width: 27px;
  height: 27px;
}

.section-upload-modern .section-upload-dropzone-copy {
  gap: 6px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.section-upload-modern .section-upload-dropzone-copy strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-upload-modern .section-upload-dropzone-copy .inline-note {
  font-size: 14.5px;
}

.section-upload-choose-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 590;
  box-shadow: none;
}

.section-upload-choose-button svg {
  display: none;
}

.section-upload-date-group {
  gap: 7px;
}

.section-upload-date-group label {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 590;
}

.section-upload-date-control {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(177, 205, 228, 0.88);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.section-upload-date-control input {
  min-height: 44px;
  padding: 0 42px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  box-shadow: none;
  width: 100%;
}

.section-upload-date-control input::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.section-upload-date-icon,
.section-upload-date-chevron {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  pointer-events: none;
}

.section-upload-date-icon {
  position: static;
  color: #ff3b30;
}

.section-upload-date-chevron {
  display: none;
}

.section-upload-date-icon svg {
  width: 17px;
  height: 17px;
}

.section-upload-date-chevron svg {
  width: 17px;
  height: 17px;
}

.section-upload-submit {
  display: grid;
  grid-template-columns: 48px minmax(0, auto) 48px;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: #0877ee;
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 600;
  box-shadow: none;
}

.section-upload-submit > span:first-child {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.section-upload-submit-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(116, 221, 232, 0.22);
  color: #ffffff;
  font-size: 1.75rem;
}

.section-upload-submit-arrow {
  grid-column: 3;
  justify-self: start;
  font-size: 1.5rem;
  font-weight: 500;
}

.upload-notes-actions-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 32, 51, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.upload-manual-row {
  display: grid;
  align-items: center;
  grid-template-columns: 29px minmax(0, 1fr) 15px;
  gap: 13px;
  width: 100%;
  min-height: 0;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid rgba(8, 32, 51, 0.1);
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.upload-manual-row:last-child {
  border-bottom: 0;
}

.upload-manual-row:hover,
.upload-manual-row:focus-visible {
  background: rgba(248, 252, 255, 0.92);
  border-color: rgba(8, 32, 51, 0.1);
  box-shadow: none;
  transform: none;
}

.upload-manual-icon-wrap,
.upload-manual-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent);
}

.upload-manual-icon-wrap {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #ff9f0a;
  color: #ffffff;
}

.upload-manual-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.upload-manual-row.is-friend .upload-manual-icon-wrap {
  background: #34c759;
}

.upload-manual-row.is-vault .upload-manual-icon-wrap {
  background: #5e5ce6;
}

.upload-manual-row.is-record .upload-manual-icon-wrap {
  background: #e24b3e;
}

.upload-manual-copy {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.upload-manual-eyebrow {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.upload-manual-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 590;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.upload-manual-subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.upload-manual-chevron svg {
  width: 22px;
  height: 22px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 106, 181, 0.28);
  outline-offset: 2px;
  border-color: rgba(0, 106, 181, 0.44);
}

.school-search-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.school-search-input-shell input {
  padding-right: 62px;
}

.school-level-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.school-level-pill {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  padding: 9px 13px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease;
}

.school-level-pill:hover,
.school-level-pill:focus-visible {
  border-color: rgba(0, 106, 181, 0.44);
  color: var(--accent-strong);
  outline: none;
}

.school-level-pill.is-active {
  border-color: rgba(0, 106, 181, 0.48);
  background: rgba(0, 106, 181, 0.1);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 106, 181, 0.12);
}

.school-search-location-button {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease,
    transform 0.16s ease;
}

.school-search-location-button:hover,
.school-search-location-button:focus-visible {
  border-color: rgba(0, 106, 181, 0.44);
  background: var(--surface-soft);
  box-shadow: 0 10px 20px rgba(8, 82, 139, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.school-search-location-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.school-search-location-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.school-add-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.48fr);
}

.school-add-side h1 {
  max-width: 9ch;
}

.school-add-main-card {
  gap: 28px;
}

.school-add-search-form {
  gap: 14px;
}

.school-add-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.school-add-input-wrap input {
  min-height: 64px;
  padding-left: 60px;
  padding-right: 72px;
}

.school-picker-page {
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 640px;
  padding: 8px 20px 64px;
  width: 100%;
}

.school-picker-steps {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: center;
  padding: 18px 0 34px;
}

.school-picker-steps span {
  align-items: center;
  color: #96999e;
  display: flex;
  font-size: 0.78rem;
  font-weight: 560;
  gap: 8px;
  white-space: nowrap;
}

.school-picker-steps span.is-current { color: #202225; font-weight: 680; }
.school-picker-steps i { background: #c8cbd0; border-radius: 50%; height: 7px; width: 7px; }
.school-picker-steps span.is-current i { background: #0876e8; box-shadow: 0 0 0 4px rgba(8, 118, 232, 0.15); }
.school-picker-steps b { background: #cfd2d6; border-radius: 2px; height: 2px; width: 24px; }

.school-picker-heading { text-align: center; }
.school-picker-heading h1 { font-size: clamp(2.15rem, 7vw, 3rem); font-weight: 650; letter-spacing: -0.04em; margin: 0; }
.school-picker-heading p { color: #85898f; font-size: 1rem; line-height: 1.45; margin: 10px auto 0; max-width: 34ch; }

.school-picker-search-form { display: grid; margin-top: 28px; }
.school-picker-page .school-level-toggle {
  background: #e9e9ec;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 32px;
  padding: 2px;
  width: min(300px, 100%);
}

.school-picker-page .school-level-pill {
  background: transparent;
  border: 0;
  border-radius: 7px !important;
  color: #202225;
  font-size: 0.92rem;
  font-weight: 570;
  min-height: 42px;
}

.school-picker-page .school-level-pill.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  color: #202225;
}

.school-picker-search { display: block; position: relative; }
.school-picker-search > svg {
  color: #878b91;
  height: 20px;
  left: 18px;
  position: absolute;
  top: 21px;
  width: 20px;
  z-index: 1;
}

.school-picker-page .school-picker-search input {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e0e2e5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(25, 35, 45, 0.06);
  font-size: 1.08rem;
  min-height: 64px;
  padding: 14px 18px 14px 52px;
}

.school-picker-meta {
  align-items: center;
  color: #898d92;
  display: flex;
  font-size: 0.8rem;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 4px;
}

.school-picker-location {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #20a763;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  gap: 6px;
  padding: 6px;
}

.school-picker-location svg { fill: currentColor; height: 16px; width: 16px; }
.school-picker-location.is-loading { opacity: 0.65; }

.school-picker-results-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e4e7;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 31, 42, 0.06);
  overflow: hidden;
}

.school-picker-results-card:empty { display: none; }
.school-picker-results-heading {
  background: #f6f6f8;
  border-bottom: 1px solid #e7e8ea;
  color: #85898f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 11px 16px;
  text-transform: uppercase;
}

.school-picker-row {
  align-items: center;
  background: transparent;
  border: 0;
  color: #202225;
  display: grid;
  gap: 13px;
  grid-template-columns: 42px minmax(0, 1fr) auto 28px;
  margin: 0;
  min-height: 72px;
  padding: 11px 16px;
  position: relative;
  width: 100%;
}

.school-picker-row + .school-picker-row { border-top: 1px solid #eceef0; }
.school-picker-row:hover, .school-picker-row:focus-within, .school-picker-row.is-keyboard-active { background: #fafbfc; }
.school-picker-row.is-selected { background: #eef5ff; }

.school-picker-crest {
  align-items: center;
  background: linear-gradient(145deg, var(--school-brand-primary, #2878eb), var(--school-brand-accent, #22b975));
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 0.78rem;
  font-weight: 760;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.school-picker-copy { display: grid; gap: 2px; min-width: 0; }
.school-picker-copy strong { font-size: 0.98rem; font-weight: 610; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-picker-copy > span { color: #878b91; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-picker-distance { background: #f0f0f2; border-radius: 999px; color: #85898f; font-size: 0.76rem; font-weight: 600; padding: 5px 9px; white-space: nowrap; }

.school-picker-select {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 2px solid #cfd2d6;
  border-radius: 50% !important;
  color: transparent;
  display: flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

.school-picker-row.is-selected .school-picker-select { background: #0876e8; border-color: #0876e8; color: #fff; }
.school-picker-select::before { content: ""; inset: 0; position: absolute; }

.school-picker-empty { color: #85898f; display: grid; gap: 4px; padding: 30px; text-align: center; }
.school-picker-empty strong { color: #30343a; }
.school-picker-missing {
  appearance: none;
  background: transparent;
  border: 0;
  color: #85898f;
  font: inherit;
  margin-top: 20px;
  padding: 12px;
}

.school-picker-missing strong { color: #0876e8; font-weight: 570; }
.school-picker-keyboard { color: #a0a3a8; font-size: 0.72rem; margin: 8px 0 0; text-align: center; }
.school-picker-keyboard kbd { background: #e9eaed; border: 1px solid #dfe1e4; border-radius: 4px; font: inherit; padding: 1px 5px; }

@media (max-width: 560px) {
  .school-picker-page { padding-inline: 14px; }
  .school-picker-steps { gap: 7px; overflow: hidden; }
  .school-picker-steps span { font-size: 0.7rem; }
  .school-picker-steps b { width: 14px; }
  .school-picker-heading h1 { font-size: 2.1rem; }
  .school-picker-meta { align-items: flex-start; flex-direction: column; gap: 0; }
  .school-picker-row { gap: 10px; grid-template-columns: 40px minmax(0, 1fr) 24px; padding-inline: 12px; }
  .school-picker-distance { display: none; }
  .school-picker-crest { height: 40px; width: 40px; }
  .school-picker-keyboard { display: none; }
}

.school-add-results-block {
  min-height: 220px;
}

.school-add-result-list {
  gap: 16px;
}

.school-add-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 20px 22px;
  border-color: rgba(179, 203, 221, 0.62);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(8, 82, 139, 0.07);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.school-add-result-card strong {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.school-add-result-card.is-selected {
  border-color: rgba(18, 104, 214, 0.82);
  background: rgba(232, 243, 255, 0.52);
  box-shadow: 0 14px 30px rgba(18, 104, 214, 0.12);
}

.school-add-result-card.has-school-brand-color {
  border-left: 4px solid var(--school-brand-primary);
}

.school-add-result-card.has-school-brand-color.is-selected {
  border-color: var(--school-brand-primary);
  border-left-color: var(--school-brand-primary);
}

.school-add-result-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.school-add-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.school-add-distance,
.class-add-choice-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(232, 243, 255, 0.78);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.school-add-result-card form {
  grid-column: 2;
  margin: 0;
}

.school-add-result-card .button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  white-space: nowrap;
}

.school-add-empty-card {
  align-items: center;
}

.school-add-empty-card .hero-actions {
  margin-top: 16px;
}

.inline-note {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .section-upload-modern {
    gap: 24px;
    padding: 0;
  }

  .section-upload-modern .section-upload-dropzone,
  .section-upload-modern .section-upload-dropzone-content {
    min-height: 0;
  }

  .section-upload-cloud-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }

  .section-upload-cloud-icon svg {
    width: 27px;
    height: 27px;
  }

  .section-upload-choose-button {
    min-width: 0;
    width: min(100%, 230px);
  }

  .section-upload-date-control input {
    min-height: 44px;
    padding: 0 42px 0 0;
  }

  .section-upload-submit {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    min-height: 54px;
    padding: 0 18px;
  }

  .section-upload-submit-spark {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  .upload-notes-actions-stack {
    grid-template-columns: 1fr;
  }

  .upload-manual-row {
    grid-template-columns: 29px minmax(0, 1fr) 15px;
    min-height: 0;
    padding: 13px 15px;
  }

  .note-upload-dropzone-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-upload-modern .section-upload-dropzone-content {
    align-items: center;
    text-align: center;
  }

  .section-calendar-event-header {
    flex-direction: column;
  }

  .section-calendar-status-button {
    width: 100%;
    min-width: 0;
  }

  .section-calendar-status-stats {
    grid-template-columns: 1fr;
  }
}

.bot-trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message {
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-error {
  background: rgba(164, 56, 27, 0.09);
  color: var(--danger);
  border: 1px solid rgba(164, 56, 27, 0.18);
}

.message-success {
  background: rgba(27, 166, 166, 0.1);
  color: #0d5c0c;
  border: 1px solid rgba(27, 166, 166, 0.22);
}

.message-info {
  background: rgba(0, 106, 181, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(0, 106, 181, 0.16);
}

.feature-list,
.result-list {
  display: grid;
  gap: 14px;
}

.feature-list {
  margin-top: 24px;
}

.class-picker-grid {
  width: min(100%, 1220px);
}

.class-picker-class-panel {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 34px);
}

.class-picker-panel-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.class-picker-panel-head .eyebrow {
  margin-bottom: 2px;
}

.class-picker-panel-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.class-picker-panel-head p {
  max-width: 68ch;
}

.class-picker-class-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 16px;
}

.class-picker-class-list .selection-card {
  min-height: 100%;
  background: #ffffff;
}

.class-picker-class-list .selection-card .button {
  width: 100%;
  margin-top: auto;
}

.class-add-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.48fr);
  gap: clamp(32px, 4.6vw, 68px);
  align-items: start;
  width: min(100%, 1460px);
  min-height: calc(100vh - 170px);
  margin: -10px auto 0;
  padding: clamp(18px, 2vw, 32px);
  border-radius: 9px;
  background:
    radial-gradient(circle at 13% 12%, rgba(210, 237, 255, 0.84), transparent 30%),
    linear-gradient(110deg, rgba(228, 246, 255, 0.96) 0%, rgba(246, 252, 255, 0.98) 50%, #ffffff 100%);
}

.class-add-side {
  display: grid;
  gap: 26px;
  align-content: start;
  padding: clamp(12px, 2.6vw, 48px) 0;
}

.class-add-side h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(1.58rem, 3.05vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.class-add-side .lead {
  max-width: 16em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.45;
}

.class-add-school-card,
.class-add-flow-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(207, 226, 239, 0.95);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(8, 82, 139, 0.09);
}

.class-add-school-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 24px 26px;
}

.class-add-school-abbr,
.class-add-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 5px;
  background: rgba(225, 241, 255, 0.94);
  color: var(--accent);
  font-weight: 900;
}

.class-add-school-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.class-add-check,
.class-add-current-school em {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.13);
  color: #0f8f43;
  font-style: normal;
  font-weight: 900;
}

.class-add-flow-card {
  padding: 26px;
}

.class-add-flow-card ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.class-add-flow-card li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 46px;
  color: var(--muted);
}

.class-add-flow-card li:not(:last-child)::after {
  position: absolute;
  left: 12px;
  top: 31px;
  width: 3px;
  height: calc(100% + 12px);
  border-radius: 8px;
  background: rgba(179, 203, 221, 0.62);
  content: "";
}

.class-add-flow-card li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(179, 203, 221, 0.65);
  border-radius: 8px;
  background: #eef7ff;
  color: var(--accent);
  content: "";
  font-weight: 900;
}

.class-add-flow-card li.is-done::before {
  background: rgba(34, 197, 94, 0.13);
  border-color: rgba(34, 197, 94, 0.22);
  color: #0f8f43;
  content: "✓";
}

.class-add-flow-card li.is-current::before {
  border-color: rgba(0, 106, 181, 0.26);
  box-shadow: inset 0 0 0 5px #dff2ff;
}

.class-add-flow-card span {
  color: var(--text);
  font-weight: 900;
}

.class-add-flow-card em {
  font-style: normal;
}

.class-add-main {
  display: grid;
  gap: 0;
  align-content: start;
}

.class-add-main-card {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(207, 226, 239, 0.92);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(8, 82, 139, 0.11);
}

.class-add-main-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid rgba(207, 226, 239, 0.9);
  border-radius: 7px;
  background: rgba(247, 252, 255, 0.96);
}

.class-add-main-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.class-add-main-head p {
  max-width: 64ch;
  margin-top: 10px;
  color: var(--muted);
}

.class-add-current-school {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  min-width: 170px;
  padding: 18px 20px;
  border: 1px solid rgba(179, 203, 221, 0.72);
  border-radius: 6px;
  background: #e9f6ff;
}

.class-add-current-school span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.class-add-current-school strong {
  color: var(--accent-strong);
  font-size: 1.16rem;
}

.class-add-current-school em {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.class-add-search-form {
  display: grid;
  gap: 12px;
}

.class-add-search-form > label {
  color: var(--text);
  font-weight: 900;
}

.class-add-search-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(260px, 1fr) minmax(150px, 0.2fr);
  gap: 14px;
  align-items: stretch;
}

.class-add-term-select {
  min-height: 64px;
}

.class-add-search-input-wrap {
  position: relative;
  display: block;
}

.class-add-search-input-wrap input {
  width: 100%;
  min-height: 64px;
  padding-left: 60px;
}

.class-add-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-54%);
  pointer-events: none;
}

.class-add-search-row .button {
  min-height: 64px;
  min-width: 150px;
}

.class-add-popular-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.class-add-popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.class-add-popular-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(207, 226, 239, 0.95);
  border-radius: 8px;
  background: rgba(245, 251, 255, 0.96);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.class-add-popular-chip:hover,
.class-add-popular-chip:focus-visible {
  border-color: rgba(0, 106, 181, 0.36);
  outline: none;
  transform: translateY(-1px);
}

.class-add-selected-course {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(179, 203, 221, 0.62);
  border-radius: 5px;
  background: rgba(245, 251, 255, 0.9);
}

.class-add-selected-course.is-selected,
.class-add-added-card.is-selected {
  border-color: rgba(18, 104, 214, 0.7);
  background: rgba(232, 243, 255, 0.58);
  box-shadow: 0 12px 28px rgba(18, 104, 214, 0.1);
}

.class-add-selected-course span {
  color: var(--muted);
}

.class-add-results-block,
.class-add-added-block {
  display: grid;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(179, 203, 221, 0.5);
}

.class-add-results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.class-add-results-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.class-add-count {
  min-width: 54px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(225, 241, 255, 0.85);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.class-add-empty-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 160px;
  padding: 34px;
  border: 1px solid rgba(179, 203, 221, 0.72);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
}

.class-add-empty-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.class-add-added-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.class-add-added-card {
  color: inherit;
  text-decoration: none;
}

.class-add-choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 20px 22px;
  border-color: rgba(179, 203, 221, 0.62);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(8, 82, 139, 0.07);
}

.class-add-choice-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.class-add-choice-copy strong {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

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

.class-add-choice-actions form {
  margin: 0;
}

.class-add-choice-actions .button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  white-space: nowrap;
}

.class-add-tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.class-add-tip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(207, 226, 239, 0.9);
  border-radius: 6px;
  background: rgba(247, 252, 255, 0.96);
}

.class-add-tip-card > span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 3px;
  background: rgba(225, 241, 255, 0.95);
  color: var(--accent);
  font-weight: 950;
}

.class-add-tip-card strong,
.class-add-tip-card em {
  display: block;
}

.class-add-tip-card em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.class-add-footer {
  display: grid;
  grid-template-columns: minmax(130px, 0.18fr) minmax(0, 1fr) minmax(160px, 0.22fr);
  gap: 18px;
  align-items: center;
  margin: -2px clamp(34px, 3.4vw, 58px) 0;
  padding: 20px 0 0;
}

.class-add-footer span {
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.class-add-footer .button {
  min-height: 58px;
}

.class-add-footer .button.is-disabled {
  border-color: rgba(179, 203, 221, 0.55);
  background: rgba(163, 185, 203, 0.44);
  color: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
}

.class-add-dialog-sheet {
  max-width: 760px;
}

.class-picker-page {
  min-height: calc(100vh - 120px);
  padding: 26px 20px 104px;
  background: #f1f4fb;
}

body:has(.class-picker-page) {
  background: #f1f4fb;
}

.class-picker-shell {
  width: min(100%, 900px);
  margin: 0 auto;
}

.class-picker-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 36px;
  color: #94949b;
  font-size: 0.82rem;
  font-weight: 700;
}

.class-picker-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.class-picker-step i {
  display: inline-grid;
  place-items: center;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d3d4d9;
  color: #fff;
  font-size: 0.55rem;
  font-style: normal;
  line-height: 1;
}

.class-picker-step.is-complete i {
  width: 17px;
  height: 17px;
  background: #27ae60;
}

.class-picker-step.is-current {
  color: #1e1e23;
}

.class-picker-step.is-current i {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.14);
}

.class-picker-step-line {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: #d4d4d9;
}

.class-picker-step-line.is-complete {
  background: rgba(39, 174, 96, 0.5);
}

.class-picker-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.class-picker-heading h1 {
  margin: 30px 0 0;
  color: #1d1d20;
  font-size: clamp(2.05rem, 5vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.class-picker-heading > p {
  max-width: 33ch;
  margin: 12px 0 0;
  color: #818189;
  font-size: 1rem;
  line-height: 1.42;
}

.class-picker-school-context {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin-top: 0;
  padding: 6px 8px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(18, 36, 64, 0.08);
}

.class-picker-school-abbr,
.class-picker-course-badge {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0;
}

.class-picker-school-abbr {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(
    145deg,
    var(--school-brand-primary, #2878eb),
    var(--school-brand-accent, #22b975)
  );
}

.class-picker-school-context strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-picker-school-context > span:last-child {
  color: #8190aa;
  font-weight: 650;
}

.class-picker-school-context a,
.class-picker-selected-course > a,
.class-picker-manual-link,
.class-picker-empty-card a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.class-picker-school-context a {
  padding: 4px 7px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.class-picker-catalog {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.class-picker-page .class-add-search-form {
  display: grid;
  gap: 9px;
}

.class-picker-page .class-add-search-row {
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
}

.class-picker-page .class-add-term-select,
.class-picker-page .class-add-search-input-wrap input {
  min-height: 58px;
  border: 1px solid rgba(32, 38, 48, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(17, 30, 55, 0.06);
  color: #25252b;
}

.class-picker-page .class-add-term-select {
  padding: 0 15px;
  font-size: 0.94rem;
  font-weight: 750;
}

.class-picker-page .class-add-search-input-wrap input {
  padding: 0 18px 0 46px;
  font-size: 1rem;
}

.class-picker-page .class-add-search-icon {
  left: 16px;
  color: #90919a;
  font-size: 1.4rem;
}

.class-picker-search-meta {
  display: none;
  justify-content: space-between;
  gap: 12px;
  padding: 0 5px;
  color: #91919a;
  font-size: 0.75rem;
}

.class-picker-search-meta kbd {
  display: inline-block;
  min-width: 16px;
  padding: 1px 4px;
  border: 1px solid rgba(37, 37, 43, 0.09);
  border-radius: 4px;
  background: rgba(37, 37, 43, 0.05);
  color: #777780;
  font-family: inherit;
  font-size: 0.64rem;
  text-align: center;
}

.class-picker-list-card,
.class-picker-added-card {
  overflow: hidden;
  border: 1px solid rgba(37, 37, 43, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(17, 30, 55, 0.08);
}

[data-class-live-search-results] {
  transition: opacity 140ms ease;
}

[data-class-live-search-results][aria-busy="true"] {
  opacity: 0.68;
}

.class-picker-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(37, 37, 43, 0.08);
  background: rgba(37, 37, 43, 0.035);
  color: #8a8a93;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.class-picker-list-heading em {
  color: #96969e;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.class-picker-course-row,
.class-picker-section-row,
.class-picker-added-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}

.class-picker-course-row + .class-picker-course-row::before,
.class-picker-section-row + .class-picker-section-row::before,
.class-picker-added-row + .class-picker-added-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 64px;
  height: 1px;
  background: rgba(37, 37, 43, 0.08);
  content: "";
}

.class-picker-course-row:hover,
.class-picker-course-row:focus-visible,
.class-picker-added-row:hover,
.class-picker-added-row:focus-visible {
  background: #fafcff;
  outline: none;
}

.class-picker-course-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 4px;
  background: linear-gradient(145deg, #3076f8, #1c48cd);
  text-align: center;
}

.class-picker-course-badge.hue-1 { background: linear-gradient(145deg, #ef416b, #e81c50); }
.class-picker-course-badge.hue-2 { background: linear-gradient(145deg, #5c57e8, #4138cc); }
.class-picker-course-badge.hue-3 { background: linear-gradient(145deg, #f5a526, #e77702); }
.class-picker-course-badge.hue-4 { background: linear-gradient(145deg, #2bbf78, #1c9559); }

.class-picker-row-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  flex: 1;
}

.class-picker-row-copy strong {
  overflow: hidden;
  color: #29292e;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-picker-row-copy span {
  overflow: hidden;
  color: #91919a;
  font-size: 0.8rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-picker-row-copy .class-picker-added-confirmed {
  color: #159861;
  font-weight: 650;
}

.class-picker-change {
  flex: 0 0 auto;
  padding: 10px 4px;
  color: #2056d7;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.class-picker-change:hover,
.class-picker-change:focus-visible {
  color: #123ca6;
  text-decoration: none;
}

.class-picker-row-warning {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff2d6;
  color: #bb7415;
  font-size: 1.15rem;
  font-weight: 800;
}

.class-picker-add-icon,
.class-picker-section-action button,
.class-picker-row-check {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.class-picker-course-row:hover .class-picker-add-icon,
.class-picker-course-row:focus-visible .class-picker-add-icon,
.class-picker-section-action button:hover,
.class-picker-section-action button:focus-visible {
  background: var(--accent);
  color: #fff;
}

.class-picker-section-action form {
  margin: 0;
}

.class-picker-section-action button {
  cursor: pointer;
}

.class-picker-row-check {
  background: rgba(39, 174, 96, 0.12);
  color: #1e9652;
  font-size: 0.96rem;
  font-weight: 850;
}

.class-picker-empty-card {
  display: grid;
  gap: 9px;
  min-height: 96px;
  place-content: center;
  padding: 18px;
  color: #8d8e96;
  text-align: center;
}

.class-picker-find-empty {
  min-height: 250px;
  padding: 38px 24px;
}

.class-picker-find-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #eaf1ff, #e4faf3);
  color: #2056d7;
  font-size: 2rem;
}

.class-picker-find-icon svg {
  width: 28px;
  height: 28px;
}

.class-picker-find-empty strong {
  color: var(--hb-text);
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.class-picker-find-empty p {
  max-width: 40ch;
  color: var(--hb-text2);
  font-size: 0.98rem;
}

.class-picker-list-card.is-idle {
  border-color: rgba(37, 37, 43, 0.06);
}

.class-picker-empty-card strong {
  color: #35353b;
}

.class-picker-empty-card p {
  max-width: 34ch;
  margin: 0;
  line-height: 1.45;
}

.class-picker-manual-link {
  justify-self: center;
  padding: 5px 8px;
  text-align: center;
  font-size: 0.82rem;
}

.class-picker-added-card {
  margin-top: 18px;
}

/* ---------------------------------------------------------------------------
 * Add Classes — pieces traced from `Add Classes.dc.html`: the "Add a class"
 * eyebrow rule, the department filter chips (`.ac-cat`), and the section
 * picker that expands inline underneath a course row (`.ac-secwrap`).
 * ------------------------------------------------------------------------ */

.class-picker-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 12px;
}
.class-picker-eyebrow > span:first-child {
  font: 700 11px "Instrument Sans", sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--hb-text3);
}
.class-picker-eyebrow-rule {
  flex: 1;
  height: 1px;
  background: var(--hb-border);
}

.class-picker-subjects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.class-picker-subject {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text2);
  font: 600 13px "Instrument Sans", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 130ms ease, color 130ms ease, background 130ms ease,
    box-shadow 130ms ease;
}
.class-picker-subject:hover {
  border-color: #2159e6;
  color: var(--hb-accent);
  text-decoration: none;
}
.class-picker-subject.is-active {
  background: #2159e6;
  border-color: #2159e6;
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(33, 89, 230, 0.6);
}
.class-picker-subject.is-active:hover { color: #ffffff; }
.class-picker-subject-count {
  font: 700 10.5px "JetBrains Mono", monospace;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--hb-track);
  color: var(--hb-text3);
}
.class-picker-subject.is-active .class-picker-subject-count {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.class-picker-section-picker {
  max-height: 460px;
  margin: 2px 14px 8px 60px;
  overflow-y: auto;
  padding-top: 8px;
  border-top: 1px solid var(--hb-border);
}
.class-picker-section-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px 8px;
  font: 600 13px "Instrument Sans", sans-serif;
  color: var(--hb-text2);
}
.class-picker-section-option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 13px;
  border: 1.5px solid transparent;
  border-radius: 13px !important;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}
.class-picker-section-option:hover { background: var(--hb-hover); }
.class-picker-section-option + .class-picker-section-option {
  border-top: 1px solid var(--hb-border);
}
.class-picker-section-radio {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--hb-border2);
  flex: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.class-picker-section-option:hover .class-picker-section-radio { border-color: #2159e6; }
.class-picker-section-option:hover .class-picker-section-radio {
  background: #2159e6;
  box-shadow: inset 0 0 0 5px #ffffff;
}
.class-picker-section-copy { flex: 1; min-width: 0; display: block; }
.class-picker-section-copy > span { display: block; }
.class-picker-section-name {
  font: 500 13.5px "Instrument Sans", sans-serif;
  color: var(--hb-text);
}
.class-picker-section-name b { font-weight: 700; }
.class-picker-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  font: 500 12px "Instrument Sans", sans-serif;
  color: var(--hb-text3);
}
.class-picker-section-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.class-picker-section-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font: 600 12.5px "Instrument Sans", sans-serif;
  color: var(--hb-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 130ms ease, transform 130ms ease;
}
.class-picker-section-option:hover .class-picker-section-pick {
  opacity: 1;
  transform: none;
}
.class-picker-section-manual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px dashed var(--hb-border2);
  border-radius: 12px;
  background: transparent;
  color: var(--hb-text2);
  font: 600 13px "Instrument Sans", sans-serif;
  text-decoration: none;
  transition: border-color 130ms ease, color 130ms ease, background 130ms ease;
}
.class-picker-section-manual:hover {
  border-color: #2159e6;
  color: var(--hb-accent);
  background: var(--hb-hover);
  text-decoration: none;
}
.class-picker-course-row.is-expanded {
  background: var(--hb-card2);
  box-shadow: inset 0 0 0 1px var(--hb-border);
}

/* "Your classes" header fills the card the way `.ac-myhead` does, rather than
   the compact inline header the rail cards use. */
.class-picker-added-collapsible .hb-collapsible-headrow { margin-bottom: 0; }
.class-picker-added-collapsible .hb-collapsible-head {
  display: flex;
  width: 100%;
  gap: 13px;
  margin: 0;
  padding: 17px 18px;
  border-radius: 20px 20px 0 0;
}
.class-picker-added-collapsible .hb-collapsible-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #2a62f0, #0f9f6e);
  color: #ffffff;
}
.class-picker-added-collapsible .hb-collapsible-body { padding: 0; }
.class-picker-added-collapsible:not(.is-collapsed)
  > .hb-collapsible-body
  > .hb-collapsible-inner {
  overflow: visible;
}
.class-picker-added-collapsible .class-picker-list {
  display: grid;
  gap: 4px;
  padding: 0 8px 10px;
}
.class-picker-added-entry {
  display: grid;
  min-width: 0;
}
.class-picker-added-collapsible .class-picker-added-row {
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  background: #fbfcff;
}
.class-picker-added-collapsible .class-picker-added-row + .class-picker-added-row::before {
  display: none;
}
.class-picker-added-collapsible .class-picker-added-row:hover,
.class-picker-added-collapsible .class-picker-added-row:focus-within {
  border-color: rgba(33, 89, 230, 0.2);
  background: #ffffff;
}
.class-picker-added-collapsible .class-picker-row-copy {
  gap: 3px;
}
.class-picker-added-collapsible .class-picker-row-copy strong {
  color: var(--hb-text);
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.15px;
}
.class-picker-added-collapsible .class-picker-added-confirmed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0c8653;
  font-size: 13.5px;
  font-weight: 550;
}
.class-picker-added-collapsible .class-picker-added-confirmed i {
  flex: none;
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}
.class-picker-added-collapsible .class-picker-added-confirmed > span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.class-picker-added-collapsible .class-picker-change {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 650;
}
.class-picker-change-chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.class-picker-change-chevron.is-open {
  margin-top: 4px;
  transform: rotate(225deg);
}
.class-picker-added-collapsible .class-picker-row-check {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 11px !important;
  background: linear-gradient(145deg, #22b978, #0d9a68);
  box-shadow: 0 10px 20px -12px rgba(13, 154, 104, 0.7);
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}
.class-picker-remove-form {
  flex: 0 0 auto;
  margin: 0;
}
.class-picker-remove-icon {
  display: none;
  font-size: 24px;
  font-weight: 450;
  line-height: 1;
}
.class-picker-added-collapsible .class-picker-row-check::after {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 7px);
  z-index: 3;
  padding: 5px 8px;
  border-radius: 7px;
  background: #111d36;
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  white-space: nowrap;
}
.class-picker-added-collapsible .class-picker-row-check:hover,
.class-picker-added-collapsible .class-picker-row-check:focus-visible {
  background: linear-gradient(145deg, #f0445c, #d62f45);
  box-shadow: 0 10px 20px -12px rgba(214, 47, 69, 0.72);
  outline: none;
  transform: translateY(-1px);
}
.class-picker-added-collapsible .class-picker-row-check:hover::after,
.class-picker-added-collapsible .class-picker-row-check:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0);
}
.class-picker-added-collapsible .class-picker-row-check:hover .class-picker-check-icon,
.class-picker-added-collapsible .class-picker-row-check:focus-visible .class-picker-check-icon {
  display: none;
}
.class-picker-added-collapsible .class-picker-row-check:hover .class-picker-remove-icon,
.class-picker-added-collapsible .class-picker-row-check:focus-visible .class-picker-remove-icon {
  display: block;
}
.class-picker-added-entry.is-changing {
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  background: #fbfcff;
}
.class-picker-added-entry.is-changing .class-picker-added-row {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.class-picker-added-section-picker {
  display: grid;
  gap: 8px;
  margin: 0 12px 10px 76px;
  padding-top: 11px;
  border-top: 1px solid var(--hb-border);
}
.class-picker-added-section-picker h3 {
  margin: 0;
  padding: 0 8px 4px;
  color: var(--hb-text);
  font: 650 16px/1.25 var(--hb-font-text);
  letter-spacing: -0.2px;
}
.class-picker-added-section-list {
  display: grid;
  max-height: 292px;
  overflow-y: auto;
  padding-right: 5px;
}
.class-picker-added-section-list form {
  margin: 0;
}
.class-picker-added-section-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1.5px solid transparent;
  border-radius: 13px !important;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.class-picker-added-section-option:hover,
.class-picker-added-section-option:focus-visible {
  background: var(--hb-hover);
  outline: none;
}
.class-picker-added-section-option.is-selected {
  border-color: #2a62f0;
  background: #ffffff;
  box-shadow: 0 8px 20px -14px rgba(33, 89, 230, 0.75);
}
.class-picker-added-section-radio {
  display: grid;
  flex: none;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid var(--hb-border2);
  border-radius: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}
.class-picker-added-section-option.is-selected .class-picker-added-section-radio {
  border-color: #2a62f0;
  background: #2a62f0;
}
.class-picker-added-section-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.class-picker-added-section-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--hb-text);
  font-size: 14px;
}
.class-picker-added-section-name strong {
  font-weight: 700;
}
.class-picker-added-section-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--hb-text3);
  font-size: 12px;
}
.class-picker-added-section-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--hb-subtle);
}
.class-picker-added-section-manual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px dashed var(--hb-border2);
  border-radius: 12px;
  color: var(--hb-text2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.class-picker-added-section-manual:hover,
.class-picker-added-section-manual:focus-visible {
  border-color: #2a62f0;
  background: var(--hb-hover);
  color: var(--hb-accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .class-picker-added-section-picker {
    margin-left: 12px;
  }
}

.class-picker-added-row.is-pending {
  background: #fbfcff;
}

@media (max-width: 640px) {
  .class-picker-page .class-add-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .class-picker-section-picker {
    margin-left: 14px;
  }
}

.class-picker-selected-course {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 16px;
  background: rgba(231, 242, 255, 0.72);
}

.class-picker-selected-course > a {
  flex: 0 0 auto;
  font-size: 0.78rem;
  white-space: nowrap;
}

.class-picker-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(37, 37, 43, 0.08);
  background: rgba(248, 248, 250, 0.92);
  backdrop-filter: blur(22px);
}

.class-picker-footer > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100%, 680px);
  margin: 0 auto;
}

.class-picker-footer.is-continue-only {
  padding-top: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
}

.class-picker-footer.is-continue-only > div {
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 1000px);
  gap: 24px;
}

.class-picker-footer.is-continue-only .class-picker-footer-status {
  justify-items: start;
  text-align: left;
}

.class-picker-footer.is-continue-only .class-picker-continue {
  min-width: 130px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 28px;
  box-shadow: 0 10px 22px rgba(30, 81, 210, 0.22);
}

@media (max-width: 640px) {
  .class-picker-footer.is-continue-only {
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  }

  .class-picker-footer.is-continue-only > div {
    gap: 12px;
  }

  .class-picker-footer.is-continue-only .class-picker-continue {
    min-width: 112px;
    min-height: 46px;
    padding-inline: 20px;
  }
}

.class-picker-back,
.class-picker-continue {
  padding: 11px 18px;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.class-picker-back {
  background: rgba(37, 37, 43, 0.07);
  color: #3f3f46;
}

.class-picker-continue {
  background: var(--accent);
  color: #fff;
}

.class-picker-continue.is-disabled {
  background: rgba(37, 37, 43, 0.08);
  color: #9a9aa2;
  cursor: not-allowed;
  pointer-events: none;
}

.class-picker-footer-status {
  display: grid;
  justify-items: center;
  color: #2d2d33;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.class-picker-footer-status small {
  color: #96969f;
  font-size: 0.7rem;
  font-weight: 500;
}

.confirm-sections-page {
  min-height: calc(100vh - 120px);
  padding: 26px 20px 104px;
  background: #f6f6f8;
}

.confirm-sections-shell {
  width: min(100%, 680px);
  margin: 0 auto;
}

.confirm-sections-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.confirm-sections-heading h1 {
  margin: 0;
  color: #1d1d20;
  font-size: clamp(2.05rem, 5vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.confirm-sections-heading > p {
  max-width: 35ch;
  margin: 12px 0 0;
  color: #818189;
  font-size: 1rem;
  line-height: 1.42;
}

.confirm-sections-heading .class-picker-school-context {
  margin-top: 20px;
}

.confirm-sections-heading .class-picker-school-context > span:last-child {
  color: #91919a;
  font-size: 0.83rem;
  white-space: nowrap;
}

.confirm-sections-list {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}

.confirm-sections-course {
  display: grid;
  gap: 9px;
}

.confirm-sections-course-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
}

.confirm-sections-course-header .class-picker-course-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.confirm-sections-course-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  flex: 1;
}

.confirm-sections-course-copy strong {
  overflow: hidden;
  color: #29292e;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-sections-course-copy span {
  color: #92929b;
  font-size: 0.78rem;
}

.confirm-sections-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(37, 37, 43, 0.06);
  color: #94949c;
  font-size: 0.72rem;
  font-weight: 750;
}

.confirm-sections-status.is-confirmed {
  background: rgba(39, 174, 96, 0.13);
  color: #239152;
}

.confirm-sections-card {
  overflow: hidden;
  border: 1px solid rgba(37, 37, 43, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(17, 30, 55, 0.08);
}

.confirm-sections-row + .confirm-sections-row {
  border-top: 1px solid rgba(37, 37, 43, 0.08);
}

.confirm-sections-row button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.confirm-sections-row:hover button,
.confirm-sections-row button:focus-visible {
  background: #fafcff;
  outline: none;
}

.confirm-sections-row.is-selected button {
  background: rgba(0, 113, 227, 0.09);
}

.confirm-sections-radio {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(37, 37, 43, 0.2);
  border-radius: 999px;
  color: transparent;
  font-size: 0.78rem;
  font-weight: 900;
}

.confirm-sections-row.is-selected .confirm-sections-radio {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.confirm-sections-row-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
  flex: 1;
}

.confirm-sections-section-line,
.confirm-sections-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.confirm-sections-section-line strong {
  color: #303037;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.confirm-sections-section-line span {
  overflow: hidden;
  color: #4b4b53;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-sections-chip {
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(37, 37, 43, 0.06);
  color: #898992;
  font-size: 0.74rem;
  line-height: 1.2;
}

.confirm-sections-chip.is-online {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
}

.confirm-sections-chip.is-warning {
  background: rgba(221, 128, 21, 0.13);
  color: #b46208;
  font-weight: 750;
}

.confirm-sections-manual {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid rgba(37, 37, 43, 0.08);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.confirm-sections-manual:hover,
.confirm-sections-manual:focus-visible {
  background: #fafcff;
  outline: none;
}

.confirm-sections-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 110px;
  padding: 24px;
  color: #8e8e97;
  text-align: center;
}

.confirm-sections-empty strong {
  color: #35353c;
}

.confirm-sections-empty a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

body:has(.readiness-building-page) {
  background: #f1f4fb;
}

.readiness-building-page {
  min-height: calc(100vh - 72px);
  padding: 26px 20px 118px;
  background: #f1f4fb;
}

.readiness-building-shell {
  width: min(100%, 650px);
  margin: 0 auto;
}

.readiness-building-page .class-picker-steps {
  margin-bottom: 26px;
}

.readiness-building-school {
  width: max-content;
  margin: 0 auto;
}

.readiness-building-school > span:last-child {
  color: #8290aa;
  font-size: 0.82rem;
  white-space: nowrap;
}

.readiness-building-heading {
  display: grid;
  justify-items: center;
  margin: 27px auto 30px;
  text-align: center;
}

.readiness-building-heading h1 {
  margin: 0;
  color: #101b37;
  font-size: clamp(2.15rem, 6vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1;
}

.readiness-building-heading p {
  max-width: 48ch;
  margin: 13px 0 0;
  color: #7585a2;
  font-size: 1rem;
  line-height: 1.45;
}

.readiness-building-list {
  display: grid;
  gap: 12px;
}

.readiness-building-class-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 53, 91, 0.06);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(25, 48, 89, 0.08);
}

.readiness-building-class-badge {
  display: grid;
  width: 54px;
  height: 54px;
  padding: 7px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #21b873, #119761);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-align: center;
}

.readiness-building-class-badge.tone-1 {
  background: linear-gradient(145deg, #3774f8, #2558df);
}

.readiness-building-class-badge.tone-2 {
  background: linear-gradient(145deg, #6b5bea, #4a3fd2);
}

.readiness-building-class-badge.tone-3 {
  background: linear-gradient(145deg, #ff9e2b, #e97b0a);
}

.readiness-building-class-body {
  display: grid;
  min-width: 0;
  gap: 11px;
}

.readiness-building-class-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.readiness-building-class-line strong {
  flex: none;
  color: #12203e;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.readiness-building-class-line span {
  overflow: hidden;
  color: #8290aa;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readiness-building-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e9eef7;
}

.readiness-building-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b63ed 0%, #138fc1 55%, #13a66f 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: readiness-mapping-fill 900ms cubic-bezier(0.22, 0.75, 0.2, 1)
    calc(120ms + var(--mapping-delay, 0ms)) forwards;
}

@keyframes readiness-mapping-fill {
  to {
    transform: scaleX(1);
  }
}

.readiness-building-class-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.readiness-building-mapping {
  padding: 5px 11px;
  border-radius: 999px;
  background: #e4f6ed;
  color: #1d8d59;
  font-size: 0.75rem;
  font-weight: 760;
}

.readiness-building-class-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2457d9;
  font-size: 0.78rem;
  font-weight: 740;
  text-decoration: none;
  white-space: nowrap;
}

.readiness-building-class-actions a:hover,
.readiness-building-class-actions a:focus-visible {
  color: #113bb5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.readiness-building-next {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.readiness-building-next h2 {
  margin: 0 0 1px 4px;
  color: #7d8ca8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.readiness-building-next > a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid rgba(31, 53, 91, 0.06);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 9px 23px rgba(25, 48, 89, 0.07);
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 150ms ease,
    transform 150ms ease;
}

.readiness-building-next > a:hover,
.readiness-building-next > a:focus-visible {
  box-shadow: 0 13px 28px rgba(25, 48, 89, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.readiness-building-next-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #3d75f4, #2458dc);
  color: #ffffff;
}

.readiness-building-next-icon.is-calendar {
  background: linear-gradient(145deg, #ff5870, #ed3e58);
}

.readiness-building-next > a > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.readiness-building-next strong {
  color: #14213e;
  font-size: 0.95rem;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.readiness-building-next small {
  overflow: hidden;
  color: #8290aa;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readiness-building-next b {
  color: #8c9ab2;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.readiness-building-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 13px 20px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(31, 53, 91, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(25, 48, 89, 0.05);
  backdrop-filter: blur(20px);
}

.readiness-building-footer > div {
  display: flex;
  width: min(100%, 1000px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.readiness-building-footer span {
  display: grid;
  gap: 2px;
}

.readiness-building-footer strong {
  color: #14213e;
  font-size: 0.86rem;
  font-weight: 760;
}

.readiness-building-footer small {
  color: #8290aa;
  font-size: 0.73rem;
}

.readiness-building-footer a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 13px;
  background: linear-gradient(145deg, #2d66ee, #184bd3);
  box-shadow: 0 10px 22px rgba(30, 81, 210, 0.24);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.readiness-building-footer a:hover,
.readiness-building-footer a:focus-visible {
  background: linear-gradient(145deg, #255de3, #123cb9);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .readiness-building-page {
    padding: 20px 14px 142px;
  }

  .readiness-building-page .class-picker-steps {
    gap: 5px;
    margin-bottom: 22px;
    font-size: 0.69rem;
  }

  .readiness-building-page .class-picker-step-line {
    width: 18px;
  }

  .readiness-building-school {
    max-width: 100%;
  }

  .readiness-building-school strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .readiness-building-heading {
    margin: 24px auto 26px;
  }

  .readiness-building-heading h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .readiness-building-heading p {
    font-size: 0.92rem;
  }

  .readiness-building-class-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .readiness-building-class-badge {
    width: 50px;
    height: 50px;
  }

  .readiness-building-class-line {
    display: grid;
    gap: 2px;
  }

  .readiness-building-class-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .readiness-building-next > a {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 13px 14px;
  }

  .readiness-building-next-icon {
    width: 44px;
    height: 44px;
  }

  .readiness-building-next small {
    white-space: normal;
  }

  .readiness-building-footer {
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  }

  .readiness-building-footer > div {
    gap: 12px;
  }

  .readiness-building-footer small {
    display: none;
  }

  .readiness-building-footer a {
    min-height: 46px;
    padding: 0 18px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .readiness-building-progress span {
    animation: none;
    transform: scaleX(1);
  }
}

.home-empty-experience {
  display: grid;
  width: min(100%, 1480px);
  margin: 0 auto;
  gap: clamp(22px, 2.8vw, 34px);
}

.home-empty-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 0.76fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: center;
  min-height: clamp(330px, 34vw, 440px);
  padding: clamp(28px, 4.6vw, 56px) clamp(30px, 5.4vw, 76px);
  border: 1px solid var(--border);
  border-radius: 7px;
  background:
    radial-gradient(circle at 78% 50%, rgba(27, 166, 166, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(8, 28, 45, 0.06);
  overflow: hidden;
}

.home-empty-copy {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  align-content: center;
}

.home-empty-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  border-radius: 8px;
  background: rgba(239, 247, 251, 0.9);
  color: var(--highlight);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-empty-kicker-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--highlight);
}

.home-empty-kicker-svg {
  width: 24px;
  height: 24px;
}

.home-empty-title {
  margin: 0;
  max-width: 12.5ch;
  color: var(--text);
  font-size: clamp(2.9rem, 5.1vw, 5.55rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.home-empty-title span {
  display: block;
  color: var(--highlight);
}

.home-empty-lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.45vw, 1.45rem);
  font-weight: 650;
  line-height: 1.55;
}

.home-empty-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.8vw, 44px);
  margin-top: 10px;
}

.home-empty-cta {
  min-height: 72px;
  padding: 0 34px;
  gap: 14px;
  border-radius: 4px;
  box-shadow: 0 18px 30px rgba(18, 104, 214, 0.22);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.home-empty-cta > span {
  font-size: 1.65em;
  line-height: 1;
}

.home-empty-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--highlight);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  font-weight: 800;
  transform: rotate(-3deg);
}

.home-empty-note > span {
  display: inline-block;
  font-size: 2.2rem;
  line-height: 1;
  transform: rotate(12deg);
}

.home-empty-setup-illustration {
  position: relative;
  min-height: clamp(230px, 24vw, 330px);
  isolation: isolate;
}

.home-empty-setup-glow {
  position: absolute;
  inset: 6% 2% 2% 2%;
  z-index: -1;
  border-radius: 11% 14% 10% 15%;
  background: linear-gradient(140deg, rgba(218, 239, 250, 0.94), rgba(231, 247, 245, 0.62));
}

.home-empty-setup-backpack {
  position: absolute;
  right: 16%;
  top: 18%;
  width: min(34vw, 220px);
  height: min(32vw, 235px);
  border-radius: 9% 9% 6% 6%;
  background: linear-gradient(135deg, #8bd2ca 0%, #3a9f99 100%);
  box-shadow:
    inset -18px -12px 0 rgba(8, 28, 45, 0.08),
    0 24px 44px rgba(8, 28, 45, 0.12);
}

.home-empty-setup-backpack::before {
  content: "";
  position: absolute;
  left: 30%;
  top: -14%;
  width: 42%;
  height: 24%;
  border: 14px solid rgba(48, 137, 132, 0.92);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.home-empty-setup-backpack::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 42%;
  height: 38%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 4px 0 rgba(8, 28, 45, 0.07);
}

.home-empty-setup-backpack span {
  position: absolute;
  left: 35%;
  top: 28%;
  width: 30%;
  height: 10px;
  border-radius: 8px;
  background: rgba(239, 247, 251, 0.35);
}

.home-empty-setup-book {
  position: absolute;
  left: 14%;
  width: min(32vw, 250px);
  height: 46px;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 16px 28px rgba(8, 28, 45, 0.1);
}

.home-empty-setup-book::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 9px;
  width: 38%;
  height: 28px;
  border-radius: 8px 2px 2px 8px;
  background: rgba(255, 252, 245, 0.95);
}

.home-empty-setup-book.is-top {
  top: 39%;
  z-index: 3;
  background: #63bdb6;
  transform: rotate(-1deg);
}

.home-empty-setup-book.is-middle {
  top: 54%;
  z-index: 2;
  background: #f3d58a;
  transform: translateX(-5%) rotate(1deg);
}

.home-empty-setup-book.is-bottom {
  top: 69%;
  z-index: 1;
  background: #1d559b;
  transform: translateX(3%);
}

.home-empty-setup-plant {
  position: absolute;
  right: 2%;
  bottom: 12%;
  width: 78px;
  height: 98px;
}

.home-empty-setup-plant::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 48px;
  height: 42px;
  border-radius: 3px 3px 5px 5px;
  background: #e8ddd0;
  box-shadow: inset -7px -5px 0 rgba(8, 28, 45, 0.06);
}

.home-empty-setup-plant span {
  position: absolute;
  bottom: 38px;
  width: 44px;
  height: 24px;
  border-radius: 8px 8px 0 8px;
  background: #7ac9a7;
  transform-origin: bottom right;
}

.home-empty-setup-plant span:first-child {
  left: 0;
  transform: rotate(36deg);
}

.home-empty-setup-plant span:last-child {
  right: 0;
  bottom: 62px;
  transform: rotate(-44deg) scale(0.9);
}

.home-empty-setup-sparkle {
  position: absolute;
  color: rgba(18, 104, 214, 0.16);
  font-size: 1.6rem;
  font-weight: 900;
}

.home-empty-setup-sparkle.is-one {
  left: 16%;
  top: 18%;
}

.home-empty-setup-sparkle.is-two {
  right: 6%;
  top: 12%;
  font-size: 1.25rem;
}

.home-empty-proof-panel,
.home-empty-tour-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 55px rgba(8, 28, 45, 0.08);
  backdrop-filter: blur(10px);
}

.home-empty-proof-panel {
  display: grid;
  gap: clamp(28px, 3vw, 42px);
  padding: clamp(26px, 4vw, 50px);
  border-radius: 8px;
}

.home-empty-proof-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.home-empty-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.home-empty-proof-item {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding-right: clamp(10px, 1.7vw, 24px);
  border-right: 1px solid rgba(207, 224, 239, 0.9);
}

.home-empty-proof-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.home-empty-proof-icon {
  display: inline-grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 6px;
  color: var(--accent);
}

.home-empty-proof-icon.is-teal {
  background: rgba(27, 166, 166, 0.1);
  color: var(--highlight);
}

.home-empty-proof-icon.is-blue {
  background: rgba(18, 104, 214, 0.1);
  color: var(--accent);
}

.home-empty-proof-icon.is-gold {
  background: rgba(255, 183, 77, 0.18);
  color: #ed8b16;
}

.home-empty-proof-icon.is-purple {
  background: rgba(114, 62, 214, 0.1);
  color: #6738cf;
}

.home-empty-proof-svg {
  width: 46px;
  height: 46px;
}

.home-empty-proof-item strong {
  color: var(--text);
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.1;
}

.home-empty-proof-item > span:not(.home-empty-proof-icon) {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 650;
  line-height: 1.5;
}

.home-empty-proof-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(207, 224, 239, 0.95);
  color: var(--text);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 800;
}

.home-empty-proof-footer span {
  color: var(--accent);
  font-size: 1.55rem;
}

.home-empty-tour-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(22px, 3vw, 54px);
  align-items: center;
  min-height: 170px;
  padding: clamp(22px, 3vw, 36px) clamp(28px, 5vw, 84px);
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.home-empty-tour-card:hover,
.home-empty-tour-card:focus-visible {
  outline: none;
  border-color: rgba(18, 104, 214, 0.34);
  box-shadow: 0 24px 58px rgba(8, 28, 45, 0.11);
  transform: translateY(-1px);
}

.home-empty-tour-illustration {
  position: relative;
  display: inline-grid;
  width: 140px;
  height: 104px;
  place-items: center;
  color: var(--accent);
}

.home-empty-tour-sheet {
  width: 86px;
  height: 86px;
  color: var(--accent);
}

.home-empty-tour-clock {
  position: absolute;
  left: 10px;
  bottom: 0;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(27, 166, 166, 0.12);
  color: var(--highlight);
}

.home-empty-tour-clock-svg {
  width: 30px;
  height: 30px;
}

.home-empty-tour-pencil {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 54px;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1268d6 0 74%, #1ba6a6 74% 86%, #ffcf67 86% 100%);
  box-shadow: 0 0 0 3px rgba(18, 104, 214, 0.08);
  transform: rotate(-42deg);
}

.home-empty-tour-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-empty-tour-copy strong {
  color: var(--text);
  font-size: clamp(1.28rem, 1.7vw, 1.75rem);
  line-height: 1.15;
}

.home-empty-tour-copy span {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.28rem);
  font-weight: 650;
  line-height: 1.35;
}

.home-empty-tour-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--accent);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-weight: 900;
  white-space: nowrap;
}

.home-empty-tour-link span {
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .class-add-layout {
    grid-template-columns: 1fr;
    padding: clamp(14px, 4vw, 22px);
  }

  .class-add-side h1 {
    max-width: 100%;
  }

  .class-add-main-head,
  .class-add-search-row,
  .class-add-footer {
    grid-template-columns: 1fr;
  }

  .class-add-search-row .button,
  .class-add-footer .button {
    width: 100%;
  }

  .school-add-result-card,
  .class-add-choice-card {
    grid-template-columns: 1fr;
  }

  .school-add-result-card form {
    grid-row: auto;
    grid-column: auto;
  }

  .school-add-result-card .button {
    width: 100%;
  }

  .class-add-choice-actions {
    justify-content: flex-start;
  }

  .class-add-choice-actions,
  .class-add-choice-actions form,
  .class-add-choice-actions .button {
    width: 100%;
  }

  .class-add-tip-grid {
    grid-template-columns: 1fr;
  }

  .schedule-hero {
    min-height: 180px;
    padding: 28px;
  }

  .schedule-card,
  .schedule-bin-card summary {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .schedule-card .button {
    width: 100%;
  }

  .schedule-bin-card .schedule-list {
    padding: 0 22px 22px;
  }

  .class-add-footer {
    margin: 18px 0 0;
  }

  .home-empty-main {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: clamp(24px, 6vw, 38px);
  }

  .home-empty-title {
    max-width: 100%;
    font-size: clamp(2.7rem, 9vw, 4.4rem);
  }

  .home-empty-setup-illustration {
    min-height: 250px;
  }

  .home-empty-setup-book {
    width: min(62vw, 245px);
  }

  .home-empty-setup-backpack {
    width: min(50vw, 210px);
    height: min(52vw, 220px);
  }

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

  .home-empty-proof-item:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .home-empty-tour-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .home-first-run {
    min-height: 0;
    padding: 8px 0 28px;
  }

  .home-first-run-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .home-first-run-card h1 {
    max-width: 100%;
  }

  .home-first-run-action {
    width: 100%;
  }

  .home-first-run-step-label {
    font-size: 0.68rem;
  }

  .home-empty-kicker {
    width: 100%;
    justify-content: center;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .home-empty-action-row,
  .home-empty-cta {
    width: 100%;
  }

  .home-empty-note {
    justify-content: center;
    width: 100%;
  }

  .home-empty-setup-illustration {
    min-height: 210px;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .home-empty-proof-grid {
    grid-template-columns: 1fr;
  }

  .home-empty-proof-item {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(207, 224, 239, 0.9);
  }

  .home-empty-proof-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .home-empty-tour-link {
    white-space: normal;
  }
}

.home-class-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(8, 82, 139, 0.06);
}

.home-class-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.home-class-comfort-ring {
  display: grid;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  place-items: center;
  align-content: center;
  border: 10px solid rgba(167, 203, 223, 0.92);
  border-radius: 8px;
  background: rgba(245, 251, 255, 0.96);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.home-class-comfort-ring:hover,
.home-class-comfort-ring:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(0, 106, 181, 0.42);
  background: rgba(236, 248, 255, 0.98);
}

.home-class-comfort-ring.is-building {
  border-color: rgba(0, 106, 181, 0.68);
  background: rgba(235, 247, 255, 0.96);
}

.home-class-comfort-ring.is-strong {
  border-color: rgba(74, 214, 42, 0.72);
  background: rgba(244, 255, 240, 0.96);
}

.home-class-comfort-ring strong {
  display: block;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.home-class-comfort-ring span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.home-class-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.home-class-card-top-row,
.home-class-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-class-card-top-row {
  justify-content: space-between;
}

.home-class-card-actions {
  flex: 0 0 auto;
}

.home-class-code {
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.home-class-title,
.home-class-title a {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.2;
  text-decoration: none;
}

.home-class-title a:hover,
.home-class-code:hover {
  color: var(--accent-strong);
}

.home-class-step-line {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-class-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff1cb;
  color: #a87208;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.home-class-info-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 250, 254, 0.98);
  color: var(--accent-strong);
  cursor: pointer;
}

.home-class-info-button:hover,
.home-class-info-button:focus-visible,
.home-class-status-pill:hover,
.home-class-status-pill:focus-visible {
  outline: none;
  filter: brightness(0.98);
}

.home-class-info-icon {
  width: 22px;
  height: 22px;
}

.home-class-primary-action {
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  margin-top: 0;
}

.home-class-support-line {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: center;
}

.home-class-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(167, 203, 223, 0.66);
}

.home-class-quick-action {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.home-class-quick-action:hover,
.home-class-quick-action:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.home-class-quick-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--accent-strong);
}

.home-class-quick-svg {
  width: 32px;
  height: 32px;
}

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

.home-review-section {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(207, 224, 239, 0.7);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 255, 0.9));
  box-shadow: 0 20px 44px rgba(8, 82, 139, 0.06);
}

.home-review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-review-section-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.home-review-section-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.2;
}

.home-review-section-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(46, 190, 133, 0.24), rgba(46, 190, 133, 0.1));
  color: var(--harbor-green);
}

.home-review-section.is-materials .home-review-section-icon {
  background: linear-gradient(150deg, rgba(11, 79, 168, 0.22), rgba(11, 79, 168, 0.08));
  color: var(--accent-strong);
}

.home-review-section.is-assessments .home-review-section-icon {
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.08));
  color: #7c3aed;
}

.home-review-section-svg {
  width: 21px;
  height: 21px;
}

.home-review-section-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(18, 104, 214, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(8, 82, 139, 0.06);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.home-review-section-action:hover,
.home-review-section-action:focus-visible {
  outline: none;
  border-color: rgba(18, 104, 214, 0.34);
  background: #ffffff;
  transform: translateY(-1px);
}

.home-review-list {
  display: grid;
  gap: 10px;
}

.home-review-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid rgba(207, 224, 239, 0.75);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(8, 82, 139, 0.04);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-review-section.is-path .home-review-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-inline: 18px;
}

.home-review-section.is-materials .home-review-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-inline: 18px;
}

.home-assessment-row {
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
}

.home-review-row:hover,
.home-review-row:focus-visible {
  outline: none;
  border-color: rgba(0, 106, 181, 0.3);
  box-shadow: 0 16px 32px rgba(8, 82, 139, 0.09);
  transform: translateY(-2px);
}

.home-review-row-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(232, 248, 225, 0.95);
  color: var(--harbor-green);
}

.home-review-row-icon.is-document {
  background: rgba(232, 243, 255, 0.98);
  color: var(--accent-strong);
}

.home-review-row-svg {
  width: 22px;
  height: 22px;
}

.home-assessment-date {
  display: grid;
  gap: 2px;
  min-width: 66px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(232, 243, 255, 0.85);
  text-align: center;
}

.home-assessment-date.is-quiz {
  background: rgba(220, 252, 231, 0.85);
}

.home-assessment-date strong {
  color: var(--accent-strong);
  font-size: 0.98rem;
  line-height: 1.05;
  white-space: nowrap;
}

.home-assessment-date.is-quiz strong {
  color: #12803d;
}

.home-assessment-date span {
  display: block;
  overflow: hidden;
  max-width: 72px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-review-row-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-review-row-copy strong,
.home-review-row-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-review-row-copy strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.25;
}

.home-review-row-copy span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.home-review-row-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(232, 248, 225, 0.95);
  color: #008c13;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.home-review-section.is-path .home-review-row-pill {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.home-review-row-pill.is-weak {
  background: rgba(255, 239, 239, 0.96);
  color: #c93535;
}

.home-review-row-pill.is-focus,
.home-review-row-pill.is-empty {
  background: rgba(255, 247, 220, 0.96);
  color: #a66b00;
}

.home-review-row-pill.is-strong {
  background: rgba(232, 248, 225, 0.95);
  color: #008c13;
}

.home-review-row-pill.is-readiness {
  background: rgba(232, 243, 255, 0.98);
  color: var(--accent-strong);
}

.home-review-row-pill.is-readiness.is-high {
  background: rgba(220, 252, 231, 0.95);
  color: #12803d;
}

.home-review-row-pill.is-readiness.is-mid {
  background: rgba(232, 243, 255, 0.98);
  color: var(--accent-strong);
}

.home-review-row-pill.is-readiness.is-low {
  background: rgba(255, 241, 211, 0.98);
  color: #a16207;
}

.home-review-row-pill.is-readiness.is-pending {
  background: rgba(232, 236, 240, 0.9);
  color: var(--muted);
}

.home-review-row-more {
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
}

.home-review-empty {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 14px 24px;
  min-height: 198px;
  padding: 24px 28px;
  border: 1px solid rgba(207, 224, 239, 0.6);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 22%, rgba(27, 166, 166, 0.09), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 255, 0.78));
}

.home-review-empty.is-materials {
  background:
    radial-gradient(circle at 18% 18%, rgba(18, 104, 214, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.84));
}

.home-review-empty-art {
  display: inline-grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  color: rgba(27, 166, 166, 0.54);
  box-shadow: inset 0 0 0 1px rgba(207, 224, 239, 0.7);
}

.home-review-empty.is-materials .home-review-empty-art {
  color: rgba(18, 104, 214, 0.56);
}

.home-review-empty-art-svg {
  width: 54px;
  height: 54px;
  stroke-width: 1.55;
}

.home-review-empty-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.home-review-empty-copy strong {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
}

.home-review-empty-copy span {
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.48;
}

.home-review-empty-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.home-review-empty-primary,
.home-review-empty-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-weight: 750;
  text-decoration: none;
}

.home-review-empty-primary {
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(18, 104, 214, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-strong);
  box-shadow: 0 12px 24px rgba(8, 82, 139, 0.07);
}

.home-review-empty-primary:hover,
.home-review-empty-primary:focus-visible,
.home-review-empty-secondary:hover,
.home-review-empty-secondary:focus-visible {
  outline: none;
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.home-review-empty-action-svg {
  width: 19px;
  height: 19px;
}

.home-review-empty-secondary {
  color: var(--accent-strong);
  font-size: 0.94rem;
}

.home-dashboard {
  display: grid;
  gap: 24px;
  padding: clamp(18px, 3vw, 34px);
}

.home-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 24px;
}

.home-dashboard-head h1 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.home-dashboard-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: home-dashboard-wave 2.4s ease-in-out 1;
}

@keyframes home-dashboard-wave {
  0% { transform: rotate(0deg); }
  12% { transform: rotate(16deg); }
  24% { transform: rotate(-10deg); }
  36% { transform: rotate(14deg); }
  48% { transform: rotate(-6deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.home-dashboard-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.home-dashboard-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid rgba(238, 198, 112, 0.5);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 252, 245, 0.96), rgba(255, 246, 224, 0.85));
  color: var(--text);
  transition: opacity 160ms ease, transform 160ms ease;
}

.home-dashboard-tip.is-dismissed {
  display: none;
}

.home-dashboard-tip-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 205, 90, 0.4);
  color: #a16207;
  font-size: 0.98rem;
}

.home-dashboard-tip-text {
  min-width: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.home-dashboard-tip-text strong {
  color: #a16207;
  font-weight: 750;
}

.home-dashboard-tip-text a {
  margin-left: 4px;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.home-dashboard-tip-text a:hover,
.home-dashboard-tip-text a:focus-visible {
  outline: none;
  text-decoration: underline;
}

.home-dashboard-tip-close {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.home-dashboard-tip-close:hover,
.home-dashboard-tip-close:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

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

.home-dashboard-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(8, 82, 139, 0.05);
}

.home-dashboard-stat > span:last-child {
  min-width: 0;
}

.home-dashboard-stat small {
  white-space: normal;
}

.home-dashboard-stat-icon,
.home-dashboard-process-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(46, 190, 133, 0.26), rgba(46, 190, 133, 0.1));
  color: var(--harbor-green);
}

.home-dashboard-stat-icon {
  width: 38px;
  height: 38px;
}

.home-dashboard-stat-icon.is-blue {
  background: linear-gradient(150deg, rgba(11, 79, 168, 0.24), rgba(11, 79, 168, 0.08));
  color: var(--accent-strong);
}

.home-dashboard-stat-icon.is-purple {
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.24), rgba(124, 58, 237, 0.08));
  color: #7c3aed;
}

.home-dashboard-stat-svg {
  width: 20px;
  height: 20px;
}

.home-dashboard-process-svg {
  width: 25px;
  height: 25px;
}

.home-dashboard-stat small,
.home-dashboard-mini-metric small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
}

.home-dashboard-stat strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.home-dashboard-featured-card,
.home-dashboard-class-list-card,
.home-dashboard-process {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(8, 82, 139, 0.06);
}

.home-dashboard-featured-card {
  position: relative;
  overflow: hidden;
  border-width: 1px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 79, 168, 0.1), transparent 46%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(240, 248, 255, 0.9));
}

.home-dashboard-featured-main,
.home-dashboard-featured-snapshot,
.home-dashboard-class-row-title > div,
.home-dashboard-class-row-actions,
.home-dashboard-process-step > span:not(.home-dashboard-process-icon) {
  display: grid;
  gap: 8px;
}

.home-dashboard-course-head {
  display: block;
}

.home-dashboard-course-head h2,
.home-dashboard-class-row h3,
.home-dashboard-section-head h2,
.home-dashboard-featured-snapshot h3,
.home-dashboard-process h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
}

.home-dashboard-course-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  letter-spacing: -0.05em;
}

.home-dashboard-process h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  letter-spacing: 0;
}

.home-dashboard-class-row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
}

.home-dashboard-course-head p,
.home-dashboard-class-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-dashboard-class-row p {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.home-dashboard-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 241, 211, 0.98);
  color: #a16207;
  font-size: 0.84rem;
  font-weight: 750;
}

.home-dashboard-status.is-success {
  background: rgba(220, 252, 231, 0.95);
  color: #12803d;
}

.home-dashboard-status.is-info {
  background: rgba(232, 243, 255, 0.96);
  color: var(--accent-strong);
}

.home-dashboard-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 14px;
  margin-top: 16px;
}

.home-dashboard-action-row .button,
.home-dashboard-class-row-actions .button {
  min-height: 52px;
  border-radius: 999px;
}

.home-dashboard-text-link,
.home-dashboard-section-head a,
.home-dashboard-class-row-actions a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.home-dashboard-featured-snapshot {
  position: relative;
  align-content: start;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.home-dashboard-mini-metric {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.home-dashboard-mini-metric.is-ring {
  gap: 4px;
}

.home-dashboard-featured-snapshot > .home-dashboard-snapshot {
  gap: 12px;
  padding: 0;
}

.home-dashboard-featured-snapshot .home-dashboard-mini-metric {
  min-height: 108px;
  align-content: center;
  box-shadow: 0 10px 26px rgba(8, 82, 139, 0.05);
}

.home-dashboard-mini-metric strong {
  display: block;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.2;
}

.home-dashboard-mini-ring-row {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.home-dashboard-mini-ring {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.home-dashboard-mini-ring-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 5;
}

.home-dashboard-mini-ring-fg {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke: var(--accent-strong);
}

.home-dashboard-mini-ring-fg.is-high {
  stroke: #12803d;
}

.home-dashboard-mini-ring-fg.is-medium {
  stroke: var(--accent-strong);
}

.home-dashboard-mini-ring-fg.is-low {
  stroke: #a16207;
}

.home-dashboard-confidence {
  font-size: 0.82rem;
  line-height: 1.1;
}

.home-dashboard-confidence.is-high {
  color: #12803d;
}

.home-dashboard-confidence.is-medium {
  color: var(--accent-strong);
}

.home-dashboard-confidence.is-low {
  color: #a16207;
}

.home-dashboard-snapshot-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(232, 243, 255, 0.88);
  color: var(--text);
  line-height: 1.45;
}

.home-dashboard-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-dashboard-secondary-grid .home-review-section,
.home-dashboard-process {
  padding: 22px;
}

.home-dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.home-dashboard-class-list {
  display: grid;
  gap: 12px;
  padding: 16px 22px 22px;
}

.home-dashboard-class-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.5fr);
  align-items: center;
  gap: 18px 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(8, 82, 139, 0.05);
}

.home-dashboard-class-row-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.home-dashboard-class-row h3 a {
  color: var(--text);
  text-decoration: none;
}

.home-dashboard-class-row-actions > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--border-strong);
  font-size: 0.9rem;
}

.home-dashboard-class-row-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.home-dashboard-class-row-actions .button {
  width: 100%;
  min-width: 0;
  color: #ffffff;
}

.home-dashboard-class-row > .home-dashboard-snapshot {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 6px;
}

.home-dashboard-class-row > .home-dashboard-snapshot .home-dashboard-mini-metric {
  justify-items: start;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px;
  text-align: left;
}

.home-dashboard-class-row > .home-dashboard-snapshot .home-dashboard-mini-metric.is-ring {
  justify-items: start;
}

.home-dashboard-class-row > .home-dashboard-snapshot .home-dashboard-mini-metric small,
.home-dashboard-class-row > .home-dashboard-snapshot .home-dashboard-mini-metric strong {
  overflow-wrap: anywhere;
}

.home-dashboard-class-row > .home-dashboard-snapshot .home-dashboard-mini-ring-row {
  justify-items: start;
}

.home-dashboard-process {
  display: grid;
  gap: 18px;
}

.home-dashboard-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.home-dashboard-process-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 8px;
  text-align: center;
}

.home-dashboard-process-icon {
  width: 56px;
  height: 56px;
}

.home-dashboard-process-image-wrap {
  background: transparent;
  color: inherit;
}

.home-dashboard-process-image {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.home-dashboard-process-step strong,
.home-dashboard-process-step em {
  display: block;
}

.home-dashboard-process-step strong {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.25;
}

.home-dashboard-process-step em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.4;
}

.home-dashboard-process-arrow {
  position: absolute;
  top: 26px;
  right: -14px;
  color: var(--border-strong);
  font-size: 1.3rem;
  line-height: 1;
}

.home-dashboard-process-step:last-child .home-dashboard-process-arrow {
  display: none;
}

.home-dashboard :is(h1, h2, h3, strong) {
  font-weight: 600;
}

.home-dashboard :is(
  .button,
  .home-dashboard-status,
  .home-dashboard-text-link,
  .home-dashboard-section-head a,
  .home-dashboard-class-row-actions a,
  .home-dashboard-stat small,
  .home-dashboard-mini-metric small,
  .home-class-code,
  .home-class-title,
  .home-class-title a,
  .home-class-status-pill,
  .home-class-quick-action,
  .home-review-section-action,
  .home-review-row-pill,
  .home-review-empty-primary,
  .home-review-empty-secondary
) {
  font-weight: 600;
}

.home-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.home-insight-card {
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 255, 0.9) 100%);
  display: grid;
  gap: 6px;
}

.home-insight-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  color: var(--primary);
}

.home-insight-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.home-insight-copy {
  color: var(--muted);
  font-size: 0.94rem;
}

.study-stream-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.study-stream-load-more-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.study-stream-load-more-sentinel {
  width: 100%;
  min-height: 1px;
}

.element-search-panel {
  display: grid;
  gap: 22px;
  font-family: var(--font-text);
}

.element-search-header h2 {
  margin: 0 0 6px;
  color: #1d1d1f;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.element-search-header p {
  margin: 0;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.35;
}

.element-search-form {
  display: block;
}

.element-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 6px 0 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.element-search-field:hover,
.element-search-field:focus-within {
  border-color: transparent;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.element-search-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #86868b;
}

.element-search-field-icon svg {
  width: 20px;
  height: 20px;
}

.element-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #1d1d1f;
  font-size: 17px;
  font: inherit;
}

.element-search-input:focus {
  outline: none;
  border: none;
}

.element-search-clear,
.element-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.element-search-clear {
  background: transparent;
  color: #6e6e73;
}

.element-search-clear:hover {
  background: rgba(0, 0, 0, 0.05);
}

.element-search-clear svg {
  width: 15px;
  height: 15px;
}

.element-search-submit {
  background: #0071e3;
  color: #ffffff;
}

.element-search-submit:hover {
  background: #0077ed;
}

.element-search-submit svg {
  width: 18px;
  height: 18px;
}

.element-search-count {
  margin: 0;
  padding: 0 2px;
  color: #6e6e73;
  font-size: 14px;
}

.element-search-count strong {
  color: #1d1d1f;
}

.element-search-results-stack {
  display: grid;
  gap: 14px;
}

.element-search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 20px;
  color: #6e6e73;
}

.element-search-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #86868b;
}

.element-search-empty-icon svg {
  width: 24px;
  height: 24px;
}

.element-search-empty-state h3 {
  margin: 0 0 6px;
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 600;
}

.element-search-empty-state p {
  margin: 0;
  max-width: 300px;
  font-size: 14px;
}

.search-result-shell {
  display: grid;
  gap: 10px;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 4px;
}

.search-result-note {
  padding: 0 8px;
}

.study-stream-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.study-stream-filter-chip:hover {
  background: var(--surface-soft);
}

.study-stream-filter-chip.is-selected {
  background: linear-gradient(135deg, rgba(0, 106, 181, 0.12) 0%, rgba(0, 106, 181, 0.04) 100%);
  border-color: rgba(0, 106, 181, 0.38);
  color: var(--accent-strong);
}

.feature-item,
.selection-card {
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 255, 0.9) 100%);
}

.selection-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

[data-student-react-page="upload-elements"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

[data-student-react-page="upload-elements"] .student-page-stack,
[data-student-react-page="upload-elements"] .card,
[data-student-react-page="upload-elements"] .panel,
[data-student-react-page="upload-elements"] .result-list,
[data-student-react-page="upload-elements"] .selection-card,
[data-student-react-page="upload-elements"] .study-card,
[data-student-react-page="upload-elements"] .study-card-header,
[data-student-react-page="upload-elements"] .study-card-heading,
[data-student-react-page="upload-elements"] .study-card-content-shell,
[data-student-react-page="upload-elements"] .study-form,
[data-student-react-page="upload-elements"] .element-body {
  min-width: 0;
  max-width: 100%;
}

[data-student-react-page="upload-elements"] h1,
[data-student-react-page="upload-elements"] h2,
[data-student-react-page="upload-elements"] strong,
[data-student-react-page="upload-elements"] .inline-note,
[data-student-react-page="upload-elements"] .element-heading,
[data-student-react-page="upload-elements"] .element-text,
[data-student-react-page="upload-elements"] .element-definition,
[data-student-react-page="upload-elements"] .element-callout,
[data-student-react-page="upload-elements"] li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

[data-student-react-page="upload-elements"] .table-wrap,
[data-student-react-page="upload-elements"] .element-code,
[data-student-react-page="upload-elements"] .element-math-source,
[data-student-react-page="upload-elements"] .element-mermaid-display {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

[data-student-react-page="upload-elements"] img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  [data-student-react-page="upload-elements"] .panel {
    padding: 18px 14px;
  }

  [data-student-react-page="upload-elements"] .study-card {
    padding: 18px 16px;
  }

  [data-student-react-page="upload-elements"] .study-card-header {
    padding-right: 44px;
  }

  [data-student-react-page="upload-elements"] .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  [data-student-react-page="upload-elements"] .hero-actions .button,
  [data-student-react-page="upload-elements"] .study-actions .button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
}

.note-study-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 106, 181, 0.18);
  border-radius: 6px;
  background: rgba(232, 243, 255, 0.72);
  color: var(--text);
  text-decoration: none;
}

.note-study-mini span:first-child {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.notevault-app-shell {
  --notevault-page: #f5f5f7;
  --notevault-panel: #fbfbfd;
  --notevault-card: #ffffff;
  --notevault-sunk: #eeeef0;
  --notevault-ink: #1d1d1f;
  --notevault-muted: #6e6e73;
  --notevault-soft: #8e8e93;
  --notevault-line: rgba(0, 0, 0, 0.08);
  --notevault-hover: rgba(0, 0, 0, 0.04);
  --notevault-selected: rgba(0, 0, 0, 0.06);
  --notevault-blue: #0071e3;
  --notevault-blue-soft: rgba(0, 113, 227, 0.1);
  --notevault-green: #248a3d;
  --notevault-green-soft: rgba(52, 199, 89, 0.14);
  --notevault-orange: #b25000;
  --notevault-orange-soft: rgba(255, 149, 0, 0.14);
  display: grid;
  /* NoteVault.dc.html is two panes: the class lives in a switcher at the top
     of the list pane rather than in a standing rail. */
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: calc(100vh - 104px);
  margin: 0 -32px -32px;
  background: var(--notevault-page);
  color: var(--notevault-ink);
}

.shell-notevault {
  display: flex;
  min-height: 100vh;
  padding-bottom: 0;
  flex-direction: column;
}

.shell-notevault > .topbar {
  flex: none;
}

.shell-notevault > [data-student-react-page="note-vault"] {
  display: flex;
  min-height: 0;
  flex: 1;
}

.shell-notevault .notevault-app-shell {
  min-height: 0;
  margin-bottom: 0;
  flex: 1;
}

.notevault-list-pane {
  min-width: 0;
  min-height: 0;
  background: var(--notevault-panel);
  border-right: 1px solid var(--notevault-line);
}

.notevault-mobile-selector,
.notevault-mobile-selector-content {
  min-width: 0;
  min-height: 0;
  flex: 1;
}

.notevault-mobile-selector {
  display: flex;
  flex-direction: column;
}

.notevault-mobile-selector-summary {
  display: none;
}

/* The selector is always expanded in the desktop two-pane layout. */
.notevault-mobile-selector > .notevault-mobile-selector-content {
  display: flex !important;
  flex-direction: column;
}

/* Class switcher (`.nv-clssel` + `.nv-clsmenu`), on the same zero-JS
   <details> pattern as the header avatar menu. */
.notevault-class-switcher { position: relative; }
.notevault-class-switcher > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid var(--notevault-line);
}
.notevault-class-switcher > summary::-webkit-details-marker { display: none; }
.notevault-class-switcher > summary:hover { background: var(--notevault-hover); }
.notevault-class-switcher-copy { flex: 1; min-width: 0; }
.notevault-class-switcher-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--notevault-ink);
}
.notevault-class-switcher-copy > span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--notevault-muted);
}
.notevault-class-switcher-chevron {
  flex: none;
  color: var(--notevault-soft);
  transition: transform 180ms ease;
}
.notevault-class-switcher[open] .notevault-class-switcher-chevron {
  transform: rotate(180deg);
}
.notevault-class-menu {
  position: absolute;
  top: 100%;
  right: 8px;
  left: 8px;
  z-index: 40;
  padding: 8px;
  border: 1px solid var(--notevault-line);
  border-radius: 16px;
  background: var(--notevault-card);
  box-shadow: 0 26px 50px -18px rgba(16, 42, 90, 0.4);
}
.notevault-class-menu-label {
  padding: 6px 10px 8px;
  color: var(--notevault-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notevault-class-name strong { display: block; font-size: 14px; font-weight: 600; }
.notevault-class-name > span {
  display: block;
  font-size: 12px;
  color: var(--notevault-muted);
}

/* Write / Upload / Record capture row (`.nv-cap`). */
.notevault-capture-row {
  display: flex;
  gap: 8px;
  padding: 14px 16px 4px;
}
.notevault-capture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 140ms ease, transform 140ms ease;
}
.notevault-capture:hover { filter: brightness(0.97); text-decoration: none; }
.notevault-capture:active { transform: scale(0.97); }
.notevault-capture.is-write {
  flex: 1;
  background: var(--notevault-blue-soft);
  color: var(--notevault-blue);
}
.notevault-capture.is-upload {
  flex: 1;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  color: #ffffff;
  box-shadow: 0 10px 20px -12px rgba(26, 70, 194, 0.8);
}
.notevault-capture.is-record {
  width: 38px;
  padding: 0;
  flex: none;
  background: var(--notevault-sunk);
  color: var(--notevault-ink);
}

/* "Ask a friend for notes" row (`.nv-invite`). */
.notevault-invite {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  margin: 4px 16px 0;
  padding: 12px 14px;
  border: 1px dashed var(--notevault-line);
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.notevault-invite:hover {
  border-color: var(--notevault-blue);
  background: var(--notevault-hover);
  text-decoration: none;
}
.notevault-invite-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: var(--notevault-blue-soft);
  color: var(--notevault-blue);
}
.notevault-invite-copy { flex: 1; min-width: 0; }
.notevault-invite-copy strong { display: block; font-size: 13.5px; font-weight: 600; }
.notevault-invite-copy > span {
  display: block;
  font-size: 12px;
  color: var(--notevault-muted);
}
.notevault-invite-action {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--notevault-blue);
}

/* Richer empty states (`.nv-midempty` / the empty vault panel). */
.notevault-list-empty,
.notevault-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 34px 22px;
  color: var(--notevault-muted);
}
.notevault-detail-empty { max-width: 420px; margin: 0 auto; padding-top: 90px; }
.notevault-list-empty-icon,
.notevault-detail-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 15px;
  background: var(--notevault-sunk);
  color: var(--notevault-soft);
}
.notevault-detail-empty-icon { width: 60px; height: 60px; border-radius: 18px; }
.notevault-list-empty strong,
.notevault-detail-empty strong {
  font-size: 15px;
  font-weight: 650;
  color: var(--notevault-ink);
}
.notevault-detail-empty strong { font-size: 20px; letter-spacing: -0.02em; }
.notevault-list-empty > span,
.notevault-detail-empty > span { font-size: 13px; line-height: 1.5; }
.notevault-detail-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.notevault-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--notevault-line);
  border-radius: 12px;
  background: var(--notevault-card);
  color: var(--notevault-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease;
}
.notevault-detail-cta:hover {
  border-color: var(--notevault-blue);
  color: var(--notevault-blue);
  text-decoration: none;
}

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

.notevault-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 16px 26px;
  color: var(--notevault-ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.notevault-brand span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--notevault-blue);
}

.notevault-column-label {
  padding: 0 16px 8px;
  color: var(--notevault-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notevault-class-list,
.notevault-upload-list {
  display: grid;
  gap: 2px;
  padding: 0 8px 16px;
}

.notevault-class-row,
.notevault-upload-row {
  color: var(--notevault-ink);
  text-decoration: none;
  transition: background 0.12s ease;
}

.notevault-class-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
}

.notevault-class-row:hover,
.notevault-upload-row:hover {
  background: var(--notevault-hover);
}

.notevault-class-row.is-active,
.notevault-upload-row.is-active {
  background: var(--notevault-selected);
}

.notevault-class-code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--notevault-blue-soft);
  color: var(--notevault-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.notevault-class-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}

.notevault-class-count,
.notevault-list-head p,
.notevault-upload-copy > span,
.notevault-meta,
.notevault-source-note,
.notevault-processing {
  color: var(--notevault-muted);
}

.notevault-list-pane {
  display: flex;
  flex-direction: column;
}

.notevault-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 8px;
}

.notevault-list-head h1 {
  margin: 0;
  color: var(--notevault-ink);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.notevault-list-head p {
  margin: 4px 0 0;
  font-size: 12px;
}

.notevault-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--notevault-blue);
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

/* Segmented Yours/Friends/All control (`.nv-seg`) — a sunken track with
   equal-width segments, not the loose pills this used to be. */
.notevault-filter-row {
  display: flex;
  gap: 0;
  margin: 14px 16px 10px;
  padding: 3px;
  border-radius: 11px;
  background: var(--notevault-sunk);
}

.notevault-filter {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--notevault-muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.notevault-filter.is-active {
  background: var(--notevault-card);
  color: var(--notevault-ink);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.14);
}

.notevault-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--notevault-sunk);
  color: var(--notevault-soft);
}

.notevault-search input[type="search"] {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--notevault-ink);
  font: inherit;
  font-size: 13.5px;
}

.notevault-upload-list {
  overflow-y: auto;
}

.notevault-upload-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
}

.notevault-upload-row.is-locked {
  grid-template-columns: 38px minmax(0, 1fr);
  background: linear-gradient(135deg, rgba(248, 250, 253, 0.96), rgba(239, 244, 250, 0.9));
}

.notevault-upload-row.is-locked .notevault-upload-copy > strong,
.notevault-upload-row.is-locked .notevault-upload-copy > span:not(.notevault-tags) {
  filter: blur(3px);
  opacity: 0.62;
  user-select: none;
}

.notevault-upload-origin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--notevault-blue-soft);
  color: var(--notevault-blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.notevault-upload-origin.is-manual {
  background: var(--notevault-orange-soft);
  color: #a86400;
}

.notevault-upload-origin.is-recording {
  background: rgba(217, 67, 54, 0.12);
  color: #cf3f35;
}

.notevault-upload-origin.is-shared {
  background: var(--notevault-green-soft);
  color: var(--notevault-green);
}

.notevault-upload-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.notevault-locked-detail {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: min(620px, 72vh);
  padding: 48px 24px;
  text-align: center;
}

.notevault-locked-detail > strong {
  max-width: 420px;
  color: var(--notevault-ink);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.16;
}

.notevault-locked-detail > span:not(.notevault-locked-icon) {
  max-width: 430px;
  color: var(--notevault-muted);
  line-height: 1.55;
}

.notevault-locked-icon {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--notevault-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notevault-locked-preview {
  display: grid;
  gap: 12px;
  width: min(460px, 100%);
  margin-bottom: 8px;
  padding: 24px;
  border: 1px solid var(--notevault-line);
  border-radius: 18px;
  background: rgba(248, 250, 253, 0.96);
  filter: blur(1.5px);
}

.notevault-locked-preview i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #d6deea;
}

.notevault-locked-preview i:nth-child(2) { width: 74%; }
.notevault-locked-preview i:nth-child(3) { width: 88%; }
.notevault-locked-preview i:nth-child(4) { width: 54%; }

.notevault-upload-row strong {
  margin: 0;
  color: var(--notevault-ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.notevault-upload-copy > span {
  font-size: 11.5px;
}

.notevault-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.notevault-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--notevault-sunk);
  color: var(--notevault-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.notevault-tag.is-blue {
  background: var(--notevault-blue-soft);
  color: var(--notevault-blue);
}

.notevault-tag.is-green {
  background: var(--notevault-green-soft);
  color: var(--notevault-green);
}

.notevault-tag.is-orange {
  background: var(--notevault-orange-soft);
  color: var(--notevault-orange);
}

.notevault-tag.is-red {
  background: #fff0ef;
  color: #c83c3c;
}

.notevault-detail-pane {
  min-width: 0;
  overflow-y: auto;
  background: var(--notevault-page);
}

.notevault-detail-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}

.notevault-eyebrow,
.notevault-section-head h3 {
  color: var(--notevault-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notevault-detail-inner h2 {
  margin: 8px 0 0;
  color: var(--notevault-ink);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.notevault-meta {
  margin: 8px 0 0;
  font-size: 13.5px;
}

.notevault-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--notevault-blue);
  font-size: 13.5px;
  font-weight: 600;
}

.notevault-source-link span {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--notevault-sunk);
  color: var(--notevault-soft);
  font-size: 11px;
  text-decoration: none;
}

.notevault-source-audio {
  display: grid;
  gap: 8px;
  width: min(100%, 440px);
  margin-top: 14px;
  color: var(--notevault-ink);
  font-size: 13.5px;
}

.notevault-source-audio audio {
  width: 100%;
  height: 40px;
}

.notevault-source-note,
.notevault-processing {
  margin: 16px 0 0;
  font-size: 13px;
}

.notevault-processing-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid #ccd9f5;
  border-radius: 16px;
  background: #f3f7ff;
  color: var(--notevault-ink);
}

.notevault-processing-status.is-failed {
  border-color: #f2c8c3;
  background: #fff3f2;
}

.notevault-processing-spinner,
.notevault-processing-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #ffffff;
  color: #c83c3c;
  font-size: 18px;
  font-weight: 800;
}

.notevault-processing-spinner {
  border: 3px solid rgba(36, 88, 223, 0.18);
  border-top-color: var(--notevault-blue);
  border-radius: 999px;
  animation: notevault-processing-spin 0.9s linear infinite;
}

.notevault-processing-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.notevault-processing-copy strong {
  color: var(--notevault-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.notevault-processing-copy span {
  color: var(--notevault-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

@keyframes notevault-processing-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notevault-processing-spinner {
    animation-duration: 2.4s;
  }
}

.notevault-score-card {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--notevault-line);
  border-radius: 14px;
  background: var(--notevault-card);
}

.notevault-score-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.notevault-score-top strong {
  display: block;
  color: var(--notevault-ink);
  font-size: 46px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.notevault-score-top span {
  color: var(--notevault-soft);
  font-size: 12.5px;
}

.notevault-score-legend {
  display: flex;
  gap: 14px;
}

.notevault-score-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--notevault-muted);
  font-size: 12.5px;
}

.notevault-score-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.notevault-score-bar {
  display: flex;
  height: 6px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--notevault-sunk);
}

.notevault-score-bar i {
  display: block;
  height: 100%;
}

.notevault-score-bar .is-green,
.notevault-score-legend .is-green {
  background: var(--notevault-green);
}

.notevault-score-bar .is-orange,
.notevault-score-legend .is-orange {
  background: var(--notevault-orange);
}

.notevault-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 12px;
}

.notevault-section-head h3 {
  margin: 0;
}

.notevault-section-head span {
  color: var(--notevault-blue);
  font-size: 13px;
  font-weight: 650;
}

.notevault-study-elements .study-card {
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.notevault-study-elements .study-card:hover {
  border-color: rgba(10, 73, 197, 0.42);
  box-shadow: 0 12px 24px -20px rgba(10, 73, 197, 0.5);
}

.notevault-study-elements .study-card-element-link {
  color: inherit;
  text-decoration: none;
}

.notevault-study-elements .study-card-element-link::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.notevault-study-elements .study-card-element-link:focus-visible::after {
  outline: 3px solid rgba(10, 73, 197, 0.32);
  outline-offset: 3px;
}

.notevault-study-elements .study-card-audio,
.notevault-study-elements .study-card-tag-row {
  position: relative;
  z-index: 1;
}

.notevault-study-elements .study-card-collapsible:not(.study-card-expanded)
  .study-card-content-shell {
  display: none;
}

.notevault-study-elements .study-card-collapsible .study-card-expand-button {
  position: relative;
  z-index: 1;
  color: var(--notevault-blue);
}

.notevault-empty {
  padding: 22px 16px;
  color: var(--notevault-soft);
  font-size: 13px;
}

@media (max-width: 900px) {
  .notevault-app-shell {
    grid-template-columns: 1fr;
    margin: 0 -18px -18px;
  }

  .notevault-rail,
  .notevault-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--notevault-line);
  }

  .notevault-mobile-selector {
    display: block;
  }

  .notevault-mobile-selector-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 18px;
    cursor: pointer;
    list-style: none;
    background: var(--notevault-card);
  }

  .notevault-mobile-selector-summary::-webkit-details-marker {
    display: none;
  }

  .notevault-mobile-selector-label {
    flex: none;
    color: var(--notevault-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .notevault-mobile-selector-copy {
    min-width: 0;
    flex: 1;
  }

  .notevault-mobile-selector-copy strong,
  .notevault-mobile-selector-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .notevault-mobile-selector-copy strong {
    color: var(--notevault-ink);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
  }

  .notevault-mobile-selector-copy span {
    margin-top: 2px;
    color: var(--notevault-muted);
    font-size: 12px;
  }

  .notevault-mobile-selector-chevron {
    flex: none;
    color: var(--notevault-soft);
    transition: transform 180ms ease;
  }

  .notevault-mobile-selector[open] .notevault-mobile-selector-chevron {
    transform: rotate(180deg);
  }

  .notevault-mobile-selector:not([open]) > .notevault-mobile-selector-content {
    display: none !important;
  }

  .notevault-mobile-selector[open] > .notevault-mobile-selector-content {
    display: flex !important;
    max-height: min(72vh, 680px);
    overflow: hidden;
    border-top: 1px solid var(--notevault-line);
  }

  .notevault-class-list {
    padding-bottom: 24px;
  }

  .notevault-upload-list {
    min-height: 0;
    max-height: 360px;
  }

  .notevault-detail-inner {
    padding: 28px 20px 56px;
  }

  .notevault-detail-inner h2 {
    font-size: 26px;
  }

  .notevault-score-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

.note-study-mini strong {
  color: var(--accent-strong);
  font-size: 1.1rem;
  line-height: 1;
}

.note-study-mini em,
.note-study-mini span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
}

.note-study-panel {
  gap: 18px;
}

.note-study-head,
.note-study-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.note-study-head > strong {
  color: var(--text);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 0.95;
}

.note-study-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-study-stats span {
  padding: 14px 12px;
  border: 1px solid rgba(0, 106, 181, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.note-study-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

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

.note-study-bucket {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(0, 106, 181, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.note-study-bucket > strong {
  color: var(--accent-strong);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-study-bucket ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-study-bucket li {
  display: grid;
  gap: 2px;
}

.note-study-bucket li span {
  overflow: hidden;
  color: var(--text);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-study-bucket li em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.schedule-card,
.schedule-detail-card {
  background: var(--surface);
}

.schedule-page {
  display: grid;
  gap: 24px;
}

.schedule-planner-page {
  display: grid;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.schedule-planner-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.schedule-planner-kicker {
  margin: 0 0 10px;
  color: #627392;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.schedule-planner-header h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.045em; }
.schedule-planner-facts { display: flex; gap: 22px; }
.schedule-planner-facts span { display: grid; gap: 2px; text-align: right; }
.schedule-planner-facts strong { color: #101828; font-size: 1.65rem; line-height: 1; }
.schedule-planner-facts small { color: #627392; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.schedule-planner-next { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px 30px; overflow: hidden; border: 1px solid #dbe4f5; border-radius: 18px; background: #fff; }
.schedule-planner-next::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--schedule-color, #1232bb); content: ""; }
.schedule-planner-next-time { display: grid; min-width: 88px; padding-right: 24px; border-right: 1px solid #e7edf7; text-align: center; }
.schedule-planner-next-time strong { font-size: 1.65rem; line-height: 1; letter-spacing: -0.04em; }
.schedule-planner-next-time span, .schedule-planner-next-copy span { color: #627392; font-size: 0.92rem; }
.schedule-planner-next-copy { display: grid; min-width: 0; gap: 4px; }
.schedule-planner-next-copy small, .schedule-planner-next-empty small { color: #627392; font-size: 0.72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.schedule-planner-next-copy strong, .schedule-planner-next-empty strong { overflow: hidden; font-size: 1.35rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-planner-review { min-width: 210px; justify-content: center; }
.schedule-planner-next-empty { grid-template-columns: minmax(0, 1fr) auto; }
.schedule-planner-next-empty > div { display: grid; gap: 6px; }
.schedule-planner-week, .schedule-planner-classes { overflow: hidden; border-radius: 18px; }
.schedule-planner-week-head, .schedule-planner-classes > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-bottom: 1px solid #e7edf7; }
.schedule-planner-week-head h2, .schedule-planner-classes h2 { margin: 0; font-size: 1.15rem; }
.schedule-planner-week-head nav { display: flex; gap: 8px; }
.schedule-planner-week-head nav a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #dbe4f5; border-radius: 9px; color: #627392; font-size: 2rem; line-height: 1; text-decoration: none; }
.schedule-planner-grid-wrap { overflow-x: auto; padding: 0 8px 10px; }
.schedule-planner-grid { display: grid; grid-template-columns: 56px repeat(5, minmax(124px, 1fr)); min-width: 700px; }
.schedule-planner-time-head { min-height: 76px; }
.schedule-planner-day-head { display: grid; gap: 4px; min-height: 76px; place-content: center; text-align: center; }
.schedule-planner-day-head span { color: #627392; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.schedule-planner-day-head strong { display: grid; width: 34px; height: 34px; place-items: center; margin: auto; color: #15213b; font-size: 1.2rem; }
.schedule-planner-day-head.is-today span { color: #1232bb; }
.schedule-planner-day-head.is-today strong { border-radius: 50%; background: #1232bb; color: #fff; }
.schedule-planner-times, .schedule-planner-lane { position: relative; height: var(--schedule-grid-height); }
.schedule-planner-times { display: grid; grid-template-rows: repeat(auto-fit, minmax(58px, 1fr)); }
.schedule-planner-times span { padding: 0 10px 0 0; border-top: 1px solid transparent; color: #71809a; font-size: .75rem; text-align: right; transform: translateY(-8px); }
.schedule-planner-lane { border-left: 1px solid #edf1f8; }
.schedule-planner-lane i { display: block; height: 58px; border-top: 1px solid #edf1f8; }
.schedule-planner-event { position: absolute; right: 5px; left: 5px; display: grid; align-content: center; gap: 1px; padding: 5px 7px; border: 2px solid #172033; border-radius: 8px; color: #fff; text-decoration: none; }
.schedule-planner-event strong { overflow: hidden; font-size: .8rem; line-height: 1.1; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.schedule-planner-event span { font-size: .72rem; line-height: 1; text-align: center; }
.schedule-planner-classes > header a { color: #1558d6; font-weight: 750; text-decoration: none; }
.schedule-planner-class-row { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; min-height: 104px; padding: 18px 28px; border-bottom: 1px solid #e7edf7; color: inherit; text-decoration: none; }
.schedule-planner-class-row:last-child { border-bottom: 0; }
.schedule-planner-swatch { width: 5px; height: 60px; border-radius: 999px; }
.schedule-planner-class-copy { display: grid; min-width: 0; gap: 4px; }
.schedule-planner-class-copy strong { overflow: hidden; font-size: 1.1rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-planner-class-copy small { overflow: hidden; color: #627392; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-planner-class-copy i { display: block; width: min(220px, 100%); height: 4px; overflow: hidden; border-radius: 99px; background: #edf1f8; }
.schedule-planner-class-copy i b { display: block; height: 100%; border-radius: inherit; background: #20a95a; }
.schedule-planner-class-row em { font-size: 1rem; font-style: normal; font-weight: 800; }
.schedule-planner-class-row em.is-ready { color: #168e47; }.schedule-planner-class-row em.is-warming { color: #bd6500; }.schedule-planner-class-row em.is-needs-work { color: #ca3329; }
.schedule-planner-chevron { color: #bfd0eb; font-size: 2rem; }
.schedule-planner-bins { display: flex; flex-wrap: wrap; gap: 12px; }
.schedule-planner-bins details { position: relative; }
.schedule-planner-bins summary { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid #dbe4f5; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 750; list-style: none; }
.schedule-planner-bins summary::-webkit-details-marker { display: none; }
.schedule-planner-bins summary span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 999px; background: #edf2fa; color: #627392; font-size: .8rem; }
.schedule-planner-bins details[open] { min-width: min(100%, 360px); }
.schedule-planner-muted-row, .schedule-planner-empty { display: grid; gap: 4px; margin: 8px 0 0; padding: 14px; border: 1px solid #dbe4f5; border-radius: 8px; background: #fff; color: inherit; text-decoration: none; }
.schedule-planner-muted-row span, .schedule-planner-empty { color: #627392; font-size: .9rem; }
@media (max-width: 680px) { .schedule-planner-page { gap: 18px; }.schedule-planner-header { align-items: start; flex-direction: column; }.schedule-planner-facts { width: 100%; justify-content: space-between; }.schedule-planner-facts span { text-align: left; }.schedule-planner-next { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px; }.schedule-planner-review { grid-column: 1 / -1; width: 100%; }.schedule-planner-class-row { grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; padding: 16px; }.schedule-planner-chevron { display: none; }.schedule-planner-class-copy small { white-space: normal; }.schedule-planner-class-copy i { width: 100%; } }

.schedule-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  min-height: 220px;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 8px;
}

.schedule-hero::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -32%;
  width: min(48vw, 620px);
  height: 78%;
  border-radius: 999px 0 0 0;
  background: linear-gradient(135deg, rgba(223, 241, 255, 0.42), rgba(223, 241, 255, 0.1));
  transform: rotate(-9deg);
  pointer-events: none;
}

.schedule-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.schedule-hero .hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.schedule-content-card {
  display: grid;
  gap: 28px;
  padding: clamp(26px, 4vw, 52px);
}

.schedule-content-card h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.035em;
}

.schedule-stack,
.schedule-list {
  display: grid;
  gap: 18px;
}

.schedule-list {
  gap: 18px;
}

.schedule-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 138px;
  padding: 28px;
}

.schedule-card-icon,
.schedule-bin-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef6ff, #f8fbff);
  color: #1263e6;
}

.schedule-card-icon svg,
.schedule-bin-icon svg {
  width: 34px;
  height: 34px;
}

.schedule-section-copy {
  display: grid;
  gap: 6px;
}

.schedule-section-header {
  display: grid;
  gap: 16px;
}

.schedule-section-body {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.schedule-section-copy strong {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.schedule-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.96rem;
  color: var(--muted);
}

.schedule-section-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-section-meta svg {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.schedule-card .button {
  min-width: 132px;
  justify-content: center;
}

.schedule-bin {
  display: grid;
  gap: 12px;
}

.schedule-bin-card {
  display: grid;
  gap: 0;
  padding: 0;
}

.schedule-bin-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 114px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
}

.schedule-bin-card summary::-webkit-details-marker {
  display: none;
}

.schedule-bin-icon.is-archive {
  background: linear-gradient(180deg, #eef6ff, #f8fbff);
  color: #1263e6;
}

.schedule-bin-icon.is-dropped {
  background: linear-gradient(180deg, #fff1ee, #fffafa);
  color: #e43425;
}

.schedule-bin-copy {
  display: grid;
  gap: 6px;
}

.schedule-bin-copy strong {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.schedule-bin-chevron {
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
}

.schedule-bin-card[open] .schedule-bin-chevron {
  transform: rotate(180deg);
}

.schedule-bin-card .schedule-list {
  padding: 0 28px 28px 130px;
}

.schedule-bin .inline-note {
  margin-top: 0;
}

.schedule-status-card {
  display: grid;
  gap: 18px;
  text-align: center;
}

.schedule-status-card h2,
.schedule-status-card p {
  max-width: none;
}

.schedule-status-actions {
  display: grid;
  gap: 14px;
}

.schedule-status-actions form {
  margin: 0;
}

.schedule-status-actions .button {
  width: 100%;
}

.schedule-detail-card {
  display: grid;
  gap: 14px;
}

.study-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-right: 56px;
}

.study-card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}

.study-card-tag-row[hidden] {
  display: none;
}

.study-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1d1d1f;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
}

.study-card-tag-icon,
.study-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.study-card-tag-icon svg,
.study-chip-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.study-card-tag-important {
  color: #c66b00;
}

.study-card-tag-confusing {
  color: #9b3dde;
}

.study-card-tag-risk {
  padding: 5px 10px;
  border-radius: 999px;
  color: #75500a;
  background: #fff2cf;
}

.study-card-tag-risk-danger {
  color: #a2352d;
  background: #fde9e7;
}

.study-card-tag-risk-neutral {
  color: #53657f;
  background: #edf2f8;
}

.study-card-expand-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #86868b;
  cursor: pointer;
  font: inherit;
}

.study-card-expand-button[hidden] {
  display: none;
}

.study-card-expand-button span {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 140ms ease;
}

.study-card-expand-button:hover,
.study-card-expand-button:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.study-card-expanded .study-card-expand-button span {
  transform: rotate(180deg);
}

.study-card-heading {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.study-card-heading strong {
  color: #1d1d1f;
  font-family: var(--font-text);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.study-card-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 40px;
}

.study-card-audio-button {
  appearance: none;
  border: 1.5px solid #0071e3;
  border-radius: 50%;
  background: #ffffff;
  color: #0071e3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  height: 40px;
  line-height: 1;
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.study-card-audio-button:hover,
.study-card-audio-button:focus-visible {
  background: #0071e3;
  color: #ffffff;
  box-shadow: none;
  outline: none;
}

.study-card-audio-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.study-card-audio-button[data-audio-status="generating"],
.study-card-audio-button[data-audio-status="queued"],
.study-card-audio-button[data-audio-status="processing"] {
  animation: harbor-soft-pulse 1.1s ease-in-out infinite;
  cursor: progress;
}

.study-card-audio-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 0;
}

@keyframes harbor-soft-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.study-card {
  position: relative;
  z-index: 0;
  gap: 12px;
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
  transition: box-shadow 150ms ease, border-color 150ms ease;
  scroll-margin-top: var(--harbor-sticky-header-clearance);
}

.shell-authenticated .study-card,
.shell-authenticated .study-card-focus,
.shell-authenticated .study-card-predicted-knows,
.shell-authenticated .study-card-predicted-unknown {
  background: #ffffff;
}

.study-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.study-card.study-card-menu-open {
  z-index: 60;
  opacity: 1;
}

.study-card.study-card-is-dismissing {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.99);
  transition: opacity 160ms ease, transform 160ms ease;
}

.study-card-reviewed {
  gap: 8px;
  opacity: 0.92;
}

.study-card-reviewed .study-card-content-shell,
.study-card-reviewed .study-post-answer-actions {
  display: none;
}

.study-card-reviewed.study-card-expanded {
  gap: 12px;
  opacity: 1;
}

.study-card-reviewed.study-card-expanded .study-card-content-shell {
  display: block;
}

.study-card-content-shell {
  width: 100%;
  margin: 0;
  padding: 10px 0 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.study-score-shell {
  display: grid;
  gap: 16px;
}

.study-score-toast {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 4px;
  background: rgba(27, 166, 166, 0.1);
  border: 1px solid rgba(27, 166, 166, 0.18);
  color: #0d5c0c;
  animation: study-score-pulse 1.8s ease;
}

@keyframes study-score-pulse {
  0% {
    transform: translateY(4px);
    opacity: 0;
  }

  15%,
  85% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-2px);
    opacity: 0.94;
  }
}

.study-hud {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(223, 241, 255, 0.72) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.readiness-card {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(232, 248, 239, 0.86) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.class-quality-card {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 248, 229, 0.9) 0%, rgba(255, 255, 255, 0.97) 100%);
}

.readiness-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.class-quality-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.readiness-confidence-pill {
  display: inline-grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 106, 181, 0.14);
  background: rgba(255, 255, 255, 0.9);
  min-width: 112px;
}

.readiness-confidence-pill strong {
  text-transform: capitalize;
}

.readiness-confidence-pill span {
  color: var(--muted);
  font-size: 0.85rem;
}

.readiness-progress {
  display: grid;
  gap: 10px;
}

.class-quality-progress {
  display: grid;
  gap: 10px;
}

.readiness-progress-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.readiness-stat-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.readiness-stat-button.is-active {
  border-color: rgba(10, 125, 79, 0.34);
  box-shadow: inset 0 0 0 1px rgba(10, 125, 79, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

.readiness-stat strong {
  font-size: 1.45rem;
}

.readiness-list-shell {
  display: grid;
  gap: 14px;
}

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

.readiness-list-panel {
  display: grid;
  gap: 12px;
}

.readiness-list-panel[hidden] {
  display: none;
}

.readiness-element-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.readiness-element-copy {
  display: grid;
  gap: 6px;
  flex: 1;
}

.readiness-progress-bar {
  background: linear-gradient(90deg, #0a7d4f 0%, #47d05f 100%);
}

.class-quality-progress-bar {
  background: linear-gradient(90deg, #d69514 0%, #ffd36b 100%);
}

.class-quality-stage-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.class-quality-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.class-quality-band-toast {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid rgba(214, 149, 20, 0.18);
  background: rgba(255, 255, 255, 0.85);
  animation: study-score-pulse 1.8s ease;
}

.class-quality-actions {
  align-items: center;
}

.class-quality-cta {
  white-space: nowrap;
}

.study-hud-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.study-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.study-hud-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.study-hud-stat strong {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.study-hud-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.study-hud-progress {
  display: grid;
  gap: 10px;
}

.study-hud-progress-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.study-hud-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: rgba(0, 106, 181, 0.12);
  overflow: hidden;
}

.study-hud-progress-bar {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--highlight) 100%);
}

.study-leaderboard {
  gap: 12px;
}

.study-leaderboard-list {
  display: grid;
  gap: 10px;
}

.study-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.study-leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.study-leaderboard-copy {
  display: grid;
  gap: 4px;
}

.study-card-prediction {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 3px;
  border: 0;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
  list-style: none;
}

.study-card-prediction-wrap {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
}

.study-card-prediction-wrap summary::-webkit-details-marker {
  display: none;
}

.study-card-prediction-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 6px;
  width: min(320px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(8, 82, 139, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 18px 42px rgba(8, 82, 139, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.study-card-prediction-wrap:hover .study-card-prediction-popover,
.study-card-prediction-wrap[open] .study-card-prediction-popover,
.study-card-prediction:focus-visible + .study-card-prediction-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.study-card-prediction-knows {
  background: rgba(32, 196, 107, 0.12);
  color: var(--highlight);
}

.study-card-prediction-unknown {
  background: rgba(0, 106, 181, 0.12);
  color: var(--accent-strong);
}

.study-card-prediction-evaporating {
  background: rgba(224, 159, 31, 0.16);
  color: #946000;
}

.study-card-predicted-knows {
  border-color: rgba(32, 196, 107, 0.28);
  background: #ffffff;
}

.study-card-predicted-knows .study-card-content-shell {
  border-color: rgba(32, 196, 107, 0.16);
}

.study-card-predicted-unknown {
  border-color: rgba(0, 106, 181, 0.24);
  background: #ffffff;
}

.study-card-predicted-evaporating {
  border-color: rgba(224, 159, 31, 0.34);
  background: #ffffff;
}

.study-card-predicted-unknown .study-card-content-shell {
  border-color: rgba(0, 106, 181, 0.16);
}

.study-card-focus {
  border-color: rgba(0, 106, 181, 0.22);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(8, 82, 139, 0.08);
}

.study-card-focus.study-card-predicted-knows {
  border-color: rgba(32, 196, 107, 0.34);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(32, 196, 107, 0.12);
}

.study-card-focus.study-card-predicted-unknown {
  border-color: rgba(0, 106, 181, 0.3);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(0, 106, 181, 0.12);
}

.study-form {
  display: grid;
  gap: 10px;
}

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

.study-actions-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.study-actions .button {
  min-height: 44px;
}

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

.study-post-answer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.study-post-answer-actions[hidden] {
  display: none;
}

.study-secondary-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
}

.study-deep-dive-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent-strong);
  font-size: 0.96rem;
  font-weight: 900;
  text-decoration: none;
}

.study-deep-dive-link[hidden] {
  display: none;
}

.study-deep-dive-link:hover,
.study-deep-dive-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.study-decision-feedback:empty {
  display: none;
}

.make-it-stick-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  isolation: isolate;
  overflow: hidden;
  min-height: 50px;
  padding: 0 58px 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 44%, rgba(111, 223, 64, 0.95) 0%, rgba(27, 166, 166, 0.9) 29%, rgba(27, 166, 166, 0) 54%),
    linear-gradient(96deg, #1268D6 0%, #0075c7 33%, #009c95 62%, #1BA6A6 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 5px rgba(8, 32, 51, 0.52);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.56),
    inset 0 -4px 10px rgba(8, 32, 51, 0.18),
    0 12px 22px rgba(8, 82, 139, 0.26);
  transition:
    box-shadow 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.make-it-stick-cta::before {
  content: "";
  position: absolute;
  inset: 4px 6px auto 6px;
  z-index: -1;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.make-it-stick-cta::after {
  content: "\2713";
  position: absolute;
  right: 12px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(27, 166, 166, 0.62);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(8, 32, 51, 0.42);
  transform: translateY(-50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 3px 8px rgba(8, 32, 51, 0.16);
}

.make-it-stick-cta:hover,
.make-it-stick-cta:focus-visible {
  color: #ffffff;
  filter: saturate(1.08) brightness(1.02);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -4px 10px rgba(8, 32, 51, 0.2),
    0 16px 28px rgba(8, 82, 139, 0.32);
}

.study-next-button {
  flex: 1 1 260px;
  min-height: 50px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  :root {
    --harbor-sticky-header-clearance: 104px;
    --harbor-sticky-panel-top: 116px;
  }

  .section-workspace-shell {
    position: static;
    max-height: none;
    overflow-y: visible;
    scrollbar-gutter: auto;
  }

  .study-make-stick-button {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
  }
}

.study-readiness-complete[hidden] {
  display: none;
}

.study-share-status {
  flex-basis: 100%;
}

.study-share-status:empty {
  display: none;
}

.study-button {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border-width: 1.5px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 600;
}

.study-button-know {
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #34c759;
}

.study-button-know:hover {
  background: rgba(52, 199, 89, 0.08);
  box-shadow: none;
}

.study-button-dont-know {
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #0071e3;
}

.study-button-dont-know:hover {
  background: rgba(0, 113, 227, 0.06);
  box-shadow: none;
}

.study-button-active,
.study-button-active:hover {
  color: #ffffff;
}

.study-button-know.study-button-active,
.study-button-know.study-button-active:hover {
  border-color: #34c759;
  background: #34c759;
  box-shadow: none;
}

.study-button-dont-know.study-button-active,
.study-button-dont-know.study-button-active:hover {
  border-color: #0071e3;
  background: #0071e3;
  box-shadow: none;
}

.study-button:focus-visible {
  outline: 3px solid rgba(8, 82, 139, 0.18);
  outline-offset: 2px;
}

.study-secondary-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.study-secondary-disclosure {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 20;
}

.study-secondary-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
  color: #86868b;
}

.study-secondary-summary::-webkit-details-marker {
  display: none;
}

.study-secondary-dots {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.study-secondary-summary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.study-secondary-summary:focus-visible {
  outline: 3px solid rgba(8, 82, 139, 0.18);
  outline-offset: 2px;
}

.study-secondary-panel {
  display: none;
}

.study-secondary-panel .study-actions {
  display: grid;
  gap: 0;
  align-items: stretch;
}

.study-secondary-panel .button.study-secondary-button {
  min-height: 38px;
}

.study-secondary-panel .button.study-make-stick-button {
  min-height: 50px;
}

.study-secondary-disclosure[open] .study-secondary-summary {
  background: rgba(0, 0, 0, 0.08);
}

.study-secondary-disclosure[open] .study-secondary-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  z-index: 80;
  gap: 6px;
  width: min(250px, calc(100vw - 48px));
  max-height: var(--study-secondary-panel-max-height, calc(100vh - 32px));
  padding: 8px 0;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 32px -12px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.study-secondary-disclosure[open].study-secondary-disclosure-open-up
  .study-secondary-panel {
  top: auto;
  bottom: calc(100% + 8px);
}

.study-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #1d1d1f;
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.15;
  cursor: pointer;
  transition: background 120ms ease;
}

.study-chip-dismiss,
.study-chip-skip,
.study-chip-copy {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.study-chip:hover {
  background: rgba(0, 0, 0, 0.05);
}

.study-chip-important {
  color: #c66b00;
}

.study-chip-confusing {
  color: #9b3dde;
}

.study-chip-copy {
  color: #1d1d1f;
}

.study-chip-dismiss {
  color: #ff3b30;
}

.study-chip-dismiss:hover {
  background: rgba(255, 59, 48, 0.08);
}

.study-chip-active,
.study-chip-active:hover {
  border-radius: 6px;
  color: #ffffff;
  margin: 2px 8px;
}

.study-chip-important.study-chip-active,
.study-chip-important.study-chip-active:hover {
  border-color: #b46a00;
  background: #b46a00;
}

.study-chip-confusing.study-chip-active,
.study-chip-confusing.study-chip-active:hover {
  border-color: #7a3fd1;
  background: #7a3fd1;
}

.study-chip-dismiss.study-chip-active,
.study-chip-dismiss.study-chip-active:hover {
  border-color: #6f7b8e;
  background: #6f7b8e;
}

.study-chip-skip.study-chip-active,
.study-chip-skip.study-chip-active:hover {
  border-color: #5d7898;
  background: #5d7898;
}

.shell-authenticated .study-chip.study-chip-active,
.shell-authenticated .study-chip.study-chip-active:hover {
  border-radius: 6px;
  color: #ffffff;
}

.study-info-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.study-info-button,
.study-info-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 106, 181, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(8, 82, 139, 0.08);
}

.study-info-button:hover,
.study-info-close:hover {
  background: var(--surface-soft);
}

.study-info-button:focus-visible,
.study-info-close:focus-visible {
  outline: 3px solid rgba(8, 82, 139, 0.18);
  outline-offset: 2px;
}

.study-info-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
}

.study-info-dialog::backdrop {
  background: rgba(8, 32, 51, 0.38);
  backdrop-filter: blur(3px);
}

.study-info-sheet {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(167, 203, 223, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 255, 0.96) 100%);
  box-shadow: 0 28px 60px rgba(8, 82, 139, 0.2);
}

.study-info-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.study-info-dialog-copy {
  display: grid;
  gap: 6px;
}

.study-info-dialog-copy strong {
  margin: 0;
  font-size: 1.16rem;
}

.study-info-dialog-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.study-why {
  display: grid;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.study-why-label {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.reason-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reason-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 106, 181, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.study-priority-stat {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(167, 203, 223, 0.7);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.study-priority-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-priority-stat strong {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.feature-item strong,
.selection-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
  color: var(--text);
}

.deep-study-reading-panel {
  max-width: 980px;
}

.deep-study-reading-panel h2 {
  max-width: 22ch;
  letter-spacing: -0.035em;
}

.deep-study-reading-list {
  gap: clamp(16px, 2vw, 24px);
  margin-top: 22px;
}

.deep-study-reading-item {
  padding: clamp(22px, 2.8vw, 34px);
  border-radius: 6px;
  background: #ffffff;
}

.deep-study-reading-item strong {
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deep-study-understand-panel {
  background: #ffffff;
}

.deep-study-understand-list {
  gap: 0;
  margin-top: 0;
}

.deep-study-understand-list .deep-study-reading-item {
  padding: clamp(22px, 2.8vw, 34px) 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.deep-study-understand-list .deep-study-reading-item:first-child {
  padding-top: 0;
}

.deep-study-understand-list .deep-study-reading-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.deep-study-test-list {
  align-items: stretch;
}

.deep-study-test-item {
  min-height: 152px;
}

.deep-study-test-choice-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.deep-study-test-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(167, 203, 223, 0.9);
  border-radius: 5px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 14px 16px;
  text-align: left;
}

.deep-study-test-choice::before {
  content: attr(data-deep-study-test-label);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.deep-study-test-choice {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.deep-study-test-choice:hover,
.deep-study-test-choice:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 106, 181, 0.08);
}

.deep-study-test-choice-selected {
  border-color: var(--accent);
  background: #eef8ff;
}

.deep-study-test-choice-correct {
  border-color: rgba(85, 201, 58, 0.6);
  background: #f4fff1;
}

.deep-study-test-choice-missed {
  border-color: rgba(0, 106, 181, 0.42);
  background: #eef8ff;
}

.deep-study-test-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.deep-study-test-status-correct {
  color: #148600;
}

.deep-study-test-status-missed {
  color: var(--accent-strong);
}

.deep-study-test-reveal-card {
  position: relative;
  overflow: hidden;
}

.deep-study-test-reveal-copy {
  transition:
    filter 0.18s ease,
    opacity 0.18s ease;
}

.deep-study-test-reveal-card:not([data-revealed="true"]) .deep-study-test-reveal-copy {
  filter: blur(7px);
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}

.deep-study-test-reveal-button {
  position: absolute;
  top: clamp(66px, 6vw, 82px);
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transform: translateX(-50%);
}

.deep-study-test-reveal-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(0, 106, 181, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(8, 32, 51, 0.12);
}

.deep-study-test-reveal-button:hover span,
.deep-study-test-reveal-button:focus-visible span {
  border-color: rgba(0, 106, 181, 0.46);
  box-shadow: 0 18px 38px rgba(8, 32, 51, 0.18);
}

.deep-study-test-reveal-card[data-revealed="true"] .deep-study-test-reveal-button {
  display: none;
}

.deep-study-stats-panel {
  max-width: 900px;
}

.deep-study-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.deep-study-stats-card {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}

.deep-study-stats-card span {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deep-study-stats-card strong {
  color: var(--text);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.deep-study-stats-card small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.deep-study-ask-form .field textarea,
.deep-study-thought-form .field textarea {
  background: #ffffff;
}

.deep-study-thought-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.deep-study-reading-copy {
  max-width: 48ch;
  margin: 0;
  color: #111820;
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: clamp(1.04rem, 1.36vw, 1.34rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.58;
}

.deep-study-foundation-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.35em;
}

.deep-study-foundation-list .deep-study-reading-copy {
  padding-left: 0.1em;
}

.task-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.task-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 255, 0.9) 100%);
}

.study-stream-empty-state {
  padding: 0;
  border: 0;
  background: transparent;
}

.quick-quiz-landing-panel {
  display: grid;
  gap: 8px;
  font-family: var(--font-text);
}

.quick-quiz-hero {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
}

.quick-quiz-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 16px;
}

.quick-quiz-headline {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 460px;
  color: #1d1d1f;
}

.quick-quiz-sub {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0 0 26px;
  max-width: 420px;
}

.quick-quiz-start-button {
  display: inline-flex;
  width: auto;
  padding: 14px 26px;
  border-radius: 999px;
  background: #0071e3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  box-shadow: none;
  min-height: 0;
}

.quick-quiz-start-button:hover {
  background: #0077ed;
  box-shadow: none;
}

.quick-quiz-recent-heading {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86868b;
  margin: 0 0 6px;
}

.quick-quiz-recent-list {
  display: flex;
  flex-direction: column;
}

.quick-quiz-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease;
}

.quick-quiz-recent-row:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.quick-quiz-recent-row:last-child {
  border-bottom: none;
}

.quick-quiz-recent-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.quick-quiz-recent-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #1d1d1f;
}

.quick-quiz-recent-meta {
  font-size: 13px;
  color: #6e6e73;
}

.quick-quiz-recent-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.quick-quiz-recent-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #0071e3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.quick-quiz-recent-badge.is-done {
  background: rgba(52, 199, 89, 0.14);
  color: #248a3d;
}

.quick-quiz-recent-chevron {
  width: 16px;
  height: 16px;
  color: #86868b;
  flex-shrink: 0;
}

.quick-quiz-form {
  gap: 0;
  font-family: var(--font-text);
}

.quick-quiz-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
}

.quick-quiz-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #0071e3;
  transition: width 180ms ease;
}

.quick-quiz-question-card {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.quick-quiz-question-heading {
  display: grid;
  gap: 0;
  margin-bottom: 36px;
}

.quick-quiz-question-heading .quick-quiz-progress-track {
  order: -1;
  margin-bottom: 20px;
}

.quick-quiz-question-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #86868b;
}

.quick-quiz-question-card > strong {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 30px;
  max-width: 580px;
  color: #1d1d1f;
}

.quick-quiz-question-card[hidden] {
  display: none !important;
}

.quick-quiz-option-list {
  gap: 0;
  margin-top: 0;
}

.quick-quiz-option-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding: 15px 10px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  font-size: 15.5px;
  line-height: 1.55;
  color: #1d1d1f;
  transition: background 120ms ease;
}

.quick-quiz-option-card::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transition: background 150ms ease, border-color 150ms ease;
}

.quick-quiz-option-card:hover {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
  transform: none;
}

.quick-quiz-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quick-quiz-option-card:has(input:checked) {
  border-color: rgba(0, 0, 0, 0.08);
  background: #e8f0fe;
  box-shadow: none;
}

.quick-quiz-option-card:has(input:checked)::before {
  background: #0071e3;
  border-color: #0071e3;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.quick-quiz-option-card:has(input:focus-visible) {
  outline: 3px solid rgba(0, 113, 227, 0.24);
  outline-offset: 2px;
}

.quick-quiz-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-quiz-nav [data-quick-quiz-back] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 8px 2px;
  border: none;
  background: none;
  color: #0071e3;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: none;
}

.quick-quiz-nav [data-quick-quiz-back]:hover {
  opacity: 0.7;
  background: none;
  box-shadow: none;
}

.quick-quiz-nav [data-quick-quiz-back]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.quick-quiz-nav [data-quick-quiz-stop-grade] {
  margin-left: auto;
  min-height: 0;
  padding: 14px 26px;
  border-radius: 999px;
  background: #0071e3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

.quick-quiz-nav [data-quick-quiz-stop-grade]:hover {
  background: #0077ed;
  box-shadow: none;
}

.quick-quiz-nav [data-quick-quiz-stop-grade]:disabled {
  opacity: 0.5;
}

.composer-thread {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.composer-bubble {
  display: grid;
  gap: 8px;
  max-width: min(100%, 560px);
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid rgba(167, 203, 223, 0.82);
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.composer-bubble-user {
  justify-self: end;
  border-color: rgba(0, 106, 181, 0.22);
  background: linear-gradient(180deg, rgba(226, 243, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.composer-bubble strong {
  margin: 0;
}

.composer-bubble-meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.composer-bubble-title {
  margin: 0;
  font-size: 1.02rem;
}

.composer-bubble-text {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.composer-bubble-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.composer-support-card {
  display: grid;
  gap: 14px;
}

.composer-disclosure {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.composer-disclosure summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.composer-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(167, 203, 223, 0.78);
  border-radius: 8px;
  background: rgba(243, 251, 255, 0.92);
}

.composer-mode-tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.composer-mode-tab:hover,
.composer-mode-tab:focus-visible {
  color: var(--text);
  border-color: rgba(167, 203, 223, 0.9);
  outline: none;
}

.composer-mode-tab.is-active {
  color: var(--primary-strong);
  border-color: rgba(0, 106, 181, 0.28);
  background: rgba(223, 241, 252, 0.96);
  box-shadow: 0 8px 16px rgba(0, 106, 181, 0.08);
}

.composer-mode-panel {
  display: grid;
  gap: 14px;
}

.composer-mode-panel[hidden] {
  display: none;
}

.composer-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.composer-info-panel {
  gap: 20px;
}

.composer-info-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 255, 0.9) 100%);
}

.composer-chat-panel {
  display: grid;
  gap: 20px;
  min-height: calc(100vh - 164px);
  align-content: start;
}

.composer-chat-header {
  display: grid;
  gap: 12px;
}

.composer-chat-header p {
  margin: 0;
}

.composer-thread-feed {
  display: grid;
  gap: 18px;
  padding-bottom: 168px;
}

.composer-day-group {
  display: grid;
  gap: 12px;
}

.composer-chat-compose {
  position: sticky;
  bottom: 18px;
  z-index: 6;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(167, 203, 223, 0.88);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(8, 82, 139, 0.12);
}

.composer-chat-compose .field input,
.composer-chat-compose .field textarea,
.composer-chat-compose .field select {
  background: #ffffff;
}

.composer-chat-compose .field textarea {
  min-height: 116px;
}

.composer-chat-compose .composer-disclosure {
  background: rgba(248, 252, 255, 0.98);
}

.composer-compose-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-compose-actions .button {
  flex: 0 1 auto;
}

.task-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-quiz-workspace-panel {
  font-family: var(--font-text);
}

.quick-quiz-workspace-panel:has(.quick-quiz-result-stack) {
  padding: clamp(28px, 4vw, 42px);
  border-radius: 24px;
  background: var(--hb-card);
}

.quick-quiz-result-stack {
  gap: 0;
}

.quick-quiz-result-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0 24px;
  border: 0;
  margin: 0;
}

.quick-quiz-result-ring-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  position: relative;
}

.quick-quiz-result-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.quick-quiz-result-ring-track {
  fill: none;
  stroke: var(--hb-track);
  stroke-width: 12;
}

.quick-quiz-result-ring-fg {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-quiz-result-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.quick-quiz-result-ring-center span {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--hb-text);
  font-variant-numeric: tabular-nums;
}

.quick-quiz-result-ring-center small {
  font-family: var(--font-text);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hb-text3);
}

.quick-quiz-result-heading {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  color: var(--hb-text);
}

.quick-quiz-result-subtitle {
  font-family: var(--font-text);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--hb-text2);
  margin: 6px 0 0;
}

.quick-quiz-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quick-quiz-result-actions form {
  margin: 0;
}

.quick-quiz-pill-primary {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 13px;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  color: #ffffff;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 26px -12px rgba(26, 70, 194, 0.7);
}

.quick-quiz-pill-primary:hover {
  transform: translateY(-1px);
}

.quick-quiz-pill-outline {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 13px;
  background: var(--hb-card);
  color: var(--hb-text);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid var(--hb-border2);
  box-shadow: none;
}

.quick-quiz-pill-outline:hover {
  background: var(--hb-hover);
  border-color: var(--hb-accent);
  color: var(--hb-accent);
}

.quick-quiz-pill-outline svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-quiz-class-challenge-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 13px 0 0;
}

.quick-quiz-class-challenge-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hb-accent);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.quick-quiz-class-challenge-link:hover,
.quick-quiz-class-challenge-link:focus-visible {
  color: var(--hb-accent-strong, #163fb5);
}

.quick-quiz-class-challenge-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-quiz-class-challenge-status {
  max-width: 440px;
  margin-top: 7px;
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.section-workspace-active-panel a.quick-quiz-back-to-checks {
  margin-top: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}

.section-workspace-active-panel a.quick-quiz-back-to-checks:hover,
.section-workspace-active-panel a.quick-quiz-back-to-checks:focus-visible {
  color: var(--hb-accent);
  text-decoration: none !important;
}

.quick-quiz-review-heading-label {
  font-family: var(--font-text);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--hb-text3);
  margin: 26px 0 10px;
}

.quick-quiz-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-quiz-review-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--hb-border);
  border-radius: 15px;
  background: var(--hb-card);
}

.quick-quiz-review-card:last-child {
  border-bottom: 1px solid var(--hb-border);
}

.quick-quiz-review-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.quick-quiz-review-icon svg {
  width: 14px;
  height: 14px;
}

.quick-quiz-review-icon.is-correct {
  background: rgba(52, 199, 89, 0.14);
  color: #248a3d;
}

.quick-quiz-review-icon.is-incorrect {
  background: rgba(255, 59, 48, 0.14);
  color: #d93025;
}

.quick-quiz-review-main {
  flex: 1;
  min-width: 0;
}

.quick-quiz-review-qtext {
  font-family: var(--font-text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--hb-text);
}

.section-workspace-active-panel a.quick-quiz-review-deep-study-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--hb-subtle);
  color: var(--hb-text2);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
  border: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0;
  text-decoration: none !important;
}

.section-workspace-active-panel a.quick-quiz-review-deep-study-link:hover,
.section-workspace-active-panel a.quick-quiz-review-deep-study-link:focus-visible {
  opacity: 1;
  background: var(--hb-hover);
  color: var(--hb-accent);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.section-workspace-active-panel a.quick-quiz-review-deep-study-link svg {
  width: 15px;
  height: 15px;
}

.quick-quiz-review-line,
.quick-quiz-review-explanation {
  margin: 5px 0 0;
  color: var(--hb-text2);
  font-family: var(--font-text);
  font-size: 12.5px;
  line-height: 1.5;
}

.quick-quiz-review-line strong {
  font-weight: 400;
}

.quick-quiz-review-line.is-correct-answer {
  margin-top: 3px;
  color: #0f7a53;
}

.quick-quiz-review-explanation {
  color: var(--hb-text3);
}

@media (max-width: 700px) {
  .quick-quiz-workspace-panel:has(.quick-quiz-result-stack) {
    padding: 22px 18px;
  }

  .quick-quiz-result-actions {
    width: 100%;
    flex-direction: column;
  }

  .quick-quiz-result-actions form,
  .quick-quiz-result-actions .quick-quiz-share-button,
  .quick-quiz-result-actions .quick-quiz-pill-primary {
    width: 100%;
  }

  .quick-quiz-review-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .section-workspace-active-panel a.quick-quiz-review-deep-study-link {
    grid-column: 2;
    justify-self: start;
  }
}

.context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(167, 203, 223, 0.85);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.context-chip span {
  color: var(--muted);
  font-weight: 600;
}

.section-workspace-shell {
  gap: 26px;
  padding: 26px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(246, 246, 248, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 32px -12px rgba(0, 0, 0, 0.1);
  font-family: var(--font-text);
  position: sticky;
  top: var(--harbor-sticky-panel-top);
  max-height: calc(100vh - var(--harbor-sticky-panel-top) - 18px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-self: start;
}

.section-workspace-active-panel,
#study-next,
#add-notes,
#element-search-results,
#class-calendar,
#quick-quiz {
  scroll-margin-top: var(--harbor-sticky-header-clearance);
}

.section-workspace-class-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.section-workspace-class-icon,
.section-workspace-glance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(220, 250, 229, 0.88);
  color: #18b66b;
  box-shadow: inset 0 0 0 1px rgba(24, 182, 107, 0.07);
}

.section-workspace-class-icon {
  width: 88px;
  height: 88px;
}

.section-workspace-class-icon-svg {
  width: 46px;
  height: 46px;
}

.section-workspace-class-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.section-workspace-course-code {
  color: #18a857;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.section-workspace-summary {
  display: grid;
  gap: 14px;
}

.section-workspace-share-shell {
  display: grid;
  gap: 8px;
}

.section-workspace-eyebrow {
  margin-bottom: 0;
}

.section-workspace-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-workspace-shell h1 {
  max-width: none;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-workspace-title-trigger {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.section-workspace-title-trigger:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.28);
  outline-offset: 4px;
}

.section-workspace-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.section-workspace-sidebar-toggle svg {
  width: 19px;
  height: 19px;
  transition: transform 140ms ease;
}

.section-workspace-sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.section-workspace-sidebar-toggle:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.28);
  outline-offset: 3px;
}

.section-workspace-shell.is-expanded .section-workspace-sidebar-toggle svg {
  transform: rotate(180deg);
}

.section-workspace-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #e5e5e8;
  box-shadow: none;
}

.section-workspace-info-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000000;
}

.section-workspace-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.section-workspace-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 13px;
  border-radius: 8px;
  background: rgba(255, 234, 186, 0.65);
  color: #b87813;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.section-workspace-status-pill.is-success {
  background: rgba(220, 250, 229, 0.9);
  color: #139e57;
}

.section-workspace-status-pill.is-info {
  background: rgba(223, 241, 255, 0.92);
  color: var(--accent-strong);
}

.section-workspace-upcoming-event {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 0;
  background: rgba(220, 250, 229, 0.92);
  color: #139e57;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-wrap: balance;
  transition: background 140ms ease;
}

.section-workspace-upcoming-event:hover {
  background: rgba(203, 245, 216, 0.98);
}

.section-workspace-upcoming-event:focus-visible {
  outline: none;
}

.section-workspace-info-icon {
  width: 30px;
  height: 30px;
}

.section-workspace-dialog {
  width: min(960px, calc(100vw - 32px));
}

.section-workspace-dialog-sheet {
  gap: 20px;
  padding: 32px 36px 28px;
  font-family: var(--font-text);
}

.section-workspace-detail-grid {
  display: grid;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section-workspace-detail-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-workspace-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #8e8e93;
  color: #ffffff;
}

.section-workspace-detail-icon-svg {
  width: 18px;
  height: 18px;
}

.section-workspace-detail-card.is-course .section-workspace-detail-icon {
  background: #00c7be;
}

.section-workspace-detail-card.is-section .section-workspace-detail-icon {
  background: #0071e3;
}

.section-workspace-detail-card.is-term .section-workspace-detail-icon {
  background: #ff3b30;
}

.section-workspace-detail-card.is-professor .section-workspace-detail-icon {
  background: #af52de;
}

.section-workspace-detail-card.is-meeting .section-workspace-detail-icon {
  background: #ff9500;
}

.section-workspace-detail-card.is-campus .section-workspace-detail-icon {
  background: #34c759;
}

.section-workspace-detail-card.is-school .section-workspace-detail-icon {
  background: #5e5ce6;
}

.section-workspace-detail-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.section-workspace-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #86868b;
}

.section-workspace-detail-value {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}

.section-workspace-nav {
  display: block;
}

.section-workspace-nav-list {
  display: grid;
  gap: 2px;
}

.section-workspace-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 8px 9px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 510;
  box-shadow: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.section-workspace-nav-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #8e8e93;
  color: #ffffff;
  flex: 0 0 auto;
}

.section-workspace-nav-icon {
  width: 16px;
  height: 16px;
}

.section-workspace-nav-link[data-workspace-panel-value="study-stream"] .section-workspace-nav-icon-wrap {
  background: #00c7be;
}

.section-workspace-nav-link[data-workspace-panel-value="upload-notes"] .section-workspace-nav-icon-wrap {
  background: #0071e3;
  color: #ffffff;
}

.section-workspace-nav-link[data-workspace-panel-value="calendar"] .section-workspace-nav-icon-wrap {
  background: #ff3b30;
}

.section-workspace-nav-link[data-workspace-panel-value="quick-quiz"] .section-workspace-nav-icon-wrap {
  background: #af52de;
}

.section-workspace-nav-link[data-workspace-panel-value="exam-lock-in"] .section-workspace-nav-icon-wrap {
  background: #ff9500;
}

.section-workspace-nav-label {
  min-width: 0;
}

.section-workspace-nav-link::after {
  content: none;
}

.section-workspace-nav-link:hover {
  transform: none;
  background: transparent;
  color: #000000;
}

.section-workspace-nav-link:hover .section-workspace-nav-icon-wrap {
  filter: brightness(0.96);
}

.section-workspace-nav-link.is-active {
  border-color: transparent;
  background: #0071e3;
  color: #ffffff;
  box-shadow: none;
}

.section-workspace-nav-link.is-active .section-workspace-nav-icon-wrap {
  background: #ffffff;
  color: #0071e3;
}

.section-workspace-nav-link:focus-visible {
  outline: 3px solid rgba(8, 82, 139, 0.18);
  outline-offset: 2px;
  background: transparent;
}

.section-workspace-active-panel {
  gap: 18px;
  min-height: 100%;
  padding: clamp(14px, 2.2vw, 22px) clamp(20px, 4vw, 44px) clamp(24px, 4vw, 44px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 32px -12px rgba(0, 0, 0, 0.1);
  font-family: var(--font-text);
}

.section-workspace-panel-stack {
  display: grid;
  gap: 18px;
}

.section-workspace-active-panel > .panel,
.section-workspace-panel-stack > .panel {
  padding: 0;
  gap: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-workspace-active-panel .hero-actions {
  margin-top: 0;
}

.section-workspace-active-panel:has(.section-upload-modern) {
  padding-top: 0;
}

.section-workspace-study-panel {
  display: grid;
  gap: 14px;
}

.study-queue-header {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 5px;
  border: 1px solid rgba(167, 203, 223, 0.82);
  background: rgba(255, 255, 255, 0.88);
}

.study-queue-header-copy {
  display: grid;
  gap: 3px;
}

.study-queue-header-copy strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.study-queue-header-copy span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.study-queue-stat-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 3px;
  background: rgba(243, 251, 255, 0.9);
}

.study-queue-stat-grid strong {
  font-size: 1.04rem;
  line-height: 1;
}

.study-queue-stat-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.study-queue-filter-shell {
  display: grid;
  gap: 8px;
}

.study-queue-filter-shell > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-queue-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.study-queue-filter-row {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
}

.study-queue-filter-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), width 280ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.study-queue-filter-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #6e6e73;
  font-size: 13.5px;
  font-weight: 590;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.study-queue-filter-chip.is-selected,
.study-queue-filter-chip:hover {
  color: #1d1d1f;
}

.study-queue-section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 4px 2px 0;
}

.study-queue-section-label strong {
  font-size: 0.86rem;
  font-weight: 900;
}

.study-queue-section-label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.study-topic-browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.study-topic-browser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.study-topic-browser-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.2;
}

.study-topic-browser-head p,
.study-topic-browser-empty {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.study-topic-browser-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.study-topic-browser-list {
  display: grid;
}

.study-topic-browser-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px 18px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease;
}

.study-topic-browser-row:first-child {
  border-top: 0;
}

.study-topic-browser-row:hover,
.study-topic-browser-row:focus-visible {
  background: #f5f9ff;
}

.study-topic-browser-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.study-topic-browser-indicator.is-weak {
  background: #e5484d;
}

.study-topic-browser-indicator.is-uncertain {
  background: #f79009;
}

.study-topic-browser-indicator.is-solid {
  background: #22c55e;
}

.study-topic-browser-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.study-topic-browser-title strong {
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  line-height: 1.25;
}

.study-topic-browser-title small,
.study-topic-browser-score small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.study-topic-browser-score {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.study-topic-browser-score strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.study-topic-browser-arrow {
  color: var(--accent-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.study-topic-browser-empty {
  padding: 18px;
}

.study-topic-readiness-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
}

.study-topic-readiness-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
}

.study-topic-readiness-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

.study-topic-readiness-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.study-topic-readiness-scroll {
  overflow-x: auto;
}

.study-topic-readiness-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
}

.study-topic-readiness-table th,
.study-topic-readiness-table td {
  padding: 15px 18px;
  border-top: 1px solid var(--border);
  font-weight: 900;
  text-align: center;
}

.study-topic-readiness-table thead th {
  border-top: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.study-topic-readiness-table tbody th {
  width: 34%;
  background: #eaf6ff;
  text-align: left;
}

.study-topic-readiness-link,
.study-topic-readiness-table td a {
  color: inherit;
  text-decoration: none;
}

.study-topic-readiness-link {
  color: #174f8d;
  border-bottom: 1px solid rgba(23, 79, 141, 0.35);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.study-topic-readiness-link:hover,
.study-topic-readiness-link:focus-visible,
.study-topic-readiness-table td a:hover,
.study-topic-readiness-table td a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.study-topic-readiness-table td a {
  display: block;
  font-size: 1.05rem;
}

.study-topic-readiness-ready {
  background: #e2f5e8;
  color: #159a49;
}

.study-topic-readiness-uncertain {
  background: #fff2cf;
  color: #d68400;
}

.study-topic-readiness-weak {
  background: #fde0e2;
  color: #e93235;
}


.section-workspace-feedback {
  display: grid;
  gap: 12px;
}

.section-workspace-primary-actions {
  display: grid;
  gap: 14px;
}

.section-workspace-main-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 14px 22px;
  border-radius: 4px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.section-workspace-main-action:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 104, 214, 0.35);
  box-shadow: 0 14px 28px rgba(8, 82, 139, 0.1);
}

.section-workspace-main-action.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #0758c9 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(18, 104, 214, 0.24);
}

.section-workspace-action-icon {
  width: 34px;
  height: 34px;
}

.section-workspace-main-action strong,
.section-workspace-main-action em {
  display: block;
  font-style: normal;
}

.section-workspace-main-action strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.section-workspace-main-action em {
  margin-top: 3px;
  color: currentColor;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0.76;
}

.section-workspace-readiness-check-link {
  justify-self: center;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 675;
  text-decoration: none;
}

.section-workspace-readiness-check-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-workspace-divider {
  height: 1px;
  background: rgba(167, 203, 223, 0.72);
}

.section-workspace-glance-card {
  display: grid;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 5px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  background: rgba(255, 255, 255, 0.86);
}

.section-workspace-glance-card h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 675;
  line-height: 1.1;
}

.section-workspace-glance-list {
  display: grid;
  gap: 13px;
}

.section-workspace-glance-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.section-workspace-glance-icon {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: rgba(223, 241, 255, 0.88);
  color: var(--accent-strong);
}

.section-workspace-glance-icon.is-success {
  background: rgba(220, 250, 229, 0.9);
  color: #18a857;
}

.section-workspace-glance-icon.is-muted {
  background: transparent;
  color: #8aa0b4;
}

.section-workspace-glance-svg {
  width: 22px;
  height: 22px;
}

.section-workspace-glance-label {
  font-size: 0.98rem;
  font-weight: 640;
}

.section-workspace-glance-row strong {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 560;
  white-space: nowrap;
}

.workspace-signal-stack {
  display: grid;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.workspace-readiness-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.workspace-signal-grid {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: #ffffff;
}

.workspace-signal-item {
  display: block;
}

.workspace-signal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 !important;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.workspace-signal-card-with-progress {
  padding-bottom: 16px;
}

.workspace-signal-card:hover {
  transform: none;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.025);
  box-shadow: none;
}

.workspace-signal-item:last-child .workspace-signal-card {
  border-bottom: 0;
}

.workspace-signal-card-locked {
  background: linear-gradient(180deg, rgba(249, 253, 255, 0.98) 0%, rgba(244, 249, 253, 0.96) 100%);
}

.workspace-signal-card:focus-visible {
  outline: none;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

.workspace-signal-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.workspace-signal-label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(8, 32, 51, 0.62);
}

.workspace-signal-description {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 34ch;
}

.workspace-signal-stat-block {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: max-content;
}

.workspace-signal-stat {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}

.workspace-signal-progress {
  display: none;
}

.workspace-signal-progress-fill {
  display: none;
  width: 0;
  height: 100%;
  min-width: 7px;
  border-radius: inherit;
  background: var(--accent);
}

.workspace-readiness-orb {
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  min-height: 158px;
  padding: 24px 18px 20px;
  text-decoration: none;
}

.workspace-readiness-orb:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: -4px;
}

.workspace-readiness-ring {
  position: relative;
  display: inline-grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
}

.workspace-readiness-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.workspace-readiness-ring-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 9;
}

.workspace-readiness-ring-fg {
  fill: none;
  stroke: #0071e3;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-readiness-value {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.workspace-readiness-ring strong {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.workspace-readiness-percent {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 600;
}

.workspace-readiness-label {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 510;
}

.workspace-signal-card-locked .workspace-signal-stat-block {
  opacity: 0.96;
}

.workspace-signal-stat-locked {
  opacity: 0.9;
  user-select: none;
}

.workspace-signal-dialog {
  width: min(760px, calc(100vw - 32px));
}

.workspace-signal-sheet {
  gap: 18px;
}

.workspace-signal-detail {
  display: grid;
}

.workspace-signal-detail > .panel,
.workspace-signal-detail > .study-score-shell {
  margin: 0;
}

.workspace-signal-detail .study-score-shell {
  gap: 16px;
}

@keyframes deep-study-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.deep-study-loading-hero {
  min-height: min(72vh, 720px);
  justify-content: center;
}

.deep-study-loading-grid {
  grid-template-columns: minmax(0, 1fr);
}

.deep-study-loading-hero h1 {
  max-width: none;
}

.deep-study-loading-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.deep-study-loading-spinner {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 6px solid rgba(8, 82, 139, 0.12);
  border-top-color: var(--accent);
  border-right-color: rgba(27, 166, 166, 0.5);
  animation: deep-study-loading-spin 0.9s linear infinite;
  flex: 0 0 auto;
}

.deep-study-loading-copy {
  display: grid;
  gap: 8px;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.stat-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.stat-link:hover strong,
.card-link:hover strong {
  color: var(--accent);
}

.element-body {
  display: grid;
  gap: 12px;
}

.element-heading {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.element-text {
  margin: 0;
  color: var(--text);
  line-height: 1.68;
}

.element-list,
.element-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.62;
}

.element-callout,
.element-source-preview,
.element-figure {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.element-definition {
  display: block;
  margin: 0;
  color: var(--text);
  line-height: 1.68;
  background: transparent;
}

.element-definition strong,
.element-definition span {
  display: inline;
}

.element-definition strong {
  color: var(--text);
  font-weight: 750;
}

.element-callout-exam_tip,
.element-callout-math,
.element-callout-skills,
.element-callout-visual {
  border-color: rgba(0, 106, 181, 0.24);
  background: rgba(223, 241, 255, 0.72);
}

.element-equation {
  margin: 0;
  color: var(--accent-strong);
}

.element-equation-display,
.element-code {
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #f7fbfe;
  max-width: 100%;
  min-width: 0;
}

.element-code {
  margin: 0;
  overflow-x: auto;
}

.admin-debug-record {
  gap: 18px;
}

.admin-debug-blocks {
  display: grid;
  gap: 16px;
}

.admin-debug-block {
  display: grid;
  gap: 8px;
}

.admin-debug-block-title {
  font-size: 0.95rem;
}

.element-math-source {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-block: 0.65em 0.8em;
  line-height: normal;
}

.element-math-source mjx-container,
.element-math-source mjx-math,
.element-math-source .mjx-container {
  overflow: visible !important;
}

/*
 * MathJax sizes its generated CHTML nodes with content-box metrics. Harbor's
 * global border-box reset changes those measurements and can crop the glyphs
 * to a thin horizontal band even when the outer container allows overflow.
 */
.element-math-source mjx-container,
.element-math-source mjx-container * {
  box-sizing: content-box;
}

.element-equation-inline mjx-container,
.element-equation-inline .mjx-container {
  display: inline-block !important;
  margin: 0 0.08em;
}

.element-equation-display mjx-container,
.element-equation-display .mjx-container {
  display: block !important;
  max-width: none;
  margin: 0 !important;
  padding-block: 0.12em 0.2em;
}

.element-quote {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent-soft);
  color: var(--muted);
}

.element-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.element-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.element-meta-secondary {
  color: var(--muted);
  font-size: 0.9rem;
}

.element-table th,
.element-table td {
  font-size: 0.92rem;
}

.element-figure-image {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(0, 44, 87, 0.12);
  background: rgba(255, 255, 255, 0.92);
  display: block;
}

.element-mermaid-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 4px;
  border: 1px solid rgba(0, 44, 87, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
}

.element-mermaid-canvas {
  margin: 0;
  min-width: fit-content;
  background: transparent;
}

.element-mermaid-canvas svg {
  display: block;
  height: auto;
  max-width: none;
}

/*
 * Structured elements are shared across Study Stream, Deep Study, and
 * Exam Lock-In. Their original tokens predate the authenticated dark theme,
 * so explicitly map every text-bearing block and surface to the app tokens.
 */
html[data-theme="dark"] .shell-authenticated .element-body {
  color: var(--hb-text);
}

html[data-theme="dark"] .shell-authenticated .element-heading,
html[data-theme="dark"] .shell-authenticated .element-text,
html[data-theme="dark"] .shell-authenticated .element-list,
html[data-theme="dark"] .shell-authenticated .element-steps,
html[data-theme="dark"] .shell-authenticated .element-definition,
html[data-theme="dark"] .shell-authenticated .element-definition strong,
html[data-theme="dark"] .shell-authenticated .element-definition span {
  color: var(--hb-text);
}

html[data-theme="dark"] .shell-authenticated .element-quote,
html[data-theme="dark"] .shell-authenticated .element-meta-secondary {
  color: var(--hb-text2);
}

html[data-theme="dark"] .shell-authenticated .element-callout,
html[data-theme="dark"] .shell-authenticated .element-source-preview,
html[data-theme="dark"] .shell-authenticated .element-equation-display,
html[data-theme="dark"] .shell-authenticated .element-code {
  border-color: var(--hb-border2);
  background: var(--hb-card2);
  color: var(--hb-text);
}

html[data-theme="dark"] .shell-authenticated .element-callout-exam_tip,
html[data-theme="dark"] .shell-authenticated .element-callout-math,
html[data-theme="dark"] .shell-authenticated .element-callout-skills,
html[data-theme="dark"] .shell-authenticated .element-callout-visual {
  border-color: rgba(122, 167, 255, 0.28);
  background: rgba(122, 167, 255, 0.12);
}

html[data-theme="dark"] .shell-authenticated .element-equation {
  color: var(--hb-accent);
}

html[data-theme="dark"] .shell-authenticated .element-divider {
  border-top-color: var(--hb-border2);
}

html[data-theme="dark"] .shell-authenticated .element-table {
  border-color: var(--hb-border2);
  background: var(--hb-card2);
}

html[data-theme="dark"] .shell-authenticated .element-table th {
  border-bottom-color: var(--hb-border2);
  background: rgba(122, 167, 255, 0.14);
  color: var(--hb-accent);
}

html[data-theme="dark"] .shell-authenticated .element-table td {
  border-bottom-color: var(--hb-border);
  background: var(--hb-card2);
  color: var(--hb-text);
}

html[data-theme="dark"] .shell-authenticated .element-table tbody tr:hover,
html[data-theme="dark"] .shell-authenticated .element-table tbody tr:hover td {
  background: var(--hb-hover);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.settings-static-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.settings-static-grid .stat {
  background: rgba(248, 252, 255, 0.72);
  box-shadow: none;
  min-height: 92px;
  padding: 18px 20px;
}

.settings-static-grid .stat strong {
  font-size: 1.05rem;
  font-weight: 620;
  line-height: 1.25;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.settings-static-grid .inline-note {
  color: #6c8298;
  font-size: 0.88rem;
  font-weight: 520;
}

.settings-section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.settings-section-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 660;
  letter-spacing: -0.035em;
  margin: 0;
}

.settings-actions-panel .hero-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.settings-actions-panel .hero-actions .button {
  justify-content: center;
  min-height: 48px;
  width: 100%;
}

.settings-actions-panel .hero-actions form {
  margin: 0;
}

.settings-password-dialog {
  max-width: 520px;
  width: min(520px, calc(100vw - 32px));
}

.settings-password-sheet {
  background: #fbfbfd;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

.settings-password-header {
  align-items: center;
  border-bottom: 1px solid #e3e4e7;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 64px;
  padding: 10px 16px;
}

.settings-password-header strong {
  font-size: 1.08rem;
  font-weight: 650;
}

.settings-password-header button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #0876e8;
  font: inherit;
  padding: 6px;
}

.settings-password-header button:first-child { justify-self: start; }
.settings-password-header button:last-child { font-weight: 650; justify-self: end; }
.settings-password-header button:disabled { color: #a7aaaf; cursor: default; }

.settings-password-body {
  display: grid;
  gap: 24px;
  padding: 24px 20px 22px;
}

.settings-password-intro {
  color: #85898f;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.settings-password-field { display: grid; gap: 8px; }
.settings-password-label-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.settings-password-label-row label {
  color: #7f8389;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-password-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: #0876e8;
  font: inherit;
  font-size: 0.82rem;
  padding: 0;
  text-decoration: none;
}

.settings-password-input-wrap { position: relative; }
.settings-password-input-wrap input {
  background: #f0f0f2;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  min-height: 54px;
  padding: 13px 50px 13px 14px;
}

.settings-password-input-wrap.is-valid input {
  box-shadow: inset 0 0 0 1.5px #22a866;
}

.settings-password-input-wrap input.is-suggested {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.settings-password-eye {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #85898f;
  display: flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 7px;
  width: 40px;
}

.settings-password-eye svg { height: 21px; width: 21px; }
.settings-password-meter { display: flex; gap: 5px; }
.settings-password-meter span {
  background: #e7e8eb;
  border-radius: 999px;
  flex: 1;
  height: 4px;
}

.settings-password-meter[data-score="1"] span:nth-child(1) { background: #e5484d; }
.settings-password-meter[data-score="2"] span:nth-child(-n + 2) { background: #e89a28; }
.settings-password-meter[data-score="3"] span:nth-child(-n + 3),
.settings-password-meter[data-score="4"] span { background: #22a866; }

.settings-password-under {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 20px;
}

.settings-password-strength { color: #85898f; font-size: 0.78rem; }
.settings-password-rules { display: grid; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.settings-password-rules li {
  align-items: center;
  color: #85898f;
  display: flex;
  font-size: 0.82rem;
  gap: 9px;
}

.settings-password-rule-dot {
  align-items: center;
  background: #e7e8eb;
  border-radius: 50%;
  color: transparent;
  display: flex;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.settings-password-rules li.is-met { color: #30343a; }
.settings-password-rules li.is-met .settings-password-rule-dot { background: #22a866; color: #fff; }
.settings-password-rule-dot svg { height: 10px; width: 10px; }

.settings-password-signout {
  align-items: center;
  background: #f0f0f2;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  padding: 13px 14px;
}

.settings-password-signout-copy { display: grid; flex: 1; gap: 2px; }
.settings-password-signout-copy strong { font-size: 0.95rem; font-weight: 580; }
.settings-password-signout-copy span { color: #85898f; font-size: 0.78rem; }
.settings-password-switch { height: 31px; position: relative; width: 51px; }
.settings-password-switch input { height: 100%; inset: 0; margin: 0; opacity: 0; position: absolute; width: 100%; z-index: 2; }
.settings-password-switch span { background: #b9bbc0; border-radius: 999px; inset: 0; position: absolute; }
.settings-password-switch span::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  content: "";
  height: 27px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 180ms ease;
  width: 27px;
}

.settings-password-switch input:checked + span { background: #28c45d; }
.settings-password-switch input:checked + span::after { transform: translateX(20px); }

@media (max-width: 520px) {
  .settings-password-dialog { width: calc(100vw - 20px); }
  .settings-password-body { padding-inline: 16px; }
}

.settings-page-stack {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 720px;
  padding: 12px 0 44px;
}

.settings-profile-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  padding: 18px 16px 6px;
  text-align: center;
}

.settings-avatar {
  align-items: center;
  background: linear-gradient(145deg, #176fe8 0%, #28aef1 52%, #22be78 100%);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 111, 232, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-size: 1.65rem;
  font-weight: 650;
  height: 88px;
  justify-content: center;
  letter-spacing: 0;
  overflow: hidden;
  width: 88px;
}

.settings-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.settings-avatar-edit {
  align-items: center;
  background: #0876e8;
  border: 3px solid #fff;
  border-radius: 50%;
  bottom: -4px;
  color: #fff;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: -5px;
  width: 28px;
}

.settings-profile-image-sheet { border-radius: 8px; }

.settings-education-stage-sheet { border-radius: 8px; }

.settings-email-sheet { border-radius: 8px; }

.settings-education-stage-options {
  border: 1px solid #dfe5ea;
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.settings-education-stage-option {
  align-items: center;
  background: #fff;
  border-top: 1px solid #e7ebef;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
}

.settings-education-stage-option:first-of-type { border-top: 0; }
.settings-education-stage-option:hover { background: #f6f8fa; }
.settings-education-stage-option.is-selected,
.settings-education-stage-option:has(input:checked) { background: #eef4ff; }

.settings-education-stage-option input {
  accent-color: #0c2abf;
  height: 18px;
  margin: 0;
  width: 18px;
}

.settings-education-stage-option > span:nth-of-type(1) { flex: 1; }

.settings-education-stage-check {
  color: #0c2abf;
  opacity: 0;
}

.settings-education-stage-option.is-selected .settings-education-stage-check,
.settings-education-stage-option:has(input:checked) .settings-education-stage-check {
  opacity: 1;
}

.settings-profile-image-picker {
  align-items: center;
  background: #f8faff;
  border: 1.5px dashed #b8c9e5;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  gap: 16px;
  min-height: 132px;
  padding: 20px;
  position: relative;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.settings-profile-image-picker:hover,
.settings-profile-image-picker:focus-within,
.settings-profile-image-picker.is-dragover {
  background: #f1f6ff;
  border-color: #176fe8;
  box-shadow: 0 0 0 4px rgba(23, 111, 232, 0.1);
}

.settings-profile-image-picker.is-selected {
  background: #f4fbf8;
  border-color: #22a873;
  border-style: solid;
}

.settings-profile-image-input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.settings-profile-image-preview {
  align-items: center;
  background: linear-gradient(145deg, #176fe8 0%, #28aef1 52%, #22be78 100%);
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 700;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}

.settings-profile-image-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.settings-profile-image-copy {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.settings-profile-image-picker small { color: #78838d; }

.settings-profile-image-copy strong,
.settings-profile-image-copy small {
  overflow-wrap: anywhere;
}

.settings-profile-image-browse {
  background: #fff;
  border: 1px solid #cbd8eb;
  border-radius: 999px;
  color: #1554bd;
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 15px;
}

.settings-profile-image-error {
  color: #b42318 !important;
  font-weight: 650;
}

.settings-profile-image-error:empty { display: none; }

@media (max-width: 560px) {
  .settings-profile-image-picker {
    align-items: center;
    flex-direction: column;
    min-height: 230px;
    padding: 24px 18px;
    text-align: center;
  }

  .settings-profile-image-copy { flex: 0 0 auto; }
  .settings-profile-image-browse { min-width: 112px; }
}

.settings-profile-header .settings-account-name {
  color: #071c2d;
  font-size: clamp(2rem, 6vw, 2.55rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.settings-profile-header p {
  color: #78838d;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.settings-message-stack:empty {
  display: none;
}

.settings-group {
  display: grid;
  gap: 8px;
}

.settings-group > h2 {
  color: #78838d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0 16px;
  text-transform: uppercase;
}

.settings-group-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(7, 28, 45, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(7, 28, 45, 0.07);
  overflow: hidden;
}

.settings-plan-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.settings-plan-heading {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.settings-plan-heading strong {
  color: #071c2d;
  font-size: 1.12rem;
  font-weight: 680;
}

.settings-plan-heading span,
.settings-plan-card p {
  color: #78838d;
  font-size: 0.94rem;
}

.settings-plan-action {
  border-radius: 6px;
  justify-content: center;
  margin-top: 2px;
  min-height: 48px;
  width: 100%;
}

.settings-row,
.settings-row-form {
  margin: 0;
  width: 100%;
}

.settings-row {
  align-items: center;
  background: transparent;
  border: 0;
  color: #071c2d;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
  position: relative;
  text-align: left;
  text-decoration: none;
}

.settings-row-content {
  display: contents;
}

.settings-row + .settings-row,
.settings-row-form + .settings-row,
.settings-row + .settings-row-form {
  border-top: 1px solid rgba(7, 28, 45, 0.08);
}

.settings-row:hover,
.settings-row:focus-visible {
  background: #f4f6f8;
  color: #071c2d;
}

.settings-row-static {
  cursor: default;
}

.settings-row-static:hover {
  background: transparent;
}

.settings-row-icon {
  align-items: center;
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.settings-row-icon svg {
  height: 20px;
  width: 20px;
}

.settings-row-icon.is-blue { background: #176fe8; }
.settings-row-icon.is-green { background: #26b85d; }
.settings-row-icon.is-orange { background: #f28a00; }
.settings-row-icon.is-red { background: #ef3750; }
.settings-row-icon.is-cyan { background: #18a9dd; }
.settings-row-icon.is-gray { background: #73777c; }
.settings-row-icon.is-indigo { background: #4f4bd8; }

.settings-row-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 1px;
  min-width: 0;
}

.settings-row-label {
  font-size: 1rem;
  font-weight: 540;
  line-height: 1.25;
}

.settings-row-sublabel {
  color: #78838d;
  font-size: 0.82rem;
  line-height: 1.3;
}

.settings-row-value {
  color: #78838d;
  flex: 0 1 auto;
  font-size: 0.94rem;
  max-width: 48%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row-badge {
  background: #fff0d6;
  border-radius: 999px;
  color: #a85b00;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 4px 9px;
}

.settings-row-chevron {
  color: #a6afb7;
  flex: 0 0 auto;
  font-size: 1.65rem;
  font-weight: 350;
  line-height: 1;
}

.settings-row-centered {
  justify-content: center;
  text-align: center;
}

.settings-row-danger {
  border-top: 1px solid rgba(7, 28, 45, 0.08);
  color: #d92f35;
}

.settings-row-danger:hover,
.settings-row-danger:focus-visible {
  color: #b52229;
}

.settings-account-actions {
  gap: 18px;
}

.settings-delete-note {
  color: #87919a;
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

@media (max-width: 600px) {
  .settings-page-stack {
    gap: 24px;
    padding-top: 4px;
  }

  .settings-profile-header {
    padding-top: 8px;
  }

  .settings-avatar {
    height: 76px;
    width: 76px;
  }

  .settings-plan-card {
    padding: 20px 18px;
  }

  .settings-plan-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .settings-row {
    gap: 11px;
    min-height: 60px;
    padding: 11px 14px;
  }

  .settings-row-value {
    font-size: 0.86rem;
    max-width: 40%;
  }
}

.statistics-stack {
  display: grid;
  gap: 24px;
}

.progress-page { width: min(100%, 760px); margin: 0 auto; padding: 18px 0 54px; color: #1d1d1f; }
.progress-page-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.progress-page-header h1 { margin: 0; font-size: 36px; line-height: 1.08; font-weight: 650; }
.progress-page-header time { color: #8e8e93; font-size: 14px; }
.progress-card, .progress-list { overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, 0.09); border-radius: 16px; }
.progress-focus-strip { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 14px; padding: 10px 16px; color: #a64d00; background: rgba(255, 159, 10, 0.14); border-radius: 10px; font-size: 14px; }
.progress-focus-strip strong { font-weight: 650; }
.progress-focus-strip b { margin-left: auto; white-space: nowrap; }
.progress-hero-main { display: flex; align-items: center; gap: 26px; padding: 24px; }
.progress-ring { width: 116px; height: 116px; flex: 0 0 auto; }
.progress-ring-track, .progress-ring-value { fill: none; stroke-width: 12; }
.progress-ring-track { stroke: #eeeef0; }
.progress-ring-value { stroke: #34c759; stroke-linecap: round; }
.progress-hero-copy { display: grid; gap: 5px; min-width: 0; }
.progress-hero-copy > strong { font-size: 48px; line-height: 1; font-weight: 650; }
.progress-hero-copy > span { color: #6e6e73; font-size: 15px; }
.progress-hero-copy p { margin: 5px 0 0; color: #8e8e93; font-size: 14px; }
.progress-hero-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.progress-hero-action > div { display: grid; gap: 2px; }
.progress-hero-action strong { font-size: 15px; font-weight: 520; }
.progress-hero-action span { color: #8e8e93; font-size: 13px; }
.progress-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 16px; color: #1d1d1f; background: #eeeef0; border: 0; border-radius: 999px; font-size: 14px; font-weight: 520; text-decoration: none; white-space: nowrap; }
.progress-button-primary { color: #fff; background: #0071e3; }
.progress-button:hover { filter: brightness(0.97); text-decoration: none; }
.progress-section { margin-top: 38px; }
.progress-section > h2 { margin: 0 4px 12px; color: #8e8e93; font-size: 13px; line-height: 1.2; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.progress-topic-row, .progress-summary-row, .progress-empty-row, .progress-locked-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; color: inherit; text-decoration: none; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.progress-topic-row:first-child, .progress-summary-row:first-child, .progress-empty-row:first-child { border-top: 0; }
.progress-topic-row:hover { background: rgba(0, 0, 0, 0.025); text-decoration: none; }
.progress-topic-body, .progress-summary-row > span, .progress-empty-row > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.progress-topic-body strong, .progress-summary-row strong, .progress-empty-row strong { font-size: 15px; font-weight: 520; }
.progress-topic-body small, .progress-summary-row small, .progress-empty-row span { color: #8e8e93; font-size: 13px; }
.progress-topic-row > b { color: #248a3d; font-size: 14px; white-space: nowrap; }
.progress-topic-row > span:last-child { color: #8e8e93; }
.progress-segments { display: flex; height: 6px; overflow: hidden; background: #eeeef0; border-radius: 4px; }
.progress-segments i { display: block; height: 100%; }
.progress-segments .is-ready, .progress-legend .is-ready { background: #34c759; }
.progress-segments .is-uncertain, .progress-legend .is-uncertain { background: #ff9f0a; }
.progress-segments .is-weak, .progress-legend .is-weak { background: #ff453a; }
.progress-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 6px 0; color: #6e6e73; font-size: 12px; }
.progress-legend span { display: inline-flex; align-items: center; gap: 6px; }
.progress-legend i { width: 9px; height: 9px; border-radius: 2px; }
.progress-footnote { margin: 9px 6px 0; color: #8e8e93; font-size: 13px; }
.progress-summary-row > b { margin-left: auto; color: #1d1d1f; font-weight: 620; }
.progress-summary-row > .progress-check { color: #248a3d; }
.progress-locked-row { justify-content: space-between; color: #6e6e73; font-size: 14px; }
.progress-trend-card { padding: 20px; }
.progress-trend-card > strong { display: block; font-size: 16px; font-weight: 520; }
.progress-trend-card > span { display: block; margin-top: 3px; color: #8e8e93; font-size: 13px; }
.progress-trend-card svg { display: block; width: 100%; height: 72px; margin-top: 15px; }
.progress-trend-card path { fill: none; stroke: #34c759; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.progress-week-list { margin-top: 12px; }

@media (max-width: 700px) {
  .progress-page { width: 100%; padding-top: 8px; }
  .progress-page-header h1 { font-size: 30px; }
  .progress-focus-strip { align-items: flex-start; flex-wrap: wrap; }
  .progress-focus-strip b { width: 100%; margin-left: 24px; }
  .progress-hero-main { align-items: flex-start; gap: 18px; padding: 20px; }
  .progress-ring { width: 92px; height: 92px; }
  .progress-hero-copy > strong { font-size: 40px; }
}
@media (max-width: 480px) {
  .progress-page-header { align-items: flex-start; }
  .progress-page-header time { padding-top: 7px; font-size: 12px; }
  .progress-hero-main { flex-direction: column; }
  .progress-hero-action { align-items: stretch; flex-direction: column; }
  .progress-button-primary { width: 100%; }
  .progress-topic-row, .progress-summary-row, .progress-empty-row, .progress-locked-row { padding: 14px; }
  .progress-topic-row { align-items: flex-start; }
}

body:has(.shell-progress) {
  background: #eef1f7;
}

html[data-theme="dark"] body:has(.shell-progress) {
  background: #0b1220;
}

.shell-progress {
  width: min(1200px, calc(100% - 60px));
}

.progress-dashboard {
  width: 100%;
  padding: 24px 0 52px;
  color: var(--hb-text);
  font-family: var(--hb-font-text);
}

.progress-dashboard h1,
.progress-dashboard h2,
.progress-dashboard h3,
.progress-dashboard p {
  margin: 0;
}

.progress-dashboard-header {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.progress-dashboard-header h1 {
  color: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.progress-class-picker {
  position: relative;
}

.progress-class-picker > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 176px;
  padding: 8px 12px;
  color: var(--hb-text);
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(16, 42, 90, 0.06);
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.progress-class-picker > summary::-webkit-details-marker {
  display: none;
}

.progress-class-picker > summary:hover,
.progress-class-picker > summary:focus-visible {
  border-color: var(--hb-border2);
  box-shadow: 0 12px 26px -18px rgba(16, 42, 90, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.progress-class-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: #1b49c6;
  background: #eaf0fe;
  border-radius: 10px;
  font-family: var(--hb-font-display);
  font-size: 0.7rem;
  font-weight: 700;
}

.progress-class-picker summary > span:nth-child(2) {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.progress-class-picker summary strong {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-class-picker summary small {
  color: var(--hb-text3);
  font-size: 0.72rem;
}

.progress-class-chevron {
  margin-left: auto;
  color: var(--hb-text3);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.progress-class-picker[open] .progress-class-chevron {
  transform: rotate(180deg);
}

.progress-class-picker nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 3px;
  width: 300px;
  padding: 7px;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  box-shadow: 0 26px 50px -18px rgba(16, 42, 90, 0.4);
}

.progress-class-picker nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  color: var(--hb-text);
  border-radius: 11px;
  text-decoration: none;
}

.progress-class-picker nav a:hover,
.progress-class-picker nav a:focus-visible,
.progress-class-picker nav a.is-active {
  background: var(--hb-hover);
  outline: none;
  text-decoration: none;
}

.progress-class-picker nav a > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.progress-class-picker nav a strong,
.progress-class-picker nav a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-class-picker nav a strong {
  font-size: 0.86rem;
}

.progress-class-picker nav a small {
  color: var(--hb-text3);
  font-size: 0.73rem;
}

.progress-class-picker nav a b {
  color: #0f9f6e;
  font-family: var(--hb-font-mono);
  font-size: 0.76rem;
}

.progress-panel {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(16, 42, 90, 0.055);
}

.progress-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: stretch;
}

.progress-readiness-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.progress-readiness-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.progress-readiness-ring {
  width: 142px;
  height: 142px;
  flex: 0 0 auto;
  overflow: visible;
}

.progress-readiness-ring .progress-ring-track,
.progress-readiness-ring .progress-ring-value {
  fill: none;
  stroke-width: 12;
}

.progress-readiness-ring .progress-ring-track {
  stroke: var(--hb-track);
}

.progress-readiness-ring .progress-ring-value {
  stroke: url(#progress-ring-gradient);
  stroke-linecap: round;
  animation: progress-ring-load 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: stroke-dashoffset 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes progress-ring-load {
  from {
    stroke-dashoffset: var(--progress-ring-length);
  }

  to {
    stroke-dashoffset: var(--progress-ring-offset);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-readiness-ring .progress-ring-value {
    animation: none;
    transition: none;
  }
}

.progress-ring-score {
  fill: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: 2.25rem;
  font-weight: 600;
}

.progress-ring-label {
  fill: var(--hb-text3);
  font-family: var(--hb-font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.progress-readiness-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.progress-readiness-copy > span,
.progress-metric-card header span {
  color: var(--hb-text3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-readiness-copy h2 {
  color: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.28;
}

.progress-delta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  margin-top: 3px;
  padding: 7px 11px;
  color: #0f7a53;
  background: #e4f6ee;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.progress-delta svg {
  width: 14px;
  height: 14px;
}

.progress-readiness-copy p {
  max-width: 230px;
  color: var(--hb-text3);
  font-size: 0.78rem;
  line-height: 1.45;
}

.progress-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  border-radius: 14px;
  box-shadow: 0 14px 26px -14px rgba(26, 70, 194, 0.72);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-readiness-card > .progress-primary-action {
  width: 100%;
  margin-top: 24px;
}

.progress-primary-action:hover,
.progress-primary-action:focus-visible {
  box-shadow: 0 20px 34px -14px rgba(26, 70, 194, 0.82);
  outline: none;
  text-decoration: none;
  transform: translateY(-2px);
}

.progress-primary-action > span {
  transition: transform 160ms ease;
}

.progress-primary-action:hover > span {
  transform: translateX(3px);
}

.progress-season-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 26px 18px;
}

.progress-season-card > header,
.progress-focus-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.progress-season-card h2,
.progress-focus-card h2,
.progress-training-card h2,
.progress-bests-card h2 {
  color: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.progress-season-card header p,
.progress-focus-card header p {
  margin-top: 5px;
  color: var(--hb-text2);
  font-size: 0.78rem;
}

.progress-chart-legend,
.progress-topic-legend {
  display: flex;
  gap: 14px;
  color: var(--hb-text3);
  font-size: 0.72rem;
}

.progress-chart-legend span,
.progress-topic-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-chart-legend i {
  width: 16px;
  border-top: 3px solid #0f9f6e;
  border-radius: 999px;
}

.progress-chart-legend i.is-best {
  border-top: 2px dashed #b3bdce;
  border-radius: 0;
}

.progress-season-card > svg {
  display: block;
  width: 100%;
  height: 186px;
  margin-top: auto;
  overflow: visible;
}

.progress-chart-grid {
  stroke: var(--hb-border);
  stroke-width: 1;
}

.progress-chart-best {
  stroke: #b3bdce;
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.progress-chart-area {
  fill: url(#progress-area-fill);
}

.progress-chart-line {
  fill: none;
  stroke: #0f9f6e;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.progress-chart-dot {
  fill: #0f9f6e;
  stroke: var(--hb-card);
  stroke-width: 3;
}

.progress-chart-y-label,
.progress-chart-x-label {
  fill: var(--hb-text3);
  font-family: var(--hb-font-text);
  font-size: 10px;
}

.progress-chart-y-label {
  font-family: var(--hb-font-mono);
  font-size: 9px;
}

.progress-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.progress-metric-card {
  min-height: 132px;
  padding: 18px 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.progress-metric-card:hover {
  border-color: var(--hb-border2);
  box-shadow: 0 20px 38px -24px rgba(16, 42, 90, 0.45);
  transform: translateY(-2px);
}

.progress-metric-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-metric-card header svg {
  width: 18px;
  height: 18px;
}

.progress-metric-card.is-streak header svg {
  color: #e8873a;
}

.progress-metric-card.is-cram header svg {
  color: #0f9f6e;
}

.progress-cram-card {
  min-height: 154px;
}

.progress-cram-periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.progress-cram-periods button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1.5px solid var(--hb-border);
  border-radius: 999px;
  color: var(--hb-text3);
  background: var(--hb-card);
  font: 700 0.76rem/1 var(--hb-font-text);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.progress-cram-periods button.is-active {
  color: var(--hb-accent);
  background: rgba(37, 91, 235, 0.09);
  border-color: var(--hb-accent);
}

.progress-cram-periods button:hover,
.progress-cram-periods button:focus-visible {
  border-color: var(--hb-accent);
}

.progress-cram-card > small {
  margin-top: 10px;
}

.progress-metric-card.is-reps header svg {
  color: #1b49c6;
}

.progress-metric-card.is-ready header svg {
  color: #0f9f6e;
}

.progress-metric-card.is-best header svg {
  color: #c99a2b;
}

.progress-metric-card > p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 13px;
  color: var(--hb-text3);
  font-size: 0.76rem;
}

.progress-metric-card > p strong {
  color: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.progress-metric-card > small {
  display: block;
  margin-top: 14px;
  color: var(--hb-text3);
  font-size: 0.73rem;
}

.progress-week-dots {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}

.progress-week-dots i {
  width: 11px;
  height: 11px;
  background: var(--hb-track);
  border-radius: 4px;
}

.progress-week-dots i.is-active {
  background: #e8873a;
}

.progress-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.progress-focus-card {
  padding: 24px 26px 26px;
}

.progress-topic-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.progress-topic-legend .is-ready,
.progress-topic-bar .is-ready,
.progress-training-bar .is-ready {
  background: #12a26b;
}

.progress-topic-legend .is-shaky,
.progress-topic-bar .is-shaky {
  background: #e0a127;
}

.progress-topic-legend .is-weak,
.progress-topic-bar .is-weak,
.progress-training-bar .is-weak {
  background: #e2564d;
}

.progress-topic-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.progress-topic-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  color: var(--hb-text);
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.progress-topic-card:hover,
.progress-topic-card:focus-visible {
  color: var(--hb-text);
  background: var(--hb-hover);
  border-color: var(--hb-border2);
  outline: none;
  text-decoration: none;
}

.progress-topic-card:active {
  transform: scale(0.996);
}

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

.progress-topic-card strong {
  overflow: hidden;
  font-size: 0.89rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-topic-card b {
  color: #0f9f6e;
  font-family: var(--hb-font-mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

.progress-topic-card > div > span {
  color: var(--hb-text3);
  transition: color 140ms ease, transform 140ms ease;
}

.progress-topic-card:hover > div > span {
  color: var(--hb-accent);
  transform: translateX(2px);
}

.progress-topic-bar,
.progress-training-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  background: var(--hb-track);
  border-radius: 999px;
}

.progress-topic-bar i,
.progress-training-bar i {
  display: block;
  height: 100%;
}

.progress-topic-card > small {
  color: var(--hb-text2);
  font-size: 0.73rem;
}

.progress-empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 100px;
  padding: 20px;
  color: var(--hb-text2);
  background: var(--hb-subtle);
  border-radius: 16px;
}

.progress-empty-state a {
  font-weight: 600;
}

.progress-side-stack {
  display: grid;
  gap: 20px;
}

.progress-training-card,
.progress-bests-card {
  padding: 22px 24px;
}

.progress-training-card > p {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 17px;
  color: var(--hb-text3);
  font-size: 0.76rem;
}

.progress-training-card > p strong {
  color: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.progress-training-bar {
  margin-top: 13px;
}

.progress-training-labels {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 9px;
  color: var(--hb-text2);
  font-size: 0.72rem;
}

.progress-training-labels span:last-child {
  text-align: right;
}

.progress-training-labels span:first-child b {
  color: #0f9f6e;
}

.progress-training-labels span:last-child b {
  color: #c0392b;
}

.progress-map-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hb-border);
}

.progress-map-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--hb-accent);
  font-size: 1.45rem;
}

.progress-map-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.progress-map-row strong {
  font-size: 0.84rem;
}

.progress-map-row small {
  overflow: hidden;
  color: var(--hb-text3);
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-map-row a {
  padding: 9px 14px;
  color: var(--hb-text2);
  background: var(--hb-subtle);
  border-radius: 11px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.progress-map-row a:hover,
.progress-map-row a:focus-visible {
  color: var(--hb-accent);
  background: var(--hb-hover);
  outline: none;
  text-decoration: none;
}

.progress-bests-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.progress-bests-card h2 svg {
  width: 20px;
  height: 20px;
  color: #c99a2b;
}

.progress-bests-card dl {
  display: grid;
  gap: 2px;
  margin: 16px 0 0;
}

.progress-bests-card dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
}

.progress-bests-card dt {
  color: var(--hb-text2);
  font-size: 0.8rem;
}

.progress-bests-card dd {
  margin: 0;
  color: var(--hb-text);
  font-family: var(--hb-font-display);
  font-size: 0.94rem;
  font-weight: 600;
}

.progress-upload-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 20px 24px;
}

.progress-upload-strip > div {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.progress-upload-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--hb-accent);
  font-size: 1.35rem;
}

.progress-upload-strip > div > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.progress-upload-strip strong {
  overflow: hidden;
  color: var(--hb-text);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-upload-strip small {
  color: var(--hb-text3);
  font-size: 0.76rem;
}

.progress-upload-strip .progress-primary-action {
  min-height: 46px;
  flex: 0 0 auto;
  font-size: 0.86rem;
}

html[data-theme="dark"] .progress-class-badge {
  color: #a9c3ff;
  background: rgba(122, 167, 255, 0.16);
}

html[data-theme="dark"] .progress-delta {
  color: #4fd394;
  background: rgba(14, 143, 78, 0.2);
}

html[data-theme="dark"] .progress-chart-best {
  stroke: #67758c;
}

@media (max-width: 980px) {
  .progress-hero-grid,
  .progress-lower-grid {
    grid-template-columns: 1fr;
  }

  .progress-season-card > svg {
    height: 210px;
  }

  .progress-side-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .shell-progress {
    width: min(100%, calc(100% - 32px));
  }

  .progress-dashboard {
    padding-top: 18px;
  }

  .progress-dashboard-header h1 {
    font-size: 1.7rem;
  }

  .progress-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .progress-cram-card {
    grid-column: 1 / -1;
  }

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

  .progress-side-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .progress-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .progress-class-picker,
  .progress-class-picker > summary {
    width: 100%;
  }

  .progress-class-picker nav {
    right: auto;
    left: 0;
    width: 100%;
  }

  .progress-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-readiness-card,
  .progress-season-card,
  .progress-focus-card,
  .progress-training-card,
  .progress-bests-card {
    padding: 20px;
  }

  .progress-readiness-main {
    align-items: flex-start;
    gap: 14px;
  }

  .progress-readiness-ring {
    width: 112px;
    height: 112px;
  }

  .progress-ring-score {
    font-size: 2rem;
  }

  .progress-readiness-copy h2 {
    font-size: 0.94rem;
  }

  .progress-delta {
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .progress-readiness-copy p {
    font-size: 0.72rem;
  }

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

  .progress-season-card > svg {
    height: 175px;
    margin-top: 12px;
  }

  .progress-metric-grid {
    gap: 10px;
  }

  .progress-metric-card {
    min-height: 126px;
    padding: 16px;
  }

  .progress-metric-card > p strong {
    font-size: 1.65rem;
  }

  .progress-topic-card {
    padding: 14px;
  }

  .progress-topic-card strong {
    white-space: normal;
  }

  .progress-training-labels {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .progress-training-labels span:last-child {
    text-align: left;
  }

  .progress-upload-strip {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .progress-upload-strip .progress-primary-action {
    width: 100%;
  }
}

.readiness-map-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 0 54px;
}

.readiness-map-card {
  overflow: hidden;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(10, 38, 71, 0.06);
}

.section-workspace-readiness-map {
  width: 100%;
}

.readiness-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.readiness-map-header > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.readiness-map-header > div:first-child > span,
.readiness-map-elements > h2,
.readiness-map-next > div > span {
  color: #7d8aa5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readiness-map-header h1 {
  margin: 0;
  color: #10285d;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 650;
  line-height: 1.18;
}

.readiness-map-assessment {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 149, 0, 0.52);
  border-radius: 999px;
  color: #925800;
  background: #fff9f0;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
}

.readiness-map-assessment i,
.readiness-map-legend i,
.readiness-map-state {
  display: inline-block;
  flex: 0 0 auto;
}

.readiness-map-assessment i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff9500;
}

.readiness-map-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 42px 28px 28px;
}

.readiness-map-score strong {
  color: #10285d;
  font-size: clamp(4rem, 9vw, 6.4rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.82;
}

.readiness-map-score small {
  color: #7d8aa5;
  font-size: 0.48em;
}

.readiness-map-score > span {
  color: #52627f;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.readiness-map-distribution {
  display: flex;
  height: 18px;
  margin: 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}

.readiness-map-distribution span { min-width: 0; }
.readiness-map-distribution .is-solid,
.readiness-map-legend .is-solid,
.readiness-map-state.is-solid { background: #22c36a; }
.readiness-map-distribution .is-uncertain,
.readiness-map-legend .is-uncertain,
.readiness-map-state.is-uncertain { background: #ff9500; }
.readiness-map-distribution .is-weak,
.readiness-map-legend .is-weak,
.readiness-map-state.is-weak { background: #e64a54; }

.readiness-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 28px 34px;
  color: #697894;
  font-size: 0.92rem;
}

.readiness-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.readiness-map-legend i,
.readiness-map-state {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.readiness-map-elements {
  display: grid;
  gap: 14px;
  padding: 0 28px 30px;
}

.readiness-map-elements > h2 { margin: 0; }

.readiness-map-row-list {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 10px;
}

.readiness-map-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(110px, auto) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #1b2944;
  text-decoration: none;
}

.readiness-map-row:first-child { border-top: 0; }
.readiness-map-row:hover { background: #f6f9ff; text-decoration: none; }
.readiness-map-row:focus-visible { outline: 2px solid #0071e3; outline-offset: -2px; }
.readiness-map-row strong { min-width: 0; font-size: 1rem; font-weight: 600; }
.readiness-map-row > span { color: #8390aa; font-size: 0.92rem; text-align: right; white-space: nowrap; }

.readiness-map-state-pill {
  min-width: 78px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.readiness-map-state-pill.is-solid { color: #118b4a; background: #e2f8eb; }
.readiness-map-state-pill.is-uncertain { color: #925800; background: #fff4e5; }
.readiness-map-state-pill.is-weak { color: #bd3039; background: #fdecee; }

.readiness-map-empty {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 10px;
  color: #71809a;
}

.readiness-map-empty strong { color: #1b2944; font-size: 1rem; }

.readiness-map-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 28px 28px;
  padding: 20px;
  border: 1px solid rgba(31, 91, 210, 0.16);
  border-radius: 10px;
  background: #f4f7ff;
}

.readiness-map-next > div { display: grid; gap: 6px; min-width: 0; }
.readiness-map-next strong { color: #18336d; font-size: 1.25rem; font-weight: 600; }
.readiness-map-next small { color: #687897; font-size: 0.95rem; }
.readiness-map-practice { flex: 0 0 auto; min-height: 44px; padding: 0 20px; white-space: nowrap; }

@media (max-width: 600px) {
  .readiness-map-page { width: 100%; padding-top: 8px; }
  .readiness-map-header { align-items: flex-start; flex-direction: column; padding: 22px 20px; }
  .readiness-map-score { padding: 34px 20px 24px; }
  .readiness-map-distribution { margin: 0 20px; }
  .readiness-map-legend { padding: 13px 20px 28px; }
  .readiness-map-elements { padding: 0 20px 24px; }
  .readiness-map-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; min-height: 64px; padding: 11px 12px; }
  .readiness-map-row > span { display: none; }
  .readiness-map-next { align-items: stretch; flex-direction: column; margin: 0 20px 20px; padding: 18px; }
  .readiness-map-practice { width: 100%; }
}

.statistics-checkin-section {
  display: grid;
  gap: 20px;
}

.statistics-checkin-heading {
  display: grid;
  gap: 12px;
}

.statistics-checkin-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.38rem, 5.1vw, 3.91rem);
  line-height: 0.95;
}

.statistics-checkin-heading p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.7vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
}

.statistics-checkin-heading strong {
  color: #0a67d1;
  font-weight: 900;
}

.statistics-knowledge-map-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0a67d1;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: inherit;
  text-align: left;
}

.statistics-knowledge-map-trigger:hover,
.statistics-knowledge-map-trigger:focus-visible {
  color: #084d9c;
}

.statistics-knowledge-map-trigger:focus-visible {
  outline: 3px solid rgba(10, 103, 209, 0.18);
  outline-offset: 3px;
  border-radius: 2px;
}

.statistics-knowledge-map-sheet {
  gap: 20px;
}

.statistics-knowledge-map-definitions {
  display: grid;
  gap: 14px;
}

.statistics-knowledge-map-definitions article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(167, 203, 223, 0.78);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.74);
}

.statistics-knowledge-map-definitions span {
  color: #0a3c67;
  font-weight: 900;
}

.statistics-knowledge-map-definitions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

.statistics-checkin-progress-card,
.statistics-checkin-metric-card,
.statistics-checkin-next-card {
  border: 1px solid rgba(167, 203, 223, 0.82);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(26, 63, 117, 0.08);
}

.statistics-checkin-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.82fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-height: 178px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 5px;
}

.statistics-checkin-progress-main {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
  min-width: 0;
}

.statistics-checkin-map-icon,
.statistics-checkin-small-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.statistics-checkin-map-icon {
  width: 86px;
  height: 86px;
  border: 2px solid rgba(76, 130, 255, 0.28);
  border-radius: 8px;
  color: #0a67d1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 45%, rgba(237, 246, 255, 0.94) 46%, rgba(237, 246, 255, 0.94) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 12px 28px rgba(10, 103, 209, 0.1);
}

.statistics-checkin-map-icon svg {
  width: 42px;
  height: 42px;
}

.statistics-checkin-progress-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.statistics-checkin-progress-copy > strong {
  color: var(--ink);
  font-size: clamp(2.55rem, 4.76vw, 3.7rem);
  font-weight: 900;
  line-height: 0.88;
}

.statistics-checkin-progress-copy > span {
  color: var(--ink);
  font-size: clamp(1rem, 1.79vw, 1.46rem);
  font-weight: 900;
  line-height: 1.12;
}

.statistics-checkin-progress-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 800;
}

.statistics-checkin-progress-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  color: #0a67d1;
  background: #e2f1ff;
  font-weight: 900;
}

.statistics-checkin-progress-note em {
  font-style: normal;
}

.statistics-checkin-progress-visual {
  display: grid;
  grid-template-columns: 112px minmax(88px, 0.42fr) minmax(128px, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding-left: clamp(18px, 3vw, 30px);
  border-left: 1px solid rgba(167, 203, 223, 0.78);
}

.statistics-checkin-ring {
  display: block;
  width: 112px;
  height: 112px;
  overflow: visible;
}

.statistics-checkin-ring-track,
.statistics-checkin-ring-value {
  fill: none;
  stroke-linecap: round;
  stroke-width: 9;
}

.statistics-checkin-ring-track {
  stroke: #e3f0fd;
}

.statistics-checkin-ring-value {
  stroke: #0a67d1;
}

.statistics-checkin-ring-score,
.statistics-checkin-ring-total {
  fill: var(--ink);
  font-weight: 900;
  text-anchor: middle;
}

.statistics-checkin-ring-score {
  font-size: 19px;
}

.statistics-checkin-ring-total {
  fill: var(--muted);
  font-size: 12px;
}

.statistics-checkin-progress-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.statistics-checkin-progress-label strong {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 900;
}

.statistics-checkin-sparkline {
  display: block;
  width: 100%;
  min-width: 128px;
  overflow: visible;
}

.statistics-checkin-sparkline-area {
  fill: url(#statistics-checkin-sparkline-area);
}

.statistics-checkin-sparkline-line {
  fill: none;
  stroke: #0a67d1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.statistics-checkin-sparkline circle {
  fill: #0a67d1;
  stroke: #0a67d1;
  stroke-width: 2;
}

.statistics-checkin-sparkline-last {
  fill: #dff0ff;
  stroke-width: 3;
}

.statistics-checkin-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.44fr);
  gap: 18px;
  align-items: stretch;
}

.statistics-checkin-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.statistics-checkin-metric-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 22px;
  border-radius: 5px;
}

.statistics-checkin-metric-card > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.statistics-checkin-metric-card strong {
  color: var(--ink);
  font-size: clamp(1.7rem, 2.98vw, 2.42rem);
  font-weight: 900;
  line-height: 0.92;
}

.statistics-checkin-comfort-card strong {
  font-weight: 800;
}

.statistics-checkin-metric-card > div > span {
  color: var(--ink);
  font-size: clamp(0.83rem, 1.28vw, 0.99rem);
  font-weight: 900;
  line-height: 1.12;
}

.statistics-checkin-comfort-card > div > span {
  font-weight: 700;
}

.statistics-checkin-metric-card em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.statistics-checkin-comfort-card em {
  font-weight: 700;
}

.statistics-checkin-metric-card em svg {
  width: 16px;
  height: 16px;
}

.statistics-checkin-small-icon {
  width: 58px;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.statistics-checkin-small-icon svg {
  width: 30px;
  height: 30px;
}

.statistics-checkin-small-icon-blue {
  color: #0a67d1;
  border-color: rgba(76, 130, 255, 0.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 43%, rgba(233, 244, 255, 0.96) 44%, rgba(233, 244, 255, 0.96) 100%);
  box-shadow: 0 10px 22px rgba(10, 103, 209, 0.08);
}

.statistics-checkin-small-icon-green {
  color: #0b8b66;
  border-color: rgba(83, 201, 151, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 43%, rgba(233, 250, 243, 0.96) 44%, rgba(233, 250, 243, 0.96) 100%);
  box-shadow: 0 10px 22px rgba(11, 139, 102, 0.08);
}

.statistics-checkin-next-card {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 178px;
  padding: 22px;
  border-radius: 5px;
}

.statistics-checkin-next-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(10, 103, 209, 0.28);
  border-radius: 8px;
  color: #0a67d1;
  background: #ffffff;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.statistics-checkin-next-step svg {
  width: 15px;
  height: 15px;
}

.statistics-checkin-next-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.statistics-checkin-next-body > div {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.statistics-checkin-next-body strong {
  color: var(--ink);
  font-size: clamp(0.99rem, 1.53vw, 1.21rem);
  font-weight: 900;
  line-height: 1.1;
}

.statistics-checkin-next-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.28;
}

.statistics-checkin-review-button {
  width: fit-content;
  min-height: 46px;
  margin-top: 4px;
  padding: 0 20px;
  border-radius: 3px;
  gap: 10px;
  font-size: 0.83rem;
}

.statistics-now-section {
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
}

.statistics-now-heading {
  display: grid;
  gap: 10px;
}

.statistics-now-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.95;
}

.statistics-now-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
}

.statistics-now-hero {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(220px, 280px);
  gap: 26px;
  align-items: center;
  min-height: 168px;
  padding: 26px 32px;
  border: 1px solid rgba(167, 203, 223, 0.82);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 255, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(26, 63, 117, 0.08);
  overflow: hidden;
}

.statistics-now-hero::after {
  position: absolute;
  right: 260px;
  bottom: -22px;
  width: 360px;
  height: 112px;
  border-radius: 15% 15% 0 0;
  border-top: 28px solid rgba(10, 103, 209, 0.04);
  content: "";
  transform: rotate(-9deg);
}

.statistics-now-hero-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 2px solid #b8ccff;
  border-radius: 8px;
  color: #4c82ff;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(238, 245, 255, 0.95) 43%, rgba(238, 245, 255, 0.95) 100%);
  box-shadow: 0 16px 36px rgba(10, 103, 209, 0.12);
}

.statistics-now-hero-icon svg {
  width: 50px;
  height: 50px;
}

.statistics-now-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.statistics-now-hero-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.statistics-now-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  line-height: 1.35;
}

.statistics-now-hero-copy strong {
  display: inline-block;
  margin: 0 0.1em;
  color: #0a67d1;
  font-weight: 900;
}

.statistics-now-hero-progress {
  display: grid;
  grid-template-columns: minmax(160px, 340px) auto auto;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.statistics-now-progress-bar {
  background: linear-gradient(135deg, #0a67d1 0%, #4c82ff 100%);
}

.statistics-now-trend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  color: #0a67d1;
  background: #e3f1ff;
}

.statistics-now-trend-icon svg {
  width: 20px;
  height: 20px;
}

.statistics-now-start-button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 326px);
  align-items: center;
  min-height: 76px;
  padding: 0 22px;
  border-radius: 5px;
  gap: 16px;
  line-height: 1.15;
  text-align: left;
  box-shadow: 0 18px 34px rgba(10, 103, 209, 0.22);
}

.statistics-now-start-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.statistics-now-start-icon svg {
  width: 24px;
  height: 24px;
}

.statistics-now-start-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.statistics-now-start-copy strong,
.statistics-now-start-copy small {
  color: inherit;
}

.statistics-now-start-copy strong {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  font-weight: 900;
  line-height: 1.05;
}

.statistics-now-start-copy small {
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.15;
  opacity: 0.9;
}

.statistics-now-start-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.15rem;
  font-weight: 900;
}

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

.statistics-now-metric-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 152px;
  padding: 24px 28px;
  border: 1px solid rgba(167, 203, 223, 0.78);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(26, 63, 117, 0.08);
}

.statistics-now-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid transparent;
  border-radius: 8px;
  flex: 0 0 auto;
}

.statistics-now-metric-icon svg {
  width: 38px;
  height: 38px;
}

.statistics-now-metric-card-orange .statistics-now-metric-icon {
  color: #e65f0a;
  border-color: #ffd8c1;
  background: #fff0e8;
}

.statistics-now-metric-card-gold .statistics-now-metric-icon {
  color: #d49a00;
  border-color: #ffeab0;
  background: #fff5d9;
}

.statistics-now-metric-card-blue .statistics-now-metric-icon {
  color: #4c82ff;
  border-color: #cfe0ff;
  background: #eef5ff;
}

.statistics-now-metric-card-green .statistics-now-metric-icon {
  color: #12906d;
  border-color: #c9f3e4;
  background: #e8faf3;
}

.statistics-now-metric-card-purple .statistics-now-metric-icon {
  color: #8f58e8;
  border-color: #e0d3ff;
  background: #f2ebff;
}

.statistics-now-metric-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.statistics-now-metric-copy strong {
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 900;
  line-height: 0.95;
}

.statistics-now-metric-copy > span:not(.statistics-now-metric-badge) {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.12;
}

.statistics-now-metric-copy em {
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.statistics-now-metric-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: #eef5ff;
  color: #4c82ff;
  font-size: 0.84rem;
  font-weight: 900;
}

.statistics-now-metric-card-orange .statistics-now-metric-badge {
  color: #d45609;
  background: #fff0e8;
}

.statistics-now-metric-card-gold .statistics-now-metric-badge {
  color: #c78a00;
  background: #fff5d9;
}

.statistics-now-metric-card-green .statistics-now-metric-badge {
  color: #12906d;
  background: #e8faf3;
}

.statistics-now-metric-card-purple .statistics-now-metric-badge {
  color: #8f58e8;
  background: #f2ebff;
}

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

.stat {
  padding: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.statistics-achievement-shell {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.statistics-class-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.statistics-class-card {
  gap: 14px;
}

.statistics-class-header,
.statistics-meter-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.statistics-class-copy {
  display: grid;
  gap: 6px;
}

.statistics-meter {
  display: grid;
  gap: 8px;
}

.statistics-meter-copy {
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.statistics-insights-card {
  gap: 24px;
  padding: clamp(28px, 4vw, 54px);
}

.statistics-insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.statistics-insights-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--ink);
  background: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 900;
}

.statistics-insights-chart {
  position: relative;
  min-height: clamp(300px, 36vw, 430px);
  margin-top: 8px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(167, 203, 223, 0.82);
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% 16%, rgba(20, 206, 20, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 42px rgba(26, 63, 117, 0.08);
}

.statistics-insights-canvas-wrap {
  position: relative;
  height: clamp(250px, 31vw, 350px);
}

.statistics-insights-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.statistics-insights-callout {
  position: absolute;
  right: clamp(22px, 4vw, 46px);
  top: clamp(22px, 4vw, 42px);
  display: grid;
  gap: 2px;
  min-width: 116px;
  padding: 14px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(26, 63, 117, 0.1);
  text-align: center;
}

.statistics-insights-callout span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.statistics-insights-callout strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.statistics-insights-delta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.statistics-insights-fallback {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.statistics-insights-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.statistics-insights-metric {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 160px;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: #ffffff;
  text-align: center;
}

.statistics-insights-metric strong {
  color: #143c76;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
}

.statistics-insights-metric span {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.4;
}

.statistics-insights-metric .statistics-insights-improvement {
  color: var(--success);
}

.statistics-topic-card {
  gap: 18px;
}

.statistics-topic-chart {
  display: grid;
  gap: 16px;
}

.statistics-topic-chart > input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.statistics-topic-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  background: #ffffff;
}

.statistics-topic-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 12px 18px;
  color: #667085;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  border-right: 1px solid #e8edf5;
}

.statistics-topic-tab:last-child {
  border-right: 0;
}

#statistics-topic-module:checked ~ .statistics-topic-tabs .statistics-topic-tab-module,
#statistics-topic-exam-weight:checked ~ .statistics-topic-tabs .statistics-topic-tab-examWeight {
  background: #0c2abf;
  color: #ffffff;
  box-shadow: none;
}

.statistics-topic-panel {
  display: none;
}

#statistics-topic-module:checked ~ .statistics-topic-panels .statistics-topic-panel-module,
#statistics-topic-exam-weight:checked ~ .statistics-topic-panels .statistics-topic-panel-examWeight {
  display: block;
}

.statistics-topic-table-scroll {
  overflow-x: auto;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
}

.statistics-topic-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #344054;
}

.statistics-topic-table th,
.statistics-topic-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f6;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.statistics-topic-table thead th {
  background: #f8fafc;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.statistics-topic-table thead th:first-child {
  text-align: left;
}

.statistics-topic-table tbody th {
  text-align: left;
  width: 42%;
  color: #1f2937;
  font-weight: 700;
}

.statistics-topic-link {
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 42, 191, 0.22);
}

.statistics-topic-link:hover,
.statistics-topic-link:focus-visible {
  color: #0c2abf;
  border-bottom-color: currentColor;
}

.statistics-topic-table tbody tr:last-child th,
.statistics-topic-table tbody tr:last-child td {
  border-bottom: 0;
}

.statistics-topic-ready {
  color: #168b4a;
}

.statistics-topic-uncertain {
  color: #a46a00;
}

.statistics-topic-weak {
  color: #b42318;
}

.statistics-topic-ready::before,
.statistics-topic-uncertain::before,
.statistics-topic-weak::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.statistics-topic-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  color: #667085;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
}

.statistics-topic-note span {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: #f3a620;
  flex: 0 0 auto;
}

.statistics-topic-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #ffffff;
}

.statistics-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.statistics-timeline-section {
  gap: 16px;
}

.statistics-timeline-section p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.statistics-timeline-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.statistics-timeline-summary-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.statistics-timeline-summary-band {
  min-height: 36px;
  padding: 10px 14px;
  color: #667085;
  background: #f8fafc;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.statistics-timeline-summary-card-blue .statistics-timeline-summary-band {
  background: #f8fafc;
}

.statistics-timeline-summary-card-purple .statistics-timeline-summary-band {
  background: #f8fafc;
}

.statistics-timeline-summary-card-green .statistics-timeline-summary-band {
  background: #f8fafc;
}

.statistics-timeline-summary-card-orange .statistics-timeline-summary-band {
  background: #f8fafc;
}

.statistics-timeline-summary-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.statistics-timeline-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e8edf5;
  border-radius: 6px;
  flex: 0 0 auto;
  box-shadow: none;
}

.statistics-timeline-summary-icon svg {
  width: 22px;
  height: 22px;
}

.statistics-timeline-summary-icon-blue {
  color: #0c2abf;
  background: #f5f8ff;
}

.statistics-timeline-summary-icon-purple {
  color: #0b1f4d;
  background: #f5f8ff;
}

.statistics-timeline-summary-icon-green {
  color: #20c46b;
  background: #effaf3;
}

.statistics-timeline-summary-icon-orange {
  color: #a46a00;
  background: #fff7e8;
}

.statistics-timeline-summary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.statistics-timeline-summary-copy em {
  color: #667085;
  font-size: 0.79rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.statistics-timeline-summary-copy strong {
  color: #1f2937;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}

.statistics-timeline-chart-shell {
  padding: 20px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.statistics-timeline-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.statistics-timeline-chart-header div {
  display: grid;
  gap: 3px;
}

.statistics-timeline-chart-header strong {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 800;
}

.statistics-timeline-chart-header span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.statistics-timeline-chart {
  display: block;
  width: 100%;
  min-height: 240px;
  overflow: visible;
}

.statistics-timeline-level-line text {
  fill: #667085;
  font-size: 11px;
  font-weight: 700;
}

.statistics-timeline-level-line-green text {
  fill: #667085;
}

.statistics-timeline-level-line line {
  stroke: #e8edf5;
  stroke-dasharray: 3 3;
  stroke-width: 1;
}

.statistics-timeline-level-line-green line {
  stroke: #e8edf5;
}

.statistics-timeline-chart-area {
  fill: url(#statistics-timeline-area);
}

.statistics-timeline-chart-line {
  fill: none;
  stroke: #0c2abf;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.statistics-timeline-chart-point {
  cursor: pointer;
}

.statistics-timeline-chart-point:focus {
  outline: none;
}

.statistics-timeline-chart-point:focus-visible circle:last-child {
  stroke: #0c2abf;
  stroke-width: 6;
}

.statistics-timeline-chart-point circle {
  fill: #0c2abf;
  stroke: #ffffff;
  stroke-width: 3;
}

.statistics-timeline-chart-point .statistics-timeline-chart-hit-area {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
}

.statistics-timeline-chart-point-active circle:last-child {
  fill: #20c46b;
  stroke: #effaf3;
  stroke-width: 5;
}

.statistics-timeline-chart-point text {
  fill: #1f2937;
  font-size: 14px;
  font-weight: 800;
  text-anchor: middle;
}

.statistics-timeline-chart-point-active text {
  fill: #168b4a;
}

.statistics-timeline-chart-label {
  fill: #667085;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.statistics-timeline-breakout rect {
  fill: #ffffff;
  stroke: #d8dee8;
}

.statistics-timeline-breakout text {
  text-anchor: middle;
}

.statistics-timeline-breakout-label {
  fill: #168b4a;
  font-size: 11px;
  font-weight: 800;
}

.statistics-timeline-breakout-value {
  fill: #1f2937;
  font-size: 13px;
  font-weight: 800;
}

.statistics-timeline-chart-empty {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #ffffff;
}

.statistics-saved-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.statistics-saved-summary-section {
  gap: 18px;
}

.statistics-saved-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.statistics-saved-summary-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 134px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
}

.statistics-saved-summary-card-link:hover,
.statistics-saved-summary-card-link:focus-visible {
  border-color: var(--border-strong);
  box-shadow: 0 18px 38px rgba(26, 63, 117, 0.1);
  transform: translateY(-1px);
}

.statistics-saved-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 4px;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(26, 63, 117, 0.06);
}

.statistics-saved-summary-icon svg {
  width: 30px;
  height: 30px;
}

.statistics-saved-summary-icon-blue {
  color: #126df2;
  border-color: rgba(76, 130, 255, 0.12);
  background: linear-gradient(145deg, #f9fcff 0%, #e9f3ff 100%);
}

.statistics-saved-summary-icon-gold {
  color: #e0a000;
  border-color: rgba(224, 160, 0, 0.12);
  background: linear-gradient(145deg, #fffdf5 0%, #fff6dd 100%);
}

.statistics-saved-summary-icon-green {
  color: #2fb85b;
  border-color: rgba(47, 184, 91, 0.14);
  background: linear-gradient(145deg, #f9fffb 0%, #e7f8ee 100%);
}

.statistics-saved-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.statistics-saved-summary-copy strong {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 900;
  line-height: 0.95;
}

.statistics-saved-summary-label {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.statistics-saved-card {
  gap: 14px;
}

.statistics-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.statistics-saved-list {
  display: grid;
  gap: 14px;
}

.statistics-saved-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.statistics-saved-copy,
.statistics-saved-empty {
  display: grid;
  gap: 6px;
}

.statistics-saved-copy {
  flex: 1;
}

.statistics-saved-empty {
  margin-top: 6px;
}

.statistics-timeline-card {
  gap: 12px;
  min-height: 0;
  padding: 22px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(26, 63, 117, 0.07);
}

.statistics-timeline-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.statistics-timeline-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: #e8f3ff;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 900;
}

.statistics-timeline-date-pill {
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  color: #0a67d1;
  background: #e6f2ff;
  font-size: 0.9rem;
}

.statistics-timeline-date-pill svg {
  width: 17px;
  height: 17px;
}

.statistics-timeline-card-peak {
  border-color: rgba(47, 184, 91, 0.62);
  background: linear-gradient(180deg, #fbfffc 0%, #ffffff 100%);
  box-shadow: 0 18px 38px rgba(47, 184, 91, 0.12);
}

.statistics-timeline-card-peak .statistics-timeline-level {
  background: #e1f8e7;
  color: #1f8f3b;
}

.statistics-timeline-card-peak .statistics-timeline-date-pill {
  color: #1f8f3b;
  background: #e1f8e7;
}

.statistics-timeline-card-peak .statistics-timeline-bar {
  background: linear-gradient(135deg, #2fb85b 0%, #1f8f3b 100%);
}

.statistics-timeline-peak-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(47, 184, 91, 0.55);
  border-radius: 8px;
  background: #ffffff;
  color: #1f8f3b;
  font-size: 0.68rem;
  line-height: 1;
}

.statistics-timeline-score-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.statistics-timeline-score-line strong {
  color: var(--ink);
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.85;
}

.statistics-timeline-score-line span {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.statistics-timeline-tone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.statistics-timeline-tone-row > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #0a67d1;
}

.statistics-timeline-tone-row > span::before {
  width: 100%;
  height: 100%;
  background: currentColor;
  clip-path: polygon(8% 78%, 8% 46%, 25% 46%, 25% 78%, 39% 78%, 39% 30%, 56% 30%, 56% 78%, 70% 78%, 70% 10%, 87% 10%, 87% 78%);
  content: "";
}

.statistics-timeline-card-peak .statistics-timeline-tone-row > span {
  color: #2fb85b;
}

.statistics-timeline-card-peak .statistics-timeline-tone-row > span::before {
  clip-path: polygon(50% 4%, 61% 36%, 95% 36%, 68% 56%, 79% 90%, 50% 70%, 21% 90%, 32% 56%, 5% 36%, 39% 36%);
}

.statistics-timeline-tone-row strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.statistics-timeline-tone {
  color: var(--ink);
  font-weight: 900;
}

.statistics-timeline-next {
  color: var(--accent-strong);
  font-size: 1.02rem;
  font-weight: 900;
}

.statistics-timeline-card-peak .statistics-timeline-next {
  color: #1f8f3b;
}

.statistics-timeline-bar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.statistics-timeline-card-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
}

.statistics-timeline-card-foot > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid #0a67d1;
  border-radius: 8px;
  flex: 0 0 auto;
}

.statistics-timeline-card-foot > span:first-child::after {
  width: 4px;
  height: 4px;
  border-radius: 8px;
  background: #0a67d1;
  content: "";
}

.statistics-timeline-card-foot-quiz {
  color: var(--ink);
}

.statistics-timeline-card-foot-quiz > span:first-child {
  border-color: #2fb85b;
  background: #2fb85b;
}

.statistics-timeline-card-foot-quiz > span:first-child::after {
  width: 8px;
  height: 8px;
  background: #ffffff;
  clip-path: polygon(45% 0, 100% 55%, 68% 55%, 68% 100%, 32% 100%, 32% 55%, 0 55%);
}

.footer-note {
  margin-top: 20px;
  font-size: 0.9rem;
}

.stack-form,
.flush-stack {
  padding: 0;
}

.stack-form {
  margin-top: 22px;
}

.section-calendar-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-calendar-type-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-calendar-type-pills .choice-chip-label {
  min-width: 92px;
}

.section-calendar-event-card {
  gap: 14px;
}

.section-calendar-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.section-calendar-event-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.section-calendar-status-button {
  flex: 0 0 auto;
  min-width: 184px;
}

.section-calendar-status-button.is-confirmed {
  border-color: rgba(144, 217, 141, 0.95);
  color: #167a1a;
  background: rgba(240, 255, 241, 0.98);
}

.section-calendar-status-button.is-likely_incorrect {
  border-color: rgba(224, 167, 167, 0.95);
  color: #a61d1d;
  background: rgba(255, 243, 243, 0.98);
}

.section-calendar-status-button.is-unconfirmed {
  border-color: rgba(167, 203, 223, 0.95);
  color: var(--accent-strong);
  background: rgba(243, 251, 255, 0.98);
}

.section-calendar-status-sheet {
  display: grid;
  gap: 18px;
}

.section-calendar-feedback-actions {
  margin-top: 0;
}

.section-calendar-event-details {
  display: flex;
  gap: 12px;
}

.section-calendar-event-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
}

.section-calendar-event-summary::-webkit-details-marker {
  display: none;
}

.section-calendar-event-summary::after {
  color: var(--muted);
  content: "+";
  font-weight: 700;
}

.section-calendar-event-details[open] .section-calendar-event-summary::after {
  content: "-";
}

.section-calendar-event-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.section-calendar-status-chip,
.section-calendar-outcome-chip {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.section-calendar-status-chip.is-confirmed,
.section-calendar-outcome-chip.is-saved {
  background: rgba(231, 255, 223, 0.72);
  border-color: rgba(70, 153, 61, 0.28);
  color: #1f7a2f;
}

.section-calendar-status-chip.is-incorrect,
.section-calendar-status-chip.is-likely_incorrect,
.section-calendar-outcome-chip.is-needed {
  background: rgba(255, 241, 214, 0.7);
  border-color: rgba(203, 127, 27, 0.28);
  color: #9a5b00;
}

.section-calendar-event-expanded {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.section-calendar-status-inline,
.assessment-outcome-inline {
  display: grid;
  gap: 10px;
}

.assessment-outcome-inline {
  background: transparent;
}

.assessment-outcome-form {
  display: grid;
  gap: 12px;
}

.assessment-outcome-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

.assessment-outcome-textarea:focus {
  outline: 3px solid rgba(36, 123, 194, 0.18);
  border-color: rgba(36, 123, 194, 0.46);
}

.section-calendar-grid-panel {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 32px -12px rgba(0, 0, 0, 0.1);
  padding: clamp(28px, 4vw, 44px);
}

.section-calendar-header {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-calendar-title {
  color: #1d1d1f;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.section-calendar-header p {
  margin: 0;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.35;
}

.section-calendar-shell {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  color: #1d1d1f;
  overflow: visible;
}

.section-calendar-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 0;
}

.section-calendar-toolbar-primary {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.section-calendar-month-nav {
  display: flex;
  gap: 4px;
}

.section-calendar-nav-button,
.section-calendar-today-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid transparent;
  color: #6e6e73;
  display: inline-flex;
  font-weight: 590;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  transition: background 120ms ease, transform 100ms ease;
}

.section-calendar-nav-button {
  border-radius: 9px;
  font-size: 2rem;
  line-height: 1;
  width: 40px;
}

.section-calendar-nav-button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.section-calendar-today-button {
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #0071e3;
  font-size: 1.1rem;
  font-weight: 650;
  min-width: 118px;
  padding: 0 24px;
}

.section-calendar-today-button:hover {
  background: rgba(0, 113, 227, 0.06);
}

.section-calendar-month-label {
  color: #1d1d1f;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  min-width: 0;
}

.section-calendar-weekdays,
.section-calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.section-calendar-grid-shell {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

.section-calendar-weekdays {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #86868b;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.section-calendar-weekdays span {
  padding: 14px 0;
}

.section-calendar-month-grid {
  background: rgba(0, 0, 0, 0.08);
  gap: 1px;
  overflow: hidden;
}

.section-calendar-day {
  background: #ffffff;
  border: 0;
  min-height: 126px;
  position: relative;
}

.section-calendar-day:nth-child(7n) {
  border-right: 0;
}

.section-calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.section-calendar-day-summary {
  cursor: pointer;
  display: grid;
  gap: 8px;
  height: 100%;
  list-style: none;
  min-height: 126px;
  padding: 22px 18px 12px;
  transition: background 120ms ease;
}

.section-calendar-day-summary:hover {
  background: #f5f5f7;
}

.section-calendar-day-summary::-webkit-details-marker {
  display: none;
}

.section-calendar-day-number {
  align-items: center;
  color: #1d1d1f;
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 625;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.section-calendar-day.is-outside-month .section-calendar-day-number {
  color: #86868b;
}

.section-calendar-day.is-today .section-calendar-day-number {
  background: #ff3b30;
  border-radius: 999px;
  color: #ffffff;
}

.section-calendar-day-events {
  align-content: start;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.section-calendar-event-pill,
.section-calendar-more-events {
  align-items: center;
  color: #1d1d1f;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 625;
  gap: 7px;
  min-width: 0;
}

.section-calendar-event-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-calendar-more-events {
  color: #6e6e73;
}

.section-calendar-event-dot {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.section-calendar-event-dot.is-test {
  background: #0071e3;
}

.section-calendar-event-dot.is-quiz {
  background: #34c759;
}

.section-calendar-event-dot.is-exam {
  background: #ff9f0a;
}

.section-calendar-day-popover {
  background: #ffffff;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  color: var(--text);
  display: grid;
  gap: 20px;
  left: 50%;
  max-height: calc(100vh - 32px);
  min-width: min(480px, calc(100vw - 32px));
  overflow: auto;
  padding: 28px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  z-index: 80;
}

.section-calendar-day:nth-child(7n) .section-calendar-day-popover,
.section-calendar-day:nth-child(7n - 1) .section-calendar-day-popover {
  left: 50%;
  width: min(560px, calc(100vw - 32px));
}

.section-calendar-day-form {
  display: grid;
  gap: 24px;
}

.section-calendar-popover-title {
  color: #1d1d1f;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-calendar-day-form .section-calendar-type-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.section-calendar-day-form .section-calendar-type-pills .choice-chip-label {
  justify-content: center;
  min-height: 58px;
  min-width: 0;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  width: 100%;
}

.section-calendar-day-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.section-calendar-day-actions .button-secondary {
  background: #ffffff;
}

.section-calendar-day-event-list {
  display: grid;
  gap: 18px;
}

.section-calendar-day-event-list .section-calendar-event-details {
  display: grid;
  gap: 22px;
}

.section-calendar-event-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.section-calendar-event-type-icon {
  align-items: center;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.section-calendar-event-type-icon svg {
  width: 26px;
  height: 26px;
}

.section-calendar-event-type-icon.is-test {
  background: #0071e3;
}

.section-calendar-event-type-icon.is-quiz {
  background: #34c759;
}

.section-calendar-event-type-icon.is-exam {
  background: #ff9f0a;
}

.section-calendar-event-title-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.section-calendar-event-title-block strong {
  color: #1d1d1f;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-calendar-event-title-block span {
  color: #6e6e73;
  font-size: 1.05rem;
  font-weight: 500;
}

.section-calendar-modal-close {
  align-items: center;
  background: #f2f2f3;
  border: 0;
  border-radius: 50%;
  color: #6e6e73;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.8rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.section-calendar-status-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  justify-self: start;
  min-height: 34px;
  padding: 0 16px;
  font-size: 0.98rem;
  font-weight: 750;
}

.section-calendar-status-chip.is-confirmed {
  background: rgba(220, 250, 229, 0.92);
  color: #248a3d;
}

.section-calendar-status-chip.is-unconfirmed,
.section-calendar-status-chip.is-likely_incorrect {
  background: rgba(255, 234, 186, 0.78);
  color: #a15c00;
}

.section-calendar-question {
  color: #1d1d1f;
  font-size: 1.12rem;
  font-weight: 750;
}

.section-calendar-icon-actions {
  display: flex;
  gap: 24px;
}

.section-calendar-icon-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6e6e73;
  cursor: pointer;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 0;
}

.section-calendar-icon-action > span {
  align-items: center;
  border: 2px solid rgba(0, 0, 0, 0.09);
  border-radius: 50%;
  display: inline-flex;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.section-calendar-icon-action svg {
  width: 29px;
  height: 29px;
}

.section-calendar-icon-action strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.section-calendar-icon-action.is-selected > span,
.section-calendar-icon-action.is-correct.is-selected > span,
.section-calendar-icon-action.is-yes.is-selected > span {
  background: #34c759;
  border-color: #34c759;
  color: #ffffff;
}

.section-calendar-icon-action.is-incorrect.is-selected > span,
.section-calendar-icon-action.is-no.is-selected > span {
  background: #ff3b30;
  border-color: #ff3b30;
  color: #ffffff;
}

.section-calendar-modal-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.section-calendar-remove-form {
  margin: 0;
}

.section-calendar-remove-button {
  background: transparent;
  border: 0;
  color: #ff3b30;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0;
}

.section-calendar-legend {
  align-items: center;
  color: #6e6e73;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 0;
}

.section-calendar-legend span {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  font-size: 1rem;
  font-weight: 625;
  min-height: 44px;
  padding: 0 18px;
}

@media (max-width: 760px) {
  .section-calendar-grid-panel {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .section-calendar-title {
    font-size: 2.25rem;
  }

  .section-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    justify-items: stretch;
    padding: 0;
  }

  .section-calendar-toolbar-primary {
    justify-content: space-between;
  }

  .section-calendar-month-label {
    order: -1;
    font-size: 1.6rem;
  }

  .section-calendar-today-button {
    align-self: flex-start;
  }

  .section-calendar-weekdays {
    display: none;
  }

  .section-calendar-month-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .section-calendar-day {
    border-right: 0;
    min-height: 0;
    overflow: visible;
  }

  .section-calendar-day.is-outside-month {
    display: none;
  }

  .section-calendar-day-summary {
    align-items: center;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 14px;
  }

  .section-calendar-day-summary::after {
    color: #0071e3;
    content: "Add event";
    font-size: 0.95rem;
    font-weight: 650;
    white-space: nowrap;
  }

  .section-calendar-day[open] .section-calendar-day-summary::after {
    color: #6e6e73;
    content: "Close";
  }

  .section-calendar-day-popover {
    border-radius: 22px;
    left: 50%;
    min-width: min(320px, calc(100vw - 32px));
    position: fixed;
    right: auto;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 24px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
  }

  .section-calendar-day:nth-child(7n) .section-calendar-day-popover,
  .section-calendar-day:nth-child(7n - 1) .section-calendar-day-popover {
    width: min(560px, calc(100vw - 32px));
  }

  .section-calendar-day-actions {
    justify-content: flex-end;
  }

  .section-calendar-legend {
    gap: 14px;
    padding: 20px 18px 24px;
  }
}

.assessment-outcome-actions {
  margin-top: 0;
}

.flush-stack {
  gap: 14px;
}

.accent-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.accent-band .stat:nth-child(2n) {
  background: linear-gradient(180deg, rgba(241, 255, 241, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.proof-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 44, 87, 0.06);
}

.hero-visual-panel {
  position: relative;
  overflow: hidden;
}

.hero-visual-panel::after {
  content: "";
  position: absolute;
  inset: auto -14% -18% auto;
  width: 240px;
  height: 240px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(27, 166, 166, 0.12) 0%, rgba(27, 166, 166, 0) 72%);
  pointer-events: none;
}

.section-calendar-assessment-link {
  pointer-events: auto;
  text-decoration: none;
}

.section-calendar-assessment-link:hover,
.section-calendar-assessment-link:focus-visible {
  text-decoration: none;
  filter: brightness(0.94);
}

.hero-visual-panel > * {
  position: relative;
  z-index: 1;
}

.hero-visual-stack {
  display: grid;
  gap: 14px;
}

.hero-preview-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
  min-width: 0;
}

.hero-preview-card.is-highlight {
  background: linear-gradient(180deg, rgba(241, 255, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.hero-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(223, 241, 255, 0.92);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-preview-title {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

.hero-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.98);
  color: var(--accent-strong);
  font-weight: 800;
}

.hero-preview-button.is-yes {
  border-color: rgba(27, 166, 166, 0.35);
  color: #0d8b0c;
}

.hero-preview-support {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.hero-preview-support-art {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-preview-support-art img,
.hero-preview-support-art svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.marketing-benefit-list,
.marketing-step-list {
  display: grid;
  gap: 14px;
}

.marketing-benefit-item,
.marketing-step-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
}

.marketing-benefit-item {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 14px;
}

.marketing-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(223, 241, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 800;
}

.marketing-step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
}

.marketing-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 106, 181, 0.14) 0%, rgba(27, 166, 166, 0.1) 100%);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-inline-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.marketing-inline-proof span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-strong);
  font-weight: 700;
}

.marketing-link-card {
  display: block;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.marketing-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 106, 181, 0.28);
  box-shadow: 0 18px 32px rgba(0, 77, 128, 0.1);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.faq-item[open] {
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
}

.tour-showcase {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tour-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 252, 255, 0.9) 100%);
  min-width: 0;
}

.tour-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 106, 181, 0.14) 0%, rgba(0, 106, 181, 0.04) 100%);
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
}

.tour-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.12;
}

.tour-card p {
  margin: 0;
  color: var(--muted);
}

.tour-art {
  min-height: 132px;
  border-radius: 5px;
  border: 1px solid rgba(0, 44, 87, 0.1);
  background: linear-gradient(180deg, rgba(244, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tour-note-stack,
.tour-element-stack {
  display: grid;
  gap: 10px;
  width: 100%;
}

.tour-note-sheet,
.tour-element-chip,
.tour-stage-chip {
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(0, 44, 87, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font-weight: 700;
}

.tour-note-sheet {
  min-height: 40px;
  position: relative;
}

.tour-note-sheet::before,
.tour-note-sheet::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: rgba(0, 106, 181, 0.22);
  border-radius: 8px;
}

.tour-note-sheet::before {
  top: 13px;
}

.tour-note-sheet::after {
  top: 23px;
}

.tour-arrow {
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.tour-element-chip,
.tour-stage-chip {
  padding: 10px 14px;
}

.tour-stage-chip {
  background: linear-gradient(180deg, rgba(241, 255, 241, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #0d5c0c;
}

.tour-yesno {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tour-yesno-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.98);
  font-weight: 700;
  color: var(--accent-strong);
}

.tour-yesno-button.is-yes {
  border-color: rgba(27, 166, 166, 0.35);
  color: #0d8b0c;
}

.tour-harbor-card {
  flex-direction: column;
  text-align: center;
}

.tour-harbor-card strong {
  font-size: 1rem;
}

.tour-harbor-art {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tour-harbor-art img,
.tour-harbor-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.tour-harbor-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 44, 87, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

.tour-final-stack {
  width: 100%;
  display: grid;
  gap: 12px;
}

.tour-final-meter {
  width: 100%;
  height: 14px;
  border-radius: 8px;
  background: rgba(0, 44, 87, 0.08);
  overflow: hidden;
}

.tour-final-meter::after {
  content: "";
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--highlight) 100%);
}

.tour-card-footer {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.class-landing-stack {
  display: grid;
  gap: 22px;
}

.class-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.class-hero-copy {
  display: grid;
  gap: 18px;
}

.class-subtle-line {
  color: var(--muted);
  font-size: 0.98rem;
}

.class-visual-stack {
  display: grid;
  gap: 14px;
}

.preview-element-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(223, 241, 255, 0.92);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-element-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-element-actions .button {
  justify-content: center;
}

.identity-strip {
  display: grid;
  gap: 8px;
  padding: 20px 24px;
}

.identity-strip strong {
  font-size: 1.2rem;
}

.identity-strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--primary);
}

.identity-separator {
  color: var(--muted);
}

.marketing-grid-3,
.marketing-grid-4,
.sample-element-grid,
.steps-grid,
.related-class-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
}

.marketing-grid-3,
.sample-element-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-grid-4,
.related-class-grid,
.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketing-section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.marketing-section-header h2 {
  margin: 0;
}

.marketing-section-header p {
  margin: 0;
  color: var(--muted);
}

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

.class-stat-card {
  padding: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.class-stat-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.topic-map {
  display: grid;
  gap: 12px;
}

.topic-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.topic-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.coverage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 44, 87, 0.12);
  background: rgba(223, 241, 255, 0.92);
  color: var(--accent-strong);
}

.coverage-pill-strong {
  background: rgba(241, 255, 241, 0.95);
  color: #0f7a11;
}

.coverage-pill-light {
  background: rgba(255, 247, 224, 0.95);
  color: #936100;
}

.struggle-flag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 106, 181, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.sample-element-card,
.step-card,
.related-class-card,
.pricing-card {
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 255, 0.92) 100%);
}

.sample-element-card ul,
.step-card p,
.related-class-card p,
.pricing-card p {
  margin: 10px 0 0;
}

.sample-element-card ul {
  padding-left: 18px;
}

.pricing-card strong {
  display: block;
  font-size: 2rem;
}

.pricing-card .inline-note {
  margin-top: 6px;
}

.billing-paywall-panel {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
}

.billing-paywall-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.88fr);
  width: 100%;
}

.billing-paywall-head {
  align-items: start;
  display: grid;
  gap: 14px;
  justify-items: start;
  text-align: left;
}

.billing-paywall-head > span,
.billing-paywall-plan-badge {
  align-items: center;
  background: rgba(18, 104, 216, 0.1);
  border-radius: 7px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 9px 14px;
  text-transform: uppercase;
}

.billing-paywall-head > span .billing-paywall-proof-icon {
  background: transparent;
  height: 16px;
  margin-right: 6px;
  width: 16px;
}

.billing-paywall-head h2 {
  font-size: clamp(3.2rem, 7vw, 5.55rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0;
  max-width: 640px;
}

.billing-paywall-head h2 span {
  display: block;
}

.billing-paywall-head p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.35;
  margin: 0;
  max-width: 520px;
}

.billing-paywall-head .billing-paywall-kicker {
  color: var(--accent-strong);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 660;
  max-width: none;
}

.billing-paywall-head em {
  color: var(--accent-strong);
  font-style: normal;
}

.billing-paywall-guarantee {
  background: rgba(18, 104, 216, 0.07);
  border: 1px solid rgba(18, 104, 216, 0.18);
  border-radius: 7px;
  color: var(--primary);
  display: grid;
  gap: 4px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  font-size: 1rem;
  line-height: 1.35;
  margin-top: 4px;
  max-width: 460px;
  padding: 16px 18px;
  text-align: left;
}

.billing-paywall-guarantee-icon,
.billing-paywall-plan-icon,
.billing-paywall-benefit-icon,
.billing-paywall-proof-icon {
  align-items: center;
  background: transparent;
  border-radius: 7px;
  color: var(--accent-strong);
  display: inline-flex;
  flex-shrink: 0;
  font-weight: 760;
  justify-content: center;
}

.billing-paywall-icon-image {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.billing-paywall-guarantee-icon {
  font-size: 1.25rem;
  height: 44px;
  width: 44px;
}

.billing-paywall-guarantee strong {
  color: var(--text);
  display: block;
  font-weight: 680;
}

.billing-paywall-guarantee p {
  margin: 2px 0 0;
}

.billing-paywall-benefits {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: grid;
  gap: 22px;
  margin-top: 12px;
  padding: clamp(22px, 3vw, 34px);
  width: 100%;
}

.billing-paywall-benefits h3 {
  align-items: center;
  color: var(--text);
  display: grid;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 660;
  gap: 18px;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
}

.billing-paywall-benefits h3::before,
.billing-paywall-benefits h3::after {
  border-top: 1px solid rgba(18, 104, 216, 0.3);
  content: "";
}

.billing-paywall-benefit-grid {
  display: grid;
  gap: 0 56px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-paywall-benefit {
  align-items: start;
  border-bottom: 1px solid rgba(190, 215, 238, 0.72);
  display: flex;
  gap: 14px;
  padding: 16px 0;
}

.billing-paywall-benefit-icon {
  height: 48px;
  width: 48px;
}

.billing-paywall-benefit strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.billing-paywall-benefit span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.billing-paywall-plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  width: 100%;
}

.billing-paywall-plan-card,
.billing-paywall-map-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
}

.billing-paywall-plan-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  position: relative;
}

.billing-paywall-plan-card.is-featured {
  border-color: var(--accent-strong);
  box-shadow: 0 20px 52px rgba(18, 104, 216, 0.12);
}

.billing-paywall-plan-card .billing-paywall-plan-badge {
  background: var(--accent-strong);
  color: #ffffff;
  left: 50%;
  position: absolute;
  top: -15px;
  transform: translateX(-50%);
}

.billing-paywall-plan-top {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 56px minmax(0, 1fr);
}

.billing-paywall-plan-icon {
  font-size: 1.35rem;
  height: 54px;
  width: 54px;
}

.billing-paywall-plan-card h3,
.billing-paywall-map-card h3 {
  color: var(--accent-strong);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

.billing-paywall-plan-card > p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.billing-paywall-price strong {
  color: var(--text);
  display: inline-block;
  font-size: clamp(2.8rem, 5vw, 4.15rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.billing-paywall-price span {
  color: var(--muted);
  font-size: 1.2rem;
  margin-left: 6px;
}

.billing-paywall-price-note {
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 660;
  margin-top: 4px;
}

.billing-paywall-rule {
  border-top: 1px solid var(--border);
  height: 1px;
  width: 100%;
}

.billing-paywall-plan-card ul,
.billing-paywall-map-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.billing-paywall-plan-card li,
.billing-paywall-map-card li {
  color: var(--primary);
  line-height: 1.35;
  padding-left: 32px;
  position: relative;
}

.billing-paywall-plan-card li::before,
.billing-paywall-map-card.is-with li::before {
  align-items: center;
  background: var(--accent-strong);
  border-radius: 999px;
  color: #ffffff;
  content: "✓";
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 760;
  height: 18px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 2px;
  width: 18px;
}

.billing-paywall-map-card.is-without li::before {
  align-items: center;
  background: rgba(238, 61, 83, 0.9);
  border-radius: 999px;
  color: #ffffff;
  content: "×";
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 760;
  height: 18px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 2px;
  width: 18px;
}

.billing-paywall-plan-card form {
  align-self: end;
  margin-top: 4px;
}

.billing-paywall-plan-card .button {
  font-size: 1.05rem;
  justify-content: center;
  width: 100%;
}

.billing-paywall-card-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  text-align: center;
}

.billing-paywall-card-note .billing-paywall-proof-icon {
  height: 16px;
  width: 16px;
}

.billing-paywall-proof-strip,
.billing-paywall-trust-strip {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 100%;
}

.billing-paywall-proof-strip {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-paywall-proof {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 18px 22px;
}

.billing-paywall-proof:not(:last-child) {
  border-right: 1px solid var(--border);
}

.billing-paywall-proof-icon {
  height: 42px;
  width: 42px;
}

.billing-paywall-proof strong {
  color: var(--text);
  display: block;
  font-size: 0.96rem;
  font-weight: 650;
  margin-bottom: 3px;
}

.billing-paywall-proof span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
}

.billing-paywall-trust-strip {
  border: 0;
  color: var(--muted);
  display: grid;
  gap: 18px;
  padding: 8px 12px 0;
  text-align: center;
}

.billing-paywall-trust-title {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 650;
  gap: 18px;
  grid-template-columns: minmax(56px, 1fr) auto minmax(56px, 1fr);
  justify-self: center;
  max-width: 560px;
  width: min(100%, 560px);
}

.billing-paywall-trust-title::before,
.billing-paywall-trust-title::after {
  border-top: 1px solid rgba(190, 215, 238, 0.82);
  content: "";
}

.billing-paywall-trust-items {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(28px, 6vw, 70px);
  justify-content: center;
}

.billing-paywall-trust-item {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 620;
  gap: 8px;
  white-space: nowrap;
}

.billing-paywall-trust-item svg,
.billing-paywall-trust-item img {
  color: var(--muted);
  height: 16px;
  stroke-width: 1.9;
  width: 16px;
}

.billing-paywall-trust-item img {
  display: block;
  object-fit: contain;
}

.billing-paywall-map-section {
  display: grid;
  gap: 22px;
  width: 100%;
}

.billing-paywall-map-section h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 660;
  letter-spacing: -0.025em;
  margin: 0;
  text-align: center;
}

.billing-paywall-map-grid {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
}

.billing-paywall-map-card {
  display: grid;
  gap: 16px;
  padding: 22px 26px;
}

.billing-paywall-map-card.is-with {
  background: rgba(241, 247, 255, 0.86);
  border-color: rgba(18, 104, 216, 0.22);
}

.billing-paywall-map-card.is-without {
  background: rgba(255, 246, 247, 0.84);
  border-color: rgba(238, 61, 83, 0.22);
}

.billing-paywall-vs {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-weight: 760;
  height: 56px;
  justify-content: center;
  justify-self: center;
  width: 56px;
}

.billing-continuation-page-shell {
  max-width: 620px;
}

.settings-page-stack.billing-plan-swap-page-shell {
  max-width: 1180px;
  padding-inline: 0;
  width: 100%;
}

.billing-plan-swap {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 28px;
  box-shadow: 0 32px 80px -42px rgba(7, 23, 52, 0.58);
  color: var(--hb-text);
  overflow: hidden;
}

.billing-plan-swap-header {
  background: linear-gradient(118deg, #0c1c3a 0%, #153f91 52%, #188b85 125%);
  color: #ffffff;
  padding: 26px 22px 30px;
}

.billing-plan-swap-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.billing-plan-swap-kicker {
  align-items: center;
  color: #c7f2df;
  display: inline-flex;
  font: 700 12px/1.2 var(--font-text);
  gap: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.billing-plan-swap-kicker svg {
  height: 17px;
  width: 17px;
}

.billing-plan-swap-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #66758d;
  display: inline-flex;
  flex: none;
  font: 300 30px/1 var(--font-text);
  height: 46px;
  justify-content: center;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
  width: 46px;
}

.billing-plan-swap-close:hover,
.billing-plan-swap-close:focus-visible {
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transform: translateY(-1px);
}

.billing-plan-swap-header h1 {
  color: #ffffff;
  font: 600 clamp(28px, 8vw, 40px)/1.08 var(--font-display);
  letter-spacing: -0.85px;
  margin: 0;
}

.billing-plan-swap-header > p {
  color: rgba(255, 255, 255, 0.8);
  font: 400 15px/1.5 var(--font-text);
  margin: 12px 0 0;
  max-width: 760px;
}

.billing-plan-swap-body {
  display: grid;
  gap: 20px;
  padding: 22px 18px 24px;
}

.billing-plan-swap-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.billing-plan-swap-card {
  background: var(--hb-card);
  border: 1px solid var(--hb-border2);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 22px 24px;
}

.billing-plan-swap-card.is-monthly {
  border: 2px solid #2761ef;
  box-shadow: 0 22px 46px -32px rgba(39, 97, 239, 0.72);
}

.billing-plan-swap-recommended {
  align-self: flex-start;
  background: #233ac6;
  border-radius: 999px;
  color: #ffffff;
  font: 700 12px/1.2 var(--font-text);
  margin-bottom: 20px;
  padding: 7px 16px;
}

.billing-plan-swap-name {
  color: var(--hb-text3);
  font: 700 12px/1.25 var(--font-text);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.billing-plan-swap-card.is-monthly .billing-plan-swap-name {
  color: #2456d7;
}

.billing-plan-swap-price {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.billing-plan-swap-price strong {
  color: var(--hb-text);
  font: 700 clamp(46px, 15vw, 62px)/0.95 var(--font-display);
  letter-spacing: -2px;
}

.billing-plan-swap-price span {
  color: var(--hb-text3);
  font: 500 17px/1 var(--font-text);
}

.billing-plan-swap-card > p {
  color: var(--hb-text2);
  font: 400 15px/1.45 var(--font-text);
  margin: 20px 0 22px;
}

.billing-plan-swap-features {
  display: grid;
  gap: 17px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.billing-plan-swap-features li {
  align-items: flex-start;
  color: var(--hb-text);
  display: grid;
  font: 500 15px/1.4 var(--font-text);
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr);
}

.billing-plan-swap-features li > span {
  align-items: center;
  background: #e4f6ee;
  border-radius: 999px;
  color: #0f7a53;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.billing-plan-swap-card form {
  margin: auto 0 0;
}

.billing-plan-swap-cta {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  font: 600 16px/1.2 var(--font-text);
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  width: 100%;
}

.billing-plan-swap-cta.is-primary {
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  border: 1px solid #2456d7;
  box-shadow: 0 16px 28px -16px rgba(26, 70, 194, 0.74);
  color: #ffffff;
}

.billing-plan-swap-cta.is-secondary {
  background: var(--hb-card);
  border: 2px solid #2761ef;
  color: #2456d7;
}

.billing-plan-swap-cta.is-current,
.billing-plan-swap-cta:disabled {
  background: var(--hb-subtle);
  border: 1px solid var(--hb-border2);
  box-shadow: none;
  color: var(--hb-text3);
  cursor: default;
}

.billing-plan-swap-footer {
  color: var(--hb-text3);
  font: 400 13px/1.4 var(--font-text);
  margin: 0;
  text-align: center;
}

@media (min-width: 840px) {
  .billing-plan-swap-header {
    padding: 38px 48px 42px;
  }

  .billing-plan-swap-topline {
    margin-bottom: 22px;
  }

  .billing-plan-swap-header > p {
    font-size: 17px;
  }

  .billing-plan-swap-body {
    gap: 24px;
    padding: 40px 48px 28px;
  }

  .billing-plan-swap-grid {
    align-items: stretch;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-plan-swap-card {
    padding: 38px 40px 34px;
  }

  .billing-plan-swap-features {
    gap: 18px;
  }
}

.billing-continuation {
  color: #1d1d1f;
  display: grid;
  gap: 16px;
  padding: 28px 0 72px;
}

.billing-continuation-header {
  display: grid;
  justify-items: center;
  padding: 0 24px 12px;
  text-align: center;
}

.billing-continuation-kicker,
.billing-continuation-plan-badge {
  align-items: center;
  background: #eaf2fe;
  border-radius: 999px;
  color: #0071e3;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0;
  padding: 6px 14px;
  text-transform: uppercase;
}

.billing-continuation-kicker svg {
  height: 14px;
  width: 14px;
}

.billing-continuation-ring {
  height: 104px;
  margin-top: 24px;
  position: relative;
  width: 104px;
}

.billing-continuation-ring > svg {
  height: 100%;
  transform: rotate(-90deg);
  width: 100%;
}

.billing-continuation-ring-track,
.billing-continuation-ring-value {
  fill: none;
  stroke-width: 9;
}

.billing-continuation-ring-track {
  stroke: #e5e5e7;
}

.billing-continuation-ring-value {
  stroke: #0b7bea;
  stroke-linecap: round;
}

.billing-continuation-ring > span {
  align-items: baseline;
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.billing-continuation-ring > span::before {
  content: "";
  height: 38%;
}

.billing-continuation-ring strong {
  font-size: 1.65rem;
  font-weight: 760;
  line-height: 1;
}

.billing-continuation-ring small {
  color: #6e6e73;
  font-size: 0.75rem;
  font-weight: 650;
}

.billing-continuation-ring-label {
  color: #86868b;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 10px 0 26px;
  text-transform: uppercase;
}

.billing-continuation-header h1 {
  color: #1d1d1f;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
  max-width: 490px;
}

.billing-continuation-plan {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 32px -16px rgba(0, 0, 0, 0.12);
  display: grid;
  padding: 34px 38px;
}

.billing-continuation-plan.is-annual {
  padding: 28px 30px;
}

.billing-continuation-plan h2 {
  color: #1d1d1f;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 18px;
}

.billing-continuation-plan-badge {
  background: rgba(0, 0, 0, 0.05);
  color: #6e6e73;
  justify-self: start;
  margin-bottom: 18px;
}

.billing-continuation-plan-badge.is-monthly {
  background: #eaf2fe;
  color: #0071e3;
}

.billing-continuation-price {
  align-items: baseline;
  display: flex;
  gap: 9px;
}

.billing-continuation-price strong {
  color: #1d1d1f;
  font-size: clamp(2.5rem, 9vw, 3.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.billing-continuation-price.is-annual strong {
  font-size: clamp(2rem, 7vw, 2.55rem);
}

.billing-continuation-price span {
  color: #6e6e73;
  font-size: 1rem;
  font-weight: 600;
}

.billing-continuation-plan > p {
  color: #6e6e73;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 14px 0 26px;
}

.billing-continuation-plan form {
  margin: 0;
}

.billing-continuation-cta {
  align-items: center;
  border-radius: 999px;
  display: flex;
  font-size: 1rem;
  font-weight: 720;
  justify-content: center;
  min-height: 56px;
  padding: 12px 20px;
  width: 100%;
}

.billing-continuation-cta.is-primary {
  background: #0878e8;
  border: 1px solid #0878e8;
  color: #ffffff;
}

.billing-continuation-cta.is-secondary {
  background: #ffffff;
  border: 2px solid #0878e8;
  color: #0878e8;
}

.billing-continuation-cta.is-current,
.billing-continuation-cta:disabled {
  background: #eef1f6;
  border-color: #d9e0eb;
  box-shadow: none;
  color: #73829a;
  cursor: default;
}

.billing-continuation-guarantee {
  align-items: center;
  color: #86868b;
  display: flex;
  font-size: 0.8rem;
  font-weight: 650;
  gap: 7px;
  justify-content: center;
  margin-top: 16px;
}

.billing-continuation-guarantee svg,
.billing-continuation-perks svg {
  height: 15px;
  width: 15px;
}

.billing-continuation-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.billing-continuation-perks span {
  align-items: center;
  background: #eaf2fe;
  border-radius: 999px;
  color: #0071e3;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 7px;
  padding: 7px 13px;
}

.billing-continuation-features {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding-top: 20px;
  text-align: center;
}

.billing-continuation-features > p {
  color: #86868b;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.billing-continuation-features > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.billing-continuation-features > div > span {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #6e6e73;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 650;
  gap: 8px;
  padding: 6px 14px 6px 6px;
}

.billing-continuation-features i {
  align-items: center;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.billing-continuation-features i svg {
  height: 14px;
  width: 14px;
}

.billing-continuation-features i.is-teal { background: #00a99d; }
.billing-continuation-features i.is-orange { background: #f58b00; }
.billing-continuation-features i.is-purple { background: #9d42d1; }
.billing-continuation-features i.is-indigo { background: #5552d9; }

.billing-continuation-unavailable {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 28px;
}

.billing-feature-gate-stage {
  align-items: center;
  display: grid;
  isolation: isolate;
  justify-items: center;
  min-height: min(760px, calc(100vh - 132px));
  overflow: hidden;
  padding: 40px 20px;
  position: relative;
}

.billing-feature-gate-preview {
  filter: blur(12px);
  inset: 10% 2%;
  opacity: 0.22;
  position: absolute;
  z-index: -1;
}

.billing-feature-gate-preview::before,
.billing-feature-gate-preview span {
  background: linear-gradient(110deg, #143a82, #1d5caa 58%, #12887e);
  border-radius: 28px;
  content: "";
  display: block;
  height: 126px;
  margin: 0 auto 22px;
  max-width: 920px;
}

.billing-feature-gate-preview span {
  background: #ffffff;
  border: 1px solid rgba(125, 144, 178, 0.24);
  height: 92px;
}

.billing-feature-gate {
  background: #ffffff;
  border: 1px solid rgba(198, 211, 226, 0.92);
  border-radius: 30px;
  box-shadow: 0 32px 80px rgba(7, 23, 52, 0.25);
  color: #0a1730;
  max-width: 660px;
  overflow: hidden;
  width: 100%;
}

.billing-feature-gate-header {
  background: linear-gradient(112deg, #102852 0%, #173f91 48%, #137f7f 100%);
  color: #ffffff;
  padding: 30px 40px 32px;
}

.billing-feature-gate-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.billing-feature-gate-kicker {
  align-items: center;
  color: #c7f2df;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 780;
  gap: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.billing-feature-gate-kicker svg {
  height: 18px;
  width: 18px;
}

.billing-feature-gate-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #5e6d87;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 300;
  height: 48px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 48px;
}

.billing-feature-gate-header h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 5vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
  max-width: 590px;
}

.billing-feature-gate-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 560px;
}

.billing-feature-gate-body {
  display: grid;
  gap: 18px;
  padding: 26px 40px 28px;
}

.billing-feature-gate-impact {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e1e7ef;
  border-radius: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 15px 18px;
}

.billing-feature-gate-impact > span {
  align-items: center;
  background: #e4f7ef;
  border-radius: 14px;
  color: #0b865b;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.billing-feature-gate-impact svg {
  height: 25px;
  width: 25px;
}

.billing-feature-gate-impact p {
  color: #61728f;
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0;
}

.billing-feature-gate-impact strong {
  color: #0a1730;
}

.billing-feature-gate-benefits {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.billing-feature-gate-benefits li {
  align-items: flex-start;
  color: #0a1730;
  display: flex;
  font-size: 0.98rem;
  font-weight: 590;
  gap: 14px;
  line-height: 1.35;
}

.billing-feature-gate-benefits li span {
  color: #0ba36b;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.billing-feature-gate-body form {
  margin: 0;
}

.billing-feature-gate-cta {
  align-items: center;
  background: linear-gradient(110deg, #2d62ee, #214bcf);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(36, 82, 211, 0.24);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 1.06rem;
  font-weight: 730;
  gap: 12px;
  justify-content: center;
  min-height: 58px;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.billing-feature-gate-later {
  color: #8290a9;
  font-weight: 670;
  justify-self: center;
  text-decoration: none;
}

.in-place-performance-paywall {
  background: transparent;
  border: 0;
  color: #0a1730;
  margin: auto;
  max-height: calc(100dvh - 32px);
  max-width: min(540px, calc(100vw - 32px));
  overflow: visible;
  padding: 0;
  width: 100%;
}

.in-place-performance-paywall::backdrop {
  backdrop-filter: grayscale(0.58) blur(2px);
  background: rgba(20, 29, 45, 0.48);
}

.in-place-performance-paywall-card {
  background: #ffffff;
  border: 1px solid rgba(198, 211, 226, 0.92);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(6, 20, 47, 0.34);
  display: grid;
  gap: 16px;
  padding: 34px;
  position: relative;
}

.in-place-performance-paywall-close {
  align-items: center;
  background: #f4f7fb;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  color: #60708a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.7rem;
  font-weight: 350;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 22px;
  top: 22px;
  width: 42px;
}

.in-place-performance-paywall-kicker {
  align-items: center;
  color: #2456d7;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 760;
  gap: 9px;
  letter-spacing: 0.12em;
  padding-right: 52px;
  text-transform: uppercase;
}

.in-place-performance-paywall-kicker svg {
  height: 17px;
  width: 17px;
}

.in-place-performance-paywall h2 {
  color: #0a1730;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 4px 0 0;
}

.in-place-performance-paywall-card > p {
  color: #657590;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.in-place-performance-paywall-price {
  align-items: baseline;
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.in-place-performance-paywall-price strong {
  color: #0a1730;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.in-place-performance-paywall-price span {
  color: #71809a;
  font-size: 0.95rem;
  font-weight: 620;
}

.in-place-performance-paywall form {
  margin: 2px 0 0;
}

.in-place-performance-paywall-cta {
  align-items: center;
  background: linear-gradient(110deg, #2d62ee, #214bcf);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(36, 82, 211, 0.24);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 1.04rem;
  font-weight: 740;
  gap: 12px;
  justify-content: center;
  min-height: 58px;
  padding: 15px 22px;
  width: 100%;
}

.in-place-performance-paywall-error {
  color: #b42318 !important;
  font-size: 0.9rem !important;
  font-weight: 650;
  text-align: center;
}

.in-place-performance-paywall-close:hover,
.in-place-performance-paywall-close:focus-visible {
  background: #eaf0f8;
  color: #173f91;
}

@media (max-width: 520px) {
  .in-place-performance-paywall {
    max-height: calc(100dvh - 20px);
    max-width: calc(100vw - 20px);
  }

  .in-place-performance-paywall-card {
    border-radius: 22px;
    gap: 14px;
    padding: 28px 22px 24px;
  }

  .in-place-performance-paywall-close {
    right: 16px;
    top: 16px;
  }

  .in-place-performance-paywall h2 {
    font-size: 1.72rem;
  }
}

.billing-feature-gate-close:hover,
.billing-feature-gate-later:hover {
  color: #234fcf;
}

@media (max-width: 520px) {
  .billing-continuation {
    padding-top: 18px;
  }

  .billing-continuation-header {
    padding-inline: 8px;
  }

  .billing-continuation-plan,
  .billing-continuation-plan.is-annual {
    padding: 26px 22px;
  }

  .billing-continuation-header h1 {
    font-size: 1.22rem;
  }

  .billing-feature-gate-stage {
    align-items: start;
    min-height: 0;
    padding: 18px 0 40px;
  }

  .billing-feature-gate {
    border-radius: 22px;
  }

  .billing-feature-gate-header {
    padding: 26px 24px 30px;
  }

  .billing-feature-gate-close {
    height: 42px;
    width: 42px;
  }

  .billing-feature-gate-header h1 {
    font-size: 1.9rem;
  }

  .billing-feature-gate-body {
    gap: 21px;
    padding: 26px 22px 30px;
  }

  .billing-feature-gate-impact {
    gap: 13px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 15px;
  }

  .billing-feature-gate-impact > span {
    height: 46px;
    width: 46px;
  }
}

.shell-settings .billing-manage-page-shell {
  max-width: 720px;
  padding-inline: 0;
}

.shell-authenticated.shell-settings .billing-manage-card {
  border: 1px solid var(--hb-border);
  border-radius: 28px;
  background: var(--hb-card);
  box-shadow: 0 28px 70px -46px rgba(16, 42, 90, 0.62);
  padding: clamp(22px, 5vw, 34px);
}

.billing-dashboard {
  color: var(--hb-text);
  display: grid;
  gap: 14px;
}

.billing-dashboard-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.billing-dashboard-eyebrow {
  color: var(--hb-accent);
  display: block;
  font: 700 12px/1.2 var(--font-text);
  letter-spacing: 1.25px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.billing-dashboard-header h1 {
  color: var(--hb-text);
  font: 600 clamp(28px, 8vw, 36px)/1.08 var(--font-display);
  letter-spacing: -0.75px;
}

.billing-dashboard-close {
  align-items: center;
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  color: var(--hb-text3);
  display: inline-flex;
  flex: none;
  font: 400 30px/1 var(--font-text);
  height: 44px;
  justify-content: center;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
  width: 44px;
}

.billing-dashboard-close:hover,
.billing-dashboard-close:focus-visible {
  background: var(--hb-hover);
  color: var(--hb-text);
  text-decoration: none;
  transform: translateY(-1px);
}

.billing-plan-summary {
  align-items: flex-start;
  background: var(--hb-subtle);
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  padding: 20px;
}

.billing-plan-summary h2 {
  color: var(--hb-text);
  font: 600 19px/1.25 var(--font-display);
  letter-spacing: -0.25px;
  margin: 0;
}

.billing-plan-summary > div > p {
  color: var(--hb-text3);
  font: 400 14px/1.4 var(--font-text);
  margin: 4px 0 0;
}

.billing-plan-price {
  align-items: baseline;
  color: var(--hb-text);
  display: flex;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
}

.billing-plan-price strong {
  font: 700 28px/1 var(--font-display);
  letter-spacing: -0.65px;
}

.billing-plan-price span {
  color: var(--hb-text3);
  font: 500 14px/1 var(--font-text);
}

.billing-recovery-alert {
  align-items: center;
  background: #fff9e8;
  border: 1px solid #e9c968;
  border-left: 5px solid #d49a00;
  border-radius: 16px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px 24px;
}

.billing-recovery-alert h2 {
  font-size: 1.12rem;
  margin: 0 0 6px;
}

.billing-recovery-alert p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

.billing-recovery-actions form {
  margin: 0;
}

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

.billing-dashboard-card {
  align-items: center;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  display: grid;
  gap: 13px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 90px;
  padding: 16px;
}

.billing-dashboard-card h3 {
  color: var(--hb-text);
  font: 600 13.5px/1.3 var(--font-text);
  letter-spacing: -0.12px;
  margin: 2px 0 0;
  min-width: 0;
}

.billing-dashboard-card div > span {
  color: var(--hb-text3);
  display: block;
  font: 700 10.5px/1.25 var(--font-text);
  letter-spacing: 0.85px;
  margin: 0;
  text-transform: uppercase;
}

.billing-dashboard-email {
  overflow-wrap: anywhere;
}

.billing-dashboard-icon {
  align-items: center;
  background: rgba(224, 239, 255, 0.82);
  border-radius: 14px;
  color: var(--hb-accent);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.billing-dashboard-icon.is-success {
  background: rgba(215, 250, 231, 0.82);
  color: #13a85f;
}

.billing-dashboard-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 22px;
}

.billing-dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.billing-dashboard-actions form {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}

.billing-dashboard-actions .button {
  justify-content: center;
  min-height: 48px;
  white-space: nowrap;
}

.billing-dashboard-actions form .button {
  width: 100%;
}

.billing-dashboard-actions > .button {
  flex: 1 1 0;
  width: auto;
}

.billing-dashboard-cancel {
  display: grid;
}

.billing-dashboard-cancel form {
  margin: 0;
}

.billing-dashboard-cancel .billing-cancel-button {
  background: var(--hb-card);
  border-color: rgba(192, 57, 43, 0.42);
  color: #b73529;
  justify-content: center;
  min-height: 48px;
  width: 100%;
}

.billing-dashboard-cancel .billing-cancel-button:hover {
  background: #fff7f6;
  border-color: #b73529;
}

.billing-cancellation-status {
  background: #fff9e8;
  border: 1px solid #ead38c;
  border-radius: 14px;
  color: #7b5b00;
  margin: 0;
  padding: 18px 20px;
  text-align: center;
}

.billing-dashboard-history {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  margin-top: 2px;
  padding: 14px;
}

.billing-history-title {
  display: grid;
  gap: 9px;
}

.billing-history-title h2 {
  color: var(--hb-text);
  font: 600 17px/1.3 var(--font-display);
  letter-spacing: -0.2px;
  margin: 0;
}

.billing-dashboard-label {
  align-items: center;
  background: rgba(18, 104, 216, 0.1);
  border-radius: 999px;
  color: var(--hb-accent);
  display: inline-flex;
  font: 700 10px/1 var(--font-text);
  letter-spacing: 1.1px;
  line-height: 1;
  padding: 6px 10px;
  text-transform: uppercase;
  width: max-content;
}

.billing-history-list {
  display: grid;
}

.billing-history-head {
  display: none;
}

.billing-history-row {
  align-items: center;
  border-top: 1px solid var(--hb-border);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 2px;
}

.billing-history-row time {
  color: var(--hb-text3);
  font: 500 12px/1.35 var(--font-text);
}

.billing-history-description {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  padding-right: 8px;
}

.billing-history-description strong {
  color: var(--hb-text);
  display: block;
  font: 600 14px/1.35 var(--font-text);
  overflow-wrap: anywhere;
}

.billing-history-amount {
  color: var(--hb-text);
  font: 700 14px/1.3 var(--font-display);
  text-align: right;
}

.billing-status-pill {
  background: rgba(19, 168, 95, 0.13);
  border-radius: 999px;
  color: #13864f;
  display: inline-flex;
  font: 600 10.5px/1.2 var(--font-text);
  margin-top: 4px;
  padding: 3px 8px;
}

.billing-receipt-link {
  color: var(--hb-accent);
  font: 600 12px/1.3 var(--font-text);
  justify-self: end;
  text-decoration: none;
}

.billing-history-pending {
  color: var(--hb-text3);
  font: 500 12px/1.3 var(--font-text);
  justify-self: end;
}

.billing-history-empty {
  align-items: center;
  background: var(--hb-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 24px 18px;
  text-align: center;
}

.billing-secure-footer {
  color: var(--hb-text3);
  font: 400 12.5px/1.4 var(--font-text);
  margin: 2px 0 0;
  text-align: center;
}

.billing-secure-footer strong {
  color: var(--hb-accent);
}

@media (min-width: 560px) {
  .billing-plan-summary {
    align-items: center;
    flex-direction: row;
    padding: 20px 22px;
  }

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

  .billing-dashboard-actions {
    flex-direction: row;
  }

  .billing-dashboard-history {
    padding: 16px;
  }

  .billing-history-head,
  .billing-history-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 86px minmax(0, 1fr) 70px 62px;
  }

  .billing-history-head {
    background: var(--hb-subtle);
    border-radius: 12px;
    color: var(--hb-text3);
    font: 700 9.5px/1.2 var(--font-text);
    letter-spacing: 0.9px;
    padding: 9px 12px;
    text-transform: uppercase;
  }

  .billing-history-head span:nth-child(3) {
    text-align: right;
  }

  .billing-history-row {
    padding: 12px;
  }

  .billing-history-description {
    grid-column: auto;
    grid-row: auto;
  }
}

.urgency-card,
.final-cta-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 7px;
  border: 1px solid rgba(27, 166, 166, 0.18);
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.98) 0%, rgba(241, 255, 241, 0.94) 100%);
}

.urgency-card h2,
.final-cta-card h2 {
  margin: 0;
}

.marketing-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.flyer-sheet {
  display: grid;
  gap: 26px;
  padding: 34px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: #ffffff;
}

.flyer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.flyer-copy {
  display: grid;
  gap: 18px;
}

.flyer-hero-mark {
  width: 100%;
  max-width: 608px;
  height: auto;
  display: block;
  object-fit: contain;
}

.flyer-benefits {
  display: grid;
  gap: 10px;
}

.flyer-benefit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 600;
}

.flyer-benefit-mark {
  color: #0f7a11;
  font-weight: 900;
}

.flyer-class-chip {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(241, 255, 241, 0.96) 0%, rgba(238, 248, 255, 0.98) 100%);
  border: 1px solid rgba(27, 166, 166, 0.16);
}

.flyer-class-chip strong {
  font-size: 1.7rem;
  color: #0f7a11;
}

.flyer-quote {
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
}

.flyer-quote p {
  margin: 0;
}

.flyer-qr-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #ffffff;
  justify-items: center;
  text-align: center;
}

.flyer-qr-card img.flyer-qr-image {
  width: min(100%, 220px);
  height: auto;
  border-radius: 5px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid rgba(0, 44, 87, 0.08);
}

.flyer-store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

.flyer-store-badge {
  width: auto;
  height: 40px;
  display: block;
}

.flyer-qr-url {
  word-break: break-word;
  font-size: 0.95rem;
}

@media print {
  @page {
    size: auto;
    margin: 0.5in;
  }

  body {
    background: #ffffff;
  }

  .topbar,
  .hero-actions,
  .marketing-inline-cta {
    display: none !important;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .flyer-sheet {
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .flyer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) !important;
    gap: 24px;
    align-items: start;
  }

  .flyer-copy,
  .flyer-qr-card {
    break-inside: avoid;
  }

  .flyer-hero-mark {
    width: 100%;
    max-width: 100%;
  }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}

.admin-prompt-disclosure {
  display: grid;
  gap: 8px;
}

.admin-prompt-summary {
  display: grid;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.admin-prompt-summary::-webkit-details-marker {
  display: none;
}

.admin-prompt-summary:hover strong,
.admin-prompt-summary:focus-visible strong {
  color: var(--accent-strong);
}

.admin-prompt-full {
  padding: 10px 12px;
  border: 1px solid rgba(167, 203, 223, 0.72);
  border-radius: 4px;
  background: rgba(248, 252, 255, 0.92);
}

.admin-prompt-full p {
  margin: 0;
  word-break: break-word;
}

.admin-json-disclosure {
  display: grid;
  gap: 8px;
}

.admin-json-disclosure summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.admin-json-block {
  max-width: min(70vw, 720px);
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(167, 203, 223, 0.72);
  border-radius: 4px;
  background: rgba(248, 252, 255, 0.94);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  padding: 18px 16px;
  display: grid;
  gap: 12px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(223, 241, 255, 0.86) 0%, rgba(255, 255, 255, 0.98) 38%),
    linear-gradient(135deg, rgba(0, 106, 181, 0.04) 0%, rgba(27, 166, 166, 0.04) 100%);
}

.admin-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(167, 203, 223, 0.9);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-toolbar-copy {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-toolbar-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: none;
  white-space: nowrap;
}

.admin-toolbar-meta {
  flex: 0 1 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
}

.admin-toolbar-controls {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.admin-toolbar-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.admin-toolbar-form .field {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.admin-toolbar-form .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-toolbar-form .button {
  flex: 0 0 auto;
}

.admin-toolbar-controls .admin-filter-group,
.admin-toolbar-controls .admin-links {
  margin-top: 0;
}

.admin-toolbar-controls .admin-filter-group {
  min-width: min(100%, 320px);
}

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

.admin-model-settings-compact {
  display: grid;
  gap: 8px;
}

.admin-model-settings-compact h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.admin-model-settings-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-model-settings-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-height: 24px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(167, 203, 223, 0.34);
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-model-settings-list li:last-child {
  border-bottom: 0;
}

.admin-model-settings-list span {
  color: var(--muted);
}

.admin-model-settings-list strong {
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
}

.admin-pricing-table-wrap table {
  min-width: 1120px;
}

.admin-pricing-input {
  width: 118px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.admin-pricing-input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(37, 91, 230, 0.12);
}

.admin-pricing-save {
  min-height: 42px;
  padding: 8px 16px;
}

.admin-toolbar-controls .admin-filter-links {
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .statistics-checkin-progress-card,
  .statistics-checkin-bottom-grid {
    grid-template-columns: 1fr;
  }

  .statistics-now-hero,
  .statistics-now-grid {
    grid-template-columns: 1fr;
  }

  .statistics-now-hero::after {
    right: -120px;
  }

  .statistics-checkin-progress-visual {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid rgba(167, 203, 223, 0.78);
    border-left: 0;
  }

  .admin-toolbar {
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .admin-toolbar-copy {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .admin-toolbar-title,
  .admin-toolbar-meta {
    white-space: normal;
  }

  .admin-toolbar-controls,
  .admin-toolbar-form {
    flex-wrap: wrap;
    align-items: flex-end;
  }

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

.admin-main .message {
  margin: 0;
}

.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.admin-links.admin-links-sidebar {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid rgba(167, 203, 223, 0.86);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-nav-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.admin-nav-link.is-active {
  border-color: rgba(0, 106, 181, 0.22);
  background: linear-gradient(180deg, rgba(223, 241, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--accent-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-filter-group {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid rgba(167, 203, 223, 0.82);
  background: linear-gradient(180deg, rgba(238, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-filter-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-filter-links .button,
.admin-filter-links .pill {
  min-height: 42px;
  padding: 0 16px;
}

.admin-filter-links .button.button-secondary {
  background: rgba(255, 255, 255, 0.96);
}

.admin-filter-links .pill {
  border-color: rgba(0, 106, 181, 0.18);
  background: rgba(223, 241, 255, 0.92);
}

.admin-email-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 20px;
}

.admin-email-list {
  display: grid;
  gap: 12px;
}

.admin-email-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 5px;
  border: 1px solid rgba(167, 203, 223, 0.82);
  background: rgba(255, 255, 255, 0.98);
  color: inherit;
  text-decoration: none;
}

.admin-email-item:hover strong {
  color: var(--accent);
}

.admin-email-item.is-active {
  border-color: rgba(0, 106, 181, 0.24);
  background: linear-gradient(180deg, rgba(238, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-email-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.admin-email-preview-shell {
  padding: 18px;
  border-radius: 6px;
  border: 1px solid rgba(167, 203, 223, 0.82);
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.76) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-email-preview-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  border-radius: 5px;
  border: 1px solid rgba(8, 82, 139, 0.12);
  background: #ffffff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.inline-note-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.inline-note-button:hover,
.inline-note-button:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  outline: none;
}

.admin-launch-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.admin-launch-actions form {
  margin: 0;
}

.admin-launch-actions .button {
  min-width: 128px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(223, 241, 255, 0.72);
}

tbody tr:hover {
  background: rgba(243, 251, 255, 0.88);
}

@media (max-width: 880px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

  .settings-static-grid,
  .settings-actions-panel .hero-actions,
  .billing-paywall-hero,
  .billing-paywall-plan-grid,
  .billing-paywall-map-grid,
  .billing-paywall-proof-strip,
  .billing-dashboard-overview,
  .billing-recovery-alert {
    grid-template-columns: 1fr;
  }

  .billing-recovery-actions {
    justify-content: flex-start;
  }

  .billing-paywall-head {
    text-align: left;
  }

  .billing-dashboard-actions {
    justify-content: stretch;
  }

  .billing-dashboard-actions .button {
    width: 100%;
  }

  .billing-paywall-panel {
    gap: 22px;
  }

  .billing-paywall-head h2 {
    font-size: clamp(2.65rem, 15vw, 4.1rem);
  }

  .billing-paywall-map-grid {
    gap: 12px;
  }

  .billing-paywall-benefit-grid {
    grid-template-columns: 1fr;
  }

  .billing-paywall-proof:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .billing-paywall-vs {
    height: 44px;
    width: 44px;
  }

  .settings-profile-header {
    align-items: center;
  }

  .shell {
    width: min(100% - 24px, 1080px);
    padding-top: 0;
  }

  h1 {
    max-width: none;
  }

  .public-site-topbar {
    gap: 12px;
    padding: 12px 4px;
  }

  .public-site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .public-nav-link,
  .public-nav-cta {
    min-height: 42px;
  }

  .public-nav-link {
    padding: 0 10px;
  }

  .public-nav-cta {
    padding: 0 14px;
  }

  .public-nav-link-secondary {
    margin-left: 0;
  }

  .auth-single-header {
    flex-direction: column;
  }

  .auth-single-login-button {
    width: 100%;
  }

  .public-class-confirm-page {
    gap: 20px;
  }

  .public-class-confirm-summary,
  .public-class-confirm-steps,
  .public-class-confirm-reassurance {
    grid-template-columns: 1fr;
  }

  .public-class-confirm-summary {
    justify-items: center;
    text-align: center;
  }

  .public-class-confirm-summary p {
    justify-content: center;
  }

  .public-class-confirm-steps > i {
    margin: 0;
    transform: rotate(90deg);
  }

  .public-class-confirm-primary,
  .public-class-confirm-secondary {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 16px 18px;
  }

  .public-class-confirm-reassurance {
    gap: 12px;
  }

  .public-class-confirm-reassurance span {
    justify-content: flex-start;
    padding: 0;
  }

  .public-class-confirm-reassurance span + span {
    border-left: 0;
  }

  .stat-grid,
  .accent-band,
  .marketing-columns,
  .class-hero-grid,
  .flyer-grid,
  .marketing-grid-3,
  .marketing-grid-4,
  .class-stat-grid,
  .composer-shell,
  .sample-element-grid,
  .steps-grid,
  .related-class-grid,
  .pricing-grid,
  .statistics-timeline-summary-grid,
  .statistics-timeline-grid,
  .statistics-insights-metrics,
  .statistics-stat-grid,
  .statistics-saved-summary-grid,
  .statistics-saved-grid {
    grid-template-columns: 1fr;
  }

  .statistics-insights-card {
    padding: 24px;
  }

  .statistics-insights-header {
    align-items: stretch;
    flex-direction: column;
  }

  .statistics-insights-range {
    width: fit-content;
    min-height: 48px;
  }

  .statistics-insights-chart {
    min-height: 280px;
    padding: 16px;
  }

  .statistics-insights-canvas-wrap {
    height: 250px;
  }

  .statistics-insights-callout {
    right: 22px;
    top: 22px;
    min-width: 112px;
    padding: 12px 14px;
  }

  .statistics-insights-metric {
    min-height: 118px;
  }

  .statistics-saved-summary-card {
    min-height: 112px;
    padding: 20px;
  }

  .statistics-checkin-progress-card,
  .statistics-checkin-metric-card,
  .statistics-checkin-next-card {
    padding: 22px;
  }

  .statistics-checkin-progress-main,
  .statistics-checkin-next-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .statistics-checkin-progress-visual,
  .statistics-checkin-metric-grid {
    grid-template-columns: 1fr;
  }

  .statistics-checkin-map-icon {
    width: 88px;
    height: 88px;
  }

  .statistics-checkin-map-icon svg {
    width: 42px;
    height: 42px;
  }

  .statistics-checkin-progress-visual {
    gap: 16px;
  }

  .statistics-checkin-ring {
    width: 124px;
    height: 124px;
  }

  .statistics-checkin-review-button {
    width: 100%;
  }

  .statistics-now-section {
    padding: 24px;
  }

  .statistics-now-hero {
    padding: 22px;
  }

  .statistics-now-hero-progress {
    grid-template-columns: 1fr auto;
  }

  .statistics-now-hero-progress > span:not(.statistics-now-trend-icon) {
    grid-column: 1 / -1;
  }

  .statistics-now-start-button {
    width: 100%;
    min-height: 64px;
  }

  .statistics-now-metric-card {
    min-height: 136px;
    padding: 22px;
  }

  .statistics-topic-tabs {
    display: flex;
    width: 100%;
  }

  .statistics-topic-tab {
    min-width: 0;
    flex: 1;
    padding: 14px 10px;
    font-size: 0.9rem;
    text-align: center;
  }

  .statistics-topic-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .home-insight-grid {
    grid-template-columns: 1fr;
  }

  .home-review-grid {
    grid-template-columns: 1fr;
  }

  .home-review-section {
    padding: 18px;
    border-radius: 18px;
  }

  .home-review-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-assessment-row {
    grid-template-columns: minmax(58px, auto) minmax(0, 1fr);
  }

  .home-review-row-pill,
  .home-review-row-more {
    justify-self: end;
    grid-column: 2;
  }

  .home-review-empty {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
    text-align: left;
  }

  .home-review-empty-art {
    width: 76px;
    height: 76px;
  }

  .home-review-empty-art-svg {
    width: 44px;
    height: 44px;
  }

  .home-review-empty-actions {
    grid-column: 1;
    align-items: stretch;
    flex-direction: column;
  }

  .home-review-empty-primary,
  .home-review-empty-secondary {
    width: 100%;
  }

  .note-study-head,
  .note-study-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .note-study-stats,
  .note-study-buckets {
    grid-template-columns: 1fr;
  }

  .home-class-card {
    border-radius: 7px;
  }

  .home-class-card-header {
    gap: 12px;
  }

  .home-class-comfort-ring {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
    border-width: 8px;
  }

  .home-class-card-top-row {
    align-items: flex-start;
    gap: 8px;
  }

  .home-class-card-actions {
    gap: 6px;
  }

  .home-class-status-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .home-class-info-button {
    width: 36px;
    height: 36px;
  }

  .home-dashboard {
    padding: 16px;
  }

  .home-dashboard-head,
  .home-dashboard-featured-card,
  .home-dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard-tip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 14px;
  }

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

  .home-dashboard-process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard-action-row,
  .home-dashboard-snapshot {
    grid-template-columns: 1fr;
  }

  .home-dashboard-class-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-dashboard-class-row .home-dashboard-snapshot {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-dashboard-process-arrow {
    display: none;
  }

  .composer-chat-panel {
    min-height: auto;
    order: -1;
  }

  .hero-preview-support,
  .marketing-benefit-item,
  .marketing-step-row {
    grid-template-columns: 1fr;
  }

  .proof-pill-row,
  .marketing-inline-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .composer-thread-feed {
    padding-bottom: 150px;
  }

  .composer-chat-compose {
    bottom: 12px;
  }

  .composer-compose-actions {
    justify-content: stretch;
  }

  .composer-compose-actions .button {
    flex: 1 1 180px;
  }

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

  .topic-map-meta {
    justify-content: flex-start;
  }

  .preview-element-actions {
    grid-template-columns: 1fr;
  }

  .study-info-dialog {
    width: min(100vw - 24px, 560px);
  }

  .section-workspace-dialog {
    width: min(100vw - 24px, 720px);
  }

  .section-workspace-detail-grid {
    grid-template-columns: 1fr;
  }

  .section-workspace-class-head {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .section-workspace-class-icon {
    width: 64px;
    height: 64px;
    border-radius: 5px;
  }

  .section-workspace-class-icon-svg {
    width: 34px;
    height: 34px;
  }

  .section-workspace-shell h1 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .section-workspace-shell {
    gap: 12px;
    padding: 18px;
  }

  .section-workspace-title-row {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .section-workspace-title-trigger {
    width: auto;
  }

  .section-workspace-sidebar-toggle {
    display: inline-flex;
    margin-top: 2px;
  }

  .section-workspace-nav,
  .workspace-signal-stack {
    display: none;
  }

  .section-workspace-shell.is-expanded .section-workspace-nav {
    display: block;
  }

  .section-workspace-shell.is-expanded .workspace-signal-stack {
    display: grid;
  }

  .section-workspace-summary {
    gap: 10px;
  }

  .section-workspace-upcoming-event {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .section-workspace-main-action {
    min-height: 68px;
    padding: 12px 16px;
  }

  .section-workspace-glance-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .section-workspace-glance-row strong {
    grid-column: 2;
    white-space: normal;
  }

  .exam-lock-in-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-lock-in-element-content,
  .exam-lock-in-actions {
    margin-left: 0;
  }

  .exam-lock-in-step-label {
    display: none;
  }

  .readiness-element-item,
  .readiness-list-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.nav-link-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  border-color: transparent;
}

.marketing-showcase-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 255, 0.96) 100%);
}

.marketing-showcase-grid {
  display: grid;
  gap: 16px;
}

.marketing-showcase-card {
  padding: 20px;
  border: 1px solid rgba(167, 203, 223, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.marketing-showcase-card.is-highlight {
  border-color: rgba(27, 166, 166, 0.34);
  background: linear-gradient(180deg, #f7fff7 0%, #ffffff 100%);
}

.marketing-footer {
  width: 100vw;
  margin: 6px calc(50% - 50vw) 0;
  padding: 32px 0 18px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(167, 203, 223, 0.5);
}

.marketing-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 2.45fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.marketing-footer-brand {
  max-width: 470px;
}

.marketing-footer-link-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
  min-width: 0;
}

.marketing-footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: #e6f3ff;
  color: #0b4f88;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-footer-brand h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.marketing-footer-legal {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #6f8797;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}

.marketing-footer-brand p,
.footer-link-list a {
  color: #5d7d95;
}

.marketing-footer strong {
  margin: 0;
  color: #082033;
  font-size: 1.05rem;
  font-weight: 850;
}

.marketing-footer-brand p {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.footer-link-list a {
  text-decoration: none;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.16;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  color: #082033;
  transform: translateX(2px);
}

.field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
a:focus,
button:focus,
summary:focus {
  outline: 3px solid rgba(0, 106, 181, 0.25);
  outline-offset: 2px;
}

.legal-prose {
  display: grid;
  gap: 16px;
}

.legal-prose h2 {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.legal-prose p {
  max-width: 72ch;
}

@media (max-width: 900px) {
  .admin-email-layout {
    grid-template-columns: 1fr;
  }

  .admin-email-meta-grid {
    grid-template-columns: 1fr;
  }

  .marketing-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .marketing-footer-link-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .footer-link-list a {
    font-size: 1rem;
    line-height: 1.28;
  }
}
:where(
  [class*="-icon"],
  [class*="icon-"]
) {
  border-radius: 14px !important;
}

:where(
  .button,
  .button-primary,
  .button-secondary,
  .public-cta-button,
  .public-cta-button-primary,
  .public-stand-final-button,
  .outsmart-button,
  button[type],
  input[type="button"],
  input[type="submit"],
  [role="button"]
) {
  border-radius: 999px !important;
}

/* ============================================================
   Phase 2a: Section workspace shell reskin (renderSectionWorkspacePage
   in student-pages.js). Appended at end of file so these rules win
   the cascade over the scattered pre-redesign rules for the same
   class names (equal specificity, later source position). Class
   names, data-* attributes and DOM structure are unchanged — the
   fetch-based panel-swap script (buildSectionWorkspacePanelClientScript)
   and dialog/collapsible delegated handlers keep working as-is.
   ============================================================ */

.section-workspace-grid {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  transition: grid-template-columns 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.section-workspace-grid.is-sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}
@media (max-width: 860px) {
  .section-workspace-grid,
  .section-workspace-grid.is-sidebar-collapsed { grid-template-columns: 1fr; }
}

.section-workspace-shell {
  position: sticky;
  top: 86px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 860px) {
  .section-workspace-shell { position: static; }
}

.section-workspace-side-card {
  position: relative;
  padding: 20px 18px 14px;
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}

.section-workspace-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-workspace-active-panel {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
  min-width: 0;
}

.section-workspace-summary { display: flex; flex-direction: column; gap: 2px; }

/* Section.dc.html's `.cv-back` — an "All classes" escape hatch above the
   course title, and the "In progress" status pill beside it. */
.section-workspace-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px 5px 6px;
  border-radius: 9px;
  color: var(--hb-text3);
  font: 600 12.5px "Instrument Sans", sans-serif;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.section-workspace-back:hover {
  background: var(--hb-hover);
  color: var(--hb-accent);
  text-decoration: none;
}
.section-workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e4f6ee;
  color: #0f7a53;
  font: 600 11.5px "Instrument Sans", sans-serif;
  white-space: nowrap;
}
.section-workspace-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}
.section-workspace-status.is-warn { background: #fdf1d8; color: #8a5300; }
html[data-theme="dark"] .section-workspace-status {
  background: rgba(14, 143, 78, 0.2);
  color: #4fd394;
}
html[data-theme="dark"] .section-workspace-status.is-warn {
  background: rgba(217, 154, 43, 0.2);
  color: #e8b04a;
}

.section-workspace-title-row { display: flex; align-items: center; justify-content: flex-start; gap: 9px; }
.section-workspace-title-trigger { border: none; background: transparent; padding: 0; cursor: pointer; text-align: left; }
.section-workspace-title-trigger h1 {
  margin: 0;
  font: 600 22px "Space Grotesk", sans-serif;
  letter-spacing: -0.3px;
  color: var(--hb-text);
}
.section-workspace-subtitle {
  display: block;
  max-width: 100%;
  margin: 6px 0 16px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--hb-text2);
  background: transparent;
  font: 400 13.5px/1.35 var(--font-text);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.section-workspace-subtitle:hover,
.section-workspace-subtitle:focus-visible {
  color: var(--hb-accent);
}
.section-workspace-rail-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--hb-border2);
  border-radius: 50%;
  color: var(--hb-text2);
  background: var(--hb-card);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 120ms ease;
}
.section-workspace-rail-toggle:hover,
.section-workspace-rail-toggle:focus-visible {
  color: var(--hb-accent);
  background: var(--hb-hover);
}
.section-workspace-rail-toggle:active { transform: scale(0.9); }
.section-workspace-rail-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 250ms ease;
}
.section-workspace-shell.is-collapsed .section-workspace-rail-toggle svg {
  transform: rotate(180deg);
}
.section-workspace-sidebar-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--hb-text2);
  cursor: pointer;
  border-radius: 11px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 860px) {
  .section-workspace-rail-toggle { display: none; }
  .section-workspace-sidebar-toggle { display: inline-flex; margin-left: auto; }
}
.section-workspace-upcoming-event {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 0;
  background: #e4f6ee;
  color: #0f7a53;
  font: 600 12.5px "Instrument Sans", sans-serif;
  text-decoration: none;
}
.section-workspace-upcoming-event:hover { background: #d5f0e2; text-decoration: none; }
html[data-theme="dark"] .section-workspace-upcoming-event { background: rgba(14, 143, 78, 0.2); color: #4fd394; }
html[data-theme="dark"] .section-workspace-upcoming-event:hover { background: rgba(14, 143, 78, 0.3); }

.section-workspace-nav { margin-top: 4px; }
.section-workspace-nav-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.section-workspace-nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 13px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--hb-text2);
  font: 600 14px "Instrument Sans", sans-serif;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.section-workspace-nav-link:hover { background: var(--hb-hover); color: var(--hb-accent); text-decoration: none; }
.section-workspace-nav-link.is-active {
  background: var(--hb-hover);
  color: var(--hb-text);
  box-shadow: inset 3px 0 0 var(--hb-accent);
}
.section-workspace-nav-icon-wrap { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.section-workspace-nav-icon { width: 19px; height: 19px; }
.section-workspace-nav-label { flex: 1; }
.section-workspace-nav-badge {
  font: 700 10.5px "JetBrains Mono", monospace;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fdf1d8;
  color: #8a5300;
  flex: none;
}
html[data-theme="dark"] .section-workspace-nav-badge { background: rgba(217, 154, 43, 0.18); color: #e8b04a; }
.section-workspace-nav-lock {
  color: var(--hb-text3);
  display: grid;
  flex: none;
  place-items: center;
}
.section-workspace-nav-lock svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}
.section-workspace-nav-link.is-active .section-workspace-nav-lock {
  color: currentColor;
}

@media (min-width: 861px) {
  .section-workspace-shell.is-collapsed .section-workspace-side-card {
    padding: 16px 10px 10px;
  }
  .section-workspace-shell.is-collapsed .section-workspace-back,
  .section-workspace-shell.is-collapsed .section-workspace-title-trigger,
  .section-workspace-shell.is-collapsed .section-workspace-status,
  .section-workspace-shell.is-collapsed .section-workspace-subtitle,
  .section-workspace-shell.is-collapsed .section-workspace-upcoming-event,
  .section-workspace-shell.is-collapsed .workspace-signal-stack,
  .section-workspace-shell.is-collapsed .section-workspace-nav-label,
  .section-workspace-shell.is-collapsed .section-workspace-nav-badge,
  .section-workspace-shell.is-collapsed .section-workspace-nav-lock {
    display: none;
  }
  .section-workspace-shell.is-collapsed .section-workspace-summary {
    min-height: 30px;
  }
  .section-workspace-shell.is-collapsed .section-workspace-nav {
    margin-top: 30px;
  }
  .section-workspace-shell.is-collapsed .section-workspace-nav-list {
    margin: 0 -2px;
  }
  .section-workspace-shell.is-collapsed .section-workspace-nav-link {
    justify-content: center;
    gap: 0;
    padding: 12px 0;
  }
}

/* Readiness widget (SectionIntelligenceSummaryDeck) */
.workspace-signal-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}
.workspace-readiness-card {
  position: relative;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
  overflow: hidden;
}
.workspace-readiness-summary {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.workspace-readiness-orb {
  display: block;
  min-height: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.workspace-readiness-orb:hover {
  text-decoration: none;
}
.workspace-readiness-orb:focus-visible,
.workspace-readiness-title:focus-visible,
.workspace-readiness-progress-link:focus-visible {
  outline: 2px solid var(--hb-accent);
  outline-offset: 4px;
}
.workspace-readiness-ring {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  flex: none;
}
.workspace-readiness-ring-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.workspace-readiness-ring-track {
  fill: none;
  stroke: var(--hb-track);
  stroke-width: 10;
}
.workspace-readiness-ring-fg {
  fill: none;
  stroke: url("#workspace-readiness-gradient");
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.workspace-readiness-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--hb-text);
}
.workspace-readiness-value strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.workspace-readiness-ring-label {
  color: var(--hb-text3);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
}
.workspace-readiness-copy {
  display: grid;
  justify-items: start;
  align-content: center;
  min-width: 0;
}
.workspace-readiness-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--hb-text);
  text-decoration: none;
}
.workspace-readiness-title:hover {
  color: var(--hb-accent);
  text-decoration: none;
}
/* Section.dc.html pairs the ring with a trend line and a link out to
   Progress; both sit beside the orb rather than under it. */
.workspace-readiness-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hb-green);
}
.workspace-readiness-trend.is-down { color: var(--hb-red); }
html[data-theme="dark"] .workspace-readiness-trend.is-down { color: #ff9a8a; }
.workspace-readiness-progress-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hb-accent);
  text-decoration: none;
}
.workspace-readiness-progress-link:hover {
  color: var(--hb-text);
  text-decoration: none;
}
.workspace-readiness-card .workspace-signal-grid {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding-top: 14px;
  border: 0;
  border-top: 1px solid var(--hb-border);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.workspace-cram-savings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--hb-border);
  color: var(--hb-text2);
}

.workspace-cram-savings > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hb-text2);
  font: 500 0.88rem/1.4 var(--hb-font-text);
}

.workspace-cram-savings svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #0f9f6e;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-cram-savings strong {
  color: #0f805d;
  font-family: var(--hb-font-mono);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.workspace-readiness-card .workspace-signal-card,
.workspace-readiness-card .workspace-signal-static {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}
.workspace-readiness-card .workspace-signal-card:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}
.workspace-readiness-card .workspace-signal-card:focus-visible {
  outline: 2px solid var(--hb-accent);
  outline-offset: 5px;
  border-radius: 4px !important;
}
.workspace-readiness-card .workspace-signal-label {
  color: var(--hb-text2);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
}
.workspace-readiness-card .workspace-signal-stat {
  color: var(--hb-text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}
.workspace-readiness-card .workspace-signal-card-with-progress {
  padding-bottom: 0;
}
.workspace-readiness-card .workspace-signal-progress {
  display: block;
  grid-column: 1 / -1;
  height: 7px;
  margin-top: -3px;
  border-radius: 999px;
  background: var(--hb-track);
  overflow: hidden;
}
.workspace-readiness-card .workspace-signal-progress-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a62f0, #0f9f6e);
  transform-origin: left;
  animation: workspace-readiness-bar-grow 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s
    both;
}
@keyframes workspace-readiness-bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 420px) {
  .workspace-readiness-card {
    padding: 18px;
  }
  .workspace-readiness-summary {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
  }
  .workspace-readiness-ring {
    width: 92px;
    height: 92px;
  }
}

/* Section.dc.html's `.cv-quizbanner` — the dark "next assessment" call to
   action that opens the main column. */
.section-workspace-quiz-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0c1c3a 0%, #123a8f 100%);
  color: #ffffff;
  box-shadow: 0 24px 46px -26px rgba(12, 28, 58, 0.9);
}
.section-workspace-quiz-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.section-workspace-quiz-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  flex: none;
}
.section-workspace-quiz-copy { min-width: 0; }
.section-workspace-quiz-headline {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.section-workspace-quiz-eyebrow {
  font: 700 10.5px "Instrument Sans", sans-serif;
  letter-spacing: 1px;
  color: #0c1c3a;
  background: #ffd66b;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.section-workspace-quiz-when { font: 600 16px "Space Grotesk", sans-serif; }
.section-workspace-quiz-detail {
  margin-top: 5px;
  font: 400 13px "Instrument Sans", sans-serif;
  color: #a9bce0;
}
.section-workspace-quiz-detail b { color: #ffffff; font-weight: 600; }
.section-workspace-quiz-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 48px;
  padding: 0 26px;
  border-radius: 13px;
  background: #ffffff;
  color: #0c1c3a;
  font: 600 15px "Instrument Sans", sans-serif;
  text-decoration: none;
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.5);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.section-workspace-quiz-cta:hover { transform: translateY(-1px); text-decoration: none; }
.section-workspace-quiz-cta svg { transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1); }
.section-workspace-quiz-cta:hover svg { transform: translateX(4px); }
.section-workspace-quiz-dismiss {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #dbe6fb;
  cursor: pointer;
  transition: background 140ms ease;
}
.section-workspace-quiz-dismiss:hover { background: rgba(255, 255, 255, 0.24); }
@media (max-width: 720px) {
  .section-workspace-quiz-banner { flex-wrap: wrap; }
  .section-workspace-quiz-cta { width: 100%; justify-content: center; }
}

.workspace-signal-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 18px;
  padding-top: 14px;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--hb-border);
  border-radius: 0;
  background: transparent;
}
.workspace-signal-item { display: block; }
.workspace-signal-card,
.workspace-signal-static {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.workspace-signal-static { cursor: default; }
.workspace-signal-copy { display: flex; flex-direction: column; gap: 2px; }
.workspace-signal-label { font: 500 12.5px "Instrument Sans", sans-serif; color: var(--hb-text2); }
.workspace-signal-description { font-size: 11.5px; color: var(--hb-text3); }
.workspace-signal-stat-block { flex: none; }
.workspace-signal-stat {
  font: 700 12.5px "JetBrains Mono", monospace;
  color: var(--hb-text);
}
.workspace-signal-stat-locked { color: var(--hb-text3); }
.workspace-signal-progress {
  flex: 1 1 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--hb-track);
  overflow: hidden;
}
.workspace-signal-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hb-accent), var(--hb-green));
}

/* Signal detail dialogs (native <dialog data-modal-dialog>, same infra as ModalShell) */
.workspace-signal-dialog {
  width: min(480px, calc(100vw - 32px));
  border: 1px solid var(--hb-border);
  border-radius: 24px;
  padding: 0;
  background: var(--hb-card);
  color: var(--hb-text);
  box-shadow: 0 40px 80px -30px rgba(10, 23, 48, 0.6);
}
.workspace-signal-dialog::backdrop { background: rgba(10, 23, 48, 0.45); }
.workspace-signal-sheet { padding: 28px 28px 26px; }
.study-info-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.study-info-dialog-copy { display: flex; flex-direction: column; gap: 4px; }
.study-info-dialog-label {
  font: 700 11.5px "Instrument Sans", sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hb-accent);
}
.study-info-dialog-copy strong { font: 600 21px "Space Grotesk", sans-serif; color: var(--hb-text); }
.study-info-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--hb-border);
  background: var(--hb-card);
  color: var(--hb-text2);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.study-info-close:hover { background: var(--hb-hover); }

/* Readiness stream toolbar */
.study-queue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.study-queue-filter-row {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 540px;
  background: var(--hb-track);
  border-radius: 14px;
  padding: 4px;
  gap: 0;
}
.study-queue-filter-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 11px;
  background: var(--hb-card);
  box-shadow: 0 2px 8px rgba(16, 42, 90, 0.16), 0 0 0 1px rgba(10, 23, 48, 0.04);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
html[data-theme="dark"] .study-queue-filter-thumb { background: #2a3b5c; }
.study-queue-filter-chip {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 11px;
  cursor: pointer;
  font: 600 13.5px "Instrument Sans", sans-serif;
  color: var(--hb-text2);
  text-decoration: none;
  text-align: center;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.study-queue-filter-chip:hover { color: var(--hb-text); text-decoration: none; }
.study-queue-filter-chip.is-selected { color: var(--hb-text); }

/* Topic-grouped readiness stream browser */
.study-topic-browser {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.study-topic-browser-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.study-topic-browser-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  min-height: 112px;
  padding: 20px 22px;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: var(--hb-card);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.study-topic-browser-row:first-child {
  border-top: 1px solid var(--hb-border);
}
.study-topic-browser-row:hover,
.study-topic-browser-row:focus-visible {
  border-color: var(--hb-border2);
  background: var(--hb-card);
  box-shadow: 0 16px 30px -24px rgba(16, 42, 90, 0.55);
  text-decoration: none;
  transform: translateY(-1px);
  outline: none;
}
.study-topic-browser-content {
  display: grid;
  gap: 11px;
  min-width: 0;
}
.study-topic-browser-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
.study-topic-browser-heading > strong {
  min-width: 0;
  color: var(--hb-text);
  font: 600 16px/1.25 var(--hb-font-text);
  overflow-wrap: anywhere;
}
.study-topic-browser-score {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  flex: none;
  white-space: nowrap;
}
.study-topic-browser-score b {
  font: 700 14px/1 var(--hb-font-mono);
}
.study-topic-browser-score small {
  color: var(--hb-text3);
  font: 600 12px/1 var(--hb-font-text);
}
.study-topic-browser-score.is-weak b { color: #cf3c31; }
.study-topic-browser-score.is-uncertain b { color: #b77b14; }
.study-topic-browser-score.is-solid b { color: #0f9f6e; }
.study-topic-browser-bar {
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hb-track);
}
.study-topic-browser-bar > span {
  display: block;
  height: 100%;
  min-width: 0;
}
.study-topic-browser-bar .is-ready { background: #12a26b; }
.study-topic-browser-bar .is-uncertain { background: #e5a321; }
.study-topic-browser-bar .is-weak { background: #e4574d; }
.study-topic-browser-meta {
  color: var(--hb-text3);
  font: 400 13px/1.25 var(--hb-font-text);
}
.study-topic-browser-arrow {
  color: var(--hb-text3);
  font: 400 25px/1 var(--hb-font-text);
  transition: color 0.16s ease, transform 0.16s ease;
}
.study-topic-browser-row:hover .study-topic-browser-arrow,
.study-topic-browser-row:focus-visible .study-topic-browser-arrow {
  color: var(--hb-accent);
  transform: translateX(2px);
}
.study-topic-browser-empty { color: var(--hb-text3); font-size: 13.5px; }

.study-preview-locked-row,
.study-preview-locked-element {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--hb-card) 88%, var(--hb-bg));
  color: inherit;
  text-decoration: none;
}

.study-preview-locked-row {
  grid-template-columns: 18px minmax(0, 1fr);
}

.study-preview-locked-element {
  display: grid;
  gap: 13px;
  min-height: 210px;
  padding: 24px;
}

.study-preview-locked-row::after,
.study-preview-locked-element::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(226, 231, 239, 0.38);
  backdrop-filter: blur(7px);
}

.study-preview-blur-line {
  display: block;
  border-radius: 999px;
  background: #cbd4e2;
}

.study-preview-blur-line.is-kicker { width: 24%; height: 10px; }
.study-preview-blur-line.is-title { width: 72%; height: 18px; }
.study-preview-blur-line.is-bar { width: 100%; height: 8px; }
.study-preview-blur-line.is-meta { width: 34%; height: 11px; }
.study-preview-blur-line.is-copy { width: 92%; height: 58px; border-radius: 12px; }

.study-preview-lock-label {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(36, 84, 207, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px -18px rgba(8, 25, 60, 0.6);
  color: var(--hb-accent);
  font: 700 13px/1 var(--hb-font-text);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.study-preview-locked-row:hover,
.study-preview-locked-row:focus-visible,
.study-preview-locked-element:hover,
.study-preview-locked-element:focus-visible {
  border-color: color-mix(in srgb, var(--hb-accent) 36%, var(--hb-border));
  text-decoration: none;
  outline: none;
}

@media (max-width: 640px) {
  .study-queue-filter-row {
    width: 100%;
    max-width: none;
  }

  .study-topic-browser-row {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    min-height: 104px;
    padding: 18px 15px;
  }

  .study-topic-browser-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .study-topic-browser-heading > strong {
    font-size: 14.5px;
  }

  .study-topic-browser-score {
    gap: 5px;
  }
}

@media (max-width: 860px) {
  .section-workspace-grid > .section-workspace-shell { gap: 12px; }
  .section-workspace-shell:not(.is-expanded) .workspace-signal-stack {
    display: none;
  }
  .section-workspace-shell.is-expanded .workspace-signal-stack {
    display: flex;
  }
}

/* ============================================================
   Phase 2b: Section workspace Search + Capture panel reskin.
   Same DOM/class names/data-* attributes as the existing
   elementSearchMarkup / uploadPanelMarkup in student-pages.js —
   restyled only. Appended at end of file so these rules win the
   cascade over the scattered pre-redesign rules (equal specificity,
   later source position).
   ============================================================ */

/* ---- Search panel ---- */
.element-search-header h2 {
  margin: 0 0 6px;
  font: 600 19px "Space Grotesk", sans-serif;
  letter-spacing: -0.2px;
  color: var(--hb-text);
}
.element-search-header p {
  margin: 0 0 16px;
  font: 400 13px "Instrument Sans", sans-serif;
  color: var(--hb-text2);
}
.element-search-field {
  height: 52px;
  padding: 0 6px 0 46px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 15px;
  background: var(--hb-card);
  box-shadow: none;
}
.element-search-field:hover, .element-search-field:focus-within {
  border-color: var(--hb-accent);
  box-shadow: 0 0 0 3px rgba(33, 89, 230, 0.13);
}
.element-search-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--hb-text3);
}
.element-search-input {
  color: var(--hb-text);
  font: 500 15.5px "Instrument Sans", sans-serif;
}
.element-search-clear {
  width: 30px;
  height: 30px;
  background: var(--hb-track);
  color: var(--hb-text2);
}
.element-search-clear:hover { background: var(--hb-border2); }
.element-search-submit {
  width: 36px;
  height: 36px;
  margin-right: 4px;
  background: var(--hb-accent);
  color: #fff;
}
.element-search-submit:hover { background: var(--hb-accent-strong); }
.element-search-count { color: var(--hb-text3); font: 500 13px "Instrument Sans", sans-serif; }
.element-search-count strong { color: var(--hb-text); }
.element-search-empty-state { padding: 40px 20px; color: var(--hb-text3); }
.element-search-empty-icon { background: var(--hb-subtle); color: var(--hb-text3); }
.element-search-empty-state h3 { color: var(--hb-text); font: 600 15.5px "Instrument Sans", sans-serif; }
.element-search-empty-state p { color: var(--hb-text3); font: 400 13.5px "Instrument Sans", sans-serif; }
.search-result-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.search-result-note { color: var(--hb-text3); font-size: 12px; }

/* ---- Capture panel ---- */
.section-upload-modern { background: transparent; }
.section-upload-intro h2 {
  margin: 0;
  font: 600 19px "Space Grotesk", sans-serif;
  letter-spacing: -0.2px;
  color: var(--hb-text);
}
.section-upload-intro p {
  margin: 0;
  font: 400 13px "Instrument Sans", sans-serif;
  color: var(--hb-text2);
}
.section-upload-modern .section-upload-dropzone {
  border-color: var(--hb-border2);
  background: var(--hb-subtle);
  border-radius: 18px;
}
.section-upload-modern .section-upload-dropzone:hover,
.section-upload-modern .section-upload-dropzone:focus-within,
.section-upload-modern .section-upload-dropzone.is-dragover {
  border-color: var(--hb-accent);
  background: var(--hb-hover);
  box-shadow: none;
}
.section-upload-cloud-icon { background: transparent; color: var(--hb-accent); width: 46px; height: 46px; }
.section-upload-modern .section-upload-dropzone-copy strong {
  color: var(--hb-text);
  font: 600 15px "Instrument Sans", sans-serif;
}
.section-upload-modern .section-upload-dropzone-copy .inline-note { color: var(--hb-text3); }
.section-upload-choose-button {
  background: var(--hb-card);
  border: 1.5px solid var(--hb-border2);
  color: var(--hb-accent);
}
.section-upload-choose-button:hover { background: var(--hb-hover); border-color: var(--hb-accent); }
.section-upload-date-group label {
  color: var(--hb-text3);
  font: 700 10.5px "Instrument Sans", sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.section-upload-date-control {
  border: 1.5px solid var(--hb-border2);
  border-radius: 14px;
  background: var(--hb-card);
}
.section-upload-date-icon, .section-upload-date-chevron { color: var(--hb-text3); }
.section-upload-date-control input {
  color: var(--hb-text);
  font: 500 15px "Instrument Sans", sans-serif;
  background: transparent;
}
.section-upload-submit {
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 26px -12px rgba(26, 70, 194, 0.7);
  font: 600 15.5px "Instrument Sans", sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
}
.section-upload-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 18px 30px -12px rgba(26, 70, 194, 0.8);
}
.section-upload-submit-arrow { transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.section-upload-submit:hover .section-upload-submit-arrow { transform: translateX(4px); }

.upload-notes-actions-stack {
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  background: var(--hb-card);
}
.upload-manual-row {
  border-bottom-color: var(--hb-border);
  background: transparent;
  color: var(--hb-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.upload-notes-actions-stack > .upload-manual-row {
  border-radius: 0 !important;
}
.upload-manual-row:hover, .upload-manual-row:focus-visible {
  background: var(--hb-hover);
  border-bottom-color: var(--hb-border);
}
.upload-manual-icon-wrap {
  background: transparent;
  color: var(--hb-accent);
  width: 34px;
  height: 34px;
}
.upload-manual-icon-wrap svg { width: 20px; height: 20px; }
.upload-manual-row.is-friend .upload-manual-icon-wrap { background: transparent; color: #0f9f6e; }
.upload-manual-row.is-vault .upload-manual-icon-wrap { background: transparent; color: #c99a2b; }
.upload-manual-row.is-record .upload-manual-icon-wrap { background: transparent; color: #d94336; }
.upload-manual-title { color: var(--hb-text); font: 600 14.5px "Instrument Sans", sans-serif; }
.upload-manual-subtitle { color: var(--hb-text3); font: 400 12.5px "Instrument Sans", sans-serif; }
.upload-manual-chevron { color: var(--hb-text3); transition: transform 0.16s ease; }
.upload-manual-row:hover .upload-manual-chevron { transform: translateX(3px); color: var(--hb-accent); }

/* Capture: ask a friend to upload */
.ask-friend-upload-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--hb-text);
  box-shadow: none;
}
.ask-friend-upload-dialog::backdrop {
  background: rgba(26, 38, 62, 0.5);
  backdrop-filter: blur(6px);
}
.ask-friend-upload-sheet {
  display: grid;
  gap: 22px;
  padding: 36px 38px 34px;
  border: 1px solid var(--hb-border);
  border-radius: 28px;
  background: var(--hb-card);
  box-shadow: 0 42px 90px -38px rgba(10, 23, 48, 0.72);
}
.ask-friend-upload-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.ask-friend-upload-header > div {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.ask-friend-upload-label {
  color: var(--hb-accent);
  font: 700 12px/1 var(--hb-font-text);
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.ask-friend-upload-header h2 {
  margin: 0;
  color: var(--hb-text);
  font: 600 clamp(27px, 4vw, 34px)/1.08 var(--hb-font-display);
  letter-spacing: -0.7px;
}
.ask-friend-upload-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--hb-border);
  border-radius: 50%;
  background: var(--hb-card);
  color: var(--hb-text2);
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
.ask-friend-upload-close svg {
  width: 22px;
  height: 22px;
}
.ask-friend-upload-close:hover,
.ask-friend-upload-close:focus-visible {
  border-color: var(--hb-border2);
  background: var(--hb-hover);
  color: var(--hb-text);
  outline: none;
  transform: translateY(-1px);
}
.ask-friend-upload-credit {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  background: var(--hb-soft);
  color: var(--hb-text2);
}
.ask-friend-upload-credit svg {
  width: 19px;
  height: 19px;
  color: #0f9f6e;
}
.ask-friend-upload-credit strong {
  font: 600 14px/1.2 var(--hb-font-text);
}
.ask-friend-upload-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.ask-friend-upload-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 58px;
  padding: 0 20px;
  border: 1.5px dashed var(--hb-border2);
  border-radius: 16px;
  background: var(--hb-soft);
  color: var(--hb-text);
}
.ask-friend-upload-link svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--hb-text3);
}
.ask-friend-upload-link span {
  min-width: 0;
  overflow: hidden;
  font: 600 15px/1.2 var(--hb-font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ask-friend-upload-copy {
  min-width: 138px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #2f64ef 0%, #1d49c9 100%);
  color: #fff;
  cursor: pointer;
  font: 600 17px/1 var(--hb-font-text);
  box-shadow: 0 18px 32px -18px rgba(28, 70, 194, 0.9);
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.ask-friend-upload-copy:hover,
.ask-friend-upload-copy:focus-visible {
  box-shadow: 0 22px 36px -18px rgba(28, 70, 194, 1);
  outline: none;
  transform: translateY(-1px);
}
.ask-friend-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ask-friend-upload-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 0;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--hb-border2);
  border-radius: 15px;
  background: var(--hb-card);
  color: var(--hb-text2);
  font: 600 15px/1 var(--hb-font-text);
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
.ask-friend-upload-actions a:hover,
.ask-friend-upload-actions a:focus-visible {
  border-color: var(--hb-accent);
  background: var(--hb-hover);
  color: var(--hb-accent);
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}
.ask-friend-upload-actions svg {
  width: 20px;
  height: 20px;
  flex: none;
}
@media (max-width: 640px) {
  .ask-friend-upload-dialog {
    width: min(100vw - 20px, 680px);
  }

  .ask-friend-upload-sheet {
    gap: 18px;
    padding: 24px 19px 22px;
    border-radius: 24px;
  }

  .ask-friend-upload-header {
    gap: 14px;
  }

  .ask-friend-upload-header h2 {
    font-size: 26px;
  }

  .ask-friend-upload-close {
    width: 42px;
    height: 42px;
  }

  .ask-friend-upload-credit {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .ask-friend-upload-link-row {
    grid-template-columns: 1fr;
  }

  .ask-friend-upload-copy {
    width: 100%;
  }

  .ask-friend-upload-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Phase 2c: Section workspace Calendar panel reskin. Same DOM
   (native <details> per day, fixed-position popover) and data-*
   attributes as the existing SectionCalendarPanel component in
   student-pages.js — restyled only. Appended at end of file so
   these rules win the cascade (equal specificity, later source).
   ============================================================ */
.section-calendar-grid-panel {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.section-calendar-header { margin-bottom: 14px; }
.section-calendar-title {
  color: var(--hb-text);
  font: 600 19px "Space Grotesk", sans-serif;
  letter-spacing: -0.2px;
}
.section-calendar-header p { color: var(--hb-text2); font: 400 13px "Instrument Sans", sans-serif; }
.section-calendar-shell { background: transparent; color: var(--hb-text); }

.section-calendar-toolbar { margin-bottom: 14px; }
.section-calendar-nav-button, .section-calendar-today-button {
  background: var(--hb-card);
  color: var(--hb-text2);
  border-color: var(--hb-border2);
}
.section-calendar-nav-button { border-radius: 10px; font-size: 1.4rem; }
.section-calendar-nav-button:hover { background: var(--hb-hover); color: var(--hb-accent); }
.section-calendar-today-button { color: var(--hb-accent); }
.section-calendar-today-button:hover { background: var(--hb-hover); }
.section-calendar-month-label {
  color: var(--hb-text);
  font: 600 19px "Space Grotesk", sans-serif;
  letter-spacing: -0.2px;
  font-size: 19px;
}

.section-calendar-legend { margin-bottom: 14px; gap: 8px; }
.section-calendar-legend span {
  background: var(--hb-card);
  border-color: var(--hb-border);
  color: var(--hb-text2);
  font: 500 12.5px "Instrument Sans", sans-serif;
  min-height: 34px;
  padding: 0 13px;
}

.section-calendar-grid-shell { border-color: var(--hb-border); border-radius: 20px; }
.section-calendar-weekdays {
  background: var(--hb-card);
  border-bottom-color: var(--hb-border);
  color: var(--hb-text3);
  font: 700 10px "Instrument Sans", sans-serif;
  letter-spacing: 0.8px;
}
.section-calendar-month-grid { background: var(--hb-border); }
.section-calendar-day { background: var(--hb-card); min-height: 100px; }
.section-calendar-day-summary { min-height: 100px; padding: 14px 12px 10px; }
.section-calendar-day-summary:hover { background: var(--hb-hover); }
.section-calendar-day-number { color: var(--hb-text); font: 500 15px "Instrument Sans", sans-serif; }
.section-calendar-day.is-outside-month .section-calendar-day-number { color: var(--hb-text3); }
.section-calendar-day.is-today .section-calendar-day-number { background: var(--hb-accent); }

.section-calendar-event-pill, .section-calendar-more-events {
  color: var(--hb-text);
  font: 600 11px "Instrument Sans", sans-serif;
}
.section-calendar-more-events { color: var(--hb-text3); }
.section-calendar-event-dot.is-test { background: var(--hb-accent); }
.section-calendar-event-dot.is-quiz { background: var(--hb-green); }
.section-calendar-event-dot.is-exam { background: #d99a2b; }

.section-calendar-day-popover {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(10, 23, 48, 0.6);
  color: var(--hb-text);
}
.section-calendar-popover-title { color: var(--hb-text); font: 600 21px "Space Grotesk", sans-serif; }
.section-calendar-day-form .section-calendar-type-pills .choice-chip-label {
  border-radius: 12px;
  font: 600 14px "Instrument Sans", sans-serif;
}
.choice-chip-input + .choice-chip-label {
  background: var(--hb-card);
  border-color: var(--hb-border2);
  color: var(--hb-text2);
}
.choice-chip-input:checked + .choice-chip-label {
  background: #eef4ff;
  border-color: var(--hb-accent);
  color: var(--hb-accent-strong);
}
html[data-theme="dark"] .choice-chip-input:checked + .choice-chip-label { background: rgba(122, 167, 255, 0.16); }
.section-calendar-day-actions .button-secondary,
.section-calendar-modal-actions .button-secondary {
  background: var(--hb-card);
  color: var(--hb-text);
  border-color: var(--hb-border2);
}
.section-calendar-day-actions .button-secondary:hover,
.section-calendar-modal-actions .button-secondary:hover {
  background: var(--hb-hover);
}
.section-calendar-day-actions .button-primary,
.section-calendar-modal-actions .button-primary {
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  border-color: transparent;
  color: #fff;
}

.section-calendar-day-event-list .section-calendar-event-details { display: grid; gap: 22px; }
.section-calendar-event-type-icon.is-test { background: var(--hb-accent); }
.section-calendar-event-type-icon.is-quiz { background: var(--hb-green); }
.section-calendar-event-type-icon.is-exam { background: #d99a2b; }
.section-calendar-event-title-block strong {
  color: var(--hb-text);
  font: 600 21px "Space Grotesk", sans-serif;
  letter-spacing: -0.3px;
}
.section-calendar-event-title-block span { color: var(--hb-text2); font: 500 14px "Instrument Sans", sans-serif; }
.section-calendar-modal-close {
  background: var(--hb-subtle);
  color: var(--hb-text2);
}
.section-calendar-modal-close:hover { background: var(--hb-hover); }

.section-calendar-status-chip.is-confirmed { background: #e4f6ee; color: #0f7a53; }
.section-calendar-status-chip.is-unconfirmed,
.section-calendar-status-chip.is-likely_incorrect { background: #fdf1d8; color: #8a5300; }
html[data-theme="dark"] .section-calendar-status-chip.is-confirmed { background: rgba(14, 143, 78, 0.2); color: #4fd394; }
html[data-theme="dark"] .section-calendar-status-chip.is-unconfirmed,
html[data-theme="dark"] .section-calendar-status-chip.is-likely_incorrect { background: rgba(217, 154, 43, 0.18); color: #e8b04a; }

.section-calendar-question { color: var(--hb-text); font: 600 15px "Instrument Sans", sans-serif; }
.section-calendar-icon-action { color: var(--hb-text2); }
.section-calendar-icon-action > span { border-color: var(--hb-border2); }
.section-calendar-icon-action.is-selected > span,
.section-calendar-icon-action.is-correct.is-selected > span,
.section-calendar-icon-action.is-yes.is-selected > span {
  background: var(--hb-green);
  border-color: var(--hb-green);
}
.section-calendar-icon-action.is-incorrect.is-selected > span,
.section-calendar-icon-action.is-no.is-selected > span {
  background: var(--hb-red);
  border-color: var(--hb-red);
}
.assessment-outcome-textarea {
  background: var(--hb-card);
  border: 1.5px solid var(--hb-border2);
  border-radius: 12px;
  color: var(--hb-text);
  font: 400 13.5px "Instrument Sans", sans-serif;
}
.section-calendar-remove-button { color: var(--hb-red); }

/* Section calendar — designer parity. The native details/popover behavior stays
   intact while the resting month view follows the Section design source. */
.section-calendar-grid-panel {
  padding: clamp(20px, 3vw, 34px);
  overflow: visible;
  border: 1px solid var(--hb-border);
  border-radius: 26px;
  background: var(--hb-card);
  box-shadow: 0 22px 48px -34px rgba(10, 23, 48, 0.42);
}

.section-calendar-shell {
  overflow: visible;
  background: transparent;
}

.section-calendar-toolbar {
  position: relative;
  align-items: center;
  min-height: 34px;
  margin: 0 0 15px;
}

.section-calendar-toolbar-primary {
  position: relative;
  gap: 8px;
}

.section-calendar-month-label {
  color: var(--hb-text);
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.section-calendar-month-nav {
  position: absolute;
  left: calc(100% + 8px);
  display: flex;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.section-calendar-toolbar:hover .section-calendar-month-nav,
.section-calendar-month-nav:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.section-calendar-nav-button {
  width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  background: var(--hb-subtle);
  color: var(--hb-text2);
  font-family: var(--font-text);
  font-size: 19px;
}

.section-calendar-featured-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #8a5300;
  background: #fdf1d8;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.section-calendar-featured-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -12px rgba(138, 83, 0, 0.7);
}

.section-calendar-featured-chip.is-test {
  color: var(--hb-accent-strong);
  background: #eaf0fe;
}

.section-calendar-featured-chip.is-exam {
  color: #a43b32;
  background: #fde9e7;
}

.section-calendar-featured-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-calendar-grid-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.section-calendar-weekdays {
  display: grid;
  margin: 0 0 5px;
  border: 0;
  background: transparent;
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.8px;
}

.section-calendar-weekdays span {
  padding: 8px 0;
}

.section-calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(3px, 0.45vw, 6px);
  overflow: visible;
  background: transparent;
}

.section-calendar-day {
  position: relative;
  min-height: 0;
  aspect-ratio: 1;
  overflow: visible;
  border: 0;
  background: transparent;
}

.section-calendar-day.is-outside-month {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.section-calendar-day-summary {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  place-items: center;
  border-radius: 13px;
  background: transparent;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.section-calendar-day-summary::after {
  content: none;
}

.section-calendar-day-summary:hover {
  background: var(--hb-hover);
  transform: translateY(-1px);
}

.section-calendar-day-number {
  display: grid;
  width: auto;
  height: auto;
  place-items: center;
  color: var(--hb-text2);
  font-family: var(--font-text);
  font-size: clamp(12px, 1.35vw, 16px);
  font-weight: 500;
  line-height: 1;
}

.section-calendar-day.has-events.is-quiz:not(.is-today)
  .section-calendar-day-summary {
  background: #fdf1d8;
}

.section-calendar-day.has-events.is-test:not(.is-today)
  .section-calendar-day-summary {
  background: #eaf0fe;
}

.section-calendar-day.has-events.is-exam:not(.is-today)
  .section-calendar-day-summary {
  background: #fde9e7;
}

.section-calendar-day.has-events:not(.is-today) .section-calendar-day-summary:hover {
  box-shadow: 0 10px 20px -17px rgba(10, 23, 48, 0.55);
}

.section-calendar-day.is-today .section-calendar-day-summary {
  background: linear-gradient(180deg, #2a62f0, #2155db);
  box-shadow: 0 12px 20px -12px rgba(33, 85, 219, 0.72);
}

.section-calendar-day.is-today .section-calendar-day-summary:hover {
  background: linear-gradient(180deg, #326bf6, #1d4ecb);
}

.section-calendar-day.is-today .section-calendar-day-number {
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.section-calendar-day.has-events.is-quiz:not(.is-today)
  .section-calendar-day-number {
  color: #8a5300;
  font-weight: 700;
}

.section-calendar-day.has-events.is-test:not(.is-today)
  .section-calendar-day-number {
  color: var(--hb-accent-strong);
  font-weight: 700;
}

.section-calendar-day.has-events.is-exam:not(.is-today)
  .section-calendar-day-number {
  color: #a43b32;
  font-weight: 700;
}

.section-calendar-day-events {
  position: absolute;
  right: 4px;
  bottom: 5px;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}

.section-calendar-event-pill {
  display: inline-flex;
  max-width: calc(100% - 10px);
  min-height: 16px;
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 999px;
  color: #8a5300;
  background: rgba(138, 83, 0, 0.1);
  font-family: var(--font-text);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.55px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-calendar-event-pill.is-test {
  color: var(--hb-accent-strong);
  background: rgba(23, 71, 201, 0.09);
}

.section-calendar-event-pill.is-exam {
  color: #a43b32;
  background: rgba(164, 59, 50, 0.09);
}

.section-calendar-day.is-today .section-calendar-event-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.section-calendar-more-events {
  position: absolute;
  right: 2px;
  bottom: 0;
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 8px;
  font-weight: 700;
}

.section-calendar-day.is-today .section-calendar-more-events {
  color: rgba(255, 255, 255, 0.78);
}

.section-calendar-featured-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--hb-border);
  border-top-width: 1px;
  border-radius: 14px;
  background: var(--hb-card2);
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.section-calendar-featured-row::before {
  position: absolute;
  top: -17px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--hb-border);
  content: "";
}

.section-calendar-featured-row:hover {
  border-color: var(--hb-border2);
  box-shadow: 0 10px 24px -22px rgba(10, 23, 48, 0.65);
  text-decoration: none;
}

.section-calendar-no-date-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hb-border);
}

.section-calendar-no-date-heading {
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-calendar-no-date-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  background: var(--hb-card2);
}

.section-calendar-no-date-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #8a5300;
  background: #fdf1d8;
  font: 500 25px/1 var(--font-text);
}

.section-calendar-no-date-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.section-calendar-no-date-copy strong {
  color: var(--hb-text);
  font-family: var(--font-display);
  font-size: 14px;
}

.section-calendar-no-date-copy small {
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 12px;
}

.section-calendar-no-date-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 40px;
  border-radius: 999px;
  color: var(--hb-text2);
  background: var(--hb-hover);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
}

.section-calendar-no-date-picker input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.section-calendar-no-date-save {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--hb-accent);
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 750;
}

.section-calendar-featured-date {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #8a5300;
  background: #fdf1d8;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.section-calendar-featured-date.is-test {
  color: var(--hb-accent-strong);
  background: #eaf0fe;
}

.section-calendar-featured-date.is-exam {
  color: #a43b32;
  background: #fde9e7;
}

.section-calendar-featured-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.section-calendar-featured-copy strong {
  overflow: hidden;
  color: var(--hb-text);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-calendar-featured-copy span {
  overflow: hidden;
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-calendar-featured-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  flex: 0 0 auto;
  gap: 6px;
  padding: 0 15px;
  border-radius: 10px;
  color: var(--hb-text2);
  background: var(--hb-subtle);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.section-calendar-featured-action:hover {
  color: #fff;
  background: var(--hb-accent);
  transform: translateY(-1px);
}

.section-calendar-featured-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html[data-theme="dark"] .section-calendar-featured-chip,
html[data-theme="dark"]
  .section-calendar-day.has-events.is-quiz:not(.is-today)
  .section-calendar-day-summary,
html[data-theme="dark"] .section-calendar-featured-date {
  color: #e8b04a;
  background: rgba(217, 154, 43, 0.18);
}

html[data-theme="dark"] .section-calendar-featured-chip.is-test,
html[data-theme="dark"]
  .section-calendar-day.has-events.is-test:not(.is-today)
  .section-calendar-day-summary,
html[data-theme="dark"] .section-calendar-featured-date.is-test {
  color: #7aa7ff;
  background: rgba(122, 167, 255, 0.16);
}

html[data-theme="dark"] .section-calendar-featured-chip.is-exam,
html[data-theme="dark"]
  .section-calendar-day.has-events.is-exam:not(.is-today)
  .section-calendar-day-summary,
html[data-theme="dark"] .section-calendar-featured-date.is-exam {
  color: #f1847a;
  background: rgba(226, 86, 77, 0.17);
}

@media (max-width: 760px) {
  .section-calendar-grid-panel {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .section-calendar-toolbar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .section-calendar-toolbar-primary {
    justify-content: flex-start;
  }

  .section-calendar-month-label {
    order: 0;
    font-size: 18px;
  }

  .section-calendar-month-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .section-calendar-nav-button {
    width: 28px;
    min-height: 28px;
    font-size: 17px;
  }

  .section-calendar-featured-chip {
    max-width: 46%;
    overflow: hidden;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section-calendar-weekdays {
    display: grid;
  }

  .section-calendar-month-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }

  .section-calendar-day {
    display: block;
    min-height: 0;
    aspect-ratio: 1;
  }

  .section-calendar-day.is-outside-month {
    display: block;
  }

  .section-calendar-day-summary {
    display: grid;
    min-height: 0;
    padding: 0;
    grid-template-columns: 1fr;
  }

  .section-calendar-day-number {
    font-size: clamp(10px, 3vw, 13px);
  }

  .section-calendar-event-pill {
    max-width: 100%;
    min-height: 12px;
    padding: 2px 3px;
    font-size: 6px;
    letter-spacing: 0.2px;
  }

  .section-calendar-more-events {
    display: none;
  }

  .section-calendar-featured-row {
    align-items: center;
    min-height: 66px;
    padding: 10px;
  }

  .section-calendar-featured-copy span {
    white-space: normal;
  }

  .section-calendar-featured-action {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0;
  }

  .section-calendar-featured-action svg {
    width: 17px;
    height: 17px;
  }
}

/* Empty calendar dates open the focused designer assessment composer. Saved
   dates continue to use the compact event-detail popover above. */
.section-calendar-day-popover.is-add-assessment {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  width: auto;
  min-width: 0;
  max-width: none;
  max-height: none;
  padding: 90px 16px 24px;
  place-items: start center;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: rgba(10, 23, 48, 0.52);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: none;
}

.section-calendar-day:nth-child(7n)
  .section-calendar-day-popover.is-add-assessment,
.section-calendar-day:nth-child(7n - 1)
  .section-calendar-day-popover.is-add-assessment {
  left: 0;
  width: auto;
}

.section-calendar-add-assessment-form {
  position: relative;
  display: grid;
  width: min(420px, 100%);
  gap: 0;
  padding: 28px 28px 26px;
  border: 1px solid var(--hb-border);
  border-radius: 24px;
  background: var(--hb-card);
  box-shadow: 0 40px 80px -30px rgba(10, 23, 48, 0.6);
  color: var(--hb-text);
  font-family: var(--font-text);
  animation: section-calendar-assessment-enter 220ms
    cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes section-calendar-assessment-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-calendar-add-assessment-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--hb-border);
  border-radius: 50%;
  background: var(--hb-card);
  color: var(--hb-text2);
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease,
    transform 140ms ease;
}

.section-calendar-add-assessment-close:hover {
  border-color: var(--hb-border2);
  background: var(--hb-hover);
  transform: translateY(-1px);
}

.section-calendar-add-assessment-eyebrow {
  padding-right: 50px;
  color: var(--hb-accent-strong);
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.section-calendar-add-assessment-date {
  margin: 9px 0 0;
  padding-right: 50px;
  color: var(--hb-text);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.7px;
}

.section-calendar-add-assessment-field {
  display: grid;
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.section-calendar-add-assessment-field legend {
  margin: 0 0 8px;
  padding: 0;
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.section-calendar-assessment-class-pills,
.section-calendar-add-assessment-form .section-calendar-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-calendar-add-assessment-form
  .choice-chip-option
  .choice-chip-label {
  width: auto;
  min-width: 0;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  background: var(--hb-card);
  color: var(--hb-text2);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  justify-content: center;
}

.section-calendar-add-assessment-form
  .choice-chip-input:checked
  + .choice-chip-label {
  border-color: var(--hb-accent);
  background: linear-gradient(180deg, #2f66ef, #2355da);
  box-shadow: 0 10px 18px -13px rgba(35, 85, 218, 0.9);
  color: #fff;
}

.section-calendar-add-assessment-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border-radius: 13px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
}

.section-calendar-add-assessment-submit:disabled {
  border-color: transparent;
  background: #b9c6dc;
  box-shadow: none;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

html[data-theme="dark"] .section-calendar-day-popover.is-add-assessment {
  background: rgba(4, 10, 24, 0.66);
}

html[data-theme="dark"] .section-calendar-add-assessment-submit:disabled {
  background: rgba(148, 163, 184, 0.42);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 520px) {
  .section-calendar-day-popover.is-add-assessment {
    padding: 28px 12px;
    place-items: center;
  }

  .section-calendar-add-assessment-form {
    padding: 25px 20px 22px;
    border-radius: 22px;
  }

  .section-calendar-add-assessment-close {
    top: 18px;
    right: 18px;
  }

  .section-calendar-add-assessment-date {
    font-size: 27px;
  }

  .section-calendar-add-assessment-form
    .choice-chip-option
    .choice-chip-label {
    min-height: 44px;
    padding: 10px 15px;
  }
}

/* ============================================================
   Phase 2d: 90-second check (quick-quiz) reskin — the in-workspace
   landing panel (SectionQuickQuizPanel) and the quiz-taking /
   results page (renderSectionQuickQuizPage, which reuses the same
   section-workspace shell via workspacePanelOverrideMarkup). Same
   DOM/class names/data-* attributes and stepper script — restyled
   only. Appended at end of file so these rules win the cascade.
   ============================================================ */
.quick-quiz-landing-panel { gap: 0; }
.quick-quiz-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 152px;
  padding: 32px 50px;
  border: none;
  border-radius: 24px;
  margin-bottom: 24px;
  background: linear-gradient(106deg, #0c1c3a 0%, #183f94 62%, #155d76 100%);
  box-shadow: 0 24px 46px -28px rgba(12, 28, 58, 0.78);
}

.quick-quiz-hero::after {
  position: absolute;
  z-index: -1;
  right: -28px;
  bottom: -112px;
  width: 188px;
  height: 188px;
  border: 26px solid rgba(102, 180, 211, 0.25);
  border-radius: 50%;
  content: "";
}

.quick-quiz-hero-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffd35c;
}

.quick-quiz-hero-icon svg {
  width: 34px;
  height: 34px;
}

.quick-quiz-headline {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 20ch;
  white-space: normal;
  text-wrap: balance;
}

.quick-quiz-hero-action {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 326px);
  margin: 0;
}

.quick-quiz-start-button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 64px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 34px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #0c1c3a;
  box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.55);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.quick-quiz-start-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.quick-quiz-start-button:hover {
  background: #f7f9ff;
  transform: translateY(-2px);
}

.quick-quiz-start-button:hover svg {
  transform: translateX(3px);
}

.quick-quiz-hero-status {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #e4edff;
  font-family: var(--font-text);
}

@media (min-width: 941px) and (max-width: 1300px) {
  .quick-quiz-hero {
    gap: 20px;
    padding: 28px 30px;
  }

  .quick-quiz-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .quick-quiz-headline {
    font-size: 22px;
  }

  .quick-quiz-start-button {
    padding-inline: 26px;
  }

  .quick-quiz-hero-action {
    width: min(100%, 280px);
  }
}

@media (max-width: 940px) {
  .quick-quiz-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    padding: 28px 30px;
  }

  .quick-quiz-hero-action,
  .quick-quiz-hero-status {
    grid-column: 1 / -1;
  }

  .quick-quiz-hero-action {
    justify-self: stretch;
    width: 100%;
  }

  .quick-quiz-start-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .quick-quiz-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 22px;
    border-radius: 20px;
  }

  .quick-quiz-hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .quick-quiz-hero-icon svg {
    width: 29px;
    height: 29px;
  }

  .quick-quiz-headline {
    font-size: 21px;
    line-height: 1.2;
    white-space: normal;
  }

  .quick-quiz-start-button {
    height: 56px;
    border-radius: 17px;
    font-size: 16px;
  }
}

.quick-quiz-recent-heading {
  color: var(--hb-text3);
  font: 700 10.5px "Instrument Sans", sans-serif;
  letter-spacing: 1.2px;
}
.quick-quiz-recent-row { border-bottom-color: var(--hb-border); border-radius: 13px; padding: 12px 8px; }
.quick-quiz-recent-row:hover { background: var(--hb-hover); }
.quick-quiz-recent-title { color: var(--hb-text); font: 600 14px "Instrument Sans", sans-serif; }
.quick-quiz-recent-meta { color: var(--hb-text3); font: 400 12px "Instrument Sans", sans-serif; }
.quick-quiz-recent-badge { background: #eaf0fe; color: var(--hb-accent-strong); }
.quick-quiz-recent-badge.is-done { background: #e4f6ee; color: #0f7a53; }
html[data-theme="dark"] .quick-quiz-recent-badge { background: rgba(122, 167, 255, 0.16); color: #a9c3ff; }
html[data-theme="dark"] .quick-quiz-recent-badge.is-done { background: rgba(14, 143, 78, 0.2); color: #4fd394; }
.quick-quiz-recent-chevron { color: var(--hb-text3); }

.quick-quiz-progress-track { background: var(--hb-track); }
.quick-quiz-progress-fill { background: var(--hb-accent); }
.quick-quiz-question-heading .eyebrow {
  color: var(--hb-text3);
  font: 700 11px "Instrument Sans", sans-serif;
  letter-spacing: 1.1px;
}
.quick-quiz-question-card > strong {
  color: var(--hb-text);
  font: 600 21px "Space Grotesk", sans-serif;
  letter-spacing: -0.3px;
  line-height: 1.35;
}
.quick-quiz-option-card {
  border-bottom-color: var(--hb-border);
  border-radius: 13px;
  color: var(--hb-text);
  font: 500 14.5px "Instrument Sans", sans-serif;
}
.quick-quiz-option-card::before { border-color: var(--hb-border2); background: var(--hb-card); }
.quick-quiz-option-card:hover { background: var(--hb-hover); border-color: var(--hb-border); }
.quick-quiz-option-card:has(input:checked) { background: #eef4ff; }
html[data-theme="dark"] .quick-quiz-option-card:has(input:checked) { background: rgba(122, 167, 255, 0.16); }
.quick-quiz-option-card:has(input:checked)::before { background: var(--hb-accent); border-color: var(--hb-accent); box-shadow: inset 0 0 0 3px var(--hb-card); }
.quick-quiz-option-card:has(input:focus-visible) { outline-color: rgba(33, 89, 230, 0.28); }

.quick-quiz-nav { border-top-color: var(--hb-border); }
.quick-quiz-nav [data-quick-quiz-back] { color: var(--hb-accent); }
.quick-quiz-nav [data-quick-quiz-stop-grade] {
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  border-radius: 13px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 26px -12px rgba(26, 70, 194, 0.7);
}
.quick-quiz-nav [data-quick-quiz-stop-grade]:hover { transform: translateY(-1px); }

.quick-quiz-review-icon.is-correct { background: #e4f6ee; color: #0f7a53; }
.quick-quiz-review-icon.is-incorrect { background: #fdecec; color: #c0392b; }
html[data-theme="dark"] .quick-quiz-review-icon.is-correct { background: rgba(14, 143, 78, 0.2); color: #4fd394; }
html[data-theme="dark"] .quick-quiz-review-icon.is-incorrect { background: rgba(224, 86, 63, 0.18); color: #ff9a8a; }

/* ==== Phase 2e: Section workspace — Exam lock-in panel ==== */

.exam-lock-in-panel { display: flex; flex-direction: column; }

.exam-lock-in-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 52px 20px;
  text-align: center;
}
.exam-lock-in-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--hb-subtle);
  color: var(--hb-text3);
}
.exam-lock-in-empty-icon svg { width: 26px; height: 26px; }
.exam-lock-in-empty-state h3 {
  margin: 0;
  color: var(--hb-text);
  font: 600 17px "Space Grotesk", sans-serif;
}
.exam-lock-in-empty-state p {
  margin: 0;
  max-width: 360px;
  color: var(--hb-text3);
  font: 400 13px "Instrument Sans", sans-serif;
}
.exam-lock-in-empty-state .button-secondary {
  margin-top: 6px;
  background: var(--hb-card);
  color: var(--hb-text);
  border-color: var(--hb-border2);
}
.exam-lock-in-empty-state .button-secondary:hover {
  border-color: var(--hb-accent);
  color: var(--hb-accent);
  background: var(--hb-hover);
}

.exam-lock-in-targets {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.exam-lock-in-targets::-webkit-scrollbar { display: none; }

.exam-lock-in-targets-label {
  flex: 0 0 auto;
  color: var(--hb-text3);
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exam-lock-in-target {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  color: var(--hb-text2);
  background: var(--hb-card);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.exam-lock-in-target small {
  color: var(--hb-text3);
  font-size: 11px;
}

.exam-lock-in-target b {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: var(--hb-hover);
  font-size: 10px;
}

.exam-lock-in-target.is-active {
  border-color: var(--hb-accent);
  color: #fff;
  background: var(--hb-accent);
  box-shadow: 0 10px 24px -18px rgba(37, 82, 211, 0.72);
}

.exam-lock-in-target.is-active small { color: rgba(255, 255, 255, 0.78); }
.exam-lock-in-target.is-active b { background: rgba(255, 255, 255, 0.18); }

.study-stream-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(360px, 58vw);
  min-height: 34px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(37, 82, 211, 0.2);
  border-radius: 999px;
  color: var(--hb-accent);
  background: var(--hb-hover);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.study-stream-topic-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-stream-topic-pill svg {
  flex: none;
}

@media (max-width: 640px) {
  .section-calendar-no-date-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-calendar-no-date-picker {
    flex: 1;
    margin-left: 57px;
  }

  .exam-lock-in-targets-label {
    position: sticky;
    left: 0;
    z-index: 1;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    background: var(--hb-card);
  }
}

.exam-lock-in-hero { margin-bottom: 4px; }
.exam-lock-in-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf0fe;
  color: #1747c9;
  font: 700 10.5px "Instrument Sans", sans-serif;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
html[data-theme="dark"] .exam-lock-in-kicker { background: rgba(122, 167, 255, 0.16); color: var(--hb-accent); }
.exam-lock-in-hero h2 {
  margin: 0;
  color: var(--hb-text);
  font: 600 28px "Space Grotesk", sans-serif;
  letter-spacing: -0.6px;
}
.exam-lock-in-subtitle {
  margin: 8px 0 20px;
  color: var(--hb-text2);
  font: 400 14px "Instrument Sans", sans-serif;
}

.exam-lock-in-cram-savings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 159, 110, 0.2);
  border-radius: 12px;
  color: #0f7a53;
  background: #eef9f4;
}

.exam-lock-in-cram-savings span {
  display: inline-flex;
}

.exam-lock-in-cram-savings svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.exam-lock-in-cram-savings strong {
  font: 700 14px/1 var(--hb-font-display);
}

.exam-lock-in-cram-savings small {
  color: var(--hb-text2);
  font: 500 12px/1.2 var(--hb-font-text);
}

html[data-theme="dark"] .exam-lock-in-cram-savings {
  border-color: rgba(79, 211, 148, 0.25);
  color: #4fd394;
  background: rgba(18, 162, 107, 0.12);
}

.exam-lock-in-readiness-gap {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #cbd8f7;
  border-left: 4px solid var(--hb-accent);
  border-radius: 12px;
  background: #f3f6fe;
}

.exam-lock-in-readiness-gap.is-complete {
  border-color: #bfe6d4;
  border-left-color: #0f9f6e;
  background: #eef9f4;
}

.exam-lock-in-readiness-score,
.exam-lock-in-readiness-copy {
  display: flex;
  flex-direction: column;
}

.exam-lock-in-readiness-score strong {
  color: var(--hb-accent);
  font: 700 28px/1 var(--hb-font-display);
}

.exam-lock-in-readiness-gap.is-complete .exam-lock-in-readiness-score strong {
  color: #0f8761;
}

.exam-lock-in-readiness-score small {
  margin-top: 5px;
  color: var(--hb-text3);
  font: 700 10px/1.2 var(--hb-font-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exam-lock-in-readiness-copy strong {
  color: var(--hb-text);
  font: 700 16px/1.3 var(--hb-font-display);
}

.exam-lock-in-readiness-copy span {
  margin-top: 4px;
  color: var(--hb-text2);
  font: 500 13px/1.45 var(--hb-font-text);
}

html[data-theme="dark"] .exam-lock-in-readiness-gap {
  border-color: rgba(122, 167, 255, 0.25);
  border-left-color: var(--hb-accent);
  background: rgba(122, 167, 255, 0.08);
}

html[data-theme="dark"] .exam-lock-in-readiness-gap.is-complete {
  border-color: rgba(79, 211, 148, 0.25);
  border-left-color: #4fd394;
  background: rgba(18, 162, 107, 0.1);
}

.exam-lock-in-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 560px) {
  .exam-lock-in-readiness-gap {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.exam-lock-in-stat {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 18px;
  border: 2px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.exam-lock-in-stat:hover { transform: translateY(-1px); }
.exam-lock-in-stat:focus-visible {
  outline: 3px solid rgba(33, 89, 230, 0.25);
  outline-offset: 2px;
}
.exam-lock-in-stat[aria-pressed="true"] {
  border-color: currentColor;
  box-shadow: 0 8px 18px -14px rgba(11, 25, 52, 0.7);
}
.exam-lock-in-stat strong { font: 700 26px "Space Grotesk", sans-serif; line-height: 1; }
.exam-lock-in-stat small {
  margin-top: 8px;
  font: 700 10.5px "Instrument Sans", sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.exam-lock-in-stat-amber { background: #fdf1d8; }
.exam-lock-in-stat-amber[aria-pressed="true"] { border-color: #8a5300; }
.exam-lock-in-stat-amber strong, .exam-lock-in-stat-amber small { color: #8a5300; }
html[data-theme="dark"] .exam-lock-in-stat-amber { background: rgba(224, 161, 39, 0.16); }
html[data-theme="dark"] .exam-lock-in-stat-amber strong, html[data-theme="dark"] .exam-lock-in-stat-amber small { color: #e0a127; }
.exam-lock-in-stat-orange { background: #fbe8df; }
.exam-lock-in-stat-orange[aria-pressed="true"] { border-color: #b4531f; }
.exam-lock-in-stat-orange strong, .exam-lock-in-stat-orange small { color: #b4531f; }
html[data-theme="dark"] .exam-lock-in-stat-orange { background: rgba(226, 119, 63, 0.16); }
html[data-theme="dark"] .exam-lock-in-stat-orange strong, html[data-theme="dark"] .exam-lock-in-stat-orange small { color: #ef9868; }
.exam-lock-in-stat-green { background: #e4f6ee; }
.exam-lock-in-stat-green[aria-pressed="true"] { border-color: #0f7a53; }
.exam-lock-in-stat-green strong, .exam-lock-in-stat-green small { color: #0f7a53; }
html[data-theme="dark"] .exam-lock-in-stat-green { background: rgba(18, 162, 107, 0.16); }
html[data-theme="dark"] .exam-lock-in-stat-green strong, html[data-theme="dark"] .exam-lock-in-stat-green small { color: #4fd394; }
.exam-lock-in-stat-red { background: #fdecec; }
.exam-lock-in-stat-red[aria-pressed="true"] { border-color: #c0392b; }
.exam-lock-in-stat-red strong, .exam-lock-in-stat-red small { color: #c0392b; }
html[data-theme="dark"] .exam-lock-in-stat-red { background: rgba(226, 86, 77, 0.16); }
html[data-theme="dark"] .exam-lock-in-stat-red strong, html[data-theme="dark"] .exam-lock-in-stat-red small { color: #ff9a8a; }

.exam-lock-in-category-results {
  margin: -8px 0 22px;
  border: 1px solid var(--hb-border2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--hb-card);
}

.exam-lock-in-category-results[hidden] { display: none; }

.exam-lock-in-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--hb-border2);
}

.exam-lock-in-category-head > div { min-width: 0; }
.exam-lock-in-category-head span {
  display: block;
  color: var(--hb-text3);
  font: 700 10px/1.2 var(--hb-font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.exam-lock-in-category-head h3 {
  margin: 3px 0 0;
  color: var(--hb-text);
  font: 650 17px/1.25 var(--hb-font-display);
}
.exam-lock-in-category-head > strong {
  color: var(--hb-accent);
  font: 700 18px/1 var(--hb-font-display);
}

.exam-lock-in-category-list { display: grid; }
.exam-lock-in-category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
}
.exam-lock-in-category-row + .exam-lock-in-category-row {
  border-top: 1px solid var(--hb-border2);
}
.exam-lock-in-category-row:hover { background: var(--hb-hover); }
.exam-lock-in-category-copy { min-width: 0; flex: 1; }
.exam-lock-in-category-copy strong,
.exam-lock-in-category-copy small { display: block; }
.exam-lock-in-category-copy strong {
  color: var(--hb-text);
  font: 650 14.5px/1.3 var(--hb-font-display);
}
.exam-lock-in-category-copy small {
  margin-top: 4px;
  color: var(--hb-text3);
  font: 500 12px/1.45 var(--hb-font-text);
}
.exam-lock-in-category-metric {
  flex: none;
  color: var(--hb-accent);
  font: 700 14px/1 var(--hb-font-display);
}
.exam-lock-in-category-empty {
  padding: 20px 18px;
  color: var(--hb-text3);
  font: 500 13px/1.5 var(--hb-font-text);
}

.exam-lock-in-stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 2px 0 24px;
}
.exam-lock-in-step { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.exam-lock-in-step-circle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex: none;
  font: 700 12px "JetBrains Mono", monospace;
}
.exam-lock-in-step-circle svg { width: 14px; height: 14px; }
.exam-lock-in-step-label { color: var(--hb-text); font: 600 13.5px "Instrument Sans", sans-serif; }
.exam-lock-in-step-line { flex: 1; height: 2px; background: var(--hb-border2); margin: 0 6px; min-width: 16px; }

.exam-lock-in-step-done .exam-lock-in-step-circle,
.exam-lock-in-step-active .exam-lock-in-step-circle {
  background: var(--hb-accent);
  color: #fff;
}
.exam-lock-in-step-locked .exam-lock-in-step-circle {
  border: 2px solid var(--hb-border2);
  color: var(--hb-text3);
}
.exam-lock-in-step-locked .exam-lock-in-step-circle svg { width: 12px; height: 12px; }
.exam-lock-in-step-locked .exam-lock-in-step-label { color: var(--hb-text3); }

.exam-lock-in-element-list { display: flex; flex-direction: column; gap: 16px; }
.exam-lock-in-repair {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exam-lock-in-recheck,
.exam-lock-in-plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exam-lock-in-recheck-intro {
  margin: -2px 2px 2px;
  color: var(--hb-text2);
  font: 500 15px/1.5 var(--font-text);
}
.exam-lock-in-recheck-card {
  padding: 20px 22px;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}
html[data-theme="dark"] .exam-lock-in-recheck-card { box-shadow: none; }
.exam-lock-in-recheck-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.exam-lock-in-recheck-head h3 {
  margin: 0;
  color: var(--hb-text);
  font: 600 17px var(--font-display);
  letter-spacing: -0.2px;
}
.exam-lock-in-recheck-tag {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  font: 700 12px var(--font-text);
}
.exam-lock-in-recheck-tag-shaky {
  background: #fdf1d8;
  color: #8a5300;
}
.exam-lock-in-recheck-tag-forgot {
  background: #fdecec;
  color: #c0392b;
}
html[data-theme="dark"] .exam-lock-in-recheck-tag-shaky {
  background: rgba(224, 161, 39, 0.16);
  color: #e0a127;
}
html[data-theme="dark"] .exam-lock-in-recheck-tag-forgot {
  background: rgba(226, 86, 77, 0.16);
  color: #ff9a8a;
}
.exam-lock-in-triage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px;
}
.exam-lock-in-triage-summary strong {
  color: var(--hb-text);
  font: 700 17px var(--font-display);
}
.exam-lock-in-triage-summary span {
  color: var(--hb-text3);
  font: 500 14px var(--font-text);
}

.exam-lock-in-scan {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exam-lock-in-scan-group {
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: var(--hb-card);
}
.exam-lock-in-scan-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hb-border);
  color: var(--hb-text2);
  font: 700 11px var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.exam-lock-in-scan-group h3::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hb-text3);
  content: "";
}
.exam-lock-in-scan-group-misunderstood h3::before { background: #e2564d; }
.exam-lock-in-scan-group-shaky h3::before { background: #e0a127; }
.exam-lock-in-scan-group-faded h3::before { background: #68809e; }
.exam-lock-in-scan-rows {
  display: flex;
  flex-direction: column;
}
.exam-lock-in-scan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 14px 18px;
}
.exam-lock-in-scan-row + .exam-lock-in-scan-row {
  border-top: 1px solid var(--hb-border);
}
.exam-lock-in-scan-row strong {
  min-width: 0;
  color: var(--hb-text);
  font: 600 16px var(--font-display);
  letter-spacing: -0.01em;
}
.exam-lock-in-scan-row span {
  flex: none;
  color: var(--hb-accent);
  font: 700 15px var(--font-display);
}
.exam-lock-in-start-repair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2d63ee 0%, #2048c8 100%);
  box-shadow: 0 20px 30px -18px rgba(32, 72, 200, 0.72);
  color: #fff;
  font: 700 16px var(--font-text);
  text-decoration: none;
  transition:
    box-shadow 140ms ease,
    transform 140ms ease;
}
.exam-lock-in-start-repair:hover {
  box-shadow: 0 24px 34px -18px rgba(32, 72, 200, 0.8);
  color: #fff;
  transform: translateY(-2px);
}
.exam-lock-in-start-repair:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hb-accent) 34%, transparent);
  outline-offset: 3px;
}

.exam-lock-in-empty-success { padding: 36px 20px; }
.exam-lock-in-empty-success .exam-lock-in-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #123a8f, #0f9f6e);
  color: #fff;
  box-shadow: 0 18px 34px -14px rgba(15, 159, 110, 0.6);
}
.exam-lock-in-empty-success .exam-lock-in-empty-icon svg { width: 28px; height: 28px; }
.exam-lock-in-empty-success h3 { font: 600 20px var(--font-display); letter-spacing: -0.3px; }
.exam-lock-in-empty-success p { color: var(--hb-text2); }

.exam-lock-in-element {
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  padding: 20px 22px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}
html[data-theme="dark"] .exam-lock-in-element { box-shadow: none; }
.exam-lock-in-element-head { display: flex; align-items: flex-start; gap: 14px; }
.exam-lock-in-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eaf0fe;
  color: #1747c9;
  font: 700 13px var(--font-text);
  flex: none;
  margin-top: 1px;
}
html[data-theme="dark"] .exam-lock-in-rank { background: rgba(122, 167, 255, 0.16); color: var(--hb-accent); }
.exam-lock-in-element-main { flex: 1; min-width: 0; }
.exam-lock-in-element-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.exam-lock-in-element-title-row h3 {
  margin: 0;
  color: var(--hb-text);
  font: 600 17px var(--font-display);
  letter-spacing: -0.2px;
}
.exam-lock-in-risk { color: var(--hb-accent); font: 700 15px var(--font-display); flex: none; }
.exam-lock-in-reason { margin: 4px 0 0; color: var(--hb-text3); font: 400 12.5px var(--font-text); }

.exam-lock-in-element-content { margin-top: 14px; }

.exam-lock-in-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

.exam-lock-in-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text2);
  font: 600 13.5px var(--font-text);
  cursor: pointer;
  transition: all 0.13s ease;
}
.exam-lock-in-pill:hover { border-color: var(--hb-accent); color: var(--hb-accent); }

.exam-lock-in-pill-known:hover { background: #e4f6ee; border-color: #12a26b; color: #0f7a53; }
html[data-theme="dark"] .exam-lock-in-pill-known:hover { background: rgba(18, 162, 107, 0.16); color: #4fd394; }
.exam-lock-in-pill-known.is-selected {
  background: #e4f6ee;
  border-color: #12a26b;
  color: #0f7a53;
}
html[data-theme="dark"] .exam-lock-in-pill-known.is-selected {
  background: rgba(18, 162, 107, 0.16);
  color: #4fd394;
}

.exam-lock-in-pill-shaky:hover { background: #fdf1d8; border-color: #e0a127; color: #8a5300; }
html[data-theme="dark"] .exam-lock-in-pill-shaky:hover { background: rgba(224, 161, 39, 0.16); }
.exam-lock-in-pill-shaky.is-selected {
  background: #fdf1d8;
  border-color: #e0a127;
  color: #8a5300;
}
html[data-theme="dark"] .exam-lock-in-pill-shaky.is-selected {
  background: rgba(224, 161, 39, 0.16);
  color: #e0a127;
}

.exam-lock-in-pill-forgot:hover { background: #fdecec; border-color: #e2564d; color: #c0392b; }
html[data-theme="dark"] .exam-lock-in-pill-forgot:hover { background: rgba(226, 86, 77, 0.16); }
.exam-lock-in-pill-forgot.is-selected {
  background: #fdecec;
  border-color: #e2564d;
  color: #c0392b;
}
html[data-theme="dark"] .exam-lock-in-pill-forgot.is-selected {
  background: rgba(226, 86, 77, 0.16);
  color: #ff9a8a;
}
.exam-lock-in-pill-got_it:hover,
.exam-lock-in-pill-got_it.is-selected {
  background: #e4f6ee;
  border-color: #12a26b;
  color: #0f7a53;
}
.exam-lock-in-pill-keep_in_plan:hover,
.exam-lock-in-pill-keep_in_plan.is-selected {
  border-color: var(--hb-accent);
  background: color-mix(in srgb, var(--hb-accent) 8%, var(--hb-card));
  color: var(--hb-accent);
}
html[data-theme="dark"] .exam-lock-in-pill-got_it:hover,
html[data-theme="dark"] .exam-lock-in-pill-got_it.is-selected {
  background: rgba(18, 162, 107, 0.16);
  color: #4fd394;
}

.exam-lock-in-triage-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2d63ee 0%, #2048c8 100%);
  box-shadow: 0 20px 30px -18px rgba(32, 72, 200, 0.72);
  color: #fff;
  font: 700 16px var(--font-text);
  text-decoration: none;
  transition:
    box-shadow 140ms ease,
    transform 140ms ease;
}
.exam-lock-in-triage-cta:hover {
  box-shadow: 0 24px 34px -18px rgba(32, 72, 200, 0.8);
  color: #fff;
  transform: translateY(-2px);
}
.exam-lock-in-triage-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hb-accent) 34%, transparent);
  outline-offset: 3px;
}
.exam-lock-in-triage-cta.is-complete {
  background: linear-gradient(180deg, #17b978 0%, #0d9862 100%);
  box-shadow: 0 20px 30px -18px rgba(13, 152, 98, 0.68);
}
.exam-lock-in-triage-cta.is-disabled {
  background: linear-gradient(180deg, #2d63ee 0%, #2048c8 100%);
  opacity: 0.58;
  box-shadow: none;
}
.exam-lock-in-triage-cta.is-disabled:hover {
  box-shadow: none;
  transform: none;
}
.exam-lock-in-plan-heading {
  padding: 4px 2px;
}
.exam-lock-in-plan-heading h3 {
  margin: 6px 0 0;
  color: var(--hb-text);
  font: 600 22px var(--font-display);
  letter-spacing: -0.02em;
}
.exam-lock-in-plan-assessment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
}
.exam-lock-in-plan-date {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff2d2;
  color: #8a5300;
  font: 700 22px var(--font-display);
}
html[data-theme="dark"] .exam-lock-in-plan-date {
  background: rgba(224, 161, 39, 0.16);
  color: #e0a127;
}
.exam-lock-in-plan-assessment-copy {
  min-width: 0;
}
.exam-lock-in-plan-assessment-copy h3 {
  margin: 0;
  color: var(--hb-text);
  font: 600 17px var(--font-display);
  letter-spacing: -0.015em;
}
.exam-lock-in-plan-assessment-copy p {
  margin: 4px 0 0;
  color: var(--hb-text3);
  font: 500 14px/1.4 var(--font-text);
}
.exam-lock-in-plan-countdown {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff2d2;
  color: #8a5300;
  font: 700 12px var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[data-theme="dark"] .exam-lock-in-plan-countdown {
  background: rgba(224, 161, 39, 0.16);
  color: #e0a127;
}
.exam-lock-in-lock-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exam-lock-in-lock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
  box-shadow: 0 2px 7px rgba(16, 42, 90, 0.04);
}
html[data-theme="dark"] .exam-lock-in-lock-card {
  box-shadow: none;
}
.exam-lock-in-lock-audio {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  color: var(--hb-accent);
}
.exam-lock-in-lock-audio svg {
  width: 21px;
  height: 21px;
}
.exam-lock-in-lock-main {
  min-width: 0;
}
.exam-lock-in-lock-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.exam-lock-in-lock-heading h3 {
  margin: 0;
  color: var(--hb-text);
  font: 600 17px var(--font-display);
  letter-spacing: -0.015em;
}
.exam-lock-in-lock-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 11px var(--font-text);
}
.exam-lock-in-lock-tag-shaky {
  background: #fdf1d8;
  color: #8a5300;
}
.exam-lock-in-lock-tag-forgot {
  background: #fdecec;
  color: #c0392b;
}
html[data-theme="dark"] .exam-lock-in-lock-tag-shaky {
  background: rgba(224, 161, 39, 0.16);
  color: #e0a127;
}
html[data-theme="dark"] .exam-lock-in-lock-tag-forgot {
  background: rgba(226, 86, 77, 0.16);
  color: #ff9a8a;
}
.exam-lock-in-lock-content {
  margin-top: 8px;
  color: var(--hb-text2);
  font: 400 14px/1.55 var(--font-text);
}
.exam-lock-in-lock-content > :first-child {
  margin-top: 0;
}
.exam-lock-in-lock-content > :last-child {
  margin-bottom: 0;
}
.exam-lock-in-lock-content .element-content,
.exam-lock-in-lock-content .element-block {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.exam-lock-in-lock-meta {
  margin: 8px 0 0;
  color: var(--hb-text3);
  font: 500 12.5px var(--font-text);
}
.exam-lock-in-lock-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: center;
  color: var(--hb-accent);
  font: 700 13px var(--font-text);
  text-decoration: none;
  white-space: nowrap;
}
.exam-lock-in-lock-action:hover {
  color: var(--hb-accent-strong);
  transform: translateX(2px);
}
.exam-lock-in-plan-cta svg {
  width: 18px;
  height: 18px;
}
.exam-lock-in-plan-items {
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: var(--hb-card);
}
.exam-lock-in-plan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 14px 18px;
}
.exam-lock-in-plan-item + .exam-lock-in-plan-item {
  border-top: 1px solid var(--hb-border);
}
.exam-lock-in-plan-item strong {
  color: var(--hb-text);
  font: 600 15px var(--font-display);
}
.exam-lock-in-plan-item span {
  flex: none;
  color: var(--hb-accent);
  font: 700 12px var(--font-text);
}

@media (max-width: 640px) {
  .exam-lock-in-triage-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .exam-lock-in-element,
  .exam-lock-in-recheck-card {
    padding: 18px 16px;
  }
  .exam-lock-in-actions form {
    flex: 1 1 30%;
  }
  .exam-lock-in-pill {
    justify-content: center;
    width: 100%;
  }
  .exam-lock-in-recheck-head {
    gap: 12px;
  }
  .exam-lock-in-plan-assessment {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }
  .exam-lock-in-plan-countdown {
    grid-column: 2;
    justify-self: start;
  }
  .exam-lock-in-lock-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }
  .exam-lock-in-lock-action {
    grid-column: 2;
    justify-self: start;
  }
  .exam-lock-in-plan-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* ==== Phase 3: Schedule ==== */

.shell-authenticated .hero-grid { background: var(--hb-bg); }
.schedule-planner-page { color: var(--hb-text); background: var(--hb-bg); }

/* Foundational fix: the legacy .card/.panel/.hero-copy backgrounds are
   light-only gradients meant for the public marketing site. Pages already
   redesigned this session gave their own wrapper classes explicit
   --hb-card backgrounds, but every not-yet-redesigned authenticated page
   (Deep Study, Progress, NoteVault, Add Classes, etc.) still falls through
   to these bare classes, so fix them once here instead of re-discovering
   this per phase. */
.shell-authenticated .card {
  background: var(--hb-card);
  border-color: var(--hb-border);
  box-shadow: none;
}
.shell-authenticated .panel { background: var(--hb-card); }
.shell-authenticated .hero-copy { background: var(--hb-card); }
.shell-authenticated .hero-copy::after {
  background: linear-gradient(90deg, var(--hb-accent) 0%, #34c759 100%);
}

/* The section rail is only a layout wrapper. Keep the generic authenticated
   card treatment and the legacy sticky-scroll crop from painting behind its
   two independently rounded cards. */
.shell-authenticated .section-workspace-shell {
  max-height: none;
  padding: 0;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.schedule-planner-kicker {
  color: var(--hb-text3);
  font: 700 11px "Instrument Sans", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.schedule-planner-header h1 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  color: var(--hb-text);
}
.schedule-planner-facts strong { color: var(--hb-text); font-family: "Space Grotesk", sans-serif; }
.schedule-planner-facts small { color: var(--hb-text3); }

.schedule-planner-next {
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: var(--hb-card);
}
.schedule-planner-next-time { border-right-color: var(--hb-border); }
.schedule-planner-next-time strong { color: var(--hb-text); }
.schedule-planner-next-time span, .schedule-planner-next-copy span { color: var(--hb-text3); }
.schedule-planner-next-copy small, .schedule-planner-next-empty small { color: var(--hb-accent); }
.schedule-planner-next-copy strong, .schedule-planner-next-empty strong { color: var(--hb-text); }

.schedule-planner-week, .schedule-planner-classes {
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  background: var(--hb-card);
}
.schedule-planner-week-head, .schedule-planner-classes > header { border-bottom-color: var(--hb-border); }
.schedule-planner-week-head h2, .schedule-planner-classes h2 { color: var(--hb-text); font-family: "Space Grotesk", sans-serif; }
.schedule-planner-week-head nav a { border-color: var(--hb-border2); color: var(--hb-text3); }
.schedule-planner-week-head nav a:hover { border-color: var(--hb-accent); color: var(--hb-accent); background: var(--hb-hover); }
.schedule-planner-day-head span { color: var(--hb-text3); }
.schedule-planner-day-head strong { color: var(--hb-text); }
.schedule-planner-day-head.is-today span { color: var(--hb-accent); }
.schedule-planner-day-head.is-today strong { background: var(--hb-accent); color: #fff; }
.schedule-planner-times span { color: var(--hb-text3); }
.schedule-planner-lane { border-left-color: var(--hb-border); }
.schedule-planner-lane i { border-top-color: var(--hb-border); }
.schedule-planner-event { border-color: rgba(0, 0, 0, 0.25); }
html[data-theme="dark"] .schedule-planner-event { border-color: rgba(255, 255, 255, 0.18); }

.schedule-planner-classes > header a { color: var(--hb-accent); font-weight: 700; }
.schedule-planner-class-row { border-bottom-color: var(--hb-border); transition: background 0.14s ease; }
.schedule-planner-class-row:hover { background: var(--hb-hover); }
.schedule-planner-class-copy strong { color: var(--hb-text); font-family: "Space Grotesk", sans-serif; }
.schedule-planner-class-copy small { color: var(--hb-text3); }
.schedule-planner-class-copy i { background: var(--hb-track); }
.schedule-planner-class-copy i b { background: #0f9f6e; }
.schedule-planner-class-row:has(em.is-warming) .schedule-planner-class-copy i b { background: #b46a00; }
.schedule-planner-class-row:has(em.is-needs-work) .schedule-planner-class-copy i b { background: #c0392b; }
.schedule-planner-class-row em.is-ready { color: #0f9f6e; }
.schedule-planner-class-row em.is-warming { color: #b46a00; }
.schedule-planner-class-row em.is-needs-work { color: #c0392b; }
html[data-theme="dark"] .schedule-planner-class-row em.is-ready { color: #4fd394; }
html[data-theme="dark"] .schedule-planner-class-row em.is-warming { color: #e0a127; }
html[data-theme="dark"] .schedule-planner-class-row em.is-needs-work { color: #ff9a8a; }
html[data-theme="dark"] .schedule-planner-class-row:has(em.is-ready) .schedule-planner-class-copy i b { background: #4fd394; }
html[data-theme="dark"] .schedule-planner-class-row:has(em.is-warming) .schedule-planner-class-copy i b { background: #e0a127; }
html[data-theme="dark"] .schedule-planner-class-row:has(em.is-needs-work) .schedule-planner-class-copy i b { background: #ff9a8a; }
.schedule-planner-chevron { color: var(--hb-text3); }
.schedule-planner-empty { color: var(--hb-text3); border-color: var(--hb-border); background: var(--hb-card2); }

.schedule-planner-bins summary {
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  background: var(--hb-card);
  color: var(--hb-text);
  box-shadow: 0 1px 2px rgba(16, 42, 90, 0.05);
  transition: all 0.14s ease;
}
.schedule-planner-bins summary:hover { border-color: var(--hb-border2); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(16, 42, 90, 0.4); }
.schedule-planner-bins summary span { background: var(--hb-track); color: var(--hb-text2); }
.schedule-planner-muted-row {
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: var(--hb-card2);
}
.schedule-planner-muted-row span { color: var(--hb-text3); }
.schedule-planner-muted-row strong { color: var(--hb-text); }
.schedule-planner-muted-row.is-completed {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}
.schedule-planner-grade-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  font: 700 14px "Space Grotesk", sans-serif;
}
.schedule-planner-grade-badge.is-green { background: #e4f6ee; color: #0f7a53; }
.schedule-planner-grade-badge.is-accent { background: #eaf0fe; color: #1b49c6; }
.schedule-planner-grade-badge.is-amber { background: #fdf1d8; color: #8a5300; }
.schedule-planner-grade-badge.is-red { background: #fdecec; color: #c0392b; }
html[data-theme="dark"] .schedule-planner-grade-badge.is-green { background: rgba(18, 162, 107, 0.16); color: #4fd394; }
html[data-theme="dark"] .schedule-planner-grade-badge.is-accent { background: rgba(122, 167, 255, 0.16); color: var(--hb-accent); }
html[data-theme="dark"] .schedule-planner-grade-badge.is-amber { background: rgba(224, 161, 39, 0.16); color: #e0a127; }
html[data-theme="dark"] .schedule-planner-grade-badge.is-red { background: rgba(226, 86, 77, 0.16); color: #ff9a8a; }
.schedule-planner-muted-row-link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.schedule-planner-muted-row-link:hover strong { text-decoration: underline; }
.schedule-planner-profile-link {
  flex: none;
  color: var(--hb-accent);
  font: 600 12.5px "Instrument Sans", sans-serif;
  text-decoration: none;
}
.schedule-planner-profile-link:hover { text-decoration: underline; }

/* Manage / status page */
.schedule-status-card { text-align: left; }
.schedule-status-card h2 { color: var(--hb-text); font-family: "Space Grotesk", sans-serif; }
.schedule-status-card p { color: var(--hb-text2); }
.schedule-detail-card {
  background: var(--hb-card2);
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  padding: 16px 18px;
}
.schedule-detail-card strong { color: var(--hb-text); font-family: "Space Grotesk", sans-serif; }
.schedule-section-meta span { color: var(--hb-text2); }
.schedule-status-actions { display: flex; flex-direction: column; gap: 14px; }
.schedule-complete-form, .schedule-drop-form {
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--hb-card);
}
.schedule-action-eyebrow {
  display: block;
  color: var(--hb-accent);
  font: 700 11.5px "Instrument Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.schedule-action-eyebrow.is-danger { color: #c0392b; }
html[data-theme="dark"] .schedule-action-eyebrow.is-danger { color: #ff9a8a; }
.schedule-action-copy { margin: 6px 0 16px; color: var(--hb-text2); font-size: 13.5px; line-height: 1.55; }
.schedule-grade-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.schedule-grade-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 13px;
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text);
  font: 600 15px "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: all 0.13s ease;
}
.schedule-grade-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.schedule-grade-pill:hover { border-color: var(--hb-accent); color: var(--hb-accent); }
.schedule-grade-pill:has(input:checked) {
  border-color: var(--hb-accent);
  background: var(--hb-accent);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(33, 89, 230, 0.6);
}
.schedule-complete-submit { width: 100%; }
.schedule-drop-form .button-danger { width: 100%; }
.schedule-reactivate-form .button-secondary { width: auto; }

/* ==== Phase 4: NoteVault ==== */

html[data-theme="dark"] .notevault-app-shell {
  --notevault-page: var(--hb-bg);
  --notevault-panel: var(--hb-card);
  --notevault-card: var(--hb-card);
  --notevault-sunk: var(--hb-subtle);
  --notevault-ink: var(--hb-text);
  --notevault-muted: var(--hb-text2);
  --notevault-soft: var(--hb-text3);
  --notevault-line: var(--hb-border);
  --notevault-hover: var(--hb-hover);
  --notevault-selected: var(--hb-hover);
  --notevault-blue: var(--hb-accent);
  --notevault-blue-soft: rgba(122, 167, 255, 0.16);
  --notevault-green: #4fd394;
  --notevault-green-soft: rgba(18, 162, 107, 0.16);
  --notevault-orange: #e0a127;
  --notevault-orange-soft: rgba(224, 161, 39, 0.16);
}
.notevault-class-row.is-active,
.notevault-upload-row.is-active { box-shadow: inset 3px 0 0 var(--hb-accent); }
.notevault-search input[type="search"]::placeholder { color: var(--notevault-soft); }

.shell-authenticated .note-study-head > strong,
.shell-authenticated .note-study-stats strong { color: var(--hb-text); }
.shell-authenticated .note-study-stats span {
  background: var(--hb-card2);
  border-color: var(--hb-border);
  color: var(--hb-text2);
}
.shell-authenticated .note-study-bucket {
  background: var(--hb-card2);
  border-color: var(--hb-border);
}
.shell-authenticated .note-study-bucket > strong { color: var(--hb-accent); }
.shell-authenticated .note-study-bucket li span { color: var(--hb-text); }
.shell-authenticated .note-study-bucket li em { color: var(--hb-text3); }
.shell-authenticated .note-study-mini strong { color: var(--hb-accent); }
.shell-authenticated .note-study-mini em,
.shell-authenticated .note-study-mini span:last-child { color: var(--hb-text2); }
.shell-authenticated .note-study-mini { background: var(--hb-card2); border-color: var(--hb-border); color: var(--hb-text); }

.shell-authenticated .selection-card,
.shell-authenticated .feature-item,
.shell-authenticated .task-card {
  background: var(--hb-card2);
  border-color: var(--hb-border);
  color: var(--hb-text);
}

html:not([data-theme="dark"]) .shell-authenticated .selection-card.study-card {
  background: #ffffff;
}
.shell-authenticated .quick-quiz-question-card,
.shell-authenticated .quick-quiz-option-card,
.shell-authenticated .study-stream-empty-state {
  background: transparent;
  border: 0;
}

/* ==== Phase 5: Deep Study + billing-continuation paywall dark mode ==== */

html[data-theme="dark"] .billing-continuation { color: var(--hb-text); }
html[data-theme="dark"] .billing-continuation-kicker,
html[data-theme="dark"] .billing-continuation-plan-badge {
  background: rgba(122, 167, 255, 0.16);
  color: var(--hb-accent);
}
html[data-theme="dark"] .billing-continuation-ring-track { stroke: var(--hb-border2); }
html[data-theme="dark"] .billing-continuation-ring-value { stroke: var(--hb-accent); }
html[data-theme="dark"] .billing-continuation-ring small { color: var(--hb-text3); }
html[data-theme="dark"] .billing-continuation-ring-label { color: var(--hb-text3); }
html[data-theme="dark"] .billing-continuation-header h1 { color: var(--hb-text); }
html[data-theme="dark"] .billing-continuation-plan {
  background: var(--hb-card);
  border-color: var(--hb-border);
  box-shadow: none;
}
html[data-theme="dark"] .billing-continuation-plan h2 { color: var(--hb-text); }
html[data-theme="dark"] .billing-continuation-plan-badge { background: var(--hb-subtle); color: var(--hb-text2); }
html[data-theme="dark"] .billing-continuation-plan-badge.is-monthly {
  background: rgba(122, 167, 255, 0.16);
  color: var(--hb-accent);
}
html[data-theme="dark"] .billing-continuation-price strong { color: var(--hb-text); }
html[data-theme="dark"] .billing-continuation-price span { color: var(--hb-text3); }
html[data-theme="dark"] .billing-continuation-plan > p { color: var(--hb-text2); }
html[data-theme="dark"] .billing-continuation-cta.is-primary {
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  border-color: transparent;
  color: #fff;
}
html[data-theme="dark"] .billing-continuation-cta.is-secondary {
  background: var(--hb-card);
  border-color: var(--hb-accent);
  color: var(--hb-accent);
}
html[data-theme="dark"] .billing-continuation-guarantee { color: var(--hb-text3); }
html[data-theme="dark"] .billing-continuation-perks span {
  background: rgba(122, 167, 255, 0.16);
  color: var(--hb-accent);
}
html[data-theme="dark"] .billing-continuation-features > p { color: var(--hb-text3); }
html[data-theme="dark"] .billing-continuation-features > div > span {
  background: var(--hb-card);
  border-color: var(--hb-border);
  color: var(--hb-text2);
}
html[data-theme="dark"] .billing-continuation-unavailable {
  background: var(--hb-card);
  border-color: var(--hb-border);
  color: var(--hb-text2);
}
.billing-continuation-unavailable strong { color: var(--hb-text); }
html[data-theme="dark"] .billing-continuation-unavailable strong { color: var(--hb-text); }

/* Foundational fix: body's background is the legacy light-only gradient
   (--bg-soft/--bg), which sits outside .shell-authenticated's --hb-* scope
   and never flips for dark mode. Every authenticated page's content column
   is narrower than the viewport, so any page without full-bleed card
   coverage shows this light gradient through the gutters/gaps. Fix it once
   at the body level instead of patching every individual page wrapper. */
html[data-theme="dark"] body:has(.shell-authenticated) {
  background: #0b1220;
}

.shell-authenticated .deep-study-reading-item,
.shell-authenticated .deep-study-understand-panel,
.shell-authenticated .deep-study-stats-card,
.shell-authenticated .deep-study-loading-card {
  background: var(--hb-card2);
  border-color: var(--hb-border);
}
.shell-authenticated .deep-study-understand-list .deep-study-reading-item {
  background: transparent;
  border-color: var(--hb-border);
}
.shell-authenticated .deep-study-reading-item strong,
.shell-authenticated .deep-study-stats-card span { color: var(--hb-accent); }
.shell-authenticated .deep-study-stats-card strong { color: var(--hb-text); }
.shell-authenticated .deep-study-stats-card small { color: var(--hb-text3); }
.shell-authenticated .deep-study-reading-copy { color: var(--hb-text); }
.shell-authenticated .deep-study-test-status { color: var(--hb-text3); }
.shell-authenticated .deep-study-test-status-correct { color: #4fd394; }
.shell-authenticated .deep-study-test-status-missed { color: var(--hb-accent); }
.shell-authenticated .deep-study-test-choice {
  border-color: var(--hb-border2);
  background: var(--hb-card2);
  color: var(--hb-text);
}
.shell-authenticated .deep-study-test-choice::before {
  background: var(--hb-subtle);
  color: var(--hb-accent);
}
.shell-authenticated .deep-study-test-choice:hover,
.shell-authenticated .deep-study-test-choice:focus-visible {
  border-color: var(--hb-accent);
  box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.16);
}
.shell-authenticated .deep-study-test-choice-selected {
  border-color: var(--hb-accent);
  background: rgba(122, 167, 255, 0.14);
}
.shell-authenticated .deep-study-test-choice-correct {
  border-color: rgba(18, 162, 107, 0.55);
  background: rgba(18, 162, 107, 0.14);
}
.shell-authenticated .deep-study-test-choice-missed {
  border-color: var(--hb-accent);
  background: rgba(122, 167, 255, 0.14);
}
.shell-authenticated .deep-study-test-reveal-button { color: var(--hb-accent); }
.shell-authenticated .deep-study-test-reveal-button span {
  border-color: var(--hb-border2);
  background: var(--hb-card2);
  box-shadow: none;
}
.shell-authenticated .deep-study-ask-form .field textarea,
.shell-authenticated .deep-study-thought-form .field textarea {
  background: var(--hb-card2);
  border-color: var(--hb-border2);
  color: var(--hb-text);
}

/* ==== Phase 6: Progress ==== */

.progress-page { color: var(--hb-text); }
.progress-page-header time { color: var(--hb-text3); }
.progress-card, .progress-list {
  background: var(--hb-card);
  border-color: var(--hb-border);
}
.progress-focus-strip { color: #e0a127; background: rgba(224, 161, 39, 0.14); }
.progress-ring-track { stroke: var(--hb-border2); }
.progress-ring-value { stroke: #34c759; }
.progress-hero-copy > span { color: var(--hb-text2); }
.progress-hero-copy p { color: var(--hb-text3); }
.progress-hero-action { border-top-color: var(--hb-border); }
.progress-hero-action span { color: var(--hb-text3); }
.progress-button {
  color: var(--hb-text);
  background: var(--hb-subtle);
}
.progress-button-primary { color: #fff; background: var(--hb-accent); }
.progress-section > h2 { color: var(--hb-text3); }
.progress-topic-row, .progress-summary-row, .progress-empty-row, .progress-locked-row {
  color: inherit;
  border-top-color: var(--hb-border);
}
.progress-topic-row:hover { background: var(--hb-hover); }
.progress-topic-body small, .progress-summary-row small, .progress-empty-row span { color: var(--hb-text3); }
.progress-topic-row > b { color: #4fd394; }
.progress-topic-row > span:last-child { color: var(--hb-text3); }
.progress-segments { background: var(--hb-track); }
.progress-legend { color: var(--hb-text2); }
.progress-footnote { color: var(--hb-text3); }
.progress-summary-row > b { color: var(--hb-text); }
.progress-summary-row > .progress-check { color: #4fd394; }
.progress-locked-row { color: var(--hb-text2); }
.progress-trend-card > span { color: var(--hb-text3); }
.progress-trend-card path { stroke: #34c759; }

/* ==== Phase 8: Profile ==== */

.shell-authenticated .academic-profile-identity > p { color: var(--hb-text2); }
.shell-authenticated .academic-profile-school {
  background: var(--hb-card);
  border-color: var(--hb-border);
  color: var(--hb-text);
}
.shell-authenticated .academic-profile-school svg { color: var(--hb-accent); }
.shell-authenticated .academic-profile-group > h2 { color: var(--hb-text3); }
.shell-authenticated .academic-profile-card {
  background: var(--hb-card);
  border-color: var(--hb-border);
  box-shadow: none;
}
.shell-authenticated .academic-ring-track { stroke: var(--hb-border2); }
.shell-authenticated .academic-credit-total small { color: var(--hb-text3); }
.shell-authenticated .academic-degree-legend > p { color: var(--hb-text3); }
.shell-authenticated .academic-degree-legend li { color: var(--hb-text2); }
.shell-authenticated .academic-degree-legend li strong { color: var(--hb-text); }
.shell-authenticated .academic-degree-stats { border-top-color: var(--hb-border); }
.shell-authenticated .academic-degree-stats > span + span { border-left-color: var(--hb-border); }
.shell-authenticated .academic-degree-stats small { color: var(--hb-text3); }
.shell-authenticated .academic-profile-row {
  background: var(--hb-card);
  color: var(--hb-text);
}
.shell-authenticated .academic-profile-row + .academic-profile-row { border-top-color: var(--hb-border); }
.shell-authenticated .academic-profile-row:hover { background: var(--hb-hover); }
.shell-authenticated .academic-profile-row > strong { color: var(--hb-text3); }
.shell-authenticated .academic-profile-row > strong.is-unset { color: #e0a127; }
.shell-authenticated .academic-row-chevron { color: var(--hb-text3); }
.shell-authenticated .academic-term-group + .academic-term-group { border-top-color: var(--hb-border); }
.shell-authenticated .academic-term-group > header {
  background: var(--hb-subtle);
}
.shell-authenticated .academic-term-group > header span { color: var(--hb-text3); }
.shell-authenticated .academic-course-row {
  background: var(--hb-card);
  color: var(--hb-text);
}
.shell-authenticated .academic-course-row + .academic-course-row { border-top-color: var(--hb-border); }
.shell-authenticated .academic-course-row:hover { background: var(--hb-hover); }
.shell-authenticated .academic-course-copy span { color: var(--hb-text3); }
.shell-authenticated .academic-course-grade { background: var(--hb-subtle); color: var(--hb-text2); }
.shell-authenticated .academic-course-grade.is-high { background: rgba(18, 162, 107, 0.16); color: #4fd394; }
.shell-authenticated .academic-course-grade.is-low { background: rgba(226, 86, 77, 0.16); color: #ff9a8a; }
.shell-authenticated .academic-course-grade.is-progress { border-color: var(--hb-border2); color: var(--hb-text3); }
.shell-authenticated .academic-add-course {
  background: var(--hb-card);
  border-top-color: var(--hb-border);
  color: var(--hb-accent);
}
.shell-authenticated .academic-add-course:hover { background: var(--hb-hover); }
.shell-authenticated .academic-add-course span { color: var(--hb-text3); }
.shell-authenticated .academic-course-empty { color: var(--hb-text3); }
.shell-authenticated .academic-profile-footnote { color: var(--hb-text3); }
.shell-authenticated .academic-profile-sheet .field > label { color: var(--hb-text3); }

/* Foundational fix: the shared native-<dialog> sheet and .field form inputs
   used across every modal in the app (Profile's add-class dialog, and many
   others not yet reached in this pass) still use the legacy light-only
   surface variables. Fix once here rather than per-dialog. */
.shell-authenticated .study-info-sheet {
  background: var(--hb-card);
  border-color: var(--hb-border);
}
.shell-authenticated .study-info-dialog-label,
.shell-authenticated .study-why-label { color: var(--hb-accent); }
.shell-authenticated .field label { color: var(--hb-text3); }
.shell-authenticated .field input,
.shell-authenticated .field select,
.shell-authenticated .field textarea {
  background: var(--hb-card2);
  border-color: var(--hb-border2);
  color: var(--hb-text);
  box-shadow: none;
}
.shell-authenticated .reason-chip {
  background: var(--hb-card2);
  border-color: var(--hb-border2);
  color: var(--hb-text);
}
.shell-authenticated .study-priority-stat {
  background: var(--hb-card2);
  border-color: var(--hb-border2);
}
.shell-authenticated .study-priority-stat span { color: var(--hb-text3); }

/* ==== Phase 9: Settings + header avatar menu dark mode + theme toggle ==== */

html[data-theme="dark"] .header-avatar-panel {
  background: var(--hb-card);
  border-color: var(--hb-border);
}
html[data-theme="dark"] .header-avatar-panel a,
html[data-theme="dark"] .header-avatar-panel button {
  color: var(--hb-text);
}
html[data-theme="dark"] .header-avatar-panel a:hover,
html[data-theme="dark"] .header-avatar-panel button:hover {
  background: var(--hb-hover);
}
html[data-theme="dark"] .header-avatar-panel form { border-top-color: var(--hb-border); }

.header-avatar-theme-toggle {
  justify-content: space-between !important;
  cursor: pointer;
}
.header-avatar-theme-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d1d1d6;
  flex: none;
  transition: background 0.15s ease;
}
.header-avatar-theme-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.header-avatar-theme-toggle[aria-checked="true"] .header-avatar-theme-switch,
.settings-notification-toggle[aria-checked="true"] .header-avatar-theme-switch {
  background: #34c759;
}
.header-avatar-theme-toggle[aria-checked="true"] .header-avatar-theme-switch::before,
.settings-notification-toggle[aria-checked="true"] .header-avatar-theme-switch::before {
  transform: translateX(16px);
}

.shell-authenticated .settings-profile-card,
.shell-authenticated .settings-actions-panel,
.shell-authenticated .settings-group-card {
  background: var(--hb-card);
  border-color: var(--hb-border);
  box-shadow: none;
}
.shell-authenticated .settings-education-stage-options { border-color: var(--hb-border); }
.shell-authenticated .settings-education-stage-option {
  background: var(--hb-card);
  border-top-color: var(--hb-border);
  color: var(--hb-text);
}
.shell-authenticated .settings-education-stage-option:hover { background: var(--hb-hover); }
.shell-authenticated .settings-education-stage-option.is-selected,
.shell-authenticated .settings-education-stage-option:has(input:checked) {
  background: rgba(122, 167, 255, 0.14);
}
.shell-authenticated .settings-education-stage-check { color: var(--hb-accent); }
.shell-authenticated .settings-profile-image-picker {
  background: var(--hb-card2);
  border-color: var(--hb-border2);
}
.shell-authenticated .settings-profile-image-picker:hover,
.shell-authenticated .settings-profile-image-picker:focus-within,
.shell-authenticated .settings-profile-image-picker.is-dragover {
  background: var(--hb-hover);
  border-color: var(--hb-accent);
}
.shell-authenticated .settings-profile-image-browse {
  background: var(--hb-card);
  border-color: var(--hb-border2);
  color: var(--hb-accent);
}
.shell-authenticated .settings-profile-image-picker small { color: var(--hb-text3); }
.shell-authenticated .settings-profile-header .settings-account-name { color: var(--hb-text); }
.shell-authenticated .settings-profile-header p { color: var(--hb-text3); }
.shell-authenticated .settings-group > h2 { color: var(--hb-text3); }
.shell-authenticated .settings-plan-heading strong { color: var(--hb-text); }
.shell-authenticated .settings-plan-heading span,
.shell-authenticated .settings-plan-card p { color: var(--hb-text2); }
.shell-authenticated .settings-row { color: var(--hb-text); }
.shell-authenticated .settings-row + .settings-row,
.shell-authenticated .settings-row-form + .settings-row,
.shell-authenticated .settings-row + .settings-row-form {
  border-top-color: var(--hb-border);
}
.shell-authenticated .settings-row:hover,
.shell-authenticated .settings-row:focus-visible {
  background: var(--hb-hover);
  color: var(--hb-text);
}
.shell-authenticated .settings-row-sublabel,
.shell-authenticated .settings-row-value { color: var(--hb-text3); }
.shell-authenticated .settings-row-badge {
  background: rgba(224, 161, 39, 0.16);
  color: #e0a127;
}
.shell-authenticated .settings-row-chevron { color: var(--hb-text3); }
.shell-authenticated .settings-row-danger { border-top-color: var(--hb-border); color: #ff9a8a; }
.shell-authenticated .settings-row-danger:hover,
.shell-authenticated .settings-row-danger:focus-visible { color: #ff6b5b; }
.shell-authenticated .settings-delete-note { color: var(--hb-text3); }

.settings-toggle-row .settings-row-content { flex: 1; }
.settings-notification-toggle {
  flex: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.settings-notification-toggle .header-avatar-theme-switch { display: block; }

/* ==========================================================================
   Phase 10 — Add Classes / Schools dark mode
   .school-picker-*, .school-level-*, .class-picker-*, .confirm-sections-*
   had zero dark-mode coverage; page background, cards, borders, and text
   were all hardcoded light-mode values.
   ========================================================================== */

html[data-theme="dark"] .school-picker-page,
html[data-theme="dark"] .class-picker-page,
html[data-theme="dark"] .confirm-sections-page,
html[data-theme="dark"] .readiness-building-page {
  background: var(--hb-bg);
}

html[data-theme="dark"] .school-picker-steps span { color: var(--hb-text3); }
html[data-theme="dark"] .school-picker-steps span.is-current { color: var(--hb-text); }
html[data-theme="dark"] .school-picker-steps i { background: var(--hb-border2); }
html[data-theme="dark"] .school-picker-steps span.is-current i {
  background: var(--hb-accent);
  box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.18);
}
html[data-theme="dark"] .school-picker-steps b { background: var(--hb-border2); }
html[data-theme="dark"] .school-picker-heading p { color: var(--hb-text3); }

html[data-theme="dark"] .school-picker-page .school-level-toggle { background: var(--hb-subtle); }
html[data-theme="dark"] .school-picker-page .school-level-pill { color: var(--hb-text); }
html[data-theme="dark"] .school-picker-page .school-level-pill.is-active {
  background: var(--hb-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  color: var(--hb-text);
}
html[data-theme="dark"] .school-level-pill { background: var(--hb-card); color: var(--hb-text2); }
html[data-theme="dark"] .school-level-pill.is-active {
  background: rgba(122, 167, 255, 0.16);
  color: var(--hb-accent);
}

html[data-theme="dark"] .school-picker-search > svg { color: var(--hb-text3); }
html[data-theme="dark"] .school-picker-page .school-picker-search input {
  background: var(--hb-card);
  border-color: var(--hb-border2);
  box-shadow: none;
  color: var(--hb-text);
}
html[data-theme="dark"] .school-picker-meta { color: var(--hb-text3); }

html[data-theme="dark"] .school-picker-results-card {
  background: var(--hb-card);
  border-color: var(--hb-border);
  box-shadow: none;
}
html[data-theme="dark"] .school-picker-results-heading {
  background: var(--hb-subtle);
  border-bottom-color: var(--hb-border);
  color: var(--hb-text3);
}
html[data-theme="dark"] .school-picker-row { color: var(--hb-text); }
html[data-theme="dark"] .school-picker-row + .school-picker-row { border-top-color: var(--hb-border); }
html[data-theme="dark"] .school-picker-row:hover,
html[data-theme="dark"] .school-picker-row:focus-within,
html[data-theme="dark"] .school-picker-row.is-keyboard-active { background: var(--hb-hover); }
html[data-theme="dark"] .school-picker-row.is-selected { background: rgba(122, 167, 255, 0.14); }
html[data-theme="dark"] .school-picker-copy strong { color: var(--hb-text); }
html[data-theme="dark"] .school-picker-copy > span { color: var(--hb-text3); }
html[data-theme="dark"] .school-picker-distance { background: var(--hb-subtle); color: var(--hb-text3); }
html[data-theme="dark"] .school-picker-select { border-color: var(--hb-border2); }
html[data-theme="dark"] .school-picker-row.is-selected .school-picker-select {
  background: var(--hb-accent);
  border-color: var(--hb-accent);
  color: #0b1220;
}
html[data-theme="dark"] .school-picker-empty { color: var(--hb-text3); }
html[data-theme="dark"] .school-picker-empty strong { color: var(--hb-text); }
html[data-theme="dark"] .school-picker-missing { color: var(--hb-text3); }
html[data-theme="dark"] .school-picker-missing strong { color: var(--hb-accent); }
html[data-theme="dark"] .school-picker-keyboard { color: var(--hb-text3); }
html[data-theme="dark"] .school-picker-keyboard kbd {
  background: var(--hb-subtle);
  border-color: var(--hb-border2);
  color: var(--hb-text2);
}

html[data-theme="dark"] .class-picker-steps { color: var(--hb-text3); }
html[data-theme="dark"] .class-picker-step i { background: var(--hb-border2); }
html[data-theme="dark"] .class-picker-step.is-current { color: var(--hb-text); }
html[data-theme="dark"] .class-picker-step.is-current i {
  box-shadow: 0 0 0 5px rgba(122, 167, 255, 0.18);
}
html[data-theme="dark"] .class-picker-step-line { background: var(--hb-border2); }
html[data-theme="dark"] .class-picker-heading h1,
html[data-theme="dark"] .confirm-sections-heading h1 { color: var(--hb-text); }
html[data-theme="dark"] .class-picker-heading > p,
html[data-theme="dark"] .confirm-sections-heading > p { color: var(--hb-text3); }

html[data-theme="dark"] .class-picker-school-context {
  background: var(--hb-card);
  border-color: var(--hb-border);
  box-shadow: none;
}
html[data-theme="dark"] .class-picker-school-context strong { color: var(--hb-text); }

html[data-theme="dark"] .class-picker-page .class-add-term-select,
html[data-theme="dark"] .class-picker-page .class-add-search-input-wrap input {
  background: var(--hb-card);
  border-color: var(--hb-border2);
  box-shadow: none;
  color: var(--hb-text);
}
html[data-theme="dark"] .class-picker-page .class-add-search-icon { color: var(--hb-text3); }
html[data-theme="dark"] .class-picker-search-meta { color: var(--hb-text3); }
html[data-theme="dark"] .class-picker-search-meta kbd {
  background: var(--hb-subtle);
  border-color: var(--hb-border2);
  color: var(--hb-text2);
}

html[data-theme="dark"] .class-picker-list-card,
html[data-theme="dark"] .class-picker-added-card,
html[data-theme="dark"] .confirm-sections-card {
  background: var(--hb-card);
  border-color: var(--hb-border);
  box-shadow: none;
}
html[data-theme="dark"] .class-picker-list-heading {
  background: var(--hb-subtle);
  border-bottom-color: var(--hb-border);
  color: var(--hb-text3);
}
html[data-theme="dark"] .class-picker-list-heading em { color: var(--hb-text3); }
html[data-theme="dark"] .class-picker-course-row + .class-picker-course-row::before,
html[data-theme="dark"] .class-picker-section-row + .class-picker-section-row::before,
html[data-theme="dark"] .class-picker-added-row + .class-picker-added-row::before,
html[data-theme="dark"] .confirm-sections-row + .confirm-sections-row {
  background: var(--hb-border);
  border-top-color: var(--hb-border);
}
html[data-theme="dark"] .class-picker-course-row:hover,
html[data-theme="dark"] .class-picker-course-row:focus-visible,
html[data-theme="dark"] .class-picker-added-row:hover,
html[data-theme="dark"] .class-picker-added-row:focus-visible,
html[data-theme="dark"] .confirm-sections-row:hover button,
html[data-theme="dark"] .confirm-sections-row button:focus-visible,
html[data-theme="dark"] .confirm-sections-manual:hover,
html[data-theme="dark"] .confirm-sections-manual:focus-visible { background: var(--hb-hover); }
html[data-theme="dark"] .class-picker-row-copy strong,
html[data-theme="dark"] .confirm-sections-course-copy strong,
html[data-theme="dark"] .confirm-sections-section-line strong { color: var(--hb-text); }
html[data-theme="dark"] .class-picker-row-copy span,
html[data-theme="dark"] .confirm-sections-course-copy span,
html[data-theme="dark"] .confirm-sections-section-line span { color: var(--hb-text3); }
html[data-theme="dark"] .class-picker-add-icon,
html[data-theme="dark"] .class-picker-section-action button {
  background: rgba(122, 167, 255, 0.14);
  color: var(--hb-accent);
}
html[data-theme="dark"] .class-picker-course-row:hover .class-picker-add-icon,
html[data-theme="dark"] .class-picker-course-row:focus-visible .class-picker-add-icon,
html[data-theme="dark"] .class-picker-section-action button:hover,
html[data-theme="dark"] .class-picker-section-action button:focus-visible {
  background: var(--hb-accent);
  color: #0b1220;
}
html[data-theme="dark"] .class-picker-row-check {
  background: rgba(52, 199, 89, 0.18);
  color: #34c759;
}
html[data-theme="dark"] .class-picker-empty-card { color: var(--hb-text3); }
html[data-theme="dark"] .class-picker-empty-card strong { color: var(--hb-text); }
html[data-theme="dark"] .class-picker-school-context a,
html[data-theme="dark"] .class-picker-selected-course > a,
html[data-theme="dark"] .class-picker-manual-link,
html[data-theme="dark"] .class-picker-empty-card a,
html[data-theme="dark"] .confirm-sections-empty a { color: var(--hb-accent); }
html[data-theme="dark"] .class-picker-selected-course {
  background: rgba(122, 167, 255, 0.12);
  border-color: rgba(122, 167, 255, 0.24);
}

html[data-theme="dark"] .class-picker-footer {
  background: rgba(11, 18, 32, 0.92);
  border-top-color: var(--hb-border);
}
html[data-theme="dark"] .class-picker-back {
  background: var(--hb-subtle);
  color: var(--hb-text2);
}
html[data-theme="dark"] .class-picker-continue { color: #0b1220; }
html[data-theme="dark"] .class-picker-continue.is-disabled {
  background: var(--hb-subtle);
  color: var(--hb-text3);
}
html[data-theme="dark"] .class-picker-footer-status { color: var(--hb-text); }
html[data-theme="dark"] .class-picker-footer-status small { color: var(--hb-text3); }

html[data-theme="dark"] .confirm-sections-heading .class-picker-school-context > span:last-child {
  color: var(--hb-text3);
}
html[data-theme="dark"] .confirm-sections-status {
  background: var(--hb-subtle);
  color: var(--hb-text3);
}
html[data-theme="dark"] .confirm-sections-status.is-confirmed {
  background: rgba(52, 199, 89, 0.18);
  color: #34c759;
}
html[data-theme="dark"] .confirm-sections-row.is-selected button {
  background: rgba(122, 167, 255, 0.14);
}
html[data-theme="dark"] .confirm-sections-radio { border-color: var(--hb-border2); }
html[data-theme="dark"] .confirm-sections-row.is-selected .confirm-sections-radio {
  border-color: var(--hb-accent);
  background: var(--hb-accent);
  color: #0b1220;
}
html[data-theme="dark"] .confirm-sections-chip {
  background: var(--hb-subtle);
  color: var(--hb-text3);
}
html[data-theme="dark"] .confirm-sections-chip.is-online {
  background: rgba(122, 167, 255, 0.16);
  color: var(--hb-accent);
}
html[data-theme="dark"] .confirm-sections-chip.is-warning {
  background: rgba(224, 161, 39, 0.2);
  color: #e6b055;
}
html[data-theme="dark"] .confirm-sections-empty { color: var(--hb-text3); }
html[data-theme="dark"] .confirm-sections-empty strong { color: var(--hb-text); }

html[data-theme="dark"] .readiness-building-heading h1,
html[data-theme="dark"] .readiness-building-class-line strong,
html[data-theme="dark"] .readiness-building-next strong,
html[data-theme="dark"] .readiness-building-footer strong {
  color: var(--hb-text);
}
html[data-theme="dark"] .readiness-building-heading p,
html[data-theme="dark"] .readiness-building-school > span:last-child,
html[data-theme="dark"] .readiness-building-class-line span,
html[data-theme="dark"] .readiness-building-next h2,
html[data-theme="dark"] .readiness-building-next small,
html[data-theme="dark"] .readiness-building-footer small {
  color: var(--hb-text3);
}
html[data-theme="dark"] .readiness-building-class-card,
html[data-theme="dark"] .readiness-building-next > a {
  border-color: var(--hb-border);
  background: var(--hb-card);
  box-shadow: none;
}
html[data-theme="dark"] .readiness-building-progress {
  background: var(--hb-subtle);
}
html[data-theme="dark"] .readiness-building-mapping {
  background: rgba(52, 199, 89, 0.16);
  color: #62d68a;
}
html[data-theme="dark"] .readiness-building-footer {
  border-top-color: var(--hb-border);
  background: rgba(11, 18, 32, 0.94);
}

/* ==========================================================================
   Phase 11 — Notebook block editor
   New page: server renders the shell + one empty text block; app-shell.js
   builds/edits/reorders the rest client-side, matching the mockup's block
   editor exactly. All colors route through --hb-* so dark mode is free.
   ========================================================================== */

.shell-authenticated .nb-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 30px 60px;
  align-items: start;
}

.shell-authenticated .nb-rail { position: sticky; top: 86px; }
.shell-authenticated .nb-rail-card {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  padding: 20px 18px 16px;
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}
.shell-authenticated .nb-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: -4px;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--hb-text2);
  font: 600 13.5px var(--hb-font-text);
  text-decoration: none;
}
.shell-authenticated .nb-back:hover { background: var(--hb-hover); color: var(--hb-accent); }
.shell-authenticated .nb-back svg { width: 15px; height: 15px; }
.shell-authenticated .nb-rail-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.shell-authenticated .nb-rail-title {
  margin: 0;
  font: 600 22px var(--hb-font-display);
  letter-spacing: -0.3px;
  color: var(--hb-text);
}
.shell-authenticated .nb-rail-sub { margin: 6px 0 16px; font: 400 13.5px var(--hb-font-text); color: var(--hb-text2); }
.shell-authenticated .nb-rail-nav { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.shell-authenticated .nb-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--hb-text2);
  font: 600 14px var(--hb-font-text);
  text-decoration: none;
}
.shell-authenticated .nb-nav svg { width: 20px; height: 20px; flex: none; }
.shell-authenticated .nb-nav:hover { background: var(--hb-hover); color: var(--hb-text); }
.shell-authenticated .nb-nav-on { background: var(--hb-hover); color: var(--hb-text); box-shadow: inset 3px 0 0 var(--hb-accent); }

.shell-authenticated .nb-main-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.shell-authenticated .nb-message-stack:empty { display: none; }

.shell-authenticated .nb-status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
  padding: 16px 20px;
}
.shell-authenticated .nb-status-left { display: flex; align-items: center; gap: 9px; flex: none; }
.shell-authenticated .nb-status-count {
  font: 700 12px var(--hb-font-mono);
  color: var(--hb-text3);
  background: var(--hb-track);
  padding: 3px 9px;
  border-radius: 999px;
}
.shell-authenticated .nb-status-count.has-count { color: var(--hb-accent); }
.shell-authenticated .nb-status-eyebrow {
  font: 700 11px var(--hb-font-text);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hb-text3);
}
.shell-authenticated .nb-status-line { flex: 1; min-width: 220px; font: 400 12.5px/1.5 var(--hb-font-text); color: var(--hb-text2); }
.shell-authenticated .nb-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  flex: none;
  border: none;
  border-radius: 13px;
  background: linear-gradient(180deg, #2a62f0, #1a46c2);
  color: #fff;
  font: 600 14px var(--hb-font-text);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 26px -12px rgba(26, 70, 194, 0.7);
}
.shell-authenticated .nb-send svg { width: 16px; height: 16px; }
.shell-authenticated .nb-send:hover:not(:disabled) { transform: translateY(-1px); }
.shell-authenticated .nb-send:active:not(:disabled) { transform: scale(0.98); }
.shell-authenticated .nb-send:disabled { opacity: 0.45; pointer-events: none; }
.shell-authenticated .nb-send[data-sending="true"] { opacity: 0.85; pointer-events: none; }

.shell-authenticated .nb-extracted-row { display: flex; gap: 8px; flex-wrap: wrap; }
.shell-authenticated .nb-extracted-row[hidden] { display: none; }
.shell-authenticated .nb-el-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--hb-border);
  background: var(--hb-card);
}
.shell-authenticated .nb-el-chip-kind {
  font: 600 10px var(--hb-font-text);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--hb-accent);
  background: rgba(122, 167, 255, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
}
.shell-authenticated .nb-el-chip-label {
  font: 500 12px var(--hb-font-text);
  color: var(--hb-text);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-authenticated .nb-editor-card {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 22px;
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
  padding: 26px 30px 30px;
}
.shell-authenticated .nb-editor-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 -12px 8px;
}
.shell-authenticated .nb-editor-vault-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12.5px var(--hb-font-text);
  color: var(--hb-text3);
  padding: 6px 10px;
  border-radius: 9px;
  text-decoration: none;
}
.shell-authenticated .nb-editor-vault-link svg { width: 15px; height: 15px; }
.shell-authenticated .nb-editor-vault-link:hover { background: var(--hb-hover); color: var(--hb-accent); }
/* Notebook.dc.html balances the NoteVault link with a live autosave cue. */
.shell-authenticated .nb-editor-saving {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font: 500 12px var(--hb-font-text);
  color: var(--hb-text3);
}
.shell-authenticated .nb-editor-saving-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #12a26b;
}

.shell-authenticated .nb-past-elements { display: grid; gap: 10px; margin-bottom: 16px; }

.shell-authenticated .nb-block-list { display: flex; flex-direction: column; gap: 2px; }
.shell-authenticated .nb-block {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 6px 8px 6px 4px;
  border-radius: 14px;
}
.shell-authenticated .nb-block:hover { background: var(--hb-hover); }
.shell-authenticated .nb-block.nb-dragging { opacity: 0.35; }
.shell-authenticated .nb-block:has(.nb-math-input:focus),
.shell-authenticated .nb-block:has(.nb-cell:focus),
.shell-authenticated .nb-block:has(.nb-in:focus),
.shell-authenticated .nb-block:has(.nb-ta:focus) {
  background: var(--hb-hover);
}
.shell-authenticated .nb-block-body { flex: 1; min-width: 0; }
.shell-authenticated .nb-grip { display: flex; flex-direction: column; gap: 3px; opacity: 0; padding-top: 12px; flex: none; }
.shell-authenticated .nb-block:hover .nb-grip { opacity: 1; }
.shell-authenticated .nb-gbtn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--hb-text3);
  cursor: pointer;
}
.shell-authenticated .nb-gbtn svg { width: 13px; height: 13px; }
.shell-authenticated .nb-gbtn:hover { background: var(--hb-track); color: var(--hb-text); }
.shell-authenticated .nb-handle { cursor: grab; }
.shell-authenticated .nb-handle:active { cursor: grabbing; }

.shell-authenticated .nb-eltitle {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--hb-text);
  font: 600 17px var(--hb-font-display);
  letter-spacing: -0.2px;
  outline: none;
  padding: 6px 2px 2px;
  display: block;
}
.shell-authenticated .nb-eltitle[hidden] { display: none; }
.shell-authenticated .nb-eltitle::placeholder { color: var(--hb-text3); opacity: 0.7; }

.shell-authenticated .nb-ta {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--hb-text);
  font: 400 15.5px/1.7 var(--hb-font-text);
  outline: none;
  resize: none;
  padding: 8px 2px;
  overflow: hidden;
  display: block;
}
.shell-authenticated .nb-ta::placeholder { color: var(--hb-text3); }
.shell-authenticated .nb-mathta { font: 600 15px var(--hb-font-mono); }
.shell-authenticated .nb-callout-block { background: linear-gradient(135deg, rgba(253, 245, 225, 0.6), rgba(254, 250, 240, 0.6)); border-radius: 14px; }
.shell-authenticated .nb-callout-card {
  margin: 6px 0;
  padding: 13px 15px;
  border: 1px solid #f0deb0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdf5e1, #fefaf0);
}
.shell-authenticated .nb-callout-card .nb-eyebrow {
  display: block;
  margin-bottom: 6px;
}
.shell-authenticated .nb-callout-ta { color: #5c4a1e; padding: 4px 2px; }
html[data-theme="dark"] .shell-authenticated .nb-callout-card {
  border-color: rgba(230, 176, 85, 0.32);
  background: rgba(230, 176, 85, 0.08);
}
html[data-theme="dark"] .shell-authenticated .nb-callout-ta { color: var(--hb-text); }

.shell-authenticated .nb-card-inset {
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  background: var(--hb-card2);
  padding: 13px 15px;
  margin: 6px 0;
}
.shell-authenticated .nb-card-inset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.shell-authenticated .nb-card-inset-actions { display: flex; align-items: center; gap: 7px; }
.shell-authenticated .nb-eyebrow {
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hb-text3);
}
.shell-authenticated .nb-eyebrow.is-amber { color: #8a5300; }
html[data-theme="dark"] .shell-authenticated .nb-eyebrow.is-amber { color: #e6b055; }

.shell-authenticated .nb-tbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text2);
  font: 600 11.5px var(--hb-font-text);
  cursor: pointer;
}
.shell-authenticated .nb-tbtn:hover { border-color: var(--hb-accent); color: var(--hb-accent); }

.shell-authenticated .nb-symtray {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 9px;
  padding: 8px;
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: var(--hb-card);
}
.shell-authenticated .nb-symtray[hidden] { display: none; }
.shell-authenticated .nb-sym {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 9px;
  border: 1px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text);
  font: 600 15px var(--hb-font-mono);
  cursor: pointer;
}
.shell-authenticated .nb-sym:hover { border-color: var(--hb-accent); color: var(--hb-accent); background: var(--hb-hover); }

.shell-authenticated .nb-math-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.shell-authenticated .nb-math-row { min-width: 0; }
.shell-authenticated .nb-math-input,
.shell-authenticated .nb-math-preview {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--hb-border2);
  border-radius: 11px;
  color: var(--hb-text);
  background: var(--hb-card);
  font: 600 15px/1.35 var(--hb-font-mono);
}
.shell-authenticated .nb-math-input {
  padding: 10px 12px;
  outline: none;
}
.shell-authenticated .nb-math-input:focus {
  border-color: var(--hb-accent);
  box-shadow: 0 0 0 3px rgba(33, 89, 230, 0.12);
}
.shell-authenticated .nb-math-preview {
  padding: 10px 12px;
  cursor: text;
  text-align: center;
  transition: border-color 130ms ease, background 130ms ease;
}
.shell-authenticated .nb-math-preview:hover {
  border-color: var(--hb-accent);
  background: var(--hb-hover);
}
.shell-authenticated .nb-math-input[hidden],
.shell-authenticated .nb-math-preview[hidden] {
  display: none;
}
.shell-authenticated .nb-math-add-line {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  margin-top: 9px;
  padding: 0 12px;
  border: 1px dashed var(--hb-border2);
  border-radius: 10px;
  color: var(--hb-text2);
  background: transparent;
  font: 600 12.5px/1 var(--hb-font-text);
  cursor: pointer;
  transition: border-color 130ms ease, color 130ms ease, background 130ms ease;
}
.shell-authenticated .nb-math-add-line:hover {
  border-color: var(--hb-accent);
  color: var(--hb-accent);
  background: var(--hb-hover);
}

.shell-authenticated .nb-table-grid {
  display: grid;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hb-border2);
}
.shell-authenticated .nb-cell {
  border: 1px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text);
  font: 500 13px var(--hb-font-text);
  outline: none;
  padding: 8px 10px;
  min-width: 0;
  width: 100%;
}
.shell-authenticated .nb-cell:focus { border-color: var(--hb-accent); background: var(--hb-hover); position: relative; z-index: 1; }
.shell-authenticated .nb-cell-h { font-weight: 700; }

.shell-authenticated .nb-canvas {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 11px;
  border: 1px dashed var(--hb-border2);
  background: var(--hb-card);
  cursor: crosshair;
  touch-action: none;
}
.shell-authenticated .nb-pen {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2.5px solid transparent;
  cursor: pointer;
  padding: 0;
}
.shell-authenticated .nb-pen-on { border-color: var(--hb-text); }

.shell-authenticated .nb-image-dropzone {
  display: block;
  border-radius: 11px;
  cursor: pointer;
  transition: box-shadow 140ms ease, transform 140ms ease;
}
.shell-authenticated .nb-image-dropzone.is-dragover {
  box-shadow: 0 0 0 3px rgba(33, 89, 230, 0.13);
  transform: translateY(-1px);
}
.shell-authenticated .nb-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  border-radius: 11px;
  border: 1.5px dashed var(--hb-border2);
  background-size: cover;
  background-position: center;
  color: var(--hb-text3);
  font: 500 13px var(--hb-font-text);
  text-align: center;
  padding: 20px;
}
.shell-authenticated .nb-image-preview.has-image { border-style: solid; color: transparent; }

.shell-authenticated .nb-in {
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text);
  border-radius: 11px;
  font: 500 14px var(--hb-font-text);
  outline: none;
  padding: 9px 12px;
  width: 100%;
}
.shell-authenticated .nb-in:focus { border-color: var(--hb-accent); box-shadow: 0 0 0 3px rgba(27, 73, 198, 0.13); }
html[data-theme="dark"] .shell-authenticated .nb-in:focus { box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.16); }
.shell-authenticated .nb-in::placeholder { color: var(--hb-text3); }
.shell-authenticated .nb-def-term { font-weight: 700; margin-bottom: 8px; }

.shell-authenticated .nb-add-row { display: flex; align-items: center; gap: 8px; padding: 12px 4px 0; position: relative; flex-wrap: wrap; }
.shell-authenticated .nb-addbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px dashed var(--hb-border2);
  background: transparent;
  color: var(--hb-text2);
  font: 600 13px var(--hb-font-text);
  cursor: pointer;
}
.shell-authenticated .nb-addbtn svg { width: 15px; height: 15px; }
.shell-authenticated .nb-addbtn:hover { border-color: var(--hb-accent); color: var(--hb-accent); background: var(--hb-hover); }
.shell-authenticated .nb-add-hint { font: 400 12px var(--hb-font-text); color: var(--hb-text3); }

.shell-authenticated .nb-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  box-shadow: 0 26px 50px -18px rgba(16, 42, 90, 0.4);
  margin-top: 10px;
  width: 100%;
  max-width: 460px;
  animation: nb-pop-in 160ms ease both;
}
.shell-authenticated .nb-menu[hidden] { display: none; }
.shell-authenticated .nb-mi {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: none;
  background: transparent;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
}
.shell-authenticated .nb-mi {
  transition: background 120ms ease, transform 120ms ease;
}
.shell-authenticated .nb-mi:hover { background: var(--hb-hover); }
.shell-authenticated .nb-mi:active { transform: scale(0.985); }
.shell-authenticated .nb-mic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
  color: #fff;
}
.shell-authenticated .nb-mic svg { width: 16px; height: 16px; }
.shell-authenticated .nb-mic.is-blue { background: #2f6bed; }
.shell-authenticated .nb-mic.is-orange { background: #f5981f; }
.shell-authenticated .nb-mic.is-cyan { background: #22b3e0; }
.shell-authenticated .nb-mic.is-green { background: #1fa85e; }
.shell-authenticated .nb-mic.is-pink { background: #c2367f; }
.shell-authenticated .nb-mic.is-purple { background: #6d5ef0; }
.shell-authenticated .nb-mic.is-red { background: #ef4a5f; }
.shell-authenticated .nb-mi-name { display: block; font: 600 13.5px var(--hb-font-text); color: var(--hb-text); }
.shell-authenticated .nb-mi-sub { display: block; font: 400 11.5px var(--hb-font-text); color: var(--hb-text3); margin-top: 1px; }

@keyframes nb-pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .shell-authenticated .nb-shell { grid-template-columns: 1fr; padding: 14px 14px 50px; }
  .shell-authenticated .nb-rail { position: static; }
}

@media (max-width: 620px) {
  .shell-authenticated .nb-status-bar {
    align-items: stretch;
  }
  .shell-authenticated .nb-status-line {
    flex-basis: 100%;
    min-width: 0;
  }
  .shell-authenticated .nb-send {
    width: 100%;
    justify-content: center;
  }
  .shell-authenticated .nb-editor-card {
    padding: 20px 16px 22px;
  }
  .shell-authenticated .nb-menu {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .shell-authenticated .nb-add-hint {
    display: none;
  }
}

/* ==========================================================================
   Record Lecture — consent-gated microphone/file capture and processing.
   ========================================================================== */

.shell-authenticated .rl-card {
  min-height: 520px;
  padding: clamp(26px, 4vw, 48px);
}

.shell-authenticated .rl-eyebrow {
  margin-bottom: 10px;
  color: var(--hb-accent);
  font: 700 11px/1 var(--hb-font-text);
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.shell-authenticated .rl-heading {
  margin: 4px 0 6px;
  font: 600 24px var(--hb-font-display);
  letter-spacing: -0.4px;
  color: var(--hb-text);
}
.shell-authenticated .rl-intro { margin: 0 0 20px; font: 400 14px/1.6 var(--hb-font-text); color: var(--hb-text2); max-width: 520px; }

.shell-authenticated .rl-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--hb-border2);
  background: var(--hb-card);
  cursor: pointer;
}
.shell-authenticated .rl-check:hover { border-color: #c99a2b; }
.shell-authenticated .rl-check:focus-within {
  border-color: #c99a2b;
  box-shadow: 0 0 0 3px rgba(201, 154, 43, 0.14);
}
.shell-authenticated .rl-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shell-authenticated .rl-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--hb-border2);
  flex: none;
  margin-top: 1px;
  background: var(--hb-card);
  color: transparent;
}
.shell-authenticated .rl-box-check { width: 13px; height: 13px; }
.shell-authenticated .rl-check-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.shell-authenticated .rl-check-copy strong { font: 600 14.5px var(--hb-font-text); color: var(--hb-text); }
.shell-authenticated .rl-check-copy span { font: 400 12.5px/1.55 var(--hb-font-text); color: var(--hb-text2); }
.shell-authenticated .rl-check-warn { width: 19px; height: 19px; color: #c99a2b; flex: none; margin-top: 2px; }
.shell-authenticated .rl-check:has(.rl-check-input:checked) {
  border-color: #c99a2b;
  background: linear-gradient(135deg, #fdf5e1, #fefaf0);
  box-shadow: 0 0 0 3px rgba(201, 154, 43, 0.14);
}
html[data-theme="dark"] .shell-authenticated .rl-check:has(.rl-check-input:checked) {
  background: rgba(201, 154, 43, 0.12);
}
.shell-authenticated .rl-check:has(.rl-check-input:checked) .rl-box {
  border-color: #c99a2b;
  background: #c99a2b;
  color: #fff;
}

.shell-authenticated .rl-action-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.shell-authenticated .rl-start {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #ef5f52, #d8402f);
  color: #fff;
  font: 600 15.5px var(--hb-font-text);
  cursor: pointer;
  box-shadow: 0 14px 30px -18px rgba(197, 48, 35, 0.8);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.shell-authenticated .rl-start:hover:not(:disabled),
.shell-authenticated .rl-start:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(197, 48, 35, 0.82);
  outline: none;
}
.shell-authenticated .rl-start:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}
.shell-authenticated .rl-start-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.shell-authenticated .rl-start-icon svg { width: 15px; height: 15px; }
.shell-authenticated .rl-soon-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  font: 700 9.5px var(--hb-font-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8a5300;
  background: #fdf1d8;
  padding: 3px 8px;
  border-radius: 999px;
}
html[data-theme="dark"] .shell-authenticated .rl-soon-badge { color: #e6b055; background: rgba(224, 161, 39, 0.2); }

.shell-authenticated .rl-drop {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 220px;
  padding: 0 18px;
  height: 54px;
  border: 1.5px dashed var(--hb-border2);
  border-radius: 14px;
  background: var(--hb-subtle);
  color: var(--hb-accent);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.shell-authenticated .rl-drop svg { width: 20px; height: 20px; flex: none; }
.shell-authenticated .rl-drop:hover,
.shell-authenticated .rl-drop:focus-within {
  border-color: var(--hb-accent);
  background: var(--hb-card);
  transform: translateY(-2px);
}
.shell-authenticated .rl-drop-disabled { cursor: not-allowed; opacity: 0.55; }
.shell-authenticated .rl-drop-copy { display: grid; gap: 1px; min-width: 0; }
.shell-authenticated .rl-drop-copy strong { font: 600 13.5px var(--hb-font-text); color: var(--hb-text); }
.shell-authenticated .rl-drop-copy span { font: 400 11.5px var(--hb-font-text); color: var(--hb-text3); }

.shell-authenticated .rl-fallback { margin: 16px 2px 0; font: 400 13px/1.6 var(--hb-font-text); color: var(--hb-text3); max-width: 520px; }
.shell-authenticated .rl-fallback a { margin-left: 4px; color: var(--hb-accent); font-weight: 600; }

.shell-authenticated .rl-live {
  display: grid;
  gap: 28px;
  min-height: 390px;
  align-content: center;
}

.shell-authenticated .rl-live[hidden],
.shell-authenticated .rl-processing[hidden] {
  display: none;
}

.shell-authenticated .rl-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.shell-authenticated .rl-live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c7372b;
  font: 700 12px/1 var(--hb-font-text);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.shell-authenticated .rl-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e24b3e;
  box-shadow: 0 0 0 7px rgba(226, 75, 62, 0.11);
  animation: rl-record-pulse 1.5s ease-in-out infinite;
}

.shell-authenticated .rl-timer {
  color: var(--hb-text);
  font: 600 38px/1 var(--hb-font-mono);
  letter-spacing: -1.4px;
}

.shell-authenticated .rl-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 118px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(45, 92, 231, 0.04), rgba(17, 164, 109, 0.04));
}

.shell-authenticated .rl-wave span {
  width: 4px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f63ed, #14a56e);
  animation: rl-wave 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--rl-wave-index) * -45ms);
}

.shell-authenticated .rl-wave span:nth-child(4n + 1) { height: 22px; }
.shell-authenticated .rl-wave span:nth-child(5n + 2) { height: 56px; }
.shell-authenticated .rl-wave span:nth-child(6n + 3) { height: 74px; }
.shell-authenticated .rl-wave span:nth-child(7n + 4) { height: 42px; }

.shell-authenticated .rl-live.is-paused .rl-wave span,
.shell-authenticated .rl-live.is-paused .rl-live-dot {
  animation-play-state: paused;
  opacity: 0.45;
}

.shell-authenticated .rl-live-copy {
  margin: -12px 0 0;
  color: var(--hb-text3);
  text-align: center;
  font: 400 13px/1.5 var(--hb-font-text);
}

.shell-authenticated .rl-live-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.shell-authenticated .rl-pause,
.shell-authenticated .rl-end {
  min-width: 132px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font: 600 14px/1 var(--hb-font-text);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.shell-authenticated .rl-pause {
  border: 1px solid var(--hb-border2);
  color: var(--hb-text);
  background: var(--hb-card);
}

.shell-authenticated .rl-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  color: #fff;
  background: #d94336;
  box-shadow: 0 14px 28px -18px rgba(180, 43, 34, 0.9);
}

.shell-authenticated .rl-pause:hover,
.shell-authenticated .rl-end:hover {
  transform: translateY(-2px);
}

.shell-authenticated .rl-end-square {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}

.shell-authenticated .rl-processing {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 360px;
}

.shell-authenticated .rl-processing-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, #2e63ee, #139f78);
  box-shadow: 0 24px 42px -20px rgba(31, 87, 220, 0.65);
}

.shell-authenticated .rl-processing-orb span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  animation: rl-processing 1.2s ease-in-out infinite;
}

.shell-authenticated .rl-processing-orb span:nth-child(1) { transform: translateX(-17px); }
.shell-authenticated .rl-processing-orb span:nth-child(2) { animation-delay: 150ms; }
.shell-authenticated .rl-processing-orb span:nth-child(3) { transform: translateX(17px); animation-delay: 300ms; }

.shell-authenticated .rl-error {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(202, 57, 43, 0.24);
  border-radius: 13px;
  color: #a93127;
  background: rgba(226, 75, 62, 0.08);
  font: 500 13px/1.45 var(--hb-font-text);
}

@keyframes rl-record-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.78; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes rl-wave {
  from { transform: scaleY(0.52); opacity: 0.58; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes rl-processing {
  0%, 100% { opacity: 0.35; transform: translateY(3px); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 640px) {
  .shell-authenticated .rl-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .shell-authenticated .rl-action-row,
  .shell-authenticated .rl-live-actions {
    flex-direction: column;
  }

  .shell-authenticated .rl-start,
  .shell-authenticated .rl-drop,
  .shell-authenticated .rl-pause,
  .shell-authenticated .rl-end {
    width: 100%;
    min-width: 0;
  }

  .shell-authenticated .rl-processing {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .shell-authenticated .rl-wave {
    gap: 3px;
  }
}

/* ============================================================
   Profile — designer-aligned academic identity and progress
   ============================================================ */
body:has(.shell-profile) {
  background: #eef1f7;
}

html[data-theme="dark"] body:has(.shell-profile) {
  background: #0b1220;
}

.shell-profile {
  width: min(1200px, calc(100% - 60px));
  min-height: 100vh;
}

.shell-profile .academic-profile-page {
  gap: 32px;
  max-width: 760px;
  padding: 40px 0 56px;
}

.shell-profile .academic-profile-identity {
  gap: 8px;
  padding: 0 16px;
}

.shell-profile .academic-profile-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, #2a62f0 0%, #1c8fb0 55%, #12a26b 100%);
  box-shadow: 0 20px 40px -16px rgba(26, 70, 194, 0.6);
  font: 700 38px/1 var(--hb-font-display);
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

.shell-profile .academic-profile-avatar:hover,
.shell-profile .academic-profile-avatar:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 28px 50px -18px rgba(26, 70, 194, 0.72);
  outline: none;
}

.shell-profile .academic-profile-avatar:focus-visible {
  box-shadow: 0 0 0 4px rgba(33, 89, 230, 0.2),
    0 28px 50px -18px rgba(26, 70, 194, 0.72);
}

.shell-profile .academic-profile-avatar-camera {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 23, 48, 0.44);
  opacity: 0;
  transition: opacity 180ms ease;
}

.shell-profile .academic-profile-avatar-camera svg {
  width: 27px;
  height: 27px;
}

.shell-profile .academic-profile-avatar:hover .academic-profile-avatar-camera,
.shell-profile .academic-profile-avatar:focus-visible .academic-profile-avatar-camera {
  opacity: 1;
}

.shell-profile .academic-profile-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--hb-text);
  background: transparent;
  font: 600 34px/1.12 var(--hb-font-display);
  letter-spacing: -0.6px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.shell-profile .academic-profile-name svg {
  width: 19px;
  height: 19px;
  color: var(--hb-text3);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.shell-profile .academic-profile-name:hover,
.shell-profile .academic-profile-name:focus-visible {
  color: var(--hb-accent);
  background: var(--hb-hover);
  outline: none;
}

.shell-profile .academic-profile-name:hover svg,
.shell-profile .academic-profile-name:focus-visible svg {
  opacity: 1;
  transform: translateX(0);
}

.shell-profile .academic-profile-identity > p {
  color: var(--hb-text2);
  font: 400 16px/1.4 var(--hb-font-text);
}

.shell-profile .academic-profile-school {
  gap: 9px;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 14px 9px 18px;
  border-color: var(--hb-border);
  border-radius: 999px;
  color: var(--hb-text);
  background: var(--hb-card);
  box-shadow: 0 1px 2px rgba(16, 42, 90, 0.05);
  font: 500 14.5px/1.25 var(--hb-font-text);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.shell-profile .academic-profile-school:hover,
.shell-profile .academic-profile-school:focus-visible {
  border-color: var(--hb-border2);
  box-shadow: 0 12px 24px -12px rgba(16, 42, 90, 0.4);
  text-decoration: none;
  transform: translateY(-1px);
  outline: none;
}

.shell-profile .academic-profile-school-chevron {
  width: 15px;
  height: 15px;
  color: var(--hb-text3);
  opacity: 0.45;
  transition: opacity 150ms ease, transform 150ms ease;
}

.shell-profile .academic-profile-school:hover .academic-profile-school-chevron,
.shell-profile .academic-profile-school:focus-visible .academic-profile-school-chevron {
  opacity: 1;
  transform: translateX(2px);
}

.shell-profile .academic-profile-group {
  gap: 14px;
}

.shell-profile .academic-profile-group > h2 {
  margin-inline: 4px;
  color: var(--hb-text3);
  font: 700 12px/1 var(--hb-font-text);
  letter-spacing: 1.4px;
}

.shell-profile .academic-profile-group > h2 small {
  color: var(--hb-text3);
  font: 600 12.5px/1 var(--hb-font-mono);
  text-transform: uppercase;
}

.shell-profile .academic-profile-card {
  border-color: var(--hb-border);
  border-radius: 22px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}

.shell-profile .academic-degree-main {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 32px;
}

.shell-profile .academic-degree-rings {
  width: 170px;
  height: 170px;
}

.shell-profile .academic-ring-progress,
.shell-profile .academic-ring-track {
  stroke-linecap: butt;
}

.shell-profile .academic-ring-progress {
  transition: stroke-dashoffset 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shell-profile .academic-credit-total {
  color: var(--hb-text);
  font: 600 32px/1 var(--hb-font-display);
  letter-spacing: -0.4px;
}

.shell-profile .academic-credit-total small {
  color: var(--hb-text2);
  font: 400 15px/1 var(--hb-font-text);
}

.shell-profile .academic-degree-legend > p {
  margin: 8px 0 16px;
  color: var(--hb-text3);
  font: 400 13.5px/1.5 var(--hb-font-text);
}

.shell-profile .academic-degree-legend ul {
  gap: 12px;
}

.shell-profile .academic-degree-legend li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.shell-profile .academic-bucket-label {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--hb-text);
  font: 500 13.5px/1.2 var(--hb-font-text);
}

.shell-profile .academic-bucket-label strong {
  color: var(--hb-text2);
  font: 700 12.5px/1 var(--hb-font-mono);
}

.shell-profile .academic-bucket-dot {
  width: 9px;
  height: 9px;
}

.shell-profile .academic-bucket-progress {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hb-track);
}

.shell-profile .academic-bucket-progress > span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
}

.shell-profile .academic-bucket-progress > .is-major {
  background: #2159e6;
}

.shell-profile .academic-bucket-progress > .is-general_education {
  background: #12a26b;
}

.shell-profile .academic-bucket-progress > .is-elective {
  background: #d99a2b;
}

.shell-profile .academic-degree-stats {
  padding: 0;
}

.shell-profile .academic-degree-stats > span {
  padding: 20px 12px;
}

.shell-profile .academic-degree-stats strong {
  color: var(--hb-text);
  font: 600 24px/1 var(--hb-font-display);
}

.shell-profile .academic-degree-stats > span:nth-child(2) strong {
  color: #12a26b;
}

.shell-profile .academic-degree-stats small {
  margin-top: 4px;
  color: var(--hb-text3);
  font: 400 12.5px/1.2 var(--hb-font-text);
}

.shell-profile .academic-profile-row {
  min-height: 76px;
  padding: 16px 22px;
  border-color: var(--hb-border);
  color: var(--hb-text);
}

.shell-profile .academic-profile-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.shell-profile .academic-profile-row-icon.is-friends {
  background: #1fa85f;
}

.shell-profile .academic-profile-row > span:nth-child(2) {
  font: 600 15.5px/1.3 var(--hb-font-text);
}

.shell-profile .academic-profile-row > strong {
  color: var(--hb-text2);
  font: 500 15px/1.3 var(--hb-font-text);
}

.shell-profile .academic-course-row {
  grid-template-columns: minmax(0, 1fr) auto 42px;
  gap: 18px;
  min-height: 74px;
  padding: 14px 22px;
}

.shell-profile .academic-course-copy strong {
  color: var(--hb-text);
  font: 600 15.5px/1.25 var(--hb-font-text);
}

.shell-profile .academic-course-copy span {
  color: var(--hb-text3);
  font: 400 13px/1.35 var(--hb-font-text);
}

.shell-profile .academic-course-grade {
  min-width: 42px;
  padding: 6px 9px;
  font: 700 12px/1.2 var(--hb-font-text);
}

.shell-profile .academic-course-grade.is-medium {
  color: #2159e6;
  background: #e7efff;
}

.shell-profile .academic-course-grade.is-caution {
  color: #a86b00;
  background: #fff2d8;
}

.shell-profile .academic-course-credits {
  color: var(--hb-text3);
  font: 500 13px/1.2 var(--hb-font-text);
  text-align: right;
  white-space: nowrap;
}

.shell-profile .academic-add-course {
  min-height: 58px;
  padding: 14px 22px;
  border-top: 1px dashed var(--hb-border2);
}

.shell-profile .academic-add-course-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--hb-accent);
  font: 600 15px/1.2 var(--hb-font-text);
}

.shell-profile .academic-add-course-label svg {
  width: 19px;
  height: 19px;
}

.shell-profile .academic-add-course .academic-add-course-chevron {
  color: var(--hb-text3);
  font-size: 1.7rem;
}

.shell-profile .academic-profile-image-sheet {
  border-radius: 24px;
}

.shell-profile .academic-profile-sheet {
  border-radius: 24px;
}

.shell-profile .academic-profile-settings-group {
  gap: 0;
}

.shell-profile .academic-profile-settings-group .academic-profile-card {
  border-radius: 18px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.shell-profile .academic-profile-settings-group .academic-profile-card:hover {
  box-shadow: 0 16px 30px -22px rgba(16, 42, 90, 0.55);
  transform: translateY(-1px);
}

.shell-profile .academic-profile-settings-link {
  border-radius: inherit;
}

.shell-profile .academic-profile-friends-group .academic-profile-card {
  border-radius: 18px;
}

.shell-profile .academic-profile-friends-link {
  grid-template-columns: 40px minmax(0, 1fr) 14px;
  border-radius: inherit;
  cursor: pointer;
}

.shell-profile .academic-profile-friends-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.shell-profile .academic-profile-friends-copy strong {
  color: var(--hb-text);
  font: 600 15.5px/1.25 var(--hb-font-text);
}

.shell-profile .academic-profile-friends-copy small {
  color: var(--hb-text3);
  font: 400 14px/1.3 var(--hb-font-text);
}

.shell-profile .academic-profile-friends-link .academic-row-chevron {
  justify-self: end;
}

.shell-profile .academic-friends-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: 100%;
}

.shell-profile .academic-friends-sheet {
  gap: 0;
  max-height: min(760px, calc(100dvh - 32px));
  padding: 38px 42px 32px;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 28px;
  background: var(--hb-card);
}

.shell-profile .academic-friends-header {
  margin-bottom: 22px;
}

.shell-profile .academic-friends-header .study-info-dialog-copy {
  gap: 8px;
}

.shell-profile .academic-friends-header .study-info-dialog-label {
  color: var(--hb-accent);
  font: 700 13px/1 var(--hb-font-text);
  letter-spacing: 1.5px;
}

.shell-profile .academic-friends-header .study-info-dialog-copy > strong {
  color: var(--hb-text);
  font: 600 32px/1.08 var(--hb-font-display);
  letter-spacing: -0.5px;
}

.shell-profile .academic-friends-header p {
  max-width: 500px;
  margin: 6px 0 0;
  color: var(--hb-text2);
  font: 400 16px/1.5 var(--hb-font-text);
}

.shell-profile .academic-friends-header .study-info-close {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--hb-text2);
  font: 300 29px/1 var(--hb-font-text);
}

.shell-profile .academic-friends-list {
  display: grid;
  min-height: 72px;
  max-height: min(430px, calc(100dvh - 310px));
  margin: 0 -8px;
  padding: 0 8px;
  overflow-y: auto;
  scrollbar-color: #b8bbc2 transparent;
  scrollbar-width: thin;
}

.shell-profile .academic-friend-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 10px 12px;
  border-radius: 16px;
  transition: background 150ms ease;
}

.shell-profile .academic-friend-row:hover {
  background: var(--hb-hover);
}

.shell-profile .academic-friend-avatar-wrap {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
}

.shell-profile .academic-friend-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  color: var(--hb-accent);
  background: #e8efff;
  font: 700 16px/1 var(--hb-font-display);
}

.shell-profile .academic-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell-profile .academic-friend-online-dot {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--hb-card);
  border-radius: 50%;
  background: #12a26b;
}

.shell-profile .academic-friend-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shell-profile .academic-friend-copy strong,
.shell-profile .academic-friend-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-profile .academic-friend-copy strong {
  color: var(--hb-text);
  font: 600 18px/1.2 var(--hb-font-display);
}

.shell-profile .academic-friend-copy small {
  color: var(--hb-text3);
  font: 400 14px/1.3 var(--hb-font-text);
}

.shell-profile .academic-friend-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shell-profile .academic-friend-actions form {
  margin: 0;
}

.shell-profile .academic-friend-action {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  color: var(--hb-text3);
  background: var(--hb-card);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease,
    background 150ms ease, transform 150ms ease;
}

.shell-profile .academic-friend-action:hover,
.shell-profile .academic-friend-action:focus-visible {
  border-color: var(--hb-border2);
  color: var(--hb-accent);
  background: var(--hb-hover);
  outline: none;
  transform: translateY(-1px);
}

.shell-profile .academic-friend-action.is-muted {
  color: #c78a16;
}

.shell-profile .academic-friend-action.is-remove:hover,
.shell-profile .academic-friend-action.is-remove:focus-visible {
  color: #cc3f32;
  border-color: rgba(204, 63, 50, 0.28);
  background: rgba(204, 63, 50, 0.06);
}

.shell-profile .academic-friend-action svg {
  width: 22px;
  height: 22px;
}

.shell-profile .academic-friends-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 24px;
  color: var(--hb-text2);
  text-align: center;
}

.shell-profile .academic-friends-empty strong {
  color: var(--hb-text);
  font: 600 18px/1.2 var(--hb-font-display);
}

.shell-profile .academic-friends-empty span {
  font: 400 14px/1.4 var(--hb-font-text);
}

.shell-profile .academic-friends-find {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin-top: 18px;
  padding: 15px 20px;
  border: 1px dashed var(--hb-border2);
  border-radius: 18px;
  color: var(--hb-accent);
  background: var(--hb-card);
  font: 600 16px/1.2 var(--hb-font-text);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease,
    transform 150ms ease;
}

.shell-profile .academic-friends-find:hover,
.shell-profile .academic-friends-find:focus-visible {
  border-color: var(--hb-accent);
  background: var(--hb-hover);
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}

.shell-profile .academic-friends-find > span:first-child {
  font-size: 26px;
  font-weight: 300;
  text-align: center;
}

.shell-profile .academic-friends-find > span:last-child {
  font-size: 28px;
  line-height: 1;
}

html[data-theme="dark"] .shell-profile .academic-course-grade.is-medium {
  color: #8eaeff;
  background: rgba(33, 89, 230, 0.2);
}

html[data-theme="dark"] .shell-profile .academic-course-grade.is-caution {
  color: #ffd48a;
  background: rgba(217, 154, 43, 0.18);
}

@media (max-width: 720px) {
  .shell-profile {
    width: calc(100% - 32px);
  }

  .shell-profile .academic-profile-page {
    gap: 28px;
    padding: 24px 0 44px;
  }

  .shell-profile .academic-degree-main {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 18px;
  }

  .shell-profile .academic-degree-rings {
    width: 118px;
    height: 118px;
  }

  .shell-profile .academic-credit-total {
    display: block;
    font-size: 28px;
  }

  .shell-profile .academic-credit-total small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
  }

  .shell-profile .academic-profile-row,
  .shell-profile .academic-course-row,
  .shell-profile .academic-add-course {
    padding-inline: 16px;
  }

  .shell-profile .academic-course-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
  }

  .shell-profile .academic-course-credits {
    grid-column: 2;
  }

  .shell-profile .academic-friends-sheet {
    padding: 28px 22px 22px;
  }

  .shell-profile .academic-friends-header .study-info-dialog-copy > strong {
    font-size: 27px;
  }

  .shell-profile .academic-friends-header p {
    font-size: 14px;
  }

  .shell-profile .academic-friend-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: 4px;
  }

  .shell-profile .academic-friend-avatar-wrap,
  .shell-profile .academic-friend-avatar {
    width: 48px;
    height: 48px;
  }

  .shell-profile .academic-friend-action {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 470px) {
  .shell-profile .academic-degree-main {
    grid-template-columns: 1fr;
  }

  .shell-profile .academic-degree-rings {
    margin: 0 auto;
  }

  .shell-profile .academic-profile-school {
    max-width: 100%;
  }

  .shell-profile .academic-profile-school span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ============================================================
   Settings — designer-aligned account controls and plan
   ============================================================ */
body:has(.shell-settings) {
  background: #eef1f7;
}

html[data-theme="dark"] body:has(.shell-settings) {
  background: #0b1220;
}

.shell-settings {
  width: min(1200px, calc(100% - 60px));
  min-height: 100vh;
}

.shell-settings .settings-page-stack {
  gap: 36px;
  max-width: 640px;
  padding: 38px 30px 58px;
}

.shell-settings .settings-profile-header {
  gap: 7px;
  padding: 0 16px 2px;
}

.shell-settings .settings-avatar-button {
  margin-bottom: 10px;
  border-radius: 28px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shell-settings .settings-avatar-button:hover,
.shell-settings .settings-avatar-button:focus-visible {
  transform: translateY(-2px);
}

.shell-settings .settings-avatar {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  font: 700 36px/1 var(--hb-font-display);
  box-shadow: 0 20px 40px -16px rgba(26, 70, 194, 0.58);
}

.shell-settings .settings-avatar-edit {
  right: -4px;
  bottom: -4px;
  width: 31px;
  height: 31px;
  border-width: 3px;
}

.shell-settings .settings-profile-header .settings-account-name {
  font: 600 clamp(30px, 5vw, 34px) / 1.12 var(--hb-font-display);
  letter-spacing: -0.6px;
}

.shell-settings .settings-profile-header p {
  font: 400 15.5px/1.45 var(--hb-font-text);
}

.shell-settings .settings-group {
  gap: 16px;
}

.shell-settings .settings-group > h2 {
  padding-inline: 8px;
  color: var(--hb-text3);
  font: 700 12px/1.2 var(--hb-font-text);
  letter-spacing: 1.35px;
}

.shell-authenticated.shell-settings .settings-group-card {
  border: 1px solid var(--hb-border);
  border-radius: 30px;
  background: var(--hb-card);
  box-shadow: 0 12px 30px -22px rgba(16, 42, 90, 0.38);
}

.shell-authenticated.shell-settings .settings-plan-card {
  position: relative;
  gap: 0;
  overflow: hidden;
  min-height: 320px;
  padding: 26px 28px 24px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0c1c3a 0%, #123a8f 48%, #0f9f6e 128%);
  box-shadow: 0 24px 46px -26px rgba(12, 28, 58, 0.75);
}

.shell-authenticated.shell-settings .settings-plan-card.is-active {
  align-content: start;
  min-height: 0;
  padding-block: 22px;
  background: linear-gradient(135deg, #0c1c3a 0%, #0f5f6e 62%, #0f9f6e 132%);
}

.shell-authenticated.shell-settings .settings-plan-card.is-active h3 {
  margin-top: 14px;
}

.shell-authenticated.shell-settings .settings-plan-card.is-active p {
  line-height: 1.4;
}

.shell-authenticated.shell-settings .settings-plan-card.is-active .settings-plan-footer {
  margin-top: 18px;
}

.shell-settings .settings-plan-glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.shell-settings .settings-plan-heading,
.shell-settings .settings-plan-card h3,
.shell-settings .settings-plan-card p,
.shell-settings .settings-plan-impact,
.shell-settings .settings-plan-features,
.shell-settings .settings-plan-footer {
  position: relative;
}

.shell-settings .settings-plan-heading {
  align-items: center;
  gap: 14px;
}

.shell-settings .settings-plan-heading strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bfe8d6;
  font: 700 11px/1.2 var(--hb-font-text);
  letter-spacing: 1.55px;
  text-transform: uppercase;
}

.shell-settings .settings-plan-heading strong svg {
  width: 15px;
  height: 15px;
}

.shell-settings .settings-plan-heading span {
  padding: 5px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  font: 600 11.5px/1.2 var(--hb-font-text);
  backdrop-filter: blur(4px);
}

.shell-settings .settings-plan-card h3 {
  max-width: 400px;
  margin: 15px 0 8px;
  color: #fff;
  font: 600 25px/1.16 var(--hb-font-display);
  letter-spacing: -0.5px;
}

.shell-authenticated.shell-settings .settings-plan-card p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font: 400 14.5px/1.55 var(--hb-font-text);
}

.shell-settings .settings-plan-impact {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.shell-settings .settings-plan-impact.is-savings {
  width: 100%;
  max-width: 840px;
  box-sizing: border-box;
  gap: 12px;
  padding: 10px 14px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.1)
  );
  backdrop-filter: blur(10px);
}

.shell-settings .settings-plan-impact > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  color: #72e0ad;
  background: rgba(255, 255, 255, 0.14);
}

.shell-settings .settings-plan-impact svg {
  width: 22px;
  height: 22px;
}

.shell-settings .settings-plan-impact.is-savings > span {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.shell-settings .settings-plan-impact.is-savings svg {
  width: 22px;
  height: 22px;
}

.shell-authenticated.shell-settings .settings-plan-impact p {
  max-width: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  line-height: 1.45;
}

.shell-authenticated.shell-settings .settings-plan-impact.is-savings p {
  font-size: 14px;
  line-height: 1.5;
}

.shell-settings .settings-plan-impact strong {
  color: #fff;
  font-weight: 700;
}

.shell-settings .settings-plan-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.shell-settings .settings-plan-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font: 600 12px/1.2 var(--hb-font-text);
}

.shell-settings .settings-plan-features svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.shell-settings .settings-plan-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.shell-settings .settings-plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font: 600 15.5px/1.2 var(--hb-font-text);
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms ease, background 160ms ease;
}

.shell-settings .settings-plan-card.is-upgrade .settings-plan-action {
  border-color: #fff;
  color: #0c1c3a;
  background: #fff;
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.5);
}

.shell-settings .settings-plan-action svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.shell-settings .settings-plan-action:hover,
.shell-settings .settings-plan-action:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.shell-settings .settings-plan-action:hover {
  box-shadow: 0 18px 32px -13px rgba(0, 0, 0, 0.55);
}

.shell-settings .settings-plan-footer small {
  color: rgba(255, 255, 255, 0.85);
  font: 500 13.5px/1.3 var(--hb-font-text);
}

.shell-settings .settings-row {
  gap: 18px;
  min-height: 84px;
  padding: 18px 26px;
  transition: background 140ms ease;
}

.shell-settings .settings-row-icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.shell-settings .settings-row-icon svg {
  width: 23px;
  height: 23px;
}

.shell-settings .settings-row-label {
  font: 600 16.5px/1.25 var(--hb-font-text);
}

.shell-settings .settings-row-sublabel {
  margin-top: 2px;
  color: var(--hb-text3);
  font: 400 13px/1.3 var(--hb-font-text);
}

.shell-settings .settings-row-value {
  color: var(--hb-text2);
  font: 500 16px/1.25 var(--hb-font-text);
}

.shell-settings .settings-row-chevron {
  color: var(--hb-text3);
  opacity: 0.55;
  transition: opacity 140ms ease, transform 140ms ease;
}

.shell-settings .settings-row:hover .settings-row-chevron,
.shell-settings .settings-row:focus-visible .settings-row-chevron {
  opacity: 1;
  transform: translateX(2px);
}

.shell-settings .settings-row + .settings-row,
.shell-settings .settings-row-form + .settings-row,
.shell-settings .settings-row + .settings-row-form {
  border-top-color: var(--hb-border);
}

.shell-settings .settings-account-actions {
  gap: 18px;
}

@media (max-width: 720px) {
  .shell-settings {
    width: calc(100% - 32px);
  }

  .shell-settings .settings-page-stack {
    padding: 24px 0 44px;
  }
}

@media (max-width: 520px) {
  .shell-settings .settings-page-stack {
    gap: 24px;
  }

  .shell-settings .settings-avatar {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    font-size: 30px;
  }

  .shell-authenticated.shell-settings .settings-plan-card {
    min-height: 0;
    padding: 23px 20px 22px;
  }

  .shell-settings .settings-plan-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .shell-settings .settings-plan-card h3 {
    font-size: 22px;
  }

  .shell-settings .settings-plan-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .shell-settings .settings-plan-action {
    width: 100%;
  }

  .shell-settings .settings-plan-footer small {
    text-align: center;
  }

  .shell-settings .settings-row {
    gap: 12px;
    min-height: 72px;
    padding: 14px 16px;
  }

  .shell-authenticated.shell-settings .settings-group-card {
    border-radius: 22px;
  }

  .shell-settings .settings-row-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .shell-settings .settings-row-icon svg {
    width: 21px;
    height: 21px;
  }

  .shell-settings .settings-row-label {
    font-size: 15.5px;
  }

  .shell-settings .settings-row-value {
    max-width: 36%;
    font-size: 13px;
  }
}

.shell-settings .settings-row-delete-account .settings-row-label {
  color: var(--hb-text);
}

.shell-settings .settings-row-delete-account .settings-row-chevron {
  color: #c6373f;
}

.shell-settings .settings-row-delete-account:hover,
.shell-settings .settings-row-delete-account:focus-visible {
  background: rgba(198, 55, 63, 0.055);
}

html[data-theme="dark"]
  .shell-settings
  .settings-row-delete-account
  .settings-row-chevron {
  color: #ff8173;
}

/* Settings account deletion */
.shell-settings-delete-account .settings-delete-account-page {
  display: grid;
  gap: 24px;
  width: min(100%, 720px);
  padding: 46px 30px 64px;
}

.settings-delete-account-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-delete-account-header > a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hb-border);
  border-radius: 50%;
  color: var(--hb-text);
  background: var(--hb-card);
  box-shadow: 0 10px 24px -18px rgba(16, 42, 90, 0.6);
  font: 400 31px/1 var(--hb-font-text);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.settings-delete-account-header > a:hover,
.settings-delete-account-header > a:focus-visible {
  transform: translateX(-2px);
  box-shadow: 0 14px 30px -18px rgba(16, 42, 90, 0.72);
  text-decoration: none;
}

.settings-delete-account-header > div {
  display: grid;
  gap: 3px;
}

.settings-delete-account-header span {
  color: var(--hb-text3);
  font: 700 11px/1.2 var(--hb-font-text);
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.settings-delete-account-header h1 {
  margin: 0;
  color: var(--hb-text);
  font: 600 34px/1.08 var(--hb-font-display);
  letter-spacing: -0.7px;
}

.settings-delete-account-card {
  display: grid;
  gap: 22px;
  padding: 34px;
  border: 1px solid var(--hb-border);
  border-radius: 30px;
  background: var(--hb-card);
  box-shadow: 0 18px 42px -30px rgba(16, 42, 90, 0.58);
}

.settings-delete-account-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #c6373f;
  background: #fcebec;
}

.settings-delete-account-icon svg {
  width: 26px;
  height: 26px;
}

.settings-delete-account-copy {
  display: grid;
  gap: 10px;
}

.settings-delete-account-copy h2 {
  margin: 0;
  color: var(--hb-text);
  font: 600 26px/1.15 var(--hb-font-display);
  letter-spacing: -0.45px;
}

.settings-delete-account-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--hb-text3);
  font: 400 14.5px/1.55 var(--hb-font-text);
}

.settings-delete-account-form {
  display: grid;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--hb-border);
}

.settings-delete-account-form .field {
  gap: 9px;
}

.settings-delete-account-form label {
  color: var(--hb-text);
  font: 650 14px/1.3 var(--hb-font-text);
}

.settings-delete-account-form input {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--hb-border);
  border-radius: 15px;
  color: var(--hb-text);
  background: var(--hb-card2);
  font: 600 16px/1.2 var(--hb-font-text);
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.settings-delete-account-form input:focus {
  border-color: #c6373f;
  box-shadow: 0 0 0 4px rgba(198, 55, 63, 0.1);
}

.settings-delete-account-form input::placeholder {
  color: var(--hb-text3);
  opacity: 0.66;
}

.settings-delete-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-delete-account-actions .button {
  min-width: 156px;
}

.settings-delete-account-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

html[data-theme="dark"] .settings-delete-account-icon {
  color: #ff8173;
  background: rgba(198, 55, 63, 0.16);
}

@media (max-width: 720px) {
  .shell-settings-delete-account .settings-delete-account-page {
    padding: 30px 0 52px;
  }
}

@media (max-width: 520px) {
  .shell-settings-delete-account .settings-delete-account-page {
    gap: 18px;
    padding-top: 22px;
  }

  .settings-delete-account-header > a {
    width: 42px;
    height: 42px;
  }

  .settings-delete-account-header h1 {
    font-size: 29px;
  }

  .settings-delete-account-card {
    gap: 19px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .settings-delete-account-copy h2 {
    font-size: 23px;
  }

  .settings-delete-account-actions {
    display: grid;
  }

  .settings-delete-account-actions .button {
    width: 100%;
  }
}

/* Settings referrals */
.shell-settings-referrals .settings-referrals-page {
  display: grid;
  gap: 24px;
  width: min(100%, 760px);
  padding: 46px 30px 64px;
}

.settings-referrals-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-referrals-header > a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hb-border);
  border-radius: 50%;
  color: var(--hb-text);
  background: var(--hb-card);
  box-shadow: 0 10px 24px -18px rgba(16, 42, 90, 0.6);
  font: 400 31px/1 var(--hb-font-text);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.settings-referrals-header > a:hover,
.settings-referrals-header > a:focus-visible {
  transform: translateX(-2px);
  box-shadow: 0 14px 30px -18px rgba(16, 42, 90, 0.72);
  text-decoration: none;
}

.settings-referrals-header > div {
  display: grid;
  gap: 3px;
}

.settings-referrals-header span {
  color: var(--hb-text3);
  font: 700 11px/1.2 var(--hb-font-text);
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.settings-referrals-header h1 {
  margin: 0;
  color: var(--hb-text);
  font: 600 34px/1.08 var(--hb-font-display);
  letter-spacing: -0.7px;
}

.settings-referrals-hero {
  position: relative;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: 32px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0c1c3a 0%, #173e96 55%, #0d9272 125%);
  box-shadow: 0 26px 46px -28px rgba(12, 28, 58, 0.84);
}

.settings-referrals-hero::after {
  position: absolute;
  top: -78px;
  right: -62px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  content: "";
  pointer-events: none;
}

.settings-referrals-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #7be2b3;
  background: rgba(255, 255, 255, 0.12);
}

.settings-referrals-hero-icon svg {
  width: 27px;
  height: 27px;
}

.settings-referrals-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.settings-referrals-hero-copy > span {
  color: #bfe8d6;
  font: 700 11px/1.2 var(--hb-font-text);
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.settings-referrals-hero-copy h2 {
  margin: 0;
  color: #fff;
  font: 600 clamp(27px, 5vw, 38px) / 1.1 var(--hb-font-display);
  letter-spacing: -0.8px;
}

.settings-referrals-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font: 400 15px/1.5 var(--hb-font-text);
}

.settings-referrals-link-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.settings-referrals-link-row input {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  font: 500 13.5px/1.2 var(--hb-font-text);
  outline: none;
}

.settings-referrals-link-row input:focus {
  border-color: rgba(255, 255, 255, 0.48);
}

.settings-referrals-link-row button {
  min-width: 112px;
  height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #0c1c3a;
  background: #fff;
  font: 650 14px/1.2 var(--hb-font-text);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.settings-referrals-link-row button:hover,
.settings-referrals-link-row button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -14px rgba(0, 0, 0, 0.72);
}

.settings-referrals-link-row button:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.settings-referrals-joined {
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 30px;
  background: var(--hb-card);
  box-shadow: 0 14px 34px -26px rgba(16, 42, 90, 0.52);
}

.settings-referrals-joined > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 26px;
  border-bottom: 1px solid var(--hb-border);
}

.settings-referrals-joined > header h2 {
  margin: 0;
  color: var(--hb-text);
  font: 600 19px/1.2 var(--hb-font-display);
}

.settings-referrals-joined > header span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0c7450;
  background: #e3f6ed;
  font: 700 13px/1 var(--hb-font-text);
}

.settings-referrals-list article {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 82px;
  padding: 15px 26px;
}

.settings-referrals-list article + article {
  border-top: 1px solid var(--hb-border);
}

.settings-referrals-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #2b63e8, #16a675);
  font: 700 14px/1 var(--hb-font-text);
}

.settings-referrals-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-referrals-list article > div {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.settings-referrals-list article strong {
  overflow: hidden;
  color: var(--hb-text);
  font: 600 15.5px/1.25 var(--hb-font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-referrals-list article span:not(.settings-referrals-avatar) {
  color: var(--hb-text3);
  font: 400 13px/1.3 var(--hb-font-text);
}

.settings-referrals-list article > svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: #16a36f;
}

.settings-referrals-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 50px 24px 54px;
  text-align: center;
}

.settings-referrals-empty > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  border-radius: 15px;
  color: #1464d2;
  background: #e9f0ff;
  font: 600 21px/1 var(--hb-font-text);
}

.settings-referrals-empty strong {
  color: var(--hb-text);
  font: 600 16px/1.3 var(--hb-font-text);
}

.settings-referrals-empty p {
  margin: 0;
  color: var(--hb-text3);
  font: 400 13.5px/1.45 var(--hb-font-text);
}

html[data-theme="dark"] .settings-referrals-joined > header span {
  color: #66dcac;
  background: rgba(28, 166, 113, 0.17);
}

html[data-theme="dark"] .settings-referrals-empty > span {
  color: #7aa1ff;
  background: rgba(63, 100, 211, 0.18);
}

@media (max-width: 720px) {
  .shell-settings-referrals .settings-referrals-page {
    padding: 30px 0 52px;
  }
}

@media (max-width: 520px) {
  .shell-settings-referrals .settings-referrals-page {
    gap: 18px;
    padding-top: 22px;
  }

  .settings-referrals-header > a {
    width: 42px;
    height: 42px;
  }

  .settings-referrals-header h1 {
    font-size: 29px;
  }

  .settings-referrals-hero {
    gap: 19px;
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .settings-referrals-hero-copy h2 {
    font-size: 28px;
  }

  .settings-referrals-link-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-referrals-link-row button {
    width: 100%;
  }

  .settings-referrals-joined {
    border-radius: 24px;
  }

  .settings-referrals-joined > header {
    min-height: 68px;
    padding: 0 20px;
  }

  .settings-referrals-list article {
    min-height: 76px;
    padding: 14px 20px;
  }
}

/* Settings password dialog */
.shell-settings .settings-password-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  border-radius: 26px;
}

.shell-settings .settings-password-sheet {
  overflow: hidden;
  padding: 0;
  border-radius: 26px;
  color: var(--hb-text);
  background: var(--hb-card);
}

.shell-settings .settings-password-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 31px 32px 23px;
  border: 0;
}

.shell-settings .settings-password-header > span {
  color: var(--hb-accent);
  font: 700 12px/1.2 var(--hb-font-text);
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.shell-settings .settings-password-header > strong {
  color: var(--hb-text);
  font: 600 29px/1.14 var(--hb-font-display);
  letter-spacing: -0.6px;
}

.shell-settings .settings-password-header .settings-password-close {
  position: absolute;
  top: 23px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hb-border2);
  border-radius: 50%;
  color: var(--hb-text2);
  background: var(--hb-card);
  font: 300 29px/1 var(--hb-font-text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.shell-settings .settings-password-header .settings-password-close:hover,
.shell-settings .settings-password-header .settings-password-close:focus-visible {
  border-color: var(--hb-border2);
  background: var(--hb-hover);
  transform: translateY(-1px);
  outline: none;
}

.shell-settings .settings-password-body {
  display: grid;
  gap: 18px;
  padding: 0 32px 31px;
}

.shell-settings .settings-password-body > .message:empty {
  display: none;
}

.shell-settings .settings-password-field {
  gap: 9px;
}

.shell-settings .settings-password-label-row label {
  color: var(--hb-text3);
  font: 700 12px/1.2 var(--hb-font-text);
  letter-spacing: 1.05px;
}

.shell-settings .settings-password-input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 50px 0 16px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 13px;
  color: var(--hb-text);
  background: var(--hb-card);
  box-shadow: none;
  font: 600 16px/1.2 var(--hb-font-text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.shell-settings .settings-password-input-wrap input:focus {
  border-color: #2a62f0;
  box-shadow: 0 0 0 3px rgba(42, 98, 240, 0.12);
}

.shell-settings .settings-password-input-wrap.is-valid input {
  border-color: var(--hb-border2);
  box-shadow: none;
}

.shell-settings .settings-password-input-wrap input::placeholder {
  color: var(--hb-text3);
  font-weight: 500;
  opacity: 0.8;
}

.shell-settings .settings-password-eye {
  top: 7px;
  right: 7px;
  color: var(--hb-text3);
  cursor: pointer;
}

.shell-settings .settings-password-eye:hover,
.shell-settings .settings-password-eye:focus-visible {
  color: var(--hb-accent);
  outline: none;
}

.shell-settings .settings-password-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 6px;
}

.shell-settings .settings-password-submit,
.shell-settings .settings-password-cancel {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 13px;
  font: 600 15.5px/1.2 var(--hb-font-text);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.shell-settings .settings-password-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #2a62f0, #1747c9);
  box-shadow: 0 12px 24px -14px rgba(26, 70, 194, 0.65);
}

.shell-settings .settings-password-submit:disabled {
  color: rgba(255, 255, 255, 0.94);
  background: #c9d1df;
  box-shadow: none;
  cursor: default;
}

.shell-settings .settings-password-submit:not(:disabled):hover,
.shell-settings .settings-password-submit:not(:disabled):focus-visible,
.shell-settings .settings-password-cancel:hover,
.shell-settings .settings-password-cancel:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.shell-settings .settings-password-cancel {
  border: 1.5px solid var(--hb-border2);
  color: var(--hb-text2);
  background: var(--hb-card);
}

.shell-settings .settings-password-cancel:hover,
.shell-settings .settings-password-cancel:focus-visible {
  background: var(--hb-hover);
}

@media (max-width: 520px) {
  .shell-settings .settings-password-dialog {
    width: calc(100vw - 20px);
  }

  .shell-settings .settings-password-header {
    padding: 26px 22px 21px;
  }

  .shell-settings .settings-password-header > strong {
    max-width: calc(100% - 44px);
    font-size: 25px;
  }

  .shell-settings .settings-password-header .settings-password-close {
    top: 19px;
    right: 18px;
  }

  .shell-settings .settings-password-body {
    padding: 0 22px 24px;
  }

  .shell-settings .settings-password-actions {
    grid-template-columns: 1fr;
  }

  .shell-settings .settings-password-cancel {
    order: -1;
  }
}

/* Settings school selector */
:where(.shell-settings, .shell-profile) .settings-school-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  border-radius: 26px;
}

:where(.shell-settings, .shell-profile) .settings-school-sheet {
  overflow: hidden;
  padding: 0;
  border-radius: 26px;
  color: var(--hb-text);
  background: var(--hb-card);
}

:where(.shell-settings, .shell-profile) .settings-school-header {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 31px 32px 23px;
}

:where(.shell-settings, .shell-profile) .settings-school-header > span {
  color: var(--hb-accent);
  font: 700 12px/1.2 var(--hb-font-text);
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

:where(.shell-settings, .shell-profile) .settings-school-header > strong {
  color: var(--hb-text);
  font: 600 30px/1.14 var(--hb-font-display);
  letter-spacing: -0.6px;
}

:where(.shell-settings, .shell-profile) .settings-school-close {
  position: absolute;
  top: 23px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hb-border2);
  border-radius: 50%;
  color: var(--hb-text2);
  background: var(--hb-card);
  font: 300 29px/1 var(--hb-font-text);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

:where(.shell-settings, .shell-profile) .settings-school-close:hover,
:where(.shell-settings, .shell-profile) .settings-school-close:focus-visible {
  background: var(--hb-hover);
  transform: translateY(-1px);
  outline: none;
}

:where(.shell-settings, .shell-profile) .settings-school-body {
  display: grid;
  gap: 0;
  padding: 0 26px 26px;
}

:where(.shell-settings, .shell-profile) .settings-school-label {
  margin-bottom: 10px;
  color: var(--hb-text3);
  font: 700 12px/1.2 var(--hb-font-text);
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

:where(.shell-settings, .shell-profile) .settings-school-search {
  position: relative;
  display: block;
}

:where(.shell-settings, .shell-profile) .settings-school-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--hb-text3);
  transform: translateY(-50%);
  pointer-events: none;
}

:where(.shell-settings, .shell-profile) .settings-school-search input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 13px;
  color: var(--hb-text);
  background: var(--hb-card);
  font: 600 15.5px/1.2 var(--hb-font-text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

:where(.shell-settings, .shell-profile) .settings-school-search input:focus {
  border-color: #2159e6;
  box-shadow: none;
}

:where(.shell-settings, .shell-profile) .settings-school-search input::placeholder {
  color: var(--hb-text3);
  font-weight: 500;
}

:where(.shell-settings, .shell-profile) .settings-school-results {
  max-height: 260px;
  margin: 8px -6px 0;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(90, 107, 133, 0.34) transparent;
  scrollbar-width: thin;
}

:where(.shell-settings, .shell-profile) .settings-school-results::-webkit-scrollbar {
  width: 7px;
}

:where(.shell-settings, .shell-profile) .settings-school-results::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(90, 107, 133, 0.34);
}

:where(.shell-settings, .shell-profile) .settings-school-results .settings-school-result-row {
  grid-template-columns: 18px minmax(0, 1fr) 20px;
  gap: 11px;
  min-height: 0;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

:where(.shell-settings, .shell-profile) .settings-school-results .settings-school-result-row:hover,
:where(.shell-settings, .shell-profile) .settings-school-results .settings-school-result-row:focus-within {
  background: var(--hb-hover);
}

:where(.shell-settings, .shell-profile) .settings-school-results .settings-school-result-row.is-selected {
  background: rgba(42, 98, 240, 0.06);
}

:where(.shell-settings, .shell-profile) .settings-school-result-icon {
  width: 18px;
  height: 18px;
  color: var(--hb-accent);
}

:where(.shell-settings, .shell-profile) .settings-school-results .school-picker-copy strong {
  color: var(--hb-text);
  font: 500 14.5px/1.3 var(--hb-font-text);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

:where(.shell-settings, .shell-profile) .settings-school-results .school-picker-select {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0 !important;
  color: var(--hb-accent);
  background: transparent;
  opacity: 0;
}

:where(.shell-settings, .shell-profile) .settings-school-results .settings-school-result-row.is-selected .school-picker-select {
  border: 0;
  color: var(--hb-accent);
  background: transparent;
  opacity: 1;
}

:where(.shell-settings, .shell-profile) .settings-school-empty {
  padding: 16px 14px 4px;
  color: var(--hb-text3);
  text-align: left;
  font: 500 14px/1.45 var(--hb-font-text);
}

@media (max-width: 620px) {
  :where(.shell-settings, .shell-profile) .settings-school-dialog {
    width: calc(100vw - 20px);
  }

  :where(.shell-settings, .shell-profile) .settings-school-header {
    padding: 26px 22px 20px;
  }

  :where(.shell-settings, .shell-profile) .settings-school-header > strong {
    max-width: calc(100% - 44px);
    font-size: 26px;
  }

  :where(.shell-settings, .shell-profile) .settings-school-close {
    top: 19px;
    right: 18px;
  }

  :where(.shell-settings, .shell-profile) .settings-school-body {
    padding: 0 16px 20px;
  }

  :where(.shell-settings, .shell-profile) .settings-school-results {
    max-height: min(260px, 43vh);
  }
}

/* Deep Study: keep unanswered Prove It choices crisp and the explanation gated. */
.shell-authenticated.shell-deep-study .ds-test-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.shell-authenticated.shell-deep-study .deep-study-test-list {
  display: grid;
  gap: 20px;
}

.shell-authenticated.shell-deep-study
  .deep-study-test-list
  > .deep-study-test-item:first-child,
.shell-authenticated.shell-deep-study .ds-test-breakdown-card {
  margin: 0;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--hb-border);
  border-radius: 26px;
  background: var(--hb-card);
  box-shadow: 0 12px 28px rgba(28, 49, 85, 0.06);
}

.shell-authenticated.shell-deep-study
  .deep-study-test-list
  > .deep-study-test-item:first-child {
  min-height: 0;
}

.shell-authenticated.shell-deep-study
  .ds-test-result-actions
  > [hidden] {
  display: none !important;
}

.shell-authenticated.shell-deep-study .ds-test-prompt {
  max-width: 72ch;
  margin-top: 18px;
  font: 600 clamp(18px, 2vw, 22px) / 1.48 var(--font-text);
}

.shell-authenticated.shell-deep-study .deep-study-test-choice-form {
  gap: 14px;
  margin-top: 24px;
}

.shell-authenticated.shell-deep-study .deep-study-test-choice {
  min-height: 84px;
  gap: 18px;
  padding: 18px 22px;
  border: 1.5px solid var(--hb-border2);
  border-radius: 14px !important;
  background: var(--hb-card);
  box-shadow: none;
}

.shell-authenticated.shell-deep-study .deep-study-test-choice > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.shell-authenticated.shell-deep-study .deep-study-test-choice > strong {
  font: 550 clamp(15px, 1.5vw, 17px) / 1.45 var(--font-text);
}

.shell-authenticated.shell-deep-study .ds-test-breakdown-card {
  min-height: 190px;
}

.shell-authenticated.shell-deep-study
  .ds-test-breakdown-card
  .deep-study-test-reveal-copy {
  max-width: 100%;
  min-height: 96px;
}

.shell-authenticated.shell-deep-study
  .ds-test-breakdown-card
  .deep-study-reading-copy {
  max-width: 92ch;
  font-size: 15px;
  line-height: 1.7;
}

.shell-authenticated.shell-deep-study .deep-study-test-reveal-button {
  top: 58%;
  gap: 11px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  background: var(--hb-card);
  color: var(--hb-text2);
  box-shadow: 0 14px 30px rgba(28, 49, 85, 0.12);
  cursor: default;
  font: 650 14px/1.25 var(--font-text);
  white-space: nowrap;
  transform: translate(-50%, -25%);
}

.shell-authenticated.shell-deep-study
  .deep-study-test-reveal-button
  > span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell-authenticated.shell-deep-study
  .deep-study-test-reveal-button:hover
  > span,
.shell-authenticated.shell-deep-study
  .deep-study-test-reveal-button:focus-visible
  > span {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.shell-authenticated.shell-deep-study .ds-test-lock-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  height: 11px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.shell-authenticated.shell-deep-study .ds-test-lock-icon::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1.7px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  content: "";
  transform: translateX(-50%);
}

@media (max-width: 680px) {
  .shell-authenticated.shell-deep-study
    .deep-study-test-list
    > .deep-study-test-item:first-child,
  .shell-authenticated.shell-deep-study .ds-test-breakdown-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .shell-authenticated.shell-deep-study .deep-study-test-choice {
    min-height: 74px;
    gap: 12px;
    padding: 14px;
    border-radius: 12px !important;
  }

  .shell-authenticated.shell-deep-study .deep-study-test-reveal-button {
    width: calc(100% - 36px);
    min-height: 58px;
    padding: 10px 18px;
    white-space: normal;
  }

  .shell-authenticated.shell-deep-study .ds-test-unlock-copy {
    text-align: center;
  }
}

/* Deep Study: keep Say It Back actions rectangular instead of pill-shaped. */
.shell-authenticated.shell-deep-study
  .ds-thought-card
  .deep-study-thought-actions
  .ds-primary-button,
.shell-authenticated.shell-deep-study
  .ds-thought-card
  .ds-lock-readiness
  .ds-ready-button {
  border-radius: 13px !important;
}

@media (max-width: 680px) {
  .shell-authenticated.shell-deep-study
    .ds-thought-card
    .deep-study-thought-actions
    .ds-primary-button,
  .shell-authenticated.shell-deep-study
    .ds-thought-card
    .ds-lock-readiness
    .ds-ready-button {
    border-radius: 12px !important;
  }
}

/* ==========================================================================
   Phase 12 — Admin portal reskin. Same DOM/classes as renderAdminWorkspace /
   renderAdminToolbar / renderAdminLinks and the shared primitives used inside
   .admin-workspace (panels, tables, pills, buttons, messages, filters, debug
   blocks). Restyled onto the --hb-* token system so the admin surface matches
   the redesigned student app and inherits light/dark theming for free.
   Appended at end of file so these rules win the cascade.
   ========================================================================== */

.shell-authenticated .admin-workspace {
  grid-template-columns: minmax(228px, 264px) minmax(0, 1fr);
  gap: 22px;
}

.shell-authenticated .admin-sidebar {
  padding: 16px 12px;
  gap: 4px;
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}

.shell-authenticated .admin-links.admin-links-sidebar {
  gap: 14px;
}

.shell-authenticated .admin-nav-group {
  display: grid;
  gap: 2px;
}

.shell-authenticated .admin-nav-group-label {
  padding: 0 13px 4px;
  color: var(--hb-text3);
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell-authenticated .admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 40px;
  padding: 0 13px;
  border: none;
  border-radius: 13px;
  background: transparent;
  color: var(--hb-text2);
  font: 600 13.5px var(--hb-font-text);
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}

.shell-authenticated .admin-nav-link:hover {
  transform: none;
  background: var(--hb-hover);
  color: var(--hb-accent);
  text-decoration: none;
}

.shell-authenticated .admin-nav-link.is-active {
  background: var(--hb-hover);
  color: var(--hb-text);
  box-shadow: inset 3px 0 0 var(--hb-accent);
}

.shell-authenticated .admin-nav-icon-wrap {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
}

.shell-authenticated .admin-nav-icon {
  width: 18px;
  height: 18px;
}

.shell-authenticated .admin-nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-authenticated .admin-mobile-nav {
  display: none;
}

/* ---- Toolbar ---- */
.shell-authenticated .admin-toolbar {
  padding: 16px 22px;
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}

.shell-authenticated .admin-toolbar-title {
  font: 600 22px var(--hb-font-display);
  letter-spacing: -0.4px;
  color: var(--hb-text);
}

.shell-authenticated .admin-toolbar-meta {
  color: var(--hb-text2);
  font: 500 13px var(--hb-font-text);
}

/* ---- Cards / panels inside the admin workspace ---- */
.shell-authenticated .admin-workspace .card,
.shell-authenticated .admin-workspace .panel {
  border: 1px solid var(--hb-border);
  border-radius: 20px;
  background: var(--hb-card);
  box-shadow: 0 2px 6px rgba(16, 42, 90, 0.05);
}

.shell-authenticated .admin-workspace .panel h2,
.shell-authenticated .admin-workspace .panel h3 {
  font-family: var(--hb-font-display);
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--hb-text);
}

.shell-authenticated .admin-workspace p,
.shell-authenticated .admin-workspace .lead {
  color: var(--hb-text2);
}

.shell-authenticated .admin-workspace .inline-note {
  color: var(--hb-text3);
}

.shell-authenticated .admin-workspace a:not(.button):not(.admin-nav-link):not(.pill) {
  color: var(--hb-accent);
}

/* ---- Tables ---- */
.shell-authenticated .admin-workspace .table-wrap {
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  background: var(--hb-card);
}

.shell-authenticated .admin-workspace th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hb-border2);
  background: var(--hb-card2);
  color: var(--hb-text3);
  font: 700 11px var(--hb-font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-authenticated .admin-workspace td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hb-border);
  color: var(--hb-text);
  font: 500 13.5px var(--hb-font-text);
}

.shell-authenticated .admin-workspace tbody tr:last-child td {
  border-bottom: 0;
}

.shell-authenticated .admin-workspace tbody tr:hover {
  background: var(--hb-hover);
}

.shell-authenticated.shell-admin .admin-workspace .admin-note-vault-table {
  width: 100%;
  min-width: 1420px;
  table-layout: fixed;
}

.admin-note-vault-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-note-vault-table-toolbar form {
  margin: 0;
}

.admin-note-vault-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.admin-note-vault-column-course {
  width: 31%;
}

.admin-note-vault-column-level {
  width: 9%;
}

.admin-note-vault-column-universities,
.admin-note-vault-column-elements,
.admin-note-vault-column-notes {
  width: 8%;
}

.admin-note-vault-column-users {
  width: 7%;
}

.admin-note-vault-column-actions {
  width: 29%;
}

.shell-authenticated .admin-note-vault-table th,
.shell-authenticated .admin-note-vault-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.shell-authenticated .admin-note-vault-table td {
  padding-block: 10px;
}

.admin-note-vault-course,
.admin-note-vault-course-row,
.admin-note-vault-actions,
.admin-seed-focus-toggle {
  display: inline-flex;
  align-items: center;
}

.admin-note-vault-course {
  flex-wrap: wrap;
  gap: 3px 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-note-vault-course-row {
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.admin-note-vault-merge-check {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.admin-note-vault-merge-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--hb-accent);
}

.admin-note-vault-course > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-note-vault-course-status {
  flex: 1 0 100%;
  color: var(--hb-text3);
}

.admin-note-vault-actions {
  flex-wrap: nowrap;
  gap: 8px;
}

.admin-note-vault-actions form {
  margin: 0;
}

.admin-note-vault-actions .button {
  min-height: 36px;
  padding: 8px 14px;
}

.admin-seed-focus-toggle {
  min-height: 36px;
  gap: 7px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--hb-text2);
  cursor: pointer;
  font: 650 12.5px var(--hb-font-text);
  white-space: nowrap;
}

.admin-seed-focus-toggle:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--hb-accent);
  outline-offset: 2px;
}

.admin-seed-focus-switch {
  display: inline-block;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  padding: 3px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 140ms ease;
}

.admin-seed-focus-switch span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 69, 0.25);
  transition: transform 140ms ease;
}

.admin-seed-focus-toggle.is-active {
  color: var(--hb-accent);
}

.admin-seed-focus-toggle.is-active .admin-seed-focus-switch {
  background: var(--hb-accent);
}

.admin-seed-focus-toggle.is-active .admin-seed-focus-switch span {
  transform: translateX(14px);
}

/* ---- Pills, buttons, messages ---- */
.shell-authenticated .admin-workspace .pill {
  padding: 5px 12px;
  border: 1px solid var(--hb-border2);
  border-radius: 999px;
  background: var(--hb-subtle);
  color: var(--hb-text2);
  font: 600 12.5px var(--hb-font-text);
}

.shell-authenticated .admin-workspace .button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font: 600 13.5px var(--hb-font-text);
}

.shell-authenticated .admin-workspace .button:hover {
  transform: none;
}

.shell-authenticated .admin-workspace .button-primary {
  background: var(--hb-accent);
  color: #fff;
  box-shadow: none;
}

.shell-authenticated .admin-workspace .button-primary:hover {
  background: var(--hb-accent-strong);
}

.shell-authenticated .admin-workspace .button-secondary {
  border-color: var(--hb-border2);
  background: var(--hb-card);
  color: var(--hb-text);
}

.shell-authenticated .admin-workspace .button-secondary:hover {
  background: var(--hb-hover);
}

.shell-authenticated .admin-workspace .message {
  border-radius: 14px;
  font: 500 13.5px var(--hb-font-text);
}

.shell-authenticated .admin-workspace .message-error {
  border: 1px solid rgba(192, 57, 43, 0.25);
  background: rgba(192, 57, 43, 0.08);
  color: var(--hb-red);
}

.shell-authenticated .admin-workspace .message-success {
  border: 1px solid rgba(14, 143, 78, 0.25);
  background: rgba(14, 143, 78, 0.08);
  color: var(--hb-green);
}

.shell-authenticated .admin-workspace .message-info {
  border: 1px solid var(--hb-border2);
  background: var(--hb-subtle);
  color: var(--hb-text2);
}

/* ---- Filters ---- */
.shell-authenticated .admin-filter-group {
  padding: 14px 16px;
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  background: var(--hb-card2);
}

.shell-authenticated .admin-filter-label {
  color: var(--hb-text3);
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.14em;
}

.shell-authenticated .admin-filter-links .button,
.shell-authenticated .admin-filter-links .pill {
  min-height: 36px;
  padding: 0 14px;
}

.shell-authenticated .admin-filter-links .pill {
  border-color: var(--hb-accent);
  background: var(--hb-hover);
  color: var(--hb-accent);
}

/* ---- Model settings, detail lists ---- */
.shell-authenticated .admin-model-settings-list li {
  border-bottom: 1px solid var(--hb-border);
  font: 500 13px var(--hb-font-text);
}

.shell-authenticated .admin-model-settings-list span {
  color: var(--hb-text3);
}

.shell-authenticated .admin-model-settings-list strong {
  color: var(--hb-text);
  font-family: var(--hb-font-mono);
  font-size: 12.5px;
}

.shell-authenticated .admin-detail-list {
  color: var(--hb-text2);
}

/* ---- Debug records, prompts, JSON blocks ---- */
.shell-authenticated .admin-workspace .selection-card {
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  background: var(--hb-card2);
}

.shell-authenticated .admin-debug-block {
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: var(--hb-subtle);
}

.shell-authenticated .admin-debug-block-title {
  color: var(--hb-text3);
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shell-authenticated .admin-prompt-summary strong {
  color: var(--hb-text);
}

.shell-authenticated .admin-prompt-summary:hover strong,
.shell-authenticated .admin-prompt-summary:focus-visible strong {
  color: var(--hb-accent);
}

.shell-authenticated .admin-prompt-full,
.shell-authenticated .admin-json-block {
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: var(--hb-subtle);
  color: var(--hb-text2);
  font-family: var(--hb-font-mono);
  font-size: 12px;
}

/* ---- Email previews ---- */
.shell-authenticated .admin-email-preview-shell {
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  background: var(--hb-card);
}

.shell-authenticated .admin-email-preview-frame {
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  background: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .shell-authenticated .admin-sidebar {
    position: static;
    padding: 8px;
    border-radius: 16px;
  }

  .shell-authenticated .admin-sidebar > .admin-links.admin-links-sidebar {
    display: none;
  }

  .shell-authenticated .admin-mobile-nav {
    display: block;
  }

  .shell-authenticated .admin-mobile-nav > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--hb-text2);
    cursor: pointer;
    font: 600 12px var(--hb-font-text);
    list-style: none;
  }

  .shell-authenticated .admin-mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .shell-authenticated .admin-mobile-nav > summary strong {
    color: var(--hb-text);
    font: 650 14px var(--hb-font-text);
  }

  .shell-authenticated .admin-mobile-nav > summary::after {
    color: var(--hb-text3);
    content: "⌄";
    font-size: 18px;
    line-height: 1;
    transition: transform 140ms ease;
  }

  .shell-authenticated .admin-mobile-nav[open] > summary::after {
    transform: rotate(180deg);
  }

  .shell-authenticated .admin-mobile-nav .admin-links.admin-links-sidebar {
    max-height: min(62dvh, 520px);
    margin-top: 6px;
    padding: 8px 4px 4px;
    overflow-y: auto;
    border-top: 1px solid var(--hb-border);
  }

  .shell-authenticated .admin-mobile-nav .admin-nav-group {
    gap: 3px;
  }
}

/* Eyebrows inside admin panels become quiet kickers (no filled bar), and
   panel headings drop to admin-scale sizes. */
.shell-authenticated .admin-workspace .eyebrow {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hb-text3);
  font: 700 10.5px var(--hb-font-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell-authenticated .admin-workspace .panel h2,
.shell-authenticated .admin-workspace .card h2 {
  font-size: 19px;
}

.shell-authenticated .admin-workspace .panel h3,
.shell-authenticated .admin-workspace .card h3 {
  font-size: 15.5px;
}

/* Stat tiles inside the admin workspace: quiet hb cards with mono numerals. */
.shell-authenticated .admin-workspace .stat {
  padding: 16px 18px;
  border: 1px solid var(--hb-border);
  border-radius: 14px;
  background: var(--hb-card2);
  box-shadow: none;
}

.shell-authenticated .admin-workspace .stat strong {
  font: 600 20px var(--hb-font-display);
  letter-spacing: -0.3px;
  color: var(--hb-text);
}

.shell-authenticated .admin-workspace .stat .inline-note {
  color: var(--hb-text3);
  font: 600 12px var(--hb-font-text);
}

/* Dense toolbars (Payments, Usage) wrap instead of crushing their fields. */
.shell-authenticated .admin-toolbar,
.shell-authenticated .admin-toolbar-controls,
.shell-authenticated .admin-toolbar-form {
  flex-wrap: wrap;
}

.shell-authenticated .admin-toolbar-meta {
  white-space: normal;
}

.shell-authenticated .admin-toolbar-form .field {
  min-width: 220px;
}

/* Keep the focused picker authoritative over legacy school-search rules. */
.school-picker-page {
  display: flex !important;
  flex-direction: column;
  margin: 0 auto !important;
  max-width: 760px !important;
  min-height: min(760px, calc(100dvh - 120px));
}

.school-picker-page .school-picker-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  text-align: left;
}

.school-picker-page .school-picker-heading h1 {
  color: #101d38;
  font-size: clamp(2rem, 6vw, 2.45rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.school-picker-page .school-picker-search-form {
  display: block;
  margin-top: 26px;
}

.school-picker-page .school-picker-search input {
  min-height: 60px;
}

@media (max-width: 560px) {
  .school-picker-page {
    margin-inline: -14px !important;
    max-width: none !important;
    min-height: calc(100dvh - 80px);
  }

  .school-picker-page .school-picker-heading h1 {
    font-size: 2rem;
  }
}

/* Exact-class confirmation: one decision, grounded in real class state. */
.public-class-confirm-page {
  display: grid;
  justify-items: stretch;
  gap: 18px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.public-class-confirm-shell {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  min-height: min(720px, calc(100vh - 150px));
  overflow: hidden;
  border: 1px solid #d6deef;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 24px 70px -48px rgba(11, 31, 77, 0.4);
}

.public-class-confirm-aside {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 48px;
  overflow: hidden;
  padding: clamp(38px, 5vw, 62px);
  background: #0b1f4d;
  color: #ffffff;
}

.public-class-confirm-aside::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(143, 184, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(143, 184, 255, 0.035),
    0 0 0 148px rgba(143, 184, 255, 0.025);
  pointer-events: none;
}

.public-class-confirm-identity,
.public-class-confirm-progress {
  position: relative;
  z-index: 1;
}

.public-class-confirm-identity > span,
.public-class-confirm-eyebrow {
  color: #8fb8ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-class-confirm-identity > strong {
  display: block;
  margin-top: 16px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.public-class-confirm-identity h2 {
  margin: 14px 0 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.public-class-confirm-identity p {
  margin: 10px 0 0;
  color: #b9c6e8;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.public-class-confirm-identity p + p {
  margin-top: 4px;
}

.public-class-confirm-identity p b {
  margin: 0 6px;
  color: #6e85b8;
}

.public-class-confirm-progress {
  display: grid;
}

.public-class-confirm-progress article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid #24407a;
}

.public-class-confirm-progress article:last-child {
  border-bottom: 1px solid #24407a;
}

.public-class-confirm-progress article > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #48659e;
  border-radius: 50%;
  color: #8fb8ff;
  font-size: 0.76rem;
  font-weight: 600;
}

.public-class-confirm-progress article > span svg {
  width: 15px;
  height: 15px;
}

.public-class-confirm-progress article.is-complete > span {
  border-color: #20c46b;
  background: #20c46b;
  color: #04351c;
}

.public-class-confirm-progress article.is-current {
  background: linear-gradient(90deg, rgba(143, 184, 255, 0.09), transparent);
}

.public-class-confirm-progress article.is-current > span {
  border-color: #8fb8ff;
  color: #ffffff;
}

.public-class-confirm-progress article div {
  display: grid;
  gap: 3px;
}

.public-class-confirm-progress article strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.public-class-confirm-progress article p {
  margin: 0;
  color: #8fb8ff;
  font-size: 0.84rem;
  line-height: 1.4;
}

.public-class-confirm-main {
  display: grid;
  align-items: center;
  padding: clamp(38px, 6vw, 72px);
  background: #f5f8ff;
}

.public-class-confirm-main-inner {
  display: grid;
  width: min(100%, 540px);
  margin: 0 auto;
}

.public-class-confirm-eyebrow {
  color: #0c2abf;
}

.public-class-confirm-main h1 {
  max-width: 13ch;
  margin: 12px 0 0;
  color: #0b1f4d;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.public-class-confirm-main .public-class-confirm-copy {
  margin: 16px 0 0;
  color: #4f5a70;
  text-align: left;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

.public-class-confirm-facts {
  display: grid;
  margin: 28px 0 0;
  border-top: 1px solid #d6deef;
  border-bottom: 1px solid #d6deef;
}

.public-class-confirm-facts > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid #e4e9f5;
}

.public-class-confirm-facts > div:first-child {
  border-top: 0;
}

.public-class-confirm-facts dt,
.public-class-confirm-facts dd {
  margin: 0;
}

.public-class-confirm-facts dt {
  color: #8a93a8;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-class-confirm-facts dd {
  color: #1b2436;
  font-size: 0.92rem;
  font-weight: 590;
  line-height: 1.4;
}

.public-class-confirm-actions {
  display: grid;
  gap: 12px;
  padding: 0;
  margin-top: 28px;
}

.public-class-confirm-action-form {
  margin: 0;
}

.public-class-confirm-primary,
.public-class-confirm-secondary {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.public-class-confirm-primary {
  display: flex;
  grid-template-columns: none;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 0 22px;
  border: 0;
  background: #0c2abf;
  color: #ffffff;
  box-shadow: 0 12px 28px -18px rgba(12, 42, 191, 0.7);
}

button.public-class-confirm-primary {
  cursor: pointer;
}

.public-class-confirm-primary:hover,
.public-class-confirm-primary:focus-visible {
  background: #0a22a0;
  color: #ffffff;
}

.public-class-confirm-primary > span {
  display: grid;
  grid-row: auto;
  place-items: center;
}

.public-class-confirm-primary svg {
  width: 20px;
  height: 20px;
}

.public-class-confirm-primary strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.public-class-confirm-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d6deef;
  background: #ffffff;
  color: #3a4256;
  font-size: 0.9rem;
}

.public-class-confirm-secondary:hover,
.public-class-confirm-secondary:focus-visible {
  border-color: #aebddd;
  color: #0b1f4d;
}

.public-class-confirm-state-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #d6deef;
  border-radius: 4px;
  background: #ffffff;
  color: #3a4256;
}

.public-class-confirm-signed-in {
  margin: 14px 0 0;
  color: #8a93a8;
  font-size: 0.78rem;
  text-align: center;
}

.public-class-confirm-different {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: baseline;
  padding: 0;
  margin-top: 24px;
  color: #6b7488;
  font-size: 0.86rem;
}

.public-class-confirm-different a {
  display: inline;
  color: #0c2abf;
  font-size: inherit;
  font-weight: 600;
}

.public-class-confirm-reassurance {
  display: flex;
  grid-template-columns: none;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 0;
  margin-top: 28px;
  border-top: 1px solid #d6deef;
  background: transparent;
}

.public-class-confirm-reassurance span {
  justify-content: center;
  gap: 6px;
  padding: 0;
  color: #6b7488;
  font-size: 0.76rem;
  font-weight: 500;
}

.public-class-confirm-reassurance span + span {
  border-left: 0;
}

.public-class-confirm-reassurance svg {
  width: 16px;
  height: 16px;
  color: #159447;
}

.public-class-confirm-help {
  margin: 0;
  color: #6b7488;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
}

.public-class-confirm-help a {
  color: #0c2abf;
  font-weight: 600;
}

@media (max-width: 860px) {
  .public-class-confirm-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .public-class-confirm-aside {
    gap: 0;
    padding: 28px 22px;
  }

  .public-class-confirm-aside::after,
  .public-class-confirm-progress {
    display: none;
  }

  .public-class-confirm-identity > strong {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .public-class-confirm-main {
    padding: 34px 22px;
  }

  .public-class-confirm-main h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
}

@media (max-width: 520px) {
  .public-class-confirm-facts > div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .public-class-confirm-primary {
    min-height: 54px;
    padding: 10px 18px;
  }

  .public-class-confirm-different,
  .public-class-confirm-reassurance {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }
}
