:root {
  color-scheme: light;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bg-gradient-start: #f3f6ff;
  --bg-gradient-mid: #e4ecff;
  --bg-gradient-end: #f9fbff;
  --bg-accent-1: rgba(99, 102, 241, 0.18);
  --bg-accent-2: rgba(14, 165, 233, 0.14);
  --bg-accent-3: rgba(236, 72, 153, 0.12);
  --surface-card: rgba(255, 255, 255, 0.94);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-solid: #ffffff;
  --surface-soft: rgba(243, 246, 255, 0.7);
  --surface-hover: rgba(99, 102, 241, 0.1);
  --border-glass: rgba(148, 163, 184, 0.25);
  --border-strong: rgba(71, 85, 105, 0.45);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.18);
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.18);
  --text-primary: #0b1224;
  --text-strong: #0f172a;
  --text-stronger: #0b1120;
  --text-muted: #5b6b86;
  --text-subtle: #94a3b8;
  --text-secondary: var(--text-muted);
  --material-color: var(--text-primary);
  --warning: #f59e0b;
  --info: #38bdf8;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.16);
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.16);
  --surface-raised: rgba(255, 255, 255, 0.96);
  --shadow-strong: 0 32px 70px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 18px 44px rgba(30, 41, 59, 0.18);
  --bg-grid-color: rgba(148, 163, 184, 0.1);
  --glass-blur: blur(22px);
  --focus-outline: rgba(79, 70, 229, 0.4);
  --card-ink: rgba(15, 23, 42, 0.62);
  --chip-surface: rgba(255, 255, 255, 0.86);
  --chip-border: rgba(148, 163, 184, 0.35);
}
.deep-link-highlight {
  position: relative;
  z-index: 0;
  outline: 3px solid rgba(37, 99, 235, 0.65);
  outline-offset: 4px;
  border-radius: 18px;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25);
  animation: deep-link-flash 1.6s ease-out;
}

@keyframes deep-link-flash {
  0% {
    outline-color: rgba(37, 99, 235, 0.85);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  }
  55% {
    outline-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 18px rgba(37, 99, 235, 0);
  }
  100% {
    outline-color: rgba(37, 99, 235, 0);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body, 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif);
  background:
    radial-gradient(circle at 12% 16%, var(--bg-accent-1), transparent 58%),
    radial-gradient(circle at 80% 12%, var(--bg-accent-2), transparent 55%),
    radial-gradient(circle at 78% 82%, var(--bg-accent-3), transparent 68%),
    linear-gradient(180deg, var(--bg-gradient-start), var(--bg-gradient-mid) 42%, var(--bg-gradient-end));
  color: var(--text-primary);
}

body::before {
  content: '';
  position: fixed;
  inset: -120px;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 84%, var(--bg-accent-1), transparent 60%),
    radial-gradient(circle at 90% 68%, var(--bg-accent-2), transparent 52%),
    radial-gradient(circle at 50% 0%, var(--bg-accent-3), transparent 55%);
  filter: blur(0);
  opacity: 0.7;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bg-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid-color) 1px, transparent 1px);
  background-size: 160px 160px;
  background-position: center;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  z-index: -2;
}
body.login-screen {
  background:
    linear-gradient(180deg, rgba(10, 18, 38, 0.68), rgba(15, 23, 42, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.4), transparent 55%),
    url('images/hospital-login.svg') center calc(50% - 80px) / cover no-repeat fixed;
  color: #e2e8f0;
  background-position:
    center,
    center calc(50% - 120px);
}

body.login-screen::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(79, 70, 229, 0.45));
  opacity: 1;
  inset: 0;
  mix-blend-mode: normal;
}
body.login-screen::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url('images/hospital-login-photo.png') center / cover no-repeat fixed;
  opacity: 0;
  animation: login-background-cycle 18s ease-in-out infinite;
  transition: opacity 0.8s ease-in-out;
  z-index: -2;
  mix-blend-mode: normal;
}

@keyframes login-background-cycle {
  0%,
  42% {
    opacity: 0;
  }
  50%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes preview-illustration-cycle {
  0%,
  36% {
    opacity: 1;
    transform: scale(1);
  }
  44%,
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}
@keyframes preview-photo-cycle {
  0%,
  30% {
    opacity: 0;
    transform: scale(1.04);
  }
  40%,
  86% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}
@keyframes preview-glow-cycle {
  0%,
  100% {
    opacity: 0.4;
    transform: rotate(0deg) scale(1);
  }
  45% {
    opacity: 0.85;
    transform: rotate(18deg) scale(1.12);
  }
}
@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes motion-card-pulse {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 22px 48px rgba(14, 165, 233, 0.25);
  }
}
@keyframes motion-icon-orbit {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(12deg) scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.login-screen::after,
  body.login-screen #login-view .preview-layer,
  body.login-screen #login-view .preview-glow,
  body.login-screen #login-view .motion-track,
  body.login-screen #login-view .motion-card,
  body.login-screen #login-view .card-icon {
    animation: none !important;
    transform: none !important;
  }
  body.login-screen #login-view .preview-layer.photo {
    opacity: 1;
  }
}
body.modal-open {
  overflow: hidden;
}

body.checklist-only.modal-open {
  overflow: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

#app {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.75rem 4.5rem;
}

.site-footer {
  margin: 0 auto 2.5rem;
  padding: 2.5rem 1.75rem 0;
  max-width: min(1200px, 100%);
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.site-footer p {
  margin: 0.25rem 0;
}

body.login-screen .site-footer {
  color: rgba(226, 232, 240, 0.75);
  border-color: rgba(148, 163, 184, 0.35);
}
body.login-screen #app {
  position: relative;
  z-index: 0;
}

body.login-screen main {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem 4rem;
}

body.login-screen .app-header {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 1.5rem;
  padding: 1.75rem 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 25px 65px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
}

body.login-screen .app-header h1,
body.login-screen .subtitle {
  color: #f8fafc;
}

body.login-screen .subtitle {
  opacity: 0.85;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.app-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.brand-mark {
  color: var(--text-stronger);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.16);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.app-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  font-family: var(--font-heading, 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif);
  font-weight: 700;
  color: var(--text-primary);
}

.subtitle {
  margin: 0.5rem 0 0;
  color: var(--text-subtle);
  font-size: 1rem;
}

.user-summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.user-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), #4338ca);
  color: #000000;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
  flex-shrink: 0;
}

.user-summary strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
}

.user-summary div span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.user-summary .user-initials {
  display: inline-flex;
  color: #000000;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), #22d3ee);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(79, 70, 229, 0.32);
}

button:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.6);
  outline-offset: 2px;
}

button.secondary {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-primary);
  box-shadow: none;
}

button.secondary:hover {
  background: rgba(148, 163, 184, 0.18);
}

button.action-emphasis {
  font-size: 1rem;
  padding: 0.8rem 1.9rem;
  box-shadow: 0 20px 44px rgba(79, 70, 229, 0.35);
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-primary);
  box-shadow: none;
  padding-inline: 1rem;
}

button.ghost:hover {
  background: var(--surface-soft);
}

button.danger {
  background: linear-gradient(140deg, #ef4444, #f97316);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 18px 32px rgba(239, 68, 68, 0.32);
}

button.danger:hover {
  background: linear-gradient(140deg, #dc2626, #fb923c);
}

button.success {
  background: linear-gradient(140deg, #22c55e, #16a34a);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.28);
}

button.success:hover {
  background: linear-gradient(140deg, #16a34a, #15803d);
}

button.warning {
  background: transparent;
  border: 1px solid rgba(251, 146, 60, 0.5);
  color: #c2410c;
  box-shadow: none;
}

button.warning:hover {
  background: rgba(251, 146, 60, 0.12);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

.icon-button {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  padding: 0;
  font-size: 1.2rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: none;
}

.icon-button:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.45);
}

.card {
  background: var(--surface-card);
  color: var(--text-primary);
  border-radius: 1.8rem;
  padding: 1.85rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  margin-bottom: 2.5rem;
}
body.login-screen #login-view {
  width: min(1040px, 100%);
  margin: 0;
  padding: 2.5rem;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 44px 110px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.2fr);
  gap: 2.5rem;
  align-items: stretch;
}

body.login-screen #login-view .login-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.login-screen #login-view .login-intro {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.login-screen #login-view .login-intro p {
  margin: 0;
}

body.login-screen #login-view .login-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

body.login-screen #login-view .login-highlight-card {
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.login-screen #login-view .login-highlight-card span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body.login-screen #login-view .login-highlight-card strong {
  font-size: 1rem;
  color: var(--text-stronger);
}

body.login-screen #login-view h2 {
  margin: 0 0 1.5rem;
  font-size: 1.9rem;
  text-align: left;
  letter-spacing: -0.01em;
}

body.login-screen #login-view form {
  display: grid;
  gap: 1.15rem;
}

body.login-screen #login-view button[type='submit'] {
  width: 100%;
  margin-top: 0.25rem;
}

body.login-screen #login-view .error {
  text-align: center;
}

body.login-screen #login-view .login-showcase {
  margin-top: 0;
  padding: 1.9rem;
  border-radius: 1.6rem;
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.18), rgba(14, 165, 233, 0.2));
  border: 1px solid rgba(79, 70, 229, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  overflow: hidden;
}

body.login-screen #login-view .login-showcase-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.login-screen #login-view .login-micro-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

body.login-screen #login-view .micro-stat {
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.3);
}

body.login-screen #login-view .micro-stat span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

body.login-screen #login-view .micro-stat strong {
  font-size: 1.1rem;
  display: block;
}

body.login-screen #login-view .login-showcase::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  transform: rotate(12deg);
}

body.login-screen #login-view .login-showcase > * {
  position: relative;
  z-index: 1;
}

body.login-screen #login-view .login-showcase h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

body.login-screen #login-view .login-showcase p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

body.login-screen #login-view .login-preview {
  display: grid;
  gap: 0.75rem;
}

body.login-screen #login-view .preview-stage {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.32);
  background: radial-gradient(circle at 12% 20%, rgba(59, 130, 246, 0.28), transparent 65%),
    radial-gradient(circle at 88% 75%, rgba(14, 165, 233, 0.24), transparent 60%),
    linear-gradient(140deg, rgba(226, 232, 240, 0.8), rgba(191, 219, 254, 0.35));
}

body.login-screen #login-view .preview-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform-origin: center;
  animation-duration: 22s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

body.login-screen #login-view .preview-layer.illustration {
  background-image: url('images/hospital-login.svg');
  animation-name: preview-illustration-cycle;
}

body.login-screen #login-view .preview-layer.photo {
  background-image: url('images/hospital-login-photo.png');
  animation-name: preview-photo-cycle;
}

body.login-screen #login-view .preview-glow {
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  mix-blend-mode: screen;
  animation: preview-glow-cycle 18s ease-in-out infinite;
}

body.login-screen #login-view .motion-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.08);
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

body.login-screen #login-view .motion-track {
  display: flex;
  gap: 1.1rem;
  padding-inline: 1.2rem;
  width: max-content;
  animation: marquee-slide 36s linear infinite;
}

body.login-screen #login-view .motion-card {
  flex: 0 0 240px;
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(37, 99, 235, 0.65));
  background-size: 220% 220%;
  color: #f8fafc;
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.32);
  animation: motion-card-pulse 7s ease-in-out infinite;
}

body.login-screen #login-view .motion-card:nth-of-type(2n) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(56, 189, 248, 0.65));
}

body.login-screen #login-view .motion-card:nth-of-type(3n) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.82), rgba(129, 140, 248, 0.68));
}

body.login-screen #login-view .motion-card:nth-of-type(5n) {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(244, 114, 182, 0.62));
}

body.login-screen #login-view .motion-card header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

body.login-screen #login-view .motion-card h4 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

body.login-screen #login-view .motion-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.92);
}

body.login-screen #login-view .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
  font-size: 1.1rem;
  animation: motion-icon-orbit 4.8s ease-in-out infinite;
}

body.login-screen #login-view .motion-card:nth-of-type(2n) .card-icon {
  background: rgba(15, 23, 42, 0.24);
}

@media (max-width: 960px) {
  body.login-screen #login-view {
    grid-template-columns: 1fr;
    padding: 2rem 1.75rem;
    gap: 1.85rem;
  }
  body.login-screen #login-view .login-showcase {
    order: 2;
  }
}

@media (max-width: 640px) {
  body.login-screen #login-view {
    padding: 1.75rem 1.4rem;
  }
  body.login-screen #login-view .motion-card {
    flex-basis: 200px;
  }
}

.workflow-card .workflow-options {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.workflow-card .workflow-option {
  background: var(--surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1.25rem;
  padding: 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 1.1rem;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font: inherit;
  color: inherit;
}

.workflow-card .workflow-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35), 0 8px 20px rgba(15, 23, 42, 0.18);
}

.workflow-card .workflow-option:hover,
.workflow-card .workflow-option:focus-visible,
.workflow-card .workflow-option.active {
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.workflow-card .workflow-option.active {
  background: rgba(99, 102, 241, 0.08);
}

.workflow-card .workflow-option h4 {
  margin: 0;
  font-size: 1.1rem;
}

.workflow-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workflow-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.16), rgba(139, 92, 246, 0.24));
  font-size: 1.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.workflow-icon.accent {
  background: linear-gradient(140deg, rgba(14, 165, 233, 0.2), rgba(59, 130, 246, 0.24));
}

.workflow-card .workflow-option ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.5rem;
}

.workflow-card .workflow-action {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.workflow-tag {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-tag.accent {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
}

.workflow-highlights {
  margin-top: 0.4rem;
}

.workflow-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1.3rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.12)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero-copy h4 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
}

.hero-points span {
  display: inline-flex;
  width: 1.4rem;
  align-items: center;
  justify-content: center;
}

.workflow-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
}

.workflow-stats div {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.workflow-stats dt {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}

.workflow-stats dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.workflow-stats dd span {
  font-size: 1.2rem;
}

.workspace-hero-card {
  background: transparent;
}

.workspace-hero {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 1.5rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.12)),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.workspace-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workspace-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.workspace-hero-actions .pill {
  margin-right: 0.1rem;
}

.workspace-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.workspace-hero-stats div {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.workspace-hero-stats dt {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.workspace-hero-stats dd {
  margin: 0;
}

.workspace-stat-value {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.workspace-stat-hint {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .workspace-hero {
    padding: 1.1rem;
  }

  .workspace-hero-actions {
    gap: 0.4rem;
  }
}

.group-card header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.group-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.group-hero {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 92, 246, 0.16)),
    rgba(255, 255, 255, 0.75);
}

.group-hero .hero-eyebrow {
  color: var(--primary);
}

.group-stats div {
  background: rgba(255, 255, 255, 0.78);
}

.group-form {
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: 1.2rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.group-form .form-grid {
  gap: 1.25rem;
}

.group-form label {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}


.tab-panel[data-content='groups'] .group-form .form-grid {
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
}


.group-competency-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.65rem;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 0.85rem;
  background: rgba(248, 250, 252, 0.78);
}

.group-competency-chip,
.group-included-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-surface);
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.group-included-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.group-included-chip {
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
}

.group-included-chip--more {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.group-name-cell {
  display: grid;
  gap: 0.18rem;
}

.group-name-cell strong,
.group-detail-panel strong {
  color: var(--text-stronger);
  font-weight: 800;
}

.group-row-actions {
  position: relative;
  justify-content: flex-end;
}

.group-more-menu {
  position: relative;
}

.group-more-button::after {
  content: '⌄';
  margin-left: 0.35rem;
  font-size: 0.72rem;
}

.group-more-menu__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  display: none;
}

.group-more-menu.is-open .group-more-menu__list {
  display: grid;
}

.group-more-menu__list button {
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #991b1b;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-weight: 800;
  box-shadow: none;
}

.group-more-menu__list button:hover,
.group-more-menu__list button:focus-visible {
  background: rgba(254, 226, 226, 0.8);
}

.group-expand-button {
  min-width: 3rem;
}

.group-detail-row > td {
  padding: 0 1rem 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.74), rgba(255, 255, 255, 0.96));
}

.group-detail-panel {
  margin: 0.25rem 0 0.35rem;
  padding: 1rem 1.05rem 0.25rem;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-left: 3px solid rgba(99, 102, 241, 0.65);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.group-detail-panel__header,
.group-detail-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.group-view-all-button,
.group-show-all-button {
  border-radius: 999px;
  white-space: nowrap;
}

.group-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: 0.8rem;
}

.group-detail-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.group-detail-list li:nth-child(4n + 1),
.group-detail-list li:nth-child(4n + 2) {
  background: rgba(248, 250, 252, 0.94);
}

.group-detail-list__number {
  color: #475569;
  font-weight: 800;
}

.group-detail-panel__footer {
  justify-content: center;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.group-competency-chips__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tab-panel[data-content='groups'] .group-card > header {
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .tab-panel[data-content='groups'] .group-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.group-table-card header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.group-table-card .table-container {
  border-radius: 1.2rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.group-table-card #groups-table {
  overflow: visible;
}

.proof-requirements {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.requirements-fieldset {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.requirement-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.requirement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.requirement-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.requirement-card-body {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 255, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.requirement-card-body::after {
  content: "✓";
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(99, 102, 241, 0.9));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.25);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.requirement-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.materials-card .requirement-icon {
  background: rgba(14, 165, 233, 0.16);
}

.requirement-card-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.requirement-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.requirement-card input:focus-visible + .requirement-card-body {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.requirement-card input:checked + .requirement-card-body {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 14px 25px rgba(15, 23, 42, 0.16);
}

.requirement-card input:checked + .requirement-card-body::after {
  opacity: 1;
  transform: scale(1);
}

.requirement-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0 0 calc(2.5rem + 1rem);
  align-items: center;
  min-height: 2.2rem;
}

.requirement-pill {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(238, 242, 255, 0.95);
  color: #4338ca;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12);
  text-transform: uppercase;
}

.requirement-pill::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #818cf8;
}

.requirement-pill--prompt {
  display: inline-flex;
}

.requirement-card input:checked ~ .requirement-status .requirement-pill--prompt {
  display: none;
}

.requirement-card input:checked ~ .requirement-status .requirement-pill--selected {
  display: inline-flex;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(14, 165, 233, 0.88));
  color: #fff;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}

.requirement-pill--selected::before {
  content: "✓";
  width: auto;
  height: auto;
  font-size: 0.75rem;
  line-height: 1;
  background: none;
  color: currentColor;
}

.requirement-hint {
  font-size: 0.85rem;
  color: var(--text-subtle);
  padding-inline: 0.4rem;
}

.requirement-callout {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.requirement-callout strong {
  margin-right: 0.4rem;
}

.card h2,
.card h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.card header h3 {
  margin-bottom: 0.4rem;
}

.muted {
  color: var(--text-muted);
}
.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.segmented-control .segment {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segment-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.segment-badge {
  display: inline-flex;
  min-width: 1.75rem;
  justify-content: center;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.segment-badge.segment-badge--alert {
  background: #fee2e2;
  color: #b91c1c;
}

.segmented-control .segment:hover,
.segmented-control .segment:focus-visible {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-primary);
  outline: none;
}

.segmented-control .segment.active {
  background: linear-gradient(140deg, var(--primary), #8b5cf6);
  color: #fff;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.26);
}

.my-competency-notifications {
  margin-bottom: 1.5rem;
}

.icu-station-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icu-station-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.icu-station-header > button {
  align-self: flex-start;
}

@media (min-width: 720px) {
  .icu-station-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .icu-station-header > button {
    align-self: center;
  }
}

.icu-station-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.icu-station-summary p {
  margin: 0;
}

@media (min-width: 600px) {
  .icu-station-summary {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.notifications-header {
  margin-bottom: 1rem;
}

.notifications-header h3 {
  margin: 0 0 0.25rem;
}

.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notifications-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.my-competency-notifications.has-items {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.18);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0.92));
}

.my-competency-notifications.has-items h3 {
  color: var(--text-primary);
}

.my-competency-notifications.has-items .notifications-item {
  border-color: rgba(37, 99, 235, 0.2);
  background: #fff;
}

.notifications-item .title {
  font-weight: 600;
  color: var(--text-primary);
}

.notifications-item .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notification-timeline {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.notification-timeline li {
  position: relative;
  padding-left: 0.85rem;
}

.notification-timeline li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.65;
}

.notification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.notification-actions .ghost,
.notification-actions .secondary {
  font-size: 0.85rem;
  padding-inline: 0.9rem;
}


.preceptor-controls,
.educator-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.preceptor-controls {
  align-items: stretch;
}
.educator-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tab-panel[data-content='educator'] .educator-hero .hero-points {
  display: none;
}

.educator-competency-toolbar {
  align-items: stretch;
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}

.educator-competency-toolbar .educator-control {
  flex: 1 1 190px;
}

.educator-competency-toolbar .educator-control:has(input[type='search']) {
  flex-basis: 240px;
}

.columns.educator-columns {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-top: 1.5rem;
}

.columns.educator-columns .educator-staff-card {
  min-height: 100%;
}

.educator-audit-card,
.educator-staff-card {
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.05), rgba(20, 184, 166, 0.05)),
    var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-strong);
}

.educator-audit-card header,
.educator-staff-card header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 0.75rem;
}

.educator-staff-card header {
  align-items: flex-start;
  gap: 1rem;
}

.educator-audit-card .status-count {
  min-width: 2.35rem;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 800;
}

.educator-audit-list {
  margin-top: 0.85rem;
}

.educator-audit-list .status-list-item {
  border-left: 4px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.97), rgba(240, 253, 250, 0.58));
}

.educator-audit-empty {
  margin: 0.85rem 0 0;
}

.educator-competency-sections {
  margin-top: 1.5rem;
}

.educator-competency-sections .my-competency-section--action {
  border-color: rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.06)),
    var(--surface-card);
}

.educator-competency-sections .status-list-item {
  border-left: 4px solid rgba(37, 99, 235, 0.35);
}

.educator-status-legend-panel {
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .columns.educator-columns {
    grid-template-columns: 1fr;
  }
}


.educator-controls label {
  font-weight: 600;
  color: var(--text-subtle);
}

.educator-controls select {
  min-width: 200px;
  padding: 0.5rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}
.educator-controls input[type='search'] {
  min-width: 220px;
  padding: 0.5rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.educator-controls input[type='search']::placeholder {
  color: var(--text-muted);
}
.filter-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: -0.25rem 0 1rem;
}

.filter-summary__badge {
  font-size: 0.92rem;
  line-height: 1.3;
}

.filter-summary__clear {
  cursor: pointer;
}

.filter-summary__clear:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}
.educator-controls select:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}
.educator-controls input[type='search']:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}
.preceptor-assignment-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.preceptor-assignment-groups .status-card {
  height: 100%;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 1.1rem;
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.tab {
  border-radius: 999px;
  padding: 0.42rem 1rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.15;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.tab[hidden],
.tab.is-hidden {
  display: none !important;
}

.tab:hover {
  border-color: transparent;
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.08);
}

.tab.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(140deg, var(--primary), #8b5cf6);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28), 0 0 0 1px rgba(79, 70, 229, 0.18);
}

.tab-panel {
  animation: fade 0.35s ease;
}

.tab-panel[hidden],
.tab-panel.is-hidden {
  display: none !important;
}
body.template-focus-mode .tab-panel[data-content="competencies"] > .card:not(#competency-template-card) {
  display: none !important;
}

body.template-focus-mode #competency-template-card {
  width: min(1180px, 100%);
  max-width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.22);
  animation: template-focus-enter 0.3s ease-out;
}

body.template-focus-mode #competency-template-card .wizard-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.92));
}

body.template-focus-mode #competency-template-card .wizard-step.active {
  border-color: rgba(37, 99, 235, 0.28);
}

@keyframes template-focus-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.personal-file-shell {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.4rem, 2vw + 1rem, 2.4rem);
  border-radius: 1.8rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.55)),
    var(--surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12);
}

.personal-file-content {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 1100px) {
  .personal-file-content {
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    align-items: start;
  }
}

.personal-file-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.personal-file-hero {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.9rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(120% 120% at 85% 15%, rgba(59, 130, 246, 0.16), transparent 60%),
    var(--surface-card);
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 28px 48px rgba(37, 99, 235, 0.15);
}

.personal-file-hero-header {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (min-width: 880px) {
  .personal-file-hero-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.personal-file-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.personal-file-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.24);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.personal-file-chip:hover,
.personal-file-chip:focus-visible {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.personal-file-hero-body {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .personal-file-hero-body {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
    align-items: stretch;
  }
}


.personal-file-hero-filters {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
  padding: 1.35rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 32px -24px rgba(15, 23, 42, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.personal-file-hero-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text-stronger);
}

.personal-file-hero-filters select,
.personal-file-hero-filters input[type='date'],
.personal-file-hero-filters input[type='text'] {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  font-weight: 500;
  box-shadow: 0 18px 35px -20px rgba(15, 23, 42, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.personal-file-hero-filters select:focus,
.personal-file-hero-filters input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 18px 35px -20px rgba(15, 23, 42, 0.45), 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.personal-file-toolbar-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.personal-file-toolbar-highlights li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: linear-gradient(140deg, rgba(240, 249, 255, 0.92), rgba(219, 234, 254, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 16px 26px rgba(148, 163, 184, 0.18);
}

.personal-file-highlight-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.personal-file-toolbar-highlights strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.personal-file-staff-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: 1.3rem;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.personal-file-staff-card header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.personal-file-staff-card dl {
  display: grid;
  gap: 0.6rem 0.8rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.personal-file-staff-card dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.personal-file-staff-card dd {
  margin: 0;
  font-weight: 600;
}

.personal-file-progress-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.75rem;
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.14)), var(--surface-card);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.16);
  border-radius: 1.4rem;
}

.personal-file-progress-card header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.personal-file-main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.personal-file-intro {
  display: grid;
  gap: 1.75rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(110% 140% at 0% 0%, rgba(59, 130, 246, 0.24) 0%, rgba(59, 130, 246, 0) 60%),
    radial-gradient(120% 160% at 100% 0%, rgba(14, 165, 233, 0.26) 0%, rgba(14, 165, 233, 0) 55%),
    rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.personal-file-intro-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.08)),
    rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.personal-file-intro-hero header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.personal-file-intro-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.personal-file-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.personal-file-cta:hover,
.personal-file-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
  background: rgba(255, 255, 255, 0.75);
  outline: none;
}

.personal-file-cta.primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

.personal-file-cta.primary:hover,
.personal-file-cta.primary:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.45);
}

.personal-file-intro-highlights {
  display: grid;
  gap: 1rem;
}

.personal-file-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.personal-file-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  font-size: 1.35rem;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.personal-file-highlight h4 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.personal-file-highlight p {
  margin: 0;
}

@media (min-width: 720px) {
  .personal-file-intro {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .personal-file-intro-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .personal-file-intro-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.personal-file-sections-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .personal-file-sections-layout {
    gap: 2rem;
  }
}

.personal-file-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.personal-file-tabs {
  margin: 0 -1.1rem;
  padding: 0 1.1rem 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.personal-file-tabs::-webkit-scrollbar {
  height: 0.5rem;
}

.personal-file-tabs::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.personal-file-tabs::-webkit-scrollbar-track {
  background: transparent;
}
@media (min-width: 860px) {
  .personal-file-intro-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (min-width: 1180px) {
  .personal-file-toolbar-highlights li {
    grid-template-columns: minmax(0, 1fr);
  }

  .personal-file-toolbar-highlights li > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
}


.personal-file-sections-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.personal-file-sections-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.personal-file-sections-header p {
  margin: 0;
  color: var(--text-muted);
}

.personal-file-detail {
  padding: 0;
  border-radius: 1.5rem;
  overflow: hidden;
}

.personal-file-detail-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.personal-file-detail-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.personal-file-pane[hidden] {
  display: none !important;
}

.personal-file-editor,
.personal-file-reflective,
.personal-file-self {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.personal-file-reflective-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.personal-file-reflective-layout > .personal-file-reflective-column.card {
  margin-bottom: 0;
  padding: 1.5rem;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .personal-file-reflective-layout > .personal-file-reflective-column.card {
    padding: 1.75rem;
  }
}

@media (min-width: 960px) {
  .personal-file-reflective-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.personal-file-reflective-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.personal-file-reflective-column__header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.personal-file-reflective-column__header h4 {
  margin: 0;
  color: var(--text-stronger);
}

.personal-file-reflective-column__header .muted {
  max-width: 48ch;
}

.personal-file-reflective-lists {
  display: grid;
  gap: 1.25rem;
}

.personal-file-reflective-list-group {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.personal-file-reflective-list-group__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.personal-file-reflective-list-group__header h5 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-stronger);
}

.personal-file-reflective-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.personal-file-reflective-list__item {
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.75);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.personal-file-reflective-list__item--interactive {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.personal-file-reflective-list__item--interactive:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.personal-file-reflective-list__item--interactive:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 3px;
}

.personal-file-reflective-list__item--interactive.is-active {
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.personal-file-reflective-list__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.personal-file-reflective-list__title {
  font-weight: 600;
  color: var(--text-stronger);
}

.personal-file-reflective-list__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.personal-file-reflective-list__meta strong {
  color: var(--text-stronger);
  font-weight: 600;
}

.personal-file-reflective-list__meta time {
  font-weight: 600;
  color: var(--text-stronger);
}

.personal-file-reflective-empty {
  margin: 0;
  font-size: 0.92rem;
}

.personal-file-reflective-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-stronger);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.personal-file-reflective-view-action {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.link-button {
  appearance: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

.link-button:focus {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

.personal-file-reflective-response {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.65);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.personal-file-reflective-response-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.personal-file-reflective-response-field textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.personal-file-reflective-response-field textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.personal-file-reflective-summary {
  display: grid;
  gap: 0.75rem 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 0;
}

.personal-file-reflective-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.personal-file-reflective-summary dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.personal-file-reflective-summary dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-stronger);
}

.personal-file-reflective-viewer {
  border-radius: 1.15rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.personal-file-reflective-viewer__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .personal-file-reflective-viewer__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.personal-file-reflective-viewer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: var(--text-stronger);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.personal-file-reflective-viewer__header h4 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-stronger);
}

.personal-file-reflective-viewer__meta {
  margin: 0;
  max-width: 48ch;
}

.personal-file-reflective-viewer__body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.personal-file-reflective-viewer__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1.2rem;
  margin: 0;
}

.personal-file-reflective-viewer__details div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.personal-file-reflective-viewer__details dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.personal-file-reflective-viewer__details dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-stronger);
}

.personal-file-reflective-viewer__group {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.personal-file-reflective-viewer__group h5 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-stronger);
}

.personal-file-reflective-viewer__response {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.personal-file-reflective-viewer__response p {
  margin: 0;
}

.personal-file-reflective-viewer__response p + p {
  margin-top: 0.6rem;
}

.personal-file-reflective-viewer__placeholder,
.personal-file-reflective-viewer__response .personal-file-reflective-viewer__placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.personal-file-reflective-viewer__empty {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  padding: 0.9rem 1rem;
}

.personal-file-reflective-request {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(241, 245, 249, 0.7));
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.personal-file-reflective-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.personal-file-reflective-choice {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.45rem 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.personal-file-reflective-choice:hover,
.personal-file-reflective-choice:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.personal-file-reflective-choice:has(input[type='radio']:checked) {
  border-color: rgba(37, 99, 235, 0.62);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.96));
}

.personal-file-reflective-choice input[type='radio'] {
  grid-row: 1 / span 2;
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  margin: 0.18rem 0 0;
  padding: 0;
  accent-color: var(--primary);
  border-radius: 50%;
  transform: none;
}

.personal-file-reflective-choice input[type='radio']:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  transform: none;
}

.personal-file-reflective-choice-title,
.personal-file-reflective-choice-copy {
  grid-column: 2;
  min-width: 0;
}

.personal-file-reflective-choice-title {
  font-weight: 700;
  color: var(--text-stronger);
  display: block;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.personal-file-reflective-choice-copy {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.personal-file-reflective-request-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.personal-file-reflective-request-actions button {
  min-width: 9rem;
}

.personal-file-reflective-template-label {
  font-weight: 600;
  color: var(--text-muted);
}

.personal-file-editor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.personal-file-date-field {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-stronger);
}

.personal-file-date-field input {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.personal-file-date-field input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.personal-file-rich-label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-stronger);
}

.rich-input {
  min-height: 160px;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-stronger);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rich-input.is-readonly {
  background: rgba(241, 245, 249, 0.6);
  color: var(--text-muted);
  cursor: not-allowed;
}

.rich-input.is-readonly:focus {
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

.rich-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.rich-input[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  opacity: 0.75;
}

.personal-file-history {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.personal-file-history-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.personal-file-history-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.personal-file-note-filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.personal-file-note-filter-mode select {
  min-width: 12rem;
}

.personal-file-note-filter-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.personal-file-note-filter-form .personal-file-date-field {
  width: 100%;
  max-width: 16rem;
}

.personal-file-note-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.personal-file-note-filter-summary {
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .personal-file-note-filter-fields {
    flex-direction: row;
    align-items: flex-end;
  }
}

@media (min-width: 720px) {
  .personal-file-note-filter-form {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
  }
}

@media (min-width: 960px) {
  .personal-file-history-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .personal-file-note-filter-form {
    max-width: 32rem;
  }
}

.personal-file-history-list,
.personal-file-history-archived {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.95);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-card[role='button'] {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.note-card[role='button']:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-1px);
}

.note-card[role='button']:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 4px;
}

.note-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.note-card .note-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.note-card .note-details {
  margin: 0;
  display: grid;
  gap: 0.35rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.note-card .note-details dt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0;
}

.note-card .note-details dd {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.note-card .note-details dd:last-of-type {
  margin-bottom: 0;
}

.note-card-subject,
.note-card-preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.note-card-subject {
  font-weight: 600;
  color: var(--text-primary);
}

.note-card-preview p {
  margin: 0;
}

.note-card-preview a[data-personal-file-open-reflection] {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.personal-file-history-pagination {
  margin-top: -0.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.personal-file-history-pagination button {
  min-width: 6rem;
}

.personal-file-history-page-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.content-pagination {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.content-pagination--compact {
  justify-content: space-between;
  width: 100%;
  padding-top: 0.25rem;
}

.content-pagination button {
  min-width: 6rem;
}

.content-pagination--compact .content-page-status {
  margin-inline: auto 0;
}

.content-page-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.personal-file-reflective-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 720px) {
  .personal-file-reflective-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.personal-file-reflective textarea,
.personal-file-self textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.75rem 0.9rem;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.personal-file-reflective textarea:focus,
.personal-file-self textarea:focus,
.personal-file-self input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.personal-file-self-history.card {
  margin-bottom: 0;
  margin-top: 1.6rem;
  padding: 1.5rem;
}

.personal-file-self-history {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.personal-file-self-history__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.personal-file-self-history__header h5 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-stronger);
}

.personal-file-self-history__empty {
  margin: 0;
}

.personal-file-self-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.personal-file-self-history__entry {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.personal-file-self-history__entry[open] {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.personal-file-self-history__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.personal-file-self-history__summary::-webkit-details-marker {
  display: none;
}

.personal-file-self-history__summary-label {
  color: var(--text-stronger);
}

.personal-file-self-history__summary-meta {
  color: var(--text-muted);
}

.personal-file-self-history__summary-rating {
  color: var(--text-stronger);
}

.personal-file-self-history__body {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.personal-file-self-history__details {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.personal-file-self-history__label {
  font-weight: 600;
  color: var(--text-stronger);
}

.personal-file-self-history__value {
  margin: 0;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.personal-file-rich-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.personal-file-table .table-container {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.personal-file-detail-actions button[hidden] {
  display: none;
}

.personal-file-detail-actions .tertiary {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 1.2rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.personal-file-detail-actions .tertiary:hover,
.personal-file-detail-actions .tertiary:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
  background: rgba(59, 130, 246, 0.12);
}

.personal-file-summary-progress {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.personal-file-summary-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.personal-file-progress-bar {
  position: relative;
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.personal-file-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--primary), #7c3aed);
  transition: width 0.35s ease;
}


.personal-file-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  min-width: max-content;
}

.personal-file-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  min-width: min(320px, 90vw);
}

.personal-file-summary-item:hover,
.personal-file-summary-item:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.14);
}

.personal-file-summary-item.is-active {
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 24px 42px rgba(37, 99, 235, 0.18);
}

.personal-file-summary-item.is-complete {
  border-color: rgba(22, 163, 74, 0.55);
  background: rgba(240, 253, 244, 0.92);
  box-shadow: 0 20px 36px rgba(22, 163, 74, 0.18);
}

.personal-file-summary-item.is-complete.is-active {
  background: rgba(22, 163, 74, 0.2);
  border-color: rgba(22, 163, 74, 0.6);
}

.personal-file-summary-item.is-complete .personal-file-summary-icon {
  background: rgba(22, 163, 74, 0.18);
  color: var(--success);
}

.personal-file-summary-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: rgba(59, 130, 246, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

@media (min-width: 680px) {
  .personal-file-summary-list {
    flex-wrap: wrap;
    min-width: 0;
  }

  .personal-file-summary-item {
    flex: 1 1 calc(50% - 1rem);
    min-width: 260px;
  }
}

@media (min-width: 1180px) {
  .personal-file-summary-item {
    flex: 1 1 calc(33.333% - 1rem);
  }
}

.personal-file-summary-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
}

.personal-file-summary-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}

.personal-file-summary-header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.personal-file-summary-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.personal-file-summary-optional {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.22);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.personal-file-summary-item.is-complete .personal-file-summary-status {
  color: var(--success);
}

.personal-file-summary-idea {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.personal-file-summary-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.personal-file-summary-tag {
  --summary-tag-background: rgba(37, 99, 235, 0.12);
  --summary-tag-color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  background: var(--summary-tag-background);
  color: var(--summary-tag-color);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.personal-file-summary-tag[data-tag-key='foundation'] {
  --summary-tag-background: rgba(251, 191, 36, 0.38);
  --summary-tag-color: #92400e;
}

.personal-file-summary-tag[data-tag-key='growth'] {
  --summary-tag-background: rgba(74, 222, 128, 0.34);
  --summary-tag-color: #047857;
}

.personal-file-summary-tag[data-tag-key='learning-log'] {
  --summary-tag-background: rgba(196, 181, 253, 0.4);
  --summary-tag-color: #5b21b6;
}

.personal-file-summary-tag[data-tag-key='planning'] {
  --summary-tag-background: rgba(147, 197, 253, 0.36);
  --summary-tag-color: #1d4ed8;
}

.personal-file-summary-tag[data-tag-key='core-skills'] {
  --summary-tag-background: rgba(165, 243, 252, 0.36);
  --summary-tag-color: #0f766e;
}

.personal-file-summary-tag[data-tag-key='unit-focus'] {
  --summary-tag-background: rgba(199, 210, 254, 0.38);
  --summary-tag-color: #4338ca;
}

.personal-file-summary-tag[data-tag-key='equipment'] {
  --summary-tag-background: rgba(253, 230, 138, 0.38);
  --summary-tag-color: #b45309;
}

.personal-file-summary-tag[data-tag-key='reflection'] {
  --summary-tag-background: rgba(251, 207, 232, 0.4);
  --summary-tag-color: #be185d;
}

.personal-file-summary-item.is-complete .personal-file-summary-tag {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.personal-file-summary-toggle {
  margin-left: auto;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: #fff;
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.personal-file-summary-toggle:hover,
.personal-file-summary-toggle:focus-visible {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.personal-file-summary-item.is-complete .personal-file-summary-toggle {
  border-color: rgba(22, 163, 74, 0.4);
  color: var(--success);
}

.personal-file-summary-item.is-complete .personal-file-summary-toggle:hover,
.personal-file-summary-item.is-complete .personal-file-summary-toggle:focus-visible {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.26);
}

.personal-file-summary-note {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}


.personal-file-form-card,
.personal-file-notes-card {
  background: var(--surface-card);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-glass);
}

.personal-file-notes-card {
  padding: 1.5rem;
}

.personal-file-notes-card .stack {
  gap: 1.1rem;
}

@media (max-width: 720px) {
  .personal-file-summary-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .personal-file-summary-toggle {
    width: 100%;
  }
}

.staff-panel-header {
  align-items: flex-start;
  gap: 1rem;
}

.staff-panel-header .muted {
  margin: 0.35rem 0 0;
  max-width: 480px;
}

@media (min-width: 900px) {
  .workflow-hero {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 720px) {
  .workflow-card .workflow-option {
    grid-template-columns: 1fr;
  }

  .workflow-icon {
    width: 2.8rem;
    height: 2.8rem;
  }
}

.inline-form input {
  flex: 1 1 180px;
}

.staff-hero-card header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.staff-hero-card .workflow-hero {
  margin-bottom: 1.5rem;
}

.units-page {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #f3f4f6;
}

.units-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.25rem;
}

.units-page-header h2,
.units-page-header p {
  margin: 0;
}

.units-page-header h2 {
  color: #111827;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.units-page-header p {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.units-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 1px solid #0f3d5e;
  border-radius: 0.375rem;
  background: #0f3d5e;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.units-primary-action:hover {
  background: #0b2f49;
  border-color: #0b2f49;
}

.units-roster-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: none;
}

.units-roster-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #d1d5db;
  background: #fff;
}

.units-search-field {
  display: grid;
  gap: 0.3rem;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}

.units-search-field span,
.units-create-field span {
  color: #374151;
  text-transform: none;
  letter-spacing: 0;
}

.units-search-field input,
.units-create-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.units-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #374151;
  font-weight: 600;
  white-space: nowrap;
}

.units-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f8fafc;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.units-table-shell {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.units-table-shell table {
  margin: 0;
  border-collapse: collapse;
}

.units-table-shell th {
  border-bottom: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.units-table-shell th,
.units-table-shell td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  vertical-align: middle;
}

.units-table-shell tbody tr:hover {
  background: #f8fafc;
}

.units-table-shell .table-actions {
  justify-content: flex-start;
  gap: 0.4rem;
}

.units-table-shell .secondary,
.unit-modal-card .secondary {
  min-height: 32px;
  padding: 0.4rem 0.65rem;
  border: 1px solid #9ca3af;
  border-radius: 0.375rem;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.units-table-shell .danger {
  min-height: 32px;
  padding: 0.4rem 0.65rem;
  border: 1px solid #dc2626;
  border-radius: 0.375rem;
  background: #dc2626;
  color: #fff;
  box-shadow: none;
}

.unit-modal .modal-backdrop {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: none;
}

.unit-modal-card {
  width: min(460px, 100%);
  padding: 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.18);
  backdrop-filter: none;
}

.unit-modal-header h3,
.unit-modal-header p {
  margin: 0;
}

.unit-modal-header p {
  margin-top: 0.2rem;
  color: #6b7280;
}

.units-create-field {
  display: grid;
  gap: 0.4rem;
  color: #374151;
  font-weight: 700;
}

.unit-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .units-page {
    padding: 1rem;
  }

  .units-page-header,
  .units-roster-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .units-page-header {
    display: grid;
  }

  .units-primary-action,
  .units-active-toggle,
  .units-count-badge {
    width: 100%;
  }
}

.staff-hero-card .workflow-stats div {
  background: var(--surface-soft);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-glass);
}

.staff-management-grid {
  margin-top: 2rem;
}

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.assignment-workflow-card header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assignment-form .form-grid {
  gap: 1.2rem;
}

.assignment-field-grid {
  align-items: stretch;
}

.assignment-field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.assignment-field-block {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  box-shadow: 0 16px 32px rgba(148, 163, 184, 0.18);
}

.assignment-field-block .help-text {
  margin-bottom: 0;
}

.assignment-select-search {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.assignment-select-search input[type='search'] {
  width: 100%;
}

.assignment-select-search input[type='search']::placeholder {
  color: var(--text-muted);
}

.assignment-staff-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.assignment-staff-filter select {
  flex: 0 1 16rem;
  min-width: 12rem;
}
.assignment-staff-filter + .assignment-staff-filter {
  margin-top: 0.25rem;
}
.assignment-validator-filter {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.searchable-select {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-select-control {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-select-control input[type='search'] {
  width: 100%;
}

.search-select-control select {
  width: 100%;
}

@media (min-width: 720px) {
  .search-select-control {
    flex-direction: row;
    align-items: center;
  }

  .search-select-control input[type='search'],
  .search-select-control select {
    flex: 1 1 50%;
    min-width: 0;
  }
}

.competency-wizard {
  gap: 2rem;
}

.wizard-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wizard-progress li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.24);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.08));
  color: #4338ca;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wizard-progress li.active {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.wizard-progress li.completed {
  border-color: rgba(79, 70, 229, 0.36);
  color: #3730a3;
  background: rgba(238, 242, 255, 0.9);
}

.wizard-step {
  display: none;
  border: 1px solid var(--border-glass);
  border-radius: 1.2rem;
  padding: 1.6rem;
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
}

.wizard-step.active {
  display: block;
}

.wizard-step-header {
  margin-bottom: 1rem;
}

.wizard-step-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.wizard-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wizard-toolbar .ghost {
  padding-inline: 1.1rem;
}

.wizard-toolbar .ghost:hover {
  background: var(--surface-soft);
}

.wizard-toolbar .ghost:focus-visible {
  box-shadow: 0 0 0 2px var(--focus-outline);
}

.scroll-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 8.5rem;
  z-index: 1000;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.scroll-to-top:hover {
  background: #1d4ed8;
}

.scroll-to-top:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .scroll-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .scroll-to-top::before {
    content: "\2191";
    font-size: 1.15rem;
  }

  body:has(.duty-rota-panel:not([hidden])) #global-scroll-top {
    display: none !important;
  }
}

#template-exit-focus {
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.25);
}

#template-exit-focus:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.wizard-actions > button,
.wizard-actions__right > button {
  min-height: 2.75rem;
  white-space: nowrap;
}

.wizard-actions [data-prev-step],
.wizard-actions__spacer {
  margin-right: auto;
}

.wizard-actions__spacer {
  flex: 1 1 auto;
}

.wizard-actions__right {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

.wizard-actions .ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  box-shadow: none;
  padding-inline: 1rem;
}

.wizard-actions .ghost:hover {
  background: var(--surface-soft);
}

.wizard-actions .form-message {
  flex: 1 0 100%;
  margin: 0.25rem 0 0;
}

.rating-fieldset {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.materials-fieldset {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.materials-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.materials-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.22));
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.rating-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.25));
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}


.template-details-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(330px, 1.25fr);
}

#template-designation {
  min-width: 0;
  padding-right: 2.4rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#template-description,
#template-objective {
  min-height: 5.75rem;
  resize: none;
  font-family: inherit;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .template-details-grid {
    grid-template-columns: 1fr;
  }
}

.rating-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.rating-card input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.rating-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: rgba(37, 99, 235, 0.14);
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.rating-card-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.rating-card-body p,
.rating-card-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rating-card-description {
  display: block;
}

.rating-card-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: var(--success);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.rating-card:hover,
.rating-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
}

.rating-card.active {
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.26), rgba(14, 165, 233, 0.28));
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 22px 48px rgba(14, 165, 233, 0.28), inset 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.rating-card.active .rating-card-icon {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.rating-card:not(.active) .rating-card-badge {
  background: rgba(34, 197, 94, 0.12);
  color: rgba(5, 122, 85, 0.78);
  box-shadow: none;
}

.rating-config-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.rating-config-panel {
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.rating-config-panel h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.rating-range-grid label input {
  background: var(--surface-solid);
}

.rating-hints {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rating-hints li + li {
  margin-top: 0.35rem;
}

.rating-preview {
  border-radius: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: linear-gradient(140deg, rgba(14, 165, 233, 0.14), rgba(59, 130, 246, 0.18));
  padding: 1.25rem 1.4rem;
  color: var(--text-primary);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.22);
}

.rating-preview h4 {
  margin: 0 0 0.4rem;
}

.rating-preview p {
  margin: 0;
  font-size: 0.92rem;
}

.rating-preview p.small {
  font-size: 0.78rem;
  margin-top: 0.8rem;
}

.rating-scale {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.rating-scale-track {
  position: relative;
  flex: 1;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.rating-scale-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
}
.rating-meanings {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: grid;
  gap: 0.65rem;
}

.rating-meanings h5 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.rating-meaning-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
}

.rating-meaning-list dt {
  font-weight: 700;
  color: var(--text-primary);
}

.rating-meaning-list dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rating-preview [hidden] {
  display: none !important;
}

.rating-result-config {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.result-note {
  font-size: 0.9rem;
  line-height: 1.5;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.12));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.result-card h5 {
  margin: 0;
  font-size: 1rem;
}

.result-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.result-card input[type='number'] {
  width: 100%;
}

.result-card--clinical {
  padding: 0;
}

label.result-toggle {
  display: block;
  text-decoration: none;
}

label.result-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

label.result-toggle .result-toggle-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.12));
  color: var(--text-primary);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

label.result-toggle .result-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.65);
  font-size: 1.35rem;
}

label.result-toggle .result-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

label.result-toggle .result-toggle-text strong {
  font-size: 1.05rem;
  color: var(--text-primary);
}

label.result-toggle .result-toggle-pill {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
}

.pill--off {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(37, 99, 235, 0.85);
}

.pill--on {
  background: rgba(16, 185, 129, 0.18);
  color: rgba(5, 122, 85, 0.95);
}

label.result-toggle input:checked + .result-toggle-content {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.18));
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.18);
}

label.result-toggle input:checked + .result-toggle-content .pill--off {
  display: none;
}

label.result-toggle input:not(:checked) + .result-toggle-content .pill--on {
  display: none;
}

.performance-levels {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.performance-header h5 {
  margin: 0;
  font-size: 0.95rem;
}

.performance-header p {
  margin: 0;
  max-width: 62rem;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.performance-card {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  min-width: 0;
  overflow: hidden;
  padding: 0.78rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.14), rgba(14, 165, 233, 0.08));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.performance-card-head {
  display: flex;
  gap: 0.7rem;
  align-items: start;
}

.performance-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1.35rem;
}

.performance-card-summary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.performance-card-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(37, 99, 235, 0.75);
}

.performance-card-fields {
  display: grid;
  gap: 0.55rem;
}

.performance-card label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.performance-range {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.55rem;
}

.performance-card input,
.performance-card textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.performance-card textarea {
  resize: none;
  min-height: 5.4rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.35) rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .rating-config-wrapper {
    grid-template-columns: 1fr;
  }

  .rating-preview {
    order: -1;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rating-options {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 640px) {
  .wizard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .wizard-toolbar .ghost {
    width: 100%;
  }

  .wizard-actions {
    gap: 0.6rem;
  }

  .wizard-actions > button,
  .wizard-actions__right > button {
    padding-inline: 0.9rem;
  }
}

.body-builder,
.quiz-builder,
.materials-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subject-card,
.quiz-question {
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subject-card {
  padding: 0.6rem;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 245, 255, 0.9));
}

.subject-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.subject-header::-webkit-details-marker {
  display: none;
}

.subject-header::before {
  content: '▸';
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  font-weight: 900;
  grid-column: 1;
  grid-row: 1;
  pointer-events: none;
}

.subject-card[open] > .subject-header::before {
  content: '▾';
}

.subject-header-main {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  grid-column: 2;
}

.subject-header-actions {
  grid-column: 3;
}

.subject-header input {
  min-width: 0;
  width: 100%;
  min-height: 2.4rem;
  padding-block: 0.45rem;
  font-weight: 800;
}

.subject-step-count {
  white-space: nowrap;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
}

.subject-header-actions,
.subject-actions,
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.subject-actions {
  margin-top: 0.15rem;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.step-row {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
}

.step-content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.step-row textarea {
  width: 100%;
  min-height: 2.75rem;
  padding-block: 0.55rem;
  resize: vertical;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
}

.step-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

.step-number {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  font-size: 0.82rem;
  font-weight: 800;
}

.step-meta .ghost,
.subject-header .ghost,
.danger-light {
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.42);
  box-shadow: none;
}

.step-remove {
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .subject-header,
  .subject-header-main,
  .step-content {
    grid-template-columns: 1fr;
  }

  .subject-header-main,
  .subject-header-actions {
    grid-column: 1;
  }

  .subject-header-actions,
  .step-meta {
    justify-content: flex-start;
  }
}

.quiz-question textarea {
  min-height: 80px;
}

.quiz-question-number {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.quiz-question-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.quiz-question-header input,
.quiz-question-header textarea {
  flex: 1 1 220px;
  min-width: 200px;
}

.quiz-question-prompt,
.quiz-question-answer,
.quiz-option-text {
  resize: vertical;
  white-space: pre-wrap;
}

.quiz-question-type-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 180px;
}

.quiz-question-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  border: 1px dashed var(--border-glass);
  border-radius: 0.75rem;
  background: var(--surface-card);
}

.quiz-option-text {
  width: 100%;
  min-width: 160px;
  min-height: 2.6rem;
}

.quiz-option-correct-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-secondary);
}

.quiz-option-correct-label input {
  margin: 0;
}

.quiz-option-remove {
  width: 2.4rem;
  min-height: 2.4rem;
  padding: 0;
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(254, 242, 242, 0.42);
  box-shadow: none;
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 700px) {
  .quiz-option {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .quiz-option-correct-label {
    justify-content: flex-start;
  }

  .quiz-option-remove {
    width: auto;
    justify-self: flex-start;
    padding: 0 0.85rem;
  }
}

.materials-editor__toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-glass);
  border-radius: 0.85rem;
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}
.materials-editor__group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.materials-editor__group--advanced {
  gap: 0.65rem;
}
.materials-editor__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.materials-editor__button strong,
.materials-editor__button em,
.materials-editor__button u {
  font-weight: inherit;
  font-style: inherit;
  text-decoration: inherit;
}

.materials-editor__button:hover,
.materials-editor__button:focus {
  background: rgba(22, 119, 255, 0.08);
  color: var(--primary);
  border-color: rgba(22, 119, 255, 0.35);
  outline: none;
}

.materials-editor__button:focus-visible {
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.3);
}

.materials-editor__divider {
  width: 1px;
  height: 1.75rem;
  background: var(--border-glass);
  align-self: stretch;
}
.materials-editor__select select {
  appearance: none;
  border: 1px solid var(--border-glass);
  border-radius: 0.7rem;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
}

.materials-editor__color {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
}

.materials-editor__color input[type='color'] {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.materials-editor__button--pill {
  width: auto;
  min-width: 0;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}
.materials-editor__content {
  min-height: 220px;
  padding: 1rem;
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  background: var(--surface-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.02);
  overflow-y: auto;
}

.materials-editor__content:focus {
  outline: 2px solid rgba(22, 119, 255, 0.35);
  outline-offset: 2px;
}

.materials-editor__content p,
.materials-editor__content ul,
.materials-editor__content ol,
.materials-editor__content blockquote {
  margin: 0 0 0.75rem 0;
}

.materials-editor__content ul,
.materials-editor__content ol {
  padding-left: 1.4rem;
}

.materials-editor__content blockquote {
  padding-left: 0.8rem;
  border-left: 3px solid rgba(22, 119, 255, 0.35);
  color: var(--text-muted);
  font-style: italic;
}

.materials-editor__content a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-word;
}

.materials-editor__content img,
.materials-editor__content video {
  max-width: 100%;
  border-radius: 0.75rem;
  margin: 0.75rem 0;
  display: block;
  box-shadow: var(--shadow-soft);
}
.materials-editor__content .materials-embed {
  display: inline-block;
  max-width: 100%;
  padding: 0.5rem;
  margin: 0.75rem 0;
  border-radius: 1rem;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  resize: both;
  overflow: hidden;
  cursor: nwse-resize;
  position: relative;
  min-width: 160px;
}

.materials-editor__content .materials-embed:focus-within,
.materials-editor__content .materials-embed:hover {
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  cursor: nwse-resize;
}

.materials-editor__content .materials-embed > img,
.materials-editor__content .materials-embed > video {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0.8rem;
  box-shadow: none;
}
.materials-editor__content figure {
  margin: 0 0 1rem 0;
}

.materials-editor__content figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-align: center;
}

.materials-editor__hint {
  margin: 0.35rem 0 0 0;
}

.materials-editor__empty[hidden] {
  display: none;
}
.materials-text-span {
  display: inline;
}

.materials-font {
  font-weight: 500;
}

.materials-font--small {
  font-size: 0.85rem;
  line-height: 1.5;
}

.materials-font--large {
  font-size: 1.2rem;
  line-height: 1.55;
}

.materials-font--title {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 650;
}

.materials-text-color {
  color: var(--material-color, var(--text-primary));
}
.review-summary {
  display: grid;
  gap: 0.85rem;
}

.review-summary dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.review-summary {
  display: grid;
  gap: 1rem;
}

.review-section {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.review-section h5 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.review-section dl {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  margin: 0;
}

.review-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.review-band-card {
  padding: 0.75rem;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9), rgba(224, 242, 254, 0.75));
}

.review-band-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.review-band-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.review-summary dt {
  font-weight: 600;
  color: var(--text-muted);
}

.review-summary dd {
  margin: 0;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: 1.1rem;
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  margin-bottom: 1.25rem;
}

.competency-toolbar .toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.competency-toolbar .toolbar-main input[type='search'] {
  flex: 1 1 220px;
  min-width: 200px;
}

.assignment-table-card header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.assignment-toolbar .toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toggle input {
  width: auto;
  accent-color: var(--primary);
}

.status-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.status-filter select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.45rem 1.6rem 0.45rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" fill="none" viewBox="0 0 12 8"%3E%3Cpath fill="%2364748b" d="M10.59.59 6 5.17 1.41.59 0 2l6 6 6-6L10.59.59Z"/%3E%3C/svg%3E') no-repeat right 0.6rem center;
  color: var(--text-primary);
  font-weight: 500;
  min-width: 160px;
}

.status-filter select:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}

button.table-link,
a.table-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--primary);
  font: inherit;
  display: inline;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
}

button.table-link:hover,
button.table-link:focus-visible,
a.table-link:hover,
a.table-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}

button.table-link:focus-visible,
a.table-link:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}
button.validator-staff-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--primary);
  font: inherit;
  display: inline;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
}

button.validator-staff-link:hover,
button.validator-staff-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}

button.validator-staff-link:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}
.actions-cell {
  white-space: nowrap;
}

.table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.table-actions button {
  padding-inline: 0.9rem;
  padding-block: 0.45rem;
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.staff-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 1.6rem;
  align-items: start;
}

.staff-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.staff-card header,
.staff-filters header {
  margin-bottom: 0.75rem;
}

.staff-browse-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

.staff-section-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.staff-roster-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.staff-roster-insights div {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.staff-roster-insights dt {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.staff-roster-insights dd {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text-primary);
}

.staff-card header h3,
.staff-filters header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.field-group {
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0;
  background: var(--surface-soft);
}

.field-group legend {
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 0.4rem;
}

.field-group .form-grid {
  margin-top: 0.85rem;
}

.target-staff-field {
  display: grid;
  gap: 0.8rem;
}

.target-staff-field legend {
  font-size: 1.05rem;
}

.target-staff-field select {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.target-staff-options {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.target-staff-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.65rem;
  gap: 0.75rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.target-staff-option:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.35);
  background: rgba(239, 246, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.target-staff-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.target-staff-option__indicator {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.4rem;
  border: 2px solid rgba(99, 102, 241, 0.45);
  background: rgba(255, 255, 255, 0.9);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.target-staff-option__indicator::after {
  content: "✓";
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.target-staff-option__text {
  font-weight: 700;
}

.target-staff-option:has(input:focus-visible) {
  outline: 3px solid rgba(59, 130, 246, 0.28);
  outline-offset: 2px;
}

.target-staff-option:has(input:checked) {
  border-color: rgba(79, 70, 229, 0.58);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(14, 165, 233, 0.88));
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
}

.target-staff-option:has(input:checked) .target-staff-option__indicator {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.24);
}

.target-staff-option:has(input:checked) .target-staff-option__indicator::after {
  opacity: 1;
  transform: scale(1);
}

.target-staff-field .help-text {
  margin: 0;
}

.staff-main {
  display: grid;
  gap: 1.6rem;
}

.staff-filters .table-toolbar {
  margin: 0;
  width: 100%;
  box-shadow: none;
  border-radius: 0.9rem;
  background: var(--surface-soft);
}

.staff-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  align-items: end;
  gap: 0.75rem;
  padding: 0.75rem;
}

.staff-filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.staff-filter-field input,
.staff-filter-field select {
  width: 100%;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.staff-filter-clear {
  min-height: 42px;
  align-self: end;
}

.staff-table-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.staff-table-card .table-container {
  min-height: 200px;
}
.staff-card-container {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
}

.staff-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.staff-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 1.05rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.staff-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6, #f59e0b);
  opacity: 0.8;
}

.staff-card:hover,
.staff-card:focus-within {
  border-color: rgba(14, 165, 233, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.staff-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.staff-card__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.staff-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(20, 184, 166, 0.16));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #075985;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.22);
}

.staff-card__title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.staff-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.staff-card__name:hover,
.staff-card__name:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.staff-card__name:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.35rem;
}

.staff-card__subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.staff-card__status-chip {
  align-self: flex-start;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.staff-card__status-chip[data-status='active'] {
  background: var(--success-soft);
  color: var(--success);
}

.staff-card__status-chip[data-status='inactive'] {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
}

.staff-card__status-chip[data-status='resigned'] {
  background: var(--danger-soft);
  color: var(--danger);
}

.staff-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.staff-card__meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.staff-card__meta-grid > div {
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.staff-card__meta-grid dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.staff-card__meta-grid dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.staff-card__meta-grid dd .staff-card__unit-chip {
  font-weight: 500;
}

.staff-card__unit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.staff-card__unit-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border-glass);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.staff-card__unit-chip--empty {
  background: transparent;
  border-style: dashed;
  color: var(--text-subtle);
}

.staff-card__actions {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.staff-card__actions .secondary,
.staff-card__actions .danger {
  padding-inline: 1rem;
  border-radius: 0.8rem;
}

.staff-card__actions .staff-reactivate-action {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
}

.staff-card__actions .staff-reactivate-action:hover,
.staff-card__actions .staff-reactivate-action:focus-visible {
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(20, 184, 166, 0.16);
}

@media (max-width: 720px) {
  .staff-browse-header {
    grid-template-columns: 1fr;
  }

  .staff-roster-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-roster-insights div {
    padding: 0.7rem;
  }

  .staff-filter-toolbar {
    grid-template-columns: 1fr;
  }

  .staff-filter-clear {
    width: 100%;
  }

  .staff-card-grid {
    grid-template-columns: 1fr;
  }

  .staff-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .staff-card__status-chip {
    align-self: flex-end;
  }

  .staff-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .staff-layout {
    grid-template-columns: 1fr;
  }

  .staff-sidebar {
    order: 2;
  }
}

.overview-hero,
.my-competency-hero,
.preceptor-hero,
.educator-hero,
.validator-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.overview-summary,
.preceptor-summary,
.educator-summary,
.validator-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.overview-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.overview-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.unit-progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.unit-progress-row {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #f9fafb;
}

.my-competency-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.my-competency-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.my-competency-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
}

.my-competency-search {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text-subtle);
  min-width: min(360px, 100%);
}

.my-competency-search--wide {
  flex: 1 1 320px;
}

.my-competency-search input {
  padding: 0.55rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.my-competency-search select {
  padding: 0.55rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.preceptor-competency-selector {
  margin-bottom: 0.75rem;
}

.my-competency-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.my-competency-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.my-competency-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: var(--surface-card);
  border-left: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 30;
}

.my-competency-filter-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.my-competency-filter-drawer__header h3 {
  margin: 0.2rem 0 0;
}

.my-competency-filter-drawer__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preceptor-competency-empty {
  margin-top: 0.75rem;
}

.validator-competency-toolbar .validator-competency-primary {
  align-items: flex-end;
}

.validator-competency-toolbar .validator-staff-select,
.validator-competency-toolbar .validator-unit-filter {
  flex: 1 1 220px;
  min-width: min(260px, 100%);
}

.validator-competency-toolbar .my-competency-status {
  min-width: min(220px, 100%);
}

.my-competency-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.my-competency-chip-stack {
  display: flex;
  flex: 1;
  min-width: 180px;
  align-items: flex-end;
}

.my-competency-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.my-competency-expiry {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.my-competency-status {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.my-competency-expiry select {
  padding: 0.5rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  min-width: 130px;
}

.my-competency-status select {
  padding: 0.5rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  min-width: 160px;
}

.my-competency-clear {
  white-space: nowrap;
  align-self: flex-end;
}

.my-competency-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.my-competency-view-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.my-competency-view-toggle button {
  border-radius: 999px;
}

.my-competency-view-toggle button.active {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
}

.my-competency-next-action {
  display: grid;
  gap: 0.35rem;
}

.my-competency-next-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.my-competency-next-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 600;
}

.my-competency-next-item__due {
  font-weight: 400;
  white-space: nowrap;
}

.my-competency-sections {
  display: grid;
  gap: 1.5rem;
}

.my-competency-insight {
  margin-top: 1.25rem;
  display: inline-flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.my-competency-insight span {
  display: inline-flex;
}

.my-competency-section {
  background: var(--surface-card);
  border-radius: 1.1rem;
  border: 1px solid var(--border-glass);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.my-competency-section header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.my-competency-section--action {
  border-left: 4px solid rgba(215, 95, 106, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.my-competency-section-filters {
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.my-competency-section-filters .chip {
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.my-competency-section-filters .chip.is-active {
  background: rgba(87, 108, 255, 0.12);
  border-color: rgba(87, 108, 255, 0.35);
}

.my-competency-section-body {
  margin-top: 1rem;
}

.my-competency-section.is-collapsed .my-competency-section-body {
  display: none;
}

.my-competency-sections.is-board {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
  margin-inline: auto;
}

.my-competency-sections.is-board .my-competency-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 72vh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.my-competency-sections.is-board .my-competency-section header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-card);
  padding-bottom: 0.5rem;
}

.my-competency-sections.is-board .my-competency-section-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0;
}

.my-competency-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--chip-surface);
  font-size: 0.85rem;
}

.my-competency-active-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 0.85rem;
}

.my-competency-time-divider {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.75rem 0 0.25rem;
}

@media (max-width: 1100px) {
  .my-competency-actions-row {
    justify-content: flex-start;
  }
}

.unit-progress-row.is-highlighted {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
  background: #eef2ff;
}

.unit-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.unit-progress-label {
  font-weight: 600;
  color: #111827;
}

.unit-progress-meta {
  color: #4b5563;
  font-size: 0.9rem;
}

.unit-progress-bar {
  position: relative;
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.unit-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #10b981);
  color: #fff;
  font-size: 0.75rem;
  line-height: 0.8rem;
  text-align: right;
  padding-right: 0.45rem;
  min-width: 2.5rem;
}

.unit-progress-fill::after {
  content: attr(data-label);
}

.overview-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.toolbar-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.toolbar-field input,
.toolbar-field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.toolbar-label {
  font-weight: 600;
  color: var(--text-primary);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.toolbar-page {
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-primary);
}

.metric {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  text-align: left;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.metric-value {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-strong);
}

.workspace-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  gap: 1.5rem;
}

.workspace-highlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}

.workspace-highlight__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.35rem;
}

.stat-card__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.stat-card__hint {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.card-meta-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}

.card-metric-stack {
  display: grid;
  gap: 0.75rem;
}

.metric-pill {
  background: var(--surface-soft);
  border: 1px solid var(--border-glass);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow-soft);
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.metric-hint {
  margin-top: 0.2rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.status-legend-panel {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
  display: grid;
  gap: 0.75rem;
}

.status-legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem 1rem;
  color: var(--text-subtle);
}

.status-legend-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.legend-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.04);
}

.legend-dot--success {
  background: var(--success);
}

.legend-dot--info {
  background: var(--info);
}

.legend-dot--muted {
  background: var(--border-strong);
}

.legend-dot--warning {
  background: var(--warning);
}

.legend-dot--accent {
  background: var(--accent);
}

.legend-dot--alert {
  background: var(--danger-soft);
}

.legend-dot--primary {
  background: var(--primary);
}

.legend-dot--surface {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
}

.legend-dot--quiz {
  background: #b45309;
}

.legend-dot--educator {
  background: #334155;
}

.legend-dot--danger {
  background: var(--danger);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.overview-profile,
.overview-activity {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.overview-profile .detail-list {
  margin-top: 0.5rem;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 12%, rgba(59, 130, 246, 0.08), transparent 35%),
    radial-gradient(circle at 82% 10%, rgba(16, 185, 129, 0.08), transparent 38%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.overview-card > * {
  position: relative;
  z-index: 1;
}

.overview-hero {
  gap: 1.75rem;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.12)),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
  border-radius: 28px;
}

.overview-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 24%, rgba(59, 130, 246, 0.18), transparent 46%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.overview-hero-body {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.overview-hero-summary {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.overview-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 700;
}

.overview-hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-live {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.16), rgba(52, 211, 153, 0.18));
  color: #065f46;
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.18);
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-muted);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.pill-soft {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.overview-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.overview-quick-actions button,
.overview-quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-quick-actions button:hover,
.overview-quick-actions button:focus-visible,
.overview-quick-actions a:hover,
.overview-quick-actions a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
}

.overview-attention {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.2rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.overview-attention-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.attention-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.attention-meta {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.overview-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.overview-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.overview-status-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.overview-status-groups .status-list {
  max-height: 320px;
  overflow: auto;
}

.overview-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overview-toolbar-shell {
  padding: 1.1rem 1.2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.toolbar-title {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-title h3 {
  margin: 0.1rem 0 0;
}

.overview-toolbar {
  background: rgba(248, 250, 252, 0.85);
  border-radius: 1rem;
  padding: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.overview-toolbar .toolbar-field {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.overview-toolbar input,
.overview-toolbar select {
  background: transparent;
  border: none;
  padding-left: 0;
}

.overview-toolbar input:focus-visible,
.overview-toolbar select:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.toolbar-actions {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.toolbar-page {
  font-weight: 700;
  color: var(--text-primary);
}

.overview-control-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-search-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.toolbar-field.compact {
  padding: 0.5rem 0.65rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.toolbar-field.compact input,
.toolbar-field.compact select {
  min-width: 200px;
}

.table-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.overview-alerts {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overview-alerts > h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.overview-assignment-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.overview-assignment-panels .scrollable {
  max-height: 360px;
}

.overview-expiring {
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.65), rgba(125, 211, 252, 0.4));
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.overview-expiring-header h4 {
  margin: 0.25rem 0 0;
}

.overview-expiring-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.expiring-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
}

.expiring-card h5 {
  margin: 0 0 0.25rem;
}

.expiring-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.expiring-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.expiring-chip.accent {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(52, 211, 153, 0.14));
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
}

.overview-control,
.overview-control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.overview-control label {
  font-weight: 600;
}

.overview-control select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  font-size: 0.95rem;
}

.overview-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.overview-chip-row .status-chip {
  font-size: 0.8rem;
}

.overview-chip-row .status-chip.urgent {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.timeline-item strong {
  display: block;
  color: var(--text-primary);
}

.overview-footer,
.overview-next-steps,
.overview-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.link-list .link,
.link-list button,
.link-list a {
  background: none;
  border: none;
  color: var(--primary);
  text-align: left;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
}

.link-list .link:hover,
.link-list button:hover,
.link-list a:hover,
.link-list .link:focus-visible,
.link-list button:focus-visible,
.link-list a:focus-visible {
  text-decoration: underline;
}

.overview-shared-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.overview-chart-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.chart-heading h5 {
  margin: 0;
}

.line-chart {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glass, rgba(148, 163, 184, 0.35));
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.6rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 255, 0.92));
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.14);
}

.line-chart svg {
  width: 100%;
  height: auto;
  min-height: 360px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.08));
}

.line-chart .chart-gridline {
  stroke: #e5e9f0;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.line-chart .chart-axis {
  stroke: rgba(100, 116, 139, 0.55);
  stroke-width: 1.35;
}

.line-chart .chart-polyline {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.18));
}

.line-chart .chart-point circle {
  fill: #fff;
  stroke: var(--primary, #205cc5);
  stroke-width: 2.8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.line-chart .chart-point .chart-value {
  fill: #0f172a;
  font-weight: 800;
  font-size: 13px;
  text-anchor: middle;
}

.line-chart .chart-label {
  fill: #1f2933;
  font-weight: 600;
  font-size: 12px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.line-chart .chart-y-label {
  fill: #52606d;
  font-size: 11px;
  text-anchor: end;
}

.line-chart .chart-empty {
  color: #52606d;
  font-style: italic;
  padding: 0.25rem 0;
}

.chart-legend {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem 1.25rem;
}

.chart-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-glass, rgba(148, 163, 184, 0.25));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

.chart-legend-label {
  font-weight: 700;
  color: #161d29;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chart-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.chart-legend-meta {
  color: #52606d;
}

.chart-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0 0.15rem;
}

.chart-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.chart-pill.secondary {
  background: rgba(14, 165, 233, 0.12);
}

.table-responsive {
  overflow-x: auto;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  padding: 0.25rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.overview-next-steps .status-list,
.overview-section .status-list {
  max-height: 320px;
  overflow-y: auto;
}

.overview-attention .notifications-list {
  max-height: 320px;
  overflow-y: auto;
}

@media (max-width: 1100px) {
  .overview-hero-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .overview-hero-body {
    gap: 1.5rem;
  }
  .overview-profile {
    flex: 1 1 280px;
  }
}

@media (max-width: 720px) {
  .overview-quick-actions {
    gap: 0.5rem;
  }
  .overview-attention {
    padding: 1rem;
  }
}

.update-list {
  display: grid;
  gap: 1rem;
}

.my-competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.my-competency-notifications__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-card__title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.status-card__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-card__toggle {
  font-size: 0.9rem;
}

.status-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-count {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
}

.status-count-inline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.status-count--alert {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.status-list-item {
  position: relative;
  z-index: 0;
  padding: 0.65rem 0.85rem;
  padding-right: 2.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.status-list-item:has(.status-list-dropdown[open]) {
  z-index: 30;
}
.status-list-item.is-interactive {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.status-list-item.is-interactive:hover,
.status-list-item.is-interactive:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.status-list-item.is-interactive:focus-visible {
  outline: 3px solid var(--focus-outline);
  outline-offset: 2px;
}
.status-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-list-header .status-list-primary {
  margin-bottom: 0;
}

.status-list-header .status-list-link {
  margin-top: 0.05rem;
  white-space: nowrap;
}

.status-list-primary {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.status-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-list-meta.preceptor-assignment-meta {
  gap: 0.65rem 0.85rem;
}

.due-risk-pill {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.due-risk-pill.is-overdue {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.5);
}

.due-risk-pill.is-due-soon {
  color: #b45309;
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
}

.due-risk-pill.is-upcoming {
  color: #a16207;
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(234, 179, 8, 0.4);
}

.due-risk-pill.is-on-track {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.due-risk-pill.is-remediation {
  color: #b45309;
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 146, 60, 0.45);
}

.status-pill-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.status-pill-group.is-multi {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-pill-note {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.expiry-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.expiry-text.is-expired,
dd.is-expired {
  color: var(--danger);
  font-weight: 600;
}

.status-list-actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-list-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.25rem;
}

.status-list-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.status-list-link:hover,
.status-list-link:focus-visible {
  text-decoration: underline;
}

.status-list-dropdown {
  position: relative;
}

.status-list-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.status-list-dropdown summary::-webkit-details-marker {
  display: none;
}

.status-list-dropdown summary.status-list-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.status-list-dropdown summary.status-list-dropdown-trigger:hover,
.status-list-dropdown summary.status-list-dropdown-trigger:focus-visible {
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(238, 242, 255, 0.65);
}

.status-list-dropdown[open] summary.status-list-dropdown-trigger {
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(238, 242, 255, 0.65);
}

.status-list-dropdown-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem;
  min-width: 13rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.status-list-dropdown-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 100%;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  padding: 0.52rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(248, 250, 252, 0.9);
}

.status-list-dropdown-item:hover,
.status-list-dropdown-item:focus-visible {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(238, 242, 255, 0.8);
}

.status-list-dropdown--kebab {
  position: absolute;
  z-index: 31;
  top: 0.65rem;
  right: 0.65rem;
  margin-left: 0;
}

.assignment-detail-title-actions .status-list-dropdown--dialog-kebab {
  position: relative;
  top: auto;
  right: auto;
  z-index: 45;
  margin-left: 0.4rem;
}

.assignment-detail-title-actions .status-list-dropdown--dialog-kebab .status-list-dropdown-menu {
  z-index: 46;
}


.status-list-dropdown summary.status-list-dropdown-kebab-trigger {
  gap: 0.35rem;
  width: auto;
  height: auto;
  min-height: 2.15rem;
  min-width: 5.75rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.status-list-failures {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.3rem;
}

.status-list-failure-item {
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 600;
}

.status-list-audit {
  margin-top: 0.25rem;
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-list-reason {
  font-weight: 600;
  color: var(--text-primary);
}

.status-list-next-action {
  margin-top: 0.15rem;
  flex-basis: 100%;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-list-next-action strong {
  color: var(--text-primary);
  font-weight: 600;
}

.status-list-waiting {
  margin-top: 0.2rem;
  flex-basis: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-list-helper {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.1rem;
}

.status-list-actions .secondary,
.status-list-actions .ghost,
.status-list-actions .danger {
  font-size: 0.9rem;
  padding-inline: 0.9rem;
}

.preceptor-assignment-chips {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.preceptor-assignment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  background: var(--chip-surface);
  border: 1px solid var(--chip-border);
  white-space: nowrap;
}

.preceptor-assignment-chip.is-complete {
  background: rgba(209, 250, 229, 0.85);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

.preceptor-assignment-chip.is-in-progress {
  background: rgba(219, 234, 254, 0.85);
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
}

.preceptor-assignment-chip.is-pending {
  background: rgba(254, 243, 199, 0.85);
  border-color: rgba(245, 158, 11, 0.35);
  color: #92400e;
}

.preceptor-assignment-chip.is-external {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: #475569;
}

.assignment-stepper {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.5rem;
}

.assignment-stepper-group {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: rgba(248, 250, 252, 0.7);
}

.assignment-stepper-group.is-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.assignment-stepper-group.is-timeline {
  display: grid;
  gap: 0.55rem;
  border: none;
  background: transparent;
  padding: 0;
}

.assignment-stepper-group.is-timeline .assignment-stepper-header {
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  align-items: center;
  gap: 0.35rem;
}

.assignment-stepper-group.is-timeline .assignment-stepper-title {
  font-weight: 700;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0;
}

.assignment-stepper-group.is-timeline .assignment-stepper-title-block {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.assignment-stepper-group.is-timeline .assignment-stepper-helper {
  font-size: 0.8rem;
}

.assignment-stepper-group.is-timeline .assignment-stepper-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.5rem;
  margin-left: 0;
}

.assignment-stepper-group.is-timeline .assignment-stepper-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.assignment-stepper-group.is-timeline .assignment-stepper-item.is-complete {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.88));
}

.assignment-stepper-group.is-timeline .assignment-stepper-item.is-in-progress {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.88));
}

.assignment-stepper-group.is-timeline .assignment-stepper-content {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.assignment-stepper-group.is-timeline .assignment-stepper-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.assignment-stepper-group.is-timeline .assignment-stepper-marker {
  margin-top: 0.05rem;
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.82rem;
}

.assignment-stepper-group.is-timeline .assignment-stepper-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assignment-stepper-group.is-timeline .assignment-stepper-status.is-complete {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.assignment-stepper-group.is-timeline .assignment-stepper-status.is-in-progress {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.assignment-stepper-group.is-timeline .assignment-stepper-status.is-failed {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.assignment-stepper-group.is-timeline .assignment-stepper-owner {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.assignment-stepper-group.is-inline .assignment-stepper-header {
  margin-bottom: 0;
}

.preceptor-assignment-stepper .assignment-stepper-title {
  font-weight: 600;
}

.preceptor-assignment-stepper .assignment-stepper-owner {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.my-competency-sections.is-board .status-list-item {
  padding: 0.75rem 0.9rem;
}

.my-competency-sections.is-board .status-list-primary {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
}

.my-competency-sections.is-board .status-list-meta {
  font-size: 0.8rem;
  gap: 0.35rem 0.6rem;
}

.my-competency-sections.is-board .assignment-stepper {
  margin-top: 0.45rem;
  gap: 0.4rem;
}

.my-competency-sections.is-board .assignment-stepper-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.my-competency-sections.is-board .assignment-stepper-compact-label {
  font-weight: 600;
  color: var(--text-primary);
}

.my-competency-sections.is-board .assignment-stepper-compact-count {
  font-weight: 600;
  color: var(--text-primary);
}

.my-competency-sections.is-board .assignment-stepper-compact-icons {
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.my-competency-sections.is-board .assignment-stepper-group {
  padding: 0.45rem 0.6rem;
}

.my-competency-sections.is-board .assignment-stepper-group.is-inline {
  align-items: flex-start;
}

.my-competency-sections.is-board .assignment-stepper-group.is-inline .assignment-stepper-list {
  margin-left: 0;
  width: 100%;
}

.my-competency-sections.is-board .status-list-actions {
  margin-top: 0.55rem;
  gap: 0.45rem;
}

.my-competency-sections.is-board .status-list-actions .status-list-link--footer {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.1rem;
}

.my-competency-sections.is-board .status-list-actions .action-emphasis {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.my-competency-sections.is-board .status-list-actions .secondary {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.my-competency-sections.is-board .status-list-links {
  margin-top: 0.2rem;
  gap: 0.35rem 0.6rem;
}

.assignment-stepper-group.is-inline .assignment-stepper-urgency {
  margin-left: 0;
}

.assignment-stepper-group.is-inline .assignment-stepper-list {
  margin-left: auto;
}

.assignment-stepper-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.assignment-stepper-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.assignment-stepper-title {
  font-weight: 600;
}

.assignment-stepper-helper {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.assignment-stepper-urgency {
  margin-left: auto;
  font-weight: 600;
  color: var(--danger);
  text-transform: none;
  letter-spacing: 0;
}

.assignment-stepper-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0;
  padding: 0;
}

.assignment-stepper-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.assignment-stepper-label {
  font-weight: 500;
}

.assignment-stepper-owner {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assignment-stepper-item.is-pending {
  color: var(--text-muted);
}

.assignment-stepper-marker {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #fff;
  color: var(--text-muted);
}

.assignment-stepper-marker.is-complete {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.6);
  color: #15803d;
}

.assignment-stepper-marker.is-in-progress {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.6);
  color: #1d4ed8;
}

.assignment-stepper-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.status-section-heading {
  margin: 0.4rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill.is-requirement {
  text-transform: none;
  letter-spacing: 0.02em;
}

.return-requirement-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
}

.return-requirement-pill[data-requirement="waiting_evidence"] {
  background: rgba(249, 115, 22, 0.18);
  color: #9a3412;
}

.return-requirement-pill[data-requirement="waiting_quiz"] {
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}

.return-requirement-pill[data-requirement="waiting_preceptor"] {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.empty-state {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed var(--border-glass);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  text-align: center;
}

.competency-empty-state {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  border: 1px dashed var(--border-glass);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(199, 210, 254, 0.3));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.competency-empty-state__icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.competency-empty-state__icon img {
  width: 96px;
  height: 96px;
}

.competency-empty-state__content h4 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.competency-empty-state__content .muted {
  margin: 0;
}

.competency-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

@media (max-width: 800px) {
  .competency-empty-state {
    flex-direction: column;
    text-align: center;
  }

  .competency-empty-state__actions {
    justify-content: center;
  }
}

.preceptor-preceptee-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.preceptor-preceptee-card header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.preceptor-preceptee-card header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.preceptor-preceptee-card header .muted {
  font-size: 0.9rem;
}
.preceptor-columns {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .preceptor-columns {
    grid-template-columns: 1fr;
  }
}

.preceptor-guide-card .checklist {
  list-style: disc;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.preceptor-staff-card .table-container {
  margin-top: 0.75rem;
}
.preceptor-focus {
  flex: 1 1 auto;
  padding: 1.25rem 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preceptor-focus h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.preceptor-focus p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.preceptor-modal-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.preceptor-spotlight {
  position: relative;
  padding: 1.25rem 1.5rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(226, 232, 240, 0.45));
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.preceptor-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 12%, rgba(94, 234, 212, 0.2), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.16), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

.preceptor-spotlight__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(99, 102, 241, 0.88));
  color: #f8fafc;
  font-size: 1.1rem;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.24);
  z-index: 1;
}

.preceptor-spotlight__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 1;
  flex: 1 1 auto;
}

.preceptor-modal-heading__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preceptor-modal-heading__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hero-eyebrow--spotlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #1e1b4b;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: none;
  width: fit-content;
}

.spotlight-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spotlight-header__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pill--soft {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.pill--surface {
  background: var(--surface-strong);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.pill--interactive {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.12));
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
  color: rgba(30, 64, 175, 0.95);
}

.pill--interactive::before {
  content: '\27A4';
  font-size: 0.9rem;
  opacity: 0.8;
}

.pill--accent {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(37, 99, 235, 0.9);
}

.pill--info {
  background: rgba(14, 165, 233, 0.14);
  color: rgba(14, 116, 196, 0.95);
}

.pill--success {
  background: rgba(34, 197, 94, 0.16);
  color: rgba(4, 120, 87, 0.95);
}

.preceptor-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.preceptor-dialog .preceptor-cta,
.validator-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--text-primary);
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.18), rgba(52, 211, 153, 0.12));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.16);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.validator-cta {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.validator-cta--success {
  background: linear-gradient(130deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.18));
  border-color: rgba(34, 197, 94, 0.6);
  color: #14532d;
}

.validator-cta--primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(14, 165, 233, 0.88));
  border-color: rgba(37, 99, 235, 0.7);
  color: #fff;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.validator-cta--success:hover,
.validator-cta--success:focus-visible {
  background: linear-gradient(130deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.24));
  border-color: rgba(34, 197, 94, 0.75);
}

.validator-cta--primary:hover,
.validator-cta--primary:focus-visible {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.96), rgba(2, 132, 199, 0.9));
  border-color: rgba(29, 78, 216, 0.75);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.validator-cta--warning {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.55);
  color: #9a3412;
  box-shadow: 0 12px 24px rgba(251, 146, 60, 0.18);
}

.validator-cta--muted {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
  box-shadow: none;
}

.validator-cta--warning:hover,
.validator-cta--warning:focus-visible {
  background: rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.7);
}

.validator-cta--muted:hover,
.validator-cta--muted:focus-visible {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text-primary);
}

.preceptor-dialog .preceptor-cta:hover,
.preceptor-dialog .preceptor-cta:focus-visible,
.validator-cta:hover,
.validator-cta:focus-visible {
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.26), rgba(52, 211, 153, 0.2));
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.2);
}

.validator-cta.validator-cta--success:hover,
.validator-cta.validator-cta--success:focus-visible {
  background: linear-gradient(130deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.24));
  border-color: rgba(34, 197, 94, 0.75);
}

.validator-cta.validator-cta--warning:hover,
.validator-cta.validator-cta--warning:focus-visible {
  background: rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.7);
}

.preceptor-dialog .preceptor-cta--prev::before,
.validator-cta--prev::before {
  content: '←';
  font-size: 0.9rem;
}

.preceptor-dialog .preceptor-cta--next::after,
.validator-cta--next::after {
  content: '→';
  font-size: 0.9rem;
}

.preceptor-dialog .preceptor-cta--toggle::before,
.validator-cta--toggle::before {
  content: '⤢';
  font-size: 0.95rem;
}

.preceptor-dialog-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preceptor-dialog-main__toolbar {
  padding: 1rem 1.25rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 231, 255, 0.55));
  box-shadow: 0 18px 40px rgba(76, 29, 149, 0.12);
  display: grid;
  gap: 0.85rem;
}

.preceptor-dialog-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.preceptor-dialog-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.preceptor-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preceptor-status-chip .chip-indicator {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
}

.preceptor-status-chip .chip-count {
  font-weight: 700;
  opacity: 0.85;
}

.preceptor-status-chip--action {
  background: rgba(251, 207, 232, 0.75);
  border-color: rgba(236, 72, 153, 0.3);
  color: #9d174d;
}

.preceptor-status-chip--action .chip-indicator {
  background: #f43f5e;
}

.preceptor-status-chip--progress {
  background: rgba(219, 234, 254, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  color: #1d4ed8;
}

.preceptor-status-chip--progress .chip-indicator {
  background: #60a5fa;
}

.preceptor-status-chip--completed {
  background: rgba(209, 250, 229, 0.8);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

.preceptor-status-chip--completed .chip-indicator {
  background: #34d399;
}

.preceptor-status-chip:hover,
.preceptor-status-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.18);
}

.preceptor-dialog-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}

.preceptor-toolbar-search {
  position: relative;
}

.preceptor-toolbar-search::before {
  content: '🔍';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.6;
}

.preceptor-toolbar-search input {
  min-width: 230px;
  padding: 0.5rem 0.9rem 0.5rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.preceptor-toolbar-search input::placeholder {
  color: var(--text-muted);
}

.preceptor-toolbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.preceptor-toolbar-pill--date::before {
  content: '📅';
  font-size: 0.9rem;
}

.preceptor-toolbar-pill--show select {
  border: none;
  background: transparent;
  font-weight: 600;
  color: inherit;
  padding: 0;
  appearance: none;
}

.preceptor-toolbar-pill--show span {
  color: var(--text-muted);
  font-weight: 600;
}

.preceptor-toolbar-filter {
  border-radius: 0.9rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(99, 102, 241, 0.85));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

.preceptor-toolbar-filter:hover,
.preceptor-toolbar-filter:focus-visible {
  box-shadow: 0 16px 30px rgba(59, 130, 246, 0.32);
  transform: translateY(-1px);
}

.preceptor-dialog-search {
  min-width: min(320px, 100%);
}

.preceptor-dialog-search .educator-control {
  min-width: min(320px, 100%);
}

.preceptor-dialog-meta {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px dashed var(--border-strong);
  background: rgba(148, 163, 184, 0.08);
}

.preceptor-dialog-meta--compact {
  border-style: solid;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(148, 163, 184, 0.08));
}

.preceptor-dialog-meta__progress {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  min-width: 170px;
  display: grid;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.meta-value {
  font-weight: 700;
  color: var(--text-primary);
}

.preceptor-dialog-meta .detail-list {
  margin-top: 0.35rem;
}

.preceptor-dialog-meta__hint {
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
}

.preceptor-dialog-lists {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.preceptor-dialog .content-pagination--compact {
  padding-top: 0.65rem;
  gap: 0.5rem;
}

.preceptor-dialog .content-pagination--compact button {
  min-width: auto;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.preceptor-dialog .content-pagination--compact .content-page-status {
  font-size: 0.85rem;
  font-weight: 600;
}

.preceptor-dialog-lists .educator-staff-modal-section {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 1.35rem;
  padding: 1.2rem 1.25rem 1.3rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 255, 0.85));
  box-shadow: 0 22px 44px rgba(76, 29, 149, 0.16);
}

.preceptor-dialog-lists .educator-staff-modal-section header {
  align-items: center;
}

.preceptor-dialog-section--action {
  border-color: rgba(236, 72, 153, 0.18);
  background: linear-gradient(160deg, rgba(251, 207, 232, 0.35), rgba(255, 255, 255, 0.96));
}

.preceptor-dialog-section--progress {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(160deg, rgba(191, 219, 254, 0.35), rgba(255, 255, 255, 0.96));
}

.preceptor-dialog-section--completed {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(160deg, rgba(167, 243, 208, 0.35), rgba(255, 255, 255, 0.96));
}

.preceptor-dialog-section--action .status-count {
  color: #be185d;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.preceptor-dialog-section--progress .status-count {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.preceptor-dialog-section--completed .status-count {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.preceptor-dialog-section--action .status-list-item,
.preceptor-dialog-section--progress .status-list-item,
.preceptor-dialog-section--completed .status-list-item {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 32px rgba(76, 29, 149, 0.12);
}

.preceptor-dialog-section--action .status-list-item.is-interactive:hover,
.preceptor-dialog-section--progress .status-list-item.is-interactive:hover,
.preceptor-dialog-section--completed .status-list-item.is-interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.18);
}

.preceptor-section-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.page-size-control select {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.page-size-control select:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

.workflow-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.workflow-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.workflow-timeline {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow-timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}

.workflow-step {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
  font-weight: 700;
}

.workflow-panel {
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.6));
  display: grid;
  gap: 1rem;
}

.validator-relationship-workspace {
  margin: 1.25rem 0;
  border: 1px solid rgba(83, 125, 255, 0.2);
  background: linear-gradient(135deg, rgba(83, 125, 255, 0.12), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-soft);
}

.validator-relationship-workspace.is-evaluations-only .validator-relationship-header,
.validator-relationship-workspace.is-evaluations-only .validator-relationship-steps,
.validator-relationship-workspace.is-evaluations-only .validator-relationship-actions,
.validator-relationship-workspace.is-evaluations-only .validator-relationship-panel {
  display: none;
}

.validator-relationship-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.validator-relationship-status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.validator-relationship-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 1rem 0 1.5rem;
  padding: 1.25rem 1rem;
  list-style: none;
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.16);
}

.validator-relationship-steps::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 2.3rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.4), rgba(59, 130, 246, 0.4));
  z-index: 0;
}

.validator-relationship-steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #312e81;
  position: relative;
  z-index: 1;
  text-align: center;
}

.validator-relationship-steps li.is-active {
  color: #0c4a6e;
}

.validator-relationship-steps li.is-complete {
  color: #14532d;
}

.validator-relationship-steps .milestone-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 231, 255, 0.7));
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #1d4ed8;
  box-shadow: 0 10px 18px -16px rgba(15, 23, 42, 0.6);
}

.validator-relationship-steps li.is-active .milestone-marker {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 14px 24px -18px rgba(14, 165, 233, 0.7);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(186, 230, 253, 0.6));
}

.validator-relationship-steps li.is-complete .milestone-marker {
  border-color: rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.6));
  color: #15803d;
}

.validator-relationship-steps .milestone-flag {
  font-size: 1.2rem;
  padding-top: 0.1rem;
}

.validator-relationship-steps .milestone-label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.validator-relationship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.validator-relationship-actions .validator-cta {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(191, 219, 254, 0.45));
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.18);
  font-weight: 700;
  color: #1e3a8a;
  position: relative;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.validator-relationship-actions .validator-cta::after {
  content: none;
}

.validator-relationship-actions .validator-cta:hover,
.validator-relationship-actions .validator-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.22);
  background: linear-gradient(140deg, rgba(219, 234, 254, 0.92), rgba(191, 219, 254, 0.6));
  border-color: rgba(59, 130, 246, 0.55);
}

.validator-relationship-actions .validator-cta:hover::after,
.validator-relationship-actions .validator-cta:focus-visible::after {
  opacity: 1;
}

.validator-relationship-actions .validator-cta.validator-cta--success {
  background: linear-gradient(140deg, rgba(240, 253, 244, 0.95), rgba(187, 247, 208, 0.55));
  border-color: rgba(34, 197, 94, 0.55);
  color: #166534;
}

.validator-relationship-actions .validator-cta.validator-cta--primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(14, 165, 233, 0.85));
  border-color: rgba(37, 99, 235, 0.65);
  color: #fff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
}

.validator-relationship-actions .validator-cta.validator-cta--success:hover,
.validator-relationship-actions .validator-cta.validator-cta--success:focus-visible {
  background: linear-gradient(140deg, rgba(220, 252, 231, 0.95), rgba(134, 239, 172, 0.6));
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.24);
}

.validator-relationship-actions .validator-cta.validator-cta--primary:hover,
.validator-relationship-actions .validator-cta.validator-cta--primary:focus-visible {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.98), rgba(2, 132, 199, 0.9));
  border-color: rgba(29, 78, 216, 0.75);
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.35);
}

.validator-relationship-actions .validator-cta.validator-cta--warning {
  background: linear-gradient(140deg, rgba(255, 247, 237, 0.95), rgba(254, 215, 170, 0.55));
  border-color: rgba(251, 146, 60, 0.6);
  color: #9a3412;
}

.validator-relationship-actions .validator-cta.validator-cta--muted {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
  box-shadow: none;
}

.validator-relationship-actions .validator-cta.validator-cta--warning:hover,
.validator-relationship-actions .validator-cta.validator-cta--warning:focus-visible {
  background: linear-gradient(140deg, rgba(255, 237, 213, 0.95), rgba(253, 186, 116, 0.6));
  border-color: rgba(251, 146, 60, 0.75);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.24);
}

.validator-relationship-actions .validator-cta.validator-cta--muted:hover,
.validator-relationship-actions .validator-cta.validator-cta--muted:focus-visible {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text-primary);
  box-shadow: 0 12px 26px rgba(148, 163, 184, 0.18);
}

.validator-relationship-actions .validator-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.validator-relationship-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(83, 125, 255, 0.35);
}

.validator-relationship-panel header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.validator-relationship-panel .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.validator-relationship-panel .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.assignment-pack {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 244, 255, 0.65));
  display: grid;
  gap: 1rem;
}

.assignment-pack__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.assignment-pack__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.assignment-pack__column {
  display: grid;
  gap: 0.5rem;
}

.assignment-pack__column select {
  width: 100%;
  min-height: 180px;
}

.validator-evaluations {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(83, 125, 255, 0.35);
  display: grid;
  gap: 0.75rem;
}

.validator-evaluations header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.validator-evaluations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.validator-evaluations-grid li {
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  display: grid;
  gap: 0.5rem;
}

.validator-evaluations-grid .evaluation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.validator-evaluations-grid .evaluation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.validator-evaluations-grid .evaluation-actions .evaluation-delete {
  margin-left: auto;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.45);
  color: #b91c1c;
}

.validator-evaluations-grid .evaluation-actions .evaluation-delete:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.6);
}

.mentorship-delete-dialog {
  display: grid;
  gap: 1rem;
}

.mentorship-delete-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(254, 226, 226, 0.7);
  border: 1px solid rgba(248, 113, 113, 0.5);
}

.mentorship-delete-header--danger {
  background: rgba(254, 226, 226, 0.8);
  border-color: rgba(248, 113, 113, 0.6);
}

.mentorship-delete-icon {
  font-size: 1.4rem;
}

.mentorship-delete-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: #b45309;
}

.mentorship-delete-title {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: #b91c1c;
}

.mentorship-delete-intro {
  margin: 0;
  color: var(--text-primary);
}

.mentorship-delete-summary {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.mentorship-delete-summary-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mentorship-delete-summary-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-weight: 600;
}

.mentorship-delete-status {
  font-weight: 600;
  color: #6b7280;
}

.mentorship-delete-status.is-active {
  color: #b91c1c;
}

.mentorship-delete-warning {
  margin: 0;
  color: #b45309;
}

.mentorship-delete-preview {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.mentorship-delete-preview h6 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.mentorship-delete-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.mentorship-delete-preview li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mentorship-delete-check {
  color: #16a34a;
  font-weight: 700;
}

.mentorship-delete-safety {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(59, 130, 246, 0.45);
  background: rgba(191, 219, 254, 0.25);
  display: grid;
  gap: 0.4rem;
}

.mentorship-delete-safety p {
  margin: 0;
}

.mentorship-delete-confirm {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.mentorship-delete-decision {
  display: grid;
  gap: 1.25rem;
}

.mentorship-delete-decision-header h6 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1rem;
}

.mentorship-delete-timeline {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.8);
}

.mentorship-delete-timeline header h6 {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.mentorship-delete-track {
  display: grid;
  gap: 0.6rem;
}

.mentorship-delete-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mentorship-delete-track-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

.mentorship-delete-track-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mentorship-delete-pill {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
}

.mentorship-delete-pill--active {
  color: #0f766e;
}

.mentorship-delete-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.mentorship-delete-archive-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #64748b;
  font-weight: 600;
}

.mentorship-delete-options {
  display: grid;
  gap: 0.75rem;
}

.mentorship-delete-option {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: var(--surface-card);
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mentorship-delete-option:hover,
.mentorship-delete-option:focus-visible {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mentorship-delete-option-title {
  font-weight: 600;
  color: var(--text-primary);
}

.mentorship-delete-option-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mentorship-delete-cancel {
  width: fit-content;
}

.mentorship-delete-manager {
  display: grid;
  gap: 1.25rem;
}

.mentorship-delete-manager-body {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .mentorship-delete-manager-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.mentorship-delete-list header h6 {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.mentorship-delete-list-items {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.mentorship-delete-list-item {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--surface-card);
}

.mentorship-delete-list-item--active {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mentorship-delete-item-summary {
  display: grid;
  gap: 0.35rem;
}

.mentorship-delete-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mentorship-delete-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mentorship-delete-detail {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
}

.mentorship-delete-detail-header h6 {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.mentorship-delete-detail-section {
  display: grid;
  gap: 0.6rem;
}

.mentorship-delete-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.mentorship-delete-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.mentorship-delete-detail-item strong {
  font-weight: 600;
}

.mentorship-delete-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mentorship-delete-detail-evaluations {
  display: grid;
  gap: 0.75rem;
}

.mentorship-evaluation-manager {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
}

.mentorship-evaluation-manager-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mentorship-evaluation-manager-header h6 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
}

.mentorship-evaluation-list {
  display: grid;
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.mentorship-evaluation-item {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  display: grid;
  gap: 0.5rem;
}

.mentorship-evaluation-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mentorship-evaluation-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mentorship-evaluation-item-actions .evaluation-delete {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.35);
  color: #475569;
}

.mentorship-evaluation-empty {
  margin: 0;
}

.mentorship-history-card {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.mentorship-history-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mentorship-history-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mentorship-history-item {
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.mentorship-history-summary {
  margin: 0;
  font-weight: 600;
}

.mentorship-history-actions {
  display: flex;
  align-items: center;
}

.mentorship-history-empty {
  margin: 0;
}

.preceptor-evaluation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(90, 197, 159, 0.18);
  background: linear-gradient(135deg, rgba(90, 197, 159, 0.06), rgba(255, 255, 255, 0.96));
}

.preceptor-evaluation-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.preceptor-evaluation-status {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.preceptor-evaluation-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preceptor-evaluation-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.preceptor-count-hint {
  margin: 0.35rem 0 1rem;
  font-size: 0.85rem;
}

.preceptor-evaluation-card--modal {
  margin-bottom: 1.75rem;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(20, 64, 53, 0.12);
}

.educator-evaluation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(83, 125, 255, 0.2);
  background: linear-gradient(135deg, rgba(83, 125, 255, 0.1), rgba(255, 255, 255, 0.98));
}

.overview-evaluation-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(83, 125, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(83, 125, 255, 0.08), rgba(255, 255, 255, 0.98));
}

.evaluation-card {
  max-width: 900px;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem 1.75rem;
}

.evaluation-card .modal-header {
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.evaluation-card .modal-header h3 {
  font-size: 1.6rem;
}

.evaluation-card fieldset {
  margin: 0;
  padding: 1.35rem 1.6rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
}

.evaluation-card fieldset legend {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  padding: 0 0.2rem;
}

.evaluation-card label {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.evaluation-card .label-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.evaluation-card .label-title {
  font-weight: 600;
  color: var(--text-primary);
}

.evaluation-card .label-subtext {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
}

.evaluation-card .muted {
  font-size: 0.92rem;
}

.evaluation-card select,
.evaluation-card textarea {
  margin-top: 0.2rem;
}

.evaluation-card textarea {
  min-height: 130px;
}

.evaluation-card .form-actions {
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .workflow-header,
  .workflow-grid,
  .validator-relationship-header,
  .preceptor-evaluation-card,
  .overview-evaluation-card {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

.section-heading {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
  font-size: 0.95rem;
  line-height: 1;
}

.badge {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 0.25rem;
}

.badge--alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.65), rgba(249, 115, 22, 0.65));
}

.badge--info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(14, 165, 233, 0.6));
}

.badge--success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.6), rgba(74, 222, 128, 0.6));
}
.validator-queue {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.validator-controls {
  margin-top: 1.5rem;
}

.validator-queue header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.validator-assignment-list {
  margin: 0;
}

.validator-assignment-list .status-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.validator-assignment-list .status-list-meta {
  align-items: center;
}

.validator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.validator-expired-validation-note {
  flex-basis: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.9);
  color: #92400e;
  font-size: 0.82rem;
  line-height: 1.35;
}

.columns.validator-columns {
  margin-top: 1.5rem;
}

.columns.validator-columns .validator-staff-card {
  min-height: 100%;
}
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.scrollable {
  max-height: 260px;
  overflow: auto;
  border-radius: 1.2rem;
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.2rem;
}

.detail-list {
  margin: 0;
  padding: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.detail-list dt {
  font-weight: 600;
  color: var(--text-subtle);
}

.detail-list dd {
  margin: 0;
  color: var(--text-primary);
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

form label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.required-indicator {
  margin-left: 0.25rem;
  color: var(--danger);
  font-weight: 700;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}


input,
select,
textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(100, 116, 139, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
  transform: translateY(-1px);
}

input.field-error,
select.field-error,
textarea.field-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
  background: rgba(239, 68, 68, 0.08);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

select[multiple] {
  min-height: 170px;
}

.multi-select-field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

select[data-enhanced="true"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.18);
  backdrop-filter: var(--glass-blur);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.checkbox-grid.is-disabled {
  opacity: 0.6;
}

.checkbox-grid[hidden] {
  display: none !important;
}

.checkbox-empty {
  margin: 0;
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkbox-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.95rem;
  background: var(--surface-solid);
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.checkbox-option:hover {
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.checkbox-option.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkbox-option input {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.35rem;
  border: 1.6px solid var(--border-strong);
  background: var(--surface-solid);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-option input:checked {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.checkbox-option input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: #000;
  line-height: 1;
}

.checkbox-option input:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.checkbox-option .checkbox-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checkbox-option.locked .checkbox-label::after {
  content: ' (locked)';
  color: var(--text-subtle);
  font-weight: 500;
}

.help-text {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.help-text.warning {
  color: #b45309;
}

.help-text.error {
  color: #b91c1c;
}

.clinical-threshold {
  margin-top: 0.6rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-message {
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  background: var(--primary-soft);
  color: var(--text-primary);
}

.form-message[hidden] {
  display: none !important;
}

.form-message.error {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.3);
  color: #991b1b;
}

.form-message.success {
  background: var(--success-soft);
  border-color: rgba(22, 163, 74, 0.3);
  color: #166534;
}

.form-message.info {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--text-strong);
}

.form-meta {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-meta[hidden] {
  display: none !important;
}

.migration-alert {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.18);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.migration-alert[hidden] {
  display: none !important;
}

.migration-alert h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.migration-alert p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.migration-alert__table {
  margin-top: 0.9rem;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.75);
}

.migration-alert__table table {
  width: 100%;
  border-collapse: collapse;
}

.migration-alert__table th,
.migration-alert__table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.migration-alert__table thead {
  background: rgba(250, 204, 21, 0.24);
}

.migration-alert__table tbody tr:last-child td {
  border-bottom: none;
}

.migration-alert__footer {
  margin-top: 0.9rem;
  font-family: var(--font-body, 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.table-container {
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: 1.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.table-container table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--text-primary);
}

.table-container thead {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.08));
}

.table-container th,
.table-container td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.table-container th.numeric,
.table-container td.numeric {
  text-align: right;
}

.table-container th {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.table-container tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.12);
}

.table-container tbody tr:hover {
  background: rgba(37, 99, 235, 0.12);
  transition: background 0.2s ease;
}

.table-container td:first-child {
  font-weight: 600;
}

.table-container td.actions-cell {
  width: 1%;
  white-space: nowrap;
}

.table-container td .actions {
  display: inline-flex;
  gap: 0.5rem;
}

.table-container td .actions button {
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
}

.table-container td .actions button:disabled {
  opacity: 0.45;
}

.update-card {
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1.1rem;
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}

.update-card time {
  color: var(--text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 12000;
}

.modal.modal--background {
  z-index: 11500;
  pointer-events: none;
}

.modal[hidden] {
  display: none !important;
}


.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.2), transparent 50%),
    rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(28px) saturate(160%);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.1rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.92));
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.25);
  color: var(--text-primary);
  backdrop-filter: blur(30px);
  animation: modalFade 0.32s ease;
}

.evaluation-delete-card {
  width: min(460px, 100%);
}

.evaluation-delete-card .modal-header {
  padding-bottom: 0.5rem;
}

.evaluation-delete-card .form-actions {
  margin-top: 1.2rem;
  justify-content: flex-end;
}

#proof-upload-modal {
  z-index: 12000;
}

#educator-proof-modal,
#educator-comment-modal {
  z-index: 13000;
}

#revalidation-modal {
  z-index: 13500;
}

.toast {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 14000;
}

.toast-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
}

.toast-card p {
  margin: 0;
}

.toast--success .toast-card {
  border-color: rgba(34, 197, 94, 0.6);
}

.toast--warning .toast-card {
  border-color: rgba(251, 146, 60, 0.6);
}

.toast--error .toast-card {
  border-color: rgba(248, 113, 113, 0.65);
}

.toast--info .toast-card {
  border-color: rgba(59, 130, 246, 0.6);
}
.educator-modal-card {
  width: min(600px, 100%);
}
.educator-staff-modal-card {
  width: min(1100px, 100%);
  background:
    radial-gradient(circle at top left, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.2), transparent 48%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(233, 229, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.22);
}
.validator-staff-modal-card {
  width: min(1000px, 100%);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06)),
    var(--surface-solid);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.validator-return-card {
  width: min(680px, 100%);
  background:
    linear-gradient(150deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08)),
    var(--surface-solid);
  border: 1px solid rgba(37, 99, 235, 0.18);
}
.validator-return-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.validator-return-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.validator-return-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.validator-return-stage {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.validator-return-stage:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.4);
}
.validator-return-stage input {
  grid-row: 1 / span 2;
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-solid);
  appearance: none;
  display: grid;
  place-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.validator-return-stage input::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.2s ease;
}
.validator-return-stage input:checked::after {
  transform: scale(1);
}
.validator-return-stage input:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}
.validator-return-stage input:disabled {
  border-color: var(--border-glass);
  box-shadow: none;
  opacity: 0.6;
  cursor: not-allowed;
}
.validator-return-stage__title {
  grid-column: 2;
  font-weight: 600;
  color: var(--text-strong);
}
.validator-return-stage__meta {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.validator-return-stage:has(input:checked) {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}
.validator-return-stage:has(input:checked) .validator-return-stage__title {
  color: var(--primary-dark);
}

.validator-return-stage:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.75;
}

.educator-staff-modal-body {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.educator-staff-modal-body.preceptor-dialog--streamlined {
  padding: 1.35rem;
  border-radius: 1.6rem;
  background: linear-gradient(150deg, rgba(243, 232, 255, 0.75), rgba(224, 231, 255, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.validator-staff-modal-body {
  gap: 1.75rem;
}
.validator-statuses {
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
  border-radius: 1.1rem;
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.validator-statuses__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.validator-statuses__header .pill {
  align-self: center;
}

.validator-statuses__note {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}
.validator-status-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem 1rem;
  padding: 0;
  list-style: none;
}
.validator-status-legend li {
  padding: 0;
}
.validator-status-legend .educator-status-button {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.6)),
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, filter 150ms ease;
}
.validator-status-legend .educator-status-button:hover,
.validator-status-legend .educator-status-button:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.05);
}
.validator-status-legend .educator-status-button[aria-pressed='true'] {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.12)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.7));
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: var(--shadow-strong);
}
.validator-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}

.modal-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.modal-chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.card-chip-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem;
}

.modal-chip {
  background: var(--chip-surface);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: var(--card-ink);
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
  border: 1px solid var(--border-glass);
}

.modal-toolbar__filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.validator-staff-modal-section {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
}
.validator-staff-modal-section header {
  align-items: flex-start;
}
.validator-staff-modal-section .status-count {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.1));
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.validator-staff-modal-section .status-count.status-count--alert {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 10px 18px rgba(248, 113, 113, 0.25);
}
.validator-staff-modal-section .status-list {
  margin-top: 0.35rem;
}
.validator-assignment-list .status-list-item {
  border-left: 4px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.6));
}
.validator-assignment-list .status-list-actions {
  gap: 0.35rem;
}
.validator-section-pagination {
  margin-top: 0.5rem;
}
.validator-section-pagination .ghost {
  color: var(--text-primary);
}
.validator-section-toggle {
  align-self: flex-end;
  margin-top: 0.25rem;
}
.validator-staff-card {
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.06), rgba(14, 165, 233, 0.06)),
    var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-strong);
}
.validator-staff-card header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 0.75rem;
}
.validator-staff-card .table-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  --sticky-col-1: 230px;
  --sticky-col-2: 150px;
}
.educator-staff-card .table-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  --sticky-col-1: 230px;
  --sticky-col-2: 150px;
}

.validator-staff-card .table-container table {
  min-width: 980px;
}

.educator-staff-card .table-container table {
  min-width: 980px;
}

.validator-staff-card .table-container th:nth-child(1),
.validator-staff-card .table-container td:nth-child(1),
.validator-staff-card .table-container th:nth-child(2),
.validator-staff-card .table-container td:nth-child(2) {
  position: sticky;
  background: var(--surface-solid);
  z-index: 4;
}

.educator-staff-card .table-container th:nth-child(1),
.educator-staff-card .table-container td:nth-child(1),
.educator-staff-card .table-container th:nth-child(2),
.educator-staff-card .table-container td:nth-child(2) {
  position: sticky;
  background: var(--surface-solid);
  z-index: 4;
}

.validator-staff-card .table-container th:nth-child(1),
.validator-staff-card .table-container td:nth-child(1) {
  left: 0;
  min-width: var(--sticky-col-1);
  max-width: var(--sticky-col-1);
  z-index: 5;
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.2);
}

.educator-staff-card .table-container th:nth-child(1),
.educator-staff-card .table-container td:nth-child(1) {
  left: 0;
  min-width: var(--sticky-col-1);
  max-width: var(--sticky-col-1);
  z-index: 5;
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.2);
}

.validator-staff-card .table-container th:nth-child(2),
.validator-staff-card .table-container td:nth-child(2) {
  left: var(--sticky-col-1);
  min-width: var(--sticky-col-2);
  max-width: var(--sticky-col-2);
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.18);
}

.educator-staff-card .table-container th:nth-child(2),
.educator-staff-card .table-container td:nth-child(2) {
  left: var(--sticky-col-1);
  min-width: var(--sticky-col-2);
  max-width: var(--sticky-col-2);
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.18);
}

.validator-staff-card .table-container thead th:nth-child(-n + 2) {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.educator-staff-card .table-container thead th:nth-child(-n + 2) {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.validator-staff-card .table-container tbody tr:nth-child(even) td:nth-child(-n + 2) {
  background: #eef2f7;
}

.educator-staff-card .table-container tbody tr:nth-child(even) td:nth-child(-n + 2) {
  background: #eef2f7;
}

.validator-staff-card .table-container tbody tr:hover td:nth-child(-n + 2) {
  background: #dbeafe;
}

.educator-staff-card .table-container tbody tr:hover td:nth-child(-n + 2) {
  background: #dbeafe;
}

.educator-staff-modal-placeholder,
.educator-status-legend {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-soft);
}

.educator-status-legend {
  margin-top: 1rem;
}

.educator-status-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-primary);
  display: grid;
  gap: 0.35rem;
}

.educator-status-button {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.educator-status-button:hover,
.educator-status-button:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  outline: none;
}

.educator-status-button[aria-pressed='true'] {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  font-weight: 600;
}

.educator-staff-modal-section header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.educator-staff-modal-section .status-list {
  margin-top: 1rem;
}

.educator-staff-modal-section .status-list-item + .status-list-item {
  margin-top: 0.75rem;
}
.assignment-detail-card {
  width: min(980px, 100%);
  max-height: 95vh;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(237, 242, 255, 0.92));
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.22);
}

body.checklist-only .modal-backdrop {
  display: none;
}

body.checklist-only .modal {
  position: static;
  display: block;
  padding: 2rem 1.5rem;
}

body.assignment-detail-page.checklist-only .app-header,
body.assignment-detail-page.checklist-only .site-footer,
body.assignment-detail-page.checklist-only #global-scroll-top {
  display: none;
}

body.assignment-detail-page.checklist-only .app-main > :not(.modal) {
  display: none;
}

body.assignment-detail-page.checklist-only .assignment-detail-card {
  max-height: none;
  margin: 0 auto;
}

body.assignment-detail-page.checklist-only .assignment-detail-header,
body.assignment-detail-page.checklist-only .checklist-only-hero {
  display: none;
}

body.assignment-detail-page.checklist-only .assignment-detail-grid,
body.assignment-detail-page.checklist-only #assignment-detail-workflow-summary,
body.assignment-detail-page.checklist-only #assignment-detail-materials,
body.assignment-detail-page.checklist-only #assignment-detail-resources,
body.assignment-detail-page.checklist-only #assignment-detail-comment-section {
  display: none;
}

.assignment-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.checklist-only-hero {
  display: none;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 255, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

.checklist-only-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checklist-only-hero__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.checklist-only-hero__intro h3 {
  margin: 0;
  font-size: 1.4rem;
}

.checklist-only-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.checklist-only-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.checklist-only-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.checklist-only-stat__value {
  font-weight: 600;
  color: var(--text-strong);
}

.assignment-workflow-summary {
  margin: 0 0 1.25rem;
  padding: 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(20, 184, 166, 0.22);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.96)),
    var(--surface-card);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

.assignment-workflow-summary__header,
.assignment-workflow-summary__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.assignment-workflow-summary__header {
  margin-bottom: 1rem;
}

.assignment-workflow-summary__header .muted {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.assignment-workflow-summary__header h4 {
  margin: 0;
  font-size: 1.08rem;
}

.assignment-workflow-summary__chip {
  flex: 0 0 auto;
  max-width: 260px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.assignment-workflow-summary__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.assignment-workflow-stat {
  min-width: 0;
  padding: 0.78rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.assignment-workflow-stat span {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.assignment-workflow-stat strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.94rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.assignment-workflow-summary__body {
  align-items: center;
  border-top: 1px solid rgba(20, 184, 166, 0.16);
  padding-top: 0.95rem;
}

.assignment-workflow-summary__body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.assignment-workflow-summary__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.assignment-workflow-summary__actions:empty {
  display: none;
}

.assignment-workflow-summary[data-risk="overdue"],
.assignment-workflow-summary[data-risk="expired"] {
  border-color: rgba(220, 38, 38, 0.22);
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.96)),
    var(--surface-card);
}

.assignment-workflow-summary[data-risk="due-soon"] {
  border-color: rgba(217, 119, 6, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.96)),
    var(--surface-card);
}

@media (max-width: 720px) {
  .assignment-workflow-summary__header,
  .assignment-workflow-summary__body {
    flex-direction: column;
  }

  .assignment-workflow-summary__chip {
    max-width: none;
    text-align: left;
  }

  .assignment-workflow-summary__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assignment-workflow-summary__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .assignment-workflow-summary__stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

.assignment-detail-close {
  align-self: flex-start;
}

.assignment-detail-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.assignment-detail-submeta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-subtle);
}

.assignment-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.assignment-detail-title-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.assignment-detail-status-badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-subtle);
}

.assignment-detail-section {
  margin: 1.35rem 0 1.1rem;
}

.assignment-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.assignment-detail-panel {
  background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.assignment-detail-section h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.assignment-detail-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
}

.assignment-detail-section-header h4 {
  margin: 0;
}

.assignment-detail-section-header .muted {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assignment-detail-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.assignment-detail-assessments-empty {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.assignment-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.assignment-step {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.assignment-step-toggle {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.assignment-step-toggle:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 4px;
  border-radius: 0.75rem;
}

.assignment-step-header {
  display: flex;
  gap: 0.85rem;
}

.assignment-step-number {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assignment-step-summary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.assignment-step-title {
  margin: 0;
  font-size: 1rem;
  color: var(--danger);
  font-weight: 700;
}

.assignment-step-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.assignment-step-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #94a3b8;
}

.assignment-step-status--rated .assignment-step-status-dot {
  background: #22c55e;
}

.assignment-step-status--draft .assignment-step-status-dot {
  background: #f59e0b;
}

.assignment-step-status--not-rated .assignment-step-status-dot {
  background: #cbd5f5;
}

.assignment-step-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.assignment-step-details[hidden] {
  display: none;
}

.assignment-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.assignment-step-description {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.55;
}

.assignment-step-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
}
.assignment-step-score {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.assignment-step-score__label {
  font-weight: 600;
  color: var(--text-primary);
}

.assignment-step-score__value {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-dark);
  font-weight: 600;
}

.assignment-step-score__meaning {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #0f766e;
  font-weight: 500;
}

.assignment-step-input {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.assignment-step-input label {
  font-weight: 500;
  color: var(--text-primary);
}

.assignment-step-input-range {
  font-size: 0.8rem;
}

.assignment-step-input input,
.assignment-step-input select {
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font: inherit;
  background: var(--surface-solid);
  color: var(--text-primary);
}

.assignment-step-meaning-list {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  gap: 0.25rem 0.6rem;
}

.assignment-step-meaning-list dd {
  color: var(--text-subtle);
}

.assignment-detail-checklist-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.submission-panel {
  border-radius: 1.05rem;
  padding: 1.1rem;
  background: var(--surface-card);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.submission-panel__divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
}

.submission-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.submission-panel .completion-summary,
.submission-panel .assessment-summary {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.submission-panel .assessment-summary__rate {
  color: var(--text-primary);
}

.completion-summary {
  border-radius: 0.95rem;
  padding: 0.9rem 1.05rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.completion-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.completion-summary__header .muted {
  margin: 0 0 0.2rem;
}

.completion-summary__status {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-subtle);
  background: var(--surface-solid);
}

.completion-summary__status--complete {
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.35);
  background: var(--success-soft);
}

.completion-summary__status--incomplete {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.completion-summary__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.completion-summary__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.completion-summary__item span:last-child {
  font-weight: 600;
}

.completion-summary__item--complete span:last-child {
  color: var(--success);
}

.completion-summary__item--incomplete span:last-child {
  color: #b45309;
}

.completion-summary__note {
  margin: 0;
  font-size: 0.85rem;
}

.assessment-summary {
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.assessment-summary__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.assessment-summary__header .muted {
  margin: 0 0 0.2rem;
}

.assessment-summary__rate {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.assessment-summary__subtext {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.assessment-summary__status {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: var(--surface-solid);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assessment-summary__status--pass {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.3);
}

.assessment-summary__status--complete {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.3);
}

.assessment-summary__status--draft {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.assessment-summary__status--fail {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
}

.assessment-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.assessment-summary__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.assessment-summary__value {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}

.assessment-summary__note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.assessment-summary__helper {
  margin: 0;
  font-size: 0.85rem;
}

.assignment-detail-checklist-actions .form-message {
  margin: 0;
}

.materials-preview {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
}

.materials-preview img,
.materials-preview video {
  max-width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.assignment-detail-comment {
  margin: 0;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.5;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  max-width: 72ch;
}

.assignment-detail-list {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(200px, 1.25fr);
  gap: 0.45rem 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.assignment-detail-list dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.assignment-detail-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.assignment-required-items {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 26rem);
}

.assignment-required-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.15rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #fff 0%, rgba(248, 250, 252, 0.96) 100%);
  color: var(--text-primary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.assignment-required-item-box {
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid rgba(100, 116, 139, 0.55);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 3px rgba(248, 250, 252, 0.92);
}

.assignment-required-item-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.assignment-required-item.is-complete {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98) 0%, rgba(236, 253, 245, 0.88) 100%);
  color: #166534;
}

.assignment-required-item.is-complete .assignment-required-item-box {
  border-color: #16a34a;
  background: #16a34a;
}

.assignment-required-item.is-in-progress {
  border-color: rgba(234, 179, 8, 0.38);
  background: linear-gradient(135deg, rgba(254, 252, 232, 0.98) 0%, rgba(254, 249, 195, 0.74) 100%);
}

.assignment-required-item.is-pending {
  border-color: rgba(148, 163, 184, 0.38);
}

.assignment-required-item-label {
  font-size: 0.92rem;
  font-weight: 800;
}

.assignment-required-item-state {
  width: fit-content;
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.78);
}

.assignment-detail-overview-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
  align-items: stretch;
}

.assignment-detail-overview-list > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 5rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.assignment-detail-overview-list > .assignment-detail-duplicate-field {
  display: none !important;
}

.assignment-detail-assessment-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.assessment-summary-card {
  border-radius: 1rem;
  padding: 0.95rem 1.05rem;
  background: var(--surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assessment-summary-card__header h5 {
  margin: 0;
  font-size: 1rem;
}

.assessment-summary-card__list {
  margin: 0;
  display: grid;
  gap: 0.55rem 1rem;
}

.assessment-summary-card__list dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.assessment-summary-card__list dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.assessment-summary-card__link {
  align-self: flex-start;
}

.assignment-detail-history-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.assignment-detail-history-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assessment-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assessment-history__item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.75));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.assessment-history__item--clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.assessment-history__item--clickable:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(224, 231, 255, 0.75));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.assessment-history__item--clickable:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 3px;
}

.assessment-history__item--selected {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.95), rgba(238, 242, 255, 0.8));
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.14);
}

.assessment-history__line {
  font-weight: 600;
}

.assessment-history__meta {
  font-size: 0.85rem;
}

.assessment-history__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.assessment-history__title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.assessment-history__status {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.assessment-history__status--pass {
  background: rgba(16, 185, 129, 0.15);
  color: #0f766e;
}

.assessment-history__status--fail {
  background: rgba(248, 113, 113, 0.15);
  color: #b91c1c;
}

.assessment-history__status--pending {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.assessment-history__status--scored {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

.assessment-history__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.assessment-history__metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.assessment-history__metric--inline {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.assessment-history__metric--full {
  grid-column: 1 / -1;
}

.assessment-history__metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  line-height: 1.4;
}

.assessment-history__metric-value {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.assignment-detail-list div:last-child {
  border-bottom: none;
}

.quiz-attempts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-attempts-list__button {
  width: 100%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(231, 240, 255, 0.9));
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quiz-attempts-list__button:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background:
    linear-gradient(140deg, rgba(238, 242, 255, 0.98), rgba(224, 231, 255, 0.9));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.quiz-attempts-list__button:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 3px;
}

.quiz-attempts-list__button--active {
  border-color: rgba(79, 70, 229, 0.55);
  background:
    linear-gradient(140deg, rgba(224, 231, 255, 0.98), rgba(199, 210, 254, 0.9));
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.18);
}

.quiz-question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-question-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.1rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 255, 0.92));
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.quiz-question-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.quiz-question-card__title {
  font-weight: 600;
  color: var(--text-primary);
}

.quiz-question-card__status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-subtle);
  white-space: nowrap;
}

.quiz-question-card__status--correct {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.quiz-question-card__status--incorrect {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.quiz-question-card__meta {
  display: grid;
  gap: 0.35rem;
  color: var(--text-subtle);
}

.assignment-detail-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.assignment-detail-panel .pill {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.assignment-detail-title-actions .primary,
.assignment-detail-title-actions .secondary,
.assignment-detail-title-actions .ghost,
.assignment-detail-title-actions .success,
.assignment-detail-title-actions .warning {
  padding-inline: 0.9rem;
  white-space: nowrap;
}

.assignment-detail-resources {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.assignment-detail-resources p {
  margin: 0;
}

.assignment-delete-card {
  width: min(520px, 92vw);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.assignment-delete-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.assignment-delete-message {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.assignment-delete-warning {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.assignment-delete-warning .material-icon {
  color: var(--danger);
  font-size: 1.35rem;
}

.assignment-delete-warning p {
  margin: 0;
  color: var(--text-primary);
}

.assignment-delete-card .form-actions {
  margin-top: 1.25rem;
  justify-content: flex-end;
  gap: 0.75rem;
}

.competency-action-card {
  width: min(520px, 92vw);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.competency-action-card[data-variant='danger'] {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.competency-action-card[data-variant='primary'] {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.competency-action-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.competency-action-message {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.competency-action-callout {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.12);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.competency-action-card[data-variant='danger'] .competency-action-callout {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}

.competency-action-card[data-variant='primary'] .competency-action-callout {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
}

.competency-action-callout .material-icon {
  color: var(--text-primary);
  font-size: 1.35rem;
}

.competency-action-card[data-variant='danger'] .competency-action-callout .material-icon {
  color: var(--danger);
}

.competency-action-card[data-variant='primary'] .competency-action-callout .material-icon {
  color: var(--primary);
}

.competency-action-callout p {
  margin: 0;
  color: var(--text-primary);
}

.competency-action-card .form-actions {
  margin-top: 1.25rem;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-card header > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.modal-eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pill--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.modal-loading {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.proof-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proof-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.proof-list-item {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}

.proof-list-name {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.12);
}

.proof-badge--active {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.25);
  background: rgba(13, 148, 136, 0.12);
}

.proof-badge--archived {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(217, 119, 6, 0.15);
}

.proof-list-meta {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.proof-list-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.proof-list-actions .secondary {
  font-size: 0.9rem;
  padding-inline: 0.9rem;
}

.proof-status-card {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: var(--surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.proof-status-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.proof-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.proof-status-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.proof-status-label {
  color: var(--text-muted);
}

.proof-status-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.educator-comment-history {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: var(--surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.educator-comment-history h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.educator-comment-history p {
  margin: 0;
  white-space: pre-wrap;
}
.modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.modal-card header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.modal-card .form-actions {
  margin-top: 0.5rem;
}

.staff-editor-card {
  padding: 0;
  overflow: hidden;
  background: var(--surface-solid);
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 100%);
}

.staff-editor-header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem 2.5rem 2rem;
  color: #f8fafc;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.85), transparent 60%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.65), transparent 65%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.92));
  flex-shrink: 0;
}

.staff-editor-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(59, 130, 246, 0.28), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.staff-editor-header-content {
  position: relative;
  display: grid;
  gap: 1.4rem;
  z-index: 1;
}

.staff-editor-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.staff-editor-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.15rem;
  background: rgba(15, 118, 110, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ecfeff;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 24px rgba(15, 23, 42, 0.25);
}

.staff-editor-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.staff-editor-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.7);
}

.staff-editor-header h3 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
}

.staff-editor-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.5;
  max-width: 40ch;
}

.staff-editor-header-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
  color: inherit;
}

.staff-editor-status-chip {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(45, 212, 191, 0.22);
  color: #ecfeff;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.35);
}

.staff-editor-status-chip[data-status='inactive'] {
  background: rgba(148, 163, 184, 0.4);
  color: #f8fafc;
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.35);
  border-color: rgba(226, 232, 240, 0.4);
}

.staff-editor-meta-grid {
  margin: 0;
  display: grid;
  gap: 0.7rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.staff-editor-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.staff-editor-meta-grid dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.staff-editor-meta-grid dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.staff-editor-close {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.staff-editor-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.55);
}

.staff-editor-form {
  padding: 2.4rem 2.5rem 2.6rem;
  gap: 2rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), transparent 28%),
    var(--surface-solid);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.staff-editor-quick-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 1.25rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.staff-editor-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-primary);
}

.staff-editor-stat .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.staff-editor-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.staff-editor-fieldset {
  margin: 0;
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.5rem 1.6rem;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.staff-editor-fieldset legend {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.staff-editor-fieldset > .grid {
  margin-top: 1.2rem;
}

.staff-editor-resignation-note {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  font-size: 0.95rem;
  line-height: 1.6;
}

.staff-editor-actions {
  margin-top: 0.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  gap: 1rem;
}

.staff-editor-actions button[type='submit'] {
  min-width: 160px;
}

.staff-editor-actions .secondary {
  min-width: 140px;
}

@media (max-width: 720px) {
  .staff-editor-header {
    flex-direction: column;
    padding: 2rem 1.8rem 1.6rem;
  }

  .staff-editor-header-meta {
    width: 100%;
  }

  .staff-editor-close {
    align-self: flex-end;
  }

  .staff-editor-form {
    padding: 2rem 1.8rem 2.4rem;
  }
}

.proof-upload-card {
  width: min(900px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 2.4rem 2.2rem 2.2rem;
}

.proof-upload-content {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.8fr);
  gap: 2rem;
  align-items: start;
}

.proof-upload-summary {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem;
  border-radius: 1.4rem;
  border: 1px solid var(--border-glass);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(13, 148, 136, 0.08)), var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.08);
  font-size: 1.6rem;
}

.summary-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.summary-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.proof-upload-summary strong {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.summary-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-meta-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.summary-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.summary-meta-row dt {
  font-weight: 600;
  color: var(--text-muted);
}

.summary-meta-row dd {
  margin: 0;
  color: var(--text-primary);
}

.summary-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.proof-upload-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.proof-upload-highlights li span {
  margin-right: 0.35rem;
}

.proof-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#proof-upload-org-section {
  order: 1;
}

#proof-upload-file-section {
  order: 2;
}

#proof-upload-submission-section {
  order: 3;
}

#proof-upload-validity-section {
  order: 4;
}

#proof-upload-history-section {
  order: 5;
}

.proof-upload-form > .form-actions {
  order: 6;
}

.proof-section {
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.proof-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.existing-proof-box {
  border: 1px dashed var(--border-strong);
  border-radius: 1rem;
  background: var(--surface-raised);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.existing-proof-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.existing-proof-group__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.existing-proof-list {
  border: 1px solid var(--border-glass);
  border-radius: 0.9rem;
  padding: 0.6rem;
  background: var(--surface-soft);
}

.existing-proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.existing-proof-row:last-child {
  border-bottom: none;
}

.existing-proof-file {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-primary);
  flex: 1 1 14rem;
  min-width: 0;
}

.existing-proof-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.existing-proof-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-proof-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

  .existing-proof-icon {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
    background: var(--surface-soft);
  border-radius: 0.6rem;
}

.existing-proof-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.existing-proof-menu {
  position: relative;
}

.existing-proof-menu__toggle {
  list-style: none;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  color: var(--text-muted);
}

.existing-proof-menu__toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.existing-proof-menu__toggle::marker,
.existing-proof-menu__toggle::-webkit-details-marker {
  display: none;
  content: '';
}

.existing-proof-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-raised);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.existing-proof-menu__item {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  cursor: pointer;
}

.existing-proof-menu__item:hover {
  background: var(--surface-soft);
}

.existing-proof-menu__item.danger {
  color: var(--text-primary);
  background: var(--surface-soft);
  border: 1px solid var(--border-glass);
  box-shadow: none;
}

.selected-files {
  border: 1px solid var(--border-glass);
  border-radius: 0.9rem;
  padding: 0.75rem;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.selected-files__label {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.selected-files__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proof-upload-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proof-upload-dropzone input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.dropzone-body {
  border: 1px dashed var(--border-strong);
  border-radius: 1rem;
  padding: 1.1rem;
  background: var(--surface-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proof-upload-dropzone:focus-within .dropzone-body,
.proof-upload-dropzone.is-dragover .dropzone-body {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dropzone-title {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.dropzone-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dropzone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.selected-files__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.selected-files__toggle {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.selected-files__toggle:hover,
.selected-files__toggle:focus {
  text-decoration: underline;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-raised);
  width: 100%;
}

.selected-file-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.selected-file-icon {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: var(--surface-soft);
}

.selected-file-label {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.selected-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.selected-file-size {
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.selected-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

.selected-file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.15rem 0.25rem;
  cursor: pointer;
}

.selected-file-remove--icon {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
}

.selected-file-remove:hover,
.selected-file-remove:focus {
  color: var(--text-primary);
  text-decoration: underline;
}

.selected-file-remove--icon:hover,
.selected-file-remove--icon:focus {
  background: var(--surface-soft);
  text-decoration: none;
}

  .file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 1rem;
    background: var(--surface-soft);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  font-size: 0.95rem;
}

.file-chip__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 0.2rem;
}

.file-chip__remove:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.proof-validity-group {
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proof-validity-group legend {
  font-weight: 600;
  color: var(--text-primary);
}

.proof-validity-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .proof-upload-card {
    padding: 1.8rem;
  }

  .proof-upload-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .proof-upload-form {
    padding: 1.1rem 1.2rem 1.3rem;
  }

  .summary-meta-row {
    grid-template-columns: 1fr;
  }
}
.proof-validity-option input[type='radio'] {
  accent-color: var(--primary);
}

.proof-validity-option input[type='date'] {
  flex: 0 0 auto;
  width: 180px;
}
.proof-only-scenario {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.proof-only-scenario h4 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.scenario-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.scenario-steps {
  list-style: none;
  counter-reset: scenario-step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.scenario-steps li {
  counter-increment: scenario-step;
  background: var(--surface-soft);
  border: 1px solid var(--border-glass);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem 0.85rem 3.1rem;
  position: relative;
  line-height: 1.55;
  color: var(--text-secondary);
}

.scenario-steps li::before {
  content: counter(scenario-step);
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.scenario-steps strong {
  color: var(--text-primary);
}

.scenario-steps em {
  font-style: normal;
  color: var(--primary-dark);
}
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#staff-table-message {
  margin-bottom: 1rem;
}

@media (max-width: 960px) {
  #app {
    padding: 2rem 1.25rem 3.5rem;
  }

  .table-container table {
    min-width: 600px;
  }

  .tabs {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-summary {
    width: 100%;
    justify-content: space-between;
  }
  .table-container table {
    min-width: 540px;
  }

  .modal {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 1.6rem 1rem 3rem;
  }

  .table-toolbar,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}

/* Staff directory page ---------------------------------------------------- */

body.staff-directory-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.8rem;
  padding: clamp(1.5rem, 4vw, 3.4rem);
}

.staff-directory-header,
.staff-directory-main {
  width: min(1180px, 100%);
}

.staff-directory-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.8rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.staff-directory-hero::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.18), transparent 58%),
    radial-gradient(circle at 82% 78%, rgba(14, 165, 233, 0.2), transparent 54%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
  filter: var(--glass-blur);
  opacity: 0.9;
  z-index: 0;
}

.staff-directory-hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.hero-lede {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 0.6rem;
}

.hero-actions .ghost {
  text-decoration: none;
}

.directory-summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-card {
  background: var(--surface-solid);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.summary-card h2 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.summary-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.staff-directory-main {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.directory-controls header h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.directory-controls header p {
  margin: 0;
}

.directory-filters {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}

.directory-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.directory-filters input,
.directory-filters select {
  width: 100%;
}

.directory-refresh {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.directory-results {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.directory-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.directory-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: 1.2rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.directory-card:hover,
.directory-card:focus-within {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.directory-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.directory-card-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.22));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.directory-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.directory-card-title h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.directory-card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.directory-card-unitline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.directory-status-chip {
  white-space: nowrap;
}

.directory-card-units {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.directory-unit-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.directory-unit-chip.muted {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-muted);
}

.directory-card-meta {
  display: grid;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.directory-card-meta div {
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr;
  gap: 0.6rem;
}

.directory-card-meta dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.directory-card-meta dd {
  margin: 0;
  color: var(--text-secondary);
}

.directory-card-actions {
  display: flex;
  justify-content: flex-end;
}

.directory-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-card-link::after {
  content: '→';
  font-size: 0.95rem;
}

.directory-card-link:hover,
.directory-card-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
}

.directory-card-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

@media (max-width: 880px) {
  .directory-card-header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .directory-status-chip {
    justify-self: flex-start;
    margin-top: 0.4rem;
  }
}

@media (max-width: 720px) {
  body.staff-directory-page {
    padding: 1.4rem;
  }

  .directory-card-meta div {
    grid-template-columns: 1fr;
  }
}

body.staff-detail-page {
  padding: clamp(2.4rem, 3vw + 1.4rem, 3.6rem) clamp(1.5rem, 3vw, 4rem) 3.6rem;
}

body.staff-detail-page .card {
  margin-bottom: 0;
}

.staff-detail-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: min(1080px, 100%);
}

.staff-detail-header::before {
  content: '';
  position: absolute;
  inset: -3rem -6rem auto -6rem;
  height: clamp(220px, 32vw, 320px);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.3), transparent 55%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.08));
  z-index: -2;
  opacity: 0.9;
}

.staff-detail-header .back-link {
  align-self: flex-start;
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.78);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.staff-detail-header .back-link:hover,
.staff-detail-header .back-link:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.staff-detail-header .back-link:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 3px;
}

.staff-detail-header .back-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.staff-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(2.2rem, 4vw, 2.9rem);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.96), rgba(14, 165, 233, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.4);
  color: rgba(241, 245, 255, 0.95);
}

.staff-hero::before,
.staff-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.staff-hero::before {
  inset: auto -18% -38% auto;
  width: clamp(220px, 28vw, 320px);
  height: clamp(220px, 28vw, 320px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 70%);
}

.staff-hero::after {
  inset: -38% auto auto -18%;
  width: clamp(260px, 32vw, 380px);
  height: clamp(260px, 32vw, 380px);
  background: radial-gradient(circle, rgba(191, 219, 254, 0.45), transparent 70%);
}

.staff-hero .muted {
  color: rgba(226, 232, 255, 0.78);
}

.staff-hero-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.8rem);
  position: relative;
  z-index: 1;
}

.staff-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 220px;
}

.staff-hero-heading h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.staff-hero-eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(226, 232, 255, 0.7);
}

.staff-hero-avatar {
  width: clamp(70px, 11vw, 92px);
  height: clamp(70px, 11vw, 92px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(148, 163, 184, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 18px 40px rgba(15, 23, 42, 0.45);
}

.staff-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-left: auto;
}

.staff-hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-hero-chip.empty {
  opacity: 0.6;
}

.staff-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.1rem 1.6rem;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.staff-hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.staff-hero-meta dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.78);
}

.staff-hero-meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.meta-chip::before {
  content: '●';
  font-size: 0.65rem;
  opacity: 0.7;
}

.staff-detail-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}

.staff-detail-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.section-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-subtle);
}

.staff-spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.9rem, 3vw, 2.4rem);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.8)),
    radial-gradient(circle at 18% 24%, rgba(37, 99, 235, 0.2), transparent 58%),
    radial-gradient(circle at 88% 78%, rgba(14, 165, 233, 0.18), transparent 60%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 26px 55px rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.staff-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%);
  mix-blend-mode: screen;
}

.staff-spotlight-header {
  position: relative;
  z-index: 1;
}

.spotlight-lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.spotlight-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.spotlight-highlight {
  background: rgba(248, 250, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spotlight-highlight .highlight-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
  margin: 0;
}

.spotlight-highlight .highlight-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.spotlight-highlight .highlight-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.staff-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 255, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 24px 50px rgba(148, 163, 184, 0.25);
}

.staff-metrics-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.staff-metric-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.staff-metric {
  padding: 1.25rem 1.35rem;
  border-radius: 1.2rem;
  background: rgba(248, 250, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 140px;
}

.staff-metric:nth-of-type(2n) {
  background: rgba(219, 234, 254, 0.45);
}

.staff-metric:nth-of-type(3n) {
  background: rgba(224, 231, 255, 0.48);
}

.metric-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-value {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.metric-hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.staff-detail-filters header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.staff-detail-filters p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.filters-field {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filters-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-subtle);
}

.filters-row input[type='search'] {
  flex: 1 1 auto;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-solid);
  font-size: 1rem;
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.filters-row input[type='search']:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}

.filters-row select {
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-glass);
  background:
    var(--surface-soft)
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" fill="none" viewBox="0 0 12 8"%3E%3Cpath fill="%2364748b" d="M10.59.59 6 5.17 1.41.59 0 2l6 6 6-6L10.59.59Z"/%3E%3C/svg%3E')
    no-repeat right 0.8rem center;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 200px;
}

.filters-row select:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}

.filters-quick {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.85);
  padding: 0.8rem 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chip .chip-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-chip .chip-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.filter-chip:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}

.filter-chip.active {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.2));
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.25);
}

.filters-summary {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.filters-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filters-summary dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.filters-summary dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.staff-detail-columns {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr);
  align-items: start;
}

.staff-detail-columns > * {
  height: 100%;
}

body.staff-detail-page .tabs {
  margin-bottom: 1.5rem;
}

.assignment-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.validator-actions-panel {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 1rem;
}

.validator-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.validator-inline-panel {
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(59, 130, 246, 0.25);
  background: rgba(248, 250, 252, 0.8);
  display: grid;
  gap: 0.75rem;
}

.validator-inline-panel h4 {
  margin: 0;
  font-size: 1rem;
}

.validator-inline-grid {
  display: grid;
  gap: 0.5rem;
}

.validator-inline-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.validator-inline-field {
  display: grid;
  gap: 0.4rem;
}

.validator-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.validator-inline-panel textarea,
.validator-inline-panel input[type='text'],
.validator-inline-panel input[type='number'],
.validator-inline-panel input[type='date'] {
  width: 100%;
}

.validator-relationship-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: grid;
  gap: 1rem;
}

.validator-relationship-panel form {
  display: grid;
  gap: 0.9rem;
}

.validator-relationship-panel label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.validator-relationship-panel textarea,
.validator-relationship-panel input[type='text'],
.validator-relationship-panel input[type='number'],
.validator-relationship-panel input[type='date'] {
  width: 100%;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0.6rem;
}

.detail-tab {
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-tab:hover,
.detail-tab:focus-visible {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.detail-tab.active {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.2));
  color: var(--primary);
}

.detail-section {
  display: grid;
  gap: 0.75rem;
}

.detail-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.detail-history-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.detail-checklist,
.detail-materials {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.detail-materials li {
  display: grid;
  gap: 0.25rem;
}

.assignment-intro {
  display: grid;
  gap: 0.35rem;
}

.assignment-intro .section-eyebrow {
  margin: 0;
}

.assignment-count {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.assignment-pager {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}

.pager-button {
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  color: var(--text-primary);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pager-button:hover:enabled,
.pager-button:focus-visible:enabled {
  background: white;
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.pager-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pager-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 10ch;
  text-align: center;
}

.tab .tab-count {
  margin-left: 0.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.tab.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.assignment-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.assignment-item {
  background: var(--surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: 1.2rem;
  padding: 1.2rem 1.3rem;
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.assignment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.assignment-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.assignment-tag::before {
  content: '●';
  font-size: 0.65rem;
  opacity: 0.6;
}

.assignment-item:hover,
.assignment-item:focus-visible {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.assignment-item:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}

.assignment-item.active {
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.24);
}

.assignment-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.assignment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.assignment-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.status-chip[data-status='completed'] {
  background: var(--success-soft);
  color: var(--success);
}

.status-chip[data-status='pending'],
.status-chip[data-status='in-progress'],
.status-chip[data-status='in_progress'],
.status-chip[data-status='requested'],
.status-chip[data-status='under_process'],
.status-chip[data-status='preceptor_review'],
.status-chip[data-status='waiting_preceptor_rating'],
.status-chip[data-status='waiting_preceptor'] {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.status-chip[data-status='valid'] {
  background: var(--success-soft);
  color: var(--success);
}

.status-chip[data-status='returned'],
.status-chip[data-status='failed'],
.status-chip[data-status='remediation'] {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-chip[data-status='resigned'] {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-chip[data-status='inactive'] {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
}

.status-chip[data-status='expired'] {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
}

.status-chip[data-status='waiting_educator_comment'],
.status-chip[data-status='preceptor_pending_upload'],
.status-chip[data-status='to_validate'],
.status-chip[data-status='waiting_evidence'],
.status-chip[data-status='waiting_quiz'] {
  background: rgba(14, 165, 233, 0.16);
  color: #0369a1;
}

.assignment-detail {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  min-height: 360px;
}

.assignment-detail.empty {
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
}

.assignment-detail h2 {
  margin: 0;
  font-size: 1.35rem;
}

.assignment-detail .detail-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.assignment-detail .detail-subheading {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.detail-grid {
  display: grid;
  gap: 1.1rem 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.detail-grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}

.detail-grid dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.detail-note {
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.detail-note.empty {
  color: var(--text-muted);
  font-style: italic;
}

#assignment-message {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

#assignment-message.error {
  color: var(--danger);
}

@media (max-width: 1024px) {
  .staff-hero {
    padding: 2rem;
  }

  .staff-hero-chips {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .staff-detail-columns {
    grid-template-columns: 1fr;
  }
  .staff-hero {
    gap: 1.65rem;
  }

  .staff-hero-main {
    align-items: flex-start;
  }

  .staff-hero-avatar {
    order: -1;
  }

  .assignment-detail {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  body.staff-detail-page {
    padding: 2rem 1.5rem 2.6rem;
  }

  .staff-hero {
    padding: 1.8rem;
  }

  .staff-hero-chips {
    justify-content: flex-start;
  }

  .filters-row input[type='search'] {
    flex-basis: 100%;
  }

  .filters-row select {
    min-width: 0;
    flex: 1 1 180px;
  }


}

/* Magnet checklist review page */
body.checklist-review {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.72), rgba(248, 250, 252, 0.96) 34%, rgba(255, 255, 255, 1));
}

.checklist-page-main {
  padding-top: 0;
  max-width: 1180px;
  margin: 0 auto;
}

body.checklist-review .muted {
  color: var(--muted);
}

body.checklist-review .app-header {
  margin-bottom: 1rem;
}

body.checklist-review .app-header-content {
  gap: 0.65rem;
}

body.checklist-review .app-header h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.15;
}

.checklist-review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
  border-radius: 8px;
  border-color: rgba(20, 184, 166, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.86)),
    var(--surface-card);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.checklist-review-hero__intro {
  min-width: 0;
}

.checklist-review-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #0f766e;
  font-weight: 800;
}

.checklist-review-hero__intro h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.18;
}

.checklist-review-hero__stats {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  min-width: 0;
}

.checklist-review-stat {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  padding: 0.72rem 0.78rem;
  background: rgba(255, 255, 255, 0.82);
}

.checklist-review-stat[hidden] {
  display: none;
}

.checklist-review-stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.checklist-review-stat__value {
  margin-top: 0.3rem;
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.checklist-review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.checklist-review-panel {
  min-height: 100%;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.checklist-review-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checklist-review-panel__header h3 {
  margin: 0.25rem 0 0;
}

.checklist-review-panel__pill {
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.checklist-review-panel--side {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}


.checklist-review #checklist-review-body {
  gap: 1.1rem;
}


.checklist-review-guidance {
  margin: -0.15rem 0 0.4rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--text) 86%, #0f766e);
}

.checklist-review-guidance--responsibility {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--text) 87%, #0f172a);
  font-weight: 600;
}


.checklist-preceptor-rating {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.94));
  padding: 1rem;
  margin-bottom: 1rem;
}

.checklist-preceptor-rating__header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 0.9rem;
  align-items: start;
}

.checklist-preceptor-rating__header h4 {
  margin: 0;
}

.checklist-preceptor-rating__header .muted {
  margin: 0.35rem 0 0;
}

.checklist-preceptor-rating__range-note {
  margin: 0.42rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 44%, white);
  background: color-mix(in srgb, var(--primary) 10%, white);
  color: color-mix(in srgb, var(--text) 70%, var(--primary));
  font-size: 0.79rem;
  font-weight: 700;
}

.checklist-preceptor-rating__stats {
  margin: 0.85rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}

.checklist-preceptor-rating__stats > div {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.5rem 0.6rem;
}

.checklist-preceptor-rating__stats dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.checklist-preceptor-rating__stats dd {
  margin: 0.12rem 0 0;
  font-weight: 700;
}

.checklist-preceptor-rating__meanings {
  border: 1px solid color-mix(in srgb, var(--primary) 20%, white);
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 5%, white);
  padding: 0.55rem 0.65rem;
}

.checklist-preceptor-rating__meanings p {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
}

.checklist-preceptor-rating__meanings ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.77rem;
}

.checklist-step-row__rating-input {
  margin-top: 0.55rem;
  width: 150px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, white);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text);
  background: white;
}

.checklist-step-row__rating-input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, white);
  outline-offset: 1px;
}

.checklist-self-review {
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(255, 255, 255, 0.94));
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.checklist-self-review__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.checklist-self-review__closure {
  margin: 0 0 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid color-mix(in srgb, #16a34a 30%, white);
  background: color-mix(in srgb, #16a34a 8%, white);
  color: #166534;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.55rem;
}

.checklist-self-review__progress {
  margin: 0;
  font-weight: 600;
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--text) 85%, #0f172a);
}

.checklist-self-review__ready {
  border: 1px solid color-mix(in srgb, var(--primary) 34%, white);
  background: white;
  color: var(--primary);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.checklist-self-review__ready:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  color: var(--muted);
  border-color: var(--border-subtle);
}

.checklist-self-review__ready.is-active {
  background: color-mix(in srgb, var(--primary) 12%, white);
}

.checklist-self-review__bar {
  height: 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-subtle) 75%, white);
  overflow: hidden;
}

.checklist-self-review__bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

.checklist-subject {
  --border-color: #14b8a6;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(14, 30, 37, 0.04);
  overflow: hidden;
}

.checklist-subject + .checklist-subject {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.checklist-subject__header {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  transition: background 0.18s ease;
}

.checklist-subject__header:hover,
.checklist-subject__header:focus-visible {
  background: color-mix(in srgb, var(--primary) 7%, white);
}

.checklist-subject__header::-webkit-details-marker {
  display: none;
}

.checklist-subject__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text) 90%, #0f766e);
}

.checklist-subject__count {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.checklist-subject__affordance {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 600;
}

.checklist-subject__status {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--muted) 88%, #1f2937);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 82%, white);
  background: color-mix(in srgb, #e5e7eb 70%, white);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.01em;
}

.checklist-subject.is-complete {
  border-color: color-mix(in srgb, #16a34a 35%, var(--primary));
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.08);
}

.checklist-subject[data-completion-state="in-progress"] .checklist-subject__status {
  color: color-mix(in srgb, var(--primary) 84%, #1d4ed8);
  border-color: color-mix(in srgb, var(--primary) 35%, white);
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.checklist-subject.is-complete .checklist-subject__status {
  color: #166534;
  border-color: color-mix(in srgb, #16a34a 32%, white);
  background: color-mix(in srgb, #16a34a 9%, white);
}

.checklist-subject__icon {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.checklist-subject[open] .checklist-subject__icon {
  transform: rotate(180deg);
}

.checklist-subject:not([open]) .checklist-subject__header {
  border-bottom-color: transparent;
}

.checklist-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem 1rem 1rem;
}

.checklist-step-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

body.checklist-review[data-checklist-view="preceptor"] .checklist-step-row__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 160px);
  gap: 0.75rem;
  align-items: start;
}

.checklist-step-row.is-reviewed .checklist-step-row__content {
  border-color: color-mix(in srgb, #16a34a 30%, white);
  background: color-mix(in srgb, #16a34a 6%, white);
}

.checklist-step-row.just-reviewed .checklist-step-row__content {
  animation: checklistStepReviewedFade 0.36s ease;
}

@keyframes checklistStepReviewedFade {
  0% {
    background: color-mix(in srgb, #16a34a 18%, white);
  }

  100% {
    background: color-mix(in srgb, #16a34a 6%, white);
  }
}

.checklist-step-row__number {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, white);
  margin-top: 0.15rem;
}

.checklist-step-row__content {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.72rem 0.82rem;
}

.checklist-step-row__text {
  margin: 0;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text) 90%, #111827);
  white-space: pre-wrap;
}

.checklist-step-row__review-btn {
  margin-top: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, white);
  background: white;
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}

.checklist-step-row__readonly-note {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
}

.checklist-step-row__review-btn:hover,
.checklist-step-row__review-btn:focus-visible {
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.checklist-step-row__review-btn.is-reviewed {
  border-color: color-mix(in srgb, #16a34a 32%, white);
  color: #166534;
  background: color-mix(in srgb, #16a34a 10%, white);
}

.checklist-step-row__reviewed-feedback {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #166534;
}

.checklist-detail-list {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.checklist-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.checklist-detail-list dt {
  color: var(--muted);
}

.checklist-detail-list dd {
  margin: 0;
  font-weight: 600;
}

.checklist-review-callout {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, white);
  background: color-mix(in srgb, var(--danger) 7%, white);
  color: var(--danger);
}

@media (max-width: 960px) {
  .checklist-review-hero {
    grid-template-columns: 1fr;
  }

  .checklist-review-grid {
    grid-template-columns: 1fr;
  }


  .checklist-preceptor-rating__header-grid {
    grid-template-columns: 1fr;
  }
  .checklist-self-review__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .checklist-review-hero__stats {
    grid-template-columns: 1fr;
  }

  .checklist-subject__header {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  body.checklist-review[data-checklist-view="preceptor"] .checklist-step-row__content {
    grid-template-columns: 1fr;
  }
}

/* Unify role workspace theming with the educator experience. */
.tab-panel[data-content='my-competencies'],
.tab-panel[data-content='preceptor'],
.tab-panel[data-content='validator'],
.tab-panel[data-content='server-user'] {
  position: relative;
}

.tab-panel[data-content='my-competencies'] .my-competency-toolbar,
.tab-panel[data-content='preceptor'] .my-competency-toolbar,
.tab-panel[data-content='validator'] .my-competency-toolbar,
.tab-panel[data-content='server-user'] .server-user-competency-toolbar {
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.06)),
    var(--surface-card);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-strong);
}

.tab-panel[data-content='my-competencies'] .my-competency-section,
.tab-panel[data-content='preceptor'] .my-competency-section,
.tab-panel[data-content='validator'] .my-competency-section,
.tab-panel[data-content='server-user'] .my-competency-section {
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.05), rgba(20, 184, 166, 0.05)),
    var(--surface-card);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-strong);
}

.tab-panel[data-content='my-competencies'] .my-competency-section--action,
.tab-panel[data-content='preceptor'] .my-competency-section--action,
.tab-panel[data-content='validator'] .my-competency-section--action,
.tab-panel[data-content='server-user'] .my-competency-section--action {
  border-color: rgba(37, 99, 235, 0.28);
  border-left-color: rgba(37, 99, 235, 0.35);
}

.server-user-competency-toolbar {
  align-items: stretch;
  margin: 0 0 1.5rem;
}

.server-user-competency-toolbar .my-competency-search,
.server-user-competency-toolbar .my-competency-expiry,
.server-user-competency-toolbar .my-competency-status {
  flex: 1 1 220px;
}

.server-user-competency-toolbar .my-competency-search input,
.server-user-competency-toolbar .my-competency-expiry select,
.server-user-competency-toolbar .my-competency-status select {
  width: 100%;
}

.stacked-form-fieldset {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.stacked-form-fieldset legend {
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.inline-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

#educator-comment-action-field {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#educator-comment-action-field legend,
#educator-comment-action-field .help-text {
  grid-column: 1 / -1;
}

#educator-comment-action-field .inline-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

#educator-comment-action-field .inline-choice input[type='radio'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

#educator-comment-action-field .inline-choice:has(input[type='radio']:checked) {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 640px) {
  #educator-comment-action-field {
    grid-template-columns: 1fr;
  }
}

.overview-capability-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.overview-capability-nav-label {
  color: var(--muted-text, #64748b);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-capability-chip {
  border-radius: 999px;
  padding-inline: 0.85rem;
}

/* Creative overview cockpit refresh */
.overview-hero {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88) 48%, rgba(14, 165, 233, 0.72)),
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.5), transparent 34%);
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.34);
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.28);
}

.overview-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 72%);
  opacity: 0.65;
  z-index: 0;
}

.overview-hero::after {
  background:
    radial-gradient(circle at 82% 22%, rgba(34, 211, 238, 0.38), transparent 34%),
    radial-gradient(circle at 60% 88%, rgba(168, 85, 247, 0.24), transparent 42%);
  mix-blend-mode: screen;
  opacity: 1;
}

.overview-hero > * {
  position: relative;
  z-index: 1;
}

.overview-hero h2,
.overview-hero h3,
.overview-hero .metric-value,
.overview-hero .toolbar-page {
  color: #ffffff;
}

.overview-hero .muted,
.overview-hero .metric-label,
.overview-hero .attention-meta,
.overview-hero .overview-eyebrow {
  color: rgba(226, 232, 240, 0.78);
}

.overview-hero-summary > h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.overview-hero-summary > [data-overview-description] {
  max-width: 680px;
  font-size: 1.05rem;
}

.overview-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-hero .metric {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 38px rgba(15, 23, 42, 0.2);
}

.overview-hero .metric::after {
  content: '';
  position: absolute;
  inset: auto 14px 12px 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #34d399);
  opacity: 0.75;
}

.overview-toolbar-shell,
.overview-attention,
.overview-profile-card {
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.22);
}

.overview-toolbar,
.overview-toolbar .toolbar-field,
.toolbar-actions {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
}

.overview-toolbar input,
.overview-toolbar select {
  color: #ffffff;
}

.overview-toolbar input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.overview-quick-actions button,
.overview-quick-actions a {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(125, 211, 252, 0.34);
  color: #cffafe;
}

.overview-attention .attention-label {
  color: #67e8f9;
}

.overview-profile {
  gap: 1rem;
}

.overview-profile-card {
  border-radius: 1.35rem;
  padding: 1.25rem;
}

.overview-profile .detail-list div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.overview-profile .detail-list dt,
.overview-profile .detail-list dd {
  color: rgba(240, 249, 255, 0.86);
}

.overview-command-visual {
  min-height: 310px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 60px rgba(2, 6, 23, 0.28);
}

.command-orbit {
  position: absolute;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.command-orbit-one {
  width: 78%;
  aspect-ratio: 1;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.13);
}

.command-orbit-two {
  width: 58%;
  aspect-ratio: 1;
  border-style: dashed;
  transform: rotate(22deg);
}

.command-core {
  width: 138px;
  height: 138px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  background: linear-gradient(145deg, #eff6ff, #67e8f9 58%, #3b82f6);
  color: #0f172a;
  box-shadow: 0 22px 56px rgba(34, 211, 238, 0.3);
  text-align: center;
}

.command-core-icon {
  font-size: 1.6rem;
}

.command-core small {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.72);
}

.command-node {
  position: absolute;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e0f2fe;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.3);
}

.node-proof { top: 18%; right: 17%; }
.node-coach { bottom: 22%; right: 12%; }
.node-validate { bottom: 24%; left: 12%; }

@media (max-width: 860px) {
  .overview-hero-body {
    grid-template-columns: 1fr;
  }

  .overview-summary {
    grid-template-columns: 1fr;
  }
}

/* Enterprise staff administration */
.tab-panel[data-content='staff'] {
  background: #f3f4f6;
}

.staff-admin-shell {
  display: grid;
  gap: 1rem;
}

.staff-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  box-shadow: none;
}

.staff-admin-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1.2;
}

.staff-admin-header p {
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.92rem;
}

.staff-primary-action,
.staff-drawer-actions button[type='submit'] {
  border: 1px solid #0f3a5f;
  background: #0f3a5f;
  color: #ffffff;
  border-radius: 0.3rem;
  padding: 0.65rem 0.95rem;
  font-weight: 800;
  box-shadow: none;
}

.staff-primary-action:hover,
.staff-primary-action:focus-visible,
.staff-drawer-actions button[type='submit']:hover,
.staff-drawer-actions button[type='submit']:focus-visible {
  background: #0b2d4a;
  border-color: #0b2d4a;
}

.staff-admin-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  box-shadow: none;
  padding: 1rem;
}

.staff-toolbar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #dbe3ee;
}

.staff-toolbar-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.staff-roster-insights {
  display: flex;
  gap: 0.5rem;
}

.staff-roster-insights div {
  min-width: 7rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  background: #f8fafc;
  box-shadow: none;
}

.staff-roster-insights dt {
  margin: 0;
  color: #475569;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-roster-insights dd {
  margin: 0.15rem 0 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.staff-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.7fr)) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem 0 0;
}

.staff-filter-field {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-filter-field input,
.staff-filter-field select {
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid #b8c4d4;
  border-radius: 0.25rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.staff-filter-clear {
  min-height: 2.25rem;
  border-radius: 0.25rem;
}

.staff-table-card {
  gap: 0.75rem;
}

.staff-table-container {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  background: #ffffff;
}

.staff-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  color: #0f172a;
  font-size: 0.86rem;
}

.staff-admin-table th,
.staff-admin-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.staff-admin-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-admin-table tbody tr:hover {
  background: #f8fafc;
}

.staff-name-cell,
.staff-table-name-link {
  color: #0f3a5f;
  font-weight: 800;
}

.staff-table-name-link {
  text-decoration: none;
}

.staff-table-name-link:hover,
.staff-table-name-link:focus-visible {
  text-decoration: underline;
}

.staff-units-cell {
  max-width: 260px;
  color: #334155;
}

.staff-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 900;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.staff-status-badge[data-status='active'] {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.staff-status-badge[data-status='inactive'],
.staff-status-badge[data-status='resigned'] {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.staff-admin-table .actions,
.staff-admin-table .table-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
}

.staff-admin-table .actions button {
  padding: 0.35rem 0.55rem;
  border-radius: 0.25rem;
  font-size: 0.78rem;
  box-shadow: none;
}

.staff-admin-table .actions .danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.staff-empty-state {
  margin: 0;
  padding: 1rem;
}

.staff-create-modal .modal-backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.staff-drawer-card {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100vw);
  max-height: 100vh;
  overflow: auto;
  border-radius: 0;
  border-left: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
}

.staff-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #dbe3ee;
}

.staff-drawer-header h3 {
  margin: 0;
  color: #0f172a;
}

.staff-drawer-close {
  font-size: 1.5rem;
  line-height: 1;
}

.staff-create-form .field-group {
  border-color: #cbd5e1;
  border-radius: 0.3rem;
  background: #f8fafc;
}

.staff-drawer-actions {
  justify-content: flex-end;
  border-top: 1px solid #dbe3ee;
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .staff-admin-header,
  .staff-toolbar-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .staff-roster-insights,
  .staff-filter-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Modern admin page refresh: align competencies, assignments, groups, and personal file with Units/Staff pages. */
.tab-panel[data-content='competencies'],
.tab-panel[data-content='assignments'],
.tab-panel[data-content='groups'],
.tab-panel[data-content='personal-file'] {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.tab-panel[data-content='competencies'][hidden],
.tab-panel[data-content='assignments'][hidden],
.tab-panel[data-content='groups'][hidden],
.tab-panel[data-content='personal-file'][hidden] {
  display: none !important;
}

.tab-panel[data-content='competencies'] > .panel-header,
.tab-panel[data-content='assignments'] > .panel-header,
.tab-panel[data-content='groups'] > .panel-header,
.personal-file-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 20%, rgba(79, 70, 229, 0.18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.13);
  padding: clamp(1.25rem, 3vw, 2.1rem);
}

.tab-panel[data-content='competencies'] > .panel-header::before,
.tab-panel[data-content='assignments'] > .panel-header::before,
.tab-panel[data-content='groups'] > .panel-header::before,
.personal-file-hero::before {
  content: '';
  position: absolute;
  inset: auto -8% -55% auto;
  width: 340px;
  height: 340px;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.12));
  filter: blur(4px);
}

.tab-panel[data-content='competencies'] > .panel-header h2,
.tab-panel[data-content='assignments'] > .panel-header h2,
.tab-panel[data-content='groups'] > .panel-header h2,
.personal-file-hero h2 {
  position: relative;
  margin: 0;
  color: var(--text-stronger);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.tab-panel[data-content='competencies'] > .panel-header h2::before,
.tab-panel[data-content='assignments'] > .panel-header h2::before,
.tab-panel[data-content='groups'] > .panel-header h2::before {
  display: block;
  margin-bottom: 0.65rem;
  width: max-content;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-dark);
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.tab-panel[data-content='competencies'] > .panel-header h2::before {
  content: 'Competency library';
}

.tab-panel[data-content='assignments'] > .panel-header h2::before {
  content: 'Assignment command center';
}

.tab-panel[data-content='groups'] > .panel-header h2::before {
  content: 'Reusable bundles';
}

.tab-panel[data-content='competencies'] > .panel-header h2::after,
.tab-panel[data-content='assignments'] > .panel-header h2::after,
.tab-panel[data-content='groups'] > .panel-header h2::after {
  display: block;
  max-width: 720px;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.55;
}

.tab-panel[data-content='competencies'] > .panel-header h2::after {
  content: 'Create, organize, and maintain competency workflows with the same polished admin experience used by Units and Staff.';
}

.tab-panel[data-content='assignments'] > .panel-header h2::after {
  content: 'Assign the right competency to the right team member while keeping preceptors, validators, and due dates visible.';
}

.tab-panel[data-content='groups'] > .panel-header h2::after {
  content: 'Build modern competency bundles that can be reused for units, cohorts, and recurring education plans.';
}

.tab-panel[data-content='competencies'] > .card,
.tab-panel[data-content='competencies'] > div:not(.panel-header),
.tab-panel[data-content='assignments'] > .card,
.tab-panel[data-content='assignments'] > div:not(.panel-header),
.tab-panel[data-content='groups'] > .card,
.tab-panel[data-content='groups'] > article.card,
.personal-file-sidebar > .card,
.personal-file-sections,
.personal-file-detail,
.personal-file-reflective-column.card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.workflow-card,
.competency-workflow-card,
.assignment-workflow-card,
.group-card {
  overflow: hidden;
}

.workflow-card > header,
.competency-workflow-card > header,
.assignment-workflow-card > header,
.group-card > header,
.group-table-card > header,
.assignment-table-card > header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  margin: calc(-1 * clamp(1rem, 2vw, 1.5rem)) calc(-1 * clamp(1rem, 2vw, 1.5rem)) 1.25rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.76));
}

.tab-panel[data-content='competencies'] .table-toolbar,
.tab-panel[data-content='assignments'] .table-toolbar,
.tab-panel[data-content='groups'] .table-toolbar,
.personal-file-hero-filters,
.personal-file-note-filter-form {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: 1rem;
}

.tab-panel[data-content='competencies'] input,
.tab-panel[data-content='competencies'] select,
.tab-panel[data-content='assignments'] input,
.tab-panel[data-content='assignments'] select,
.tab-panel[data-content='groups'] input,
.tab-panel[data-content='groups'] select,
.tab-panel[data-content='personal-file'] input,
.tab-panel[data-content='personal-file'] select,
.tab-panel[data-content='personal-file'] textarea,
.tab-panel[data-content='personal-file'] .rich-input {
  border-color: rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.96);
}

.tab-panel[data-content='competencies'] button:not(.ghost):not(.secondary):not(.tertiary),
.tab-panel[data-content='assignments'] button:not(.ghost):not(.secondary):not(.tertiary),
.tab-panel[data-content='groups'] button:not(.ghost):not(.secondary):not(.tertiary),
.tab-panel[data-content='personal-file'] button:not(.ghost):not(.secondary):not(.tertiary):not(.link-button) {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
  color: #fff;
  font-weight: 800;
}

.tab-panel[data-content='competencies'] .table-container,
.tab-panel[data-content='assignments'] .table-container,
.tab-panel[data-content='groups'] .table-container,
.personal-file-history-list,
.personal-file-summary-list {
  border-radius: 20px;
  overflow: hidden;
}

.personal-file-shell {
  gap: 1.35rem;
}

.personal-file-hero-header h2 {
  margin-top: 0.35rem;
}

.personal-file-hero-body {
  position: relative;
}

.personal-file-toolbar-highlights li {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.personal-file-content {
  align-items: start;
}

.personal-file-sections-header,
.personal-file-detail-header,
.personal-file-progress-card header,
.personal-file-staff-card header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 760px) {
  .tab-panel[data-content='competencies'] > .panel-header,
  .tab-panel[data-content='assignments'] > .panel-header,
  .tab-panel[data-content='groups'] > .panel-header,
  .personal-file-hero {
    border-radius: 22px;
  }

  .workflow-card > header,
  .competency-workflow-card > header,
  .assignment-workflow-card > header,
  .group-card > header,
  .group-table-card > header,
  .assignment-table-card > header {
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

/* Practical admin density refresh */
:root {
  --text-muted: #475569;
  --text-subtle: #64748b;
}

.muted,
.help-text,
.subtitle,
footer,
.metric-hint,
small {
  color: #475569;
}

.admin-compact-hero,
.units-page-header,
.staff-admin-header,
.panel-header.admin-compact-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,246,255,0.82));
  box-shadow: 0 18px 44px rgba(30, 41, 59, 0.08);
}

.admin-compact-hero h2,
.units-page-header h2,
.staff-admin-header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
}

.admin-compact-hero p,
.units-page-header p,
.staff-admin-header p {
  margin: 0.2rem 0 0;
  color: #475569;
}

.admin-help-toggle {
  max-width: 24rem;
  color: #334155;
  font-size: 0.9rem;
}

.admin-help-toggle summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-dark);
  font-weight: 800;
}

.admin-help-toggle summary::-webkit-details-marker {
  display: none;
}

.admin-help-toggle p {
  margin-top: 0.65rem;
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.units-page,
.tab-panel[data-content='staff'] {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.units-roster-card,
.staff-admin-panel,
.staff-table-container {
  border-radius: 1.25rem;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 44px rgba(30, 41, 59, 0.08);
}

.units-roster-toolbar,
.staff-filter-toolbar {
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.92);
}

.units-primary-action,
.staff-primary-action,
.staff-drawer-actions button[type='submit'] {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.24);
}

.staff-admin-table th,
.staff-admin-table td {
  padding: 0.48rem 0.65rem;
}

.staff-admin-table th {
  background: #f8fafc;
}

.staff-row-actions {
  position: relative;
}

.staff-actions-menu {
  position: relative;
}

.staff-actions-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  line-height: 1;
}

.staff-actions-menu summary::-webkit-details-marker {
  display: none;
}

.staff-actions-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 10000;
  display: grid;
  gap: 0.25rem;
  min-width: 9rem;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.staff-actions-menu__list button {
  justify-content: flex-start;
  width: 100%;
  border-radius: 0.65rem !important;
  background: transparent;
  color: #334155;
  border-color: transparent;
}

.staff-actions-menu__list .staff-overflow-danger {
  color: #b91c1c;
  background: transparent;
  border-color: transparent;
}

.staff-actions-menu__list .staff-overflow-danger:hover,
.staff-actions-menu__list .staff-overflow-danger:focus-visible {
  background: #fee2e2;
}

.workspace-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 1.4rem;
  text-align: center;
  border: 1px dashed rgba(99, 102, 241, 0.32);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,246,255,0.78));
  color: #334155;
}

.workspace-empty-state__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(79, 70, 229, 0.12);
  font-size: 1.45rem;
}

.workspace-empty-state h3,
.workspace-empty-state p {
  margin: 0;
}

.workspace-empty-state h3 {
  color: var(--text-strong);
}

.workspace-empty-state__reason {
  max-width: 38rem;
  color: #475569;
  line-height: 1.5;
}

.workspace-empty-state__reason strong {
  color: var(--text-strong);
  font-weight: 700;
}

.workspace-empty-state__action {
  margin-top: 0.15rem;
}

.workflow-card,
.assignment-workflow-card,
.group-card,
.personal-file-shell,
.staff-detail-content,
.staff-detail-grid {
  gap: 1rem;
}

.workflow-hero,
.assignment-hero,
.group-hero {
  padding: 1rem;
  gap: 1rem;
}

.workflow-hero .hero-points,
.group-hero .hero-points,
.assignment-hero .hero-points,
.workflow-stats,
.group-stats {
  display: none;
}

body.staff-detail-page {
  padding: 1rem clamp(1rem, 3vw, 2rem) 2rem;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.staff-detail-header {
  max-width: min(1180px, 100%);
  gap: 1rem;
}

.staff-detail-header::before {
  display: none;
}

.staff-hero {
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-strong);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 44px rgba(30, 41, 59, 0.10);
}

.staff-hero::before,
.staff-hero::after {
  display: none;
}

.staff-hero .muted,
.staff-hero-chip,
.staff-hero-meta dt,
.staff-hero-meta dd {
  color: #475569;
}

.staff-hero-main {
  gap: 1rem;
}

.staff-hero-avatar {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.assignment-detail.empty {
  min-height: 0;
  padding: 1.25rem;
}

@media (max-width: 760px) {
  .admin-compact-hero,
  .units-page-header,
  .staff-admin-header,
  .panel-header.admin-compact-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

/* UX polish: compact admin tables, structured empty states, and wizard-style assignment setup. */
.workspace-empty-state small {
  display: block;
  max-width: 34rem;
  color: #64748b;
  line-height: 1.45;
}

.assignment-workflow-card > header,
.assignment-workflow-card .workflow-hero {
  display: none;
}

.assignment-stepper-form {
  gap: 1rem;
}

.assignment-stepper-form > .assignment-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
}

.assignment-stepper-form > .assignment-stepper > li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 750;
}

.assignment-stepper-form > .assignment-stepper > li > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.55rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.78rem;
}

.assignment-stepper-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1.25fr) repeat(2, minmax(15rem, 1fr));
  gap: 0.9rem;
}

.assignment-field-block {
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

.assignment-field-block select[multiple] {
  min-height: 13.5rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  line-height: 1.55;
}

.assignment-field-block select[multiple] option {
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
}

.assignment-field-block label,
.searchable-select > label,
.assignment-field > label {
  color: #0f172a;
  font-weight: 800;
}

.assignment-field-block:has(#assignment-staff) {
  grid-row: span 2;
}

.assignment-field-block:has(#assignment-competency),
.assignment-field-block:has(#assignment-group) {
  min-height: 0;
}

.assignment-stepper-grid > label:has(#assignment-due-date) {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid var(--border-glass);
  border-radius: 0.9rem;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.searchable-select,
.assignment-field:has(#assignment-validator) {
  padding: 0.9rem;
  border: 1px solid var(--border-glass);
  border-radius: 0.9rem;
  background: #fff;
}

.units-table-shell th,
.units-table-shell td {
  padding: 0.34rem 0.65rem;
  line-height: 1.25;
}

.units-table-shell .actions-cell {
  width: 1%;
  white-space: nowrap;
}

.units-table-shell .table-actions {
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}

.units-actions-menu {
  position: relative;
}

.units-actions-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.units-actions-menu summary::-webkit-details-marker {
  display: none;
}

.units-actions-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 10000;
  display: grid;
  gap: 0.25rem;
  min-width: 9rem;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.units-actions-menu__list button,
.units-overflow-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 0.65rem !important;
  background: transparent;
  color: #334155;
  box-shadow: none;
}

.units-actions-menu__list .units-overflow-danger,
.units-overflow-danger {
  color: #b91c1c;
}

.units-actions-menu__list .units-overflow-danger:hover,
.units-actions-menu__list .units-overflow-danger:focus-visible {
  background: #fee2e2;
}

.staff-detail-page .staff-hero {
  gap: 1rem;
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.96), rgba(14, 165, 233, 0.9));
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
}

.staff-detail-page .staff-hero::before,
.staff-detail-page .staff-hero::after {
  display: block;
}

.staff-detail-page .staff-hero-heading h1,
.staff-detail-page .staff-hero-meta dd {
  color: #fff;
}

.staff-detail-page .staff-hero .muted,
.staff-detail-page .staff-hero-eyebrow,
.staff-detail-page .staff-hero-meta dt {
  color: rgba(226, 232, 255, 0.82);
}

.staff-detail-page .staff-hero-chip {
  background: rgba(15, 23, 42, 0.22);
  color: #f8fafc;
}

@media (max-width: 980px) {
  .assignment-stepper-form > .assignment-stepper,
  .assignment-stepper-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact all-empty learner dashboard and focused assignment wizard panels. */
.my-competency-sections.is-all-empty {
  gap: 0.75rem;
}

.my-competency-sections.is-all-empty .my-competency-section {
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.my-competency-sections.is-all-empty .my-competency-section--action {
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.my-competency-sections.is-all-empty .my-competency-section.is-empty-compact header .muted {
  display: none;
}

.my-competency-sections.is-all-empty .my-competency-section.is-empty-compact {
  background: rgba(248, 250, 252, 0.86);
}

.my-competency-sections.is-all-empty .competency-empty-state {
  margin: 0.85rem 0 0;
  padding: 1rem 1.15rem;
}

.my-competency-sections.is-all-empty .competency-empty-state__icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.my-competency-sections.is-all-empty .competency-empty-state__icon img {
  width: 58px;
  height: 58px;
}

.assignment-focused-panels {
  display: grid;
  gap: 1rem;
}

.assignment-step-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.assignment-step-panel__header h4 {
  margin: 0.15rem 0 0.25rem;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.assignment-field-block--featured select[multiple] {
  min-height: 18rem;
  font-size: 0.98rem;
}

.assignment-filter-row,
.assignment-dual-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.assignment-dual-panel-grid--reviewers select,
.assignment-reviewer-card select,
.assignment-due-date-card input {
  min-height: 2.85rem;
  font-size: 1rem;
}

.assignment-reviewer-card {
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.08);
}

.assignment-due-date-card {
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
  padding: 1rem;
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.assignment-step-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.assignment-step-actions {
  justify-content: space-between;
}


.assignment-step-actions #assignment-step-next {
  margin-left: auto;
}

.assignment-review-summary {
  display: grid;
  gap: 0.65rem;
}

.assignment-review-summary__notice,
.assignment-review-summary__row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.85rem;
  background: #fff;
}

.assignment-review-summary__notice {
  display: block;
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(255, 251, 235, 0.86);
}

.assignment-review-summary__notice--ready {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(240, 253, 244, 0.9);
}

.assignment-review-summary__notice ul {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.assignment-review-summary__row span {
  color: #64748b;
  font-weight: 800;
}

.assignment-stepper-form > .assignment-stepper > li {
  cursor: pointer;
}

.assignment-stepper-form > .assignment-stepper > li.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.assignment-stepper-form > .assignment-stepper > li.is-complete > span {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

@media (max-width: 820px) {
  .assignment-stepper-form > .assignment-stepper {
    grid-template-columns: 1fr;
  }

  .assignment-filter-row,
  .assignment-dual-panel-grid,
  .assignment-review-summary__row {
    grid-template-columns: 1fr;
  }
}

/* UX polish consistency pass */
:root {
  --color-primary-purple: var(--primary, #4f46e5);
  --color-primary-blue: var(--accent, #0ea5e9);
  --color-background-lavender: #eef2ff;
  --color-card-background: var(--surface-card, rgba(255, 255, 255, 0.94));
  --color-card-border: var(--border-glass, rgba(148, 163, 184, 0.25));
  --color-text-muted: var(--text-muted, #5b6b86);
  --color-text-strong: var(--text-strong, #0f172a);
  --color-success: var(--success, #16a34a);
  --color-warning: var(--warning, #f59e0b);
  --color-danger: var(--danger, #ef4444);
  --radius-card: 1.25rem;
  --radius-control: 0.85rem;
  --shadow-card: var(--shadow-soft, 0 18px 44px rgba(30, 41, 59, 0.18));
  --control-height: 2.75rem;
  --page-max-width: 1180px;
  --section-gap: 1.25rem;
}

.app-main,
.app-header-content {
  max-width: var(--page-max-width);
}

.tabs {
  align-items: stretch;
  gap: 0.45rem;
}

.tab-group {
  display: flex;
  flex: 1 1 18rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem;
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.46);
}

.tab-group__label {
  padding: 0 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.tab:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.42);
  outline-offset: 2px;
}

.my-competency-toolbar,
.preceptor-competency-toolbar,
.validator-competency-toolbar,
.educator-competency-toolbar,
.server-user-competency-toolbar {
  background: var(--color-card-background);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 0.85rem;
}

.my-competency-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.my-competency-toolbar label,
.toolbar-field,
.page-size-control {
  color: var(--color-text-strong);
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
}

.my-competency-toolbar input,
.my-competency-toolbar select,
.my-competency-toolbar button,
.page-size-control select {
  min-height: var(--control-height);
  border-radius: var(--radius-control);
}

.my-competency-search--wide {
  flex: 1 1 260px;
}

.workspace-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed var(--color-card-border);
  border-radius: var(--radius-card);
}

.workspace-empty-state__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--color-primary-purple);
  font-size: 1.35rem;
}

.workspace-empty-state h3 {
  margin: 0;
  color: var(--color-text-strong);
}

.workspace-empty-state p {
  margin: 0;
  max-width: 42rem;
}

.workspace-empty-state__reason {
  font-size: 0.92rem;
}

.my-competency-section.is-empty-compact {
  min-height: 0;
}

.my-competency-section.is-empty-compact .my-competency-section-body {
  padding-block: 0.25rem;
}

.overview-attention.is-empty,
.overview-attention:has(.notifications-list:empty) {
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
}

.overview-attention.has-items {
  padding: 1.25rem 1.5rem;
}

.overview-attention.is-empty .overview-attention-header {
  margin-bottom: 0.5rem;
}

.overview-attention.is-empty .notifications-list {
  display: none;
}

#overview-attention-empty {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

#overview-attention-empty strong {
  color: #ffffff;
  font-size: 1rem;
}

#overview-attention-empty span,
#overview-attention-empty small {
  color: rgba(226, 232, 240, 0.82);
}

.units-actions-menu__list,
.staff-actions-menu__list {
  z-index: 10000;
}

.status-list-dropdown-menu.is-fixed-action-menu,
.units-actions-menu__list.is-fixed-action-menu,
.staff-actions-menu__list.is-fixed-action-menu {
  position: fixed;
  top: var(--action-menu-top);
  left: var(--action-menu-left);
  right: auto;
  z-index: 10000;
}

.units-table tr,
#units-table tr {
  height: auto;
}

#units-table td,
#units-table th {
  padding-block: 0.34rem;
}

.assignment-step-panel[hidden] {
  display: none !important;
}

.assignment-review-summary {
  display: grid;
  gap: 0.55rem;
}

@media (max-width: 760px) {
  .tab-group,
  .my-competency-toolbar-row {
    width: 100%;
  }

  .my-competency-toolbar-row > * {
    flex: 1 1 100%;
  }
}

/* Shared role workspace toolbar alignment */
.tab-panel[data-content='my-competencies'] .my-competency-toolbar,
.tab-panel[data-content='preceptor'] .my-competency-toolbar,
.tab-panel[data-content='validator'] .my-competency-toolbar,
.tab-panel[data-content='educator'] .my-competency-toolbar,
.tab-panel[data-content='server-user'] .my-competency-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0.95rem;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.06)),
    var(--color-card-background);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tab-panel[data-content='my-competencies'] .my-competency-toolbar-row,
.tab-panel[data-content='preceptor'] .my-competency-toolbar-row,
.tab-panel[data-content='validator'] .my-competency-toolbar-row,
.tab-panel[data-content='educator'] .my-competency-toolbar-row,
.tab-panel[data-content='server-user'] .my-competency-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.tab-panel[data-content='my-competencies'] .my-competency-toolbar label,
.tab-panel[data-content='preceptor'] .my-competency-toolbar label,
.tab-panel[data-content='validator'] .my-competency-toolbar label,
.tab-panel[data-content='educator'] .my-competency-toolbar label,
.tab-panel[data-content='server-user'] .my-competency-toolbar label,
.tab-panel[data-content='my-competencies'] .my-competency-toolbar .page-size-control,
.tab-panel[data-content='preceptor'] .my-competency-toolbar .page-size-control,
.tab-panel[data-content='validator'] .my-competency-toolbar .page-size-control,
.tab-panel[data-content='educator'] .my-competency-toolbar .page-size-control,
.tab-panel[data-content='server-user'] .my-competency-toolbar .page-size-control {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  color: var(--color-text-strong);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.tab-panel[data-content='my-competencies'] .my-competency-toolbar label > span,
.tab-panel[data-content='preceptor'] .my-competency-toolbar label > span,
.tab-panel[data-content='validator'] .my-competency-toolbar label > span,
.tab-panel[data-content='educator'] .my-competency-toolbar label > span,
.tab-panel[data-content='server-user'] .my-competency-toolbar label > span,
.tab-panel[data-content='my-competencies'] .my-competency-toolbar .page-size-control > span,
.tab-panel[data-content='preceptor'] .my-competency-toolbar .page-size-control > span,
.tab-panel[data-content='validator'] .my-competency-toolbar .page-size-control > span,
.tab-panel[data-content='educator'] .my-competency-toolbar .page-size-control > span,
.tab-panel[data-content='server-user'] .my-competency-toolbar .page-size-control > span {
  min-height: 0.95rem;
  white-space: nowrap;
}

.tab-panel[data-content='my-competencies'] .my-competency-toolbar input,
.tab-panel[data-content='my-competencies'] .my-competency-toolbar select,
.tab-panel[data-content='preceptor'] .my-competency-toolbar input,
.tab-panel[data-content='preceptor'] .my-competency-toolbar select,
.tab-panel[data-content='validator'] .my-competency-toolbar input,
.tab-panel[data-content='validator'] .my-competency-toolbar select,
.tab-panel[data-content='educator'] .my-competency-toolbar input,
.tab-panel[data-content='educator'] .my-competency-toolbar select,
.tab-panel[data-content='server-user'] .my-competency-toolbar input,
.tab-panel[data-content='server-user'] .my-competency-toolbar select {
  width: 100%;
  min-height: var(--control-height);
  padding: 0.58rem 0.85rem;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.tab-panel[data-content='my-competencies'] .my-competency-filter-toggle,
.tab-panel[data-content='preceptor'] .my-competency-filter-toggle,
.tab-panel[data-content='validator'] .my-competency-filter-toggle,
.tab-panel[data-content='educator'] .my-competency-filter-toggle,
.tab-panel[data-content='server-user'] .my-competency-filter-toggle,
.tab-panel[data-content='my-competencies'] .my-competency-view-toggle button,
.tab-panel[data-content='preceptor'] .my-competency-view-toggle button,
.tab-panel[data-content='validator'] .my-competency-view-toggle button,
.tab-panel[data-content='educator'] .my-competency-view-toggle button,
.tab-panel[data-content='server-user'] .my-competency-view-toggle button {
  min-height: var(--control-height);
  padding: 0.58rem 0.95rem;
  border-radius: var(--radius-control);
}

.tab-panel[data-content='my-competencies'] .my-competency-search--wide,
.tab-panel[data-content='preceptor'] .my-competency-search--wide,
.tab-panel[data-content='validator'] .my-competency-search--wide,
.tab-panel[data-content='educator'] .my-competency-search--wide,
.tab-panel[data-content='server-user'] .my-competency-search--wide {
  flex: 2 1 320px;
  min-width: min(320px, 100%);
}

.tab-panel[data-content='my-competencies'] .preceptor-preceptee-select,
.tab-panel[data-content='preceptor'] .preceptor-preceptee-select,
.tab-panel[data-content='validator'] .preceptor-preceptee-select,
.tab-panel[data-content='educator'] .preceptor-preceptee-select,
.tab-panel[data-content='server-user'] .preceptor-preceptee-select,
.tab-panel[data-content='server-user'] .validator-unit-filter,
.tab-panel[data-content='server-user'] .my-competency-status,
.tab-panel[data-content='server-user'] .my-competency-expiry {
  flex: 1 1 220px;
  min-width: min(220px, 100%);
}

.tab-panel[data-content='my-competencies'] .my-competency-sort,
.tab-panel[data-content='preceptor'] .my-competency-sort {
  flex: 1 1 250px;
  min-width: min(250px, 100%);
}

.tab-panel[data-content='my-competencies'] .my-competency-toolbar-row > .page-size-control:not(.my-competency-sort),
.tab-panel[data-content='preceptor'] .my-competency-toolbar-row > .page-size-control:not(.my-competency-sort),
.tab-panel[data-content='validator'] .my-competency-toolbar-row > .page-size-control:not(.my-competency-sort),
.tab-panel[data-content='educator'] .my-competency-toolbar-row > .page-size-control:not(.my-competency-sort) {
  flex: 0 0 88px;
}

.tab-panel[data-content='my-competencies'] .my-competency-view-toggle,
.tab-panel[data-content='preceptor'] .my-competency-view-toggle,
.tab-panel[data-content='validator'] .my-competency-view-toggle,
.tab-panel[data-content='educator'] .my-competency-view-toggle {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

@media (max-width: 760px) {
  .tab-panel[data-content='my-competencies'] .my-competency-toolbar-row > *,
  .tab-panel[data-content='preceptor'] .my-competency-toolbar-row > *,
  .tab-panel[data-content='validator'] .my-competency-toolbar-row > *,
  .tab-panel[data-content='educator'] .my-competency-toolbar-row > *,
  .tab-panel[data-content='server-user'] .my-competency-toolbar-row > * {
    flex: 1 1 100%;
  }

  .tab-panel[data-content='my-competencies'] .my-competency-view-toggle,
  .tab-panel[data-content='preceptor'] .my-competency-view-toggle,
  .tab-panel[data-content='validator'] .my-competency-view-toggle,
  .tab-panel[data-content='educator'] .my-competency-view-toggle {
    justify-content: stretch;
  }

  .tab-panel[data-content='my-competencies'] .my-competency-view-toggle button,
  .tab-panel[data-content='preceptor'] .my-competency-view-toggle button,
  .tab-panel[data-content='validator'] .my-competency-view-toggle button,
  .tab-panel[data-content='educator'] .my-competency-view-toggle button {
    flex: 1 1 12rem;
  }
}

/* Final UI polish: compact production navigation and focused workspace surfaces. */
.tabs {
  padding: 0.45rem;
  gap: 0.45rem;
}

.tab-group {
  flex: 0 1 auto;
  width: fit-content;
  min-height: 0;
  padding: 0.25rem 0.3rem;
  gap: 0.25rem;
  align-items: center;
}

.tab-group .tab {
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
}

.tab-group__label {
  flex: 0 0 auto;
  margin-inline: 0.15rem 0.25rem;
  white-space: nowrap;
}

.overview-hero--empty-notifications {
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

.overview-hero--empty-notifications .overview-hero-body,
.overview-hero--empty-notifications .overview-hero-summary {
  min-height: 0;
}

.overview-hero--empty-notifications .overview-attention {
  max-width: 680px;
  padding: 0.85rem 1rem;
}

.overview-hero--empty-notifications #welcome-text {
  margin-bottom: 0.65rem;
}

.my-competency-toolbar-row,
.preceptor-competency-toolbar .my-competency-toolbar-row,
.validator-competency-toolbar .my-competency-toolbar-row,
.educator-competency-toolbar .my-competency-toolbar-row,
.server-user-competency-toolbar .my-competency-toolbar-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(auto-fit, minmax(138px, max-content));
  align-items: end;
  gap: 0.65rem;
}

.toolbar-field,
.page-size-control,
.my-competency-toolbar label {
  display: inline-grid;
  align-content: end;
  min-width: 0;
}

.toolbar-field input,
.toolbar-field select,
.page-size-control select,
.my-competency-toolbar input,
.my-competency-toolbar select {
  height: var(--control-height);
}

.assignment-field-block--featured select[multiple] {
  min-height: 13.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--radius-control);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  overflow-y: auto;
}

.assignment-field-block--featured select[multiple] option {
  margin: 0.18rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--color-text-strong);
}

.assignment-field-block--featured select[multiple] option:checked {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(37, 99, 235, 0.88));
  color: #fff;
}

.assignment-step-actions button[type='submit'] {
  margin-left: auto;
}

.assignment-step-actions button.is-processing {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.assignment-step-actions button.is-processing::before {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: assignment-submit-spin 0.8s linear infinite;
}

@keyframes assignment-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.assignment-stepper-form:not(.is-review-step) .assignment-step-actions button[type='submit'] {
  display: none;
}

.assignment-stepper-form.is-review-step #assignment-step-next {
  display: none;
}

.assignment-form-secondary-actions {
  margin-top: 0.25rem;
}

#units-table td,
#units-table th {
  padding-block: 0.55rem;
  line-height: 1.25;
}

#units-table .actions,
.units-table .actions {
  align-items: center;
  gap: 0.35rem;
}

.competency-name,
.competency-title,
[data-competency-name] {
  display: inline-flex;
  max-width: min(26rem, 100%);
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.96), rgba(224, 242, 254, 0.92));
  color: #3730a3;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.group-builder,
.group-form,
.competency-group-form {
  gap: 0.85rem;
}

.personal-file-intro-highlights,
.personal-file-toolbar-highlights {
  gap: 0.65rem;
}

.personal-file-highlight,
.personal-file-toolbar-highlights li {
  padding: 0.75rem;
}

.personal-file-progress-card,
.personal-file-staff-card,
.personal-file-detail,
.personal-file-notes-card,
.personal-file-form-card {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.personal-file-summary-list {
  gap: 0.65rem;
}

.personal-file-summary-item {
  padding: 0.75rem;
}

.personal-file-summary-item:not(.is-active) {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.personal-file-summary-item:not(.is-active) .personal-file-summary-toggle {
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-primary-purple);
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.assignment-detail.empty {
  display: grid;
  place-items: center;
  text-align: center;
}

.staff-detail-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  max-width: 34rem;
  padding: 1.5rem;
  border: 1px dashed var(--color-card-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.76);
}

.staff-detail-empty-state__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--color-primary-purple);
  font-size: 1.45rem;
}

.staff-detail-empty-state__helper {
  margin: 0;
}

@media (max-width: 900px) {
  .tabs,
  .tab-group {
    width: 100%;
  }

  .my-competency-toolbar-row,
  .preceptor-competency-toolbar .my-competency-toolbar-row,
  .validator-competency-toolbar .my-competency-toolbar-row,
  .educator-competency-toolbar .my-competency-toolbar-row,
  .server-user-competency-toolbar .my-competency-toolbar-row {
    grid-template-columns: 1fr;
  }
}

.assignment-detail:not(.empty) .staff-detail-empty-state {
  display: none;
}

/* Competency table: keep names/link text readable and action buttons compact. */
#competency-table table {
  min-width: 820px;
  table-layout: fixed;
}

#competency-table th:nth-child(1),
#competency-table td:nth-child(1) {
  width: 9rem;
}

#competency-table th.competency-name-cell,
#competency-table td.competency-name-cell {
  width: 28%;
  max-width: 24rem;
  vertical-align: middle;
}

#competency-table th.actions-cell,
#competency-table td.actions-cell {
  width: 11rem;
  min-width: 11rem;
  vertical-align: middle;
  white-space: nowrap;
}

#competency-table td.competency-name-cell .table-link,
#competency-table td.competency-name-cell .competency-name,
#competency-table td.competency-name-cell [data-competency-name] {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2563eb;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}

#competency-table td.competency-name-cell .table-link:hover,
#competency-table td.competency-name-cell .table-link:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#competency-table td .actions,
#competency-table td .table-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: max-content;
  white-space: nowrap;
}

#competency-table td .actions button,
#competency-table td .table-actions button {
  flex: 0 0 auto;
  min-width: 4.4rem;
  width: auto;
  padding: 0.48rem 0.8rem;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 760px) {
  #competency-table table {
    min-width: 760px;
  }

  #competency-table th.actions-cell,
  #competency-table td.actions-cell {
    width: 10rem;
    min-width: 10rem;
  }
}

.target-staff-options.field-error {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.excel-import-layout {
  display: grid;
  gap: 1rem;
}
.excel-import-panel {
  border: 1px solid var(--border-color, #d8dee9);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface-color, #fff);
}
.excel-import-mapping {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.excel-import-preview {
  min-width: 0;
}

.import-name-duplicate-message {
  grid-column: 1 / -1;
}
.excel-import-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.excel-grid-wrap {
  border: 1px solid var(--border-color, #d8dee9);
  border-radius: .75rem;
  max-height: 28rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.excel-grid {
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 100%;
  table-layout: fixed;
}
.excel-grid-workbook {
  background: #fff;
  color: #111827;
  font-family: Tahoma, Arial, sans-serif;
  font-size: .95rem;
}
.excel-grid col:first-child {
  width: 3rem;
}
.excel-grid th,
.excel-grid td {
  border: 1px solid var(--border-color, #d8dee9);
  max-width: none;
  min-width: 3rem;
  padding: .2rem .25rem;
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
  overflow: hidden;
}
.excel-grid th {
  background: var(--muted-surface, #f5f7fb);
  color: #111827;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}
.excel-grid .row-heading {
  left: 0;
  min-width: 3rem;
  position: sticky;
  z-index: 2;
}
.excel-grid td.excel-cell-selected {
  background: #dbeafe;
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
@media (min-width: 1100px) {
  .excel-import-layout {
    grid-template-columns: minmax(22rem, .8fr) minmax(30rem, 1.2fr);
  }
}
.excel-import-subject-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.excel-import-subject-actions .muted {
  margin: 0;
}
.excel-import-subject-list {
  display: grid;
  gap: .5rem;
}
.excel-import-subject-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color, #d8dee9);
  border-radius: .75rem;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .65rem .75rem;
}
.excel-import-subject-item strong {
  display: block;
}
.excel-import-subject-item span {
  color: #64748b;
  font-size: .85rem;
}
.excel-import-sheets {
  align-items: center;
  display: flex;
  gap: .5rem;
  margin: 0 0 .75rem;
  overflow-x: auto;
  padding-bottom: .2rem;
}
.excel-import-sheet-tab {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #1e3a8a;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 700;
  padding: .45rem .75rem;
}
.excel-import-sheet-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.excel-import-toolbar .small {
  padding: .45rem .75rem;
}

/* Keep assignment workflow steps readable in competency cards across learner, preceptor, validator, educator, and server-user pages. */
.status-list-item .assignment-stepper {
  min-width: 0;
  overflow: visible;
}

.status-list-item .assignment-stepper-list {
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
}

.status-list-item .assignment-stepper-item {
  min-width: 0;
  line-height: 1.3;
}

.status-list-item .assignment-stepper-group.is-timeline .assignment-stepper-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.status-list-item .assignment-stepper-group.is-timeline .assignment-stepper-item {
  align-items: flex-start;
  min-height: 3.25rem;
}

.status-list-item .assignment-stepper-group.is-timeline .assignment-stepper-main {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.2rem;
}

.status-list-item .assignment-stepper-group.is-timeline .assignment-stepper-label,
.status-list-item .assignment-stepper-group.is-timeline .assignment-stepper-owner {
  overflow-wrap: anywhere;
  word-break: normal;
}

.status-list-item .assignment-stepper-group.is-timeline .assignment-stepper-status {
  width: max-content;
  max-width: 100%;
}

.status-list-item .assignment-stepper-group:not(.is-timeline) .assignment-stepper-item {
  align-items: flex-start;
  flex-wrap: wrap;
}

.status-list-item .assignment-stepper-group:not(.is-timeline) .assignment-stepper-owner {
  flex-basis: 100%;
  margin-left: 1.8rem;
  overflow-wrap: anywhere;
}

/* Units admin page mirrors the staff management theme. */
.units-page {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.units-admin-shell {
  display: grid;
  gap: 1rem;
}

.units-page-header {
  padding: 0;
}

.units-page-header h2 {
  color: #0f172a;
}

.units-page-header p {
  color: #64748b;
}

.units-roster-card,
.units-table-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  background: #ffffff;
  box-shadow: none;
}

.units-roster-toolbar {
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 0.8fr) auto auto;
  border-bottom: 0;
  background: transparent;
}

.units-search-field span,
.units-create-field span {
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.units-search-field input,
.units-create-field input {
  min-height: 2.25rem;
  border: 1px solid #b8c4d4;
  border-radius: 0.25rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}

.units-active-toggle {
  display: grid;
  gap: 0.25rem;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: normal;
}

.units-checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid #b8c4d4;
  border-radius: 0.25rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.units-table-shell {
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
}

.units-admin-table {
  min-width: 720px;
}

.units-admin-table .table-link {
  color: #0f3a5f;
  font-weight: 800;
  text-decoration: none;
}

.units-admin-table .table-link:hover,
.units-admin-table .table-link:focus-visible {
  text-decoration: underline;
}

.units-table-shell .secondary,
.unit-modal-card .secondary,
.units-table-shell .danger {
  border-radius: 0.25rem;
}

.unit-status-badge[data-status='inactive'] {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

@media (max-width: 900px) {
  .units-roster-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Personal file administrative notes refresh */
.personal-file-pane[data-section-pane='administrative-note'] {
  display: grid;
  gap: 1.25rem;
}

.personal-file-pane[data-section-pane='administrative-note'] .personal-file-editor,
.personal-file-pane[data-section-pane='administrative-note'] .personal-file-history {
  border-radius: 1.4rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    var(--surface-card);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.personal-file-note-filter-mode select,
.personal-file-note-filter-form input[type='month'] {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  font-weight: 600;
}

.note-card {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.76), rgba(255, 255, 255, 0.98) 44%),
    var(--surface-card);
}

.note-card.is-open {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.18);
}

.note-card-headline {
  align-items: flex-start;
}

.note-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: min(100%, 18rem);
}

.note-card-title-wrap strong {
  color: var(--text-stronger);
  font-size: 1.02rem;
  line-height: 1.35;
}

.note-card-byline,
.note-card-open-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.note-meta--compact .note-details {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.personal-file-note-inline-detail {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 1.4rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88));
  box-shadow: 0 24px 46px rgba(37, 99, 235, 0.14);
}

.personal-file-note-inline-detail[hidden] {
  display: none;
}

.personal-file-note-inline-detail__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.personal-file-note-inline-detail__header h4 {
  margin: 0.15rem 0;
  color: var(--text-stronger);
}

.personal-file-note-inline-detail__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.personal-file-note-inline-detail__facts div {
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.personal-file-note-inline-detail__facts dt {
  margin: 0 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.personal-file-note-inline-detail__facts dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 650;
}

.personal-file-note-inline-detail__body {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  line-height: 1.65;
}

/* Personal file dashboard redesign */
.tab-panel[data-content='personal-file'] {
  background: #f1f5f9;
  padding: 0.25rem;
}

.personal-file-dashboard-shell {
  gap: 0.85rem;
}

.personal-file-page-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.6fr);
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.personal-file-page-title h2 {
  margin: 0.1rem 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
}

.personal-file-header-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 0.65rem;
  align-items: end;
}

.personal-file-header-controls label,
.personal-file-header-controls .personal-file-filter-group label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.personal-file-content {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.personal-file-sidebar {
  position: sticky;
  top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.personal-file-sidebar > .card,
.personal-file-sections,
.personal-file-detail,
.personal-file-reflective-column.card {
  border: 1px solid #dbe3ee;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.personal-file-staff-card,
.personal-file-progress-card,
.personal-file-sections,
.personal-file-detail {
  padding: 0.9rem;
}

.personal-file-staff-card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.personal-file-staff-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 0.35rem;
}

.personal-file-staff-card dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.personal-file-staff-card dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.personal-file-progress-card header h3,
.personal-file-sections-header h3,
.personal-file-detail-header h3 {
  margin: 0;
  font-size: 1rem;
}

.personal-file-summary-list {
  display: grid;
  gap: 0.35rem;
  border-radius: 0;
}

.personal-file-summary-item {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}

.personal-file-summary-item.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.personal-file-summary-icon {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.55rem;
  background: #f1f5f9;
  font-size: 0.95rem;
}

.personal-file-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.personal-file-summary-header h4 {
  margin: 0;
  color: #0f172a;
  font-size: 0.86rem;
}

.personal-file-summary-status,
.personal-file-summary-optional {
  border-radius: 999px;
  padding: 0.16rem 0.45rem;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.personal-file-summary-item.is-complete .personal-file-summary-status {
  background: #dcfce7;
  color: #166534;
}

.personal-file-summary-footer,
.personal-file-summary-idea,
.personal-file-toolbar-highlights {
  display: none;
}

.personal-file-detail-header {
  align-items: start;
}

.personal-file-section-actions,
.personal-file-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.personal-file-history {
  margin-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.85rem;
}

.personal-file-history-header {
  gap: 0.75rem;
  align-items: start;
}

.tab-panel[data-content='personal-file'] button:not(.ghost):not(.secondary):not(.tertiary):not(.link-button) {
  background: #2563eb;
  box-shadow: none;
}

@media (max-width: 980px) {
  .personal-file-page-header,
  .personal-file-content {
    grid-template-columns: 1fr;
  }

  .personal-file-sidebar {
    position: static;
  }

  .personal-file-header-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .personal-file-header-controls {
    grid-template-columns: 1fr;
  }

  .personal-file-detail-header,
  .personal-file-history-header {
    display: grid;
  }
}

/* Administrative note page split: editor left, history right */
.personal-file-note-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: start;
}

.personal-file-note-workspace .personal-file-note-history-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.personal-file-note-history-panel .note-card {
  cursor: pointer;
}

.personal-file-note-history-panel .note-card-preview {
  max-height: 5.5rem;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .personal-file-note-workspace {
    grid-template-columns: 1fr;
  }

  .personal-file-note-workspace .personal-file-note-history-panel {
    position: static;
    max-height: none;
  }
}

/* Personal file full-page section tabs */
.tab-panel[data-content='personal-file'] .personal-file-content {
  grid-template-columns: 1fr;
}

.tab-panel[data-content='personal-file'] .personal-file-sidebar {
  position: static;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tab-panel[data-content='personal-file'] .personal-file-sections {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem;
}

.tab-panel[data-content='personal-file'] .personal-file-sections-header {
  display: none;
}

.tab-panel[data-content='personal-file'] .personal-file-tabs {
  margin: 0;
  padding: 0 0 0.25rem;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: max-content;
  border-radius: 0;
  overflow: visible;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-item {
  display: inline-flex;
  align-items: center;
  grid-template-columns: none;
  gap: 0.45rem;
  min-width: max-content;
  padding: 0.58rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-body,
.tab-panel[data-content='personal-file'] .personal-file-summary-header {
  display: contents;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-header h4 {
  font-size: 0.82rem;
  line-height: 1;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-status,
.tab-panel[data-content='personal-file'] .personal-file-summary-optional,
.tab-panel[data-content='personal-file'] .personal-file-summary-footer,
.tab-panel[data-content='personal-file'] .personal-file-summary-idea {
  display: none;
}

.tab-panel[data-content='personal-file'] .personal-file-detail {
  min-height: calc(100vh - 2rem);
}

.tab-panel[data-content='personal-file'] .personal-file-detail-body,
.tab-panel[data-content='personal-file'] .personal-file-pane:not([hidden]) {
  min-height: calc(100vh - 12rem);
}

.tab-panel[data-content='personal-file'] .personal-file-pane:not([hidden]) {
  width: 100%;
}

.tab-panel[data-content='personal-file'] .personal-file-sidebar {
  display: none;
}

/* Personal file notes two-column dashboard refinement */
.tab-panel[data-content='personal-file'] {
  background: #eef4fb;
}

.tab-panel[data-content='personal-file'] .personal-file-dashboard-shell {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(0.9rem, 1.4vw, 1.35rem);
  gap: 0.9rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  box-shadow: none;
}

.tab-panel[data-content='personal-file'] .personal-file-page-header {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
  align-items: end;
  padding: 0.85rem 1rem;
}

.tab-panel[data-content='personal-file'] .personal-file-content {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.tab-panel[data-content='personal-file'] .personal-file-sidebar {
  display: grid;
  gap: 0.8rem;
  position: sticky;
  top: 0.75rem;
  z-index: 5;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card,
.tab-panel[data-content='personal-file'] .personal-file-sections,
.tab-panel[data-content='personal-file'] .personal-file-detail {
  border: 1px solid #d9e4f2;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card,
.tab-panel[data-content='personal-file'] .personal-file-sections {
  padding: 0.85rem;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card[hidden] {
  display: none;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card header,
.tab-panel[data-content='personal-file'] .personal-file-sections-header,
.tab-panel[data-content='personal-file'] .personal-file-detail-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e7edf5;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-progress {
  margin-top: 0.8rem;
  padding: 0.85rem;
  gap: 0.6rem;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  background: #eff6ff;
  box-shadow: none;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-headline {
  display: grid;
  gap: 0.25rem;
}

.tab-panel[data-content='personal-file'] #personal-file-summary-status {
  color: #0f172a;
  font-size: 0.9rem;
}

.tab-panel[data-content='personal-file'] #personal-file-summary-next {
  color: #1d4ed8;
  font-weight: 800;
}

.tab-panel[data-content='personal-file'] .personal-file-sections {
  position: static;
  z-index: auto;
}

.tab-panel[data-content='personal-file'] .personal-file-sections-header {
  display: block;
}

.tab-panel[data-content='personal-file'] .personal-file-tabs {
  margin: 0;
  padding: 0;
  overflow: visible;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-list {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
  overflow: visible;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  min-width: 0;
  width: 100%;
  gap: 0.55rem;
  align-items: center;
  padding: 0.62rem;
  border-radius: 0.8rem;
  white-space: normal;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-item.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 4px 0 0 #2563eb;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: #eaf2ff;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-body,
.tab-panel[data-content='personal-file'] .personal-file-summary-header {
  display: flex;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-body {
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-header h4 {
  font-size: 0.86rem;
  line-height: 1.2;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-status,
.tab-panel[data-content='personal-file'] .personal-file-summary-optional {
  display: inline-flex;
  font-size: 0.68rem;
}

.tab-panel[data-content='personal-file'] .personal-file-main,
.tab-panel[data-content='personal-file'] .personal-file-sections-layout {
  min-width: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-detail {
  min-height: auto;
  padding: 1rem;
}

.tab-panel[data-content='personal-file'] .personal-file-detail-body,
.tab-panel[data-content='personal-file'] .personal-file-pane:not([hidden]) {
  min-height: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-note-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.tab-panel[data-content='personal-file'] .personal-file-note-workspace .personal-file-note-history-panel {
  position: static;
  max-height: none;
  overflow: visible;
}

.tab-panel[data-content='personal-file'] .personal-file-pane[data-section-pane='administrative-note'] .personal-file-editor,
.tab-panel[data-content='personal-file'] .personal-file-pane[data-section-pane='administrative-note'] .personal-file-history {
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: none;
}

.tab-panel[data-content='personal-file'] #personal-file-body.rich-input {
  min-height: clamp(260px, 34vh, 460px);
  padding: 1rem;
  line-height: 1.65;
}

.tab-panel[data-content='personal-file'] .personal-file-editor-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tab-panel[data-content='personal-file'] .personal-file-editor .form-actions {
  justify-content: flex-end;
  gap: 0.55rem;
}

.tab-panel[data-content='personal-file'] .personal-file-history {
  margin-top: 0;
  border-top: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-history-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.25fr);
  gap: 0.9rem;
  align-items: start;
}

.tab-panel[data-content='personal-file'] .personal-file-note-filter-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  max-width: none;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.tab-panel[data-content='personal-file'] .personal-file-note-filter-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list {
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
  overflow: hidden;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list > .muted {
  margin: 0;
  padding: 1rem;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(240px, 1.4fr) minmax(170px, 0.8fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card:last-child {
  border-bottom: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card-headline,
.tab-panel[data-content='personal-file'] .personal-file-history-list .note-meta,
.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card-preview,
.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card-subject,
.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card-open-hint {
  min-width: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card-preview {
  max-height: 4.6rem;
  overflow: hidden;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card-open-hint {
  justify-self: end;
  align-self: center;
  color: #2563eb;
}

@media (max-width: 1180px) {
  .tab-panel[data-content='personal-file'] .personal-file-content,
  .tab-panel[data-content='personal-file'] .personal-file-page-header,
  .tab-panel[data-content='personal-file'] .personal-file-history-header,
  .tab-panel[data-content='personal-file'] .personal-file-note-filter-form {
    grid-template-columns: 1fr;
  }

  .tab-panel[data-content='personal-file'] .personal-file-sidebar {
    position: static;
  }

  .tab-panel[data-content='personal-file'] .personal-file-tabs {
    overflow-x: auto;
  }

  .tab-panel[data-content='personal-file'] .personal-file-summary-list {
    display: flex;
    min-width: max-content;
  }

  .tab-panel[data-content='personal-file'] .personal-file-summary-item {
    width: min(280px, 76vw);
  }
}

@media (max-width: 760px) {
  .tab-panel[data-content='personal-file'] .personal-file-dashboard-shell {
    padding: 0.7rem;
  }

  .tab-panel[data-content='personal-file'] .personal-file-editor-row,
  .tab-panel[data-content='personal-file'] .personal-file-history-list .note-card {
    grid-template-columns: 1fr;
  }

  .tab-panel[data-content='personal-file'] .personal-file-history-list .note-card-open-hint {
    justify-self: start;
  }
}

/* Personal File Notes spacious dashboard layout refresh */
#app {
  width: min(1320px, 100%);
}

.tab-panel[data-content='personal-file'] {
  background: #edf4fb;
  padding: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-dashboard-shell {
  width: min(1280px, 100%);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1rem, 1.6vw, 1.4rem);
  gap: 1rem;
  border: 1px solid #d8e5f2;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  box-shadow: none;
}

.tab-panel[data-content='personal-file'] .personal-file-page-header {
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: 1.1rem;
  padding: 1rem 1.15rem;
  border-color: #dbe6f3;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.tab-panel[data-content='personal-file'] .personal-file-page-title h2 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.tab-panel[data-content='personal-file'] .personal-file-header-controls {
  grid-template-columns: minmax(150px, 0.85fr) minmax(170px, 0.9fr) minmax(260px, 1.35fr) auto;
  gap: 0.75rem;
}

.tab-panel[data-content='personal-file'] .personal-file-content {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tab-panel[data-content='personal-file'] .personal-file-sidebar {
  gap: 0.85rem;
  position: sticky;
  top: 0.75rem;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card,
.tab-panel[data-content='personal-file'] .personal-file-sections,
.tab-panel[data-content='personal-file'] .personal-file-detail,
.tab-panel[data-content='personal-file'] .personal-file-empty-state {
  border: 1px solid #dbe6f3;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card,
.tab-panel[data-content='personal-file'] .personal-file-sections {
  padding: 0.95rem;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card[hidden],
.tab-panel[data-content='personal-file'] .personal-file-empty-state[hidden] {
  display: none !important;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card dl > div {
  align-items: baseline;
  padding-bottom: 0.45rem;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card dd {
  line-height: 1.35;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-list {
  gap: 0.55rem;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-item {
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.7rem;
  border-color: #e0e8f2;
}

.tab-panel[data-content='personal-file'] .personal-file-summary-item.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 4px 0 0 #2563eb, 0 8px 18px rgba(37, 99, 235, 0.08);
}

.tab-panel[data-content='personal-file'] .personal-file-summary-status,
.tab-panel[data-content='personal-file'] .personal-file-summary-optional {
  padding: 0.18rem 0.48rem;
  font-size: 0.68rem;
}

.tab-panel[data-content='personal-file'] .personal-file-main,
.tab-panel[data-content='personal-file'] .personal-file-sections-layout,
.tab-panel[data-content='personal-file'] .personal-file-detail-body,
.tab-panel[data-content='personal-file'] .personal-file-pane:not([hidden]) {
  min-width: 0;
  width: 100%;
}

.tab-panel[data-content='personal-file'] .personal-file-empty-state {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.tab-panel[data-content='personal-file'] .personal-file-empty-state__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 1.25rem;
  background: #eff6ff;
  color: #2563eb;
  font-size: 2rem;
}

.tab-panel[data-content='personal-file'] .personal-file-empty-state h3 {
  max-width: 34rem;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.tab-panel[data-content='personal-file'] .personal-file-empty-state p {
  max-width: 42rem;
  margin: 0.65rem 0 0;
  font-size: 1rem;
}

.tab-panel[data-content='personal-file'] .personal-file-detail {
  padding: 1.1rem;
}

.tab-panel[data-content='personal-file'] .personal-file-pane[data-section-pane='administrative-note'] .personal-file-editor,
.tab-panel[data-content='personal-file'] .personal-file-pane[data-section-pane='administrative-note'] .personal-file-history {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.tab-panel[data-content='personal-file'] #personal-file-body.rich-input {
  min-height: clamp(320px, 42vh, 520px);
  font-size: 0.98rem;
}

.tab-panel[data-content='personal-file'] .personal-file-editor .form-actions button:last-of-type {
  min-width: 12rem;
}

.tab-panel[data-content='personal-file'] .personal-file-history-header {
  grid-template-columns: 1fr;
}

.tab-panel[data-content='personal-file'] .personal-file-note-filter-form {
  grid-template-columns: minmax(180px, 0.7fr) minmax(300px, 1fr) auto;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card {
  grid-template-columns: minmax(230px, 0.95fr) minmax(260px, 1.1fr) minmax(320px, 1.35fr) auto;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card::before,
.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card::after,
.tab-panel[data-content='personal-file'] .personal-file-detail::before,
.tab-panel[data-content='personal-file'] .personal-file-detail::after {
  display: none !important;
}

@media (max-width: 1180px) {
  .tab-panel[data-content='personal-file'] .personal-file-content,
  .tab-panel[data-content='personal-file'] .personal-file-page-header,
  .tab-panel[data-content='personal-file'] .personal-file-header-controls,
  .tab-panel[data-content='personal-file'] .personal-file-note-filter-form,
  .tab-panel[data-content='personal-file'] .personal-file-history-list .note-card {
    grid-template-columns: 1fr;
  }

  .tab-panel[data-content='personal-file'] .personal-file-sidebar {
    position: static;
  }
}

.directory-card-delete {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.72rem 1rem;
}

.directory-card-delete:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Unit administration visual refresh ------------------------------------- */
.tab-panel.units-page[data-content='units'] {
  background: transparent;
}

.units-admin-shell {
  display: grid;
  gap: 1rem;
}

.units-page-header.admin-compact-hero {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.25rem;
}

.units-page-header.admin-compact-hero::before {
  content: '';
  position: absolute;
  inset: -80% -18% auto;
  height: 220%;
  background:
    radial-gradient(circle at 18% 28%, rgba(14, 165, 233, 0.16), transparent 42%),
    radial-gradient(circle at 76% 38%, rgba(79, 70, 229, 0.14), transparent 48%);
  pointer-events: none;
}

.units-page-header.admin-compact-hero > * {
  position: relative;
  z-index: 1;
}

.units-roster-card.staff-admin-panel {
  padding: 1rem;
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.units-roster-insights.staff-roster-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 0.55rem;
}

.units-roster-toolbar.staff-filter-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  margin-top: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.units-search-field input {
  min-height: 42px;
  border-radius: 0.8rem;
}

.units-active-toggle {
  min-height: 42px;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-strong);
}

.units-checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.units-table-card.staff-table-card {
  padding: 1rem;
}

.units-table-shell.staff-table-container {
  overflow: visible;
  min-height: 160px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.units-table-shell table.units-admin-table {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.units-table-shell .table-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.units-table-shell .staff-status-badge[data-status='active'] {
  background: var(--success-soft);
  color: var(--success);
}

.units-table-shell .staff-status-badge[data-status='inactive'] {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
}

.units-table-shell .table-actions .secondary,
.unit-modal-card .secondary {
  border-radius: 0.75rem;
}

.unit-modal-card {
  border-radius: 1.25rem;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-strong);
}

@media (max-width: 760px) {
  .units-roster-insights.staff-roster-insights,
  .units-roster-toolbar.staff-filter-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Personal file responsive overflow guard --------------------------------- */
.tab-panel[data-content='personal-file'],
.tab-panel[data-content='personal-file'] .personal-file-dashboard-shell,
.tab-panel[data-content='personal-file'] .personal-file-content,
.tab-panel[data-content='personal-file'] .personal-file-main,
.tab-panel[data-content='personal-file'] .personal-file-sections-layout,
.tab-panel[data-content='personal-file'] .personal-file-detail,
.tab-panel[data-content='personal-file'] .personal-file-detail-body,
.tab-panel[data-content='personal-file'] .personal-file-pane:not([hidden]) {
  max-width: 100%;
  overflow-x: hidden;
}

.tab-panel[data-content='personal-file'] .personal-file-dashboard-shell,
.tab-panel[data-content='personal-file'] .personal-file-content,
.tab-panel[data-content='personal-file'] .personal-file-sidebar,
.tab-panel[data-content='personal-file'] .personal-file-main,
.tab-panel[data-content='personal-file'] .personal-file-sections-layout,
.tab-panel[data-content='personal-file'] .personal-file-detail,
.tab-panel[data-content='personal-file'] .personal-file-detail-header,
.tab-panel[data-content='personal-file'] .personal-file-detail-actions,
.tab-panel[data-content='personal-file'] .personal-file-section-actions,
.tab-panel[data-content='personal-file'] .personal-file-detail-body,
.tab-panel[data-content='personal-file'] .personal-file-pane:not([hidden]),
.tab-panel[data-content='personal-file'] .personal-file-pane:not([hidden]) > *,
.tab-panel[data-content='personal-file'] .personal-file-editor,
.tab-panel[data-content='personal-file'] .personal-file-editor-row,
.tab-panel[data-content='personal-file'] .personal-file-date-field,
.tab-panel[data-content='personal-file'] .personal-file-rich-label,
.tab-panel[data-content='personal-file'] .rich-input,
.tab-panel[data-content='personal-file'] .personal-file-history,
.tab-panel[data-content='personal-file'] .personal-file-history-header,
.tab-panel[data-content='personal-file'] .personal-file-history-copy,
.tab-panel[data-content='personal-file'] .personal-file-note-filter-form,
.tab-panel[data-content='personal-file'] .personal-file-note-filter-mode,
.tab-panel[data-content='personal-file'] .personal-file-note-filter-fields,
.tab-panel[data-content='personal-file'] .personal-file-note-filter-actions,
.tab-panel[data-content='personal-file'] .personal-file-history-list,
.tab-panel[data-content='personal-file'] .note-card,
.tab-panel[data-content='personal-file'] .note-card > *,
.tab-panel[data-content='personal-file'] .note-card-headline,
.tab-panel[data-content='personal-file'] .note-card-title-wrap,
.tab-panel[data-content='personal-file'] .note-meta,
.tab-panel[data-content='personal-file'] .note-details,
.tab-panel[data-content='personal-file'] .note-card-preview,
.tab-panel[data-content='personal-file'] .note-card-subject,
.tab-panel[data-content='personal-file'] .note-card-open-hint,
.tab-panel[data-content='personal-file'] .personal-file-reflective-layout,
.tab-panel[data-content='personal-file'] .personal-file-reflective-column,
.tab-panel[data-content='personal-file'] .personal-file-reflective-list-group,
.tab-panel[data-content='personal-file'] .personal-file-reflective-list__item,
.tab-panel[data-content='personal-file'] .personal-file-reflective-viewer,
.tab-panel[data-content='personal-file'] .personal-file-self,
.tab-panel[data-content='personal-file'] .personal-file-summary-item,
.tab-panel[data-content='personal-file'] .personal-file-summary-body,
.tab-panel[data-content='personal-file'] .personal-file-summary-header,
.tab-panel[data-content='personal-file'] .personal-file-staff-card dl > div,
.tab-panel[data-content='personal-file'] .personal-file-staff-card dd {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tab-panel[data-content='personal-file'] .personal-file-detail-header,
.tab-panel[data-content='personal-file'] .personal-file-section-actions,
.tab-panel[data-content='personal-file'] .personal-file-editor .form-actions,
.tab-panel[data-content='personal-file'] .personal-file-note-filter-actions {
  flex-wrap: wrap;
  padding-right: clamp(0.25rem, 1vw, 0.75rem);
}

.tab-panel[data-content='personal-file'] .personal-file-editor .form-actions {
  justify-content: flex-end;
}

.tab-panel[data-content='personal-file'] .personal-file-editor .form-actions button,
.tab-panel[data-content='personal-file'] .personal-file-section-actions button,
.tab-panel[data-content='personal-file'] .personal-file-note-filter-actions button {
  max-width: 100%;
  white-space: normal;
}

.tab-panel[data-content='personal-file'] .rich-input,
.tab-panel[data-content='personal-file'] .personal-file-detail-header,
.tab-panel[data-content='personal-file'] .personal-file-detail-body,
.tab-panel[data-content='personal-file'] .personal-file-history-copy,
.tab-panel[data-content='personal-file'] .personal-file-history-list,
.tab-panel[data-content='personal-file'] .note-card,
.tab-panel[data-content='personal-file'] .note-card-title-wrap strong,
.tab-panel[data-content='personal-file'] .note-card-byline,
.tab-panel[data-content='personal-file'] .note-card-preview,
.tab-panel[data-content='personal-file'] .note-card-preview *,
.tab-panel[data-content='personal-file'] .note-card-subject,
.tab-panel[data-content='personal-file'] .note-details dd,
.tab-panel[data-content='personal-file'] .personal-file-reflective-list__title,
.tab-panel[data-content='personal-file'] .personal-file-reflective-list__meta,
.tab-panel[data-content='personal-file'] .personal-file-reflective-viewer,
.tab-panel[data-content='personal-file'] .personal-file-reflective-viewer *,
.tab-panel[data-content='personal-file'] .personal-file-staff-card dd,
.tab-panel[data-content='personal-file'] .personal-file-summary-header h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tab-panel[data-content='personal-file'] .personal-file-history-list .note-card {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 1.35fr) minmax(0, auto);
  max-width: 100%;
  overflow: hidden;
}

.tab-panel[data-content='personal-file'] .note-card .note-details,
.tab-panel[data-content='personal-file'] .note-meta--compact .note-details,
.tab-panel[data-content='personal-file'] .personal-file-note-inline-detail__facts,
.tab-panel[data-content='personal-file'] .personal-file-reflective-summary,
.tab-panel[data-content='personal-file'] .personal-file-reflective-viewer__details {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}

.tab-panel[data-content='personal-file'] .note-card-preview {
  overflow: hidden;
}

.tab-panel[data-content='personal-file'] .note-card-preview p,
.tab-panel[data-content='personal-file'] .note-card-preview li,
.tab-panel[data-content='personal-file'] .note-card-preview span,
.tab-panel[data-content='personal-file'] .note-card-preview a {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .tab-panel[data-content='personal-file'] .personal-file-history-list .note-card,
  .tab-panel[data-content='personal-file'] .personal-file-note-filter-form,
  .tab-panel[data-content='personal-file'] .personal-file-editor-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tab-panel[data-content='personal-file'] .personal-file-detail,
  .tab-panel[data-content='personal-file'] .personal-file-pane[data-section-pane='administrative-note'] .personal-file-editor,
  .tab-panel[data-content='personal-file'] .personal-file-pane[data-section-pane='administrative-note'] .personal-file-history {
    padding: 0.75rem;
  }

  .tab-panel[data-content='personal-file'] .personal-file-editor .form-actions,
  .tab-panel[data-content='personal-file'] .personal-file-section-actions,
  .tab-panel[data-content='personal-file'] .personal-file-note-filter-actions {
    justify-content: stretch;
  }

  .tab-panel[data-content='personal-file'] .personal-file-editor .form-actions button,
  .tab-panel[data-content='personal-file'] .personal-file-section-actions button,
  .tab-panel[data-content='personal-file'] .personal-file-note-filter-actions button {
    flex: 1 1 100%;
  }
}

/* Keep the Staff overview readable in the narrow personal-file sidebar. */
.tab-panel[data-content='personal-file'] .personal-file-staff-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card dl > div {
  display: grid;
  grid-template-columns: minmax(6.25rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card dt {
  line-height: 1.25;
}

.tab-panel[data-content='personal-file'] .personal-file-staff-card dd {
  text-align: right;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Compact administrative note timeline cards, visually matching notification lists. */
.personal-file-note-history-panel .personal-file-history-list {
  position: relative;
  gap: 0.65rem;
  padding-left: 0.75rem;
}

.personal-file-note-history-panel .personal-file-history-list::before {
  content: '';
  position: absolute;
  left: 0.18rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.08));
}

.personal-file-note-history-panel .note-card {
  position: relative;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: #fff;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

.personal-file-note-history-panel .note-card::before {
  content: '';
  position: absolute;
  left: -0.98rem;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.personal-file-note-history-panel .note-card header {
  gap: 0.4rem;
  align-items: flex-start;
}

.personal-file-note-history-panel .note-card-title-wrap strong {
  font-size: 0.94rem;
}

.personal-file-note-history-panel .note-card-byline,
.personal-file-note-history-panel .note-card .note-meta,
.personal-file-note-history-panel .note-card-preview,
.personal-file-note-history-panel .note-card-subject,
.personal-file-note-history-panel .note-card-open-hint {
  font-size: 0.82rem;
}

.personal-file-note-history-panel .note-card .note-details {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.2rem 0.75rem;
}

.personal-file-note-history-panel .note-card .note-details dt {
  font-size: 0.64rem;
}

.personal-file-note-history-panel .note-card .note-details dd {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.personal-file-note-history-panel .note-card-preview {
  max-height: 3.4rem;
  overflow: hidden;
}

.personal-file-section-actions,
.personal-file-editor .form-actions {
  gap: 0.45rem;
}

.personal-file-section-actions button,
.personal-file-editor .form-actions button,
.personal-file-detail-actions button {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.15;
}

.personal-file-activity-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.personal-file-activity-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 12rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.personal-file-activity-filter select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}

.personal-file-activity-log table tbody tr td:nth-child(2) {
  font-weight: 700;
  color: var(--primary-dark);
}

@media (max-width: 640px) {
  .personal-file-activity-filter {
    width: 100%;
  }
}
/* Competency group builder: image-inspired chip/table treatment. */
.tab-panel[data-content='groups'] .group-card,
.tab-panel[data-content='groups'] .group-table-card {
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    var(--surface-card);
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.12);
}

.tab-panel[data-content='groups'] .group-card > header,
.tab-panel[data-content='groups'] .group-table-card > header {
  gap: 0.5rem;
}

.tab-panel[data-content='groups'] .competency-import-export-actions .secondary,
.tab-panel[data-content='groups'] .group-filter-clear,
.tab-panel[data-content='groups'] .actions .secondary {
  border-color: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.9));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.group-competency-selection-summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.tab-panel[data-content='groups'] #group-competencies {
  min-height: 9.75rem;
  border-color: rgba(203, 213, 225, 0.85);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.group-competency-chips {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
  max-height: 11.5rem;
  overflow-y: auto;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
}

.group-competency-chip {
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.group-competency-chip__remove {
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
}

.group-competency-chip__remove:hover,
.group-competency-chip__remove:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.group-toolbar {
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.74);
}

.group-toolbar .toolbar-main {
  flex: 1 1 auto;
}

.group-included-chips {
  align-items: center;
  gap: 0.55rem;
}

.group-included-chip {
  border-color: rgba(203, 213, 225, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.group-included-chip--count {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.95), rgba(239, 246, 255, 0.95));
  color: #1e293b;
}

.group-table-card .table-container table th {
  background: linear-gradient(90deg, rgba(224, 231, 255, 0.92), rgba(224, 242, 254, 0.86));
  color: #334155;
}

.group-table-card .table-container table tbody tr:hover {
  background: rgba(239, 246, 255, 0.62);
}

.group-management-table .group-summary-row.is-expanded {
  background: rgba(239, 246, 255, 0.55);
}

@media (max-width: 820px) {
  .group-detail-list {
    grid-template-columns: 1fr;
  }

  .group-detail-list li:nth-child(odd) {
    background: rgba(248, 250, 252, 0.94);
  }

  .group-detail-list li:nth-child(even) {
    background: transparent;
  }

  .group-detail-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.assignment-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.assignment-bulk-actions[hidden] {
  display: none;
}

.assignment-item-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.assignment-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}

.assignment-select input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.mentorship-delete-bulk-actions {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mentorship-assignment-select {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
}
/* Duty rota workspace v2 */
.rota-health{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.65rem 1rem;border-left:4px solid #2563eb;background:#fff}.rota-health h3,.rota-health p{margin:.1rem 0}.rota-health-summary{display:flex;gap:.8rem;flex-wrap:wrap}.rota-health-summary strong{color:#b91c1c}.rota-issues{grid-column:1/-1;display:flex;gap:.5rem;overflow:auto;margin:0;padding:0;background:#fff;list-style:none}.rota-issue{min-width:240px;padding:.55rem .7rem;border:1px solid #fca5a5;border-radius:.6rem;background:#fff7ed;color:#334155;text-align:left}.rota-issue-warning{border-color:#fcd34d}.rota-duty.rota-duty-issue{outline:3px solid #dc2626;outline-offset:-3px}.rota-table tr.is-boundary-overflow th:first-child{box-shadow:inset 5px 0 #f97316;background:#fff7ed}.rota-duty.rota-duty-boundary-overflow{outline:3px solid #f97316;outline-offset:-3px;box-shadow:0 0 0 2px rgba(249,115,22,.22)}.rota-duty.rota-duty-short-off{outline-color:#eab308;box-shadow:0 0 0 2px rgba(234,179,8,.28)}.rota-duty.rota-duty-night-day{outline-color:#dc2626;box-shadow:0 0 0 2px rgba(220,38,38,.24)}.rota-health-valid{border-left-color:#059669}
.duty-rota-panel{display:grid;gap:1rem}.duty-rota-header{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;overflow:hidden;border:0;background:linear-gradient(125deg,#172554,#1e3a8a 58%,#0e7490);color:#fff}.duty-rota-heading{display:flex;align-items:center;gap:1rem}.duty-rota-heading p,.duty-rota-heading h2{margin:.15rem 0}.duty-rota-heading p{color:#dbeafe}.rota-heading-icon{display:grid;place-items:center;width:3.25rem;height:3.25rem;border-radius:1rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);font-weight:900}.duty-rota-period{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;padding:.8rem;border-radius:1rem;background:rgba(255,255,255,.12)}.duty-rota-period label,.rota-rule-grid label,.rota-request-grid label{display:grid;gap:.35rem;font-size:.8rem;font-weight:700}.duty-rota-period select,.duty-rota-period input{background:#fff;color:#0f172a}.rota-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.rota-stat{padding:1rem!important;border-left:4px solid #2563eb}.rota-stat span{display:block;color:#64748b;font-size:.8rem}.rota-stat strong{display:block;margin-top:.3rem;color:#0f172a;font-size:1.6rem}.rota-controls summary,.rota-request-card summary{display:flex;justify-content:space-between;gap:1rem;cursor:pointer;font-weight:800}.rota-controls summary small,.rota-request-card summary small{color:#64748b;font-weight:500}.rota-rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.75rem;margin:1rem 0}.rota-actions,.rota-request-grid{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap}.rota-request-grid{margin-top:1rem}.rota-request-list{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}.request-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.3rem .35rem .3rem .65rem;border-radius:999px;background:#eef2ff;font-size:.82rem}.request-chip__remove{display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:50%;background:transparent;color:#64748b;font-size:1.15rem;line-height:1;cursor:pointer}.request-chip__remove:hover,.request-chip__remove:focus-visible{background:#fee2e2;color:#b91c1c;outline:none}.request-chip__remove:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #2563eb}.request-chip__remove:disabled{opacity:.45;cursor:wait}.priority-high{border:1px solid #ef4444}.priority-moderate{border:1px solid #f59e0b}.rota-table-card{min-width:0;padding:0!important;overflow:hidden}.rota-table-toolbar,.rota-data-toolbar{display:flex;align-items:center;gap:.75rem;padding:1rem 1.1rem}.rota-table-toolbar{justify-content:space-between;padding-bottom:.5rem}.rota-table-toolbar h3,.rota-table-toolbar p{margin:0}.rota-data-toolbar{flex-wrap:wrap;padding-top:.5rem;padding-bottom:.75rem;border-bottom:1px solid var(--border-color,#dbe3ef)}.rota-search{flex:1 1 220px}.rota-search input{width:100%}.rota-data-toolbar>label:not(.rota-search){display:flex;align-items:center;gap:.4rem;font-size:.82rem}.rota-data-toolbar select{width:auto}.rota-pagination{display:flex;gap:.4rem;margin-left:auto}.rota-pagination button{padding:.45rem .7rem}.rota-legend{display:flex;gap:.4rem;flex-wrap:wrap}.rota-legend span{display:flex;align-items:center;gap:.3rem;padding:.3rem .5rem;border-radius:.55rem;font-size:.7rem;font-weight:800}.legend-day{background:#fef3c7;color:#92400e}.legend-night{background:#312e81;color:#fff}.legend-leave{background:#dcfce7;color:#166534}.legend-off{background:#f1f5f9;color:#64748b}.rota-message{min-height:1.25rem;margin:.2rem 1.1rem;font-size:.85rem;font-weight:700}.rota-message.success{color:#047857}.rota-message.error{color:#b91c1c}.rota-help{margin:.35rem 1.1rem .8rem}.rota-table-wrap{position:relative;overflow-x:auto;max-width:100%;border-top:1px solid var(--border-color,#dbe3ef)}.rota-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.72rem}.rota-table col.rota-col-staff{width:220px}.rota-table col.rota-col-meta{width:130px}.rota-table col.rota-col-id{width:90px}.rota-table col.rota-col-check{width:48px}.rota-table col.rota-col-day{width:50px}.rota-table col.rota-col-total{width:46px}.rota-table col.rota-col-hours{width:55px}.rota-table th,.rota-table td{height:52px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:.28rem .12rem;text-align:center;background:#fff;white-space:nowrap}.rota-table thead th{position:sticky;top:0;z-index:4;height:2.2rem;background:#e8eefc;color:#1e3a8a}.rota-table tbody th{position:sticky;left:0;z-index:2;padding-left:.65rem;text-align:left}.rota-table thead th:first-child{left:0;z-index:5}.rota-table tbody th small{display:block;color:#64748b;text-transform:capitalize}.rota-duty{display:block;width:30px;height:30px;margin:auto;padding:0;border:0;border-radius:6px;background:#f1f5f9;color:#334155;font:inherit;font-weight:800}.rota-duty:hover,.rota-duty:focus-visible{outline:2px solid #2563eb;outline-offset:1px}.duty-d{background:#fef3c7;color:#92400e}.duty-n{background:#312e81;color:#fff}.duty-al{background:#dcfce7;color:#166534}.duty-o{background:#f1f5f9;color:#64748b}.rota-summary th,.rota-summary td{background:#eff6ff;font-weight:800;color:#1e3a8a}.rota-profile-incomplete th{box-shadow:inset 4px 0 #dc2626}.rota-profile-editor td{background:#fff7ed!important;text-align:left!important;padding:.75rem!important}.rota-profile-editor td,.rota-profile-editor label{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.rota-profile-editor strong{color:#9a3412;margin-right:auto}.rota-empty{display:grid;place-items:center;gap:.3rem;padding:3rem;color:#64748b}.rota-empty strong{color:#334155}.rota-table-card[aria-busy="true"]{opacity:.7;pointer-events:none}@media(max-width:800px){.rota-status-grid{grid-template-columns:repeat(2,1fr)}.duty-rota-period>*{flex:1 1 140px}.rota-table-toolbar{align-items:flex-start;flex-direction:column}.rota-legend small{display:none}}@media(max-width:480px){.rota-status-grid{grid-template-columns:1fr 1fr}.rota-stat strong{font-size:1.25rem}.rota-pagination{width:100%;margin-left:0}.rota-pagination button{flex:1}}

.rota-table :is(th,td):nth-child(1){position:sticky;left:0;z-index:2}.rota-table :is(th,td):nth-child(2){position:sticky;left:220px;z-index:2}.rota-table :is(th,td):nth-child(3){position:sticky;left:350px;z-index:2}.rota-table :is(th,td):nth-child(4){position:sticky;left:440px;z-index:2}.rota-table :is(th,td):nth-child(5){position:sticky;left:488px;z-index:2}.rota-table thead :is(th,td):nth-child(-n+5){z-index:6}.rota-table thead th small{display:block;margin-top:.15rem;color:#64748b;font-size:.65rem}.rota-table .rota-weekend{background:#f8fafc}.rota-profile-warning{display:block;margin:.18rem 0 0;padding:0;border:0;background:transparent;color:#a16207;font-size:.67rem;font-weight:700}.rota-profile-warning:hover{text-decoration:underline}.rota-modal[hidden]{display:none}.rota-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:1rem}.rota-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px)}.rota-modal-dialog{position:relative;width:min(430px,100%);padding:1.4rem;border-radius:1.1rem;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.25)}.rota-modal-dialog label{display:grid;gap:.4rem;margin-top:1rem;font-weight:700}.rota-modal-dialog select{width:100%}.rota-modal-heading{display:flex;align-items:start;justify-content:space-between}.rota-modal-heading h3,.rota-modal-heading p{margin:.1rem 0}.rota-modal-close{padding:.25rem .65rem;font-size:1.4rem}.rota-profile-name{margin:.8rem 0;color:#334155;font-weight:800}.rota-modal-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.25rem}
.rota-import-modal .rota-modal-dialog{width:min(1180px,96vw);max-height:92vh;display:flex;flex-direction:column}.rota-import-controls{display:grid;grid-template-columns:2fr 1fr 1.5fr 1fr;gap:.75rem}.rota-import-controls label{min-width:0}.rota-import-controls input,.rota-import-controls select{width:100%}.rota-import-preview{min-height:180px;max-height:58vh;overflow:auto;border:1px solid #cbd5e1;border-radius:.65rem;background:#fff;user-select:none}.rota-import-grid{border-collapse:collapse;width:max-content;min-width:100%;font-size:.72rem}.rota-import-grid th,.rota-import-grid td{min-width:48px;height:30px;padding:.2rem .35rem;border:1px solid #d8dee9;text-align:center;white-space:nowrap}.rota-import-grid th{position:sticky;top:0;z-index:2;background:#e8eefc;color:#1e3a8a}.rota-import-grid .rota-import-row-number{position:sticky;left:0;z-index:3;min-width:42px;background:#f8fafc;color:#64748b}.rota-import-grid td.is-selected{background:#bfdbfe!important;box-shadow:inset 0 0 0 2px #2563eb}.rota-import-grid td.is-invalid{color:#b91c1c}.rota-import-help-error{color:#b91c1c!important}@media(max-width:800px){.rota-import-controls{grid-template-columns:1fr 1fr}.rota-import-modal .rota-modal-dialog{padding:1rem}}
.rota-generation-report{display:grid;gap:.35rem;margin-top:.75rem;padding:.7rem .85rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#f8fafc;color:#334155;font-size:.82rem}.rota-generation-report strong{color:#0f172a}.rota-generation-report span{display:block}.rota-generation-report ol{margin:.15rem 0 0 1.2rem;padding:0}
.rota-relaxation-warning{margin:.35rem 0;padding:.65rem .75rem;border-left:4px solid #d97706;background:#fffbeb;color:#78350f}.rota-relaxation-warning strong,.rota-relaxation-warning span{display:block;color:inherit}.rota-relaxation-warning strong{margin-bottom:.2rem}
.rota-balanced-extra{margin:.35rem 0;padding:.65rem .75rem;border-left:4px solid #0284c7;background:#f0f9ff;color:#0c4a6e}.rota-balanced-extra strong,.rota-balanced-extra span{display:block;color:inherit}.rota-balanced-extra strong{margin-bottom:.2rem}
.rota-recovery-suggestions{display:grid;gap:0;margin-top:.75rem;border:1px solid #f59e0b;border-radius:6px;background:#fffbeb;color:#334155}.rota-recovery-suggestions[hidden]{display:none}.rota-recovery-heading{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;padding:.65rem .75rem;border-bottom:1px solid #fde68a}.rota-recovery-heading strong{color:#78350f}.rota-recovery-heading span{color:#92400e;font-size:.75rem}.rota-recovery-option{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem .75rem;border-bottom:1px solid #fde68a}.rota-recovery-option:last-child{border-bottom:0}.rota-recovery-option.is-verified{background:#ecfdf5}.rota-recovery-option b{color:#0f172a}.rota-recovery-option p{margin:.2rem 0;color:#475569;font-size:.78rem}.rota-recovery-option ul{margin:.3rem 0 0;padding-left:1.1rem;color:#334155;font-size:.75rem}.rota-recovery-option button{flex:0 0 auto}.rota-verified-label{display:inline-block;margin-left:.45rem;padding:.12rem .35rem;border-radius:4px;background:#047857;color:#fff;font-size:.65rem;font-weight:800}
.rota-feasibility-pass{background:#ecfdf5;border-color:#a7f3d0}.rota-feasibility-pass strong,.rota-feasibility-pass span{color:#065f46}.rota-diagnostic{padding:.7rem .75rem;border-bottom:1px solid #fde68a;background:#fff}.rota-diagnostic b{color:#991b1b}.rota-diagnostic p{margin:.25rem 0 0;color:#475569;font-size:.78rem}.rota-diagnostic.is-warning b{color:#92400e}
@media(max-width:600px){.rota-recovery-option{align-items:stretch;flex-direction:column}.rota-recovery-option button{width:100%}}
.rota-proof-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.65rem;margin-top:.25rem}.rota-proof-grid section{min-width:0;padding:.5rem 0;border-top:1px solid #dbe3ed}.rota-proof-grid b{display:block;margin-bottom:.2rem;color:#0f172a}.rota-proof-grid span{overflow-wrap:anywhere}
.rota-rule-grid label[data-help]{position:relative;cursor:help}.rota-rule-grid label[data-help]:is(:hover,:focus-within)::after{content:attr(data-help);position:absolute;left:0;top:calc(100% + .35rem);z-index:30;width:min(280px,70vw);padding:.55rem .65rem;border:1px solid #cbd5e1;border-radius:.45rem;background:#0f172a;color:#fff;font-size:.76rem;font-weight:600;line-height:1.35;white-space:normal;box-shadow:0 12px 28px rgba(15,23,42,.18);pointer-events:none}
.rota-accuracy-control{display:grid;grid-template-columns:minmax(70px,1fr) auto;align-items:center;gap:.45rem;min-width:0;min-height:1.4rem}.rota-accuracy-control input[type="range"]{width:100%;min-width:0;height:22px;margin:0;padding:0;accent-color:#2563eb;cursor:grab;touch-action:pan-y}.rota-accuracy-control input[type="range"]:active{cursor:grabbing}.rota-accuracy-control input[type="range"]::-webkit-slider-runnable-track{height:7px;border-radius:999px}.rota-accuracy-control input[type="range"]::-webkit-slider-thumb{width:20px;height:20px;margin-top:-6px}.rota-accuracy-control input[type="range"]::-moz-range-track{height:7px;border-radius:999px}.rota-accuracy-control input[type="range"]::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%}.rota-accuracy-control output{min-width:0;color:#475569;font-size:.65rem;font-weight:800;text-align:right;white-space:nowrap}.rota-rule-flexible{box-shadow:inset 3px 0 #d97706;padding-left:.4rem}.rota-rule-flexible .rota-accuracy-control output{color:#9a3412}.rota-coverage-flex-warning{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.1rem 0 .75rem;padding:.55rem .7rem;border:1px solid #f59e0b;border-radius:6px;background:#fffbeb;color:#78350f;font-size:.76rem}.rota-coverage-flex-warning[hidden]{display:none}.rota-coverage-flex-warning span{overflow-wrap:anywhere}
@media(max-width:800px){.rota-accuracy-control{grid-template-columns:1fr;gap:.1rem}.rota-accuracy-control output{text-align:left}}
.rota-summary .rota-coverage-flex{background:#fef3c7;color:#92400e}
.rota-duty-cell{display:grid;grid-template-columns:1fr 14px;align-items:stretch;height:100%}.rota-duty-cell.is-locked{outline:2px solid #0f766e;outline-offset:-2px;background:#ccfbf1}.rota-lock{display:grid;place-items:center;width:14px;height:100%;padding:0;border:0;border-left:1px solid #cbd5e1;border-radius:0;background:#f8fafc;color:#475569;font-size:.55rem;font-weight:900;line-height:1}.rota-duty-cell.is-locked .rota-lock{background:#0f766e;color:#fff}.rota-link-card{padding:.7rem 1rem!important}.rota-link-editor{display:grid;grid-template-columns:minmax(180px,260px) 1fr auto;gap:.75rem;align-items:end;margin-top:1rem}.rota-link-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.35rem;max-height:8rem;overflow:auto;padding:.55rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#f8fafc}.rota-link-members label{display:flex;align-items:center;gap:.35rem;font-size:.78rem;font-weight:700}.rota-link-actions{display:flex;gap:.5rem}.rota-link-list{display:grid;gap:.45rem;margin:.8rem 0 0;padding:0;list-style:none}.rota-link-list li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .55rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#fff}.rota-link-list li>button:first-child{display:grid;gap:.15rem;min-width:0;padding:0;border:0;background:transparent;color:#0f172a;text-align:left;box-shadow:none}.rota-link-list span{overflow:hidden;color:#64748b;text-overflow:ellipsis;font-size:.76rem}
.rota-slot-toolbar{display:flex;align-items:center;gap:.65rem;min-height:3rem;padding:.45rem .8rem;border-bottom:1px solid #cbd5e1;background:#f8fafc}.rota-slot-toolbar>strong{font-size:.76rem;white-space:nowrap}.rota-slot-palette{display:flex;align-items:stretch;gap:.3rem;overflow-x:auto}.rota-slot-choice{display:grid;grid-template-columns:auto auto;align-items:center;gap:.35rem;min-width:58px;height:34px;padding:.2rem .45rem;border:1px solid #cbd5e1;border-radius:6px;box-shadow:none;font-size:.68rem}.rota-slot-choice strong{font-size:.78rem}.rota-slot-choice span{font-weight:700}.rota-slot-choice.is-selected{border-color:#2563eb;outline:2px solid #2563eb;outline-offset:1px}.rota-slot-choice.duty-a,.duty-a{background:#cffafe;color:#155e75}.rota-slot-clear{background:#fff;color:#475569}.rota-slot-lock-option{display:flex;align-items:center;gap:.35rem;margin-left:auto;font-size:.72rem;font-weight:800;white-space:nowrap}.rota-slot-lock-option input{width:16px;height:16px;margin:0}.rota-slot-history{display:flex;gap:.3rem}.rota-slot-history button{display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:6px}.rota-slot-history .material-icon{font-size:1.15rem}.rota-slot-history button:disabled{opacity:.4}
@media(max-width:800px){.rota-slot-toolbar{align-items:flex-start;flex-wrap:wrap}.rota-slot-toolbar>strong{width:100%}.rota-slot-lock-option{margin-left:0}.rota-slot-history{margin-left:auto}.rota-slot-choice span{display:none}.rota-slot-choice{grid-template-columns:1fr;min-width:36px}}
@media(max-width:800px){.rota-link-editor{grid-template-columns:1fr}.rota-link-actions{flex-wrap:wrap}.rota-link-actions button{min-width:0}}

/* Dense Excel-style monthly roster */
.duty-rota-panel{gap:.65rem}.duty-rota-header{padding:1rem 1.25rem}.rota-status-grid{display:none}.rota-controls,.rota-request-card{padding:.7rem 1rem!important}.rota-table-toolbar{padding:.65rem .8rem .35rem}.rota-table-toolbar h3{font-size:1rem}.rota-data-toolbar{padding:.4rem .8rem}.rota-message{margin:.15rem .8rem;font-size:.75rem}.rota-help{margin:.15rem .8rem .45rem;font-size:.75rem}.rota-table{font-size:.68rem}.rota-table col.rota-col-staff{width:165px}.rota-table col.rota-col-id{width:55px}.rota-table col.rota-col-meta{width:70px}.rota-table col.rota-col-check{width:32px}.rota-table col.rota-col-history{width:38px}.rota-table col.rota-col-day{width:40px}.rota-table col.rota-col-total{width:36px}.rota-table col.rota-col-hours{width:46px}.rota-table th,.rota-table td{height:31px;padding:0;border-color:#cbd5e1}.rota-table thead th{height:25px;background:#dbe7f3;color:#172554;font-size:.65rem}.rota-table thead tr.rota-weekdays th{top:25px;height:20px;font-size:.58rem;font-weight:600}.rota-table :is(th,td):nth-child(2){left:165px}.rota-table :is(th,td):nth-child(3){left:220px}.rota-table :is(th,td):nth-child(4){left:290px}.rota-table :is(th,td):nth-child(5){left:322px}.rota-table tbody th{padding-left:.4rem;overflow:hidden;text-overflow:ellipsis}.rota-duty{width:100%;height:30px;border-radius:0;background:#fff;color:#0f172a;font-size:.67rem}.rota-duty:hover,.rota-duty:focus-visible{position:relative;z-index:1;outline:2px solid #2563eb;outline-offset:-2px}.rota-history-heading,.rota-history-cell{background:#f8fafc!important;color:#64748b}.rota-history-heading:first-of-type,.rota-history-cell:first-of-type{border-left:3px solid #64748b}.rota-history-cell{opacity:.86}.rota-duty-history{display:block;cursor:default;pointer-events:none}.duty-d{background:#fff;color:#111827}.duty-n{background:#cbd5e1;color:#0f172a}.duty-al{background:#fef908;color:#111827}.duty-o,.duty-off{background:#e5e7eb;color:#374151}.rota-weekend{background:#eef2f7!important}.rota-today{box-shadow:inset 2px 0 #0891b2,inset -2px 0 #0891b2}.rota-profile-warning{display:inline;margin-left:.3rem;color:#b45309;font-size:.7rem}.rota-group-row th{position:static!important;height:22px!important;padding-left:.5rem!important;background:#111827!important;color:#fff!important;text-align:left!important;letter-spacing:.04em}.rota-summary th,.rota-summary td{height:24px;background:#eaf2fb;color:#1e3a8a}.rota-summary-total th,.rota-summary-total td{background:#dbeafe;color:#172554;font-weight:900}.rota-summary .rota-coverage-low{background:#fee2e2;color:#b91c1c}.rota-table input[type="checkbox"]{width:13px;height:13px;margin:0}.rota-table-wrap{max-height:min(70vh,760px);overflow:auto}.rota-table thead{position:sticky;top:0;z-index:7}.rota-table tbody tr:not(.rota-group-row):hover :is(th,td){filter:brightness(.97)}
.rota-duty-history{filter:saturate(.55);opacity:.82}.rota-table :is(th,td):nth-child(6){border-left:3px solid #64748b}
.rota-import-summary{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;padding:.7rem .8rem;border:1px solid #bfdbfe;border-radius:.65rem;background:#eff6ff;color:#1e3a8a}.rota-import-summary[hidden]{display:none}.rota-import-summary strong,.rota-import-summary span{padding:.25rem .5rem;border-radius:999px;background:#fff}.rota-import-summary details{flex-basis:100%;color:#334155}.rota-import-summary details p{max-height:8rem;overflow:auto;margin:.45rem 0 0;font-size:.8rem;line-height:1.5}
