:root {
  --paper: #faf6f3;
  --mist: #f2e2e4;
  --blue: #8c1d40;
  --navy: #68152f;
  --slate-900: #27374d;
  --slate-700: #526d82;
  --slate-400: #9db2bf;
  --slate-100: #dde6ed;
  --deep-ink: #68152f;
  --ocean-800: #8c1d40;
  --ocean-500: #c39a5a;
  --ocean-100: #f0d9b5;
  --gold-deep: #8a6428;
  --white: #ffffff;
  --ink-muted: var(--slate-700);
  --border: #c8d5de;
  --border-strong: var(--slate-400);
  --surface-muted: var(--slate-100);
  --surface-info: var(--ocean-100);
  --success: #176b45;
  --success-soft: #e3f3eb;
  --danger: #a33a3a;
  --danger-soft: #f9e7e7;
  --warning: #8a5b12;
  --warning-soft: #fff1cf;
  --shadow: 0 18px 50px rgba(39, 55, 77, 0.12);
  --radius: 18px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
    "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--paper);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--deep-ink);
  font-family: var(--font);
  line-height: 1.55;
}
a {
  color: var(--ocean-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ocean-500);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 999;
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  color: white;
  background: var(--navy);
  transform: translateY(-220%);
}
.skip-link:focus {
  transform: translateY(0);
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(
    135deg,
    var(--paper) 0%,
    #fff 58%,
    var(--slate-100) 140%
  );
}
.public-header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid rgba(17, 45, 78, 0.07);
  background: rgba(255, 255, 255, 0.74);
}
.public-header .logo-ntnu {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.public-header .logo-csl {
  width: min(280px, 50vw);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.auth-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  box-shadow: var(--shadow);
  border-radius: 22px;
  overflow: hidden;
}
.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 570px;
  padding: clamp(48px, 5.5vw, 76px);
  color: var(--white);
  background: linear-gradient(
    150deg,
    var(--deep-ink),
    var(--ocean-800) 58%,
    var(--gold-deep)
  );
}
.brand-kicker,
.section-kicker,
.eyebrow {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.brand-kicker {
  color: var(--mist);
  margin-bottom: 20px;
  font-size: 1.44rem;
}
.brand-panel h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.1vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: 0.025em;
}
.brand-title-line {
  white-space: nowrap;
}
.brand-panel h2 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.brand-panel p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}
.brand-rule {
  display: block;
  width: 112px;
  height: 3px;
  margin: 30px 0;
  border-radius: 3px;
  background: var(--mist);
}
.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 48px);
  background: var(--white);
}
.register-auth-card {
  padding: 18px clamp(36px, 4vw, 52px);
}
.register-auth-card .stack-form {
  gap: 13px;
}
.registration-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
@media (max-width: 620px) {
  .registration-fields-grid {
    grid-template-columns: 1fr;
  }
}
.confirm-student-id-highlight {
  color: var(--danger);
}
.character-count {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.auth-card h2 {
  margin: 5px 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.auth-card h2 span,
.page-heading h1 span {
  color: var(--blue);
  font-size: 0.62em;
  font-weight: 600;
}
.section-intro {
  margin: 0 0 30px;
  color: var(--ink-muted);
}
.public-footer,
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(24px, 5vw, 72px);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.stack-form {
  display: grid;
  gap: 18px;
}
.form-group {
  min-width: 0;
}
.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 750;
}
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(63, 114, 175, 0.14);
}
.has-error .form-control {
  border-color: var(--danger);
}
.help-text {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  white-space: pre-line;
}
.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: pre-line;
}
.password-help-row {
  margin: -3px 0 7px;
  text-align: right;
  font-size: 0.8rem;
}
.register-password-help {
  margin-top: -10px;
}
.two-column-fields,
.question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.form-divider::before,
.form-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
  border-radius: 9px;
}
.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}
.check-field label {
  font-size: 0.79rem;
}
.auth-switch {
  margin: 26px 0 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.84rem;
}
.step-indicator {
  display: grid;
  grid-template-columns: 32px auto 1fr 32px auto;
  align-items: center;
  gap: 9px;
  margin: 22px 0 26px;
  color: var(--ink-muted);
  font-size: 0.76rem;
}
.step-indicator strong,
.step-indicator b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.step-indicator strong {
  color: #fff;
  background: var(--blue);
}
.step-indicator b {
  color: var(--ink-muted);
  background: var(--mist);
}
.step-indicator i {
  height: 1px;
  background: var(--border);
}
.step-indicator small {
  font-size: 0.66rem;
}

.profile-registration-page {
  background: var(--paper);
}
.profile-registration-main {
  width: min(1040px, calc(100% - 40px));
  margin: 44px auto 70px;
}
.profile-registration-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.profile-registration-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  line-height: 1.2;
}
.profile-registration-heading h1 span {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 0.48em;
  font-weight: 650;
}
.profile-registration-heading p {
  margin: 0;
  color: var(--ink-muted);
}
.roster-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #e2bfca;
  border-radius: 14px;
  background: var(--mist);
}
.roster-card > div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid #e4c5cf;
}
.roster-card > div:last-child {
  border-right: 0;
}
.roster-card span,
.roster-card strong {
  display: block;
}
.roster-card span {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 650;
}
.roster-card strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 1.5rem;
  line-height: 1.35;
}
.profile-registration-form {
  display: grid;
  gap: 20px;
}
.form-section {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 45, 78, 0.045);
}
.form-section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3e4e9;
}
.form-section-heading > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 0.74rem;
  font-weight: 850;
}
.form-section-heading h2,
.form-section-heading p {
  margin: 0;
}
.form-section-heading h2 {
  font-size: 1.06rem;
}
.form-section-heading p {
  color: var(--ink-muted);
  font-size: 0.73rem;
}
.form-section-heading small {
  display: block;
  margin-top: 3px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
}
.form-note {
  margin: -5px 0 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
}
.two-column-fields > .form-note {
  grid-column: 1 / -1;
}
.bilingual-note {
  line-height: 1.7;
}
.timezone-note {
  margin: -6px 0 0;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 750;
}
.required-mark {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--danger);
  font-weight: 850;
}
.four-column-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.choice-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.choice-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 750;
}
.choice-field ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.choice-field li label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--navy);
  background: var(--paper);
  font-size: 0.78rem;
  cursor: pointer;
}
.choice-field input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.choice-field.has-error ul {
  padding: 8px;
  border: 1px solid var(--danger);
  border-radius: 10px;
}
.rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rating-field {
  padding: 16px;
  border: 1px solid #f1e0e6;
  border-radius: 12px;
  background: var(--paper);
}
.rating-label {
  margin-bottom: 11px;
  font-size: 0.86rem;
  font-weight: 800;
}
.rating-field > .choice-control {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.rating-field > .choice-control > div {
  min-width: 0;
}
.rating-field label {
  min-height: 42px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink-muted);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}
.rating-field label:hover,
.rating-field label:has(input:focus-visible) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63, 114, 175, 0.12);
}
.rating-field label:has(input:checked) {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 5px 12px rgba(63, 114, 175, 0.22);
  transform: translateY(-1px);
}
.rating-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.qualification-note {
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: var(--ink-muted);
  background: var(--mist);
  font-size: 0.8rem;
}
.qualification-note strong {
  color: var(--navy);
}
.qualification-note ol {
  margin: 8px 0 15px;
  padding-left: 1.4rem;
}
.qualification-note ol:last-child {
  margin-bottom: 0;
}
.qualification-note li + li {
  margin-top: 5px;
}
.schedule-card {
  display: grid;
  gap: 24px;
  padding: 22px;
  border: 1px solid #efdce2;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, var(--paper));
}
.schedule-card .choice-control {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.schedule-card .choice-field:last-child .choice-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.schedule-card .choice-control > div label {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  font-size: 0.76rem;
  text-align: center;
  cursor: pointer;
}
.schedule-card .choice-control > div label:has(input:checked) {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--mist);
  font-weight: 800;
}
.target-skills-card {
  padding: 20px;
  border: 1px solid #efd8e0;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, var(--paper));
}
.target-skills-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.target-skills-heading strong,
.target-skills-heading small {
  display: block;
}
.target-skills-heading strong {
  color: var(--navy);
  font-size: 0.9rem;
}
.target-skills-heading small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.72rem;
}
.target-skills-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-size: 1.25rem;
  font-weight: 400;
}
.target-skills-card .choice-control,
#id_skills_practiced {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.target-skills-card .choice-control > div,
#id_skills_practiced > div {
  min-width: 0;
}
.target-skills-card .choice-control label,
#id_skills_practiced label {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 12px;
  border: 2px solid #efdce2;
  border-radius: 11px;
  color: var(--ink-muted);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
  transition: 0.15s ease;
}
.target-skills-card .choice-control label:hover,
#id_skills_practiced label:hover {
  color: var(--blue);
  border-color: #d79fb1;
  transform: translateY(-1px);
}
.target-skills-card .choice-control label:has(input:checked),
#id_skills_practiced label:has(input:checked) {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 7px 15px rgba(63, 114, 175, 0.2);
}
.target-skills-card .choice-control input,
#id_skills_practiced input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.target-skills-card .choice-control label:has(input:checked)::after,
#id_skills_practiced label:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 7px;
  font-size: 0.7rem;
}
#id_skills_practiced {
  padding: 14px;
  margin-top: 4px;
  border: 1px solid #efd8e0;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, var(--paper));
}
@media (max-width: 900px) {
  #id_skills_practiced {
    grid-template-columns: 1fr 1fr;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(15, 76, 117, 0.2);
}
.button-primary:hover {
  color: #fff;
  background: var(--ocean-800);
}
.button-primary span {
  font-size: 0.82em;
  opacity: 0.85;
}
.button-secondary {
  color: var(--navy);
  border-color: var(--border-strong);
  background: var(--slate-100);
}
.button-secondary:hover {
  color: var(--navy);
  border-color: var(--ocean-500);
  background: var(--ocean-100);
}
.button-ghost {
  min-height: 36px;
  padding: 6px 12px;
  color: var(--navy);
  border-color: var(--border);
  background: transparent;
  font-size: 0.78rem;
}
.button-full {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}
.button-small {
  min-height: 34px;
  padding: 5px 9px;
  font-size: 0.72rem;
}
.button-success {
  color: var(--success);
  background: var(--success-soft);
  border-color: #b9dfcd;
}
.button-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #edc4c4;
}

.message-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.message {
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: pre-line;
  background: var(--mist);
}
.message-success {
  color: var(--success);
  background: var(--success-soft);
}
.message-error {
  color: var(--danger);
  background: var(--danger-soft);
}
.message-warning {
  color: var(--warning);
  background: var(--warning-soft);
}
.preview-message {
  color: var(--navy);
  border: 1px solid #e0b9c6;
  background: var(--mist);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(
      circle at 92% 4%,
      rgba(187, 225, 250, 0.38),
      transparent 25rem
    ),
    linear-gradient(155deg, var(--paper) 0%, #fff 48%, var(--slate-100) 150%);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--navy);
  text-decoration: none;
}
.app-brand .logo-ntnu {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.app-brand .logo-csl {
  width: 188px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.app-brand > span {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 15px;
}
.app-brand strong {
  font-size: 0.94rem;
}
.app-brand small {
  color: var(--ink-muted);
  font-size: 0.67rem;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.role-pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.7rem;
  font-weight: 800;
}
.user-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
}
.account-dropdown {
  position: relative;
}
.account-menu-trigger {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 250px;
  padding: 7px 10px 7px 12px;
  color: var(--navy);
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: 160ms ease;
}
.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"] {
  border-color: var(--border);
  background: var(--paper);
}
.account-menu-trigger:focus-visible {
  outline: 3px solid rgba(63, 114, 175, 0.24);
  outline-offset: 2px;
}
.account-menu-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 750;
}
.account-menu-chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.account-menu-trigger[aria-expanded="true"] .account-menu-chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}
.account-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 260px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 45, 78, 0.17);
}
.account-menu-popover[hidden] {
  display: none;
}
.account-menu-identity {
  display: grid;
  padding: 12px 13px;
  margin-bottom: 5px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ocean-100), var(--slate-100));
}
.account-menu-identity strong {
  font-size: 0.82rem;
}
.account-menu-identity small {
  color: var(--ink-muted);
  font-size: 0.68rem;
}
.account-menu-popover > a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  color: var(--navy);
  border-radius: 9px;
  text-decoration: none;
}
.account-menu-popover > a:hover,
.account-menu-popover > a:focus-visible {
  color: var(--ocean-800);
  background: var(--slate-100);
}
.account-menu-popover > a > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ocean-800);
  border-radius: 8px;
  background: var(--ocean-100);
}
.account-menu-popover b,
.account-menu-popover small {
  display: block;
}
.account-menu-popover b {
  font-size: 0.8rem;
}
.account-menu-popover small {
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 600;
}
.dashboard-main {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.profile-page-main,
.guide-page-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}
.back-link:hover {
  color: var(--blue);
}
.profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 30px 34px;
  margin-bottom: 26px;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    var(--deep-ink),
    var(--ocean-800) 68%,
    var(--gold-deep)
  );
  box-shadow: 0 18px 45px rgba(39, 55, 77, 0.16);
}
.profile-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.profile-avatar-large {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
  font-weight: 850;
}
.profile-hero .section-kicker,
.guide-hero .section-kicker {
  color: var(--ocean-100);
}
.profile-hero h1 {
  margin: 3px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}
.profile-hero h1 small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.45em;
  font-weight: 600;
}
.profile-hero-tags,
.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.profile-hero-tags span {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.66rem;
  font-weight: 700;
}
.profile-updated {
  z-index: 1;
  display: grid;
  min-width: 170px;
  padding: 13px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.profile-updated span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 650;
}
.profile-updated strong {
  margin-top: 4px;
  font-size: 1.08rem;
  line-height: 1.25;
}
.profile-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}
.profile-section-nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.profile-section-nav > span {
  padding: 7px 9px 11px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 800;
}
.profile-section-nav a {
  display: grid;
  padding: 9px 10px;
  color: var(--navy);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}
.profile-section-nav a:hover {
  color: var(--blue);
  background: var(--paper);
}
.profile-section-nav small {
  color: var(--ink-muted);
  font-size: 0.63rem;
  font-weight: 600;
}
.profile-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.profile-card {
  scroll-margin-top: 110px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(17, 45, 78, 0.055);
}
.profile-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.profile-card-heading > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.profile-card-heading > div > span,
.guide-card > span {
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.profile-card-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}
.profile-card-heading h2 small {
  color: var(--ink-muted);
  font-size: 0.68em;
  font-weight: 600;
}
.profile-card-heading p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  text-align: right;
}
.profile-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 32px;
}
.profile-data-grid-compact {
  margin-bottom: 22px;
}
.profile-data-item {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid #f5e8ec;
}
.profile-data-item span,
.profile-subsection > span,
.profile-note-box > span,
.availability-profile-grid > div > span,
.qualification-summary span {
  color: var(--ink-muted);
  font-size: 0.67rem;
  font-weight: 700;
}
.profile-data-item strong {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}
.profile-subsection {
  margin: 4px 0 22px;
}
.profile-subsection > span {
  display: block;
  margin-bottom: 9px;
}
.profile-tag-list b,
.profile-tag-list em {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
}
.profile-tag-list b {
  color: var(--navy);
  background: var(--mist);
}
.profile-tag-list em {
  color: var(--ink-muted);
  background: var(--paper);
}
.skill-rating-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.skill-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
}
.skill-rating-row > div:first-child {
  display: grid;
}
.skill-rating-row strong {
  font-size: 0.78rem;
}
.skill-rating-row small {
  color: var(--ink-muted);
  font-size: 0.64rem;
}
.rating-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.rating-dots i {
  width: 9px;
  height: 9px;
  border: 1px solid #dbb8c3;
  border-radius: 50%;
  background: #fff;
}
.rating-dots i.is-filled {
  border-color: var(--blue);
  background: var(--blue);
}
.rating-dots b {
  min-width: 18px;
  margin-left: 3px;
  color: var(--blue);
  font-size: 0.72rem;
}
.profile-note-box {
  padding: 15px 17px;
  margin-top: 19px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--paper);
}
.profile-note-box p {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 0.78rem;
}
.availability-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.availability-profile-grid > div > span {
  display: block;
  margin-bottom: 10px;
}
.qualification-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.qualification-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper);
}
.qualification-summary strong {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}
.status-approved {
  color: var(--success);
}
.status-rejected {
  color: var(--danger);
}
.status-pending {
  color: var(--warning);
}

.guide-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 38px;
  margin-bottom: 24px;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), #8f284b);
}
.guide-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.guide-hero h1 small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.48em;
}
.guide-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}
.guide-role {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.guide-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(17, 45, 78, 0.05);
}
.guide-card h2 {
  margin: 7px 0 15px;
  font-size: 1rem;
}
.guide-card h2 small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.68em;
  font-weight: 600;
}
.guide-card p {
  margin: 7px 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
}
.guide-card p:first-of-type {
  color: var(--navy);
}
.guide-footnote {
  padding: 18px 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-align: center;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}
.dashboard-workspace {
  min-width: 0;
}
.dashboard-sidebar {
  min-width: 0;
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(39, 55, 77, 0.09);
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px;
  color: #fff;
  background: linear-gradient(
    145deg,
    var(--deep-ink),
    var(--ocean-800) 68%,
    var(--gold-deep)
  );
}
.sidebar-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  font-weight: 850;
}
.sidebar-profile strong,
.sidebar-profile small {
  display: block;
}
.sidebar-profile strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}
.sidebar-profile small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.62rem;
}
.sidebar-nav {
  display: grid;
  gap: 5px;
  padding: 13px;
}
.sidebar-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: 0.15s ease;
}
.sidebar-link:hover {
  color: var(--navy);
  background: var(--slate-100);
}
.sidebar-link:focus-visible {
  outline: 3px solid rgba(17, 45, 78, 0.5);
  outline-offset: 2px;
}
.sidebar-link.is-active {
  color: #fff;
  background: var(--ocean-800);
  box-shadow: 0 8px 18px rgba(15, 76, 117, 0.22);
}
.sidebar-link > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 1rem;
  font-weight: 850;
}
.sidebar-link.is-active > span {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
}
.sidebar-link b,
.sidebar-link small {
  display: block;
}
.sidebar-link b {
  min-width: 0;
  font-size: 0.76rem;
}
.sidebar-link small {
  margin-top: 1px;
  color: currentColor;
  font-size: 0.58rem;
  font-weight: 550;
  opacity: 0.72;
}
.sidebar-link em {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}
.sidebar-link.is-active em {
  color: var(--navy);
  background: #fff;
}
.sidebar-link-external {
  margin-top: 4px;
  border-top: 1px solid #f2e5e9;
  border-radius: 0 0 10px 10px;
}
.sidebar-note {
  display: grid;
  gap: 4px;
  margin: 0 13px 13px;
  padding: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  color: var(--navy);
  background: var(--slate-100);
}
.sidebar-note span {
  font-size: 0.68rem;
  font-weight: 850;
}
.sidebar-note small {
  color: var(--ink-muted);
  font-size: 0.6rem;
  line-height: 1.55;
}
.dashboard-view[hidden] {
  display: none !important;
}
.dashboard-view.is-active {
  animation: dashboard-view-in 0.24s ease both;
}
.view-heading {
  margin-bottom: 18px;
}
.view-heading > span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}
.view-heading h2 {
  margin: 3px 0 4px;
  font-size: 1.35rem;
}
.view-heading h2 small {
  color: var(--ink-muted);
  font-size: 0.62em;
  font-weight: 550;
}
.view-heading p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}
.focused-panel {
  max-width: 680px;
}
.overview-grid {
  grid-template-columns: 1.15fr 0.85fr;
}
.next-step-panel {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #fff, var(--mist));
}
.next-step-panel p {
  color: var(--ink-muted);
}
.next-step-panel .button {
  align-self: flex-start;
  margin-top: 8px;
}
.matching-summary-panel {
  background: linear-gradient(145deg, #fff, var(--mist));
}
.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.summary-metrics > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(63, 114, 175, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}
.summary-metrics span {
  color: var(--ink-muted);
  font-size: 0.66rem;
}
.summary-metrics strong {
  font-size: 1.45rem;
}
.summary-metrics strong small {
  margin-left: 3px;
  color: var(--ink-muted);
  font-size: 0.5em;
}
@keyframes dashboard-view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  scroll-margin-top: 108px;
}
.page-heading h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.25;
}
.page-heading.is-section-heading h1 {
  font-size: clamp(1.45rem, 2.25vw, 2rem);
}
.page-heading.is-section-heading {
  margin-bottom: 22px;
}
.dashboard-view.has-promoted-heading > .view-heading {
  display: none;
}
.page-heading p {
  margin: 0;
  color: var(--ink-muted);
}
.semester-chip {
  min-width: 215px;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ocean-100), var(--slate-100));
}
.semester-chip span {
  color: var(--ink-muted);
  font-size: 0.69rem;
}
.semester-chip strong {
  margin-top: 2px;
  font-size: 0.84rem;
}
.semester-chip.muted {
  opacity: 0.72;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 55%, rgba(221, 230, 237, 0.58));
  box-shadow: 0 7px 24px rgba(39, 55, 77, 0.06);
}
.stat-card-link {
  min-height: 154px;
  color: var(--navy);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.stat-card-link:hover,
.stat-card-link:focus-visible {
  color: var(--navy);
  border-color: #d69eb0;
  box-shadow: 0 13px 30px rgba(17, 45, 78, 0.12);
  transform: translateY(-3px);
  outline: none;
}
.stat-card-link:focus-visible {
  box-shadow:
    0 0 0 3px rgba(63, 114, 175, 0.2),
    0 13px 30px rgba(17, 45, 78, 0.12);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}
.stat-card:nth-child(4n + 1)::before {
  background: var(--navy);
}
.stat-card:nth-child(4n + 2)::before {
  background: var(--blue);
}
.stat-card:nth-child(4n + 3)::before {
  background: var(--ocean-500);
}
.stat-card:nth-child(4n + 4)::before {
  background: var(--slate-700);
}
.stat-card span {
  color: var(--ink-muted);
  font-size: 0.76rem;
}
.stat-card strong {
  margin-top: 5px;
  font-size: 2rem;
}
.stat-card em {
  margin-top: auto;
  padding-top: 12px;
  color: var(--blue);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 750;
}
.dashboard-view > .panel + .panel {
  margin-top: 18px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.tutor-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
.panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(17, 45, 78, 0.055);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.panel h2 {
  margin: 3px 0 0;
  font-size: 1.18rem;
}
.panel h2 small {
  color: var(--ink-muted);
  font-size: 0.68em;
  font-weight: 550;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
th {
  padding: 9px 11px;
  text-align: left;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
}
td {
  padding: 13px 11px;
  vertical-align: middle;
  border-bottom: 1px solid #f4e7eb;
}
.col-nowrap {
  white-space: nowrap;
  width: 1%;
}
td strong,
td small {
  display: block;
}
td small {
  color: var(--ink-muted);
}
.inline-actions {
  display: flex;
  gap: 6px;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-list li {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f4e7eb;
}
.activity-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ocean-500);
  box-shadow: 0 0 0 5px var(--ocean-100);
}
.activity-list strong,
.activity-list small {
  display: block;
  font-size: 0.76rem;
}
.activity-list small {
  margin-top: 3px;
  color: var(--ink-muted);
}
.empty-state {
  padding: 25px 10px;
  color: var(--ink-muted);
  text-align: center;
}
.status-panel > p {
  color: var(--ink-muted);
}
.status-badge {
  display: inline-flex;
  margin: 18px 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--warning);
  background: var(--warning-soft);
  font-size: 0.76rem;
  font-weight: 800;
}
.status-approved {
  color: var(--success);
  background: var(--success-soft);
}
.status-rejected {
  color: var(--danger);
  background: var(--danger-soft);
}
.upload-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.upload-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--blue);
  border-radius: 10px;
  background: var(--paper);
}
.roster-import-form {
  display: grid;
  gap: 14px;
  align-items: start;
}
.roster-import-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--blue);
  border-radius: 10px;
  background: var(--paper);
}
.roster-import-form button[type="submit"] {
  justify-self: start;
}
.quick-import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.quick-import-card form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.quick-import-card input[type="file"] {
  width: 100%;
  padding: 9px;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.72rem;
}
.quick-import-add {
  background: var(--paper);
  border-style: dashed;
}
.quick-import-add p {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: var(--ink-muted);
}
.quick-import-card-note {
  margin: 0 0 8px;
  font-size: 0.74rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.quick-import-card h2 small {
  display: block;
}
.quick-import-card-program {
  grid-column: span 2;
}
.quick-import-role-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.quick-import-role-section {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #ecd8df;
  border-radius: 10px;
  background: var(--paper);
}
.quick-import-role-section h3 {
  margin: 0;
  font-size: 0.8rem;
  color: var(--navy);
}
.quick-import-role-section h3 small {
  display: block;
  font-weight: 600;
  color: var(--ink-muted);
}
.quick-import-role-section form {
  margin-top: 0;
}
@media (max-width: 760px) {
  .quick-import-card-program {
    grid-column: span 1;
  }
}
.review-note {
  padding: 12px;
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
}
.placeholder-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  text-align: center;
  background: linear-gradient(145deg, #fff, var(--mist));
}
.placeholder-panel .eyebrow {
  align-self: flex-start;
}
.illustration-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 28px 0 12px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--ocean-800));
  font-size: 2.2rem;
  box-shadow: 0 14px 30px rgba(15, 76, 117, 0.24);
}
.placeholder-panel p {
  color: var(--ink-muted);
}
.profile-summary {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.profile-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px;
  border-radius: 9px;
  background: var(--paper);
}
.profile-summary span {
  color: var(--ink-muted);
  font-size: 0.76rem;
}
.profile-summary strong {
  text-align: right;
  font-size: 0.82rem;
}

.matching-section {
  margin-top: 22px;
}
.privacy-chip,
.anonymous-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.68rem;
  font-weight: 800;
}
.candidate-search-panel {
  position: relative;
}
.candidate-filter-disclosure {
  margin: 0 0 18px;
}
.candidate-filter-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.candidate-filter-toggle::-webkit-details-marker {
  display: none;
}
.candidate-filter-toggle:hover {
  background: #f9dcea;
}
.candidate-filter-disclosure[open] .candidate-filter-toggle {
  color: #fff;
  background: var(--blue);
}
.candidate-filter {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e9d5de;
  border-radius: 16px;
  background: #fcf7f9;
}
.candidate-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.candidate-filter-row > label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #526d82;
  font-size: 0.84rem;
  font-weight: 800;
}
.candidate-filter-row > label > select,
.candidate-filter-row > label > input {
  min-height: 43px;
}
.candidate-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: none;
  margin: 0;
}
.candidate-filter-chips > legend {
  flex: 0 0 100%;
  padding: 0 0 7px;
  color: #526d82;
  font-size: 0.84rem;
  font-weight: 800;
}
.chip-check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 152px;
  padding: 8px 12px;
  border: 2px solid #efdce2;
  border-radius: 999px;
  color: var(--ink-muted);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
  transition: 0.15s ease;
}
.chip-check:hover {
  color: var(--blue);
  border-color: #d79fb1;
}
.chip-check:has(input:checked) {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 5px 12px rgba(63, 114, 175, 0.2);
}
.chip-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.candidate-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #f2e3e8;
}
.candidate-filter-actions > .result-count {
  margin-right: auto;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.candidate-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 50%, rgba(221, 230, 237, 0.62));
}
.candidate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f2e3e8;
}
.candidate-card-head > strong {
  font-size: 0.78rem;
}
.candidate-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.candidate-facts > div {
  min-width: 0;
  padding: 11px;
  border-radius: 9px;
  border: 1px solid rgba(157, 178, 191, 0.42);
  background: rgba(255, 255, 255, 0.82);
}
.candidate-facts dt,
.candidate-detail > span {
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 700;
}
.candidate-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 800;
}
.candidate-detail {
  display: grid;
  gap: 7px;
}
.candidate-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.candidate-detail-card {
  min-width: 0;
  min-height: 105px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(157, 178, 191, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}
.candidate-value {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}
.candidate-note {
  max-height: 88px;
  margin: 0;
  overflow-y: auto;
  color: var(--navy);
  font-size: 0.74rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list b {
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.68rem;
}
.tag-list em {
  color: var(--ink-muted);
  font-size: 0.72rem;
}
.tag-list-bounded {
  max-height: 88px;
  overflow-y: auto;
  padding-right: 2px;
}
.invitation-stack {
  display: grid;
  gap: 16px;
}
.invitation-card {
  padding: 22px 24px;
}
.invitation-card h3 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3e4e9;
  font-size: 0.94rem;
}
.invitation-card h3 small {
  color: var(--ink-muted);
  font-size: 0.7em;
  font-weight: 550;
}
.invitation-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.invitation-columns h3 {
  margin: 0 0 10px;
  font-size: 0.86rem;
}
.invitation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3e4e9;
  font-size: 0.76rem;
  font-weight: 700;
}
.invitation-row strong,
.invitation-row small {
  display: block;
}
.invitation-row small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 550;
}
.invitation-row-expandable {
  align-items: flex-start;
  padding: 15px 0;
}
.invitation-profile-disclosure {
  min-width: 0;
  flex: 1;
}
.invitation-profile-disclosure summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 3px;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}
.invitation-profile-disclosure summary::-webkit-details-marker {
  display: none;
}
.invitation-profile-disclosure summary:hover,
.invitation-profile-disclosure summary:focus-visible {
  background: var(--paper);
  outline: none;
}
.invitation-teacher-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  font-size: 0.78rem;
  font-weight: 850;
}
.invitation-summary-copy {
  min-width: 0;
}
.invitation-view-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  color: var(--blue);
  border-radius: 8px;
  font-size: 0.69rem;
  white-space: nowrap;
}
.invitation-view-label small {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 0.9em;
}
.invitation-view-label i {
  display: inline-block;
  font-style: normal;
  transition: transform 160ms ease;
}
.invitation-view-label i::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.invitation-profile-disclosure[open] .invitation-view-label i {
  transform: rotate(180deg);
}
.invitation-profile-details {
  margin: 12px 0 2px 49px;
  padding: 18px;
  border: 1px solid #e8cbd5;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #fcf8f9);
}
.invitation-profile-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid #f2e3e8;
}
.invitation-profile-heading > span {
  color: var(--blue);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}
.invitation-profile-heading strong {
  font-size: 0.8rem;
}
.invitation-profile-heading strong small {
  display: inline;
  margin: 0 0 0 4px;
}
.invitation-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 15px;
}
.invitation-profile-facts div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 9px;
  background: var(--paper);
}
.invitation-profile-facts dt,
.invitation-profile-section > span,
.invitation-profile-note > span {
  color: var(--ink-muted);
  font-size: 0.61rem;
  font-weight: 700;
}
.invitation-profile-facts dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 750;
}
.invitation-profile-section {
  margin-top: 14px;
}
.invitation-profile-section > span {
  display: block;
  margin-bottom: 7px;
}
.invitation-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.invitation-skill-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #edd6de;
  border-radius: 9px;
  background: #fff;
}
.invitation-skill-grid span,
.invitation-skill-grid span small {
  display: block;
  font-size: 0.63rem;
}
.invitation-skill-grid span small {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.56rem;
}
.invitation-skill-grid strong {
  color: var(--blue);
  font-size: 0.84rem;
}
.invitation-skill-grid strong small {
  display: inline;
  margin: 0;
  font-size: 0.62em;
}
.invitation-profile-note {
  padding: 11px 13px;
  margin-top: 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--paper);
}
.invitation-profile-note p {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 600;
}
.invitation-privacy-note {
  margin: 15px 0 0;
  color: var(--ink-muted);
  font-size: 0.61rem;
  font-weight: 550;
}
.invitation-response-actions {
  flex: 0 0 auto;
  padding-top: 7px;
}
.matched-person {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #e8cbd5;
  border-radius: 11px;
  background: var(--paper);
}
.matched-person div,
.matched-person-profile {
  display: flex;
  flex-direction: column;
}
.matched-person-profile {
  min-width: 0;
  padding: 5px 7px;
  color: var(--navy);
  border-radius: 9px;
  text-decoration: none;
  transition: 160ms ease;
}
.matched-person-profile:hover,
.matched-person-profile:focus-visible {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 45, 78, 0.08);
  outline: none;
}
.matched-person span,
.matched-person small {
  color: var(--ink-muted);
  font-size: 0.67rem;
}
.matched-person strong {
  margin-top: 2px;
  font-size: 0.82rem;
}
.matched-person-profile em {
  margin-top: 6px;
  color: var(--blue);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 750;
}
.matched-message-action {
  min-width: 142px;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  padding-left: 16px;
  border-left: 1px solid #ebd5dd;
}
.matched-message-action > span,
.matched-message-action > small {
  text-align: center;
}
.matched-message-action .button:disabled,
.matched-message-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.matched-profile-message {
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 180px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}
.matched-profile-message > span,
.matched-profile-message > small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.64rem;
}
.matched-message-button {
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.94);
}
.pairing-release-details,
.pairing-release-state {
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, var(--slate-100));
}
.pairing-release-details > summary {
  cursor: pointer;
  color: var(--slate-700);
  font-size: 0.7rem;
  font-weight: 800;
}
.pairing-release-details > summary small {
  margin-left: 4px;
  color: var(--ink-muted);
  font-weight: 600;
}
.pairing-release-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}
.pairing-release-form label,
.pairing-release-review-form label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 800;
}
.pairing-release-form select,
.pairing-release-form textarea,
.pairing-release-review-form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
}
.pairing-release-form textarea {
  resize: vertical;
}
.pairing-release-form .button {
  justify-self: start;
}
.pairing-release-state {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--warning);
}
.pairing-release-state .class-status {
  margin-bottom: 2px;
}
.pairing-release-state strong {
  font-size: 0.72rem;
}
.pairing-release-state p,
.pairing-release-state small {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.64rem;
}
.pairing-release-admin-list {
  display: grid;
  gap: 12px;
}
.pairing-release-admin-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.72fr);
  gap: 22px;
  padding: 17px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: 12px;
  background: linear-gradient(100deg, var(--warning-soft), #fff 22%);
}
.pairing-release-admin-row > div,
.pairing-release-review-form {
  display: grid;
  align-content: start;
  gap: 6px;
}
.pairing-release-admin-row .status-badge {
  width: fit-content;
  margin: 0 0 3px;
}
.pairing-release-admin-row strong {
  font-size: 0.78rem;
}
.pairing-release-admin-row b {
  margin-top: 4px;
  color: var(--navy);
  font-size: 0.7rem;
}
.pairing-release-admin-row small,
.pairing-release-admin-row p,
.pairing-release-admin-row em {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-style: normal;
}
.pairing-release-review-form .inline-actions {
  margin-top: 3px;
}

/* V2 class schedule and mutual class verification */
.schedule-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.schedule-metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px 12px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 58%, var(--slate-100));
}
.schedule-metrics > div:nth-child(2) {
  background: linear-gradient(145deg, #fff 58%, var(--ocean-100));
}
.schedule-metrics > div:nth-child(3) {
  background: linear-gradient(145deg, #fff 58%, var(--mist));
}
.schedule-metrics.is-single {
  grid-template-columns: minmax(240px, 1fr);
  max-width: 420px;
}
.schedule-metrics span {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 750;
}
.schedule-metrics strong {
  color: var(--navy);
  font-size: 1.65rem;
}
.schedule-metrics small {
  color: var(--ink-muted);
  font-size: 0.65rem;
}
.schedule-create-panel {
  margin-bottom: 18px;
}
.schedule-form {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(130px, 0.7fr));
  align-items: end;
  gap: 13px;
}
.schedule-form label,
.stack-form label,
.stack-form p,
.confirmation-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
}
.schedule-form select,
.schedule-form input,
.stack-form input,
.stack-form textarea,
.stack-form select,
.confirmation-form textarea,
.makeup-review-row input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #e7c8d2;
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  font: inherit;
}
.time-select-group,
.five-minute-time {
  display: flex;
  align-items: center;
  gap: 7px;
}
.five-minute-time {
  width: 100%;
}
.five-minute-time > select {
  min-width: 0;
  flex: 1 1 0;
}
.five-minute-time > span {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
}
.schedule-check {
  display: flex !important;
  align-items: center;
  gap: 11px !important;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid #e7c8d2;
  border-radius: 10px;
  background: var(--slate-100);
}
.schedule-check input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  accent-color: var(--ocean-800);
}
.schedule-check span {
  display: grid;
  gap: 1px;
}
.schedule-check strong {
  font-size: 0.72rem;
}
.schedule-check small {
  color: var(--ink-muted);
  font-size: 0.6rem;
  font-weight: 600;
}
.schedule-submit {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 8px 18px;
  line-height: 1.2;
}
.schedule-submit strong {
  font-size: 0.76rem;
}
.schedule-submit small {
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.78;
}
.class-list {
  display: grid;
  gap: 10px;
}
.class-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #ebd4dc;
  border-radius: 13px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  transition: 150ms ease;
}
.class-row:hover {
  border-color: var(--ocean-500);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(39, 55, 77, 0.09);
}
.class-row.is-cancelled {
  opacity: 0.58;
}
.class-row time {
  display: grid;
  place-items: center;
  padding-right: 15px;
  border-right: 1px solid #efdce2;
}
.class-row time strong {
  font-size: 1rem;
}
.class-row time small,
.class-row-main span {
  color: var(--ink-muted);
  font-size: 0.66rem;
}
.class-row-main {
  display: grid;
  gap: 4px;
}
.class-row-main strong {
  font-size: 0.78rem;
}
.class-row-progress {
  display: grid;
  justify-items: end;
  gap: 5px;
}
.class-row-progress em {
  color: var(--ocean-800);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}
.class-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
}
.class-status.scheduled {
  color: var(--ocean-800);
  background: var(--ocean-100);
}
.class-status.pending {
  color: #765b00;
  background: #fff3c5;
}
.class-status.verified {
  color: #17683d;
  background: #dff4e8;
}
.class-status.cancelled {
  color: #963b3b;
  background: #f8e2e2;
}
.makeup-review-list {
  display: grid;
  gap: 11px;
}
.review-status-sections,
.schedule-groups {
  display: grid;
  gap: 13px;
}
.review-status-group,
.schedule-group {
  overflow: hidden;
}
.review-status-group > summary,
.schedule-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
}
.review-status-group > summary::-webkit-details-marker,
.schedule-group > summary::-webkit-details-marker {
  display: none;
}
.review-status-group > summary::after,
.schedule-group > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.9rem;
  font-weight: 850;
}
.review-status-group[open] > summary::after,
.schedule-group[open] > summary::after {
  content: "−";
}
.review-status-group > summary > span,
.schedule-group > summary > span {
  display: grid;
  gap: 2px;
  margin-right: auto;
}
.review-status-group > summary strong,
.schedule-group > summary strong {
  font-size: 0.8rem;
}
.review-status-group > summary small,
.schedule-group > summary small {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 600;
}
.review-status-group > summary > em,
.schedule-group > summary > em {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}
.review-status-group > .makeup-review-list,
.schedule-group > .class-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eedce2;
}
.schedule-group {
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}
.schedule-group-upcoming {
  border-left: 4px solid var(--ocean-500);
  background: linear-gradient(100deg, rgba(187, 225, 250, 0.44), #fff 22%);
}
.schedule-group-future {
  border-left: 4px solid var(--blue);
  background: linear-gradient(100deg, rgba(219, 226, 239, 0.58), #fff 22%);
}
.schedule-group-past {
  border-left: 4px solid var(--slate-700);
  background: linear-gradient(100deg, var(--slate-100), #fff 22%);
}
.status-group-pending {
  border-left: 4px solid var(--warning);
  background: linear-gradient(100deg, var(--warning-soft), #fff 22%);
}
.status-group-waiting {
  border-left: 4px solid var(--ocean-500);
  background: linear-gradient(100deg, rgba(187, 225, 250, 0.48), #fff 22%);
}
.status-group-approved {
  border-left: 4px solid var(--success);
  background: linear-gradient(100deg, var(--success-soft), #fff 22%);
}
.status-group-rejected {
  border-left: 4px solid var(--danger);
  background: linear-gradient(100deg, var(--danger-soft), #fff 22%);
}
.makeup-review-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 0.8fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid #ebd5dd;
  border-radius: 12px;
}
.makeup-review-row > div,
.makeup-review-row form {
  display: grid;
  align-content: start;
  gap: 5px;
}
.makeup-review-row span,
.makeup-review-row small {
  color: var(--ink-muted);
  font-size: 0.67rem;
}
.review-detail-link {
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
  transition: 150ms ease;
}
.review-detail-link:hover {
  background: var(--paper);
  box-shadow: 0 5px 15px rgba(17, 45, 78, 0.07);
}
.review-detail-link em {
  margin-top: 5px;
  color: var(--blue);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
}
.review-row-badges {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.review-row-badges b {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ocean-800);
  background: var(--ocean-100);
  font-size: 0.62rem;
}
.review-row-badges b small {
  margin-left: 3px;
  font-size: 0.9em;
  font-weight: 600;
}
.review-row-badges i {
  font-style: normal;
}
.review-history-state {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border-radius: 10px;
  background: var(--paper);
}
.review-history-state span {
  color: var(--ink-muted);
  font-size: 0.62rem;
}
.review-history-state strong {
  font-size: 0.72rem;
}
.detail-link {
  width: fit-content;
  margin-top: 6px;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}
.detail-link:hover {
  text-decoration: underline;
}
.class-detail-main {
  width: min(1120px, calc(100% - 36px));
  margin: 28px auto 64px;
}
.admin-participant-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.admin-participant-summary > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, var(--slate-100));
}
.admin-participant-summary > div:nth-child(2) {
  background: linear-gradient(145deg, #fff, var(--ocean-100));
}
.admin-participant-summary span,
.admin-participant-summary small {
  color: var(--ink-muted);
  font-size: 0.65rem;
}
.admin-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.admin-record-section + .admin-record-section {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #eddbe1;
}
.admin-record-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 0.75rem;
}
.admin-record-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}
.admin-record-section dl > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  background: var(--paper);
}
.admin-record-section dl > .wide {
  grid-column: 1 / -1;
}
.admin-record-section dt {
  color: var(--ink-muted);
  font-size: 0.6rem;
  font-weight: 750;
}
.admin-record-section dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.68rem;
  line-height: 1.6;
}
.admin-review-decision {
  margin-top: 18px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}
.class-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 27px 30px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--deep-ink),
    var(--ocean-800) 68%,
    var(--gold-deep)
  );
  box-shadow: 0 15px 35px rgba(39, 55, 77, 0.18);
}
.class-detail-hero h1 {
  margin: 5px 0;
  font-size: 1.75rem;
}
.class-detail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
}
.class-hero-side {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.class-hero-side > span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
}
.class-hero-side > strong {
  font-size: 0.9rem;
}
.class-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 19px 0;
  overflow: hidden;
  border: 1px solid #ebd4dc;
  border-radius: 14px;
  background: #ebd4dc;
}
.class-flow > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 0 9px;
  padding: 13px;
  background: #fff;
}
.class-flow > div > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: var(--ink-muted);
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 850;
}
.class-flow strong {
  font-size: 0.78rem;
}
.class-flow small {
  color: var(--ink-muted);
  font-size: 0.66rem;
}
.class-flow .is-done > span {
  color: #fff;
  background: var(--ocean-800);
}
.class-detail-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
  align-items: stretch;
}
.class-detail-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.class-detail-column > section:last-child {
  flex: 1;
}
.stack-form,
.confirmation-form {
  display: grid;
  gap: 13px;
}
.stack-form p {
  margin: 0;
}
.stack-form .helptext {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 500;
}
.stack-form .helptext .evidence-help-points {
  display: grid;
  gap: 9px;
  margin-top: 9px;
  font-size: 0.66rem;
  line-height: 1.5;
}
.stack-form .helptext .evidence-help-points > span {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.stack-form .helptext .evidence-help-points > span > b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ocean-800);
  font-size: 0.57rem;
}
.stack-form .helptext .evidence-help-points small {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.58rem;
  line-height: 1.45;
}
.stack-form ul.errorlist {
  margin: 0;
  color: #a33b3b;
  font-size: 0.65rem;
}
.completion-box {
  display: grid;
  gap: 5px;
  padding: 17px;
  border: 1px solid #b9dfca;
  border-radius: 12px;
  background: #edf8f2;
}
.completion-box span,
.completion-box em {
  color: var(--ink-muted);
  font-size: 0.65rem;
  font-style: normal;
}
.required-chip {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #963b3b;
  background: #f8e2e2;
  font-size: 0.58rem;
  font-style: normal;
}
.class-alert-panel {
  border-color: #e3d7ad;
  background: linear-gradient(150deg, #fff, #fffdf5);
}
.incident-report-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.button-alert {
  color: #fff;
  border-color: #9a7620;
  background: #9a7620;
}
.button-alert:hover {
  background: #7f6018;
}
.alert-active-box {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid #e2c86f;
  border-radius: 11px;
  background: #fff7d9;
}
.alert-active-box span,
.alert-active-box p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.66rem;
}
.empty-state.compact {
  padding: 15px;
}
.class-alert-row > div:last-child {
  align-content: start;
}
.class-alert-row p {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 0.68rem;
}
.counterpart-review {
  margin-top: 18px;
  margin-bottom: 18px;
}
.makeup-reason-field {
  margin-top: 10px;
}
.current-attachment-note {
  padding: 9px 12px;
  border: 1px solid #ecd8df;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 0.74rem;
}
.current-attachment-note a {
  font-weight: 750;
}
.evidence-link-list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.evidence-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.evidence-link-row input[type="url"] {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e2cdd6;
  border-radius: 9px;
  font-size: 0.82rem;
}
.evidence-link-view-list {
  display: grid;
  gap: 4px;
}
.evidence-link-view-list a {
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  font-weight: 750;
}
.counterpart-record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.counterpart-record-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #ecd8df;
  border-radius: 10px;
  background: var(--paper);
}
.counterpart-record-grid .wide {
  grid-column: 1 / -1;
}
.counterpart-record-grid span {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 750;
}
.counterpart-record-grid strong,
.counterpart-record-grid p {
  margin: 0;
  font-size: 0.72rem;
}
.confirmation-form .inline-actions {
  justify-content: flex-end;
}
.review-result {
  padding: 12px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--mist);
  font-size: 0.68rem;
}
.danger-details {
  margin-top: 18px;
}
.edit-details {
  margin-top: 18px;
}
.danger-details summary,
.edit-details summary {
  cursor: pointer;
  color: #9d3f3f;
  font-size: 0.72rem;
  font-weight: 800;
}
.edit-details summary {
  color: var(--blue);
}
.danger-details form {
  margin-top: 15px;
}
.edit-details form {
  margin-top: 15px;
}
.class-edit-form {
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
}

@media (max-width: 900px) {
  .schedule-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pairing-release-form,
  .pairing-release-admin-row {
    grid-template-columns: 1fr;
  }
  .class-detail-grid {
    grid-template-columns: 1fr;
  }
  .admin-record-grid {
    grid-template-columns: 1fr;
  }
  .class-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .schedule-metrics,
  .schedule-form {
    grid-template-columns: 1fr;
  }
  .class-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .class-row-progress {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: space-between;
    justify-items: start;
  }
  .class-detail-hero {
    display: grid;
    padding: 22px;
  }
  .class-hero-side {
    justify-items: start;
    text-align: left;
  }
  .class-flow {
    grid-template-columns: 1fr;
  }
  .counterpart-record-grid,
  .makeup-review-row {
    grid-template-columns: 1fr;
  }
  .admin-participant-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth-main {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 28px));
    margin: 28px auto;
  }
  .brand-panel {
    min-height: auto;
    padding: 34px;
  }
  .brand-panel h1 {
    font-size: 1.55rem;
  }
  .brand-panel p:first-of-type {
    display: none;
  }
  .brand-rule {
    margin: 22px 0;
  }
  .public-header {
    height: 78px;
    padding: 14px 22px;
  }
  .public-header .logo-csl {
    height: 44px;
  }
  .public-header .logo-ntnu {
    width: 44px;
    height: 44px;
  }
  .app-header {
    align-items: flex-start;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-section-nav {
    position: sticky;
    top: 68px;
    z-index: 12;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding: 9px;
  }
  .profile-section-nav > span {
    display: none;
  }
  .profile-section-nav a {
    padding: 7px 10px;
  }
  .profile-section-nav small {
    display: none;
  }
  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-sidebar {
    position: sticky;
    top: 68px;
    z-index: 15;
    overflow: visible;
    border-radius: 14px;
  }
  .sidebar-profile,
  .sidebar-note {
    display: none;
  }
  .sidebar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding: 9px;
    scrollbar-width: thin;
  }
  .sidebar-link {
    grid-template-columns: 26px auto auto;
    padding: 8px 10px;
  }
  .sidebar-link > span {
    width: 26px;
    height: 26px;
  }
  .sidebar-link b {
    white-space: nowrap;
  }
  .sidebar-link-external {
    margin: 0;
    border: 0;
    border-radius: 10px;
  }
  .app-brand > span {
    display: none;
  }
  .user-name {
    display: none;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid,
  .tutor-grid,
  .overview-grid,
  .candidate-grid,
  .invitation-columns {
    grid-template-columns: 1fr;
  }
  .roster-card {
    grid-template-columns: 1fr 1fr;
  }
  .roster-card > div:nth-child(2) {
    border-right: 0;
  }
  .roster-card > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e4c5cf;
  }
  .four-column-fields {
    grid-template-columns: 1fr 1fr;
  }
  .schedule-card .choice-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .target-skills-card .choice-control {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .public-header .logo-csl {
    width: 260px;
    max-width: 80vw;
  }
  .auth-main {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .brand-panel {
    padding: 28px 22px;
  }
  .auth-card {
    padding: 32px 22px 40px;
  }
  .public-footer {
    flex-direction: column;
    padding: 16px 22px;
  }
  .two-column-fields,
  .question-grid {
    grid-template-columns: 1fr;
  }
  .profile-registration-main {
    width: min(100% - 28px, 1040px);
    margin-top: 28px;
  }
  .profile-registration-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-registration-heading .button {
    align-self: flex-start;
  }
  .roster-card {
    grid-template-columns: 1fr;
  }
  .roster-card > div {
    border-right: 0;
    border-bottom: 1px solid #e4c5cf;
  }
  .roster-card > div:last-child {
    border-bottom: 0;
  }
  .four-column-fields,
  .choice-columns,
  .rating-grid {
    grid-template-columns: 1fr;
  }
  .schedule-card {
    padding: 16px;
  }
  .schedule-card .choice-control,
  .schedule-card .choice-field:last-child .choice-control {
    grid-template-columns: 1fr 1fr;
  }
  .target-skills-card {
    padding: 16px;
  }
  .app-header {
    min-height: 68px;
    padding: 10px 14px;
  }
  .app-brand .logo-ntnu {
    width: 36px;
    height: 36px;
  }
  .app-brand .logo-csl {
    width: 118px;
    height: 42px;
  }
  .role-pill {
    display: none;
  }
  .user-menu {
    gap: 5px;
  }
  .account-menu-trigger {
    max-width: 108px;
    padding: 6px 7px;
  }
  .account-menu-name {
    font-size: 0.72rem;
  }
  .account-menu-popover {
    position: fixed;
    top: 64px;
    right: 12px;
    width: min(270px, calc(100vw - 24px));
  }
  .button-ghost {
    font-size: 0.7rem;
    padding-inline: 8px;
  }
  .dashboard-main {
    width: min(100% - 28px, 1380px);
    padding-top: 28px;
  }
  .profile-page-main,
  .guide-page-main {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }
  .profile-hero {
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 23px 20px;
  }
  .profile-avatar-large {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 1.3rem;
  }
  .profile-updated {
    grid-column: 1 / -1;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }
  .matched-profile-hero {
    grid-template-columns: auto 1fr;
  }
  .matched-profile-message {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }
  .profile-card {
    padding: 20px;
  }
  .profile-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .profile-card-heading p {
    text-align: left;
  }
  .profile-data-grid,
  .skill-rating-list,
  .availability-profile-grid,
  .qualification-summary,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 23px;
  }
  .dashboard-layout {
    gap: 18px;
  }
  .dashboard-sidebar {
    width: 100%;
    margin: 0;
  }
  .sidebar-link small {
    display: none;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .view-heading h2 {
    font-size: 1.18rem;
  }
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .semester-chip {
    min-width: 0;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card strong {
    font-size: 1.55rem;
  }
  .panel {
    padding: 18px;
    border-radius: 14px;
  }
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .privacy-chip {
    align-self: flex-start;
  }
  .candidate-facts,
  .candidate-details-grid,
  .matched-person {
    grid-template-columns: 1fr;
  }
  .matched-message-action {
    width: 100%;
    padding: 12px 7px 3px;
    border-top: 1px solid #ebd5dd;
    border-left: 0;
  }
  .invitation-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .invitation-profile-disclosure {
    width: 100%;
  }
  .invitation-profile-disclosure summary {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .invitation-view-label {
    grid-column: 2;
    justify-self: start;
    padding: 3px 0;
  }
  .invitation-profile-details {
    margin-left: 0;
    padding: 15px;
  }
  .invitation-profile-facts {
    grid-template-columns: 1fr;
  }
  .invitation-skill-grid {
    grid-template-columns: 1fr 1fr;
  }
  .invitation-response-actions {
    width: 100%;
    flex-direction: row;
  }
  .invitation-response-actions .button {
    flex: 1;
  }
  .summary-metrics {
    grid-template-columns: 1fr;
  }
  .inline-actions {
    flex-direction: column;
  }
  .app-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* V2 semester, hours, messaging and reporting */
.semester-settings-list,
.admin-class-list {
  display: grid;
  gap: 12px;
}
.semester-settings-card {
  border: 1px solid #e6c9d4;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.semester-settings-card > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  list-style: none;
}
.semester-settings-card > summary span {
  display: grid;
  gap: 3px;
}
.semester-settings-card > summary small {
  color: #526d82;
}
.semester-settings-card > summary em {
  border-radius: 999px;
  padding: 6px 10px;
  font-style: normal;
  font-size: 0.82rem;
  background: #dde6ed;
  color: #27374d;
}
.semester-add-disclosure {
  margin-top: 16px;
  overflow: hidden;
  border: 1px dashed #9db2bf;
  border-radius: 15px;
  background: #fdf8fa;
}
.semester-add-disclosure > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: #27374d;
  cursor: pointer;
  list-style: none;
}
.semester-add-disclosure > summary::-webkit-details-marker {
  display: none;
}
.semester-add-disclosure > summary > span:not(.semester-add-icon) {
  display: grid;
  gap: 2px;
}
.semester-add-disclosure > summary small {
  color: #526d82;
  font-weight: 650;
}
.semester-add-disclosure[open] > summary {
  border-bottom: 1px solid #ead7df;
  background: #f9eef3;
}
.semester-add-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #8c1d40;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}
.semester-add-disclosure[open] .semester-add-icon {
  background: #c39a5a;
}
.semester-new-form {
  padding: 18px;
}
.semester-new-form .button {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 440px);
}
.semester-limit-note {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: 12px;
  background: #f7edf3;
  color: #526d82;
}
.semester-setting-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.semester-setting-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, auto) auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid #ead7df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(39, 55, 77, 0.05);
}
.semester-setting-name {
  display: grid;
  gap: 2px;
}
.semester-setting-name strong {
  color: #27374d;
  font-size: 1rem;
}
.semester-setting-name small {
  color: #526d82;
}
.semester-setting-program {
  display: grid;
  gap: 2px;
  color: #27374d;
  font-size: 0.85rem;
  font-weight: 750;
}
.semester-setting-program small {
  color: #526d82;
  font-size: 0.7rem;
  font-weight: 700;
}
.semester-setting-dates {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #27374d;
  font-weight: 750;
  white-space: nowrap;
}
.semester-setting-dates i {
  color: #9db2bf;
  font-style: normal;
}
.semester-setting-status {
  display: grid;
  justify-items: center;
  min-width: 88px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #8c1d40;
  background: #fce4f0;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.15;
}
.semester-setting-status small {
  font-size: 0.66rem;
  font-weight: 700;
}
.semester-setting-status.status-future {
  color: #526d82;
  background: #f5edf1;
}
.semester-setting-status.status-past {
  color: #8a6418;
  background: #fff2c9;
}
.semester-setting-row form {
  margin: 0;
}
.semester-setting-row .button {
  min-height: 38px;
  padding: 7px 13px;
}
.semester-setting-row .button small {
  display: block;
}
.semester-card {
  position: relative;
  display: grid;
  gap: 8px;
}
.semester-card .semester-setting-row {
  padding-right: 52px;
}
.semester-setting-actions {
  display: flex;
  justify-content: flex-end;
}
.semester-edit-icon-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ead7df;
  background: #fbf4f7;
  color: #8c1d40;
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
}
.semester-edit-icon-btn::-webkit-details-marker {
  display: none;
}
.semester-edit-icon-btn:hover {
  background: #fce4f0;
  border-color: #e09fbe;
}
.semester-edit-disclosure[open] .semester-edit-icon-btn {
  background: #8c1d40;
  border-color: #8c1d40;
  color: #fff;
}
.semester-edit-disclosure .semester-edit-form {
  padding: 16px 17px;
  border-top: 1px solid #ead7df;
  background: #f9eef3;
  border-radius: 0 0 12px 12px;
}
.semester-edit-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 13px;
  border-radius: 10px;
  background: #fdf3e3;
  color: #7a5a1e;
  font-size: 0.68rem;
  line-height: 1.55;
}
.conversation-launcher {
  display: grid;
  gap: 14px;
}
.conversation-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.conversation-group-heading > span,
.conversation-history > summary > span {
  display: grid;
  gap: 2px;
}
.conversation-group-heading small,
.conversation-history > summary small {
  color: #526d82;
  font-size: 0.7rem;
}
.conversation-group-heading > b,
.conversation-history > summary > b {
  display: grid;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  place-items: center;
  border-radius: 999px;
  color: #8c1d40;
  background: #dde6ed;
  font-size: 0.76rem;
}
.conversation-link-list {
  display: grid;
  gap: 9px;
}
.conversation-link-list > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  border-radius: 12px;
  padding: 13px 15px;
  background: #fcf6f8;
  color: #27374d;
  text-decoration: none;
}
.conversation-link-list > a.is-ended {
  border: 1px solid #e9d8e0;
  background: #fdfbfc;
}
.conversation-link-list > a.has-unread {
  border: 1px solid #f0bcd5;
  background: #fceef4;
}
.conversation-link-list a small {
  color: #526d82;
}
.conversation-link-list a em {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  color: #8c1d40;
  font-style: normal;
}
.conversation-link-list a strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.conversation-person-email {
  color: #526d82;
  font-size: 0.78em;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.conversation-preview {
  grid-column: 1;
  margin: 0;
  overflow: hidden;
  color: #526d82;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-link-list > a.has-unread .conversation-preview {
  color: #27374d;
  font-weight: 750;
}
.conversation-time {
  grid-column: 1;
  color: #b7909f;
  font-size: 0.68rem;
}
.unread-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}
.conversation-history {
  overflow: hidden;
  border: 1px solid #e9d5de;
  border-radius: 13px;
  background: #fff;
}
.conversation-history > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.conversation-history > summary::-webkit-details-marker {
  display: none;
}
.conversation-history > summary > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #8c1d40;
  background: #dde6ed;
  font-style: normal;
  transition: transform 0.18s ease;
}
.conversation-history > summary > i::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.conversation-history[open] > summary {
  border-bottom: 1px solid #eddce3;
  background: #fcf8f9;
}
.conversation-history[open] > summary > i {
  transform: rotate(180deg);
}
.conversation-history > .conversation-link-list {
  padding: 12px;
}
.conversation-ended-chip {
  display: grid;
  gap: 1px;
  padding: 7px 11px;
  border-radius: 10px;
  color: #526d82;
  background: #f5edf1;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}
.conversation-ended-chip small {
  font-size: 0.62rem;
}
@media (max-width: 520px) {
  .conversation-link-list > a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .conversation-link-list a em {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
  }
  .conversation-history > summary {
    grid-template-columns: minmax(0, 1fr) auto 28px;
    gap: 8px;
  }
}
.hours-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.hours-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 12px;
  padding: 18px;
  border-radius: 14px;
  background: #dde6ed;
}
.hours-summary span {
  grid-column: 1/-1;
  color: #526d82;
}
.hours-summary strong {
  font-size: 2rem;
  color: #8c1d40;
}
.deadline-note {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 4px solid #c39a5a;
  background: #fcedf4;
  color: #27374d;
}
.hours-download-form,
.semester-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.hours-download-form label,
.semester-form > div {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: #27374d;
}
.hours-download-form .button,
.semester-form .button {
  align-self: end;
  min-height: 48px;
}
.semester-form input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  padding: 0;
  justify-self: start;
  accent-color: #8c1d40;
}
.admin-pairing-form {
  padding: 20px clamp(18px, 2.4vw, 28px) 24px;
}
.admin-pairing-form .semester-edit-warning {
  margin-top: 2px;
}
.admin-pairing-form .button {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 440px);
}
.semester-settings-card form,
.semester-deadlines {
  margin: 0 18px 18px;
}
.semester-deadlines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #526d82;
  font-size: 0.9rem;
}
.semester-deadlines span {
  padding: 8px 11px;
  border-radius: 9px;
  background: #faf3f6;
}
.admin-class-list a,
.admin-class-list > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid #ead6de;
  border-radius: 13px;
  color: #27374d;
  text-decoration: none;
}
.admin-class-list time,
.admin-class-list a > span,
.admin-class-list > div > span {
  display: grid;
  gap: 3px;
}
.admin-class-list small {
  color: #526d82;
}
.admin-class-list em {
  margin-top: 4px;
  color: #a33;
  font-style: normal;
  font-size: 0.86rem;
}
.admin-class-list b {
  color: #8c1d40;
}
.class-overview-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(200px, 1fr) minmax(
      180px,
      0.8fr
    ) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e9d5de;
  border-radius: 16px;
  background: #fcf7f9;
}
.class-overview-filter label {
  display: grid;
  gap: 7px;
  color: #526d82;
  font-size: 0.84rem;
  font-weight: 800;
}
.class-overview-filter input {
  min-height: 43px;
}
.class-overview-metrics,
.tutor-schedule-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.class-overview-metrics > div,
.tutor-schedule-metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 100px;
  padding: 17px;
  border: 1px solid #ead6de;
  border-radius: 15px;
  background: #fff;
}
.class-overview-metrics span,
.tutor-schedule-metrics span {
  display: grid;
  color: #526d82;
  font-weight: 800;
}
.class-overview-metrics span small,
.tutor-schedule-metrics span small {
  font-size: 0.7rem;
}
.class-overview-metrics strong,
.tutor-schedule-metrics strong {
  color: #8c1d40;
  font-size: 1.8rem;
}
.class-overview-metrics .has-attention,
.tutor-schedule-metrics .has-attention {
  border-color: #ead5a0;
  background: #fff9e8;
}
.class-overview-metrics .has-attention strong,
.tutor-schedule-metrics .has-attention strong {
  color: #8a6418;
}
.class-overview-metrics > div:nth-child(1),
.tutor-schedule-metrics > div:nth-child(1) {
  border-color: #e5c8d5;
  background: linear-gradient(145deg, #fff 58%, #dde6ed);
}
.class-overview-metrics > div:nth-child(2),
.tutor-schedule-metrics > div:nth-child(2) {
  border-color: #ebbdd3;
  background: linear-gradient(145deg, #fff 58%, #fce3ef);
}
.class-overview-metrics > div:nth-child(3),
.tutor-schedule-metrics > div:nth-child(3) {
  border-color: #dcc5d0;
  background: linear-gradient(145deg, #fff 58%, #f5edf1);
}
.class-overview-metrics > div:nth-child(4),
.tutor-schedule-metrics > div:nth-child(4) {
  border-color: #ebb8d0;
  background: linear-gradient(145deg, #fdedf5, #fff);
}
.class-exception-preview > summary,
.tutor-schedule-section > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
}
.class-exception-preview > summary::-webkit-details-marker,
.tutor-schedule-section > summary::-webkit-details-marker {
  display: none;
}
.class-exception-preview > summary span,
.tutor-schedule-section > summary span {
  display: grid;
}
.class-exception-preview > summary small,
.tutor-schedule-section > summary small {
  color: #526d82;
}
.class-exception-preview > summary em,
.tutor-schedule-section > summary em {
  margin-left: auto;
  min-width: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff0c8;
  color: #8a6418;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}
.class-exception-preview .admin-class-list,
.tutor-schedule-section > .admin-class-list {
  padding: 0 20px 20px;
}
.tutor-overview-panel {
  overflow: hidden;
}
.result-count {
  color: #526d82;
  font-weight: 750;
}
.tutor-overview-head,
.tutor-overview-list > a {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(
      5,
      minmax(72px, 0.55fr)
    ) minmax(120px, 0.7fr);
  align-items: center;
  gap: 10px;
}
.tutor-overview-head {
  padding: 11px 18px;
  border-radius: 10px;
  background: #f7edf2;
  color: #526d82;
  font-size: 0.76rem;
  font-weight: 850;
}
.tutor-overview-list > a {
  padding: 14px 18px;
  border-bottom: 1px solid #efe1e7;
  color: #27374d;
  text-decoration: none;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}
.tutor-overview-list > a:hover {
  background: #fbf3f7;
  transform: translateX(2px);
}
.tutor-overview-name {
  display: grid;
}
.tutor-overview-name small {
  color: #526d82;
}
.tutor-overview-list b {
  text-align: center;
}
.tutor-overview-list b.has-exception {
  justify-self: center;
  min-width: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9b6810;
  background: #fff0c8;
}
.tutor-overview-list em {
  color: #8c1d40;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}
.simple-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
}
.simple-pagination a {
  color: #8c1d40;
  font-weight: 800;
  text-decoration: none;
}
.tutor-schedule-main {
  width: min(1380px, calc(100% - 40px));
}
.tutor-schedule-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0;
  padding: 24px 28px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(120deg, #27374d, #8c1d40);
}
.tutor-schedule-hero h1 {
  margin: 5px 0;
  font-size: 2rem;
}
.tutor-schedule-hero p {
  margin: 0;
  color: #f0d9b5;
}
.tutor-schedule-hero form {
  min-width: min(360px, 100%);
}
.tutor-schedule-hero label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}
.tutor-schedule-hero select {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
}
.tutor-pairing-strip > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tutor-pairing-strip > div:last-child > span {
  display: grid;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f7edf3;
}
.tutor-pairing-strip small {
  color: #526d82;
}
.tutor-schedule-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  margin: 0;
  padding: 18px 22px;
}
.tutor-schedule-section-heading > div {
  display: grid;
  gap: 2px;
}
.tutor-schedule-section-heading h2 {
  margin: 0;
  color: #27374d;
  font-size: 1.15rem;
}
.tutor-schedule-section-heading h2 small {
  color: #526d82;
  font-size: 0.72rem;
}
.tutor-schedule-section-heading > em {
  display: grid;
  place-items: center;
  margin-left: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #8c1d40;
  background: #f9dcea;
  font-style: normal;
  font-weight: 850;
}
.tutor-schedule-section > summary.tutor-schedule-section-heading {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
  transition: background 0.16s ease;
}
.tutor-schedule-section > summary.tutor-schedule-section-heading:hover {
  background: #fbf4f7;
}
.tutor-schedule-section
  > summary.tutor-schedule-section-heading::-webkit-details-marker {
  display: none;
}
.tutor-schedule-section > summary.tutor-schedule-section-heading::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #526d82;
  border-bottom: 2px solid #526d82;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.tutor-schedule-section[open] > summary.tutor-schedule-section-heading::after {
  transform: rotate(225deg);
}
.export-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.export-scope label {
  padding: 11px 14px;
  border: 1px solid #e5cbd5;
  border-radius: 10px;
}
.export-user-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-height: 390px;
  overflow: auto;
  margin-bottom: 18px;
  padding: 3px;
}
.export-user-grid label {
  display: flex;
  gap: 9px;
  align-items: start;
  padding: 11px;
  border-radius: 10px;
  background: #fbf5f7;
}
.export-user-grid span {
  display: grid;
}
.export-user-grid small {
  color: #526d82;
}
.data-export-form {
  display: grid;
  gap: 18px;
}
.export-config-card {
  overflow: hidden;
  margin: 0;
}
.export-program-card {
  border-color: #dcb9c7;
  background: linear-gradient(135deg, #fff 68%, #f7e9ef);
}
.export-audience-card {
  border-color: #e5c5d4;
  background: linear-gradient(135deg, #fff 68%, #faedf3);
}
.export-period-card {
  border-color: #e9bfd3;
  background: linear-gradient(135deg, #fff 68%, #fde9f3);
}
.export-fields-card {
  border-color: #e4c8c9;
  background: linear-gradient(135deg, #fff 68%, #faf0f0);
}
.export-format-card {
  border-color: #bcdbc9;
  background: linear-gradient(135deg, #fff 68%, #eaf7ef);
}
.export-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.export-card-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: #8c1d40;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(15, 76, 117, 0.18);
}
.export-audience-card .export-card-heading > span {
  background: #c39a5a;
}
.export-period-card .export-card-heading > span {
  background: #8c1d40;
}
.export-fields-card .export-card-heading > span {
  background: #526d82;
}
.export-format-card .export-card-heading > span {
  background: #2e8b57;
}
.export-card-heading h2 {
  margin: 0;
  color: #27374d;
}
.export-card-heading h2 small {
  color: #526d82;
  font-size: 0.75rem;
}
.export-card-heading p {
  margin: 3px 0 0;
  color: #526d82;
}
.export-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.export-format-choice-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.export-audience-choice-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.export-choice-row > label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 12px 15px;
  border: 1px solid #e2cad5;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}
.export-choice-row > label:has(input:checked) {
  border-color: #c39a5a;
  box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.12);
  background: #fdf2f7;
}
.export-choice-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: #8c1d40;
}
.export-choice-row span {
  display: grid;
}
.export-choice-row small {
  color: #526d82;
}
.export-program-select {
  padding: 15px;
  border: 1px solid #e9d4de;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
}
.export-program-select label {
  display: grid;
  gap: 7px;
  color: #526d82;
  font-size: 0.82rem;
  font-weight: 800;
}
.export-program-select select {
  min-height: 48px;
}
.export-user-picker {
  margin-top: 14px;
  border: 1px solid #e7d2db;
  border-radius: 13px;
  background: #fff;
}
.export-user-picker > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.export-user-picker > summary::-webkit-details-marker {
  display: none;
}
.export-user-picker > summary span {
  display: grid;
}
.export-user-picker > summary small {
  color: #526d82;
}
.export-user-picker > summary em {
  margin-left: auto;
  color: #8c1d40;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
}
.export-user-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid #eee0e6;
  background: #fcf7f9;
}
.export-user-tools > label {
  display: grid;
  gap: 6px;
  flex: 1;
  color: #526d82;
  font-size: 0.8rem;
  font-weight: 800;
}
.export-user-tools > div {
  display: flex;
  gap: 8px;
}
.export-user-picker .export-user-grid {
  margin: 0;
  padding: 14px 16px;
}
.export-user-grid label:has(input:checked) {
  outline: 2px solid #e69cbf;
  background: #fdeaf3;
}
.export-user-grid label[hidden] {
  display: none !important;
}
.export-period-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #e9d4de;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
}
.export-period-panel[data-export-period-panel="range"] {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
}
.export-period-panel[hidden] {
  display: none !important;
}
.export-period-panel label {
  display: grid;
  gap: 7px;
  color: #526d82;
  font-size: 0.82rem;
  font-weight: 800;
}
.export-period-panel input {
  min-height: 43px;
}
.export-field-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #ead5d8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}
.export-field-toolbar > strong {
  color: #526d82;
  font-size: 0.8rem;
}
.export-field-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.export-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.export-field-grid > label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid #e5d2d6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}
.export-field-grid > label:has(input:checked) {
  border-color: #aa7f91;
  background: #f7edf2;
  box-shadow: 0 0 0 2px rgba(82, 109, 130, 0.1);
}
.export-field-grid input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #8c1d40;
}
.export-field-grid span {
  display: grid;
  min-width: 0;
}
.export-field-grid small {
  color: #526d82;
}
@media (max-width: 760px) {
  .export-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .export-field-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .export-field-grid {
    grid-template-columns: 1fr;
  }
}
.export-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #27374d;
  color: #fff;
}
.export-submit-row > span {
  display: grid;
}
.export-submit-row > span strong {
  color: #f0d9b5;
}
.export-submit-row > span small {
  color: #dde6ed;
}
.export-submit-row .button {
  min-width: 220px;
}
.incomplete-class-note {
  margin: 0 20px 14px;
  padding: 11px 14px;
  border-left: 4px solid #9db2bf;
  border-radius: 0 10px 10px 0;
  color: #526d82;
  background: #f7f1f4;
  font-size: 0.87rem;
}
.message-page-main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 60px;
}
.message-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.conversation-list,
.conversation-panel {
  border: 1px solid #e5cbd5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(39, 55, 77, 0.08);
}
.conversation-list {
  padding: 20px;
}
.conversation-list h2 {
  margin: 5px 0 18px;
}
.conversation-list > a {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 11px;
  color: #27374d;
  text-decoration: none;
}
.conversation-list > a strong {
  overflow-wrap: anywhere;
}
.conversation-list > a:hover,
.conversation-list > a.is-active {
  background: #dde6ed;
}
.conversation-list small {
  color: #526d82;
}
.conversation-panel {
  overflow: hidden;
}
.conversation-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #ecdbe2;
  background: #fcf7f9;
}
.conversation-panel h1 {
  margin: 2px 0;
  font-size: 1.45rem;
}
.conversation-panel h1 .conversation-person-email {
  font-size: 0.68em;
}
.conversation-panel header small {
  color: #526d82;
}
.message-thread {
  min-height: 360px;
  max-height: 55vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px;
  background: #fcf8f9;
}
.message-bubble {
  align-self: flex-start;
  max-width: min(72%, 620px);
  padding: 12px 15px;
  border-radius: 5px 16px 16px 16px;
  background: #dde6ed;
  color: #27374d;
}
.message-bubble.is-mine {
  align-self: flex-end;
  border-radius: 16px 5px 16px 16px;
  background: #8c1d40;
  color: #fff;
}
.message-bubble p {
  margin: 0 0 5px;
}
.message-bubble small {
  opacity: 0.75;
}
.message-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid #ecdbe2;
}
.message-compose textarea {
  resize: vertical;
  min-height: 74px;
}
.read-only-banner {
  padding: 18px;
  text-align: center;
  background: #dde6ed;
  color: #526d82;
}
@media (max-width: 1000px) {
  .class-overview-filter,
  .candidate-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .class-overview-metrics,
  .tutor-schedule-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tutor-overview-head {
    display: none;
  }
  .tutor-overview-list > a {
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  }
  .tutor-overview-list > a > b:nth-of-type(1),
  .tutor-overview-list > a > b:nth-of-type(2) {
    display: none;
  }
  .tutor-schedule-hero {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .hours-download-form,
  .semester-form,
  .hours-summary,
  .message-layout,
  .class-overview-filter,
  .class-overview-metrics,
  .tutor-schedule-metrics,
  .export-choice-row,
  .export-period-panel[data-export-period-panel="range"],
  .candidate-filter-row {
    grid-template-columns: 1fr;
  }
  .candidate-filter-actions {
    flex-wrap: wrap;
  }
  .semester-setting-row {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .semester-setting-dates {
    justify-content: space-between;
  }
  .semester-setting-status {
    justify-self: start;
  }
  .semester-setting-row form,
  .semester-setting-row .button {
    width: 100%;
  }
  .tutor-overview-list > a {
    grid-template-columns: 1fr auto;
  }
  .tutor-overview-list > a > b {
    display: none;
  }
  .export-user-grid {
    grid-template-columns: 1fr;
  }
  .export-user-tools,
  .export-submit-row {
    align-items: stretch;
    flex-direction: column;
  }
  .export-user-tools > div {
    flex-wrap: wrap;
  }
  .export-submit-row .button {
    width: 100%;
    min-width: 0;
  }
  .admin-class-list a {
    grid-template-columns: 1fr;
  }
  .message-page-main,
  .tutor-schedule-main {
    width: min(100% - 24px, 1280px);
  }
  .conversation-list {
    display: none;
  }
  .message-compose {
    grid-template-columns: 1fr;
  }
  .message-bubble {
    max-width: 88%;
  }
}

/* Unified dashboard select controls */
.dashboard-workspace select {
  width: 100%;
  min-height: 43px;
  padding: 9px 38px 9px 11px;
  appearance: none;
  border: 1px solid #e7c8d2;
  border-radius: 9px;
  color: var(--navy);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #526d82 50%),
    linear-gradient(135deg, #526d82 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px;
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.dashboard-workspace input:not([type]),
.dashboard-workspace input[type="text"],
.dashboard-workspace input[type="search"],
.dashboard-workspace input[type="date"],
.dashboard-workspace input[type="email"],
.dashboard-workspace input[type="tel"],
.dashboard-workspace input[type="password"],
.dashboard-workspace input[type="number"],
.dashboard-workspace textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  appearance: none;
  border: 1px solid #e7c8d2;
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  outline: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}
.dashboard-workspace textarea {
  min-height: 84px;
  resize: vertical;
}
.dashboard-workspace select:hover {
  border-color: #9db2bf;
}
.dashboard-workspace input:not([type]):hover,
.dashboard-workspace input[type="text"]:hover,
.dashboard-workspace input[type="search"]:hover,
.dashboard-workspace input[type="date"]:hover,
.dashboard-workspace input[type="email"]:hover,
.dashboard-workspace input[type="tel"]:hover,
.dashboard-workspace input[type="password"]:hover,
.dashboard-workspace input[type="number"]:hover,
.dashboard-workspace textarea:hover {
  border-color: #9db2bf;
}
.dashboard-workspace select:focus,
.dashboard-workspace input:not([type]):focus,
.dashboard-workspace input[type="text"]:focus,
.dashboard-workspace input[type="search"]:focus,
.dashboard-workspace input[type="date"]:focus,
.dashboard-workspace input[type="email"]:focus,
.dashboard-workspace input[type="tel"]:focus,
.dashboard-workspace input[type="password"]:focus,
.dashboard-workspace input[type="number"]:focus,
.dashboard-workspace textarea:focus {
  border-color: #c39a5a;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.16);
}

@media (max-width: 620px) {
  .semester-add-disclosure > summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* Simplified tutoring hours workspace */
.hours-simple-panel,
.hours-download-zone {
  margin-bottom: 24px;
}
.hours-simple-heading {
  align-items: end;
  margin-bottom: 20px;
}
.hours-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.hours-overview-metrics > div,
.history-count-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 12px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #ead8df;
  border-radius: 15px;
  background: #fcf9fb;
}
.hours-overview-metrics > div.is-verified {
  border-color: #ebb8d0;
  background: linear-gradient(135deg, #fdedf5, #fff);
}
.hours-overview-metrics span,
.history-count-card span {
  grid-column: 1 / -1;
  color: #526d82;
  font-weight: 700;
}
.hours-overview-metrics strong,
.history-count-card strong {
  color: #8c1d40;
  font-size: 2.1rem;
  line-height: 1;
}
.hours-overview-metrics small,
.history-count-card small {
  color: #526d82;
}
.history-count-card {
  max-width: 360px;
  margin-bottom: 26px;
}
.semester-hours-list {
  display: grid;
  gap: 11px;
}
.semester-hours-card {
  overflow: hidden;
  border: 1px solid #e9d3dc;
  border-radius: 14px;
  background: #fff;
}
.semester-hours-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: #27374d;
}
.semester-hours-card > summary::-webkit-details-marker {
  display: none;
}
.semester-hours-card > summary > span:first-child {
  display: grid;
  gap: 4px;
}
.semester-hours-card > summary > span:first-child > strong {
  font-size: 1rem;
}
.semester-hours-card > summary > span:first-child > small {
  color: #526d82;
  font-size: 0.74rem;
}
.semester-hours-total {
  display: grid;
  min-width: 104px;
  text-align: right;
}
.semester-hours-total strong {
  color: #8c1d40;
  font-size: 1.35rem;
}
.semester-hours-total small {
  color: #526d82;
  font-size: 0.65rem;
}
.semester-hours-card > summary > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #dde6ed;
  color: #8c1d40;
  font-style: normal;
  transition: transform 0.18s ease;
}
.semester-hours-card > summary > i::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.semester-hours-card[open] > summary > i {
  transform: rotate(180deg);
}
.semester-hours-card[open] > summary {
  border-bottom: 1px solid #eddce3;
  background: #fcf8f9;
}
.semester-hours-content {
  padding: 14px;
}
.history-class-list {
  display: grid;
  gap: 10px;
}
.history-class-list .class-row {
  margin: 0;
}
.hours-download-heading {
  position: relative;
  align-items: center;
}
.info-popover-wrap {
  position: relative;
  margin-left: auto;
}
.info-popover-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #9db2bf;
  border-radius: 50%;
  color: #8c1d40;
  background: #f8edf2;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}
.info-popover-button:hover,
.info-popover-button[aria-expanded="true"] {
  border-color: #c39a5a;
  background: #f9dcea;
}
.info-popover {
  position: absolute;
  z-index: 20;
  top: 42px;
  right: 0;
  width: min(390px, calc(100vw - 56px));
  padding: 16px 17px;
  border: 1px solid #dbb9c7;
  border-radius: 13px;
  color: #27374d;
  background: #fff;
  box-shadow: 0 16px 38px rgba(39, 55, 77, 0.18);
}
.info-popover::before {
  position: absolute;
  top: -6px;
  right: 10px;
  width: 11px;
  height: 11px;
  border-top: 1px solid #dbb9c7;
  border-left: 1px solid #dbb9c7;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}
.info-popover strong {
  display: block;
  margin-bottom: 8px;
}
.info-popover p {
  margin: 0 0 8px;
  line-height: 1.5;
}
.info-popover small {
  color: #526d82;
  line-height: 1.45;
}
.download-zone-simple {
  display: block;
}
.download-zone-body .hours-download-form {
  padding: 0;
}
.hours-download-form {
  align-items: end;
}
.certificate-download-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.certificate-option-card {
  min-width: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid #e9d4dd;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff 66%, #f8edf2);
}
.certificate-version-card {
  border-color: #eac5d6;
  background: linear-gradient(145deg, #fff 66%, #fde9f3);
}
.certificate-option-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.certificate-option-heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #8c1d40;
  font-weight: 900;
}
.certificate-version-card .certificate-option-heading > span {
  background: #c39a5a;
}
.certificate-option-heading > div {
  display: grid;
}
.certificate-option-heading small {
  color: #526d82;
}
.certificate-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.certificate-period-grid label {
  display: grid;
  gap: 6px;
  color: #526d82;
  font-size: 0.78rem;
  font-weight: 800;
}
.certificate-version-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.certificate-version-options label,
.certificate-detail-fields label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #e4cbd5;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}
.certificate-version-options label:has(input:checked),
.certificate-detail-fields label:has(input:checked) {
  border-color: #c39a5a;
  background: #feedf6;
  box-shadow: 0 0 0 2px rgba(50, 130, 184, 0.1);
}
.certificate-version-options input,
.certificate-detail-fields input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #8c1d40;
}
.certificate-summary-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #e9d4de;
  border-radius: 12px;
  color: #27374d;
  background: rgba(255, 255, 255, 0.9);
}
.certificate-summary-note[hidden] {
  display: none !important;
}
.certificate-summary-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #c39a5a;
  font-size: 0.78rem;
  font-weight: 900;
}
.certificate-summary-note > div {
  display: grid;
  gap: 3px;
  line-height: 1.35;
}
.certificate-summary-note strong {
  font-size: 0.78rem;
}
.certificate-summary-note small {
  color: #526d82;
  font-size: 0.66rem;
}
.certificate-detail-fields {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #e9d4de;
  border-radius: 12px;
  background: #fff;
}
.certificate-detail-fields[hidden] {
  display: none !important;
}
.certificate-detail-fields > strong {
  display: block;
  color: #27374d;
}
.certificate-detail-fields > strong small {
  color: #526d82;
}
.certificate-detail-fields > p {
  margin: 4px 0 11px;
  color: #526d82;
  font-size: 0.72rem;
}
.certificate-detail-fields > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.certificate-detail-fields label {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.76rem;
}
.certificate-field-label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
}
.certificate-field-label strong {
  color: #27374d;
  font-size: 0.82rem;
}
.certificate-field-label small {
  color: #526d82;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
}
.certificate-submit-row {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.certificate-submit-row .schedule-submit {
  min-height: 52px;
  width: min(100%, 208px);
}
.download-hours-button {
  display: grid;
  gap: 2px;
  text-align: center;
}
.download-hours-button small {
  font-size: 0.78rem;
  opacity: 0.78;
}
@media (max-width: 820px) {
  .hours-simple-heading {
    align-items: stretch;
  }
  .hours-overview-metrics {
    grid-template-columns: 1fr;
  }
  .semester-hours-card > summary {
    grid-template-columns: minmax(0, 1fr) auto 28px;
    gap: 10px;
    padding: 13px;
  }
  .semester-hours-total {
    min-width: 76px;
  }
  .certificate-download-form,
  .certificate-period-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .certificate-version-options,
  .certificate-detail-fields > div {
    grid-template-columns: 1fr;
  }
}

/* Keep required marks and password recovery actions aligned with field labels. */
.form-group > label,
.field-label-row > label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
}
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}
.field-label-row > label {
  min-width: 0;
  margin: 0;
}
.field-label-row .password-help-row {
  flex: 0 0 auto;
  margin: 0;
  color: var(--blue);
  text-align: right;
  text-decoration: none;
}
.field-label-row .password-help-row:hover {
  text-decoration: underline;
}
.field-label-row .password-help-row small {
  font-size: 0.86em;
}

@media (max-width: 380px) {
  .field-label-row {
    gap: 10px;
  }
  .field-label-row .password-help-row {
    font-size: 0.74rem;
  }
}
