:root {
  --navy: #112f3e;
  --navy-soft: #1b4657;
  --teal: #0c8b83;
  --teal-dark: #08726c;
  --mint: #dff5ef;
  --sky: #eaf4f7;
  --green: #2f855a;
  --amber: #b7791f;
  --red: #b83232;
  --ink: #1f2933;
  --muted: #66788a;
  --line: #d8e1e8;
  --surface: #ffffff;
  --page: #f5f8f8;
  --shadow: 0 14px 36px rgba(17, 47, 62, 0.08);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}

#app, .shell { width: 100%; max-width: 100%; min-width: 0; }

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

button {
  cursor: pointer;
  border: 0;
  min-height: 44px;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 124, 123, .28);
  outline-offset: 2px;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(17, 47, 62, .97);
  color: white;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.hero > div,
.module-card,
.card {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 43px;
  height: 47px;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}

.brand-mark svg { width: 100%; height: 100%; display: block; }
.logo-shield { fill: #dff5ef; stroke: #9ce3d4; stroke-width: 2; }
.brand-copy { min-width: 0; }

.brand h1 {
  margin: 0;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.brand p {
  margin: 4px 0 0;
  opacity: .8;
  font-size: .86rem;
}

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

.role-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.88);
  font-size: .8rem;
  font-weight: 800;
}

.page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 28px) 56px;
  flex: 1;
}

.side-nav, .bottom-nav { display: none; }
.authenticated-shell .topbar { position: fixed; inset: 0 0 auto; height: 78px; padding: 12px 28px; }
.authenticated-shell .page { width: auto; margin: 78px 0 0 92px; padding-left: 32px; padding-right: 32px; }
.authenticated-shell .site-footer { margin-left: 92px; }
.side-nav { position: fixed; z-index: 9; inset: 78px auto 0 0; width: 92px; padding: 18px 10px; background: var(--navy); }
.authenticated-shell .side-nav { display: flex; flex-direction: column; gap: 8px; }
.workspace-nav-item { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; background: transparent; color: #b9d0d8; }
.workspace-nav-item span { font-size: 1.3rem; line-height: 1; }
.workspace-nav-item small { font-size: .7rem; font-weight: 800; }
.workspace-nav-item:hover, .workspace-nav-item.is-active { background: rgba(104,224,209,.14); color: #9ff5e8; }
.notification-button { position: relative; width: 44px; border-radius: 50%; background: rgba(255,255,255,.08); color: white; }
.notification-button span { color: #68e0d1; font-size: .6rem; }
.profile-button { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border-radius: 999px; background: rgba(255,255,255,.08); color: white; }
.profile-button span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--navy); font-weight: 900; }
.profile-button strong { font-size: .82rem; }
.bottom-nav { display: none; }
.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; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  color: var(--muted);
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 28px);
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .01em;
}

.footer-inner p { margin: 0; }
.footer-copyright { color: var(--navy); font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.footer-links a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a:focus-visible { outline: 3px solid rgba(15, 124, 123, .28); outline-offset: 3px; border-radius: 3px; }
.footer-disclaimer { max-width: 860px; font-size: .72rem; line-height: 1.45; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid rgba(216, 225, 232, .85);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.login-layout {
  min-height: calc(100vh - 154px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding: 46px 0;
  position: relative;
}

.login-layout::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -210px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,139,131,.08), transparent 68%);
  pointer-events: none;
}

.login-intro {
  max-width: 620px;
  position: relative;
  isolation: isolate;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 30, 52, .94), rgba(12, 93, 112, .84)),
    #112f3e;
  box-shadow: 0 32px 80px rgba(17, 47, 62, .22);
}

.login-intro h2 {
  margin: 18px 0 20px;
  color: white;
  font-size: clamp(2.55rem, 5vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -.055em;
  position: relative;
  z-index: 2;
}

.hero-line { display: block; }
.hero-accent {
  margin-top: .08em;
  color: #68e0d1;
  text-shadow: 0 0 32px rgba(104, 224, 209, .18);
}

.login-intro > p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hero-motion,
.hero-motion span {
  position: absolute;
  pointer-events: none;
}

.hero-motion { inset: 0; overflow: hidden; z-index: -1; }

.motion-orb {
  border-radius: 999px;
  filter: blur(10px);
  opacity: .85;
  will-change: transform;
}

.motion-orb-one {
  width: 360px;
  height: 360px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle at 35% 35%, rgba(91, 223, 255, .92), rgba(40, 123, 210, .12) 68%, transparent 72%);
  animation: heroFloatOne 11s ease-in-out infinite alternate;
}

.motion-orb-two {
  width: 430px;
  height: 430px;
  left: -210px;
  bottom: -250px;
  background: radial-gradient(circle at 60% 35%, rgba(62, 226, 190, .68), rgba(19, 99, 151, .12) 66%, transparent 72%);
  animation: heroFloatTwo 14s ease-in-out infinite alternate;
}

.motion-grid {
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom right, transparent 8%, black 66%, transparent 100%);
  animation: heroGrid 18s linear infinite;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: heroReveal .75s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-reveal-1 { animation-delay: .08s; }
.hero-reveal-2 { animation-delay: .2s; }
.hero-reveal-3 { animation-delay: .42s; }
.hero-reveal-4 { animation-delay: .66s; }
.hero-reveal-5 { animation-delay: .95s; }

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: .78em;
  margin-left: .09em;
  border-radius: 3px;
  background: #b9fff5;
  animation: cursorBlink .9s steps(1) infinite;
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes heroFloatOne {
  from { transform: translate3d(-20px, -12px, 0) scale(1); }
  to { transform: translate3d(-92px, 105px, 0) scale(1.22); }
}

@keyframes heroFloatTwo {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(150px, -105px, 0) scale(1.14); }
}

@keyframes heroGrid {
  to { background-position: 54px 54px, 54px 54px; }
}

.login-label,
.access-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.login-intro .login-label { color: #9ff5e8; position: relative; z-index: 2; }
.login-intro .login-label span { background: #68e0d1; box-shadow: 0 0 0 5px rgba(104,224,209,.13); }

.login-label span,
.access-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(12,139,131,.1);
}

.learning-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  position: relative;
  z-index: 2;
}

.learning-flow div { min-width: 104px; }
.learning-flow div > span {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 900;
  margin-bottom: 9px;
}

.learning-flow strong { display: block; color: white; font-size: .92rem; }
.learning-flow small { display: block; color: rgba(255,255,255,.62); font-size: .72rem; margin-top: 2px; }
.learning-flow i { width: 34px; height: 1px; background: rgba(255,255,255,.25); margin-top: -22px; }
.login-intro .login-platform-note { margin-top: 38px; font-size: .82rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .motion-orb,
  .motion-grid,
  .hero-reveal,
  .typing-cursor {
    animation: none;
  }

  .hero-reveal { opacity: 1; transform: none; }
  .typing-cursor { opacity: 1; }
  .login-flip { transition-duration: .01ms; }
}

.login-flip-shell {
  width: 100%;
  max-width: 520px;
  perspective: 1500px;
}

.login-flip {
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .72, .2, 1);
}

.login-flip.is-flipped { transform: rotateY(180deg); }

.login-card {
  grid-area: 1 / 1;
  max-width: 520px;
  width: 100%;
  padding: clamp(28px, 4vw, 42px);
  border-color: rgba(12,139,131,.18);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(17,47,62,.14);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(1px);
}

.login-card-front { pointer-events: auto; }
.login-card-back {
  transform: rotateY(180deg) translateZ(1px);
  pointer-events: none;
}

.login-flip.is-flipped .login-card-front { pointer-events: none; }
.login-flip.is-flipped .login-card-back { pointer-events: auto; }

.login-card-front {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.get-started-logo {
  width: 74px;
  height: 82px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 16px rgba(17,47,62,.14));
}

.get-started-logo svg { width: 100%; height: 100%; display: block; }
.login-card-front h2 { margin-top: 4px; }
.login-card-front .login-card-intro { margin-bottom: 24px; }

.get-started-btn {
  justify-content: space-between;
  padding: 14px 18px;
  margin-top: 8px;
  font-size: 1rem;
}

.get-started-btn span { font-size: 1.25rem; }

.login-card h2 { margin: 18px 0 8px; color: var(--navy); font-size: 1.85rem; letter-spacing: -.025em; }
.login-card-intro { margin: 0 0 28px; color: var(--muted); font-size: .92rem; }
.login-card label { color: var(--navy); font-size: .84rem; }
.login-card input,
.login-card select { border-color: #ccd9df; background: #fbfcfc; }
.login-card input:focus,
.login-card select:focus { border-color: var(--teal); background: white; }
.login-submit { justify-content: space-between; padding-left: 18px; padding-right: 18px; margin-top: 12px; }
.login-submit span { font-size: 1.2rem; }
.access-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: .76rem; }
.access-note span { color: var(--teal-dark); font-weight: 900; }
.entry-options,.access-form{display:grid;gap:14px}.entry-options[hidden],.access-form[hidden]{display:none}.entry-option{border:1px solid #ccd9df;border-radius:12px;background:#fbfcfc;color:var(--navy);padding:15px;text-align:left;cursor:pointer}.entry-option:hover,.entry-option:focus-visible{border-color:var(--teal);box-shadow:0 0 0 3px rgba(32,165,142,.12)}.entry-option strong,.entry-option small{display:block}.entry-option small{color:var(--muted);margin-top:4px}.access-form h3{margin:0;color:var(--navy)}.access-form .link-button{justify-self:start}.auth-status{border-radius:8px;background:#f2f8f7;color:var(--navy);padding:9px;font-size:.82rem;min-height:1em}.auth-status:empty{display:none}.recovery-card{max-width:520px;margin:40px auto}.recovery-card form{display:grid;gap:14px}
.password-control{display:flex;align-items:center;gap:10px}.password-control input{flex:1}.password-control .password-toggle{flex:none}

.department-heading {
  max-width: 760px;
  padding: 22px 0 24px;
}

.department-heading h2 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.department-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.department-card {
  min-width: 0;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.department-active:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 139, 131, .4);
  box-shadow: 0 22px 44px rgba(17, 47, 62, .13);
}

.department-planned { background: #f9fbfb; box-shadow: none; }

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

.department-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px rgba(12,139,131,.08);
}

.department-icon svg { width: 29px; height: 29px; display: block; }

.department-planned .department-icon { background: #edf1f2; color: #71808a; box-shadow: inset 0 0 0 1px rgba(113,128,138,.08); }

.department-status {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
}

.status-active { color: #17633f; background: #def4e8; }
.status-planned { color: #687782; background: #edf1f2; }

.department-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.18rem; }
.department-card p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.5; }
.department-card-footer { margin-top: auto; }
.department-card-footer > span { color: var(--muted); font-size: .8rem; font-weight: 800; }

.btn-disabled,
.btn-disabled:hover {
  cursor: not-allowed;
  color: #73818a;
  background: #e8edef;
}

.platform-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #cce7df;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 12px 22px;
  color: var(--navy);
  background: var(--mint);
}

.platform-note span { color: #4e6c6b; font-size: .9rem; }

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

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

label {
  display: block;
  font-weight: 700;
  margin: 14px 0;
}

input[type="text"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-top: 7px;
  background: white;
  min-height: 46px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  background: var(--teal);
  color: white;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn:hover { background: var(--teal-dark); }

.btn-wide { width: 100%; margin-top: 4px; }

.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-danger {
  background: var(--red);
  color: white;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.dashboard-hero {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(116, 226, 203, .25), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 20px 45px rgba(17, 47, 62, .16);
}

.dashboard-hero .eyebrow { color: #9ce3d4; }
.dashboard-welcome h2 { margin: 8px 0 8px; font-size: clamp(1.65rem, 3vw, 2.55rem); }
.dashboard-welcome p { max-width: 650px; margin: 0; color: rgba(255,255,255,.74); }

.progress-ring {
  width: 124px;
  height: 124px;
  flex: 0 0 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#7de0cb var(--progress), rgba(255,255,255,.15) 0);
}

.progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--navy);
}

.progress-ring div { grid-area: 1 / 1; position: relative; text-align: center; }
.progress-ring strong { display: block; font-size: 1.45rem; }
.progress-ring span { color: rgba(255,255,255,.68); font-size: .76rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.stat-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255,255,255,.72);
}

.stat-card span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.stat-card strong { color: var(--navy); font-size: 1.35rem; }
.status-word { font-size: 1rem !important; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h3 { margin: 5px 0 0; font-size: 1.4rem; color: var(--navy); }

.hero h2 { margin: 0 0 6px; }
.hero p { margin: 0; color: var(--muted); }

.kpi {
  text-align: center;
  min-width: 150px;
}

.kpi strong {
  display: block;
  font-size: 1.8rem;
  color: var(--navy);
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #dce7ec;
  overflow: hidden;
  margin: 12px 0 22px;
}

.progress-bar {
  height: 100%;
  background: var(--teal);
  transition: width .25s ease;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 139, 131, .35);
  box-shadow: 0 18px 40px rgba(17, 47, 62, .12);
}

.module-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
}

.module-duration {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.module-card h3 { margin: 0; }
.module-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.module-card h3,
.module-card p,
.lesson,
td,
th {
  overflow-wrap: anywhere;
}

.module-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.patient-journey {
  margin: 0 0 34px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(216,225,232,.9);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(17,47,62,.07);
}

.journey-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.journey-heading h3 { margin: 5px 0 0; color: var(--navy); font-size: 1.35rem; }
.journey-caption { color: var(--muted); font-size: .78rem; font-weight: 800; }

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 9%;
  right: 9%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), #83c9bd);
}

.journey-track li {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid #b9e1d8;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--mint);
  box-shadow: 0 0 0 7px var(--surface);
}

.journey-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-copy { display: block; margin-top: 13px; min-width: 0; }
.journey-copy small { display: block; color: var(--teal-dark); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.journey-copy strong { display: block; margin-top: 3px; color: var(--navy); font-size: .88rem; }
.journey-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.35; }

.training-area-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 310px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.training-area-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -65px;
  top: -70px;
  border-radius: 50%;
  background: var(--mint);
  opacity: .65;
}

.training-area-card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 139, 131, .35);
  box-shadow: 0 18px 40px rgba(17, 47, 62, .12);
}

.training-area-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.area-code {
  min-width: 54px;
  height: 54px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: var(--teal);
  color: white;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.training-area-card h3 { margin: 0 0 3px; color: var(--navy); font-size: 1.32rem; }
.training-area-card p { color: var(--muted); line-height: 1.5; }
.area-full-name { color: var(--teal-dark); font-size: .85rem; font-weight: 800; }

.area-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ecef;
  margin-top: auto;
}

.area-progress span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

.area-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 18px 0;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.area-hero .eyebrow { color: #9ce3d4; }
.area-hero h2 { margin: 5px 0 2px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.area-hero p { margin: 0; color: rgba(255,255,255,.72); }

.area-code-large {
  min-width: 72px;
  height: 72px;
  background: rgba(125, 224, 203, .18);
  border: 1px solid rgba(156, 227, 212, .34);
  color: #9ce3d4;
}

.area-completion {
  text-align: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.09);
}

.area-completion strong { display: block; font-size: 1.35rem; }
.area-completion span { color: rgba(255,255,255,.68); font-size: .76rem; }

.area-workflow-note {
  display: flex;
  gap: 8px 22px;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px 18px;
  border: 1px solid #bfe7dd;
  border-radius: 13px;
  background: var(--mint);
  color: var(--navy);
}

.area-workflow-note span { color: #416664; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
}

.badge-not-started { background: #edf2f7; color: #52606d; }
.badge-in-progress { background: #fff3cd; color: #7a5a00; }
.badge-complete { background: #dff4e8; color: #276749; }
.badge-locked { background: #eceff2; color: #7b8794; }

.lesson {
  max-width: 850px;
  margin: 0 auto;
}

.lesson h2 { margin-top: 0; }
.lesson h3 { margin-top: 26px; color: var(--navy); }
.lesson li { margin-bottom: 9px; line-height: 1.5; }

.notice {
  border-left: 4px solid var(--amber);
  background: #fff8e7;
  padding: 14px;
  border-radius: 8px;
  margin: 18px 0;
}

.video-placeholder {
  background: linear-gradient(135deg, #dbeaf0, #eef6f8);
  border: 1px dashed #9bb3c1;
  min-height: 220px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.quiz-option {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  font-weight: 500;
  cursor: pointer;
}

.quiz-option input {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quiz-option:hover { background: #f7fbfc; }

.result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  font-weight: 800;
}

.result-pass { background: #dff4e8; color: #276749; }
.result-fail { background: #fde8e8; color: #9b2c2c; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: .85rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f4;
}

.check-row input { margin-top: 3px; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
}

.section-title h3 { margin: 0; }

.trainer-identity {
  min-width: 210px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.trainer-identity span { display: block; color: rgba(255,255,255,.64); font-size: .76rem; }
.trainer-identity strong { display: block; margin-top: 3px; }
.dashboard-card { margin-top: 18px; }

.access-boundary {
  display: flex; align-items: flex-start; gap: 12px; margin: 18px 0;
  padding: 14px 16px; border: 1px solid #b9ddd7; border-radius: 14px; background: var(--mint); color: var(--navy);
}
.access-boundary p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.management-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.management-stats .stat-card { align-items: flex-start; flex-direction: column; gap: 3px; }
.management-stats .stat-card small { color: var(--muted); font-size: .75rem; }
.management-section h3 { margin: 5px 0 0; color: var(--navy); }
.management-section .section-heading { margin-bottom: 16px; }
.management-progress { min-width: 170px; display: flex; align-items: center; gap: 10px; }
.management-progress > span { width: 110px; height: 8px; overflow: hidden; border-radius: 99px; background: #dce7ec; }
.management-progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.management-progress strong { color: var(--navy); font-size: .86rem; }
.status-chip { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.status-success { color: var(--green); background: #e3f5eb; }
.status-warning { color: #8a5b10; background: #fff3d6; }
.status-danger { color: var(--red); background: #fde8e8; }
.management-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.management-grid table small { display: block; color: var(--muted); }
.count-badge { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 99px; background: var(--mint); color: var(--teal-dark); font-weight: 900; }
.readonly-note { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }
.alert-list { display: grid; gap: 10px; }
.compliance-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 11px; padding: 13px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; }
.compliance-alert.alert-danger { border-left-color: var(--red); }
.compliance-alert.alert-warning { border-left-color: var(--amber); }
.alert-indicator { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 900; }
.compliance-alert h4 { margin: 6px 0 2px; color: var(--navy); }
.compliance-alert p { margin: 0; color: var(--muted); font-size: .8rem; }
.compliance-alert > strong { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.management-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.management-title h2 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.management-subtitle { margin: 5px 0 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
.stat-complete { border-top: 3px solid var(--green); }
.stat-overdue { border-top: 3px solid var(--red); }
.performance-bar { height: 13px; overflow: hidden; margin-bottom: 14px; border-radius: 99px; background: #e1e9ec; }
.performance-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.progress-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 18px; color: var(--muted); font-size: .82rem; }
.progress-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; }
.legend-complete { background: var(--green); }.legend-pending { background: var(--amber); }.legend-overdue { background: var(--red); }
.staff-tools { display: flex; gap: 10px; margin-bottom: 16px; }
.staff-tools label:first-child { flex: 1; }
.staff-tools input, .staff-tools select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.staff-record small { display: block; color: var(--muted); }
.empty-state { color: var(--muted); font-size: .85rem; }

.small { font-size: .88rem; color: var(--muted); }

.footer-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

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

@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero, .topbar { align-items: stretch; flex-direction: column; }
  .login-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 18px; }
  .login-intro { max-width: 680px; }
  .login-intro h2 { font-size: clamp(2.15rem, 9vw, 3.45rem); }
  .dashboard-hero { align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .management-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-grid { grid-template-columns: 1fr; }
  .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-hero { grid-template-columns: auto 1fr; }
  .area-completion { grid-column: 1 / -1; }
  .journey-track { grid-template-columns: 1fr; gap: 0; }
  .journey-track::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .journey-track li { min-height: 82px; flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
  .journey-icon { flex: 0 0 56px; }
  .journey-copy { margin-top: 5px; }
  .top-actions { width: 100%; }
  .top-actions button { flex: 1; }
  .kpi { text-align: left; }
  .topbar { position: static; }
  .hero .kpi { width: 100%; }
  .video-placeholder { min-height: 180px; }
  .authenticated-shell { padding-bottom: 68px; }
  .authenticated-shell .topbar { position: sticky; height: auto; padding: 10px 14px; flex-direction: row; align-items: center; }
  .authenticated-shell .brand p, .authenticated-shell .role-pill, .authenticated-shell .profile-button strong { display: none; }
  .authenticated-shell .top-actions { width: auto; margin-left: auto; }
  .authenticated-shell .top-actions button { flex: none; }
  .authenticated-shell .page { width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 18px 14px 32px; overflow: hidden; }
  .authenticated-shell .site-footer { margin-left: 0; }
  .authenticated-shell .side-nav { display: none; }
  .authenticated-shell .bottom-nav { position: fixed; z-index: 20; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px max(5px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); border-top: 1px solid rgba(255,255,255,.12); background: var(--navy); }
  .bottom-nav .workspace-nav-item { min-height: 54px; border-radius: 9px; }
  .management-title { align-items: flex-start; }
}

@media (max-width: 560px) {
  .topbar {
    gap: 14px;
    padding: 14px;
  }

  .brand h1 { font-size: 1.1rem; }
  .brand p { font-size: .8rem; }

  .top-actions,
  .module-meta,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .role-pill { align-self: flex-start; }
  .login-layout { padding-top: 6px; }
  .login-intro h2 { margin-top: 8px; }
  .login-benefits { margin-top: 24px; }
  .learning-flow { align-items: flex-start; flex-direction: column; gap: 14px; }
  .learning-flow div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; min-width: 0; }
  .learning-flow div > span { grid-row: 1 / 3; margin: 0; }
  .learning-flow i { display: none; }
  .dashboard-hero { flex-direction: column; border-radius: 18px; }
  .progress-ring { width: 108px; height: 108px; flex-basis: 108px; }
  .progress-ring::before { width: 82px; height: 82px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .stat-card { padding: 15px 16px; }
  .management-stats { grid-template-columns: 1fr; }
  .management-title, .staff-tools { flex-direction: column; }
  .management-title .btn, .staff-tools label { width: 100%; }
  .access-boundary { padding: 12px; }
  .management-progress { min-width: 145px; }
  .management-progress > span { width: 82px; }
  .compliance-alert { grid-template-columns: auto 1fr; }
  .compliance-alert > strong { grid-column: 2; }
  .department-grid { grid-template-columns: 1fr; }
  .department-card { min-height: 270px; }
  .department-card-footer { align-items: stretch; flex-direction: column; }
  .department-card-footer .btn { width: 100%; }
  .platform-note { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-wrap: wrap; gap: 6px 10px; text-align: center; }
  .area-hero { grid-template-columns: 1fr; text-align: left; }
  .area-code-large { min-width: 64px; width: fit-content; height: 64px; }
  .area-completion { grid-column: auto; text-align: left; }
  .area-workflow-note { align-items: flex-start; flex-direction: column; }
  .journey-heading { align-items: flex-start; flex-direction: column; gap: 6px; }

  .top-actions button,
  .module-meta .btn,
  .lesson > .btn,
  .login-card > .btn,
  form > .btn,
  #signoffBtn {
    width: 100%;
  }

  .page {
    padding: 16px 12px 40px;
  }

  .card {
    padding: 16px;
    border-radius: 13px;
    max-width: 100%;
    overflow: hidden;
  }

  .login-wrap {
    min-height: auto;
    padding-top: 18px;
  }

  .hero {
    margin-bottom: 14px;
  }

  .hero h2 { font-size: 1.4rem; }
  .kpi { padding: 14px; }
  .kpi strong { font-size: 1.55rem; }
  .grid { gap: 14px; }

  .badge {
    align-self: flex-start;
  }

  .lesson h2 { font-size: 1.45rem; }
  .lesson h3 { font-size: 1.08rem; }
  .lesson ol, .lesson ul { padding-left: 22px; }
  .video-placeholder { min-height: 150px; }

  fieldset { padding: 12px; }
  legend { line-height: 1.35; }

  th, td {
    padding: 10px 8px;
    white-space: normal;
    min-width: 120px;
  }

  th:first-child,
  td:first-child {
    min-width: 180px;
  }

  #dashboardBtn {
    width: 100%;
    margin: 10px 0 0 !important;
  }
}

@media (max-width: 380px) {
  .page { padding-inline: 8px; }
  .card { padding: 14px; }
  .btn { padding-inline: 12px; }
}

/* Role-scoped trainer and approval workflow */
.department-switcher,.trainer-filters,.assignment-row,.review-card,.profile-actions{display:flex;gap:12px;align-items:center}.department-switcher{justify-content:space-between;background:#e7faf4;border:1px solid #b8e8da;border-radius:14px;padding:14px 18px;margin:18px 0}.department-switcher label{display:flex;gap:10px;align-items:center}.assignment-list,.review-list{display:grid;gap:10px}.assignment-row{justify-content:space-between;border:1px solid var(--line);border-radius:10px;padding:12px}.assignment-row span,.review-card>div{display:grid}.assignment-row small,.review-card span{color:var(--muted)}.review-card{align-items:flex-end;border:1px solid var(--line);border-radius:12px;padding:14px;flex-wrap:wrap}.review-card label{flex:1;min-width:240px}.review-card textarea{min-height:64px}.btn-danger{background:#a93838}.trainer-filters{flex-wrap:wrap;margin-bottom:14px}.trainer-filters input,.trainer-filters select{flex:1;min-width:150px}.link-button{border:0;background:none;color:#087d72;font:inherit;font-weight:700;padding:0;cursor:pointer}.trainee-profile{margin-top:20px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.profile-grid>div{background:#f5faf9;border-radius:12px;padding:14px}.activity-history{list-style:none;padding:0}.activity-history li{border-left:3px solid #20a58e;padding:8px 14px;margin:10px 0}.activity-history li div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.activity-history span,.activity-history small{color:var(--muted)}.alert-text{color:#a93838;font-weight:700}.coming-soon{text-align:center;margin-top:18px}.status-neutral{background:#edf1f2;color:#50616a}@media(max-width:700px){.department-switcher,.review-card{align-items:stretch;flex-direction:column}.department-switcher label{display:grid}.trainer-filters{display:grid;grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.profile-actions{flex-direction:column;align-items:stretch}}

@media(max-width:700px){
  .trainer-hero{gap:18px}.trainer-identity{width:100%;min-width:0}.department-switcher{padding:14px;margin:14px 0}.department-switcher label,.department-switcher select,.trainer-filters input,.trainer-filters select{width:100%;min-width:0}.trainer-filters+ .table-wrap{overflow:visible}.trainer-filters+ .table-wrap table,.trainer-filters+ .table-wrap tbody,.trainer-filters+ .table-wrap tr,.trainer-filters+ .table-wrap td{display:block;width:100%}.trainer-filters+ .table-wrap thead{display:none}.trainer-filters+ .table-wrap tr{margin-bottom:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.trainer-filters+ .table-wrap td{display:grid;grid-template-columns:minmax(88px,.7fr) minmax(0,1.3fr);gap:12px;align-items:center;min-width:0!important;padding:8px 0;border:0;white-space:normal}.trainer-filters+ .table-wrap td::before{color:var(--muted);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.trainer-filters+ .table-wrap td:nth-child(1)::before{content:'Trainee'}.trainer-filters+ .table-wrap td:nth-child(2)::before{content:'Progress'}.trainer-filters+ .table-wrap td:nth-child(3)::before{content:'Latest result'}.trainer-filters+ .table-wrap td:nth-child(4)::before{content:'Sign-off'}.trainer-filters+ .table-wrap td:nth-child(5)::before{content:'Due'}.trainer-filters+ .table-wrap .staff-identity{width:100%;min-width:0}.trainer-filters+ .table-wrap .status-chip{justify-self:start;white-space:normal}.bottom-nav .workspace-nav-item{min-width:0;padding-inline:4px}.bottom-nav .workspace-nav-item small{font-size:.66rem}}

@media(max-width:420px){
  .authenticated-shell .topbar{padding:8px 10px}.authenticated-shell .brand{gap:7px}.authenticated-shell .brand-mark{width:35px;height:39px;flex-basis:35px}.authenticated-shell .brand h1{font-size:1rem}.authenticated-shell .top-actions{gap:6px}.authenticated-shell .notification-button{width:40px}.authenticated-shell .profile-button{padding:3px}.authenticated-shell .profile-button span{width:34px;height:34px}.dashboard-hero{padding:20px}.dashboard-hero h2{font-size:1.65rem}.authenticated-shell .page{padding:14px 10px 28px}.stats-grid{gap:10px}.trainer-filters+ .table-wrap td{grid-template-columns:82px minmax(0,1fr)}
}

/* Management administration (authenticated workspace only) */
.directory-filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:10px;margin:16px 0}.bulk-bar{display:flex;align-items:center;gap:12px;background:#f2f8f7;border-radius:10px;padding:10px;margin-bottom:10px}.bulk-bar strong{margin-right:auto}.staff-detail{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.staff-detail dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.staff-detail dl div{background:#f5faf9;border-radius:10px;padding:10px}.staff-detail dt{color:var(--muted);font-size:.78rem;text-transform:uppercase}.staff-detail dd{font-weight:700;margin:4px 0}.audit-feed{display:grid;gap:8px}.audit-feed article{display:grid;border-left:3px solid #20a58e;padding:8px 12px;background:#f7fbfa}.audit-feed span,.audit-feed small{color:var(--muted)}.access-blocked{border-left:5px solid #a93838;margin-top:40px}.access-blocked h2{color:#a93838}@media(max-width:900px){.directory-filters{grid-template-columns:repeat(2,1fr)}.directory-filters input{grid-column:1/-1}.staff-detail dl{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.directory-filters,.staff-detail dl{grid-template-columns:1fr}.bulk-bar{align-items:stretch;flex-direction:column}.bulk-bar strong{margin:0}.bulk-bar .btn,.bulk-bar select{width:100%}}

/* Coordinated directory and assignment controls */
.staff-identity{display:inline-grid;gap:2px;text-align:left;vertical-align:middle}.staff-identity strong{color:var(--navy)}.staff-identity small,.employee-id{display:block;color:var(--muted);font-size:.78rem;font-weight:700;letter-spacing:.03em}.assignment-groups{display:grid;gap:22px;margin-top:18px}.assignment-groups>section{border-top:1px solid var(--line);padding-top:16px}.assignment-groups h4{margin:0 0 12px;color:var(--navy)}.assignment-control{display:grid;grid-template-columns:minmax(145px,1.2fr) minmax(90px,.7fr) minmax(220px,2fr) auto;gap:14px;align-items:end;border:1px solid var(--line);border-radius:12px;padding:14px}.assignment-control>span{align-self:center}.assignment-control label>span,.directory-filters label>span{display:block;margin-bottom:6px;color:var(--muted);font-size:.75rem;font-weight:800}.assignment-control select,.directory-filters input,.directory-filters select,.bulk-bar select{width:100%;height:46px;padding:0 36px 0 12px;border:1px solid var(--line);border-radius:10px;background-color:white;color:var(--ink)}.department-checks{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:10px}.department-checks legend{padding:0 5px;color:var(--muted);font-size:.75rem}.department-checks label{font-size:.82rem}.directory-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.directory-filters .search-filter{grid-column:span 2}.bulk-bar button:disabled{opacity:.5;cursor:not-allowed}.staff-detail dd small{display:block}.staff-table td:first-child{min-width:210px}
@media(max-width:1000px){.assignment-control{grid-template-columns:1fr 1fr}.assignment-control .btn{width:100%}.directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-filters .search-filter{grid-column:1/-1}}
@media(max-width:600px){.assignment-control,.directory-filters{grid-template-columns:1fr}.directory-filters .search-filter{grid-column:auto}.assignment-control{align-items:stretch}.staff-table,.staff-table tbody,.staff-table tr,.staff-table td{display:block;width:100%}.staff-table thead{display:none}.staff-table tr{margin-bottom:12px;padding:12px;border:1px solid var(--line);border-radius:12px}.staff-table td{display:flex;justify-content:space-between;gap:12px;min-width:0!important;padding:7px 0;border:0}.staff-table td::before{color:var(--muted);font-size:.75rem;font-weight:800}.staff-table td:nth-child(2)::before{content:'Role'}.staff-table td:nth-child(3)::before{content:'Department'}.staff-table td:nth-child(4)::before{content:'Progress'}.staff-table td:nth-child(5)::before{content:'Account'}.staff-table td:first-child{justify-content:flex-start}.table-wrap{overflow:visible}.bulk-bar{position:sticky;bottom:68px;z-index:5}.assignment-control select,.directory-filters input,.directory-filters select,.bulk-bar select,.assignment-control .btn{min-height:48px}}
