/* Decision Workout – Professional training portal styles */
:root {
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --text: #1a2332;
  --muted: #5a6578;
  --bg: #e4eaf1;
  --white: #ffffff;
  --accent: #1e5a8a;
  --accent-dark: #143d5c;
  --success: #1a7f4b;
  --warning: #c47d0e;
  --danger: #b42318;
  --action-green-dark: #14532d;
  --action-green-mid: #16a34a;
  --action-green-bright: #22c55e;
  --action-green-border: #15803d;
  --action-green-border-light: #86efac;
  --action-green-surface: #f0fdf4;
  --action-green-text: #fff;
  --action-green-title: #15803d;
  --action-green-gradient: linear-gradient(145deg, var(--action-green-dark) 0%, var(--action-green-mid) 100%);
  --action-green-gradient-hover: linear-gradient(145deg, var(--action-green-dark) 0%, #15803d 55%, var(--action-green-mid) 100%);
  --action-green-icon-gradient: linear-gradient(145deg, #15803d, #22c55e);
  --action-green-shadow: 0 2px 6px rgba(22, 101, 52, .28);
  --action-green-shadow-hover: 0 4px 14px rgba(22, 101, 52, .34);
  --dashboard-list-card-bg: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 10%, #f8fbff) 100%);
  --dashboard-list-card-border: color-mix(in srgb, var(--accent) 24%, #d4dde8);
  --dashboard-list-card-shadow: 0 1px 3px rgba(30, 107, 138, .06);
  --dashboard-pill-text: #fff;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
  --dashboard-pill-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 28%, transparent);
  --case-skill-blue-text: #1e5a8a;
  --case-skill-blue-bg: #eff6ff;
  --case-skill-blue-border: #bfdbfe;
  --case-skill-blue-gradient-start: #1e5a8a;
  --case-skill-blue-gradient-end: #2563eb;
  --case-skill-green-text: #047857;
  --case-skill-green-bg: #ecfdf5;
  --case-skill-green-border: #a7f3d0;
  --case-skill-green-gradient-start: #047857;
  --case-skill-green-gradient-end: #10b981;
  --case-skill-red-text: #b91c1c;
  --case-skill-red-bg: #fef2f2;
  --case-skill-red-border: #fecaca;
  --case-skill-red-gradient-start: #b91c1c;
  --case-skill-red-gradient-end: #ef4444;
  --case-skill-yellow-text: #a16207;
  --case-skill-yellow-bg: #fffbeb;
  --case-skill-yellow-border: #fde68a;
  --case-skill-yellow-gradient-start: #a16207;
  --case-skill-yellow-gradient-end: #eab308;
  --lock: #94a3b8;
  --border: #e2e8f0;
  --border-light: #eef2f6;
  --account-shadow: 0 1px 3px rgba(26, 35, 50, 0.05), 0 4px 16px rgba(26, 35, 50, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -.02em;
}
.logo .logo-primary {
  color: var(--accent-dark);
  font-weight: inherit;
}
.logo .logo-accent {
  color: var(--accent);
  font-weight: inherit;
}
.logo .logo-word { color: inherit; }
.logo-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}
.logo-with-mark > .logo-mark {
  margin-right: .55rem;
}
.logo-with-mark:hover {
  text-decoration: none;
  opacity: .92;
}
.logo-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: block;
}
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Static site pages — hamburger to the right of nav (after Terms/Contact) */
.site-header .header-inner {
  flex-wrap: nowrap;
  align-items: center;
}
.site-header .nav-links {
  margin-left: auto;
}
.site-hamburger-btn {
  display: flex;
  border: 1px solid #d4dde8;
  background: #f8fafc;
  margin-left: .5rem;
  flex-shrink: 0;
}
.site-hamburger-btn .hamburger-line {
  background: #145068;
}
.site-hamburger-btn:hover {
  background: #eef3f8;
}
.site-hamburger-btn.open {
  background: #e8eef5;
}
@media (max-width: 720px) {
  .site-header .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }
  .site-header .header-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-header .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem 0 .15rem;
    border-top: 1px solid #e2e8f0;
  }
  .site-header .nav-links.is-open {
    display: flex;
  }
  .site-hamburger-btn {
    order: 2;
    margin-left: auto;
  }
  .site-header .nav-links a {
    padding: .7rem .15rem;
    border-bottom: 1px solid #eef2f7;
  }
  .site-header .nav-links a:last-child {
    border-bottom: none;
  }
  body.landing-page .nav-links {
    width: 100%;
    gap: 0;
    font-size: .95rem;
  }
}

/* Landing page header — always default Decision Workout branding (unaffected by tour track theme) */
body.landing-page .site-header {
  --accent: #1e5a8a;
  --accent-dark: #143d5c;
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
}
body.landing-page .site-header .logo .logo-primary {
  color: #143d5c;
}
body.landing-page .site-header .logo .logo-accent {
  color: #1e5a8a;
}
body.landing-page .site-header .nav-links a {
  color: #5a6578;
}
body.landing-page .site-header .nav-links a:hover {
  color: #1e5a8a;
}
body.landing-page .site-header .btn-primary {
  background: #1e5a8a;
  color: #fff;
  border: none;
}
body.landing-page .site-header .btn-primary:hover {
  background: #143d5c;
  color: #fff;
}
body.landing-page .site-header .btn-ghost {
  background: #eef2f7;
  color: #1a2332;
}
body.landing-page .site-header .btn-ghost:hover {
  background: #dde4ed;
  color: #1a2332;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: #eef2f7; color: var(--text); }
.btn-ghost:hover { background: #dde4ed; }
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.btn-link:hover { color: var(--accent-dark); }
.login-remember {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .15rem 0 .85rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.login-remember input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--accent);
}
.login-forgot-row {
  margin: 0;
  width: 100%;
  text-align: center;
}
.login-modal {
  width: min(400px, 94vw);
  padding: 2.45rem 1.75rem 1.5rem;
}
.login-modal-header {
  text-align: center;
  margin-bottom: 1.15rem;
}
.login-modal-logo {
  justify-content: center;
  margin: 0 auto 0.65rem;
  font-size: 1.45rem;
}
.login-modal-logo .logo-mark {
  width: 2rem;
  height: 2rem;
}
.login-modal-title {
  margin: 0;
  font-size: 1.35rem;
  text-align: center;
}
.login-modal-form .form-group:last-of-type {
  margin-bottom: 1rem;
}
.login-modal-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.login-modal-submit {
  width: 100%;
  max-width: 100%;
}
.login-or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: lowercase;
}
.login-or-divider::before,
.login-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}
.login-or-divider span {
  flex-shrink: 0;
  line-height: 1;
}
.login-alt-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}
.login-alt-actions .btn {
  width: 100%;
}
.login-alt-back {
  margin: 1rem 0 0;
  text-align: center;
}
.login-modal-form .form-error:not(.hidden) {
  text-align: center;
}

/* Branded auth modals — close sits in white band above colored header */
.login-modal > .modal-close-btn,
.signup-modal > .modal-close-btn,
.forgot-password-modal > .modal-close-btn,
.instructor-picker-modal > .modal-close-btn,
.plan-choice-modal > .modal-close-btn,
.modal-case-role > .modal-close-btn,
.modal-preview-access.login-modal > .modal-close-btn,
.section-help-modal > .modal-close-btn {
  top: 0.4rem;
  right: 0.4rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-dark, #145068);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 35%, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  z-index: 3;
}
.login-modal > .modal-close-btn:hover,
.signup-modal > .modal-close-btn:hover,
.forgot-password-modal > .modal-close-btn:hover,
.instructor-picker-modal > .modal-close-btn:hover,
.plan-choice-modal > .modal-close-btn:hover,
.modal-case-role > .modal-close-btn:hover,
.modal-preview-access.login-modal > .modal-close-btn:hover,
.section-help-modal > .modal-close-btn:hover {
  color: var(--accent, #1e6b8a);
  background: #fff;
  border-color: var(--prof-heading, var(--accent, #1e6b8a));
}

.signup-modal {
  width: min(420px, 94vw);
  padding: 2.45rem 1.75rem 1.5rem;
}
.signup-modal-header {
  text-align: center;
  margin-bottom: 1.15rem;
}
.signup-modal-logo {
  justify-content: center;
  margin: 0 auto 0.65rem;
  font-size: 1.45rem;
}
.signup-modal-logo .logo-mark {
  width: 2rem;
  height: 2rem;
}
.signup-modal-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  text-align: center;
}
.signup-modal-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 30rem;
  margin-inline: auto;
}
.signup-modal-form .consent-group {
  margin-bottom: 1rem;
}
.signup-modal-primary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.signup-modal-submit {
  width: 100%;
}
.signup-modal-form .form-error:not(.hidden) {
  text-align: center;
}
.signup-modal-footer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.signup-modal-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.signup-modal-footer a:hover {
  text-decoration: underline;
}
.coming-soon-done {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}
.coming-soon-done-lead {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.signup-license-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.signup-license-row input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.forgot-password-modal {
  width: min(380px, 94vw);
  padding: 2.45rem 1.35rem 1.35rem;
  position: relative;
}
.forgot-password-modal > h2 {
  text-align: center;
}
.forgot-password-hint {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  padding: .55rem .65rem;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Hero — landing panel */
.hero-panel {
  background: linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 50%, #2d7ab8 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.35rem 2.25rem 2.15rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(168, 212, 240, .28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-brand-box {
  background: #fff;
  border-radius: 16px;
  padding: 1.85rem 3.75rem 1.6rem;
  min-width: min(100%, 34rem);
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(15, 45, 74, .14);
}
.hero-brand-logo {
  font-size: clamp(2.55rem, 6.2vw, 3.75rem);
}
.hero-brand-logo .logo-mark {
  width: clamp(2.75rem, 6.5vw, 3.5rem);
  height: clamp(2.75rem, 6.5vw, 3.5rem);
}
.hero-brand-box .logo-primary {
  color: #143d5c;
}
.hero-brand-box .logo-accent {
  color: #1e5a8a;
}
.hero-brand-box .hero-tagline {
  color: #5a6578;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: .025em;
  margin: 0;
  opacity: 1;
  text-align: center;
}
.hero-panel h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: .35rem;
}
.hero-panel .hero-tagline {
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 auto 1rem;
}
.hero-panel h1 .version-badge {
  vertical-align: middle;
  font-size: .7rem;
  padding: .28rem .5rem;
  margin-left: .15rem;
  position: relative;
  top: -0.28em;
}
.hero-panel p {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: .92;
  max-width: 820px;
  margin: 0 auto .65rem;
  text-align: center;
}
.hero-panel p:last-of-type {
  margin-bottom: 0;
}
.hero-panel .hero-lead {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: min(36rem, 100%);
  margin: 0 auto;
  padding: .72rem 1.35rem;
  font-family: 'Sora', var(--font);
  font-size: clamp(.88rem, 3.4vw, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
  overflow: visible;
  color: #fff;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
  opacity: 1;
  background: linear-gradient(135deg, #0a3d4f 0%, #1e6b8a 52%, #2d7ab8 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 14px rgba(30, 107, 138, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
@media (min-width: 900px) {
  .hero-panel .hero-lead {
    white-space: nowrap;
    max-width: none;
    padding: .72rem 1.5rem;
    font-size: clamp(.95rem, 1.6vw, 1.12rem);
    line-height: 1.35;
    letter-spacing: .03em;
    border-radius: 999px;
    text-wrap: unset;
  }
}

/* Landing hero — full-width band */
.section.hero-section.hero-section--full {
  padding: 0 0 .75rem;
}
.hero-section--full .hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(168, 212, 240, .22);
  box-shadow: none;
  padding: clamp(2.6rem, 6vw, 4.5rem) 1rem clamp(2.4rem, 5.5vw, 4rem);
  background:
    radial-gradient(60rem 26rem at 12% -10%, rgba(94, 178, 240, .38), transparent 62%),
    radial-gradient(48rem 24rem at 92% 115%, rgba(45, 122, 184, .55), transparent 60%),
    linear-gradient(135deg, #0a2240 0%, #123a63 46%, #1e5a8a 100%);
}
.hero-section--full .hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 25%, transparent 78%);
}
.hero-section--full .hero-brand-box {
  min-width: min(100%, 38rem);
  padding: 2rem 3.75rem 1.75rem;
  gap: .5rem;
  box-shadow:
    0 22px 60px rgba(4, 18, 36, .38),
    0 2px 8px rgba(4, 18, 36, .18);
}
.hero-section--full .hero-brand-box .hero-tagline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #3d4a5e;
  letter-spacing: .015em;
}
@media (max-width: 900px) {
  .hero-section--full .hero-panel {
    padding: 2.75rem 1.25rem 2.5rem;
  }
  .hero-section--full .hero-brand-box {
    min-width: min(100%, 32rem);
    padding: 1.75rem 2.5rem 1.6rem;
  }
}
@media (max-width: 640px) {
  .hero-section--full .hero-panel {
    padding: 2.25rem 1rem 2rem;
  }
  .hero-section--full .hero-brand-box {
    min-width: 0;
    padding: 1.5rem 1.25rem 1.35rem;
  }
  .hero-section--full .hero-brand-box .hero-tagline {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    text-wrap: balance;
  }
}
@media (max-width: 420px) {
  .hero-section--full .hero-brand-logo {
    font-size: clamp(1.75rem, 7.6vw, 2.05rem);
  }
  .hero-section--full .hero-brand-logo .logo-mark {
    width: clamp(2rem, 7.6vw, 2.35rem);
    height: clamp(2rem, 7.6vw, 2.35rem);
  }
}

/* Legacy hero (unused on landing) */
.hero {
  background: linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 50%, #2d7ab8 100%);
  color: #fff;
  padding: 2.5rem 0 0.75rem;
  text-align: center;
}
.hero-inner {
  width: min(1200px, 96vw);
  max-width: none;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: .92;
  max-width: 820px;
  margin: 0 auto .65rem;
  text-align: center;
}
.hero p:last-of-type {
  margin-bottom: 0;
}

/* Intro hero panel (homepage) */
.intro-hero-wrap {
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 0 clamp(1rem, 4vw, 2rem);
  margin: 0.85rem 0 1rem;
}
.intro-hero-panel {
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.intro-hero-panel--full {
  display: block;
}
.intro-hero-panel--full .intro-hero-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(168, 212, 240, .25);
  padding: 1.65rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
  text-align: center;
}
.intro-hero-panel--full .intro-hero-content h2,
.intro-hero-panel--full .intro-hero-content p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.intro-hero-panel--full .intro-hero-content h2 {
  text-align: center;
}
.intro-hero-panel--full .intro-hero-actions {
  justify-content: center;
}
.intro-hero-content {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.85rem 2.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(15, 45, 74, .94) 0%, rgba(30, 90, 138, .88) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 212, 240, .25);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  color: #fff;
  text-align: left;
}
.intro-hero-content h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 0 0 .7rem;
  padding-bottom: .65rem;
  letter-spacing: -.02em;
  color: #a8d4f0;
  border-bottom: 1px solid rgba(168, 212, 240, .22);
}
.intro-hero-content p {
  font-size: .9rem;
  line-height: 1.55;
  margin: 0 0 .5rem;
  color: rgba(255, 255, 255, .9);
}
.intro-hero-content p:last-of-type {
  margin-bottom: 0;
}
.intro-hero-lead {
  font-size: .96rem !important;
  margin-bottom: .6rem !important;
  color: rgba(255, 255, 255, .95) !important;
}
.intro-hero-lead strong { color: #fff; }
.intro-hero-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
  padding-top: .85rem;
  border-top: 1px solid rgba(168, 212, 240, .18);
}
.intro-hero-panel .btn-primary {
  background: #fff;
  color: #145070;
  border-color: #fff;
  font-weight: 600;
}
.intro-hero-panel .btn-primary:hover {
  background: #e8f4fc;
  color: #145070;
  border-color: #e8f4fc;
}
.intro-hero-panel .btn-outline {
  border-color: rgba(255, 255, 255, .78);
  color: #fff;
  background: transparent;
}
.intro-hero-panel .btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: #fff;
}

@media (max-width: 900px) {
  .intro-hero-panel--full .intro-hero-content {
    padding: 1.5rem 1.35rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .offerings-row {
    grid-template-columns: 1fr;
  }
  .offerings-block-layout {
    grid-template-columns: 1fr;
  }
  .offerings-block-copy h3 {
    text-align: center;
  }
  .offerings-block-thumbs--2,
  .offerings-block-thumbs--1 {
    max-width: none;
  }
  .offerings-block-thumbs--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offerings-showcase-carousel {
    --showcase-carousel-h: 14rem;
  }
}

/* Track cards — 2 rows × 4 columns on desktop */
.track-section .container,
.hero-section .container,
.offerings-section .container,
.science-section .container,
.team-section .container,
.science-team-section .container {
  width: min(1200px, 96vw);
  max-width: none;
}
.science-team-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.science-team-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
}
.science-team-section .science-team-card.landing-science-panel {
  margin-top: 0;
  padding: 2rem 2.25rem 1.75rem;
}
.science-team-panel-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.science-team-card .landing-science-more,
.science-team-card .landing-team-actions {
  margin-top: auto;
  padding-top: 1.1rem;
  flex-shrink: 0;
}
.science-team-section .science-panel,
.science-team-section .landing-team-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.landing-science-panel .landing-science-more,
.landing-team-panel .landing-team-actions {
  margin-top: auto;
  padding-top: 1.1rem;
}
.landing-team-professions {
  flex: 1;
}
.landing-team-meet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.team-page-section {
  padding: 1.5rem 0 2.5rem;
}
.team-page-wrap {
  width: min(960px, 94vw);
  max-width: none;
}
.team-page-panel {
  margin-top: 0;
}
.team-page-title {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  text-align: center;
  color: #fff;
}
.team-page-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.team-roster--page {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.tracks-panel,
.hero-panel,
.offerings-panel,
.offerings-train-panel,
.offerings-hero-panel,
.science-panel,
.landing-compact-panel.landing-team-panel {
  background: linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border: none;
}
.track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
  padding: 0;
}
.track-grid-single {
  grid-template-columns: minmax(260px, 420px);
  justify-content: center;
}
.track-grid-duo {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.track-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.track-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
.track-card img,
.track-card-img {
  height: 178px;
  object-fit: cover;
  width: 100%;
  display: block;
}
.track-card-img-wrap {
  position: relative;
  height: 198px;
  overflow: hidden;
  flex-shrink: 0;
}
.track-card-img-wrap .track-card-img {
  height: 100%;
}
.track-card-img-wrap .track-card-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: .55rem .6rem .85rem;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  color: var(--track-heading, #a8d4f0);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .85),
    0 0 8px rgba(0, 0, 0, .55);
  background: linear-gradient(
    180deg,
    rgba(6, 14, 24, .94) 0%,
    color-mix(in srgb, var(--track-heading, #a8d4f0) 18%, rgba(6, 14, 24, .78)) 45%,
    rgba(6, 14, 24, 0) 100%
  );
}
.track-card-img-wrap .track-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: .45rem .5rem .55rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 14, 24, .55) 35%, rgba(6, 14, 24, .82) 100%);
}
.track-card-img--medical {
  object-position: 50% 22%;
}
.track-card-img--law { object-position: center 22%; }
.track-card-img--business { object-position: 50% 28%; }
.track-card-img--aviation { object-position: center 42%; }
.track-card-img--fire { object-position: center 30%; }
.track-card-img--disaster { object-position: center 40%; }
.track-card-img--industry { object-position: center 32%; }
.track-card-body {
  padding: .85rem 1rem 1.05rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.track-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .45rem;
  min-width: 0;
  text-align: center;
}
.track-card-head h3 {
  margin-bottom: 0;
  width: 100%;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
}
.track-card p { color: var(--muted); font-size: .82rem; line-height: 1.45; flex: 1; margin-bottom: 0; min-width: 0; }
.track-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: auto;
}
.track-actions .btn-sm {
  flex: 1 1 0;
  width: auto;
  max-width: 7.5rem;
  min-width: 0;
  font-size: .82rem;
  padding: .38rem .25rem;
  line-height: 1.15;
  white-space: nowrap;
}
.track-tour-btn {
  font-weight: 600;
  opacity: .92;
}
.track-tour-btn:hover { opacity: 1; }

.track-card.track-card--intro {
  background: linear-gradient(135deg, rgba(15, 45, 74, .96) 0%, rgba(30, 90, 138, .92) 100%);
  border-bottom: 4px solid #a8d4f0;
}
.track-card--intro:hover {
  box-shadow: 0 14px 32px rgba(15, 45, 74, .28);
}
.track-card-body--intro {
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.track-card-body--intro h3 {
  color: #a8d4f0;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: .45rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(168, 212, 240, .22);
}
.track-card-body--intro .track-intro-portal {
  font-size: .74rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, .82);
  margin-bottom: .45rem;
}
.track-card-body--intro p {
  color: rgba(255, 255, 255, .9);
  font-size: .76rem;
  line-height: 1.45;
  margin-bottom: .4rem;
}
.track-card-body--intro .track-intro-lead {
  font-size: .8rem;
  color: rgba(255, 255, 255, .95);
}
.track-card-body--intro p strong {
  color: #fff;
}
.track-card-body--intro p:last-child {
  margin-bottom: 0;
}

.landing-science-panel {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem 1.3rem;
  box-shadow: var(--shadow-lg);
}
.landing-science-panel h3 {
  font-size: 1.1rem;
  margin-bottom: .55rem;
  color: #a8d4f0;
}
.landing-science-panel p {
  font-size: .88rem;
  line-height: 1.55;
  max-width: none;
}
.landing-science-panel .landing-mission-line {
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.landing-science-panel .landing-science-more {
  margin: 0;
}
.science-team-card .landing-science-more {
  margin-top: auto;
  padding-top: 1.1rem;
  text-align: center;
}

.track-card.track-card--science {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(168, 212, 240, .22);
}
.track-card--science:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
  border-color: rgba(168, 212, 240, .38);
}
.track-card-body--science {
  padding: 1rem 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.track-card-body--science h3 {
  color: #a8d4f0;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: .45rem;
}
.track-card-body--science p {
  color: rgba(255, 255, 255, .9);
  font-size: .82rem;
  line-height: 1.45;
  margin-bottom: .45rem;
  flex: 1;
}
.track-card-body--science .landing-mission-line {
  font-size: .78rem;
  line-height: 1.4;
  margin-bottom: 0;
  padding-top: .35rem;
  border-top: 1px solid rgba(168, 212, 240, .22);
  color: rgba(255, 255, 255, .88);
  flex: 0;
}
.track-card-body--science .landing-science-more {
  margin: .65rem 0 0;
  padding-top: 0;
}
.track-card-body--science .btn-science-read {
  font-size: .74rem;
  padding: .38rem .7rem;
  border-color: rgba(168, 212, 240, .55);
  color: #a8d4f0;
  background: transparent;
}
.track-card-body--science .btn-science-read:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: #a8d4f0;
}

.landing-team-panel {
  margin-top: 0;
}
.landing-team-panel > p {
  font-size: .88rem;
  line-height: 1.55;
}
.landing-team-professions,
.landing-science-points {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.science-team-panel-main > .landing-science-points {
  margin-top: 0;
}
.landing-team-professions li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.81rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .88);
}
.landing-science-points li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 0.81rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .88);
  text-align: center;
}
.landing-team-professions strong {
  color: #fff;
  font-weight: 700;
}
.landing-box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}
.landing-box-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.landing-box-icon--card {
  width: 3rem;
  height: 3rem;
  margin: .85rem auto 0;
  align-self: center;
}
.offerings-train-card .landing-box-icon--card {
  display: flex;
  margin-top: auto;
  padding-top: .85rem;
}
.landing-box-icon--science {
  width: 1.65rem;
  height: 1.65rem;
  margin: .45rem auto 0;
}
.landing-team-mark {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .16);
}
.landing-team-mark img {
  width: 100%;
  height: 100%;
  display: block;
}
.landing-team-panel p {
  font-size: .88rem;
  line-height: 1.55;
  max-width: 920px;
}
.landing-team-actions {
  margin-top: auto;
  padding-top: 1.1rem;
  text-align: center;
}
.landing-team-meet-btn {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(168, 212, 240, .55);
  padding: .55rem 1.35rem;
  font-size: .9rem;
}
.landing-team-meet-btn:hover {
  background: rgba(255, 255, 255, .18);
  border-color: #a8d4f0;
  color: #fff;
}
.team-roster {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(168, 212, 240, .22);
}
.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
}
.team-member-card {
  text-align: center;
  padding: .5rem .35rem 0;
}
.team-member-photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto .85rem;
  display: block;
  border: 3px solid rgba(168, 212, 240, .45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.team-member-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(168, 212, 240, .12));
  color: #a8d4f0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.team-member-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .25rem;
}
.team-member-role {
  font-size: .78rem;
  font-weight: 600;
  color: #a8d4f0;
  margin: 0 0 .55rem;
  letter-spacing: .02em;
}
.team-member-bio {
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
  margin: 0;
  max-width: 22rem;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .science-team-wrap {
    grid-template-columns: 1fr;
  }
  .team-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .team-roster-grid {
    grid-template-columns: 1fr;
    max-width: 20rem;
    margin-inline: auto;
  }
}
.landing-compact-panel--mission .landing-compact-list {
  margin-top: .75rem;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, .88);
  font-size: .84rem;
  line-height: 1.5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem 1.5rem;
  list-style: disc;
}
.landing-compact-panel--mission .landing-compact-list li {
  margin-bottom: .2rem;
}
@media (max-width: 768px) {
  .landing-compact-panel--mission .landing-compact-list {
    grid-template-columns: 1fr;
  }
}

.tracks-panel .track-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(168, 212, 240, .22);
  box-shadow: none;
}
.tracks-panel .track-card-body {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--track-heading) 24%, #0b1828) 0%,
    color-mix(in srgb, var(--track-heading) 46%, #060e18) 100%
  );
}
.tracks-panel .medical-card { --track-heading: #a8d4f0; }
.tracks-panel .aviation-card { --track-heading: #4a6fa5; }
.tracks-panel .fire-card { --track-heading: #d8b48c; }
.tracks-panel .law-card { --track-heading: #b91c1c; }
.tracks-panel .disaster-card { --track-heading: #a8c4be; }
.tracks-panel .industry-card { --track-heading: #d4b878; }
.tracks-panel .business-card { --track-heading: #d4af37; }
.tracks-panel .track-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
  border-color: rgba(168, 212, 240, .38);
}
.tracks-panel .track-card h3,
.tracks-panel .track-card-head h3,
.tracks-panel .track-card-img-wrap .track-card-title {
  color: var(--track-heading, #a8d4f0);
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
}
.tracks-panel .track-card p {
  color: #fff;
}
.tracks-panel .track-card .track-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: .45rem;
}
.tracks-panel .track-card .track-actions .btn-outline,
.science-team-section .landing-panel-actions .btn-outline {
  border: 1.5px solid color-mix(in srgb, var(--track-heading, #a8d4f0) 58%, rgba(255, 255, 255, 0.92));
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--track-heading, #a8d4f0) 24%, rgba(255, 255, 255, 0.2)) 0%,
    color-mix(in srgb, var(--track-heading, #a8d4f0) 12%, rgba(255, 255, 255, 0.08)) 100%
  );
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 0.58rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tracks-panel .track-card .track-actions .btn-outline:hover,
.science-team-section .landing-panel-actions .btn-outline:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--track-heading, #a8d4f0) 34%, rgba(255, 255, 255, 0.3)) 0%,
    color-mix(in srgb, var(--track-heading, #a8d4f0) 20%, rgba(255, 255, 255, 0.14)) 100%
  );
  border-color: color-mix(in srgb, var(--track-heading, #a8d4f0) 72%, #fff);
  color: #fff;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.science-team-section .landing-panel-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.science-team-section .landing-panel-actions .btn-outline {
  flex: 0 1 auto;
  min-width: 9.5rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  text-decoration: none;
}

.track-grid-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 100%;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(168, 212, 240, .22);
  background: rgba(255, 255, 255, .06);
  text-align: center;
}
.track-grid-logo-mark {
  width: 3.4rem;
  height: 3.4rem;
  opacity: .95;
  margin-bottom: .15rem;
}
.track-grid-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  text-align: center;
  line-height: 1.2;
}
.track-grid-logo-text span {
  color: #a8d4f0;
  font-weight: inherit;
}
.track-grid-logo-heading {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #a8d4f0;
  font-weight: 700;
}
.track-grid-logo-copy {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .82rem;
  line-height: 1.45;
  max-width: 16rem;
}
.track-grid-logo-mail {
  margin-top: .25rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.track-grid-logo-mail:hover {
  color: #a8d4f0;
}

@media (max-width: 959px) {
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .track-card.tour-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 559px) {
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    gap: .65rem;
  }
  .track-card img,
  .track-card-img,
  .track-card-img-wrap {
    height: 8.5rem;
  }
  .track-card-body {
    padding: .65rem .55rem .7rem;
  }
  .track-card-img-wrap .track-card-title {
    font-size: .78rem;
    padding: .4rem .4rem .7rem;
    line-height: 1.2;
  }
  .track-card-head h3 {
    font-size: .82rem;
  }
  .track-card p {
    font-size: .72rem;
    line-height: 1.35;
    margin-bottom: .5rem;
  }
  .track-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .25rem;
  }
  .track-card-img-wrap .track-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: .28rem .28rem .32rem;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 14, 24, .55) 35%, rgba(6, 14, 24, .82) 100%);
  }
  .track-actions .btn-sm,
  .track-actions .btn,
  .tracks-panel .track-card .track-actions .btn-outline {
    max-width: none;
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    font-size: .66rem;
    padding: .22rem .1rem;
    line-height: 1.1;
  }
  .track-grid-logo {
    grid-column: 1 / -1;
    padding: .85rem .75rem;
  }
  .track-grid-logo-mark {
    width: 2.6rem;
    height: 2.6rem;
  }
  .track-grid-logo-heading {
    font-size: .92rem;
  }
  .track-grid-logo-copy {
    font-size: .75rem;
  }
}

.badge-track-medical { background: #dbeafe; color: #1e40af; }
.badge-track-law { background: #2a0a0a; color: #fca5a5; }
.badge-track-business { background: #1a1810; color: #d4af37; }
.badge-track-aviation { background: #dde3ed; color: #0a1628; }
.badge-track-fire { background: #e8ddd6; color: #431407; }
.badge-track-disaster { background: #d8e2df; color: #082422; }
.badge-track-industry { background: #e2dfdc; color: #1c1917; }

.tools-row-tools-bottom--no-sim {
  grid-template-columns: 1fr;
}

.dashboard-header .logo-with-mark.dashboard-header-logo .logo-primary {
  color: #fff;
}
.dashboard-header .logo-with-mark.dashboard-header-logo .logo-accent {
  color: var(--accent-light, #8fd4ff);
}

.promo-video-card {
  border-bottom: 4px solid #2d7ab8;
}
.promo-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f1a28;
  overflow: hidden;
}
.promo-carousel-slides {
  position: absolute;
  inset: 0;
}
.promo-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promo-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem .85rem .65rem;
  background: linear-gradient(transparent, rgba(15, 26, 40, .88));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.promo-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #145070;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.promo-carousel:hover .promo-carousel-arrow,
.promo-carousel:focus-within .promo-carousel-arrow {
  opacity: 1;
}
.promo-carousel-arrow--prev { left: .45rem; }
.promo-carousel-arrow--next { right: .45rem; }
.promo-carousel-arrow:hover {
  background: #fff;
}
.promo-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .45rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .35rem;
}
.promo-carousel-dot {
  width: .45rem;
  height: .45rem;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.promo-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}
.promo-video-body h3 {
  color: #1e5a8a;
}
.promo-video-body p {
  margin-bottom: 0;
}

/* Promo spotlight — above How We Train */
.offerings-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.offerings-hero-panel {
  --track-heading: #a8d4f0;
}
.promo-spotlight-card.offerings-hero-panel {
  background: linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 100%);
  color: #fff;
  border: none;
  width: 100%;
  transition: transform .22s ease, box-shadow .22s ease;
}
.promo-spotlight-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  padding: 1.5rem 2rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.promo-spotlight-card--half.offerings-hero-panel {
  padding: 1.5rem 1.35rem 1.4rem;
}
.promo-spotlight-card--half .promo-spotlight-media {
  width: 100%;
  max-width: none;
  border: 1px solid rgba(168, 212, 240, .28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.promo-spotlight-card--half .promo-spotlight-cta {
  font-size: 1.05rem;
  padding: .85rem 1.25rem .85rem .95rem;
  gap: .7rem;
}
.promo-spotlight-card--half .promo-spotlight-cta-icon {
  width: 2rem;
  height: 2rem;
  font-size: .78rem;
}
.landing-join-panel.offerings-hero-panel {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.landing-join-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.landing-join-collage-tile {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.landing-join-collage-tile--soldier {
  background-image: url('/promo/join-collage-soldier-workout.png');
  background-position: center 35%;
}
.landing-join-collage-tile--business {
  background-image: url('/promo/join-collage-business-rating.png');
  background-position: center 40%;
}
.landing-join-collage-tile--ambulance {
  background-image: url('/promo/join-collage-ambulance-rating.png');
  background-position: center 42%;
}
.landing-join-collage-scrim {
  position: absolute;
  inset: 0;
  /* Soft blue layout wash + bottom fade for text contrast */
  background:
    linear-gradient(180deg, rgba(10, 61, 79, 0.12) 0%, rgba(30, 107, 138, 0.22) 48%, rgba(10, 45, 74, 0.72) 100%);
  pointer-events: none;
}
.landing-join-panel-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: .85rem;
  padding: 1.1rem 1.35rem 1.4rem;
}
.landing-join-heading {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin: 0 0 .15rem;
  padding: .45rem 1.15rem;
  font-family: 'Sora', var(--font);
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .7),
    0 0 10px rgba(0, 0, 0, .35);
  border: none;
  border-radius: 999px;
  box-shadow: none;
  background: transparent;
}
.landing-join-heading::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(10, 61, 79, 0.55) 0%,
    rgba(30, 107, 138, 0.48) 52%,
    rgba(45, 122, 184, 0.42) 100%
  );
  box-shadow: 0 2px 10px rgba(6, 20, 36, .22);
  pointer-events: none;
}
.landing-join-heading::after {
  display: none;
}
.landing-join-panel.offerings-hero-panel:hover,
.promo-spotlight-card.offerings-hero-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .22);
}
.landing-join-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}
.offerings-hero-row .landing-hero-btn {
  width: 50%;
  border: 1.5px solid color-mix(in srgb, #a8d4f0 45%, rgba(255, 255, 255, 0.55));
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0a3d4f 0%, #1e6b8a 52%, #2d7ab8 100%);
  box-shadow:
    0 4px 14px rgba(30, 107, 138, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  padding: 0.62rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.offerings-hero-row .landing-hero-btn:hover {
  background: linear-gradient(135deg, #083344 0%, #185a75 48%, #256a9e 100%);
  border-color: color-mix(in srgb, #a8d4f0 72%, #fff);
  color: #fff;
  box-shadow:
    0 6px 18px rgba(30, 107, 138, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.landing-join-code-modal {
  width: min(440px, 94vw);
}
.promo-spotlight-card:not(.offerings-hero-panel):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
.promo-spotlight-link {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: center;
  font: inherit;
  cursor: pointer;
}
.promo-spotlight-cta-row {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.promo-spotlight-cta-row .promo-spotlight-link:hover .promo-spotlight-cta,
.promo-spotlight-cta-row .promo-spotlight-link:focus-visible .promo-spotlight-cta {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0c4a60 0%, #227a9c 52%, #3589c4 100%);
  box-shadow:
    0 8px 22px rgba(30, 107, 138, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.promo-spotlight-cta-row .promo-spotlight-link:focus-visible .promo-spotlight-cta {
  outline: 2px solid #a8d4f0;
  outline-offset: 3px;
}
.promo-script-modal {
  width: min(44rem, calc(100vw - 2rem));
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.1rem;
}
.promo-script-modal-header {
  padding-right: 1.75rem;
  margin-bottom: .75rem;
}
.promo-script-modal-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.promo-script-status {
  display: inline-flex;
  align-items: center;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.promo-script-status--draft {
  background: rgba(234, 179, 8, .18);
  color: #a16207;
}
.promo-script-status--ready {
  background: rgba(34, 197, 94, .16);
  color: #15803d;
}
.promo-script-status--locked {
  background: rgba(100, 116, 139, .18);
  color: #475569;
}
.promo-script-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}
.promo-script-editor-link {
  text-decoration: none;
}
.promo-script-toast {
  margin: .55rem 0 0;
  min-height: 1.1rem;
  font-size: .78rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s ease;
}
.promo-script-toast.is-visible {
  opacity: 1;
}
.promo-script-counter {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.promo-script-slide-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
}
.promo-script-modal-body {
  flex: 1 1 auto;
  min-height: 8rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: .85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbfd 0%, #f4f8fc 100%);
}
.promo-script-box-grid {
  display: grid;
  gap: .65rem;
  align-items: stretch;
}
.promo-script-box-grid--1 {
  grid-template-columns: 1fr;
}
.promo-script-box-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.promo-script-box-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.promo-script-box {
  min-width: 0;
  padding: .65rem .7rem;
  border: 1px solid #d4dde8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.promo-script-box-title {
  margin: 0 0 .45rem;
  font-size: .82rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1e5a8a;
}
.promo-script-box .promo-script-lines {
  gap: .4rem;
}
.promo-script-box .promo-script-lines li {
  font-size: .78rem;
  line-height: 1.38;
}
.promo-script-lines {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.promo-script-lines li {
  font-size: .92rem;
  line-height: 1.45;
  color: var(--text);
}
.promo-script-empty {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.promo-script-modal-nav {
  display: flex;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .85rem;
}
.promo-spotlight-media {
  position: relative;
  width: min(1000px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0f1a28;
  border-radius: 12px;
  overflow: hidden;
}
.promo-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 12px;
}
.promo-spotlight-cta {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.85rem 1.1rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a3d4f 0%, #1e6b8a 52%, #2d7ab8 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 4px 14px rgba(30, 107, 138, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.promo-spotlight-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.9rem;
  line-height: 1;
  padding-left: 0.12rem;
}
.promo-spotlight-cta-text {
  line-height: 1.2;
}
@media (max-width: 768px) {
  .offerings-hero-row {
    grid-template-columns: 1fr;
  }
  .promo-spotlight-card {
    padding: 1.15rem 1.25rem;
  }
  .promo-spotlight-media {
    width: 100%;
  }
  .promo-spotlight-cta {
    font-size: 1.1rem;
    padding: 0.95rem 1.45rem 0.95rem 1rem;
    gap: 0.85rem;
  }
  .promo-spotlight-cta-icon {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.78rem;
  }
  .promo-script-box-grid--2,
  .promo-script-box-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Promo script JSON editor */
.promo-editor-page {
  min-height: 100vh;
  background: var(--bg, #f4f7fb);
  color: var(--text, #0f172a);
}
.promo-editor-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}
.promo-editor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.promo-editor-header h1 {
  margin: 0 0 .25rem;
  font-size: 1.35rem;
}
.promo-editor-header p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.promo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.promo-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.promo-editor-panel {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.promo-editor-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .85rem;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  background: rgba(248, 250, 252, .9);
}
.promo-editor-panel-head h2 {
  margin: 0;
  font-size: .92rem;
}
.promo-editor-json {
  flex: 1 1 auto;
  width: 100%;
  min-height: 24rem;
  border: 0;
  resize: vertical;
  padding: .85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.45;
  color: #0f172a;
  background: #fff;
}
.promo-editor-json:focus {
  outline: none;
}
.promo-editor-error {
  margin: 0;
  padding: .55rem .85rem;
  font-size: .78rem;
  color: #b91c1c;
  background: rgba(239, 68, 68, .08);
  border-top: 1px solid rgba(239, 68, 68, .12);
}
.promo-editor-preview {
  flex: 1 1 auto;
  padding: .85rem 1rem 1rem;
  overflow-y: auto;
}
.promo-editor-preview .promo-script-slide-title {
  font-size: 1.05rem;
}
.promo-editor-slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .85rem .75rem;
  border-top: 1px solid rgba(15, 23, 42, .06);
}
.promo-editor-slide-nav select {
  flex: 1 1 auto;
  min-width: 0;
  padding: .35rem .5rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, .12);
  font-size: .82rem;
}
@media (max-width: 900px) {
  .promo-editor-grid {
    grid-template-columns: 1fr;
  }
}

.promo-video-modal {
  width: min(920px, 96vw);
  padding: 1rem 1rem 1.15rem;
  position: relative;
}
.promo-video-draft-label {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a16207;
}
.promo-video-modal video {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 16 / 9;
}
.promo-video-modal .modal-close-btn {
  position: absolute;
  top: .35rem;
  right: .35rem;
  z-index: 2;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* How We Train — main panel with three text cards */
.offerings-train-panel {
  width: 100%;
}
.offerings-train-heading {
  margin: 0 0 1.35rem;
  font-size: 1.75rem;
  text-align: center;
  color: #fff;
}
.offerings-train-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.offerings-train-card {
  border: 1px solid rgba(168, 212, 240, .28);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.2rem;
  background: rgba(8, 28, 48, .28);
  display: flex;
  flex-direction: column;
}
.offerings-train-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
  color: #a8d4f0;
  text-align: center;
}
.offerings-train-card p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  text-align: left;
}
.offerings-train-card p strong {
  color: #d4ebf7;
  font-weight: 700;
}
.offerings-train-card p + p {
  margin-top: .7rem;
}
.offerings-train-card--why {
  grid-column: 1 / -1;
}
.offerings-train-card--why p {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .offerings-train-grid {
    grid-template-columns: 1fr;
  }
}

/* How We Train panel (legacy blocks) */
.offerings-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.offerings-panel h2,
.offerings-train-panel h2,
.offerings-train-heading,
.science-panel h2,
.landing-compact-panel.landing-team-panel h2,
.tracks-panel h2 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  text-align: center;
  color: #fff;
}
.offerings-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.offerings-block {
  border: 1px solid rgba(168, 212, 240, .28);
  border-radius: 12px;
  padding: 1rem 1.05rem 1.05rem;
  background: rgba(8, 28, 48, .28);
}
.offerings-block-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr);
  gap: 1rem;
  align-items: stretch;
}
.offerings-block-left {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
}
.offerings-block-copy h3 {
  font-size: 1.1rem;
  margin: 0 0 .55rem;
  color: #a8d4f0;
  text-align: left;
}
.offerings-block-copy p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  text-align: left;
  max-width: 52rem;
}
.offerings-block-copy p strong {
  color: #d4ebf7;
  font-weight: 700;
}
.offerings-block--showcase {
  padding: 1.25rem 1.35rem 1.3rem;
}
.offerings-block-layout--showcase {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 1.15rem;
  align-items: center;
}
.offerings-showcase-carousel {
  --showcase-carousel-h: 16.5rem;
  position: relative;
  height: var(--showcase-carousel-h);
  min-height: var(--showcase-carousel-h);
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef5;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.offerings-carousel-slides {
  position: absolute;
  inset: 0;
}
.offerings-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
  background: #f4f7fb;
}
.offerings-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.offerings-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.offerings-carousel-slide--contain-center img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}
.offerings-carousel-slide--cover-top img {
  object-fit: cover;
  object-position: top center;
}
.offerings-carousel-slide--lessons {
  background: #eef3f8;
}
.offerings-carousel-slide--quiz {
  background: transparent;
}
.offerings-carousel-slide--diploma {
  background: #faf8f2;
}
.offerings-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #145070;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.offerings-showcase-carousel:hover .offerings-carousel-arrow,
.offerings-showcase-carousel:focus-within .offerings-carousel-arrow {
  opacity: 1;
}
.offerings-carousel-arrow--prev { left: .5rem; }
.offerings-carousel-arrow--next { right: .5rem; }
.offerings-carousel-arrow:hover {
  background: #fff;
}
.offerings-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .5rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .4rem;
}
.offerings-carousel-dot {
  width: .48rem;
  height: .48rem;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.offerings-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}
.offerings-block-thumbs {
  display: grid;
  gap: .65rem;
}
.offerings-block-thumbs--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 28rem;
}
.offerings-block-thumbs--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 14rem;
}
.offerings-shot {
  margin: 0;
  border-radius: 10px;
  background: #e8eef5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  overflow: hidden;
}
.offerings-shot--square img,
.offerings-shot--hero img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 10px;
  vertical-align: top;
}
.offerings-shot--hero {
  align-self: start;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.offerings-rows {
  display: flex;
  flex-direction: column;
}
.offerings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.35rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(168, 212, 240, .18);
}
.offerings-row:first-child { padding-top: 0; }
.offerings-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.offerings-row-copy h3 {
  font-size: 1.1rem;
  margin: 0 0 .6rem;
  color: #a8d4f0;
  text-align: left;
}
.offerings-row-copy p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  text-align: left;
}
.offerings-row-copy p strong {
  color: #d4ebf7;
  font-weight: 700;
}
.offerings-row-preview {
  min-width: 0;
}
.offerings-row-preview--mosaic {
  --offerings-preview-h: 19.5rem;
}
.offerings-preview-mosaic {
  position: relative;
  height: var(--offerings-preview-h, 19.5rem);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  box-shadow: 0 8px 24px rgba(15, 45, 74, .08);
  background: #e8eef5;
}
.offerings-preview-mosaic img {
  display: block;
}
.offerings-preview-mosaic .mosaic-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.offerings-preview-mosaic .mosaic-tile {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 45, 74, .2);
  border: 2px solid #fff;
  object-fit: cover;
}
.offerings-preview-mosaic--elearning .mosaic-tile--quiz {
  right: .65rem;
  bottom: .65rem;
  width: 27%;
  max-width: 7.25rem;
  object-position: top center;
  aspect-ratio: 390 / 520;
  height: auto;
}
.offerings-preview-mosaic--elearning .mosaic-tile--diploma {
  right: calc(27% + 1.15rem);
  bottom: .65rem;
  width: 24%;
  max-width: 6.75rem;
  object-position: center;
  aspect-ratio: 480 / 340;
  height: auto;
}
.offerings-preview-mosaic--simsolutions .mosaic-tile--rating {
  right: .65rem;
  top: .65rem;
  width: 24%;
  max-width: 6.5rem;
  object-position: top center;
  aspect-ratio: 390 / 520;
  height: auto;
}
.offerings-preview-mosaic--simsolutions .mosaic-tile--results {
  right: .65rem;
  bottom: .55rem;
  width: 46%;
  max-width: 13.5rem;
  object-position: top left;
  aspect-ratio: 1100 / 420;
  height: auto;
}
.offerings-tour-ui {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(168, 212, 240, .35);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .28);
  font-size: 13px;
  pointer-events: none;
  user-select: none;
}
.offerings-tour-ui .tour-ui-panel--sub:last-child {
  margin-bottom: 0;
}
.offerings-tour-ui .tour-ui-course-grid {
  padding: .55rem .55rem .65rem;
}
.offerings-tour-tools-row {
  padding: .55rem .55rem .65rem;
  margin: 0;
}
.offerings-tour-ui .tour-ui-rbtn.dont-know {
  background: #475569;
  color: #fff;
  border-color: #334155;
}
.offerings-dash-preview {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(168, 212, 240, .35);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .28);
  pointer-events: none;
  user-select: none;
  padding: .55rem;
}
.offerings-dash-preview--tools,
.offerings-dash-preview--sim {
  --offerings-preview-h: 16.25rem;
  height: var(--offerings-preview-h);
  overflow: hidden;
  padding: .55rem;
  background: #f8fafc;
}
.offerings-sim-layout {
  display: grid;
  grid-template-columns: minmax(9.5rem, .92fr) minmax(0, 1.2fr);
  gap: .5rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}
.offerings-games-panel {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-shadow: none;
}
.offerings-games-panel .panel-header-accent h2 {
  font-size: .78rem;
}
.offerings-games-panel .panel-body-compact {
  padding: .4rem .45rem .5rem;
}
.offerings-games-panel .case-list {
  display: flex;
  flex-direction: column;
  gap: .32rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.offerings-games-panel .case-list-item {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .4rem;
  padding: .32rem .4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}
.offerings-games-panel .case-list-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
}
.offerings-games-panel .case-list-icon svg {
  width: .85rem;
  height: .85rem;
}
.offerings-games-panel .case-name {
  min-width: 0;
  font-size: .62rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offerings-games-panel .case-list-item--create .case-name {
  color: #64748b;
  font-weight: 600;
}
.offerings-games-panel .btn-sm {
  padding: .18rem .4rem;
  font-size: .58rem;
}
.offerings-sim-play {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: .4rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.offerings-sim-step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  min-height: 0;
  overflow: hidden;
}
.offerings-sim-step-row .case-step-block,
.offerings-sim-play .offerings-case-timeline,
.offerings-games-panel {
  position: relative;
}
.offerings-sim-step-row .case-step-block {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: .5rem .55rem .55rem;
}
.offerings-sim-step-row .case-step-block--discussion {
  margin-top: 0;
}
.offerings-sim-play .offerings-case-timeline {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: .45rem .55rem .5rem;
  height: auto;
}
.offerings-sim-step-row .case-step-heading {
  font-size: .68rem;
}
.offerings-sim-step-row .case-step-text {
  font-size: .62rem;
  line-height: 1.4;
}
.offerings-sim-step-row .case-step-discussion-point-label {
  font-size: .55rem;
}
.offerings-games-panel::after,
.offerings-sim-step-row .case-step-block::after,
.offerings-sim-play .offerings-case-timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.6rem;
  pointer-events: none;
  z-index: 2;
}
.offerings-games-panel::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 40%, #fff 100%);
}
.offerings-sim-step-row .case-step-block::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 40%, #fff 100%);
}
.offerings-sim-play .offerings-case-timeline::after {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, .5) 40%, #f8fafc 100%);
}
.offerings-sim-play .case-timeline-item {
  display: block;
}
.offerings-sim-play .case-step-tips-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin-top: .35rem;
}
.offerings-case-preview-panel {
  margin: 0;
  border-top-width: 3px;
}
.offerings-case-preview-panel .case-step-body {
  padding: .65rem .75rem !important;
}
.offerings-case-preview-panel .case-step-text {
  font-size: .72rem;
  line-height: 1.45;
}
.offerings-case-preview-panel .case-step-heading {
  font-size: .74rem;
}
.offerings-case-preview-panel .case-step-main-row {
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  gap: .55rem;
}
.offerings-case-preview-panel .case-step-visual {
  min-height: 6.5rem;
  border-radius: 8px;
}
.offerings-case-preview-panel .case-step-visual-img {
  min-height: 6.5rem;
}
.offerings-case-preview-panel .case-step-discussion-points {
  gap: .45rem;
}
.offerings-case-preview-panel .case-step-discussion-point-label,
.offerings-case-preview-panel .case-step-text--nts-intro,
.offerings-case-preview-panel .case-step-nts-principles {
  font-size: .62rem;
}
.offerings-case-preview-panel .case-step-tips-stack {
  margin-top: .45rem;
  gap: .4rem;
}
.offerings-case-preview-panel .case-step-tips-block {
  padding: .45rem .5rem .5rem;
}
.offerings-case-preview-panel .case-nts-pair-list li {
  grid-template-columns: minmax(5.5rem, 34%) auto 1fr;
  font-size: .58rem;
  padding: .28rem 0;
}
.offerings-case-preview-panel .case-step-hero-icon {
  width: 2.75rem;
  height: 2.75rem;
}
.offerings-case-preview-panel .case-step-hero-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.offerings-case-preview-panel .case-step-block {
  padding: .6rem .7rem .7rem;
}
.offerings-case-preview-panel .case-step-block--discussion {
  margin-top: .55rem;
}
.offerings-case-timeline {
  margin-top: .55rem;
  padding: .65rem .7rem .7rem;
}
.offerings-case-timeline .case-timeline-title {
  font-size: .72rem;
  margin-bottom: .5rem;
}
.offerings-case-timeline .case-timeline {
  grid-template-columns: 1fr;
  gap: .45rem;
}
.offerings-case-timeline .case-step-tips-stack {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: .45rem;
  margin-top: .35rem;
}
.offerings-case-timeline .case-timeline-body {
  min-height: 0;
}
.offerings-case-timeline .case-timeline-keywords {
  font-size: .62rem;
}
.offerings-case-timeline .case-timeline-skill {
  font-size: .58rem;
}
.offerings-tools-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: .55rem;
  align-items: stretch;
  height: 100%;
}
.offerings-tools-split .panel {
  margin: 0;
  box-shadow: none;
  height: 100%;
  min-height: 0;
}
.offerings-tools-split .offerings-eval-preview {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.offerings-tools-split .panel-header-accent h2 {
  font-size: .78rem;
}
.offerings-tools-split .panel-body-compact {
  padding: .55rem .65rem .65rem;
}
.offerings-insight-panel .insight-action-text h3 {
  font-size: .58rem;
}
.offerings-insight-panel .insight-ratings-title {
  font-size: .62rem;
}
.offerings-insight-panel .eval-rating-head,
.offerings-insight-panel .eval-rating-line-btn {
  font-size: .58rem;
}
.offerings-eval-preview {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .55rem .6rem .6rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}
.offerings-eval-preview .quiz-wizard-step {
  font-size: .68rem;
}
.offerings-eval-preview .quiz-wizard-answered {
  font-size: .58rem;
}
.offerings-eval-preview .quiz-wizard-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.offerings-eval-preview .quiz-wizard-icon svg {
  width: 14px;
  height: 14px;
}
.offerings-eval-preview .quiz-question-text {
  font-size: .68rem;
  line-height: 1.4;
}
.offerings-eval-preview .quiz-wizard-category {
  font-size: .58rem;
}
.offerings-eval-preview .rating-btn {
  padding: .28rem .5rem;
  font-size: .62rem;
}
.offerings-eval-preview .quiz-wizard-panel .panel-body {
  padding: .65rem .75rem;
}
.offerings-eval-preview .quiz-progress-header {
  margin-bottom: .45rem;
}
.offerings-link {
  color: #a8d4f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.offerings-link:hover {
  color: #fff;
}
.offerings-freemium {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(168, 212, 240, .22);
  text-align: center;
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}
.offerings-freemium strong { color: #fff; }

.science-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.landing-science-panel > p {
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 .75rem;
}
.landing-science-panel .landing-mission-line {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(168, 212, 240, .22);
  margin-bottom: 0;
}
.landing-science-panel .landing-science-more {
  margin: 0;
}
.landing-science-panel .btn-science-read {
  border-color: rgba(168, 212, 240, .55);
  color: #a8d4f0;
  background: transparent;
}
.landing-science-panel .btn-science-read:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: #a8d4f0;
}
.science-content {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(168, 212, 240, .22);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.3rem;
}

/* Sections */
.section { padding: 4rem 0; }
.section.track-section,
.section.hero-section,
.section.offerings-section,
.section.science-section,
.section.team-section,
.section.science-team-section {
  padding: 0.75rem 0;
}
.section-alt { background: var(--white); }
.section h2 { font-size: 1.75rem; margin-bottom: 1rem; text-align: center; }
.section-intro { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 2.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.feature-box h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.feature-box p { color: var(--muted); font-size: .92rem; }

/* Landing page panels */
.landing-compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
.landing-compact-panel {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-top: 3px solid #1e6b8a;
}
.landing-compact-panel--mission {
  border: none;
  color: #fff;
}
.landing-compact-panel h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
  color: #145070;
}
.landing-compact-panel--mission h3 {
  color: #a8d4f0;
}
.landing-compact-panel p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
  margin: 0 0 .55rem;
}
.landing-compact-panel--mission p {
  color: rgba(255, 255, 255, .9);
}
.landing-compact-list {
  margin: 0;
  padding-left: 1rem;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
}
.landing-compact-list li {
  margin-bottom: .25rem;
}
.landing-mission-line {
  margin-bottom: 0 !important;
  padding-top: .35rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.landing-science-more {
  margin: .85rem 0 0 !important;
  padding-top: 0;
}
.btn-science-read {
  display: inline-block;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-science-read:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
  color: #fff;
}
@media (max-width: 768px) {
  .landing-compact-row {
    grid-template-columns: 1fr;
  }
}
.landing-contact-wrap {
  max-width: 420px;
  margin: 0 auto;
}

/* Take the tour — grid card (row 2, col 4) */
.track-card.tour-card {
  grid-column: 4;
  grid-row: 2;
  background: linear-gradient(160deg, #0f2d4a 0%, #1e5a8a 100%);
  border-bottom: 4px solid #a8d4f0;
}
.track-card.tour-card .tour-entry-preview {
  height: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .12);
  flex-shrink: 0;
}
.track-card.tour-card .tour-entry-content h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  line-height: 1.3;
  color: #a8d4f0;
}
.track-card.tour-card .tour-entry-content p {
  margin: 0 0 .85rem;
  font-size: .82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .88);
  flex: 1;
}
.track-card.tour-card .tour-entry-content .btn-primary {
  background: #fff;
  color: #145070;
  border: none;
}
.track-card.tour-card .tour-entry-content .btn-primary:hover {
  background: #e8f4fc;
}

/* Tour viewer */
.tour-overlay {
  padding: 0;
  background: rgba(8, 16, 28, .92);
  z-index: 1100;
}
.tour-overlay.open {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.tour-viewer {
  position: relative;
  width: min(1180px, 98vw);
  height: min(720px, 92vh);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tour-close-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.tour-close-btn:hover { background: rgba(255, 255, 255, .28); }
.tour-slides {
  position: relative;
  flex: 1;
  min-height: 0;
}
.tour-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.tour-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.tour-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) brightness(.55);
}
.tour-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 45, 74, .75), rgba(15, 26, 40, .55));
}
.tour-slide-mockup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  width: min(900px, 92%);
  max-height: 78%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.tour-slide-mockup--cta {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -46%);
  width: auto;
  max-height: none;
}
.tour-slide-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 3.75rem;
  top: auto;
  right: auto;
  transform: none;
  width: min(300px, 34%);
  z-index: 3;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: .85rem .95rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
  border-left: 4px solid #1e6b8a;
}
.tour-slide-kicker {
  margin: 0 0 .2rem;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #1e6b8a;
}
.tour-slide-caption h2 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  color: #145070;
  line-height: 1.25;
}
.tour-slide-caption p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: #475569;
}
.tour-slide-actions {
  display: flex;
  gap: .5rem;
  margin-top: .85rem;
  flex-wrap: wrap;
}
.tour-caption-outline {
  border-color: #1e6b8a;
  color: #1e6b8a;
}
.tour-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #145070;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.tour-nav:hover { background: #fff; }
.tour-nav--prev { left: .75rem; }
.tour-nav--next { right: .75rem; }
.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem;
  background: rgba(15, 26, 40, .85);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.tour-dots {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.tour-dot {
  width: .5rem;
  height: .5rem;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}
.tour-dot.is-active {
  background: #a8d4f0;
  transform: scale(1.2);
}
.tour-counter {
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}

.welcome-tour-overlay {
  z-index: 1200;
}
.welcome-tour-skip {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 6;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .4rem .85rem;
  border-radius: 999px;
  cursor: pointer;
}
.welcome-tour-skip:hover {
  background: rgba(255, 255, 255, .28);
}
.welcome-tour-caption {
  position: absolute;
  left: 1.35rem;
  right: auto;
  bottom: 5.1rem;
  width: min(420px, 86%);
  z-index: 3;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
  border-left: 4px solid var(--accent, #1e6b8a);
}
.welcome-tour-caption h2 {
  margin: 0 0 .45rem;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--accent-dark, #145070);
}
.welcome-tour-caption p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: #475569;
}
.welcome-tour-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(8, 16, 28, .72));
}
.welcome-tour-footer .tour-dots {
  flex: 1;
}
.welcome-tour-primary {
  margin-left: auto;
  white-space: nowrap;
}
.welcome-tour-primary--start {
  background: #fff;
  color: #0f2d4a;
}
.welcome-tour-primary--start:hover {
  background: #e8f4fc;
}
@media (max-width: 768px) {
  .welcome-tour-caption {
    left: 4%;
    right: 4%;
    width: auto;
    bottom: 5.4rem;
  }
  .welcome-tour-footer {
    flex-wrap: wrap;
  }
  .welcome-tour-primary {
    width: 100%;
  }
}

/* Tour UI — dashboard-style mockups */
.tour-ui {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #eef2f6;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
}
.tour-ui--lg { font-size: 13px; }
.tour-ui--dash { border: 1px solid #d8e0ea; }
.tour-ui-dash-scroll {
  max-height: 100%;
  overflow: hidden;
  padding-bottom: .45rem;
}
.tour-ui-section-head {
  margin: .45rem .5rem .35rem;
  padding: .45rem .55rem;
  font-weight: 700;
  font-size: 1.05em;
  color: #145070;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}
.tour-ui-course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: .45rem;
  padding: 0 .5rem;
}
.tour-ui-course-side {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.tour-ui-quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  padding: .35rem .45rem .45rem;
}
.tour-ui-quiz-card {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .45rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}
.tour-ui-quiz-icon {
  width: 2.5em;
  height: 2.5em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 107, 138, .14), rgba(30, 107, 138, .05));
  border: 1.5px solid rgba(30, 107, 138, .22);
  color: #1e6b8a;
  font-size: 1.1em;
}
.tour-ui-quiz-card strong {
  display: block;
  font-size: .88em;
  color: #0f172a;
  line-height: 1.2;
}
.tour-ui-quiz-card em {
  font-style: normal;
  font-size: .72em;
  color: #64748b;
  font-weight: 600;
}
.tour-ui-exam-compact {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .5rem .5rem;
}
.tour-ui-exam-icon {
  width: 2.8em;
  height: 2.8em;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef6ff, #dbeafe);
  border: 1.5px solid #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
}
.tour-ui-exam-compact strong {
  display: block;
  font-size: .88em;
  color: #145070;
}
.tour-ui-exam-compact span {
  font-size: .72em;
  color: #64748b;
}
.tour-ui-tools-layout {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 0 .5rem .5rem;
}
.tour-ui-tools-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}
.tour-ui-action-row {
  display: grid;
  gap: .35rem;
  padding: .4rem .45rem .35rem;
}
.tour-ui-action-row--3 { grid-template-columns: repeat(3, 1fr); }
.tour-ui-action-row--2 { grid-template-columns: repeat(2, 1fr); }
.tour-ui-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem .35rem .5rem;
  border: 2px solid #2563eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
  text-align: center;
  min-height: 5.5em;
}
.tour-ui-action-card.is-outline {
  border-color: #94a3b8;
  background: #fff;
}
.tour-ui-action-thumb {
  width: 3.4em;
  height: 3.4em;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .18);
  flex-shrink: 0;
}
.tour-ui-action-card.is-outline .tour-ui-action-thumb {
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
  opacity: .92;
}
.tour-ui-action-card strong {
  font-size: .82em;
  color: #0f172a;
  line-height: 1.2;
}
.tour-ui-ratings-block {
  padding: 0 .45rem .4rem;
  border-top: 1px solid #eef2f7;
  margin-top: .15rem;
}
.tour-ui-ratings-title {
  margin: .35rem 0 .25rem;
  font-size: .88em;
  font-weight: 700;
  color: #1e40af;
}
.tour-ui-ratings-table {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  font-size: .78em;
}
.tour-ui-ratings-head,
.tour-ui-ratings-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .35rem;
  padding: .3rem .4rem;
  align-items: center;
}
.tour-ui-ratings-head {
  background: #f8fafc;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  font-size: .92em;
  letter-spacing: .03em;
}
.tour-ui-ratings-row {
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.tour-ui-ratings-row .pct {
  font-weight: 700;
  color: #145070;
}
.tour-ui-ratings-row .view {
  color: #1e6b8a;
  font-weight: 600;
}
.tour-ui-case-list {
  list-style: none;
  margin: 0;
  padding: .35rem .45rem .45rem;
}
.tour-ui-case-item {
  display: grid;
  grid-template-columns: 2.6em 1fr auto;
  gap: .45rem;
  align-items: center;
  padding: .45rem .5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
  margin-bottom: .35rem;
}
.tour-ui-case-item:last-child { margin-bottom: 0; }
.tour-ui-case-icon {
  width: 2.6em;
  height: 2.6em;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .15);
}
.tour-ui-case-name {
  font-weight: 700;
  font-size: .88em;
  color: #0f172a;
  line-height: 1.25;
}
.tour-ui-case-btn {
  font-size: .72em;
  font-weight: 700;
  padding: .28rem .5rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #fff;
  white-space: nowrap;
}
.tour-ui-briefing-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .4rem .45rem .35rem;
}
.tour-ui-briefing-stack .tour-ui-action-card {
  width: 100%;
  max-width: 8.5em;
  min-height: 4.5em;
}
.tour-ui-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  padding: .4rem .5rem;
  font-weight: 700;
  font-size: .95em;
  color: #145070;
  background: linear-gradient(135deg, #f7fafc 0%, #eef3f9 100%);
  border-bottom: 1px solid #d4dde8;
  border-left: 3px solid #1e6b8a;
}
.tour-ui-panel-header em {
  font-style: normal;
  font-weight: 500;
  font-size: .82em;
  color: #64748b;
}
.tour-ui-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .55rem;
  background: linear-gradient(135deg, #0f2d4a, #1e5a8a);
  color: #fff;
}
.tour-ui-logo {
  font-weight: 700;
  font-size: 1.05em;
}
.tour-ui-logo .logo-accent { color: #a8d4f0; }
.tour-ui-topbar-sub {
  font-size: .85em;
  opacity: .8;
}
.tour-ui-panel {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
  margin: .35rem .4rem 0;
  overflow: hidden;
}
.tour-ui-panel--main { border-bottom: 2px solid #1e6b8a; }
.tour-ui-panel-title {
  padding: .4rem .5rem;
  font-weight: 700;
  font-size: 1em;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #145070;
}
.tour-ui-sub {
  padding: .35rem .5rem .25rem;
  font-weight: 700;
  font-size: .95em;
  color: #334155;
}
.tour-ui-sub--accent {
  background: linear-gradient(135deg, rgba(30, 107, 138, .12), rgba(30, 107, 138, .05));
  border-bottom: 1px solid rgba(30, 107, 138, .15);
  border-left: 3px solid #1e6b8a;
  color: #145070;
}
.tour-ui-sub em {
  float: right;
  font-style: normal;
  font-weight: 500;
  color: #64748b;
  font-size: .9em;
}
.tour-ui-panel--sub { margin-bottom: .35rem; }
.tour-ui-panel-body { padding: .35rem .5rem .45rem; }
.tour-ui-videos {
  list-style: none;
  margin: 0;
  padding: .2rem .45rem .35rem;
}
.tour-ui-videos li {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .92em;
}
.tour-ui-videos li span:nth-child(2) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-ui-vicon {
  width: 1.35em;
  height: 1.35em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: .8em;
  flex-shrink: 0;
}
.tour-ui-vicon.done { background: #dcfce7; color: #166534; }
.tour-ui-vicon.play { background: #dbeafe; color: #1d4ed8; }
.tour-ui-vicon.lock { background: #f1f5f9; color: #94a3b8; }
.tour-ui-vbar {
  flex: 0 0 3.2em;
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.tour-ui-vbar i {
  display: block;
  height: 100%;
  background: #1e6b8a;
  border-radius: 999px;
}
.tour-ui-vpct {
  flex: 0 0 1.8em;
  text-align: right;
  color: #64748b;
  font-size: .85em;
}
.tour-ui-quiz-row {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: 0 .45rem .4rem;
}
.tour-ui-quiz-row span {
  padding: .2rem .35rem;
  background: #eef6ff;
  border: 1px solid #cfe4f5;
  border-radius: 4px;
  font-size: .82em;
  font-weight: 600;
  color: #1e5a8a;
}
.tour-ui-tools {
  display: grid;
  gap: .3rem;
  padding: 0 .4rem .4rem;
}
.tour-ui-tools--3 { grid-template-columns: repeat(3, 1fr); }
.tour-ui-tools--2 { grid-template-columns: repeat(2, 1fr); }
.tour-ui-tools--1 { grid-template-columns: 1fr; max-width: 52%; }
.tour-ui-tools .tour-ui-panel { margin: 0; }
.tour-ui-coming-soon {
  margin: .35rem 0 0;
  font-size: .62rem;
  line-height: 1.35;
  color: #64748b;
  font-style: italic;
}
.tour-ui-insight-mini {
  display: flex;
  gap: .25rem;
  padding: .3rem .45rem .4rem;
}
.tour-ui-insight-mini span {
  flex: 1;
  text-align: center;
  padding: .25rem .2rem;
  background: #1e6b8a;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: .82em;
}
.tour-ui-insight-mini .outline {
  background: #fff;
  color: #1e6b8a;
  border: 1px solid #1e6b8a;
}
.tour-ui-faint {
  padding: .25rem .45rem .4rem;
  color: #64748b;
  font-size: .85em;
}
.tour-ui-comm-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: .45rem;
  margin: 0 .5rem;
}
.tour-ui-comm-new {
  margin-left: auto;
  font-size: .78em;
  font-weight: 600;
  color: #fff;
  background: #1e6b8a;
  padding: .15rem .45rem;
  border-radius: 4px;
}
.tour-ui-inbox-tabs {
  display: flex;
  gap: .35rem;
  padding: .25rem .45rem .15rem;
  border-bottom: 1px solid #eef2f7;
}
.tour-ui-inbox-tabs span {
  font-size: .82em;
  font-weight: 600;
  color: #64748b;
  padding: .15rem .35rem;
  border-radius: 4px;
}
.tour-ui-inbox-tabs span.active {
  color: #1e5a8a;
  background: #eef6ff;
}
.tour-ui-inbox-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: .35rem;
  padding: .35rem .45rem .45rem;
  min-height: 9.5em;
}
.tour-ui-inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #eef2f7;
  border-radius: 6px;
  overflow: hidden;
}
.tour-ui-inbox-list li {
  padding: .32rem .38rem;
  border-bottom: 1px solid #eef2f7;
  font-size: .78em;
}
.tour-ui-inbox-list li:last-child { border-bottom: none; }
.tour-ui-inbox-list li.is-unread {
  background: #f0f9ff;
  border-left: 2px solid #1e6b8a;
}
.tour-ui-inbox-list li strong {
  display: block;
  color: #145070;
  font-size: .95em;
}
.tour-ui-inbox-list li em {
  display: block;
  font-style: normal;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-ui-inbox-preview {
  border: 1px solid #eef2f7;
  border-radius: 6px;
  padding: .35rem .4rem;
  font-size: .78em;
  background: #fafbfc;
}
.tour-ui-inbox-preview strong {
  display: block;
  color: #145070;
  margin-bottom: .2rem;
}
.tour-ui-inbox-preview p {
  margin: 0 0 .35rem;
  color: #475569;
  line-height: 1.4;
}
.tour-ui-assistant-desc {
  margin: 0;
  padding: .25rem .45rem .15rem;
  font-size: .78em;
  color: #64748b;
  line-height: 1.35;
}
.tour-ui-assistant-chat {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: .25rem .45rem;
  max-height: 6.8em;
  overflow: hidden;
}
.tour-ui-assistant-msg {
  padding: .32rem .4rem;
  border-radius: 8px;
  font-size: .74em;
  line-height: 1.35;
  max-width: 92%;
}
.tour-ui-assistant-msg.bot {
  align-self: flex-start;
  background: #eef6ff;
  color: #334155;
  border: 1px solid #dbeafe;
}
.tour-ui-assistant-msg.bot.is-ai {
  border-color: #c4b5fd;
  background: #f5f3ff;
}
.tour-ui-assistant-msg.user {
  align-self: flex-end;
  background: #1e5a8a;
  color: #fff;
}
.tour-ui-assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
  padding: .15rem .45rem .25rem;
}
.tour-ui-assistant-chips span {
  font-size: .68em;
  padding: .18rem .38rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-weight: 600;
}
.tour-ui-assistant-input {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 .45rem .4rem;
  padding: .28rem .35rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}
.tour-ui-assistant-input > span:first-child {
  flex: 1;
  font-size: .74em;
  color: #94a3b8;
}
.tour-ui-insight-cards {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: .3rem .45rem;
}
.tour-ui-icard {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .4rem;
  border: 1.5px solid #1e6b8a;
  border-radius: 6px;
  background: #fff;
}
.tour-ui-icard.outline {
  border-color: #cbd5e1;
  background: #fafbfc;
}
.tour-ui-icard img {
  width: 3em;
  height: 3em;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #1e6b8a;
  flex-shrink: 0;
}
.tour-ui-icard.outline img { border-color: #94a3b8; }
.tour-ui-icard strong {
  display: block;
  font-size: .92em;
  color: #145070;
}
.tour-ui-icard em {
  font-style: normal;
  font-size: .78em;
  color: #1e6b8a;
  font-weight: 600;
}
.tour-ui-casecode {
  margin: 0 .45rem .4rem;
  padding: .3rem .4rem;
  background: #eef6ff;
  border-radius: 4px;
  font-size: .85em;
  color: #475569;
}
.tour-ui-casecode code {
  font-weight: 700;
  color: #145070;
}
.tour-ui-eval-cat {
  padding: .25rem .45rem 0;
  font-size: .88em;
  font-weight: 700;
  color: #1e5a8a;
  border-top: 1px solid #eef2f7;
  margin-top: .2rem;
}
.tour-ui-eval-q {
  margin: .25rem .45rem .15rem;
  font-weight: 600;
  font-size: .9em;
  color: #334155;
}
.tour-ui-rating-group {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  padding: 0 .45rem .35rem;
}
.tour-ui-rbtn {
  padding: .28rem .4rem;
  border-radius: 5px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: .78em;
  line-height: 1.2;
}
.tour-ui-rbtn.yes-full { background: #15803d; color: #fff; border-color: #14532d; }
.tour-ui-rbtn.yes-partial { background: #ca8a04; color: #fff; border-color: #a16207; }
.tour-ui-rbtn.no { background: #b91c1c; color: #fff; border-color: #991b1b; }
.tour-ui-rbtn.selected { box-shadow: 0 0 0 2px rgba(15, 23, 42, .15); transform: scale(1.02); }
.tour-ui-panel--insight { margin-bottom: .3rem; }
.tour-ui-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
  padding: .35rem .4rem;
}
.tour-ui-total {
  text-align: center;
  padding: .3rem .2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
}
.tour-ui-total span {
  display: block;
  font-size: .72em;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
}
.tour-ui-total strong { font-size: 1.15em; color: #145070; }
.tour-ui-total.self { border-top: 2px solid #1e6b8a; }
.tour-ui-total.sup { border-top: 2px solid #c2410c; }
.tour-ui-total.oth { border-top: 2px solid #6366f1; }
.tour-ui-compare {
  margin: 0 .4rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
  font-size: .88em;
}
.tour-ui-compare-head,
.tour-ui-compare-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: .15rem;
  padding: .28rem .35rem;
  align-items: center;
}
.tour-ui-compare-head {
  background: #f1f5f9;
  font-size: .75em;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}
.tour-ui-compare-row:nth-child(even) { background: #fafbfc; }
.tour-ui-compare-row span:first-child { font-weight: 600; }
.tour-ui-compare-row .c-self { color: #1e6b8a; font-weight: 700; text-align: center; }
.tour-ui-compare-row .c-sup { color: #c2410c; font-weight: 700; text-align: center; }
.tour-ui-compare-row .c-oth { color: #6366f1; font-weight: 700; text-align: center; }
.tour-ui-chart-bars {
  display: flex;
  gap: .35rem;
  padding: .35rem .45rem .25rem;
  align-items: flex-end;
  height: 4.5em;
}
.tour-ui-chart-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  position: relative;
  padding-bottom: 1.1em;
  height: 3.2em;
}
.tour-ui-chart-col label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .72em;
  color: #64748b;
}
.tour-ui-chart-col span {
  width: .5em;
  border-radius: 2px 2px 0 0;
  flex-shrink: 0;
}
.tour-ui-chart-col:nth-child(1) span:nth-child(1) { height: 2.4em; background: #1e6b8a; }
.tour-ui-chart-col:nth-child(1) span:nth-child(2) { height: 1.7em; background: #c2410c; }
.tour-ui-chart-col:nth-child(1) span:nth-child(3) { height: 2.1em; background: #6366f1; }
.tour-ui-chart-col:nth-child(2) span:nth-child(1) { height: 2.5em; background: #1e6b8a; }
.tour-ui-chart-col:nth-child(2) span:nth-child(2) { height: 2.4em; background: #c2410c; }
.tour-ui-chart-col:nth-child(2) span:nth-child(3) { height: 2.45em; background: #6366f1; }
.tour-ui-chart-col:nth-child(3) span:nth-child(1) { height: 2em; background: #1e6b8a; }
.tour-ui-chart-col:nth-child(3) span:nth-child(2) { height: 2.2em; background: #c2410c; }
.tour-ui-chart-col:nth-child(3) span:nth-child(3) { height: 2.05em; background: #6366f1; }
.tour-ui-chart-legend {
  display: flex;
  gap: .5rem;
  padding: 0 .45rem .35rem;
  font-size: .75em;
  color: #64748b;
}
.tour-ui-chart-legend i {
  display: inline-block;
  width: .55em;
  height: .55em;
  border-radius: 2px;
  margin-right: .15em;
  vertical-align: middle;
}
.tour-ui-chart-legend .c-self { background: #1e6b8a; }
.tour-ui-chart-legend .c-sup { background: #c2410c; }
.tour-ui-chart-legend .c-oth { background: #6366f1; }
.tour-ui-ai-snippet {
  margin: .3rem .4rem .4rem;
  padding: .35rem .4rem;
  background: #f8fafc;
  border-left: 3px solid #1e6b8a;
  font-size: .82em;
  color: #475569;
  line-height: 1.45;
}
.tour-ui-ai-snippet strong { color: #145070; }
.tour-ui-rating-line {
  padding: .35rem .45rem .4rem;
  font-size: .88em;
}
.tour-ui-rating-line code { color: #145070; font-weight: 600; }
.tour-ui-pdf-tag {
  margin-left: .25rem;
  padding: .1rem .3rem;
  border: 1px solid #1e6b8a;
  border-radius: 4px;
  font-size: .78em;
  color: #1e6b8a;
  font-weight: 600;
}
.tour-ui-pdf-head {
  padding: .35rem .45rem;
  background: linear-gradient(90deg, #145070, #1e6b8a);
  color: #fff;
  font-weight: 700;
  font-size: .92em;
}
.tour-ui-panel--pdf p {
  margin: .3rem .45rem .15rem;
  font-size: .88em;
}
.tour-ui-pdf-meta { color: #64748b !important; }
.tour-ui-pdf-lines {
  height: 1.8em;
  margin: .3rem .45rem;
  background: repeating-linear-gradient(#e2e8f0 0 2px, transparent 2px 5px);
  border-radius: 3px;
}
.tour-ui-pdf-dl {
  display: inline-block;
  margin: 0 .45rem .4rem;
  padding: .25rem .45rem;
  border: 1px solid #1e6b8a;
  border-radius: 5px;
  color: #1e6b8a;
  font-weight: 600;
  font-size: .85em;
}
.tour-ui-diploma-wrap {
  padding: .3rem .45rem;
  background: #f8fafc;
}
.tour-ui-diploma {
  width: 100%;
  max-width: 14em;
  max-height: 7em;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
}
.tour-ui-exam-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .45rem .45rem;
}
.tour-ui-btn-sm {
  padding: .28rem .5rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: .85em;
}
.tour-ui-btn-sm.primary {
  background: #1e6b8a;
  color: #fff;
}
.tour-ui-passed {
  color: #166534;
  font-weight: 700;
  font-size: .88em;
}
.tour-ui-sim-row {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  padding: .25rem .45rem .4rem;
}
.tour-ui-sim-row span {
  padding: .2rem .3rem;
  border: 1px solid #1e6b8a;
  border-radius: 4px;
  font-size: .78em;
  font-weight: 600;
  color: #1e5a8a;
}
.tour-entry-preview .tour-ui--entry-mini {
  width: 100%;
  max-width: 155px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  font-size: 7.5px;
}
.tour-mock--cta {
  text-align: center;
  padding: 1rem 1.2rem;
  max-width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.tour-mock--cta strong {
  display: block;
  font-size: .95rem;
  color: #145070;
  margin-bottom: .4rem;
}
.tour-mock--cta span {
  display: block;
  font-size: .75rem;
  color: #64748b;
  margin-top: .2rem;
}
@media (max-width: 768px) {
  .tour-viewer { height: 100vh; width: 100%; }
  .tour-slide-caption {
    left: 4%;
    right: 4%;
    bottom: 3.5rem;
    width: auto;
  }
  .tour-slide-mockup {
    left: 50%;
    right: auto;
    top: 46%;
    bottom: auto;
    width: 94%;
    max-height: 52%;
    transform: translate(-50%, -50%);
  }
  .tour-slide-mockup--cta {
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -46%);
    width: auto;
  }
  .tour-ui { font-size: 10px; }
  .tour-ui--lg { font-size: 10.5px; }
  .tour-ui-course-grid,
  .tour-ui-tools-row,
  .tour-ui-comm-split,
  .tour-ui-inbox-layout { grid-template-columns: 1fr; }
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; color: var(--muted); }
.contact-box {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-box p { margin-bottom: .5rem; }

body.landing-page .site-footer {
  padding-top: 1.25rem;
}

/* Footer */
.site-footer {
  background: #0f1a28;
  color: #94a3b8;
  padding: 1.5rem 0 1rem;
  text-align: center;
  font-size: .82rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-contact {
  width: 100%;
  max-width: 420px;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.footer-contact h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
.footer-email {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}
.footer-email a {
  color: #a8d4f0;
  text-decoration: none;
  font-weight: 600;
}
.footer-email a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .24);
  color: #cbd5e1;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.footer-social-icon:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(168, 212, 240, .38);
  color: #fff;
}
.footer-social-icon--install {
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.footer-social-icon--install:hover {
  transform: translateY(-1px);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.footer-copy {
  margin: 0;
  font-size: .76rem;
  line-height: 1.5;
  color: #7c8da5;
  max-width: 36rem;
}
.instructor-picker-modal {
  width: min(400px, 94vw);
  padding: 2.45rem 1.75rem 1.5rem;
}
.instructor-picker-modal .login-modal-header {
  margin-bottom: 1rem;
}
.instructor-picker-intro {
  margin: .4rem 0 0;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.instructor-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.instructor-picker-link {
  display: block;
  width: 100%;
  padding: .62rem .85rem;
  border: 1px solid var(--dashboard-list-card-border, color-mix(in srgb, var(--accent) 24%, #d4dde8));
  border-radius: 10px;
  background: var(--dashboard-list-card-bg, linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 10%, #f8fbff) 100%));
  box-shadow: var(--dashboard-list-card-shadow, 0 1px 3px rgba(30, 107, 138, .06));
  color: var(--accent-dark);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s, color .2s;
}
.instructor-picker-link:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 107, 138, .1);
  color: var(--accent);
  transform: translateY(-2px);
}

.login-closed-modal {
  position: relative;
  width: min(420px, 94vw);
  text-align: center;
}
.login-closed-modal h2 {
  margin-bottom: .75rem;
}
.login-closed-modal p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.login-closed-session-modal {
  position: relative;
  width: min(440px, 94vw);
  text-align: center;
}
.login-closed-session-modal p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
  margin: 0 0 .85rem;
}
.login-closed-session-countdown {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin: .5rem 0 1.15rem !important;
}
.login-closed-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}
.login-closed-session-banner {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  background: #fffbeb;
  border-bottom: 1px solid #f59e0b;
  color: #92400e;
  padding: .65rem 1rem;
  font-size: .88rem;
  text-align: center;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,26,40,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-overlay > .modal {
  flex-shrink: 0;
  margin: auto;
}
.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(440px, 100%);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { margin-bottom: 1.25rem; font-size: 1.35rem; }
.delete-case-modal .login-modal-header {
  margin-bottom: 1.35rem;
}
.delete-case-modal-intro {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  max-width: 22rem;
  margin-inline: auto;
}
.delete-case-modal .login-modal-primary {
  gap: .55rem;
}
.delete-case-modal .btn-danger.login-modal-submit:hover {
  filter: brightness(.96);
}
.inbox-folder-delete-modal .delete-case-modal-intro {
  color: #fff;
  max-width: 20rem;
  font-size: .84rem;
  line-height: 1.35;
}
.inbox-folder-delete-modal--has-mail .inbox-folder-delete-keep {
  font-weight: 700;
}
.inbox-folder-delete-modal:not(.inbox-folder-delete-modal--has-mail) .inbox-folder-delete-confirm {
  order: -1;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-check { margin-bottom: 1rem; }
.form-check-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  margin-bottom: 0;
}
.form-check-label input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-check-label span { line-height: 1.35; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-error { color: var(--danger); font-size: .85rem; margin-top: .5rem; }

/* Dashboard layout */
.dashboard-header {
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  color: #fff;
  padding: 1.5rem 0;
  position: relative;
  z-index: 200;
}
#viewCase.active > .dashboard-header {
  padding: .55rem 0;
}
#viewCase.active > .dashboard-header .dashboard-header-inner {
  min-height: 0;
}
.dashboard-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.eval-setup-header-end,
.eval-wizard-header-end {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
  flex-shrink: 0;
}
.session-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .3rem;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.session-qr.hidden { display: none; }
.session-qr-box,
.session-qr-box img,
.session-qr-box canvas,
.session-qr-box table {
  width: 84px !important;
  height: 84px !important;
  display: block;
}
.session-qr-caption {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #143d5c;
  line-height: 1.1;
}
.session-qr--on-dark {
  background: #fff;
}
.feedback-room-header-end {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-left: auto;
  flex-shrink: 0;
}
.join-role-lead {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #143d5c;
}
.join-role-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.join-role-actions .btn {
  width: 100%;
}
.session-qr-modal {
  text-align: center;
}
.session-qr-large {
  display: flex;
  justify-content: center;
  margin: .5rem auto 1rem;
  padding: .75rem;
  background: #fff;
  width: fit-content;
}
.session-qr-large-code {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 1.15rem;
  color: #143d5c;
  margin: 0;
}
.dashboard-header-brand {
  flex: 1;
  min-width: 0;
}
.dashboard-header-logo {
  font-size: 1.55rem;
  flex-shrink: 0;
}
.dashboard-header-logo .logo-mark {
  width: 2.35rem;
  height: 2.35rem;
}
.dashboard-header-start {
  display: flex;
  align-items: center;
  gap: .85rem 1rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.dashboard-header-page-title,
.dashboard-header-inner > .eval-wizard-title {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
  min-width: 0;
}
.dashboard-header-inner .dashboard-header-start .eval-wizard-title {
  font-size: 1.25rem;
}
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.hamburger-btn:hover {
  background: rgba(255,255,255,.16);
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.dashboard-nav {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  padding: .5rem;
  display: none;
  flex-direction: column;
  z-index: 210;
}
.dashboard-nav.open {
  display: flex;
}
.dashboard-nav-section-label {
  padding: .45rem .85rem .2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.dashboard-nav-divider {
  height: 1px;
  margin: .35rem .65rem;
  background: #e2e8f0;
}
.dashboard-nav-link--section {
  font-weight: 600;
  color: var(--accent-dark, var(--accent));
}
.dashboard-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: .75rem 1rem;
  border: none;
  background: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.dashboard-nav-link:hover {
  background: #f1f5f9;
  color: var(--accent-dark);
}
.dashboard-nav-link--logout {
  color: var(--danger);
}
.dashboard-nav-link--logout:hover {
  background: #fef2f2;
  color: var(--danger);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: transparent;
}
.nav-backdrop[hidden] {
  display: none;
}

.account-access-panel {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
}
.account-page {
  max-width: 620px;
  font-feature-settings: "kern" 1, "liga" 1;
}
.account-page .panel-full {
  margin-bottom: .85rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--account-shadow);
}
.account-page .panel-header {
  padding: .75rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}
.account-page .panel-header-accent {
  background: linear-gradient(180deg, #f8fbfd 0%, #f1f6fa 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}
.account-page .panel-header h2,
.account-page .panel-header-accent h2 {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border-left-width: 3px;
  padding-left: .65rem;
}
.account-compact {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.account-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding-bottom: .15rem;
}
.account-compact-grid {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  font-size: .84rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.account-compact-grid > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .75rem;
  align-items: center;
  padding: .52rem .8rem;
  border-top: 1px solid var(--border-light);
  background: #fff;
}
.account-compact-grid > div:nth-child(even) {
  background: #f9fbfd;
}
.account-compact-grid > div:first-child {
  border-top: none;
}
.account-compact-grid dt {
  margin: 0;
  color: #64748b;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.account-compact-grid dd {
  margin: 0;
  font-weight: 500;
  font-size: .84rem;
  color: var(--text);
  text-align: right;
  word-break: break-word;
  line-height: 1.35;
}
.account-nickname-compact {
  padding: .75rem .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fbfd 0%, #f4f7fa 100%);
  box-shadow: 0 1px 2px rgba(26, 35, 50, 0.04);
}
.account-nickname-fields label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.account-nickname-row {
  display: flex;
  gap: .45rem;
  align-items: center;
}
.account-nickname-row input {
  flex: 1;
  min-width: 0;
  padding: .45rem .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .84rem;
  font-family: inherit;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.04);
  transition: border-color .15s, box-shadow .15s;
}
.account-nickname-row input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.account-nickname-meta {
  margin: .4rem 0 0;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.4;
}
.account-nickname-meta code {
  font-size: .74rem;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: .1rem .35rem;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(26, 35, 50, 0.04);
}
.account-privacy-compact {
  gap: .65rem;
}
.account-privacy-note {
  margin: 0;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.45;
}
.account-privacy-note a {
  font-weight: 500;
}
.account-privacy-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.account-privacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: .84rem;
  box-shadow: 0 1px 2px rgba(26, 35, 50, 0.04);
}
.account-privacy-item > div:first-child {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}
.account-privacy-item strong {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.account-privacy-item span {
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.35;
}
.account-privacy-item--danger {
  flex-direction: column;
  align-items: stretch;
  border-color: #f5d0d0;
  background: linear-gradient(180deg, #fffafa 0%, #fff5f5 100%);
  box-shadow: 0 1px 3px rgba(180, 35, 24, 0.06);
}
.account-privacy-delete {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}
.account-privacy-delete input {
  flex: 1;
  min-width: 120px;
  padding: .42rem .55rem;
  border: 1px solid #e8d4d4;
  border-radius: 8px;
  font-size: .82rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.account-privacy-delete input:focus {
  outline: none;
  border-color: #e8a8a8;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}
.account-page .license-seats-table-wrap,
.account-page-content .license-seats-table-wrap {
  margin-top: .5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26, 35, 50, 0.04);
}
.account-page .license-seats-table,
.account-page-content .license-seats-table {
  margin: 0;
}
.account-page .license-seats-table th,
.account-page-content .license-seats-table th {
  background: #f4f7fa;
  border-bottom: 1px solid var(--border);
  font-size: .7rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b;
}
.account-page .license-seats-table td,
.account-page-content .license-seats-table td {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.account-page .license-seats-table tbody tr:last-child td,
.account-page-content .license-seats-table tbody tr:last-child td {
  border-bottom: none;
}
.account-page .license-seats-table tbody tr:nth-child(even) td,
.account-page-content .license-seats-table tbody tr:nth-child(even) td {
  background: #f9fbfd;
}
.account-page .license-seats-table code,
.account-page-content .license-seats-table code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 1px rgba(26, 35, 50, 0.03);
}
.license-seats-table--compact th,
.license-seats-table--compact td {
  padding: .42rem .55rem;
  font-size: .76rem;
}
.license-seat-actions {
  white-space: nowrap;
}
.license-seat-actions .btn + .btn {
  margin-left: .35rem;
}
.account-access-status {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.account-access-badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(26, 35, 50, 0.06);
}
.account-access-badge--active {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}
.account-access-badge--group {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.account-access-badge--trial {
  background: #fffbeb;
  color: #854d0e;
  border-color: #fde68a;
}
.account-access-detail {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
  margin: 0;
  letter-spacing: -.005em;
}
.account-subscription-details {
  display: grid;
  gap: .5rem;
  width: 100%;
  margin: 0;
  font-size: .88rem;
}
.account-subscription-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.account-subscription-details dt {
  color: var(--muted);
  font-weight: 600;
}
.account-subscription-details dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.account-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.account-access-badge--expired {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.plan-choice-modal {
  width: min(560px, 94vw);
  padding: 2.45rem 1.75rem 1.5rem;
}
.plan-choice-header {
  text-align: center;
  margin-bottom: 1.35rem;
}
.plan-choice-logo {
  justify-content: center;
  margin: 0 auto 0.65rem;
  font-size: 1.45rem;
}
.plan-choice-logo .logo-mark {
  width: 2rem;
  height: 2rem;
}
.plan-choice-heading {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  text-align: center;
}
.plan-choice-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 34rem;
  margin-inline: auto;
}
.plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.plan-choice-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 1.15rem 1.1rem 1.05rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.plan-choice-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(15, 45, 74, .1);
  transform: translateY(-1px);
}
.plan-choice-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.plan-choice-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.3;
}
.plan-choice-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.plan-choice-price .plan-choice-price-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.plan-choice-features {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.plan-choice-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.35;
}
.plan-choice-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.plan-choice-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.plan-choice-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.plan-choice-footer a:hover {
  text-decoration: underline;
}
.signup-plan-summary {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.signup-plan-summary li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.35;
}
.signup-plan-summary li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.signup-price-preview {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: .35rem 0 0;
}
.form-hint {
  font-size: .78rem;
  color: var(--muted);
  margin: .35rem 0 0;
  line-height: 1.4;
}
.checkout-billing-note {
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  margin-top: 1rem;
  line-height: 1.4;
}
.checkout-line-discount {
  color: #166534;
}
.upgrade-modal-price-lines {
  margin-top: 1rem;
  font-size: .82rem;
  opacity: .9;
}
.upgrade-modal-price-line {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}

.login-mode-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.15rem;
}
.login-mode-tab {
  flex: 1;
  padding: .55rem .65rem;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #f8fafc;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.login-mode-tab.active {
  background: #eef6ff;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.license-seats-table-wrap {
  overflow-x: auto;
  margin-top: .75rem;
}
.license-seats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.license-seats-table th,
.license-seats-table td {
  padding: .55rem .45rem;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
  vertical-align: top;
}
.license-seats-table th {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}
.license-seats-table code {
  font-size: .78rem;
  background: #f1f5f9;
  padding: .15rem .35rem;
  border-radius: 4px;
}

/* Group admin table */
.group-admin-table-wrap {
  overflow-x: auto;
  margin-top: .75rem;
}
.group-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.group-admin-table th,
.group-admin-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.group-admin-table th {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.group-admin-table code {
  font-size: .78rem;
  background: #f1f5f9;
  padding: .15rem .35rem;
  border-radius: 4px;
}
.group-admin-page {
  max-width: 1100px;
}
.group-admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.group-admin-intro {
  color: var(--muted);
  margin: .35rem 0 0;
  max-width: 36rem;
  font-size: .92rem;
}
.group-admin-summary {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.group-admin-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  min-width: 5.5rem;
  text-align: center;
}
.group-admin-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.group-admin-stat-label {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.group-admin-progress {
  font-size: .82rem;
  color: var(--text);
  min-width: 12rem;
}
.group-admin-subscribe {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.group-admin-ready {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.group-admin-ready p {
  margin: 0;
  color: #166534;
  font-size: .9rem;
}
.checkout-group-note {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .5rem;
}
.group-admin-subscribe p {
  margin: 0;
  color: #7a5b00;
  font-size: .9rem;
}
.group-member-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.group-member-empty {
  color: var(--muted);
  margin: 0;
  padding: 1rem 0;
}
.group-member-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: #fff;
}
.group-member-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.group-member-identity h3 {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
}
.group-member-username {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}
.group-member-badges {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.group-member-overall {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}
.group-member-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  padding: .75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.group-member-credentials strong {
  color: var(--muted);
  font-weight: 600;
  margin-right: .25rem;
}
.group-member-credentials code {
  font-size: .78rem;
  background: #f1f5f9;
  padding: .12rem .35rem;
  border-radius: 4px;
}
.group-member-password-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}
.badge-sm {
  font-size: .68rem;
  padding: .1rem .35rem;
}
.change-password-panel {
  max-width: 480px;
  margin: 2rem auto 0;
}
.change-password-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.change-password-form .form-group {
  margin-bottom: 1rem;
}
.group-member-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .85rem 1rem;
  padding: .85rem 0;
}
.group-member-metric-head {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .25rem;
}
.group-member-metric--inline {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .78rem;
  color: var(--muted);
}
.group-member-metric--inline strong {
  color: var(--text);
  font-size: .9rem;
}
.group-member-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding-top: .25rem;
}
.group-admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.group-admin-header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.send-message-modal {
  width: min(480px, 100%);
}
.send-message-to {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 1rem;
}
.send-message-actions {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}
.send-credentials-sms-hint {
  margin: 0 0 1rem;
}
.form-success {
  color: #15803d;
  font-size: .88rem;
  margin: .5rem 0 0;
}

/* Inbox */
.inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  margin-left: .35rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}
.inbox-panel-badge.inbox-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .28rem;
  margin-left: .5rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .28);
  vertical-align: middle;
}
.comm-center-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.comm-center-letter-r {
  position: relative;
  display: inline-block;
}
.comm-center-title .inbox-panel-badge.inbox-badge {
  position: absolute;
  top: -0.55em;
  left: 0.05em;
  margin: 0;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 .22rem;
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.05rem;
  z-index: 1;
}
.inbox-tab-badge {
  margin-left: .4rem;
  box-shadow: none;
}
.inbox-folder-tab .inbox-tab-badge {
  min-width: 1.1rem;
  height: 1.1rem;
  font-size: .62rem;
}
.panel-header-main h2 .inbox-panel-badge,
.admin-panel-header-row h2 .inbox-panel-badge {
  margin-left: .5rem;
}
.comm-center-title.panel-header-main h2 .inbox-panel-badge,
.panel-header-main h2.comm-center-title .inbox-panel-badge {
  margin-left: 0;
}
.panel-header-main.dashboard-group-header,
.comm-center-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.dashboard-group-header > h2 {
  flex: 1;
  min-width: 0;
}
.dashboard-group-toggle,
.comm-center-toggle {
  min-width: 3.6rem;
  flex-shrink: 0;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  font-weight: 700;
}
.dashboard-group-toggle:hover,
.comm-center-toggle:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.main-panel.is-collapsed > .panel-body-main,
.main-panel.is-collapsed > .panel-body {
  display: none;
}
.main-panel.is-collapsed {
  overflow: hidden;
}
.main-panel-collapsed-preview {
  display: none;
  padding: .75rem 1.35rem 1rem;
  background: var(--panel-main-bg, #e8eef5);
  border-top: 1px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 14%, #e2e8f0);
}
.main-panel.is-collapsed > .main-panel-collapsed-preview:not(.is-empty) {
  display: block;
}
.main-panel-collapsed-preview-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: stretch;
  justify-content: center;
  padding-left: 0;
}
.main-panel-collapsed-chip {
  appearance: none;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 55%, #c5d0dc);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent-dark, var(--accent)) 12%, rgba(15, 45, 74, 0.06));
  color: var(--dashboard-pill-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.main-panel-collapsed-chip-head {
  display: block;
  margin: 0;
  padding: .55rem .7rem .5rem;
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 100%));
  border-bottom: 2px solid var(--theme-header-border, #0a2540);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.main-panel-collapsed-chip-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: .45rem .7rem .5rem;
  background: #fff;
}
.main-panel-collapsed-underbox {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.55rem;
  margin: 0;
  padding: .45rem .7rem .5rem;
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 55%, #c5d0dc);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent-dark, var(--accent)) 12%, rgba(15, 45, 74, 0.06));
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.main-panel-collapsed-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--accent-dark, #143d5c);
}
.main-panel-collapsed-chip-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}
.main-panel-collapsed-chip:hover,
.main-panel-collapsed-chip:focus-visible,
.main-panel-collapsed-underbox:hover,
.main-panel-collapsed-underbox:focus-visible {
  outline: none;
  filter: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-dark, var(--accent)) 18%, rgba(15, 45, 74, 0.1));
}
.main-panel-collapsed-chip:active,
.main-panel-collapsed-underbox:active {
  transform: translateY(1px);
}
@media (max-width: 640px) {
  .main-panel-collapsed-preview {
    padding: .6rem .85rem .75rem;
  }
  .main-panel-collapsed-preview-list {
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    overflow-x: visible;
  }
  .main-panel-collapsed-chip-head {
    font-size: .68rem;
    letter-spacing: .05em;
  }
}
.comm-center-main-header h2 {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  flex: 1;
  min-width: 0;
}
.comm-center-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.inbox-dashboard-panel {
  border-radius: var(--radius);
  overflow: hidden;
}
.inbox-dashboard-panel > .panel-header-main {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.inbox-dashboard-panel > .comm-center-main-shell {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.inbox-dashboard-panel.is-collapsed {
  background: var(--white);
  border: 1px solid #c8d3e0;
  box-shadow: 0 8px 32px rgba(15, 45, 74, 0.12);
  overflow: hidden;
}
.inbox-dashboard-panel.is-collapsed .panel-header-main {
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 100%));
  border-bottom: 2px solid var(--theme-header-border, #0a2540);
}
.inbox-dashboard-panel .comm-center-main-shell {
  min-height: 8rem;
}
.inbox-dashboard-panel.is-collapsed .comm-center-split {
  display: none;
}
.panel-header-main .comm-center-admin-btn {
  flex-shrink: 0;
}
.inbox-page {
  max-width: 1100px;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 8.75rem 14.5rem minmax(0, 1fr);
  gap: .4rem;
  min-height: 32rem;
}
.inbox-sidebar,
.inbox-detail {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 32rem;
}
.inbox-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.comm-center-pane--messages .inbox-folder-nav {
  display: flex;
  flex-direction: column;
  min-height: var(--inbox-list-height);
  height: var(--inbox-list-height);
  min-width: 0;
  background: color-mix(in srgb, var(--accent) 8%, #f3f7fb);
}
.comm-center-pane--messages .inbox-folder-list {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: .2rem .28rem;
}
.comm-center-pane--messages .inbox-folder-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  width: 100%;
  min-width: 0;
  padding: .42rem .5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-dark, #143d5c);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s, color .15s;
}
.comm-center-pane--messages .inbox-folder-tab:hover {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
}
.comm-center-pane--messages .inbox-folder-tab.active {
  background: var(--dashboard-pill-bg);
  color: #fff;
  box-shadow: var(--dashboard-pill-shadow);
}
.comm-center-pane--messages .inbox-folder-tab .inbox-tab-badge {
  margin-left: auto;
  background: #fff;
  color: var(--accent-dark, #143d5c);
}
.comm-center-pane--messages .inbox-folder-tab.active .inbox-tab-badge {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.comm-center-pane--messages .inbox-folder-compose.case-create-game-btn {
  width: calc(100% - .7rem);
  margin: .35rem .35rem .1rem;
  padding: .38rem .5rem .38rem .38rem;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.comm-center-pane--messages .inbox-folder-compose .case-create-game-icon {
  width: 22px;
  height: 22px;
}
.comm-center-pane--messages .inbox-folder-compose .case-create-game-icon svg {
  width: 12px;
  height: 12px;
}
.comm-center-pane--messages .inbox-custom-folders {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.comm-center-pane--messages .inbox-custom-folders:not(:empty) {
  margin-top: .25rem;
  padding-top: .25rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, #d4dde8);
}
.comm-center-pane--messages .inbox-folder-chip {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
}
.comm-center-pane--messages .inbox-folder-chip .inbox-custom-folder-tab {
  flex: 1 1 auto;
  border: none;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
  background: transparent;
  padding: .42rem .5rem;
  text-transform: none;
  letter-spacing: .02em;
  font-size: .78rem;
  justify-content: flex-start;
}
.comm-center-pane--messages .inbox-folder-chip.is-active {
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
}
.comm-center-pane--messages .inbox-folder-chip.is-active .inbox-custom-folder-tab {
  color: #fff;
}
.comm-center-pane--messages .inbox-folder-delete {
  flex: 0 0 auto;
  appearance: none;
  width: 1.55rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
}
.comm-center-pane--messages .inbox-folder-chip.is-active .inbox-folder-delete {
  color: rgba(255, 255, 255, .85);
}
.comm-center-pane--messages .inbox-folder-delete:hover {
  background: #fef2f2;
  color: #dc2626;
}
.comm-center-pane--messages .inbox-folder-chip.is-active .inbox-folder-delete:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.comm-center-pane--messages .inbox-folder-nav-footer {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .28rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, #d4dde8);
  margin-top: auto;
}
.comm-center-pane--messages .inbox-folder-add {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .4rem;
  width: 100%;
  min-height: 2rem;
  margin: 0;
  padding: .4rem .5rem;
  border: 1.5px dashed color-mix(in srgb, var(--accent-dark, var(--accent)) 35%, #c5d0dc);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark, #143d5c);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s, border-color .15s, color .15s;
}
.comm-center-pane--messages .inbox-folder-add svg {
  width: .9rem;
  height: .9rem;
  flex: 0 0 auto;
}
.comm-center-pane--messages .inbox-folder-add:hover {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border-color: var(--accent);
  border-style: solid;
}
.comm-center-pane--messages .inbox-folder-nav:has(.inbox-folder-create:not(.hidden)) .inbox-folder-add {
  display: none;
}
.comm-center-pane--messages .inbox-folder-create {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
  min-width: 0;
}
.comm-center-pane--messages .inbox-folder-create.hidden {
  display: none;
}
.comm-center-pane--messages .inbox-folder-create-name {
  grid-column: 1 / -1;
  width: 100%;
  padding: .32rem .45rem;
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 28%, #c5d0dc);
  border-radius: 8px;
  font-size: .78rem;
}
.comm-center-pane--messages .inbox-folder-create-save,
.comm-center-pane--messages .inbox-folder-create-cancel,
.comm-center-pane--messages .inbox-folder-empty-trash {
  appearance: none;
  width: 100%;
  padding: .32rem .55rem;
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 22%, #c5d0dc);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark, #143d5c);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.comm-center-pane--messages .inbox-folder-create-save,
.comm-center-pane--messages .inbox-folder-empty-trash {
  background: var(--dashboard-pill-bg);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent-dark, var(--accent)) 55%, #fff);
}
.comm-center-pane--messages .inbox-tools-box {
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 28%, #c5d0dc);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent-dark, var(--accent)) 10%, rgba(15, 45, 74, .05));
  overflow: hidden;
}
.inbox-folder-tabs {
  display: flex;
  gap: .25rem;
}
.inbox-folder-tab {
  border: none;
  background: none;
  padding: .35rem .65rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.inbox-folder-tab.active {
  background: #eef6ff;
  color: var(--accent);
}
.inbox-message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: 24.5rem;
}
.inbox-message-item {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: .35rem;
  padding: .32rem 1.7rem .32rem .7rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  line-height: 1.2;
}
.inbox-message-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: .28rem;
  bottom: .28rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #2563eb;
}
.inbox-message-item:hover,
.inbox-message-item.active {
  background: #f8fafc;
}
.inbox-message-item.unread .inbox-item-subject,
.inbox-message-item.unread .inbox-item-from {
  font-weight: 800;
  color: #0f172a;
}
.inbox-item-main {
  flex: 1;
  min-width: 0;
}
.inbox-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  width: 100%;
  font-size: .78rem;
  line-height: 1.2;
}
.inbox-item-from {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-item-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
}
.inbox-item-subject {
  font-size: .8rem;
  margin-top: .12rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.inbox-item-preview {
  display: none;
}
.inbox-item-delete {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, background .15s, color .15s;
}
.inbox-item-delete svg {
  width: .95rem;
  height: .95rem;
}
.inbox-message-item:hover .inbox-item-delete,
.inbox-message-item:focus-within .inbox-item-delete {
  opacity: 1;
  pointer-events: auto;
}
.inbox-item-delete:hover {
  background: #fef2f2;
  color: #dc2626;
}
.inbox-item-delete:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #dc2626;
  outline-offset: 1px;
}
.inbox-message-item--movable {
  padding-right: 1.7rem;
}
.inbox-item-move {
  position: absolute;
  right: 2.05rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 5.6rem;
  padding: .12rem .2rem;
  border: 1px solid var(--border, #d4dde8);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark, #143d5c);
  font-size: .65rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.inbox-message-item:hover .inbox-item-move,
.inbox-message-item:focus-within .inbox-item-move {
  opacity: 1;
  pointer-events: auto;
}
.inbox-list-empty {
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: .88rem;
}
.inbox-detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-direction: column;
  gap: .65rem;
  color: var(--muted);
  padding: 2rem;
  text-align: center;
}
.inbox-detail-view,
.inbox-compose {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.inbox-detail-header h2 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.inbox-detail-meta {
  color: var(--muted);
  font-size: .82rem;
  margin: 0 0 1rem;
}
.inbox-detail-body {
  flex: 1;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: .92rem;
}
.inbox-body-link {
  color: var(--accent, #1e5a8a);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}
.inbox-body-link:hover {
  color: #0f2d4a;
}
.inbox-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.inbox-move-wrap {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dark, #143d5c);
}
.inbox-move-wrap select {
  min-width: 8.5rem;
  padding: .28rem .4rem;
  border: 1px solid var(--border, #d4dde8);
  border-radius: 6px;
  background: #fff;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}
.inbox-compose-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.inbox-compose-actions {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}
.comm-channel-tabs {
  display: flex;
  gap: .25rem;
  margin-right: auto;
}
.comm-channel-tab {
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: .22rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.comm-channel-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.mailbox-layout {
  flex: 1;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
}
.mailbox-setup {
  max-width: 36rem;
  padding: .35rem .15rem 1rem;
}
.mailbox-setup h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
}
.mailbox-setup p {
  margin: 0 0 .85rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.mailbox-lock-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  margin-bottom: .3rem;
}
.mailbox-lock-row {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: .55rem;
}
.mailbox-lock-row input {
  flex: 1;
  min-width: 0;
  padding: .48rem .7rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: .9rem;
}
.mailbox-setup-note {
  font-size: .78rem !important;
}
.mailbox-client {
  display: grid;
  grid-template-columns: minmax(11rem, 13.5rem) minmax(17rem, 23rem) minmax(0, 1fr);
  gap: .75rem;
  flex: 1;
  min-height: 28rem;
  align-items: stretch;
}
.mailbox-preview-banner {
  grid-column: 1 / -1;
  margin: 0;
  padding: .55rem .75rem;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: .8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .75rem;
}
.mailbox-folders,
.mailbox-list,
.mailbox-detail {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  min-width: 0;
  margin-bottom: 0;
}
.mailbox-col-head {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  flex-shrink: 0;
}
.mailbox-col-title {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mailbox-from-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .45rem;
  padding: .5rem .7rem;
  border-bottom: 1px solid var(--border);
  font-size: .76rem;
}
.mailbox-from-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .62rem;
  font-weight: 700;
  width: 100%;
}
.mailbox-from-bar strong {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-size: .74rem;
}
.mailbox-from-bar .btn {
  margin-left: auto;
}
.mailbox-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .55rem .75rem;
  margin: .75rem 0 .5rem;
}
.mailbox-setup-grid label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}
.mailbox-setup-grid input {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: .42rem .55rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: .84rem;
  color: var(--text);
}
.mailbox-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--muted);
  margin: .35rem 0 .75rem;
}
.mailbox-search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--border-light, #eef2f6);
  flex-shrink: 0;
}
.mailbox-search input[type="search"] {
  grid-column: 1 / -1;
}
.mailbox-search button {
  grid-column: 1 / -1;
  justify-self: start;
}
.mailbox-search input {
  width: 100%;
  padding: .35rem .5rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  font-size: .8rem;
}
.mailbox-folder-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .12rem;
  padding: .4rem .35rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.mailbox-unread-count {
  margin-left: auto;
  color: var(--accent);
  font-size: .72rem;
}
.mailbox-folder-create {
  display: flex;
  gap: .35rem;
  padding: .45rem .55rem .55rem;
  border-top: 1px solid var(--border-light, #eef2f6);
  flex-shrink: 0;
}
.mailbox-folder-create input {
  flex: 1;
  min-width: 0;
  padding: .3rem .45rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  font-size: .78rem;
}
.mailbox-move-select {
  padding: .28rem .4rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  font-size: .78rem;
  max-width: 9rem;
}
.mailbox-attachments {
  margin: .3rem 0 0;
  font-size: .76rem;
  color: var(--muted);
}
.mailbox-folder-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  border: none;
  background: none;
  padding: .38rem .55rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.mailbox-folder-btn.active {
  background: #eef6ff;
  color: var(--accent);
}
.mailbox-message-list {
  max-height: none;
  flex: 1;
  min-height: 0;
}
.mailbox-message-item {
  padding: .55rem .7rem .55rem .85rem;
}
.mailbox-compose-from {
  margin: 0 0 .75rem;
  font-size: .82rem;
  color: var(--muted);
}
.mailbox-delivery {
  margin: .35rem 0 0;
  font-size: .76rem;
  color: var(--muted);
}
.mailbox-detail .inbox-detail-empty,
.mailbox-detail .inbox-detail-view,
.mailbox-detail .inbox-compose {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.mailbox-detail .inbox-compose-title {
  display: none;
}
.mailbox-detail .inbox-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: .5rem;
}
.mailbox-detail .inbox-detail-body {
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 1100px) {
  .mailbox-client {
    grid-template-columns: minmax(11rem, 13rem) 1fr;
  }
  .mailbox-detail {
    grid-column: 1 / -1;
    min-height: 18rem;
  }
}
@media (max-width: 700px) {
  .mailbox-client {
    grid-template-columns: 1fr;
  }
  .mailbox-folders,
  .mailbox-list,
  .mailbox-detail {
    min-height: 16rem;
  }
}
.inbox-dashboard-panel .inbox-layout {
  min-height: var(--inbox-list-height, 27rem);
}
.inbox-dashboard-panel .inbox-sidebar,
.inbox-dashboard-panel .inbox-detail,
.inbox-dashboard-panel .inbox-folder-nav {
  min-height: var(--inbox-list-height, 27rem);
  margin-bottom: 0;
}
.inbox-dashboard-panel .inbox-detail-header h3,
.inbox-dashboard-panel .inbox-compose-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.inbox-panel-body {
  padding-top: 0;
}
.comm-center-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.panel-header-main .inbox-header-compose-btn {
  flex-shrink: 0;
  background: #fff;
  color: #1e5a8a;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.panel-header-main .inbox-header-compose-btn:hover {
  background: #eef6ff;
}
.inbox-layout--dashboard {
  grid-template-columns: 8.75rem 14.5rem minmax(0, 1fr);
  gap: .4rem;
  min-height: 32rem;
}
#groupCommunication .inbox-tools-box,
.comm-center-pane--messages .inbox-tools-box {
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 28%, #c5d0dc);
  border-radius: 10px;
  background: #fff;
  min-height: var(--inbox-list-height, 27rem);
  height: var(--inbox-list-height, auto);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent-dark, var(--accent)) 10%, rgba(15, 45, 74, .05));
  overflow: hidden;
}
#groupCommunication .inbox-sidebar,
#groupCommunication .inbox-detail,
#groupCommunication .inbox-folder-nav {
  min-height: var(--inbox-list-height, 27rem);
  height: var(--inbox-list-height, auto);
}
#groupCommunication .inbox-message-list {
  flex: 1;
  min-height: 0;
}
.comm-center-split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comm-center-pane {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  min-width: 0;
}
.comm-center-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.comm-center-pane-header h2 {
  flex: 1;
  min-width: 0;
}
.comm-center-pane-heading {
  min-width: 0;
  flex: 1;
}
.comm-center-pane-heading h2 {
  margin: 0;
}
.comm-center-pane-kicker {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .12rem;
}
.comm-center-pane-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: .65rem;
}
.comm-center-pane-desc {
  margin: 0 0 .65rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.4;
}
.comm-center-pane--messages {
  --inbox-msg-row: 2.7rem;
  --inbox-list-height: calc(var(--inbox-msg-row) * 7);
  min-height: 0;
}
.comm-center-pane--messages .inbox-layout,
.comm-center-pane--messages .inbox-layout--dashboard {
  flex: 1;
  min-height: var(--inbox-list-height);
  height: var(--inbox-list-height);
}
.dashboard-group .sub-panel.comm-center-pane--messages > .panel-body.panel-body-compact {
  padding: .4rem .45rem;
}
.comm-center-pane--messages .inbox-message-list {
  height: var(--inbox-list-height);
  max-height: var(--inbox-list-height);
  overflow-y: auto;
}
.comm-center-pane--messages .inbox-message-item {
  height: var(--inbox-msg-row);
  min-height: var(--inbox-msg-row);
  box-sizing: border-box;
  overflow: hidden;
}
.comm-center-pane--messages .inbox-folder-nav,
.comm-center-pane--messages .inbox-sidebar,
.comm-center-pane--messages .inbox-detail,
.comm-center-pane--messages .inbox-tools-box {
  min-height: var(--inbox-list-height);
  height: var(--inbox-list-height);
}
.comm-center-pane--messages .inbox-detail {
  overflow: hidden;
}
.comm-center-pane--messages .inbox-compose {
  padding: .4rem .45rem .35rem;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.comm-center-pane--messages .inbox-compose-title {
  margin: 0 0 .25rem;
  font-size: .82rem;
  line-height: 1.2;
}
.comm-center-pane--messages .inbox-compose-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.comm-center-pane--messages .inbox-compose .form-group {
  margin-bottom: .22rem;
}
.comm-center-pane--messages .inbox-compose .form-group label {
  font-size: .68rem;
  margin-bottom: .08rem;
}
.comm-center-pane--messages .inbox-compose .form-group input,
.comm-center-pane--messages .inbox-compose .form-group textarea {
  font-size: .78rem;
  padding: .22rem .4rem;
  line-height: 1.25;
}
.comm-center-pane--messages .inbox-compose-body-group {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: .22rem;
}
.comm-center-pane--messages .inbox-compose textarea {
  flex: 1;
  min-height: 2.6rem;
  height: auto;
  resize: none;
}
.comm-center-pane--messages .inbox-compose-actions {
  margin-top: 0;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: .28rem;
}
.comm-center-pane--messages .inbox-compose-actions .btn {
  padding: .22rem .5rem;
  font-size: .72rem;
}
.comm-center-pane--messages .inbox-compose .form-error {
  margin: 0 0 .2rem;
  font-size: .72rem;
}
.comm-center-pane--email .mailbox-layout {
  flex: 1;
  min-height: 28rem;
}
.comm-center-pane--assistant .assistant-chat {
  flex: 1;
  min-height: 22rem;
}
.comm-center-assistant {
  border-top: none;
  padding-top: 0;
}
.assistant-chat {
  border: 1px solid #d4dde8;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  overflow: hidden;
}
.assistant-chat-log {
  flex: 1;
  min-height: 10rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.assistant-msg {
  max-width: 92%;
  padding: .6rem .75rem;
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.45;
  word-break: break-word;
}
.assistant-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #d4dde8;
  color: #1a2b3c;
}
.assistant-msg--user {
  align-self: flex-end;
  background: #1e5a8a;
  color: #fff;
}
.assistant-msg--bot strong {
  color: #1e5a8a;
}
.assistant-msg--pending {
  opacity: .65;
  font-style: italic;
}
.assistant-msg--ai {
  border-color: #b8d4f0;
  box-shadow: 0 1px 4px rgba(30, 90, 138, .08);
}
.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 .85rem .65rem;
}
.assistant-suggestion-chip {
  border: 1px solid #c5d4e8;
  background: #fff;
  color: #1e5a8a;
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
}
.assistant-suggestion-chip:hover {
  background: #eef6ff;
}
.assistant-chat-form {
  display: flex;
  gap: .5rem;
  padding: .65rem .85rem;
  border-top: 1px solid #d4dde8;
  background: #fff;
}
.assistant-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d4dde8;
  border-radius: 6px;
  padding: .45rem .65rem;
  font-size: .84rem;
}
.assistant-chat-send {
  flex-shrink: 0;
}
.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;
}
.inbox-tools-cell.inbox-dashboard-panel {
  overflow: visible;
}
.inbox-tools-cell.inbox-dashboard-panel .inbox-panel-body {
  padding: .65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}
.inbox-layout--tools {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: .65rem;
  flex: 1;
  min-height: 20rem;
  width: 100%;
}
.inbox-tools-box {
  border: 1px solid #d4dde8;
  border-radius: 8px;
  background: #fff;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 20rem;
}
.inbox-tools-cell.inbox-dashboard-panel .inbox-sidebar,
.inbox-tools-cell.inbox-dashboard-panel .inbox-detail {
  min-height: 20rem;
}
.inbox-tools-cell .inbox-sidebar {
  flex: none;
  height: 100%;
}
.inbox-tools-cell .inbox-detail {
  flex: none;
  height: 100%;
}
.inbox-tools-cell .inbox-sidebar-header,
.inbox-folder-bar {
  padding: .55rem .65rem;
  flex-wrap: nowrap;
  gap: .35rem;
  border-bottom: 1px solid var(--border);
}
.inbox-tools-cell .inbox-folder-tab {
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 700;
}
.inbox-tools-cell .inbox-message-list {
  max-height: none;
  flex: 1;
  min-height: 0;
}
.inbox-tools-cell .inbox-message-item {
  padding: .6rem .65rem;
}
.inbox-tools-cell .inbox-item-top strong {
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
}
.inbox-tools-cell .inbox-item-subject {
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-tools-cell .inbox-item-preview {
  display: none;
}
}
.inbox-tools-cell .inbox-message-item.active {
  background: #eef6ff;
  border-left: 3px solid var(--accent);
  padding-left: calc(.65rem - 3px);
}
.inbox-tools-cell .inbox-message-item.unread .inbox-item-subject {
  color: #0f2d4a;
}
.inbox-tools-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.inbox-tools-toolbar h2 {
  flex: 1;
  min-width: 0;
}
.inbox-header-compose-btn {
  flex-shrink: 0;
  font-weight: 700;
  white-space: nowrap;
  padding: .45rem .85rem;
  box-shadow: 0 2px 8px rgba(30, 90, 138, .25);
}
.inbox-header-compose-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.inbox-tools-cell .inbox-detail-view,
.inbox-tools-cell .inbox-compose {
  padding: .75rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.inbox-tools-cell .inbox-detail-header h3,
.inbox-tools-cell .inbox-compose-title {
  font-size: .92rem;
  word-break: break-word;
}
.inbox-tools-cell .inbox-detail-meta {
  font-size: .75rem;
  margin-bottom: .65rem;
}
.inbox-tools-cell .inbox-detail-body {
  font-size: .84rem;
  flex: 1;
  min-height: 3rem;
  max-height: none;
  overflow-y: auto;
}
.inbox-tools-cell .inbox-detail-empty {
  padding: 1rem;
  font-size: .82rem;
}
.inbox-tools-cell .inbox-sidebar-header .btn[disabled],
.inbox-header-compose-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.inbox-tools-cell .inbox-compose .form-group {
  margin-bottom: .45rem;
}
.inbox-tools-cell .inbox-compose .form-group label {
  font-size: .75rem;
  margin-bottom: .2rem;
}
.inbox-tools-cell .inbox-compose .form-group input,
.inbox-tools-cell .inbox-compose .form-group select,
.inbox-tools-cell .inbox-compose .form-group textarea {
  font-size: .82rem;
  padding: .35rem .5rem;
  width: 100%;
}
.inbox-compose-hint {
  margin: .25rem 0 0;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.35;
}
.inbox-tools-cell .inbox-compose textarea {
  min-height: 4rem;
  resize: vertical;
}
.inbox-tools-cell .inbox-compose-actions {
  margin-top: .35rem;
}
#panelCommunication.tools-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}
#panelCommunication .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}
#panelCommunication .panel-header-accent h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
}
@media (max-width: 768px) {
  .comm-center-pane {
    min-height: auto;
  }
  .comm-center-pane--messages .inbox-layout,
  .comm-center-pane--messages .inbox-layout--dashboard,
  .comm-center-pane--email .mailbox-layout {
    min-height: auto;
  }
  .comm-center-pane--assistant .assistant-chat {
    min-height: 16rem;
  }
  .inbox-layout--dashboard {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  #groupCommunication .inbox-sidebar,
  #groupCommunication .inbox-detail,
  #groupCommunication .inbox-folder-nav {
    min-height: auto;
  }
  #groupCommunication .inbox-message-list {
    max-height: 14rem;
  }
  .inbox-layout--tools {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .inbox-tools-box {
    min-height: auto;
  }
  .inbox-tools-cell .inbox-sidebar {
    min-height: 12rem;
  }
  .inbox-tools-cell .inbox-detail {
    min-height: 14rem;
  }
  .inbox-tools-cell .inbox-message-list {
    max-height: 12rem;
  }
  .inbox-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .inbox-sidebar,
  .inbox-detail,
  .comm-center-pane--messages .inbox-folder-nav {
    min-height: auto;
  }
  .comm-center-pane--messages .inbox-folder-nav {
    max-height: 18rem;
  }
  .inbox-message-list {
    max-height: 14rem;
  }
}

.admin-table-groups .admin-seat-row td {
  background: #f8fafc;
  font-size: .82rem;
}

.modal-close-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  border: none;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  z-index: 2;
}
.modal-close-btn:hover {
  color: var(--text);
}
.modal-upgrade {
  width: min(720px, 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.upgrade-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.upgrade-modal-summary {
  padding: 2rem 1.75rem;
  background: linear-gradient(160deg, #0f2d4a, #1e5a8a);
  color: #fff;
}
.upgrade-modal-summary h2 {
  font-size: 1.25rem;
  margin: 0 0 .65rem;
  color: #fff;
}
.upgrade-modal-summary p {
  font-size: .88rem;
  opacity: .9;
  line-height: 1.45;
  margin: 0;
}
.upgrade-modal-price {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: .9rem;
}
.upgrade-modal-price strong {
  font-size: 1.35rem;
}
.upgrade-modal-note {
  margin-top: 1rem;
  font-size: .75rem;
  opacity: .75;
}
.upgrade-modal-form {
  padding: 1.75rem;
}
.upgrade-paddle-badge {
  margin-bottom: 1rem;
}
.quiz-category-card--locked {
  cursor: pointer;
  opacity: .75;
}
.quiz-category-card--locked:hover {
  opacity: .9;
  border-color: var(--accent);
}

.dashboard-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-header .btn-header-back {
  background: #fff;
  color: #0f2d4a;
  border: 1px solid #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.dashboard-header .btn-header-back:hover {
  background: #eef6ff;
  color: #1e5a8a;
  border-color: #fff;
}
.dashboard-header .btn-header-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}
.dashboard-header .btn-header-outline:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .8);
}
.trial-banner {
  background: rgba(255,255,255,.15);
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
}
.dashboard-main { padding: 2rem 0 2.5rem; }
.site-footer--dashboard {
  margin-top: 0;
}

/* Dashboard page title */
.dashboard-page-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  line-height: 1.15;
}

#viewDashboard.is-launcher-mode > .dashboard-main > .dashboard-group,
#viewDashboard:not(.is-launcher-mode) > .dashboard-main > .dashboard-group:has(> .main-panel.is-collapsed) {
  display: none;
}

#viewDashboard.active {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--dashboard-scene-mid, #174056);
}
#viewDashboard.active > .dashboard-main {
  position: relative;
  z-index: 1;
  flex: 1;
}
#viewDashboard.active > .site-footer {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--dashboard-scene-to, #123040) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-launcher-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 78% 0%, var(--dashboard-scene-glow, rgba(72, 168, 196, 0.46)), transparent 62%),
    radial-gradient(65% 48% at 8% 100%, var(--dashboard-scene-glow-2, rgba(30, 107, 138, 0.36)), transparent 58%),
    linear-gradient(160deg, var(--dashboard-scene-from, #1a5570) 0%, var(--dashboard-scene-mid, #174056) 46%, var(--dashboard-scene-to, #123040) 100%);
}

#viewDashboard.active .dashboard-page-title {
  color: #fff;
  text-shadow: 0 1px 14px rgba(8, 16, 28, 0.45);
}

#viewDashboard > .dashboard-header .container,
#viewDashboard > .dashboard-main.user-shell {
  width: min(1440px, 96vw);
}

#viewDashboard > .dashboard-header .hamburger-btn,
#viewDashboard > .dashboard-header .dashboard-header-admin-btn {
  display: none;
}

#viewDashboard > .dashboard-main.user-shell {
  --user-shell-width: 64rem;
  display: block;
}

#viewDashboard > .dashboard-main.user-shell > .dashboard-page-title {
  margin-bottom: 0.9rem;
}

#viewDashboard > .dashboard-main.user-shell > .dashboard-page-title {
  text-align: center;
}

#viewDashboard .user-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem 1rem;
  width: 100%;
  max-width: var(--user-shell-width);
  margin: 0 auto 1.4rem;
  padding: 0.5rem 0.9rem;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(8, 16, 28, 0.12);
}

#viewDashboard .user-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #243044;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

#viewDashboard .user-nav button:hover {
  background: #f4f7fb;
}

#viewDashboard .user-nav button.is-current {
  background: color-mix(in srgb, var(--accent, #1e5a8a) 11%, #fff);
  color: var(--accent-dark, #1e5a8a);
}

#viewDashboard .user-nav button.hidden {
  display: none;
}

#viewDashboard .user-main > .dashboard-group {
  width: 100%;
  max-width: var(--user-shell-width);
  margin-left: auto;
  margin-right: auto;
}

#viewDashboard .user-tabs {
  padding: 0.85rem 1.25rem 0;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

#viewDashboard .user-tabs-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#viewDashboard .user-tabs-row {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  margin: 0.75rem 0 -1px;
  overflow-x: auto;
  scrollbar-width: none;
}

#viewDashboard .user-tabs-row button {
  flex: 0 0 auto;
  margin: 0 0 -1px;
  padding: 0.5rem 1.1rem 0.45rem;
  border: 1px solid #dbe3ec;
  border-bottom-color: #d5dee8;
  border-radius: 9px 9px 0 0;
  background: #f7f9fb;
  color: #4b5568;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

#viewDashboard .user-tabs-row button:hover {
  background: #fff;
  color: var(--accent-dark, #1e5a8a);
}

#viewDashboard .user-tabs-row button.is-current {
  position: relative;
  z-index: 2;
  padding-top: 0.6rem;
  border-color: color-mix(in srgb, var(--accent, #1e5a8a) 30%, #d5dee8);
  border-top: 3px solid var(--accent-dark, #1e5a8a);
  border-bottom-color: #eef2f6;
  background: #eef2f6;
  color: var(--accent-dark, #1e5a8a);
  font-weight: 700;
}

#viewDashboard .user-section-title {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--accent-dark, #1e5a8a);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #1e5a8a) 7%, #fff);
  box-shadow: none;
  color: var(--accent-dark, #1e5a8a);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#viewDashboard .user-main > .user-tabs {
  width: 100%;
  max-width: var(--user-shell-width);
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(8, 16, 28, 0.2);
}

#viewDashboard .user-tabs-help {
  position: absolute;
  right: 0;
  display: inline-flex;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-body {
  background: #eef2f6;
}

#viewDashboard .user-main #panelVideos .video-lessons-grouped {
  --lesson-card-height: 3.4rem;
  --lesson-gap: 0.45rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}

#viewDashboard .user-main #panelVideos.sub-panel.is-current ul.tools-record-list--modern {
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--lesson-gap);
}

#viewDashboard .user-main #panelVideos.sub-panel.is-current ul.tools-record-list--modern li.dashboard-list-card {
  height: var(--lesson-card-height);
  min-height: 0;
}

#viewDashboard .user-main .sub-panel.is-current .games-column-heading,
#viewDashboard .user-main .sub-panel.is-current .video-lessons-category-title {
  border-bottom-color: #d5dee8;
}

#viewDashboard .user-tabs-help .section-help-btn {
  margin: 0;
}

#viewDashboard .user-main .dashboard-group .sub-panel.is-current {
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-body {
  margin: 0 0.9rem 0.9rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent, #1e5a8a) 30%, #d5dee8);
  border-radius: 0 12px 12px;
  background: #fff;
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list),
#viewDashboard .user-main .sub-panel.is-current .simsolution-grid,
#viewDashboard .user-main .sub-panel.is-current .video-lessons-grouped {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#viewDashboard .user-main .sub-panel.is-current .video-lessons-grouped ul.tools-record-list--modern {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-header .tools-create-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: auto;
  margin: 0;
  padding: 0;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-header .case-create-game-btn {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0.3rem 0.7rem 0.3rem 0.4rem;
  font-size: 0.78rem;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-header .case-create-game-icon {
  width: 1.1rem;
  height: 1.1rem;
}

#viewDashboard .user-main > .dashboard-group > .main-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

#viewDashboard .user-main > .dashboard-group > .main-panel > .panel-header-main {
  display: none;
}

#viewDashboard .user-main > .dashboard-group > .main-panel > .panel-body-main {
  padding: 0;
  background: transparent;
}

#viewDashboard .user-main .course-material-grid,
#viewDashboard .user-main .course-material-learn-row,
#viewDashboard .user-main .course-material-videos-column,
#viewDashboard .user-main .course-material-assessment-column,
#viewDashboard .user-main .tools-layout,
#viewDashboard .user-main .tools-row,
#viewDashboard .user-main .comm-center-split,
#viewDashboard .user-main .account-page-content {
  display: block;
  margin: 0;
  padding: 0;
}

#viewDashboard .user-main .dashboard-group .sub-panel {
  display: none;
}

#viewDashboard .user-main .dashboard-group .sub-panel.is-current {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #eef2f6;
  border: 1px solid color-mix(in srgb, var(--accent, #1e5a8a) 30%, #d5dee8);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 12px 32px rgba(8, 16, 28, 0.2);
  overflow: hidden;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-header:not(:has(> :not(h2))) {
  display: none;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-header {
  justify-content: flex-end;
  padding: 0.9rem 1.15rem 0;
  background: #eef2f6;
  border-bottom: 0;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-header > h2 {
  display: none;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-body {
  flex: 1 1 auto;
  margin: 0;
  padding: 1rem 1.15rem 1.2rem;
  border: 0;
  border-radius: 0 0 13px 13px;
  background: #eef2f6;
}

#viewDashboard .user-main .sub-panel.is-current .video-theme-block,
#viewDashboard .user-main .sub-panel.is-current .games-column-card {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#viewDashboard .user-main .sub-panel.is-current .games-create-btn-row {
  justify-content: flex-start;
  margin: 0 0 0.85rem;
}

#viewDashboard .user-main .sub-panel.is-current .games-get-more-card {
  width: 100%;
  margin-top: 0.5rem;
}

#viewDashboard .user-main .sub-panel.is-current .games-column-heading,
#viewDashboard .user-main .sub-panel.is-current .video-lessons-category-title {
  margin: 1rem 0 0.45rem;
  padding: 0 0 0.3rem;
  border: 0;
  border-bottom: 1px solid #e3e9f1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark, #1e5a8a);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#viewDashboard .user-main .sub-panel.is-current .video-lessons-section:first-child .video-lessons-category-title,
#viewDashboard .user-main .sub-panel.is-current .games-column-card:first-child .games-column-heading {
  margin-top: 0;
}

#viewDashboard .user-main .sub-panel.is-current .video-lessons-category-rule {
  display: none;
}

#viewDashboard .user-main .sub-panel.is-current .video-lessons-category-title {
  width: auto;
  margin-left: 0;
}

#viewDashboard .user-main .sub-panel.is-current .tools-create-btn-row {
  justify-content: flex-start;
  margin: 0 0 0.85rem;
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list),
#viewDashboard .user-main .sub-panel.is-current .simsolution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.45rem 0.7rem;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list) :is(li.dashboard-list-card, li > .dashboard-list-card),
#viewDashboard .user-main .sub-panel.is-current .simsolution-grid > .simsolution-tile {
  height: auto;
  min-height: 2.9rem;
  max-height: none;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 30, 50, 0.08);
  transform: none;
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list) :is(li.dashboard-list-card, li > .dashboard-list-card):hover,
#viewDashboard .user-main .sub-panel.is-current .simsolution-grid > .simsolution-tile:hover {
  border-color: color-mix(in srgb, var(--accent, #1e5a8a) 40%, #dbe3ec);
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 30, 50, 0.12);
  transform: none;
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list) .dashboard-list-card h4 {
  font-size: 0.9rem;
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list) .dashboard-list-card .video-progress-wrap {
  max-width: 15rem;
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list) > li {
  min-width: 0;
}

#viewDashboard .user-main ul.tools-record-list--modern > li.user-list-overflow {
  display: none;
}

#viewDashboard .user-main .user-list-more {
  display: block;
  margin: 0.55rem auto 0;
  padding: 0.35rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #d4dde8);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark, #1e5a8a);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

#viewDashboard .user-main .user-list-more:hover {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}

#viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern > .eval-rating-empty {
  grid-column: 1 / -1;
  padding: 1.6rem 1rem;
  border: 1px dashed #d3dce8;
  border-radius: 10px;
  color: #64748b;
}

#viewDashboard .user-main #panelMessages .inbox-layout--dashboard {
  --inbox-list-height: 26rem;
  grid-template-columns: 8.5rem 15rem minmax(0, 1fr);
  gap: 0.6rem;
}

#viewDashboard .user-main #panelMessages > .panel-body.panel-body-compact {
  padding: 1rem;
}

#viewDashboard .user-main #panelPersonalNotes .video-personal-notes-input {
  width: 100%;
  min-height: 16rem;
}

#viewDashboard .user-main > .dashboard-launcher,
#viewDashboard .user-main > .dashboard-group {
  display: none;
}

#viewDashboard .user-main > .dashboard-group.is-current {
  display: block;
}

#viewDashboard .user-main .dashboard-group-toggle,
#viewDashboard .user-main .main-panel-collapsed-preview {
  display: none;
}

@media (max-width: 860px) {
  #viewDashboard > .dashboard-main.user-shell {
    grid-template-columns: 1fr;
  }

  #viewDashboard .user-nav {
    gap: 0.25rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
  }

  #viewDashboard .user-nav button {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  #viewDashboard .user-main .sub-panel.is-current ul.tools-record-list--modern:not(.live-center-upcoming-list),
  #viewDashboard .user-main .sub-panel.is-current .simsolution-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #viewDashboard .user-tabs {
    padding: 0.65rem 0.6rem 0;
  }

  #viewDashboard .user-tabs-head {
    padding: 0 0.3rem;
  }

  #viewDashboard .user-tabs-row button {
    padding: 0.45rem 0.7rem 0.4rem;
    font-size: 0.84rem;
  }

  #viewDashboard .user-main #panelVideos .video-lessons-grouped {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--lesson-gap);
  }

  #viewDashboard .user-main #panelMessages .inbox-layout--dashboard {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  #viewDashboard .user-main .sub-panel.is-current > .panel-body {
    padding: 1rem;
  }
}

.dashboard-launcher {
  width: 88%;
  max-width: 88%;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}
.dashboard-launcher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.4rem;
  align-items: stretch;
}
.dashboard-launcher-card--account {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.dashboard-launcher-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-dark, var(--accent)) 22%, transparent),
    0 16px 40px rgba(8, 16, 28, 0.28);
}
@media (prefers-reduced-transparency: reduce) {
  .dashboard-launcher-card {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.dashboard-launcher-card-head {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: .95rem 1.15rem;
  border: none;
  border-bottom: 2px solid var(--theme-header-border, #0a2540);
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 100%));
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.dashboard-launcher-card-head:hover,
.dashboard-launcher-card-head:focus-visible {
  outline: none;
  filter: brightness(1.08);
}
.dashboard-launcher-links {
  list-style: none;
  margin: 0;
  padding: .7rem .75rem .85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: color-mix(in srgb, var(--panel-main-bg, #e8eef5) 58%, transparent);
}
.dashboard-launcher-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.dashboard-launcher-stats {
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 45, 74, 0.06);
  overflow: hidden;
}
.dashboard-launcher-stats-title {
  margin: 0;
  padding: .55rem .7rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent-dark, #143d5c);
  border-bottom: 1px solid #e6edf5;
}
.dashboard-launcher-stats-list {
  margin: 0;
}
.dashboard-launcher-stats-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.05rem;
  align-items: center;
  padding: .38rem .7rem .38rem 1.05rem;
  border-top: 1px solid #eef2f6;
}
.dashboard-launcher-stats-list > div:nth-child(even) {
  background: #f9fbfd;
}
.dashboard-launcher-stats-list dt {
  margin: 0;
  color: #64748b;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dashboard-launcher-stats-list dd {
  margin: 0;
  padding-left: .85rem;
  font-weight: 400;
  font-size: .82rem;
  color: var(--accent-dark, #143d5c);
  text-align: right;
}
.dashboard-launcher-link {
  appearance: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  margin: 0;
  padding: .55rem .7rem;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 45, 74, 0.06);
  color: var(--accent-dark, #143d5c);
  font-size: .88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.dashboard-launcher-link:hover,
.dashboard-launcher-link:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-dark, var(--accent)) 45%, #cfd9e6);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-dark, var(--accent)) 14%, rgba(15, 45, 74, 0.08));
}
.dashboard-launcher-link .main-panel-collapsed-chip-icon {
  flex-shrink: 0;
  color: var(--accent-dark, #143d5c);
}

/* Dashboard groups */
.dashboard-group {
  margin-bottom: 2rem;
}
.dashboard-group:last-child {
  margin-bottom: 0;
}

/* Main panels (Course Material, Tools) */
.main-panel {
  background: var(--white);
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 72%, #0b1220);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-dark, var(--accent)) 18%, transparent),
    0 8px 32px color-mix(in srgb, var(--accent-dark, var(--accent)) 16%, rgba(15, 45, 74, 0.1));
  margin-bottom: 0;
}
.panel-header-main {
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 100%));
  border-bottom: 2px solid var(--theme-header-border, #0a2540);
  padding: .95rem 1.35rem;
}
.panel-header-main h2 {
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: none;
  padding: 0;
  margin: 0;
  line-height: 1.2;
}
.panel-body-main {
  padding: 1.55rem 1.55rem 2.1rem;
  background: var(--panel-main-bg, #e8eef5);
}

/* Sub-panels inside main panels */
.dashboard-group .sub-panel {
  --sub-panel-bar-inset-x: 1.05rem;
  --sub-panel-card-inset-x: 2.15rem;
  background: var(--white);
  border: 1px solid #cfd9e6;
  box-shadow: 0 2px 10px rgba(15, 45, 74, 0.07);
  margin-bottom: 0;
}
.dashboard-group .sub-panel .panel-header-accent {
  background: var(--panel-sub-header-bg, linear-gradient(135deg, #f7fafc 0%, #eef3f9 100%));
  border-bottom: 1px solid var(--panel-sub-header-border, #d4dde8);
}
.sub-panel .panel-header {
  padding: .75rem 1rem;
}
.sub-panel .panel-header-accent h2 {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .92rem;
  padding: .2rem 0 .2rem .6rem;
  border-left-width: 3px;
}
.section-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: 2px solid var(--accent-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}
.section-help-btn:hover,
.section-help-btn:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  outline: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
}
.games-column-heading,
.video-theme-heading {
  gap: .35rem;
}
.games-column-heading .section-help-btn,
.video-theme-heading .section-help-btn {
  margin-left: auto;
  border-color: color-mix(in srgb, var(--accent-dark) 88%, #0f172a);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}
.games-column-heading .section-help-btn:hover,
.games-column-heading .section-help-btn:focus-visible,
.video-theme-heading .section-help-btn:hover,
.video-theme-heading .section-help-btn:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.panel-header-meta {
  color: var(--muted);
  font-size: .78rem;
}

/* Course Material layout */
#groupCourseMaterial .panel-body-main {
  padding: 1.05rem 1.1rem 1.2rem;
}
.course-material-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.45rem;
  align-items: stretch;
}
.course-material-learn-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: stretch;
  min-width: 0;
  --course-material-list-card-body-gap: .06rem;
  --course-material-list-card-progress-h: 6px;
  --course-material-list-card-pad-top: .44rem;
  --course-material-list-card-pad-bottom: .34rem;
  --course-material-list-card-h: calc(var(--course-material-list-card-pad-top) + var(--course-material-list-card-pad-bottom) + max(28px, calc(.78rem * 1.25 + var(--course-material-list-card-body-gap) + var(--course-material-list-card-progress-h))));
}
.course-material-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  min-width: 0;
}
.course-material-top-row--triple {
  grid-template-columns: minmax(0, 0.78fr) minmax(10.5rem, 0.62fr) minmax(0, 0.72fr);
}
.course-material-videos .dashboard-list-card-body,
.course-material-assessment-column .quiz-list-compact .dashboard-list-card-body,
.course-material-assessment-column .exam-list-compact .dashboard-list-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--course-material-list-card-body-gap);
  min-width: 0;
}
.course-material-videos .dashboard-list-card-body h4,
.course-material-assessment-column .dashboard-list-card-body h4 {
  margin: 0;
  font-size: .78rem;
  line-height: 1.25;
  font-weight: 600;
}
.course-material-videos .dashboard-list-card-sub,
.course-material-assessment-column .dashboard-list-card-sub {
  margin: 0;
  padding: 0;
  width: 100%;
}
.course-material-videos .dashboard-list-card-sub .video-progress-wrap,
.course-material-assessment-column .dashboard-list-card-sub .video-progress-wrap {
  margin-top: 0;
  gap: .2rem;
}
.course-material-videos .video-list-compact .video-progress-bar,
.course-material-assessment-column .video-progress-bar {
  height: var(--course-material-list-card-progress-h);
}
.course-material-videos .video-list-compact .video-list-item,
.course-material-assessment-column .quiz-list-compact .quiz-list-item,
.course-material-assessment-column .exam-list-compact .exam-list-item {
  height: var(--course-material-list-card-h);
  min-height: var(--course-material-list-card-h);
  max-height: var(--course-material-list-card-h);
  padding: var(--course-material-list-card-pad-top) 1.55rem var(--course-material-list-card-pad-bottom) .45rem;
  align-items: center;
  box-sizing: border-box;
}
.video-lessons-grouped {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
}
.video-lessons-section {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.video-lessons-category-title {
  margin: 0;
  padding: 0;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  line-height: 1.2;
}
.video-lessons-category-rule {
  height: 1px;
  background: color-mix(in srgb, var(--accent) 28%, #d4dde8);
  margin: 0;
  width: 100%;
}
.course-material-videos .video-lessons-category-title,
.course-material-videos .video-lessons-category-rule {
  margin-left: -.45rem;
  width: calc(100% + .45rem);
}
.course-material-videos .video-list-compact .video-lesson-icon-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0;
}
.course-material-videos .video-list-compact .video-lesson-icon-num {
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.course-material-learn-row > .course-material-videos-column,
.course-material-learn-row > .course-material-videos,
.course-material-top-row--triple > .course-material-videos,
.course-material-top-row--triple > .course-material-games {
  --sub-panel-card-inset-x: 1.85rem;
}
.course-material-videos-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  min-height: 0;
}
.course-material-videos-column > .panel {
  flex: 0 0 auto;
}
.course-material-videos-column > .course-material-videos {
  flex: 0 0 auto;
}
.course-material-videos-column > .course-material-notes {
  flex: 1 1 auto;
  min-height: 0;
}
.course-material-assessment-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  height: auto;
}
.course-material-learn-row > .panel,
.course-material-learn-row > .course-material-videos-column > .panel,
.course-material-top-row > .panel,
.course-material-assessment-column > .panel {
  --sub-panel-bar-inset-x: 1.05rem;
  --sub-panel-card-inset-x: 2rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.course-material-assessment-column > .course-material-games {
  --sub-panel-card-inset-x: 1.65rem;
}
.course-material-learn-row > .panel > .panel-body,
.course-material-learn-row > .course-material-videos-column > .panel > .panel-body,
.course-material-top-row > .panel > .panel-body,
.course-material-assessment-column > .panel > .panel-body {
  flex: 1;
  min-height: 0;
  overflow: visible;
}
.course-material-videos-column > .course-material-videos > .panel-body {
  flex: 0 0 auto;
}
.course-material-videos-column > .course-material-notes > .panel-body {
  flex: 1 1 auto;
  min-height: 0;
}
.course-material-games {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.course-material-games-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-material-games .panel-header-accent {
  background: transparent;
  border-bottom: 1px solid #c5d0dc;
}
.games-panel-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(8.25rem, .42fr);
  gap: .85rem 1rem;
  align-items: start;
  width: 100%;
}
.games-panel-columns--dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem;
  align-items: start;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
}
.games-panel-stack {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.games-panel-section {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
}
.games-panel-section--custom {
  gap: .45rem;
}
.games-panel-section > .games-column-heading {
  flex: 0 0 auto;
}
.games-create-btn-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: .55rem;
  flex-shrink: 0;
}
.games-create-btn-row--top {
  margin: 0 0 .15rem;
}
.games-create-btn-row--bottom {
  margin: .15rem 0 0;
}
.games-create-btn-row--dual {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  gap: .5rem;
}
#panelCases .games-create-btn-row--dual .case-create-game-btn {
  width: 100%;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  gap: .35rem;
  padding: .52rem .7rem;
  font-size: .68rem;
  line-height: 1.15;
}
#panelCases .games-create-btn-row--dual .case-create-game-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}
#panelCases .games-create-btn-row--dual .case-create-game-icon svg {
  width: 12px;
  height: 12px;
}
.games-panel-stack--elearning {
  gap: .85rem;
}
.games-panel-stack--elearning .games-panel-columns--dual {
  gap: 1rem 1.15rem;
}
.course-material-grid .games-create-btn-row--top .case-create-game-btn,
.course-material-grid .games-create-btn-row--bottom .case-create-game-btn,
.course-material-top-row .games-create-btn-row--top .case-create-game-btn,
.course-material-top-row .games-create-btn-row--bottom .case-create-game-btn,
.course-material-assessment-column .games-create-btn-row--top .case-create-game-btn,
.course-material-assessment-column .games-create-btn-row--bottom .case-create-game-btn {
  width: auto;
  max-width: none;
}
.course-material-grid .games-panel-stack .games-column-heading,
.course-material-top-row .games-panel-stack .games-column-heading,
.course-material-assessment-column .games-panel-stack .games-column-heading {
  margin: .1rem 0 0;
}
.course-material-grid .games-panel-stack .games-column-card,
.course-material-top-row .games-panel-stack .games-column-card,
.course-material-assessment-column .games-panel-stack .games-column-card {
  margin-bottom: 0;
}
#panelCases .games-create-btn-row--custom .case-create-game-btn {
  width: calc((100% - .35rem) / 2);
  max-width: calc((100% - .35rem) / 2);
  margin: 0;
  gap: .3rem;
  padding: .42rem .55rem;
  font-size: .68rem;
  border-radius: 999px;
  line-height: 1.15;
}
#panelCases .games-create-btn-row--custom .case-create-game-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}
#panelCases .games-create-btn-row--custom .case-create-game-icon svg {
  width: 12px;
  height: 12px;
}
.course-material-grid .games-create-btn .case-create-game-icon,
.course-material-top-row .games-create-btn .case-create-game-icon,
.course-material-assessment-column .games-create-btn .case-create-game-icon {
  width: 24px;
  height: 24px;
}
.course-material-grid .games-create-btn .case-create-game-icon svg,
.course-material-top-row .games-create-btn .case-create-game-icon svg,
.course-material-assessment-column .games-create-btn .case-create-game-icon svg {
  width: 12px;
  height: 12px;
}
.course-material-grid .course-material-games-body,
.course-material-grid .games-theme-block,
.course-material-top-row .course-material-games-body,
.course-material-top-row .games-theme-block,
.course-material-assessment-column .course-material-games-body,
.course-material-assessment-column .games-theme-block {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.course-material-assessment-column .games-panel-section {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.games-column-heading {
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: .16rem .42rem;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, #c5d4e0);
  border-radius: 5px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: none;
  box-shadow: none;
  gap: .3rem;
}
.games-column-card {
  --list-frame-pad: .55rem;
  --list-row-h: 2.5rem;
  --list-row-gap: .5rem;
  --list-scroll-rows: 5;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #d4dde8);
  border-radius: 10px;
  background: transparent;
  padding: var(--list-frame-pad);
  box-shadow: none;
  min-width: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.games-column-card--with-heading {
  --list-frame-heading-slot: calc(1.55rem + .35rem);
}
#panelEval .games-column-card--with-heading {
  border: none;
  box-shadow: none;
  background: transparent;
}
#panelEval .games-column-card--with-heading > .games-column-heading {
  border: none;
  padding-left: 0;
  padding-right: 0;
  background: none;
  box-shadow: none;
}
.games-column-card--custom {
  --list-scroll-rows: 4;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
}
.games-column-card > .games-column-heading {
  flex: 0 0 auto;
  margin: 0 0 .35rem;
}
.games-column-card:has(> .games-column-heading):has(> .list-scroll-cap) {
  height: calc(var(--list-scroll-frame-h) + (2 * var(--list-frame-pad)) + var(--list-frame-heading-slot, 0px));
  min-height: calc(var(--list-scroll-frame-h) + (2 * var(--list-frame-pad)) + var(--list-frame-heading-slot, 0px));
  max-height: calc(var(--list-scroll-frame-h) + (2 * var(--list-frame-pad)) + var(--list-frame-heading-slot, 0px));
}
.games-column-card:has(> .list-scroll-cap):not(:has(> .games-column-heading)) {
  height: calc(var(--list-scroll-frame-h) + (2 * var(--list-frame-pad)));
  min-height: calc(var(--list-scroll-frame-h) + (2 * var(--list-frame-pad)));
  max-height: calc(var(--list-scroll-frame-h) + (2 * var(--list-frame-pad)));
}
.games-column-card > .list-scroll-cap {
  flex: 1 1 auto;
  min-height: 0;
}
.games-column-card .case-games-list {
  gap: .35rem;
}
.games-column-card .case-my-games-empty {
  border: none;
  background: transparent;
  padding: .55rem .35rem;
}
/* Cap visible rows; scroll when longer; keep frame height for fewer rows */
.list-scroll-cap {
  --list-scroll-rows: 5;
  --list-row-h: 2.35rem;
  --list-row-gap: .35rem;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
  height: var(--list-scroll-frame-h);
  min-height: var(--list-scroll-frame-h);
  max-height: var(--list-scroll-frame-h);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 42%, #c5d3e0) transparent;
  flex: 0 0 auto;
}
.list-scroll-cap--4 {
  --list-scroll-rows: 4;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
}
.list-scroll-cap > .eval-rating-item--line,
.list-scroll-cap > .case-game-list-item {
  flex: 0 0 var(--list-row-h);
  min-height: var(--list-row-h);
}
.list-scroll-cap > .eval-rating-item--line .dashboard-list-card--tools-record,
.list-scroll-cap > .case-game-list-item .case-game-list-shell {
  min-height: 100%;
  box-sizing: border-box;
}
.list-scroll-cap > .eval-rating-empty {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#panelCases .games-column-heading {
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  margin: .1rem 0 0;
}
#panelCases .games-column-card--list-only {
  height: auto;
  min-height: 0;
  max-height: none;
}
#panelCases .games-column-card--list-only > .list-scroll-cap {
  height: auto;
  min-height: 0;
  max-height: var(--list-scroll-frame-h);
  overflow-y: auto;
}
#panelCases .course-material-games-body,
#panelCases .games-theme-block,
#panelCases .games-panel-stack,
#panelCases .games-panel-stack--elearning {
  flex: 0 0 auto;
}
#panelCases .games-panel-stack--elearning .games-panel-section {
  min-height: 0;
}
#panelCases .games-column-card:has(> .list-scroll-cap):not(:has(> .games-column-heading)) {
  height: auto;
  min-height: 0;
  max-height: none;
}
#panelCases .games-column-card,
#panelCases .case-games-list.list-scroll-cap {
  --list-row-h: 2.5rem;
  --list-row-gap: .5rem;
  --list-scroll-rows: 5;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
}
#panelCases .games-column-card--custom,
#panelCases #caseListMyGames.list-scroll-cap,
#panelCases #caseListActiveFolder.list-scroll-cap {
  --list-scroll-rows: 4;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
}
#panelCases .games-healthcare-folders,
#panelCases .games-classic-lists {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
}
#panelCases .games-healthcare-folders[hidden],
#panelCases .games-classic-lists[hidden] {
  display: none;
}
#panelCases .games-folder-list {
  margin: 0;
  padding: 0;
  width: 100%;
  max-height: none;
  overflow: visible;
}
#panelCases .games-folder-item {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
#panelCases .games-folder-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: .4rem;
  padding: .4rem .5rem .4rem .38rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
#panelCases .games-folder-card .dashboard-list-card-icon.games-folder-icon,
#panelCases .games-get-more-card .dashboard-list-card-icon.games-folder-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
#panelCases .games-folder-icon-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
#panelCases .games-folder-card .dashboard-list-card-icon.games-folder-icon svg,
#panelCases .games-get-more-card .dashboard-list-card-icon.games-folder-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
#panelCases .games-folder-card .dashboard-list-card-title,
#panelCases .games-get-more-card .dashboard-list-card-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.25;
}
#panelCases .games-folder-card.is-selected {
  border-color: color-mix(in srgb, var(--accent) 42%, #c5d3e0);
  background: var(--list-hover-fill, color-mix(in srgb, var(--accent) 12%, #fff));
}
#panelCases .games-folder-list.tools-record-list--modern .games-folder-card:hover,
#panelCases .games-folder-list.tools-record-list--modern .games-folder-card.is-selected:hover,
#panelCases .games-get-more-card:hover,
#panelCases .games-placeholder-card:hover {
  transform: none;
  box-shadow: none;
}
#panelCases .games-folder-panel {
  margin: 0 0 .15rem .7rem;
  padding: .28rem 0 .1rem;
  min-width: 0;
}
#panelCases .games-folder-cases {
  width: 100%;
}
#panelCases .games-folder-cases:not(.is-scrolling) {
  overflow: hidden;
}
#panelCases .games-placeholder-card {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 4%, #fff);
  border-style: dashed;
}
#panelCases .games-placeholder-card[disabled] {
  cursor: default;
  opacity: .72;
}
#panelCases .games-placeholder-card .dashboard-list-card-title {
  margin: 0;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
}
#panelCases .games-get-more-card {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  margin: .15rem 0 0;
  padding: .4rem .5rem .4rem .38rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #d8e0ea);
}
#panelCases .games-get-more-card:hover {
  background: var(--list-hover-fill, color-mix(in srgb, var(--accent) 12%, #fff));
  border-color: color-mix(in srgb, var(--accent) 42%, #c5d3e0);
}
.get-more-games-modal .get-more-games-body,
.get-more-games-modal .get-more-games-success {
  text-align: left;
}
.get-more-games-modal .form-group {
  margin: 0 0 .85rem;
  text-align: left;
}
.get-more-games-modal .form-group label {
  display: block;
  margin: 0 0 .28rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b;
}
.get-more-games-optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
}
.get-more-games-modal select,
.get-more-games-modal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4dde8;
  border-radius: 10px;
  padding: .55rem .7rem;
  font: inherit;
  font-size: .88rem;
  color: var(--text);
  background: #fff;
}
.get-more-games-modal textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.get-more-games-success-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark, var(--accent));
}
.admin-game-requests-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.admin-game-request-card {
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  padding: .7rem .8rem;
  background: #fff;
}
.admin-game-request-card h3 {
  margin: 0 0 .2rem;
  font-size: .88rem;
}
.admin-game-request-card p {
  margin: 0;
  font-size: .78rem;
  color: #64748b;
  line-height: 1.4;
}
.admin-game-request-card .admin-game-request-actions {
  margin-top: .55rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.admin-deliver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem .8rem;
  margin-top: .35rem;
}
.admin-deliver-grid .admin-deliver-full {
  grid-column: 1 / -1;
}
#groupTools .games-column-card,
#groupTools .list-scroll-cap,
#panelEval .games-column-card,
#panelEval .list-scroll-cap,
#panelFeedback .games-column-card,
#panelFeedback .list-scroll-cap,
#panelBriefing .games-column-card,
#panelBriefing .list-scroll-cap {
  --list-row-h: 2.5rem;
  --list-row-gap: .5rem;
  --list-scroll-rows: 5;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
}
.games-column-card:has(.tools-record-list--modern) {
  --list-row-h: 2.75rem;
  --list-row-gap: .32rem;
  --list-frame-pad: 0;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
  border: none;
  padding: 0;
  background: transparent;
}
.games-panel-column--create {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  gap: .4rem;
}
.games-panel-column--create::before {
  content: '';
  display: block;
  height: 1.55rem;
  flex-shrink: 0;
}
.games-panel-column--create .case-create-game-btn--tall {
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(3 * 2.85rem + 2 * .4rem);
  margin-bottom: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  padding: 1rem .7rem;
  text-align: center;
  border-radius: 999px;
}
.games-panel-column--create .case-create-game-label {
  display: block;
  line-height: 1.25;
  max-width: 8.5rem;
}
.games-theme-block {
  height: auto;
  display: flex;
  flex-direction: column;
}
.elearning-theme-block {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#panelBriefing .elearning-theme-block > .games-column-card,
#panelEval .elearning-theme-block > .games-column-card,
#panelFeedback .elearning-theme-block > .games-column-card {
  margin-top: 0;
}
.elearning-theme-block .case-create-game-btn {
  margin-bottom: .65rem;
}
.games-theme-block .games-create-btn-row .case-create-game-btn {
  margin-bottom: 0;
}
.elearning-theme-block .exam-footer-actions {
  margin-top: .5rem;
}
.case-create-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  max-width: 100%;
  padding: .74rem 1.1rem;
  border: 1.5px solid color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 62%, #fff);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent-dark, #143d5c) 0%, var(--accent, #1e5a8a) 100%);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 2px 8px color-mix(in srgb, var(--accent-dark, #143d5c) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: border-color .2s, box-shadow .2s, transform .2s, filter .2s, background .2s;
}
.case-create-game-btn:hover {
  filter: brightness(1.06);
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 78%, #fff);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-dark, #143d5c) 92%, #000) 0%, var(--accent-dark, #143d5c) 55%, var(--accent, #1e5a8a) 100%);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--accent-dark, #143d5c) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}
body[class*="theme-"] .case-create-game-btn {
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 62%, #fff);
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow:
    0 2px 8px color-mix(in srgb, var(--accent-dark) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}
body[class*="theme-"] .case-create-game-btn:hover {
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 78%, #fff);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-dark) 92%, #000) 0%, var(--accent-dark) 55%, var(--accent) 100%);
  filter: brightness(1.06);
}
.case-create-game-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  flex-shrink: 0;
}
.case-create-game-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.case-my-games-empty {
  list-style: none;
  margin: 0;
  padding: .75rem .65rem;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, #d4dde8);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbfd 0%, #f0f9ff 100%);
}
.elearning-theme-block .dashboard-list-card,
.elearning-theme-block .dashboard-list-card--tools-record,
.elearning-theme-block .case-game-list-shell,
.elearning-theme-block .simsolution-tile,
.games-theme-block .dashboard-list-card,
.games-theme-block .dashboard-list-card--tools-record,
.games-theme-block .case-game-list-shell {
  border-color: var(--dashboard-list-card-border);
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
}
.games-theme-block .case-card-btn-icon-only:hover,
.elearning-theme-block .case-card-btn-icon-only:hover,
.elearning-theme-block .quiz-card-btn-icon-only:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #f0f9ff;
}
.elearning-theme-block .quiz-list-item.locked .dashboard-list-card-icon,
.elearning-theme-block .exam-list-item.locked .dashboard-list-card-icon {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  color: #f8fafc;
  box-shadow: none;
}
.elearning-theme-block .quiz-list-item.done {
  border-color: var(--success);
}
.elearning-theme-block .exam-list-item.passed {
  border-color: var(--success);
}
.elearning-theme-block .quiz-list-item.in-progress,
.elearning-theme-block .exam-list-item.in-progress {
  border-color: color-mix(in srgb, var(--accent) 42%, #d4dde8);
}
.case-games-list .video-list-item.case-game-item.dashboard-list-card {
  align-items: center;
  margin: 0;
  padding: .6rem .75rem;
  padding-right: 2.35rem;
  transform: none;
}
.case-games-list .video-list-item.case-game-item--my.dashboard-list-card {
  padding-right: 5.85rem;
}
.case-games-list .video-list-item.case-game-item.dashboard-list-card:hover,
.case-games-list .video-list-item.case-game-item--my.dashboard-list-card:hover {
  margin: 0;
  padding: .6rem .75rem;
  padding-right: 2.35rem;
  transform: translateY(-3px);
}
.case-games-list .video-list-item.case-game-item--my.dashboard-list-card:hover {
  padding-right: 5.85rem;
}
.case-games-list .dashboard-list-card-icon.case-lesson-icon {
  width: 34px;
  height: 34px;
  margin-top: 0;
}
.case-games-list .dashboard-list-card-icon.case-lesson-icon .case-lesson-icon-main svg {
  width: 16px;
  height: 16px;
}
.case-games-list .case-card-side-actions {
  position: absolute;
  top: 0;
  right: .45rem;
  bottom: 0;
  transform: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  z-index: 2;
  pointer-events: none;
}
.case-games-list .case-card-side-actions .case-card-btn-icon-only {
  pointer-events: auto;
}
.case-games-list {
  gap: .4rem;
}
.course-material-grid > .panel,
.course-material-learn-row > .panel,
.course-material-learn-row > .course-material-videos-column > .panel,
.course-material-top-row > .panel,
.course-material-assessment-column > .panel {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.course-material-grid > .panel > .panel-body,
.course-material-learn-row > .panel > .panel-body,
.course-material-learn-row > .course-material-videos-column > .panel > .panel-body,
.course-material-top-row > .panel > .panel-body,
.course-material-assessment-column > .panel > .panel-body {
  flex: 1;
}
.course-material-grid--no-videos {
  grid-template-columns: 1fr;
}
.course-material-videos {
  display: flex;
  flex-direction: column;
  height: auto;
  margin-bottom: 0;
}
.course-material-notes {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
}
.course-material-videos-body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.course-material-notes-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.course-material-notes .elearning-theme-block {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}
.course-material-notes .video-personal-notes-input {
  flex: 1 1 auto;
  min-height: 6.5rem;
  max-height: none;
  height: 100%;
  resize: none;
}
.elearning-theme-block .video-personal-notes-input::placeholder {
  color: var(--muted);
}
.elearning-theme-block .video-personal-notes-input {
  display: block;
  width: 100%;
  min-height: 6.5rem;
  margin: 0;
  padding: .5rem .55rem;
  border: 1px solid var(--dashboard-list-card-border);
  border-radius: 10px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
  color: var(--text);
  font: inherit;
  font-size: .78rem;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.elearning-theme-block .video-personal-notes-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.video-lessons-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .85rem 1rem;
  align-items: stretch;
  width: 100%;
}
.video-lessons-columns--single {
  grid-template-columns: minmax(0, 1fr);
}
.video-lessons-column {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}
.video-theme-block {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  flex: 1;
}
.video-theme-heading {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 .4rem;
  padding: .16rem .42rem;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, #c5d4e0);
  border-radius: 5px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: none;
  box-shadow: none;
  text-shadow: none;
}
.video-theme-block .video-list-compact {
  gap: .5rem;
  align-items: stretch;
  width: 100%;
}
.course-material-videos .panel-body-compact,
.course-material-notes .panel-body-compact,
.course-material-games .panel-body-compact,
.course-material-quizzes .panel-body-compact,
.course-material-exam .panel-body-compact,
#groupTools .sub-panel .panel-body-compact,
#groupIncidentEvaluations .sub-panel .panel-body-compact,
.dashboard-group .sub-panel > .panel-body.panel-body-compact {
  padding-top: .85rem;
  padding-bottom: .85rem;
  padding-left: var(--sub-panel-card-inset-x, 2.15rem);
  padding-right: var(--sub-panel-card-inset-x, 2.15rem);
}
.course-material-videos .panel-body-compact,
.course-material-notes .panel-body-compact,
.course-material-games .panel-body-compact,
.course-material-quizzes .panel-body-compact,
.course-material-exam .panel-body-compact,
#groupTools .sub-panel .panel-body-compact,
#groupIncidentEvaluations .sub-panel .panel-body-compact {
  padding-top: .7rem;
  padding-bottom: .75rem;
}
.course-material-videos .panel-header-accent,
.course-material-notes .panel-header-accent,
.course-material-games .panel-header-accent,
.course-material-quizzes .panel-header-accent,
.course-material-exam .panel-header-accent,
#groupTools .sub-panel .panel-header-accent,
#groupIncidentEvaluations .sub-panel .panel-header-accent,
#panelVideos.course-material-videos > .panel-header,
#panelPersonalNotes.course-material-notes > .panel-header,
#panelCases.course-material-games > .panel-header,
#panelQuizzes.course-material-quizzes > .panel-header,
#panelExam.course-material-exam > .panel-header,
#panelEval > .panel-header,
#panelFeedback > .panel-header,
#panelBriefing > .panel-header,
#panelSimSolution > .panel-header {
  padding: .7rem 0 .65rem;
}
.course-material-videos .panel-header-accent h2,
.course-material-notes .panel-header-accent h2,
.course-material-games .panel-header-accent h2,
.course-material-quizzes .panel-header-accent h2,
.course-material-exam .panel-header-accent h2,
#groupTools .sub-panel .panel-header-accent > h2,
#groupIncidentEvaluations .sub-panel .panel-header-accent > h2,
#panelVideos.course-material-videos > .panel-header h2,
#panelPersonalNotes.course-material-notes > .panel-header h2,
#panelCases.course-material-games > .panel-header h2,
#panelQuizzes.course-material-quizzes > .panel-header h2,
#panelExam.course-material-exam > .panel-header h2,
#panelEval > .panel-header h2,
#panelFeedback > .panel-header h2,
#panelBriefing > .panel-header h2,
#panelSimSolution > .panel-header h2 {
  display: block;
  width: auto;
  box-sizing: border-box;
  margin: 0 var(--sub-panel-bar-inset-x, 1.05rem);
  padding: .5rem .65rem .55rem;
  border-left: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dashboard-pill-text);
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
  text-shadow: none;
}
.course-material-videos .panel-header-accent h2[data-section-help],
.course-material-notes .panel-header-accent h2[data-section-help],
.course-material-games .panel-header-accent h2[data-section-help],
.course-material-quizzes .panel-header-accent h2[data-section-help],
.course-material-exam .panel-header-accent h2[data-section-help],
#groupTools .sub-panel .panel-header-accent > h2[data-section-help],
#groupIncidentEvaluations .sub-panel .panel-header-accent > h2[data-section-help],
#panelVideos.course-material-videos > .panel-header h2[data-section-help],
#panelPersonalNotes.course-material-notes > .panel-header h2[data-section-help],
#panelCases.course-material-games > .panel-header h2[data-section-help],
#panelQuizzes.course-material-quizzes > .panel-header h2[data-section-help],
#panelExam.course-material-exam > .panel-header h2[data-section-help],
#panelEval > .panel-header h2[data-section-help],
#panelFeedback > .panel-header h2[data-section-help],
#panelBriefing > .panel-header h2[data-section-help],
#panelSimSolution > .panel-header h2[data-section-help] {
  display: flex;
  align-items: center;
  width: calc(100% - (2 * var(--sub-panel-bar-inset-x, 1.05rem)));
  padding-right: .5rem;
}
.panel-header-main h2[data-section-help] {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.panel-header-main h2[data-section-help] .section-help-btn {
  border-color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12), 0 1px 4px rgba(15, 23, 42, .16);
}
.panel-header-main h2[data-section-help] .section-help-btn:hover,
.panel-header-main h2[data-section-help] .section-help-btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}
.panel-header-accent h2[data-section-help] .section-help-btn {
  border-color: #fff;
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .22);
}
.panel-header-accent h2[data-section-help] .section-help-btn:hover,
.panel-header-accent h2[data-section-help] .section-help-btn:focus-visible {
  background: #f8fafc;
  border-color: #fff;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .24);
}
.inbox-dashboard-panel .comm-center-pane .panel-header-accent {
  padding: .55rem .75rem .5rem;
  background: transparent;
  border-bottom: none;
}
.inbox-dashboard-panel .comm-center-pane .panel-header-accent h2 {
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: .5rem .65rem .55rem;
  border-left: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  box-shadow: 0 2px 6px var(--thumb-shadow, rgba(30, 107, 138, .18));
  text-shadow: none;
}
#groupCommunication .comm-center-pane--assistant .panel-header-accent h2 {
  width: 100%;
}
#groupCommunication .comm-center-pane-header {
  align-items: center;
  gap: .65rem;
}
#groupCommunication .comm-center-pane-header h2 {
  flex: 1 1 auto;
  min-width: 0;
}
#groupCommunication .comm-center-pane-header .inbox-header-compose-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--accent-dark);
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
#groupCommunication .comm-center-pane-header .inbox-header-compose-btn:hover {
  background: color-mix(in srgb, var(--prof-heading, var(--accent-light)) 12%, #fff);
  color: var(--accent-dark);
}
.course-material-videos,
.course-material-notes,
.course-material-games {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.course-material-videos .panel-header,
.course-material-notes .panel-header,
.course-material-games .panel-header,
.course-material-quizzes .panel-header,
.course-material-exam .panel-header {
  display: block;
  width: 100%;
  padding: 0;
}
.course-material-videos .panel-header-accent,
.course-material-notes .panel-header-accent,
.course-material-games .panel-header-accent,
.course-material-quizzes .panel-header-accent,
.course-material-exam .panel-header-accent {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border-bottom: 1px solid #c5d0dc;
}
.course-material-videos .panel-header,
.course-material-notes .panel-header,
.course-material-games .panel-header,
.course-material-quizzes .panel-header,
.course-material-exam .panel-header {
  display: block;
  width: 100%;
  padding: 0;
}
#groupTools .sub-panel,
#groupIncidentEvaluations .sub-panel {
  --sub-panel-card-inset-x: 1.05rem;
}
#groupTools .sub-panel .panel-header,
#groupIncidentEvaluations .sub-panel .panel-header {
  display: block;
  width: 100%;
  padding: 0;
}
#groupTools .sub-panel .panel-header-accent,
#groupIncidentEvaluations .sub-panel .panel-header-accent {
  background: transparent;
  border-bottom: 1px solid #c5d0dc;
  padding: .7rem 0 .65rem;
}
.tools-create-btn-row {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  gap: .5rem;
  margin-bottom: .65rem;
}
.tools-create-btn-row--single {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: .65rem;
}
.tools-create-btn-row--single .case-create-game-btn {
  width: auto;
  max-width: 100%;
  margin: 0;
}
.tools-create-btn-row .case-create-game-btn {
  width: 100%;
  margin-bottom: 0;
}
#panelSimSolution .simsolution-tile-icon,
#panelSimSolution [class*="sim-icon-"] {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
  border: none;
}
#groupTools .elearning-theme-block .eval-rating-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#panelCases .eval-rating-list,
#panelCases .case-games-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#groupTools .elearning-theme-block .eval-rating-item,
#groupTools .elearning-theme-block .eval-rating-empty,
#panelCases .eval-rating-item,
#panelCases .eval-rating-empty {
  list-style: none;
}
/* Evaluator list card = shared template for Feedback + Briefing + Decision Games */
#panelEval .eval-rating-item--line,
#panelFeedback .eval-rating-item--line,
#panelBriefing .eval-rating-item--line,
#panelCases .eval-rating-item--line,
#groupTools .elearning-theme-block .eval-rating-item--line {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-wrap: nowrap;
  gap: 0;
}
/* Decision Workout / feedback / briefing / games — video-style cards, plain list numbers */
.eval-rating-item--line .dashboard-list-card--tools-record,
.case-game-list-shell.dashboard-list-card--tools-record {
  padding: .32rem .45rem .32rem .28rem;
  gap: .28rem;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
}
.eval-rating-item--line .dashboard-list-card-num {
  flex: 0 0 auto;
  min-width: .85rem;
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: left;
  line-height: 1;
}
.eval-rating-item--line .dashboard-list-card-lock-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: .85rem;
  line-height: 1;
  color: transparent;
  font-size: 0;
}
#panelCases .dashboard-list-card-lock-slot {
  margin-left: .14rem;
  min-width: 1rem;
}
.eval-rating-item--line .dashboard-list-card-lock-slot .preview-lock-badge,
.eval-rating-item--line .dashboard-list-card-lock-slot .exam-lesson-lock--yellow {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.eval-rating-item--line .dashboard-list-card-lock-slot .preview-lock-badge svg,
.eval-rating-item--line .dashboard-list-card-lock-slot .exam-lesson-lock--yellow svg {
  width: 9px;
  height: 9px;
}
#panelCases .case-game-list-shell,
#panelCases .dashboard-list-card--tools-record.preview-locked-item--num-slot {
  overflow: visible;
}
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-title,
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-body h4,
.case-game-list-main .dashboard-list-card-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: .8rem;
  line-height: 1.25;
  font-weight: 600;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-body {
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-sub {
  flex: 0 0 auto;
  min-width: 0;
}
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  flex: 0 0 auto;
  margin-left: auto;
  flex-shrink: 0;
}
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-meta-date {
  font-size: .68rem;
  color: var(--muted);
}
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-meta-action {
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-meta-action.eval-rating-col--resume {
  color: var(--accent-dark);
  font-weight: 700;
}
.tools-record-list--modern {
  --list-row-h: 2.75rem;
  --list-row-gap: .32rem;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
  --list-hover-fill: color-mix(in srgb, var(--accent) 12%, #fff);
  --list-hover-fill-done: color-mix(in srgb, var(--success, #16a34a) 14%, #fff);
  gap: .32rem;
}
#groupTools .elearning-theme-block .tools-record-list--modern,
#panelCases .tools-record-list--modern,
#panelCases .case-games-list.tools-record-list--modern,
.live-center-upcoming-list.tools-record-list--modern {
  gap: .32rem;
}
.tools-record-list--modern .eval-rating-item--line .dashboard-list-card--tools-record,
.tools-record-list--modern .case-game-list-shell.dashboard-list-card--tools-record {
  padding: .4rem .5rem .4rem .38rem;
  gap: .4rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #d8e0ea);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 9px;
}
.elearning-theme-block .tools-record-list--modern .dashboard-list-card--tools-record,
.elearning-theme-block .tools-record-list--modern .case-game-list-shell {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #d8e0ea);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
}
.tools-record-list--modern .eval-rating-item--line .dashboard-list-card-num {
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent-dark);
  font-size: .62rem;
  font-weight: 700;
}
.tools-record-list--modern .eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-meta-action {
  padding: .14rem .48rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tools-record-list--modern .dashboard-list-card:hover:not(.locked):not(.video-list-item--placeholder):not(.done):not(.passed):not(.exam-cert-card),
.tools-record-list--modern button.dashboard-list-card:hover,
.tools-record-list--modern .case-game-list-shell.dashboard-list-card--tools-record:hover,
.tools-record-list--modern .quiz-list-item:hover:not(.locked):not(.done),
.tools-record-list--modern .video-list-item:hover:not(.locked):not(.video-list-item--placeholder):not(.case-game-item),
.tools-record-list--modern .video-list-item.locked:hover,
.tools-record-list--modern .video-list-item--placeholder:hover,
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item:hover:not(.locked):not(.video-list-item--placeholder):not(.case-game-item),
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item.locked:hover,
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item--placeholder:hover,
.quiz-list-compact.tools-record-list--modern .quiz-list-item:hover:not(.locked):not(.done),
.case-list-dashboard .tools-record-list--modern .case-list-item:hover:not(.case-list-item--placeholder),
.exam-list-compact.tools-record-list--modern .exam-list-item.dashboard-list-card:hover {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--accent) 36%, #c5d3e0);
  background: var(--list-hover-fill);
}
.tools-record-list--modern .quiz-list-item.done:hover,
.tools-record-list--modern .exam-list-item.passed:hover,
.tools-record-list--modern .video-list-item.watched:hover {
  transform: none;
  box-shadow: none;
  background: var(--list-hover-fill-done);
  border-color: var(--success);
}
.list-scroll-cap.tools-record-list--modern {
  padding-top: 2px;
  padding-bottom: 2px;
  box-sizing: content-box;
}
.course-material-assessment-column .quiz-list.list-scroll-cap,
.course-material-assessment-column .exam-list.list-scroll-cap {
  --list-row-h: var(--course-material-list-card-h);
  --list-row-gap: .32rem;
  --list-scroll-rows: 5;
  --list-scroll-frame-h: calc(var(--list-scroll-rows) * var(--list-row-h) + (var(--list-scroll-rows) - 1) * var(--list-row-gap));
  height: auto;
  min-height: 0;
  max-height: var(--list-scroll-frame-h);
}
.list-scroll-cap::-webkit-scrollbar {
  width: 8px;
}
.list-scroll-cap::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 40%, #c5d3e0);
  border-radius: 999px;
}
.list-scroll-cap::-webkit-scrollbar-track {
  background: transparent;
}
.tools-record-list--modern .dashboard-list-card:focus-visible,
.tools-record-list--modern button.dashboard-list-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
}
.tools-record-list--modern .eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-meta-date {
  color: #8a97a8;
  font-weight: 500;
}
.elearning-theme-block .tools-record-list--modern .dashboard-list-card,
.elearning-theme-block .tools-record-list--modern .quiz-list-item,
.elearning-theme-block .tools-record-list--modern .exam-list-item,
.elearning-theme-block .tools-record-list--modern .video-list-item,
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item,
.course-material-assessment-column .tools-record-list--modern.quiz-list-compact .quiz-list-item,
.course-material-assessment-column .tools-record-list--modern.exam-list-compact .exam-list-item,
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item.watched.dashboard-list-card,
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item.in-progress.dashboard-list-card,
.course-material-assessment-column .tools-record-list--modern.quiz-list-compact .quiz-list-item.done.dashboard-list-card,
.course-material-assessment-column .tools-record-list--modern.quiz-list-compact .quiz-list-item.in-progress.dashboard-list-card {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #d8e0ea);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 9px;
}
.video-list.tools-record-list--modern,
.quiz-list.tools-record-list--modern,
.exam-list.tools-record-list--modern {
  gap: .32rem;
}
.elearning-theme-block .tools-record-list--modern .quiz-list-item.done,
.elearning-theme-block .tools-record-list--modern .exam-list-item.passed,
.elearning-theme-block .tools-record-list--modern .video-list-item.watched {
  border-color: var(--success);
}
.elearning-theme-block .tools-record-list--modern .quiz-list-item.in-progress,
.elearning-theme-block .tools-record-list--modern .exam-list-item.in-progress,
.elearning-theme-block .tools-record-list--modern .video-list-item.in-progress {
  border-color: color-mix(in srgb, var(--accent) 42%, #d4dde8);
}
.tools-create-btn-row--modern,
.games-create-btn-row.tools-create-btn-row--modern,
.games-create-btn-row--top.tools-create-btn-row--modern {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0 0 1rem;
  gap: .4rem;
}
.tools-create-btn-row--modern .case-create-game-btn,
.tools-row-simsolutions .tools-create-btn-row--modern .case-create-game-btn,
#panelCases .tools-create-btn-row--modern .case-create-game-btn,
.course-material-grid .tools-create-btn-row--modern .case-create-game-btn,
body[class*="theme-"] .tools-create-btn-row--modern .case-create-game-btn {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  gap: .38rem;
  padding: .7rem .95rem .7rem .7rem;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.2;
  border-radius: 9px;
  transform: none;
  filter: none;
  white-space: nowrap;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--accent) 58%, #7ec8e3) 0%,
    var(--accent) 46%,
    var(--accent-dark, var(--accent)) 100%);
  border: 1px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 22%, #5aa8c6);
  color: #fff;
  box-shadow:
    0 1px 4px color-mix(in srgb, var(--accent-dark, var(--accent)) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
.tools-create-btn-row--modern .case-create-game-btn:hover,
.tools-row-simsolutions .tools-create-btn-row--modern .case-create-game-btn:hover,
body[class*="theme-"] .tools-create-btn-row--modern .case-create-game-btn:hover {
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--accent) 42%, #7ec8e3) 0%,
    var(--accent-dark, var(--accent)) 58%,
    color-mix(in srgb, var(--accent-dark, var(--accent)) 82%, #000) 100%);
  border-color: var(--accent-dark, var(--accent));
  color: #fff;
  transform: none;
  filter: none;
  box-shadow:
    0 2px 6px color-mix(in srgb, var(--accent-dark, var(--accent)) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
.tools-create-btn-row--modern .case-create-game-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
}
.tools-create-btn-row--modern .case-create-game-icon svg {
  width: 11px;
  height: 11px;
}
.case-game-list-main.tools-record-list-main {
  display: flex;
  align-items: center;
  gap: .28rem;
  min-width: 0;
}
.case-game-list-main.tools-record-list-main .dashboard-list-card-title {
  flex: 1 1 auto;
  min-width: 0;
}
.tools-record-delete-btn {
  flex-shrink: 0;
}
.case-game-list-shell {
  display: flex;
  align-items: center;
  gap: .32rem;
  min-width: 0;
}
.case-game-list-main {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.case-game-list-main:hover,
.case-game-list-main:focus-visible {
  transform: none;
  box-shadow: none;
  outline: none;
}
.case-game-list-shell:hover .case-game-list-main {
  background: transparent;
}
.case-game-list-side {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}
.case-game-list-shell:hover .case-game-list-side,
.case-game-list-shell:focus-within .case-game-list-side,
.dashboard-list-card-wrap:hover .case-game-list-side,
.dashboard-list-card-wrap:focus-within .case-game-list-side,
.eval-rating-item--line:hover .case-game-list-side,
.eval-rating-item--line:focus-within .case-game-list-side {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none) {
  .case-game-list-side {
    opacity: 1;
    pointer-events: auto;
  }
}
.case-game-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
}
.case-game-inline-btn svg {
  width: .78rem;
  height: .78rem;
  display: block;
}
.case-game-inline-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, #d4dde8);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}
.case-game-inline-btn--danger {
  color: #b42318;
  border-color: color-mix(in srgb, #b42318 24%, #d4dde8);
}
.case-game-inline-btn--danger:hover {
  background: #fff5f5;
  border-color: color-mix(in srgb, #b42318 38%, #d4dde8);
}
.case-game-list-item--saved .case-game-list-shell {
  border-color: color-mix(in srgb, var(--accent) 55%, #d4dde8);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
#panelCases .eval-rating-empty {
  padding: .85rem 1rem;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}
.games-column-card .case-games-list {
  gap: .35rem;
}
.games-column-card .case-my-games-empty {
  display: none;
}
/* Shared dashboard list card — evaluator records, video, quiz, exam, games, simulators */
.dashboard-list-card,
button.dashboard-list-card {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: .6rem .75rem;
  border: 1px solid var(--dashboard-list-card-border);
  border-radius: 10px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
  text-align: left;
}
button.dashboard-list-card {
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
li.dashboard-list-card {
  position: relative;
  list-style: none;
  cursor: pointer;
}
.dashboard-list-card-wrap {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-list-card-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.dashboard-list-card-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.dashboard-list-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.dashboard-list-card-body h4 {
  margin: 0;
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-list-card-sub {
  min-width: 0;
}
.dashboard-list-card-sub .video-progress-wrap {
  gap: .35rem;
}
.dashboard-list-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
}
.dashboard-list-card-meta-date {
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
}
.dashboard-list-card-meta-action {
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.dashboard-list-card:hover:not(.locked):not(.video-list-item--placeholder):not(.done):not(.passed):not(.exam-cert-card):not(.exam-list-item),
button.dashboard-list-card:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
  transform: translateY(-3px);
}
.tools-record-list--modern .dashboard-list-card:hover:not(.locked):not(.video-list-item--placeholder):not(.done):not(.passed):not(.exam-cert-card):not(.exam-list-item),
.tools-record-list--modern button.dashboard-list-card:hover,
.tools-record-list--modern .case-game-list-shell.dashboard-list-card--tools-record:hover {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--accent) 36%, #c5d3e0);
  background: var(--list-hover-fill);
}
.video-list-compact .dashboard-list-card,
.quiz-list-compact .dashboard-list-card.done,
.exam-list-compact .dashboard-list-card.passed {
  padding-right: 2.35rem;
}
.dashboard-list-card.locked:not(.exam-list-item) {
  cursor: not-allowed;
  opacity: .88;
}
.dashboard-list-card.locked:not(.exam-list-item) .dashboard-list-card-icon,
.dashboard-list-card.locked:not(.exam-list-item) .video-lesson-icon--play,
.dashboard-list-card.locked:not(.exam-list-item) .quiz-lesson-icon--question,
.dashboard-list-card.locked:not(.exam-list-item) .exam-lesson-icon {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  color: #f8fafc;
  box-shadow: none;
}
.dashboard-list-card.in-progress,
.dashboard-list-card.watched {
  border-color: color-mix(in srgb, var(--accent) 42%, #d4dde8);
}
.dashboard-list-card.watched,
.dashboard-list-card.done,
.dashboard-list-card.passed {
  border-color: var(--success);
}
.video-lessons-column .dashboard-list-card-icon.video-lesson-icon--play {
  padding: 0;
  box-sizing: border-box;
}
.video-lessons-column .dashboard-list-card-icon.video-lesson-icon--play .video-lesson-icon-main {
  gap: .12rem;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lessons-column .dashboard-list-card-icon.video-lesson-icon--play .video-lesson-icon-num {
  font-size: .78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: inherit;
  user-select: none;
}
.video-lessons-column .dashboard-list-card-icon.video-lesson-icon--play .video-lesson-icon-main svg {
  width: .78rem;
  height: .78rem;
  flex-shrink: 0;
  color: inherit;
}
.video-list-compact .dashboard-list-card-icon .video-lesson-lock {
  width: 14px;
  height: 14px;
  top: -.48rem;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  position: absolute;
}
.video-list-compact .dashboard-list-card-icon .video-lesson-lock svg {
  width: 8px;
  height: 8px;
}
#panelEval .eval-rating-empty,
#panelFeedback .eval-rating-empty,
#panelBriefing .eval-rating-empty,
#groupTools .elearning-theme-block .eval-rating-empty {
  margin: 0;
  padding: .75rem .65rem;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, #d4dde8);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbfd 0%, #f0f9ff 100%);
}
.course-material-learn-row .course-material-assessment-column > .panel,
.course-material-top-row--triple .course-material-assessment-column > .panel {
  --sub-panel-card-inset-x: 1.25rem;
  flex: 0 0 auto;
}
.course-material-assessment-column > .course-material-games {
  flex: 1 1 auto;
}
.course-material-assessment-column > .panel > .panel-body {
  flex: 0 0 auto;
}
.course-material-assessment-column .panel-body-compact .elearning-theme-block {
  flex: 0 0 auto;
}
.course-material-assessment-column .quiz-list-compact,
.course-material-assessment-column .exam-list-compact {
  gap: .35rem;
}
.exam-list-compact .exam-list-item.locked.dashboard-list-card {
  cursor: pointer;
  opacity: 1;
  filter: none;
  transform: none;
}
.exam-list-compact .exam-cert-card--pending.dashboard-list-card {
  cursor: pointer;
  opacity: 1;
  filter: none;
  transform: none;
}
.exam-list-compact .exam-list-item.locked .dashboard-list-card-icon.exam-lesson-icon {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.exam-list-compact .exam-cert-card--pending .dashboard-list-card-body h4,
.exam-list-compact .exam-cert-card--pending .course-card-hint,
.exam-list-compact .exam-list-item.locked .dashboard-list-card-body h4,
.exam-list-compact .exam-list-item.locked .course-card-hint {
  color: inherit;
}
.exam-list-compact .exam-cert-card.passed {
  cursor: pointer;
}
.course-material-assessment-column .exam-list-compact {
  gap: .35rem;
}
.course-material-videos .video-lessons-columns,
.course-material-videos .video-lessons-column,
.course-material-quizzes .elearning-theme-block,
.course-material-exam .elearning-theme-block {
  width: 100%;
  min-width: 0;
}
.course-material-videos .video-list-compact,
.course-material-assessment-column .quiz-list-compact {
  width: 100%;
  max-width: 100%;
}
.course-material-videos .video-list-compact .video-list-item,
.course-material-assessment-column .quiz-list-compact .quiz-list-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.course-material-videos .dashboard-list-card-sub,
.course-material-assessment-column .quiz-list-compact .dashboard-list-card-sub {
  width: 100%;
}
.course-material-videos .video-list-compact .video-list-item.watched.dashboard-list-card,
.course-material-videos .video-list-compact .video-list-item.in-progress.dashboard-list-card,
.course-material-assessment-column .quiz-list-compact .quiz-list-item.done.dashboard-list-card,
.course-material-assessment-column .quiz-list-compact .quiz-list-item.in-progress.dashboard-list-card {
  border-color: var(--dashboard-list-card-border);
  background: var(--dashboard-list-card-bg);
}
.course-material-videos .video-list-compact .video-list-item {
  gap: .32rem;
  align-items: center;
}
.course-material-videos .video-list-compact .dashboard-list-card-icon.video-lesson-icon--play,
.course-material-videos .video-list-compact .video-lesson-icon--play,
.course-material-videos .video-lessons-column .video-list-compact .video-lesson-icon--play {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-top: 0;
}
.course-material-videos .video-list-compact .video-list-item:hover:not(.locked):not(.video-list-item--placeholder):not(.case-game-item),
.course-material-videos .video-list-compact .video-list-item.locked:hover,
.course-material-videos .video-list-compact .video-list-item--placeholder:hover {
  padding: var(--course-material-list-card-pad-top) 1.55rem var(--course-material-list-card-pad-bottom) .45rem;
}
.course-material-assessment-column .course-card-hint {
  font-size: .62rem;
}
.course-material-assessment-column .quiz-lesson-icon,
.course-material-assessment-column .exam-lesson-icon,
.course-material-assessment-column .quiz-list-compact .dashboard-list-card-icon.quiz-lesson-icon--question,
.course-material-assessment-column .exam-list-compact .dashboard-list-card-icon.exam-lesson-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-top: 0;
  border-radius: 7px;
}
.course-material-assessment-column .quiz-lesson-icon-main svg,
.course-material-assessment-column .exam-lesson-icon-main svg {
  width: 14px;
  height: 14px;
}
.course-material-assessment-column .video-progress-wrap {
  gap: .2rem;
}
.course-material-assessment-column .video-pct {
  font-size: .72rem;
  flex: 0 0 1.85rem;
}
.course-material-assessment-column .video-complete-check {
  width: 18px;
  height: 18px;
  right: .32rem;
  top: 44%;
  transform: translateY(calc(-50% - .22rem));
}
.course-material-assessment-column .video-complete-check svg {
  width: 10px;
  height: 10px;
}
.course-material-assessment-column .quiz-card-side-actions {
  position: static;
  top: auto;
  right: auto;
}
.course-material-assessment-column .quiz-card-btn-icon-only {
  width: 16px;
  height: 16px;
  padding: .1rem;
  border-radius: 4px;
}
.course-material-assessment-column .case-card-btn-icon-only {
  width: 22px;
  height: 22px;
  padding: .22rem;
  border-radius: 6px;
}
.course-material-assessment-column .quiz-card-btn-icon-only svg {
  width: 10px;
  height: 10px;
}
.course-material-assessment-column .case-card-btn-icon-only svg {
  width: 12px;
  height: 12px;
}
.course-material-assessment-column .exam-footer-actions {
  margin-top: .35rem;
  gap: .3rem;
}
.course-material-assessment-column .exam-footer-actions .btn-sm {
  padding: .22rem .45rem;
  font-size: .68rem;
}
.course-material-games .panel-header-accent,
.course-material-quizzes .panel-header-accent,
.course-material-exam .panel-header-accent {
  background: transparent;
  border-bottom: 1px solid #c5d0dc;
}
.course-material-quizzes,
.course-material-exam {
  margin-top: 0;
}

/* Tools layout */
#groupTools .panel-body-main,
#groupIncidentEvaluations .panel-body-main {
  padding: 1.05rem 1.1rem 1.2rem;
}
.account-page-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "profile privacy"
    "licenses licenses";
  gap: .75rem;
  align-items: start;
}
#panelAccountProfile { grid-area: profile; }
#panelAccountPrivacy { grid-area: privacy; }
#groupLicensesPanel { grid-area: licenses; }
#groupMyAccount .panel-body-main {
  padding: .75rem .8rem .9rem;
}
#groupMyAccount .sub-panel .account-compact {
  padding: .55rem .7rem .7rem;
  gap: .4rem;
}
#groupMyAccount .account-compact-grid > div {
  grid-template-columns: 6.2rem 1fr;
  padding: .38rem .7rem;
  gap: .5rem;
}
#groupMyAccount .account-privacy-item {
  padding: .5rem .65rem;
  gap: .5rem;
}
#groupMyAccount .account-privacy-item span {
  font-size: .74rem;
}
#accountPageHost .account-page-content {
  gap: 1.15rem;
}
#accountPageHost.account-page {
  max-width: 980px;
}
#accountPageHost .sub-panel {
  border: 1px solid var(--border-light, #d4dde8);
  box-shadow: var(--account-shadow, 0 8px 24px rgba(15, 45, 74, 0.08));
}
.tools-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tools-layout--simsolutions {
  gap: 1.15rem;
}
.tools-row-simsolutions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.tools-row-simsolutions .tools-create-btn-row {
  gap: .35rem;
}
.tools-row-simsolutions .elearning-theme-block > .case-create-game-btn,
.tools-row-simsolutions .tools-create-btn-row .case-create-game-btn {
  gap: .3rem;
  padding: .52rem .65rem;
  font-size: .68rem;
  border-radius: 999px;
  line-height: 1.15;
}
.tools-row-simsolutions .panel-header-accent h2 {
  font-size: .82rem;
}
.tools-row-simsolutions .panel-body-compact {
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.tools-row-simsolutions--full {
  grid-template-columns: 1fr;
}
.tools-row-simsolutions #panelSimSessions,
.tools-row-simsolutions #panelSimSolution {
  --list-row-h: 2.5rem;
  --list-row-gap: .5rem;
}
.sim-session-studio-page {
  padding: 1.5rem 0 2.5rem;
  max-width: 1320px;
}
.sim-session-studio-layout {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.sim-session-studio-layout > .dashboard-group {
  margin: 0;
}
.sim-session-studio-briefing,
.sim-session-studio-execution,
.sim-session-studio-feedback {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #d4dde8);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .1);
  overflow: hidden;
}
.sim-session-studio-briefing .dashboard-group-header,
.sim-session-studio-execution .dashboard-group-header,
.sim-session-studio-feedback .dashboard-group-header {
  align-items: center;
}
.sim-session-briefing-body {
  padding: 1rem 1.15rem 1.2rem;
}
.sim-session-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem .75rem;
}
.sim-session-briefing-span2 {
  grid-column: span 2;
}
.sim-session-briefing-span3 {
  grid-column: 1 / -1;
}
.sim-session-briefing-focus-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .55rem .75rem;
}
.sim-session-briefing-body .form-group {
  margin: 0;
}
.sim-session-briefing-body .form-group label {
  margin-bottom: .2rem;
  font-size: .68rem;
}
.sim-session-briefing-body textarea,
.sim-session-briefing-body input[type="text"] {
  min-height: 0;
  font-size: .82rem;
}
.sim-session-focus-box {
  padding: .55rem .65rem .6rem;
  border-radius: 10px;
}
.sim-session-focus-box--clinical {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
}
.sim-session-focus-box--nts {
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  border: 1px solid color-mix(in srgb, var(--case-skill-blue-border, #93c5fd) 70%, #d4dde8);
}
.sim-session-studio-side-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.35rem;
}
.sim-session-studio-lead {
  margin: 0 0 .85rem;
  font-size: .82rem;
  line-height: 1.45;
  color: #475569;
}
.sim-session-studio-action-btn {
  width: auto;
  max-width: 16rem;
  justify-content: center;
}
.sim-session-execution-body {
  padding: 1.15rem 1.25rem 1.35rem;
}
.sim-session-execution-table {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.sim-session-execution-head,
.sim-session-execution-row {
  display: grid;
  grid-template-columns: 2.15rem minmax(7.5rem, 1.45fr) minmax(6.4rem, .85fr) minmax(6.4rem, .85fr) minmax(6.4rem, .85fr) minmax(5.5rem, .9fr) minmax(5.5rem, .9fr) 1.85rem;
  gap: .35rem;
  align-items: start;
}
.sim-session-execution-head {
  padding: 0 .1rem;
}
.sim-session-execution-cell {
  min-width: 0;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}
.sim-session-execution-cell--num {
  text-align: center;
}
.sim-session-execution-cell--actions {
  text-align: center;
}
.sim-session-execution-rows {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.sim-session-execution-row {
  padding: .4rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #e2e8f0);
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 5%, #f8fafc) 100%);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sim-session-execution-row.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, #94a3b8);
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 16%, #eff6ff) 100%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}
.sim-session-execution-field {
  min-width: 0;
}
.sim-session-execution-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.sim-session-execution-row.is-active .sim-session-execution-num {
  background: color-mix(in srgb, var(--accent) 88%, #0f172a);
  border-color: transparent;
  color: #fff;
}
.sim-session-execution-devices {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .05rem;
}
.sim-session-execution-device-chip {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #cbd5e1);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.sim-session-execution-device-chip.is-active {
  background: color-mix(in srgb, var(--accent) 18%, #fff);
  border-color: color-mix(in srgb, var(--accent) 55%, #94a3b8);
  color: color-mix(in srgb, var(--accent-dark, var(--accent)) 70%, #0f172a);
}
.sim-session-execution-device-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, #94a3b8);
}
.sim-session-execution-row textarea,
.sim-session-execution-row select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.15rem;
  margin: 0;
  padding: .28rem .4rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #d4dde8);
  background: #fff;
  font: inherit;
  font-size: .75rem;
  line-height: 1.3;
  color: #1e293b;
}
.sim-session-execution-row textarea {
  max-height: 5.5rem;
  resize: vertical;
  field-sizing: content;
  overflow-y: auto;
}
.sim-session-execution-row select {
  max-height: none;
  cursor: pointer;
}
.sim-session-execution-row textarea:focus,
.sim-session-execution-row select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, #94a3b8);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}
.sim-session-execution-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: .05rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.sim-session-execution-remove:hover {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fef2f2;
}
.sim-session-execution-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: .85rem;
}
.sim-session-execution-runbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 14%, #e2e8f0);
}
.sim-session-execution-clock {
  min-width: 6.5rem;
  padding: .55rem .85rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #0f172a;
  text-align: center;
}
.case-create-game-btn--end:disabled {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .sim-session-briefing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sim-session-briefing-span3 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .sim-session-briefing-grid,
  .sim-session-briefing-focus-row {
    grid-template-columns: 1fr;
  }
  .sim-session-execution-head {
    display: none;
  }
  .sim-session-execution-row {
    grid-template-columns: 2.15rem minmax(0, 1fr);
  }
  .sim-session-execution-row .sim-session-execution-field--status,
  .sim-session-execution-row .sim-session-execution-field:not(.sim-session-execution-field--num):not(.sim-session-execution-field--status),
  .sim-session-execution-row .sim-session-execution-cell--actions,
  .sim-session-execution-devices {
    grid-column: 1 / -1;
  }
  .sim-session-execution-row .sim-session-execution-field::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .2rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #64748b;
  }
  .sim-session-execution-row .sim-session-execution-field--num::before {
    content: none;
  }
  .sim-session-execution-row .sim-session-execution-cell--actions {
    justify-self: end;
  }
}
.tools-row-simsolutions #panelSimSolution .panel-body-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tools-row-simsolutions #panelSimSolution .elearning-theme-block {
  flex: 1;
  min-height: 0;
}
.tools-row {
  display: grid;
  gap: 1rem;
}
.tools-row-stack {
  grid-template-columns: 1fr;
}
.tools-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.tools-row-split {
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
}
.tools-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.tools-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.tools-row-3 .tools-create-btn-row,
.tools-row-4 .tools-create-btn-row {
  gap: .35rem;
}
.tools-row-3 .elearning-theme-block > .case-create-game-btn,
.tools-row-3 .tools-create-btn-row .case-create-game-btn,
.tools-row-4 .elearning-theme-block > .case-create-game-btn,
.tools-row-4 .tools-create-btn-row .case-create-game-btn {
  gap: .3rem;
  padding: .52rem .65rem;
  font-size: .68rem;
  border-radius: 999px;
  line-height: 1.15;
}
.tools-row-3 .elearning-theme-block > .case-create-game-btn .case-create-game-icon,
.tools-row-3 .tools-create-btn-row .case-create-game-icon,
.tools-row-4 .elearning-theme-block > .case-create-game-btn .case-create-game-icon,
.tools-row-4 .tools-create-btn-row .case-create-game-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}
.tools-row-3 .elearning-theme-block > .case-create-game-btn .case-create-game-icon svg,
.tools-row-3 .tools-create-btn-row .case-create-game-icon svg,
.tools-row-4 .elearning-theme-block > .case-create-game-btn .case-create-game-icon svg,
.tools-row-4 .tools-create-btn-row .case-create-game-icon svg {
  width: 12px;
  height: 12px;
}
.tools-row-3 .panel-header-accent h2,
.tools-row-4 .panel-header-accent h2 {
  font-size: .82rem;
}
.tools-row-3 .panel-body-compact,
.tools-row-4 .panel-body-compact {
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.tools-row-tools-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.live-center-main-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 0;
  padding: .1rem .05rem .15rem;
}
.comm-center-pane--live {
  min-height: 0;
}
.dashboard-group .sub-panel.comm-center-pane--live > .panel-body.panel-body-compact {
  padding: .4rem .45rem .5rem;
}
.comm-center-pane--live .live-center-main-body {
  padding: .2rem .1rem .25rem;
}
.comm-center-pane--live .comm-center-pane-header .btn {
  flex-shrink: 0;
}
.live-center-pane-lead {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}
.live-center-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: .5rem;
  align-items: stretch;
}
.live-center-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .45rem .5rem .5rem;
  border: 1px solid var(--dashboard-list-card-border);
  border-radius: 10px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
}
.live-center-upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  min-height: 0;
}
.live-center-upcoming-list .eval-rating-item--line {
  margin: 0;
}
.live-center-upcoming-list .dashboard-list-card--tools-record {
  width: 100%;
}
.live-center-box-title {
  margin: 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}
.live-center-schedule-form {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}
.live-center-schedule-form .form-group {
  margin: 0;
}
.live-center-schedule-form .form-group label {
  font-size: .62rem;
  margin-bottom: .04rem;
}
.live-center-schedule-form .form-group input,
.live-center-schedule-form .form-group select {
  padding: .26rem .4rem;
  font-size: .74rem;
}
.live-center-schedule-row {
  display: grid;
  grid-template-columns: 1.1fr .85fr .7fr;
  gap: .3rem;
}
.live-center-invite-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .28rem;
}
.live-center-invite-row input {
  flex: 1;
  min-width: 6rem;
  padding: .26rem .4rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: .74rem;
  background: #fff;
}
.live-center-schedule-actions {
  margin-top: .12rem;
}
.live-center-schedule-actions .btn {
  width: 100%;
}
.live-center-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
}
.live-center-chip {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .06rem .18rem .06rem .38rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
  font-size: .66rem;
  font-weight: 650;
  color: var(--accent-dark);
}
.live-center-chip button {
  width: .95rem;
  height: .95rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
}
.live-center-chip button:hover {
  background: color-mix(in srgb, var(--accent) 16%, #fff);
}
@media (max-width: 840px) {
  .live-center-dash-grid,
  .live-center-schedule-row {
    grid-template-columns: 1fr;
  }
}
.tools-row-tools-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 1rem;
  min-width: 0;
  align-items: stretch;
}
.tools-row-tools-right > .tools-cell {
  margin-bottom: 0;
  min-width: 0;
}
.tools-column-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
}
.tools-column-actions {
  min-width: 0;
}
.tools-column-actions .insight-actions--stack {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.tools-column-actions .insight-actions--row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}
.tools-column-actions .insight-actions--row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.tools-column-stack .tools-record-block {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}
.tools-show-all-btn {
  display: block;
  width: 100%;
  margin-top: .5rem;
  padding: .4rem .55rem;
  font-size: .72rem;
  font-weight: 600;
  color: #1e5a8a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.tools-show-all-btn:hover {
  background: #eef6ff;
  border-color: #94a3b8;
}
.tools-column-actions .insight-action-card--compact {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  width: 100%;
  min-height: 2.65rem;
  padding: .45rem .65rem;
  text-align: left;
}
.tools-column-actions .insight-actions--row-3 .insight-action-card--compact,
.tools-column-actions .insight-actions--row-2 .insight-action-card--compact {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 4.1rem;
  padding: .5rem .3rem;
  gap: .35rem;
}
.tools-column-actions .insight-actions--row-3 .insight-action-text,
.tools-column-actions .insight-actions--row-2 .insight-action-text {
  flex: none;
  width: 100%;
}
.tools-column-actions .insight-actions--row-3 .insight-action-text h3,
.tools-column-actions .insight-actions--row-2 .insight-action-text h3 {
  font-size: .66rem;
  line-height: 1.25;
}
.tools-column-actions .insight-action-card--compact:not(.insight-action-card--outline) {
  background: linear-gradient(135deg, #1e5a8a, #1e6b8a);
  border-color: #145070;
}
.tools-column-actions .insight-action-card--outline {
  background: #fff;
  border: 1.5px solid #cbd5e1;
}
.tools-column-actions .insight-action-icon {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}
.tools-column-actions .insight-action-text {
  flex: 1;
  min-width: 0;
}
.tools-column-actions .insight-action-text h3 {
  font-size: .82rem;
  margin: 0;
  font-weight: 700;
}
.tools-row .tools-cell {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tools-row .tools-cell .panel-body {
  flex: 1;
}

.dashboard-cols {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}
.dashboard-cols-2,
.dashboard-cols-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-cols-exam {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.panel-full { margin-bottom: 1.25rem; }
.dashboard-cols .panel { margin-bottom: 0; }
.panel-stretch {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.panel-stretch .panel-body-stretch {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.panel-body-compact { padding: 1rem 1.15rem; }
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.panel-header-accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #ffffff), color-mix(in srgb, var(--accent) 8%, #f4f7fa));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, #e2e8f0);
}
.panel-header h2 { font-size: 1.15rem; margin: 0; }
.panel-header-accent h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  border-left: 4px solid var(--accent);
  padding: .35rem 0 .35rem .75rem;
  line-height: 1.25;
}
.dashboard-cols .panel-header { padding: .85rem 1.15rem; }
.dashboard-cols .panel-header-accent h2 { font-size: .95rem; }
.dashboard-cols .panel-header h2 { font-size: .95rem; }

.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.panel-body { padding: 1.5rem; }

/* Video list */
.video-list { list-style: none; }
.video-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
  transition: background .15s;
}
.video-list-item:last-child { border-bottom: none; }
.video-list-item:hover:not(.locked):not(.case-game-item) { background: #f8fafc; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.video-list-item.locked {
  opacity: .55;
  cursor: pointer;
  filter: grayscale(.35);
}
.video-list-item--placeholder {
  cursor: default;
  opacity: .72;
}
.video-list-item--placeholder:hover {
  background: transparent;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.video-list-item--placeholder .video-list-info h4,
.video-list-item--placeholder .video-pct {
  color: var(--muted);
}

.video-list-item.locked:hover {
  opacity: .7;
  background: #f8fafc;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.video-list-item.locked .video-list-info h4,
.video-list-item.locked .video-pct {
  color: #94a3b8;
}
.video-lesson-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 107, 138, .12), rgba(30, 107, 138, .04));
  border: 1.5px solid rgba(30, 107, 138, .22);
  color: #1e6b8a;
}
.video-lesson-icon-main {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lesson-icon-main svg {
  width: 20px;
  height: 20px;
  display: block;
}
.video-list-item.watched .video-lesson-icon {
  border-color: rgba(22, 163, 74, .35);
  color: #166534;
  background: linear-gradient(135deg, rgba(22, 163, 74, .12), rgba(22, 163, 74, .04));
}
.video-list-item.in-progress .video-lesson-icon {
  border-color: rgba(30, 107, 138, .35);
  color: #1e6b8a;
}
.video-list-item.locked .video-lesson-icon {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
}
.video-lesson-lock {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.video-lesson-lock svg {
  width: 9px;
  height: 9px;
  display: block;
}
.video-list-info { flex: 1; min-width: 0; }
.video-list-info h4 { font-size: .92rem; margin-bottom: .4rem; font-weight: 600; }
.video-list-info .lesson-num { font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
.video-progress-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.video-list-compact .video-progress-wrap {
  flex: 0 0 126px;
  width: 126px;
  min-width: 126px;
  gap: .35rem;
}
.video-progress-bar,
.quiz-card-progress-bar {
  flex: 1;
  height: 8px;
  background: #f4f7fa;
  border: 1px solid rgba(30, 107, 138, .34);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .07);
  box-sizing: border-box;
}
.video-progress-fill,
.course-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}
.course-progress-fill.is-done { background: var(--success); }
.course-progress-fill.is-progress { background: var(--accent); }
.course-progress-fill.is-start,
.course-progress-fill.is-locked { background: rgba(30, 107, 138, .35); }
.video-list-item .course-progress-fill.is-progress,
.video-list-item .course-progress-fill.is-done {
  background: var(--accent);
}
.video-list-item .course-progress-fill.is-start,
.video-list-item .course-progress-fill.is-locked {
  background: rgba(30, 107, 138, .4);
}
.video-pct {
  font-size: .78rem;
  color: var(--muted);
  flex: 0 0 2.25rem;
  text-align: right;
}
.video-complete-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26, 127, 75, .14);
  border: 1.5px solid rgba(26, 127, 75, .45);
  color: #15803d;
  box-shadow: 0 1px 2px rgba(22, 101, 52, .12);
}
.video-complete-check.is-empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}
.video-complete-check svg {
  width: 13px;
  height: 13px;
  display: block;
}

.video-list-compact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.video-list-compact .video-list-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.video-list-compact .video-list-item {
  position: relative;
  padding: .6rem 2.35rem .6rem .75rem;
  gap: .6rem;
  align-items: flex-start;
  border: 1px solid var(--dashboard-list-card-border);
  border-radius: 10px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.video-list-compact .video-lesson-icon--play,
.video-list-compact .video-list-item.watched .video-lesson-icon.video-lesson-icon--play,
.video-list-compact .video-list-item.in-progress .video-lesson-icon.video-lesson-icon--play,
.video-list-compact .video-list-item.unlocked .video-lesson-icon.video-lesson-icon--play {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: .05rem;
  border-radius: 8px;
  overflow: visible;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border: none;
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.video-list-compact .video-lesson-icon-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.video-list-compact .video-lesson-icon-main svg {
  width: 16px;
  height: 16px;
  display: block;
}
.video-lessons-column .video-list-compact .video-lesson-icon--play {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lessons-column .video-list-compact .video-lesson-icon-main {
  gap: .12rem;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}
.video-lessons-column .video-lesson-icon-num {
  font-size: .78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: inherit;
  user-select: none;
}
.video-lessons-column .video-list-compact .video-lesson-icon-main svg {
  width: .78rem;
  height: .78rem;
  flex-shrink: 0;
  color: inherit;
}
.video-list-compact .video-list-item.locked .video-lesson-icon--play {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  color: #f8fafc;
  box-shadow: none;
}
.video-list-compact .video-lesson-lock,
.dashboard-list-card-icon .exam-lesson-lock--yellow,
.dashboard-list-card-icon .preview-lock-badge {
  position: absolute;
  top: -.48rem;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 3;
}
.video-list-compact .video-lesson-lock { width: 14px; height: 14px; }
.video-list-compact .video-lesson-lock svg { width: 8px; height: 8px; }
.video-list-compact .video-list-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding-right: 0;
}
.video-list-compact .video-list-info h4,
.quiz-list-compact .quiz-list-info h4,
.case-games-list .video-list-info h4,
.case-list-dashboard .case-list-info h4,
.exam-list-compact .exam-list-info h4 {
  font-size: .82rem;
  margin: 0;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-list-compact .video-list-info .lesson-num { display: none; }
.video-list-compact .video-progress-wrap {
  flex: none;
  width: 100%;
  min-width: 0;
  gap: .4rem;
  padding-right: 0;
}
.video-list-compact .video-list-item.in-progress {
  border-color: color-mix(in srgb, var(--accent) 42%, #d4dde8);
}
.video-list-compact .video-list-item.watched {
  border-color: #16a34a;
}
.video-list-compact .video-list-item .video-progress-fill.is-done,
.video-list-compact .video-list-item .video-progress-fill.is-progress,
.video-list-compact .video-list-item .course-progress-fill.is-done,
.video-list-compact .video-list-item .course-progress-fill.is-progress {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.video-list-compact .video-list-item.locked .video-progress-fill.is-locked,
.video-list-compact .video-list-item.locked .course-progress-fill.is-locked,
.video-list-compact .video-list-item .course-progress-fill.is-start,
.video-list-compact .video-list-item .video-progress-fill.is-start {
  background: rgba(30, 107, 138, .4);
}
.video-list-compact .video-complete-check,
.quiz-list-compact .video-complete-check,
.exam-list-compact .video-complete-check {
  position: absolute;
  right: .42rem;
  top: 44%;
  transform: translateY(calc(-50% - .22rem));
  flex: none;
  z-index: 1;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, var(--action-green-dark), var(--action-green-mid));
  border: 1.5px solid var(--action-green-border);
  color: var(--action-green-text);
  box-shadow: var(--action-green-shadow);
}
.video-list-compact .video-complete-check svg,
.quiz-list-compact .video-complete-check svg,
.exam-list-compact .video-complete-check svg { width: 12px; height: 12px; }
.video-list-compact .video-progress-bar,
.quiz-list-compact .video-progress-bar,
.exam-list-compact .video-progress-bar {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  max-width: none;
  height: 6px;
}
.video-list-compact .video-pct,
.quiz-list-compact .video-pct,
.exam-list-compact .video-pct {
  font-size: .72rem;
  flex: 0 0 1.85rem;
}
.video-list-compact .video-complete-check.is-empty {
  display: none;
}
.video-list-compact .video-list-item:hover:not(.locked):not(.video-list-item--placeholder):not(.case-game-item) {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
  background: #fff;
  margin: 0;
  padding: .6rem 2.35rem .6rem .75rem;
  transform: translateY(-3px);
}
.video-list-compact .video-list-item.case-game-item:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
  background: #fff;
  margin: 0;
  transform: none;
}
.video-list-compact .video-list-item.locked:hover {
  margin: 0;
  padding: .6rem 2.35rem .6rem .75rem;
  background: #fff;
}
.video-list-compact .video-list-item--placeholder {
  border-style: dashed;
  border-color: var(--dashboard-list-card-border);
  background: var(--dashboard-list-card-bg);
  box-shadow: none;
}
.video-list-compact .video-list-item--placeholder:hover {
  margin: 0;
  padding: .6rem 2.35rem .6rem .75rem;
  background: #fafbfd;
}
.video-list-compact .case-lesson-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: .05rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border: none;
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.video-list-compact .case-lesson-icon-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.video-list-compact .case-lesson-icon-main svg {
  width: 16px;
  height: 16px;
  display: block;
}
.video-list-compact .video-list-item.case-game-item {
  align-items: center;
  cursor: pointer;
}
.video-list-compact .video-list-item.case-game-item--saved {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent), 0 4px 14px rgba(15, 23, 42, .1);
  animation: case-game-saved-pulse 1.6s ease-out 2;
}
@keyframes case-game-saved-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent), 0 4px 14px rgba(15, 23, 42, .1); }
  70% { box-shadow: 0 0 0 8px transparent, 0 4px 14px rgba(15, 23, 42, .1); }
  100% { box-shadow: 0 0 0 0 transparent, 0 1px 3px rgba(15, 23, 42, .05); }
}
.case-games-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Quiz / games / exam — same compact card row as video lessons */
.quiz-list-compact,
.case-list-dashboard,
.exam-list-compact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: stretch;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quiz-list-compact .quiz-list-item,
.case-list-dashboard .case-list-item,
.exam-list-compact .exam-list-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  width: 100%;
  box-sizing: border-box;
  padding: .6rem 2.35rem .6rem .75rem;
  border: 1px solid var(--dashboard-list-card-border);
  border-radius: 10px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
  cursor: pointer;
  text-align: left;
}
.course-material-assessment-column .quiz-list-compact .quiz-list-item,
.course-material-assessment-column .exam-list-compact .exam-list-item {
  gap: .32rem;
  align-items: center;
  border-radius: 8px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
}
.course-material-assessment-column .quiz-list-compact .course-card-hint {
  display: none;
}
.course-material-assessment-column .quiz-list-compact .dashboard-list-card-icon.quiz-lesson-icon--question {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-top: 0;
}
.course-material-assessment-column .quiz-list-compact .quiz-lesson-icon-main svg {
  width: 14px;
  height: 14px;
}
.quiz-list-compact .quiz-list-item.done,
.exam-list-compact .exam-list-item.passed {
  border-color: var(--success);
  cursor: default;
}
.quiz-list-compact .quiz-list-item.in-progress,
.exam-list-compact .exam-list-item.in-progress {
  border-color: var(--accent);
}
.quiz-list-compact .quiz-list-item.locked {
  cursor: not-allowed;
  opacity: .88;
}
.quiz-list-info,
.case-list-info,
.exam-list-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  flex: 1 1 auto;
  min-width: 0;
}
.course-card-hint {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.35;
}
.quiz-list-compact .quiz-lesson-icon,
.exam-list-compact .exam-lesson-icon,
.case-list-dashboard .case-lesson-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: .05rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border: none;
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.quiz-list-compact .quiz-lesson-icon-main,
.exam-list-compact .exam-lesson-icon-main,
.case-list-dashboard .case-lesson-icon-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.quiz-list-compact .quiz-lesson-icon-main svg,
.exam-list-compact .exam-lesson-icon-main svg,
.case-list-dashboard .case-lesson-icon-main svg {
  width: 16px;
  height: 16px;
  display: block;
}
.quiz-list-compact .quiz-list-item.locked .quiz-lesson-icon,
.exam-list-compact .exam-list-item.locked:not(.dashboard-list-card) .exam-lesson-icon {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  color: #f8fafc;
  box-shadow: none;
}
.exam-list-compact .exam-lesson-lock,
.exam-list-compact .exam-lesson-lock--yellow {
  position: absolute;
  top: -.48rem;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #facc15;
  border: 1.5px solid #ca8a04;
  color: #713f12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(113, 63, 18, .28);
  z-index: 3;
}
.exam-list-compact .exam-lesson-lock svg { width: 10px; height: 10px; }
.course-material-assessment-column .exam-lesson-lock,
.course-material-assessment-column .exam-lesson-lock--yellow {
  width: 15px;
  height: 15px;
  top: -.44rem;
  left: 50%;
  transform: translateX(-50%);
}
.course-material-assessment-column .exam-lesson-lock svg { width: 8px; height: 8px; }
.quiz-list-compact .quiz-list-item:hover:not(.locked):not(.done),
.case-list-dashboard .case-list-item:hover:not(.case-list-item--placeholder) {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
  transform: translateY(-3px);
}
.exam-list-compact .exam-list-item.dashboard-list-card:hover {
  border-color: #d4dde8;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
  transform: none;
}
.tools-record-list--modern.video-list-compact .video-list-item:hover:not(.locked):not(.video-list-item--placeholder):not(.case-game-item),
.tools-record-list--modern.video-list-compact .video-list-item.locked:hover,
.tools-record-list--modern.video-list-compact .video-list-item--placeholder:hover,
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item:hover:not(.locked):not(.video-list-item--placeholder):not(.case-game-item),
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item.locked:hover,
.course-material-videos .tools-record-list--modern.video-list-compact .video-list-item--placeholder:hover,
.quiz-list-compact.tools-record-list--modern .quiz-list-item:hover:not(.locked):not(.done),
.exam-list-compact.tools-record-list--modern .exam-list-item.dashboard-list-card:hover,
.elearning-theme-block .tools-record-list--modern .dashboard-list-card:hover:not(.locked):not(.video-list-item--placeholder):not(.done):not(.passed):not(.exam-cert-card) {
  transform: none;
  box-shadow: none;
  margin: 0;
  border-color: color-mix(in srgb, var(--accent) 36%, #c5d3e0);
  background: var(--list-hover-fill);
}
.quiz-list-compact.tools-record-list--modern .quiz-list-item.done:hover,
.exam-list-compact.tools-record-list--modern .exam-list-item.passed:hover,
.tools-record-list--modern.video-list-compact .video-list-item.watched:hover {
  transform: none;
  box-shadow: none;
  margin: 0;
  background: var(--list-hover-fill-done);
  border-color: var(--success);
}
.quiz-list-compact .quiz-list-item .video-progress-wrap,
.exam-list-compact .exam-list-item .video-progress-wrap {
  margin-top: 0;
}
.quiz-list-compact .quiz-list-item .video-progress-fill,
.exam-list-compact .exam-list-item .video-progress-fill,
.quiz-list-compact .quiz-list-item .course-progress-fill,
.exam-list-compact .exam-list-item .course-progress-fill {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.quiz-card-title-row {
  display: flex;
  align-items: center;
  gap: .28rem;
  min-width: 0;
}
.quiz-card-title-row h4 {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiz-card-side-actions {
  position: static;
  top: auto;
  right: auto;
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
  z-index: 2;
}
.quiz-card-btn-icon-only {
  width: 18px;
  height: 18px;
  padding: .12rem;
  border: 1px solid #d4dde8;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.case-card-btn-icon-only {
  width: 26px;
  height: 26px;
  padding: .3rem;
  border: 1px solid #d4dde8;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.quiz-card-btn-icon-only svg {
  width: 11px;
  height: 11px;
  display: block;
}
.case-card-btn-icon-only svg {
  width: 14px;
  height: 14px;
  display: block;
}
.quiz-card-btn-icon-only:hover,
.case-card-btn-icon-only:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #f0f9ff;
}
.case-card-btn-icon-only--danger:hover {
  border-color: #f87171;
  color: #b91c1c;
  background: #fef2f2;
}
.case-list-dashboard .case-list-item {
  padding-right: .65rem;
  align-items: center;
}
.case-list-dashboard .case-list-item--create .case-lesson-icon,
.case-list-dashboard .case-lesson-icon--create {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  color: #f8fafc;
  box-shadow: none;
}
.case-list-dashboard .case-list-item--placeholder {
  border-style: dashed;
  border-color: #d4dde8;
  background: #fafbfd;
  box-shadow: none;
}
.case-list-dashboard .case-list-item--placeholder:hover {
  transform: none;
  border-color: #94a3b8;
}
.case-list-dashboard .case-card-side-actions {
  display: flex;
  gap: .25rem;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 2;
}
.case-list-dashboard .case-card-btn-icon-only {
  position: static;
  margin-left: 0;
}
.exam-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}
body[class*="theme-"] .quiz-list-compact .quiz-lesson-icon,
body[class*="theme-"] .exam-list-compact .exam-lesson-icon,
body[class*="theme-"] .case-list-dashboard .case-lesson-icon:not(.case-lesson-icon--create) {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
}

.video-category-header {
  list-style: none;
  margin: .65rem 0 .2rem;
  padding: .35rem 0 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid rgba(30, 107, 138, .14);
}
.video-category-header:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.video-list-relaxed .video-list-item { padding: .65rem 0; gap: .85rem; }
.video-list-relaxed .video-lesson-icon { width: 40px; height: 40px; }
.video-list-relaxed .video-lesson-icon-main svg { width: 20px; height: 20px; }
.video-list-relaxed .video-list-info h4 { font-size: .88rem; margin-bottom: .2rem; }
.video-list-relaxed .video-list-info .lesson-num { font-size: .72rem; margin-bottom: .15rem; }
.video-list-relaxed .video-progress-bar { height: 6px; }
.video-list-relaxed .video-pct { font-size: .78rem; }

.video-player-placeholder {
  background: #0f1a28; border-radius: var(--radius);
  height: 200px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem; margin: 1rem 0;
}

/* Video lecture presentation modal */
.video-lecture-modal {
  width: min(640px, 100%);
  padding: 1.35rem 1.5rem 1.25rem;
  position: relative;
  animation: videoModalIn .38s cubic-bezier(.22, 1, .36, 1) forwards;
}
.video-lecture-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.video-lecture-close:hover {
  background: #e2e8f0;
  color: #0f1a28;
  transform: scale(1.06);
}
@keyframes videoModalIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.video-lecture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}
.video-lecture-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}
.video-lecture-counter {
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9;
  padding: .25rem .55rem;
  border-radius: 999px;
}
.video-lecture-stage {
  min-height: 240px;
  background: linear-gradient(160deg, #0f2d4a 0%, #1e5a8a 55%, #2d7ab8 100%);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  transition: background .5s ease;
}
.video-lecture-stage.is-intro {
  background: linear-gradient(145deg, #0a2238 0%, #1a4a72 40%, #2d7ab8 100%);
}
.video-lecture-modal.video-lecture--law .video-lecture-stage.is-intro {
  background: linear-gradient(145deg, #0a0a0a 0%, #1a0808 42%, #4a1010 100%);
}
.video-lecture-modal.video-lecture--law .video-lecture-stage.is-content {
  background: linear-gradient(160deg, #1a0a0a 0%, #2d1212 55%, #1a0808 100%);
}
.video-lecture-modal.video-lecture--law .video-lecture-logo-mark .logo-accent { color: #fca5a5; }
.video-lecture-modal.video-lecture--law .video-lecture-icon-wrap {
  background: rgba(139, 0, 0, 0.22);
  border-color: rgba(252, 165, 165, 0.35);
  color: #fecaca;
}
.video-lecture-modal.video-lecture--law .video-lecture-bullets li::before { background: #b91c1c; }
.video-lecture-modal.video-lecture--law .video-lecture-progress .video-progress-fill { background: linear-gradient(90deg, #7f1d1d, #b91c1c); }
.video-lecture-modal.video-lecture--business .video-lecture-stage.is-intro {
  background: linear-gradient(145deg, #0a0a0a 0%, #141210 42%, #2a2210 100%);
}
.video-lecture-modal.video-lecture--business .video-lecture-stage.is-content {
  background: linear-gradient(160deg, #141210 0%, #1f1a12 55%, #0f0e0a 100%);
}
.video-lecture-modal.video-lecture--business .video-lecture-logo-mark .logo-accent { color: #d4af37; }
.video-lecture-modal.video-lecture--business .video-lecture-icon-wrap {
  background: rgba(184, 134, 11, 0.18);
  border-color: rgba(212, 175, 55, 0.35);
  color: #e8c547;
}
.video-lecture-modal.video-lecture--business .video-lecture-bullets li::before { background: #b8860b; }
.video-lecture-modal.video-lecture--business .video-lecture-progress .video-progress-fill { background: linear-gradient(90deg, #8b6914, #d4af37); }
.video-lecture-modal.video-lecture--aviation .video-lecture-stage.is-intro {
  background: linear-gradient(145deg, #0a1628 0%, #0f2240 42%, #1e3a5f 100%);
}
.video-lecture-modal.video-lecture--aviation .video-lecture-stage.is-content {
  background: linear-gradient(160deg, #0f2240 0%, #152a47 55%, #0a1628 100%);
}
.video-lecture-modal.video-lecture--aviation .video-lecture-logo-mark .logo-accent { color: #b4c8dc; }
.video-lecture-modal.video-lecture--aviation .video-lecture-icon-wrap {
  background: rgba(74, 111, 165, 0.22);
  border-color: rgba(180, 200, 220, 0.35);
  color: #b4c8dc;
}
.video-lecture-modal.video-lecture--aviation .video-lecture-bullets li::before { background: #4a6fa5; }
.video-lecture-modal.video-lecture--aviation .video-lecture-progress .video-progress-fill { background: linear-gradient(90deg, #1e3a5f, #4a6fa5); }
.video-lecture-modal.video-lecture--fire .video-lecture-stage.is-intro {
  background: linear-gradient(145deg, #0d0300 0%, #1a0800 42%, #431407 100%);
}
.video-lecture-modal.video-lecture--fire .video-lecture-stage.is-content {
  background: linear-gradient(160deg, #1a0800 0%, #2a1208 55%, #0d0300 100%);
}
.video-lecture-modal.video-lecture--fire .video-lecture-logo-mark .logo-accent { color: #fdba74; }
.video-lecture-modal.video-lecture--fire .video-lecture-icon-wrap {
  background: rgba(124, 45, 18, 0.25);
  border-color: rgba(253, 186, 116, 0.35);
  color: #fdba74;
}
.video-lecture-modal.video-lecture--fire .video-lecture-bullets li::before { background: #c2410c; }
.video-lecture-modal.video-lecture--fire .video-lecture-progress .video-progress-fill { background: linear-gradient(90deg, #7c2d12, #ea580c); }
.video-lecture-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.video-lecture-orbs span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  animation: videoLectureOrb 8s ease-in-out infinite;
}
.video-lecture-orbs span:nth-child(1) {
  width: 120px; height: 120px;
  top: -30px; left: -20px;
  animation-delay: 0s;
}
.video-lecture-orbs span:nth-child(2) {
  width: 80px; height: 80px;
  bottom: 10px; right: 15px;
  animation-delay: -2.5s;
}
.video-lecture-orbs span:nth-child(3) {
  width: 50px; height: 50px;
  top: 40%; right: 25%;
  animation-delay: -5s;
}
@keyframes videoLectureOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .5; }
  50% { transform: translate(8px, -10px) scale(1.08); opacity: .85; }
}
.video-lecture-logo {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(.88);
}
.video-lecture-logo-mark {
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.video-lecture-logo-mark .logo-primary {
  color: #fff;
}
.video-lecture-logo-mark .logo-accent {
  color: #8fd4ff;
}
.video-lecture-logo-tag {
  margin: .65rem 0 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
  letter-spacing: .02em;
}
.video-lecture-stage.is-intro.is-animate .video-lecture-logo {
  animation: videoLectureLogoIn .9s cubic-bezier(.16, 1, .3, 1) forwards,
             videoLectureLogoCinematic 5.5s ease-out forwards;
}
@keyframes videoLectureLogoIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes videoLectureLogoCinematic {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  12% { filter: brightness(1.04); transform: scale(1.004); }
  18% { filter: brightness(1); transform: scale(1); }
  48% { filter: brightness(1.1); transform: scale(1.012); }
  58% { filter: brightness(1.02); transform: scale(1); }
}
.video-lecture-stage.is-content .video-lecture-logo {
  display: none !important;
}
.video-lecture-slide-head {
  display: none;
  align-items: center;
  gap: .75rem;
  z-index: 1;
}
.video-lecture-stage.is-content.has-bullet-layout {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 0;
  padding-top: 1.15rem;
  padding-bottom: 1.25rem;
}
.video-lecture-stage.is-content.has-bullet-layout .video-lecture-slide-head {
  display: flex;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  padding-right: .5rem;
}
.video-lecture-stage.is-content.has-bullet-layout .video-lecture-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0;
  transform: none;
  opacity: 1;
  animation: none;
}
.video-lecture-stage.is-content.has-bullet-layout .video-lecture-icon-wrap svg {
  width: 28px;
  height: 28px;
}
.video-lecture-stage.is-content.has-bullet-layout .video-lecture-emphasis {
  margin: 0;
  flex: 1;
  text-align: left;
  text-transform: none;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: #fff;
  transform: none;
  opacity: 1;
  animation: none;
}
.video-lecture-stage.is-content.has-bullet-layout .video-lecture-lead {
  align-self: flex-start;
  margin: .35rem 0 0 calc(52px + .75rem);
  max-width: min(520px, 100%);
  text-align: left;
}
.video-lecture-stage.is-content.has-bullet-layout .video-lecture-bullets {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  max-width: min(480px, 92%);
  width: 100%;
  margin-top: .75rem;
  padding-left: .15rem;
}
.video-lecture-stage.is-content.has-bullet-layout.is-animate .video-lecture-slide-head .video-lecture-icon-wrap {
  animation: videoLectureIconIn .45s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-content.has-bullet-layout.is-animate .video-lecture-slide-head .video-lecture-emphasis:not(.hidden) {
  animation: videoLectureTextIn .45s .08s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-content .video-lecture-icon-wrap,
.video-lecture-stage.is-content .video-lecture-emphasis,
.video-lecture-stage.is-content .video-lecture-lead,
.video-lecture-stage.is-content .video-lecture-bullets,
.video-lecture-stage.is-content .video-lecture-text {
  opacity: 1;
  transform: none;
}
.video-lecture-stage.is-content.is-animate .video-lecture-icon-wrap {
  animation: videoLectureIconIn .6s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-content.is-animate .video-lecture-emphasis:not(.hidden) {
  animation: videoLectureTextIn .5s .12s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-content.is-animate .video-lecture-lead:not(.hidden) {
  animation: videoLectureTextIn .55s .2s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-content.is-animate .video-lecture-bullets:not(.hidden) {
  animation: none;
  opacity: 1;
  transform: none;
}
.video-lecture-stage.is-content.is-animate .video-lecture-bullets:not(.hidden) li {
  animation: videoLectureBulletIn .5s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(.3s + var(--bullet-i) * .1s);
}
.video-lecture-stage.is-content.is-animate .video-lecture-text:not(.hidden) {
  animation: videoLectureTextIn .65s .18s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-intro .video-lecture-icon-wrap,
.video-lecture-stage.is-intro .video-lecture-emphasis,
.video-lecture-stage.is-intro .video-lecture-lead,
.video-lecture-stage.is-intro .video-lecture-bullets,
.video-lecture-stage.is-intro .video-lecture-text,
.video-lecture-stage.is-mission-headline .video-lecture-logo,
.video-lecture-stage.is-mission-headline .video-lecture-icon-wrap,
.video-lecture-stage.is-mission-headline .video-lecture-emphasis,
.video-lecture-stage.is-mission-headline .video-lecture-lead,
.video-lecture-stage.is-mission-headline .video-lecture-bullets,
.video-lecture-stage.is-mission-headline .video-lecture-clip {
  display: none !important;
}
.video-lecture-stage.is-mission-headline {
  background: linear-gradient(145deg, #0a2238 0%, #1a4a72 40%, #2d7ab8 100%);
}
.video-lecture-stage.is-mission-headline .video-lecture-text {
  display: block !important;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 .5rem;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.01em;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
}
.video-lecture-stage.is-mission-headline.is-animate .video-lecture-text {
  animation: videoLectureTextIn .75s cubic-bezier(.22, 1, .36, 1) forwards;
}
.video-lecture-stage.is-mission-headline .video-lecture-text em {
  font-style: normal;
  font-weight: 600;
  color: #a8d4f0;
}
.video-lecture-stage.is-file-mode .video-lecture-orbs {
  display: none;
}
.video-lecture-modal.is-file-player {
  width: min(960px, 100%);
  padding: 0.75rem 0.75rem 0.65rem;
  background: #0a1f33;
}
.video-lecture-modal.is-file-player .video-lecture-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  background: rgba(15, 26, 40, 0.72);
  color: #fff;
}
.video-lecture-modal.is-file-player .video-lecture-close:hover {
  background: rgba(15, 26, 40, 0.92);
  color: #fff;
}
.video-lecture-stage.is-file-mode {
  padding: 0;
  min-height: 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-lecture-stage.is-file-mode .video-lecture-orbs {
  display: none;
}
.video-lecture-file {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lecture-file video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 820px);
  border-radius: 0;
  background: #000;
  box-shadow: none;
}
.video-lecture-modal:fullscreen .video-lecture-file video,
.video-lecture-modal.is-file-player:fullscreen .video-lecture-file video {
  max-height: 100vh;
}
.video-lecture-statusbar {
  margin-top: 0.15rem;
}
.video-lecture-progress .video-progress-fill {
  transition: none;
  background: var(--accent);
}
.video-lecture-progress {
  margin-top: 0;
}
.video-lecture-progress .video-progress-bar {
  cursor: pointer;
}
.video-lecture-progress .video-progress-bar:hover .video-progress-fill {
  filter: brightness(1.12);
}
.video-lecture-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(.78) translateY(14px);
}
.video-lecture-icon-wrap svg {
  width: 36px;
  height: 36px;
}
.video-lecture-emphasis {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  opacity: 0;
  transform: translateY(10px);
}
.video-lecture-lead {
  margin: 0;
  font-size: .94rem;
  line-height: 1.45;
  color: rgba(255,255,255,.78);
  max-width: 480px;
  opacity: 0;
  transform: translateY(10px);
}
.video-lecture-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  max-width: 420px;
  width: 100%;
}
.video-lecture-bullets li {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .45rem 0;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255,255,255,.94);
  opacity: 0;
  transform: translateY(12px);
}
.video-lecture-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(125,211,252,.45);
}
.video-lecture-text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 520px;
  opacity: 0;
  transform: translateY(14px);
  font-weight: 500;
}
.video-lecture-stage.is-animate .video-lecture-icon-wrap:not(.hidden) {
  animation: videoLectureIconIn .6s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-animate .video-lecture-emphasis:not(.hidden) {
  animation: videoLectureTextIn .5s .12s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-animate .video-lecture-lead:not(.hidden) {
  animation: videoLectureTextIn .55s .2s cubic-bezier(.22,1,.36,1) forwards;
}
.video-lecture-stage.is-animate .video-lecture-bullets:not(.hidden) {
  animation: none;
  opacity: 1;
  transform: none;
}
.video-lecture-stage.is-animate .video-lecture-bullets:not(.hidden) li {
  animation: videoLectureBulletIn .5s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(.3s + var(--bullet-i) * .1s);
}
.video-lecture-stage.is-animate .video-lecture-text:not(.hidden) {
  animation: videoLectureTextIn .65s .18s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes videoLectureIconIn {
  0% { opacity: 0; transform: scale(.78) translateY(14px); }
  65% { opacity: 1; transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes videoLectureTextIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes videoLectureBulletIn {
  to { opacity: 1; transform: translateY(0); }
}
.video-lecture-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  margin-bottom: .85rem;
}
.video-lecture-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.12), transparent 45%);
  pointer-events: none;
}
.video-lecture-modal:fullscreen {
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
}
.video-lecture-modal:fullscreen .video-lecture-stage {
  min-height: min(52vh, 420px);
  flex: 1;
  max-height: 520px;
}
.video-lecture-modal:fullscreen .video-lecture-text {
  font-size: 1.2rem;
  max-width: 680px;
}
.video-lecture-modal:fullscreen .video-lecture-bullets {
  max-width: 680px;
}
.video-lecture-modal:fullscreen .video-lecture-logo-mark {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
}

/* Animated lecture clips (~10 s scenes) */
.video-lecture-stage.is-clip {
  background: linear-gradient(165deg, #0c2842 0%, #1a4d72 45%, #2a6a94 100%);
  min-height: 260px;
  padding: 1.1rem 1rem .85rem;
}
.video-lecture-clip {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 2;
}
.lecture-clip-scene {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 8vw, 3rem);
  padding: .5rem .25rem 0;
}
.lecture-clip-er-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: .2rem .55rem;
  border-radius: 999px;
  opacity: 0;
}
.lecture-clip-doctor {
  position: relative;
  opacity: 0;
  transform: translateY(18px);
}
.lecture-clip-doctor svg {
  width: clamp(64px, 18vw, 78px);
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.28));
}
.lecture-clip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(.88);
  background: #fff;
  color: #0f1a28;
  font-size: .71rem;
  font-weight: 500;
  line-height: 1.35;
  padding: .48rem .62rem;
  border-radius: 11px;
  max-width: min(148px, 42vw);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
}
.lecture-clip-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #fff;
}
.lecture-clip-bubble--3 {
  max-width: min(132px, 40vw);
}
.lecture-clip-check {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%) scale(.6);
  width: 44px;
  height: 44px;
  color: #7dffb3;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(125,255,179,.45));
}
.lecture-clip-check svg {
  width: 100%;
  height: 100%;
}
.lecture-clip-caption {
  margin: .75rem 0 0;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255,255,255,.88);
  opacity: 0;
  transform: translateY(8px);
}
.lecture-clip.is-playing .lecture-clip-er-badge {
  animation: clipBadgeIn .5s .2s cubic-bezier(.22,1,.36,1) forwards;
}
.lecture-clip.is-playing .lecture-clip-doctor--lead {
  animation: clipDoctorIn .65s .35s cubic-bezier(.22,1,.36,1) forwards;
}
.lecture-clip.is-playing .lecture-clip-doctor--support {
  animation: clipDoctorIn .65s .55s cubic-bezier(.22,1,.36,1) forwards;
}
.lecture-clip.is-playing .lecture-clip-bubble--1 {
  animation: clipBubble1 10s linear forwards;
}
.lecture-clip.is-playing .lecture-clip-bubble--2 {
  animation: clipBubble2 10s linear forwards;
}
.lecture-clip.is-playing .lecture-clip-bubble--3 {
  animation: clipBubble3 10s linear forwards;
}
.lecture-clip.is-playing .lecture-clip-check {
  animation: clipCheckIn 10s linear forwards;
}
.lecture-clip.is-playing .lecture-clip-caption {
  animation: clipCaptionIn 10s linear forwards;
}
@keyframes clipBadgeIn {
  to { opacity: 1; }
}
@keyframes clipDoctorIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes clipBubble1 {
  0%, 9% { opacity: 0; transform: translateX(-50%) scale(.88) translateY(8px); }
  11%, 30% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
  33%, 100% { opacity: 0; transform: translateX(-50%) scale(.92) translateY(-6px); }
}
@keyframes clipBubble2 {
  0%, 33% { opacity: 0; transform: translateX(-50%) scale(.88) translateY(8px); }
  35%, 56% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
  59%, 100% { opacity: 0; transform: translateX(-50%) scale(.92) translateY(-6px); }
}
@keyframes clipBubble3 {
  0%, 58% { opacity: 0; transform: translateX(-50%) scale(.88) translateY(8px); }
  60%, 80% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
  83%, 100% { opacity: 0; transform: translateX(-50%) scale(.92) translateY(-6px); }
}
@keyframes clipCheckIn {
  0%, 81% { opacity: 0; transform: translateX(-50%) scale(.5); }
  84%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes clipCaptionIn {
  0%, 85% { opacity: 0; transform: translateY(8px); }
  88%, 100% { opacity: 1; transform: translateY(0); }
}
.video-lecture-modal:fullscreen .lecture-clip-scene {
  min-height: min(42vh, 320px);
}
.video-lecture-modal:fullscreen .lecture-clip-bubble {
  font-size: .85rem;
  max-width: 180px;
}

/* Quiz category cards on dashboard */
.quiz-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.quiz-category-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
}
.quiz-category-card:hover:not(.disabled) {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.quiz-category-card.disabled { opacity: .55; cursor: not-allowed; }
.quiz-category-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 107, 138, .12), rgba(30, 107, 138, .04));
  border: 1.5px solid rgba(30, 107, 138, .22);
  color: #1e6b8a;
  margin-bottom: .75rem;
}
.quiz-category-icon svg { width: 24px; height: 24px; display: block; }
.quiz-category-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.quiz-category-card p { font-size: .82rem; color: var(--muted); margin-bottom: .65rem; }
.quiz-category-card .quiz-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.quiz-meta::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  opacity: .55;
}
.quiz-meta.is-start::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='8,5 19,12 8,19'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='8,5 19,12 8,19'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quiz-meta.is-progress::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12a8 8 0 0 1 13-6M20 12a8 8 0 0 1-13 6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12a8 8 0 0 1 13-6M20 12a8 8 0 0 1-13 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quiz-meta.is-done::before {
  opacity: .7;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quiz-meta.is-locked::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='1'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='1'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quiz-category-card.done { border-color: var(--success); }
.quiz-category-card.done .quiz-category-icon { border-color: var(--success); color: var(--success); background: rgba(22, 163, 74, .08); }
.quiz-category-card.in-progress { border-color: var(--accent); }

.quiz-card-progress {
  margin-top: .35rem;
  width: 100%;
}
.quiz-card-progress-bar {
  height: 6px;
  max-width: 100%;
}

/* Quiz wizard page — compact, centered sheet */
.quiz-page-wrap {
  width: min(560px, 92vw);
  max-width: 560px;
  padding: .7rem 0 1.15rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 5.5rem);
}
.quiz-page-shell {
  margin: .25rem auto 1.15rem;
  width: 100%;
}
.quiz-page-shell .case-player-page-header {
  padding: .42rem .4rem .45rem;
}
.quiz-page-shell .case-player-header-inner {
  justify-content: center;
  padding: .42rem .55rem .46rem;
  min-height: 2.55rem;
}
.quiz-page-shell .case-player-page-header h2 {
  flex: 1 1 auto;
  text-align: center;
  font-size: .92rem;
  letter-spacing: .035em;
}
.quiz-page-shell .case-player-body {
  gap: .5rem;
  padding: .55rem .4rem .6rem;
}
.quiz-page-shell .video-theme-block {
  padding: .55rem .45rem .65rem;
}
.quiz-page-shell .quiz-progress-header {
  margin-bottom: .45rem;
}
.quiz-page-shell .quiz-wizard-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
}
.quiz-page-shell .quiz-wizard-panel .panel-body,
.quiz-page-shell .quiz-wizard-panel > #quizQuestions,
.quiz-page-shell .quiz-wizard-panel > #examQuestions {
  padding: 0;
}
.quiz-page-shell .quiz-actions.case-player-nav {
  padding: .48rem .4rem;
  gap: .4rem;
}
.quiz-page-shell .quiz-nav-btn {
  min-width: 6.2rem;
  padding: .42rem .7rem;
  font-size: .8rem;
}
.quiz-page-shell .quiz-option-letter {
  width: 1.45rem;
  height: 1.45rem;
  font-size: .74rem;
  border-radius: 6px;
}
.quiz-progress-header {
  margin-bottom: 1rem;
}
.quiz-wizard-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
}
.quiz-wizard-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border-radius: 8px;
  border: none;
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
  flex-shrink: 0;
}
.quiz-wizard-icon svg { width: 16px; height: 16px; display: block; }
.quiz-wizard-step {
  font-weight: 700;
  font-size: .95rem;
  color: var(--accent-dark);
}
.quiz-wizard-answered {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .1rem;
}
.quiz-progress-bar {
  height: 4px;
  background: color-mix(in srgb, var(--accent) 14%, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 999px;
  transition: width .25s ease;
}
.quiz-progress-dots {
  display: flex;
  gap: .35rem;
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .15s, transform .15s;
}
.quiz-dot.answered { background: var(--accent); }
.quiz-dot.current { background: var(--accent-dark); transform: scale(1.25); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }

.quiz-wizard-panel .panel-body { padding: 1.25rem 1.35rem; }
.quiz-wizard-question { margin: 0; }
.quiz-question-text {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #1e293b;
  margin: 0 0 1rem;
}
.quiz-option-cards {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.quiz-option-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: left;
  padding: .75rem .9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 1px 3px rgba(30, 107, 138, .06);
  cursor: pointer;
  font-size: .9rem;
  color: #334155;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.quiz-option-card:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 107, 138, .12);
  transform: translateY(-2px);
}
.quiz-option-card.selected {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent), 0 6px 18px rgba(30, 107, 138, .12);
}
.quiz-option-letter {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  font-weight: 700;
  font-size: .82rem;
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.quiz-option-card.selected .quiz-option-letter {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
}
.quiz-option-label { flex: 1; line-height: 1.35; }
.quiz-option-check {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  position: relative;
}
.quiz-option-card.selected .quiz-option-check {
  border-color: var(--accent);
  background: var(--accent);
}
.quiz-option-card.selected .quiz-option-check::after {
  content: '';
  position: absolute;
  left: .28rem;
  top: .12rem;
  width: .35rem;
  height: .55rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.quiz-actions {
  display: flex;
  gap: .65rem;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.quiz-nav-btn { min-width: 7rem; }
.quiz-nav-btn:disabled { opacity: .45; cursor: not-allowed; }

.quiz-score-banner,
.quiz-resume-hint {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
}
.quiz-score-banner {
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #713f12;
}
.quiz-resume-hint {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.quiz-wizard-meta-text { min-width: 0; }
.quiz-wizard-step {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.quiz-q-mark {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex-shrink: 0;
}
.quiz-q-mark svg { width: .75rem; height: .75rem; display: block; }
.quiz-q-mark.is-correct { color: #15803d; background: rgba(22, 163, 74, .12); }
.quiz-q-mark.is-wrong { color: #b91c1c; background: rgba(220, 38, 38, .12); }

.quiz-option-card.is-correct {
  border-color: #15803d;
  background: rgba(22, 163, 74, .08);
}
.quiz-option-card.is-wrong {
  border-color: #dc2626;
  background: rgba(220, 38, 38, .08);
}
.quiz-option-card.is-correct .quiz-option-letter { background: #15803d; color: #fff; }
.quiz-option-card.is-wrong .quiz-option-letter { background: #dc2626; color: #fff; }
.quiz-option-card:disabled { cursor: default; }
.quiz-option-mark {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-option-mark svg { width: .95rem; height: .95rem; display: block; }
.quiz-option-mark.is-correct { color: #15803d; }
.quiz-option-mark.is-wrong { color: #dc2626; }

.quiz-review-compare {
  margin-top: .7rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  font-size: .8rem;
  line-height: 1.4;
  display: grid;
  gap: .25rem;
}
.quiz-review-compare.is-correct {
  background: rgba(22, 163, 74, .08);
  border: 1px solid rgba(22, 163, 74, .25);
  color: #166534;
}
.quiz-review-compare.is-wrong {
  background: rgba(220, 38, 38, .07);
  border: 1px solid rgba(220, 38, 38, .22);
  color: #991b1b;
}
.quiz-review-k {
  font-weight: 700;
  margin-right: .35rem;
}

.quiz-category-card--complete {
  cursor: default;
  text-align: left;
}
.quiz-category-card--complete:hover {
  transform: none;
  box-shadow: none;
}
.quiz-card-complete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem .4rem;
  margin-top: .15rem;
  min-width: 0;
  flex-wrap: wrap;
}
.quiz-card-complete-row .quiz-meta {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.quiz-card-actions {
  display: flex;
  gap: .2rem;
  flex-shrink: 0;
  width: auto;
  margin: 0;
}
.quiz-card-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .08rem .32rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: .6rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.15;
  white-space: nowrap;
}
.quiz-card-btn:hover {
  border-color: #1e6b8a;
  color: #145070;
  background: #f8fafc;
}
.quiz-card-btn-icon {
  width: .7rem;
  height: .7rem;
  display: flex;
  color: #1e6b8a;
}
.quiz-card-btn-icon svg { width: 100%; height: 100%; display: block; }
.quiz-card-retake-hint {
  margin-top: .2rem;
  font-size: .6rem;
  color: #1e6b8a;
}

.quiz-result-modal {
  max-width: 360px;
  text-align: center;
  padding: 1.35rem 1.4rem 1.2rem;
}
.quiz-result-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}
.quiz-result-icon svg { width: 1.45rem; height: 1.45rem; display: block; }
.quiz-result-modal h2 {
  font-size: 1.05rem;
  margin: 0 0 .35rem;
}
.quiz-result-score {
  font-size: 2rem;
  font-weight: 800;
  color: #145070;
  margin: 0;
  line-height: 1.1;
}
.quiz-result-detail {
  font-size: .85rem;
  color: var(--muted);
  margin: .35rem 0 1rem;
}
.exam-result-modal-actions {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  align-items: stretch;
}
.exam-result-modal-actions .btn { width: 100%; }

.cert-unlock-modal,
.course-unlock-modal {
  max-width: 340px;
  text-align: center;
  padding: 1.25rem 1.35rem 1.15rem;
}
.section-help-modal {
  width: min(92vw, 400px);
  padding: 1.35rem 1.15rem 1.2rem;
  text-align: center;
  border-top: none;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--prof-heading, var(--accent-light)) 8%, #fff) 100%);
}
.section-help-modal-header {
  margin: 0 0 .95rem;
  padding: .85rem 1rem .75rem;
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  border: 2px solid var(--theme-header-border, #0a2540);
  border-radius: 12px;
}
.section-help-modal-header h2 {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  width: auto;
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  line-height: 1.25;
}
.section-help-modal-body {
  padding: 0 .15rem;
}
.section-help-modal-text {
  margin: 0 0 1rem;
  font-size: .86rem;
  line-height: 1.55;
  color: #334155;
  text-align: left;
}
.section-help-modal-ok {
  width: 100%;
  max-width: 11.5rem;
  margin: 0 auto;
  display: block;
}
.cert-unlock-modal-brand,
.course-unlock-modal-brand {
  display: flex;
  justify-content: center;
  margin-bottom: .85rem;
}
.cert-unlock-modal-brand .logo,
.course-unlock-modal-brand .logo {
  gap: .45rem;
}
.cert-unlock-modal-brand .logo-mark,
.course-unlock-modal-brand .logo-mark {
  width: 36px;
  height: 36px;
}
.cert-unlock-modal-brand .logo-word,
.course-unlock-modal-brand .logo-word {
  font-size: 1.05rem;
}
.cert-unlock-modal-lock,
.course-unlock-modal-lock {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fef9c3;
  border: 1.5px solid #ca8a04;
  color: #713f12;
  box-shadow: 0 2px 8px rgba(113, 63, 18, .12);
}
.cert-unlock-modal-lock svg,
.course-unlock-modal-lock svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.cert-unlock-modal h2,
.course-unlock-modal h2 {
  font-size: 1rem;
  margin: 0 0 .45rem;
}
.cert-unlock-modal-text,
.course-unlock-modal-text {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 1rem;
}
.cert-unlock-modal .btn-primary,
.course-unlock-modal .btn-primary {
  width: 100%;
}

.diploma-page {
  padding: 1.25rem 0 2.5rem;
  max-width: 210mm;
}
.diploma-sheet {
  background: #fdf8ef;
  border: 2px solid #c9a227;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .35), var(--shadow-lg);
  border-radius: 2px;
  padding: 24mm 20mm 18mm;
  min-height: 297mm;
  box-sizing: border-box;
  text-align: center;
  color: #3a342c;
  font-family: 'Cormorant Garamond', Palatino, 'Palatino Linotype', 'Times New Roman', Times, serif;
  display: flex;
  flex-direction: column;
}
.diploma-award {
  width: 4.6rem;
  height: 4.6rem;
  margin: 0 auto .35rem;
  color: #c9a227;
}
.diploma-award svg { width: 100%; height: 100%; display: block; }
.diploma-kicker {
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  font-size: 3.55rem;
  line-height: 1.12;
  letter-spacing: .02em;
  color: #9a7b24;
  margin: .15rem 0 2.4rem;
}
.diploma-hereby {
  font-style: italic;
  font-weight: 600;
  font-size: 2.12rem;
  margin: 0 0 .7rem;
  color: #4a453c;
}
.diploma-name {
  font-family: inherit;
  font-size: 2.95rem;
  font-weight: 700;
  font-style: italic;
  margin: 0 0 1.25rem;
  color: #1e293b;
}
.diploma-lead {
  margin: 0 auto 1.6rem;
  max-width: 42rem;
  font-size: 1.68rem;
  line-height: 1.5;
  font-weight: 500;
}
.diploma-logo-block {
  margin: 1.4rem auto 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.diploma-logo-mark {
  width: 7rem;
  height: 7rem;
  display: block;
  margin: 0 auto .55rem;
}
.diploma-logo-word {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #145070;
}
.diploma-logo-word span { color: #c9a227; }
.diploma-regards {
  margin: .2rem 0 .25rem;
  font-style: italic;
  font-size: 1.75rem;
}
.diploma-team {
  font-weight: 700;
  margin: 0 0 2.2rem;
  color: #145070;
  font-size: 1.75rem;
}
.diploma-footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  align-items: end;
  margin-top: auto;
  width: 100%;
}
.diploma-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.diploma-sign-field {
  display: block;
  width: 100%;
  text-align: center;
}
.diploma-sign-rule {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #c9a227;
  border: 0;
  margin: 0;
}
.diploma-esign {
  display: block;
  font-family: 'Great Vibes', 'Segoe Script', 'Lucida Handwriting', cursive;
  font-size: 2.15rem;
  line-height: 1.35;
  color: #145070;
  white-space: nowrap;
  padding: 0 0 .7rem;
  margin: 0;
}
.diploma-sign-label {
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  color: #44403c;
  margin-top: .4rem;
}
.diploma-page-actions {
  text-align: center;
  margin-top: 1.15rem;
}
@media print {
  .diploma-page-actions,
  .dashboard-header { display: none !important; }
  .diploma-page { padding: 0; max-width: none; }
  .diploma-sheet {
    box-shadow: none;
    min-height: 297mm;
    width: 210mm;
  }
}

.quiz-page-wrap {
  padding: .65rem 0 1.15rem;
  max-width: 560px;
}
.quiz-wizard-panel .panel-body { padding: 0; }
.quiz-question-text {
  font-size: .88rem;
  margin: 0 0 .7rem;
}
.quiz-option-cards { gap: .4rem; }
.quiz-option-card {
  padding: .52rem .55rem;
  gap: .45rem;
  font-size: .8rem;
}
.quiz-actions { margin-top: 0; }
.quiz-wizard-icon {
  width: 34px;
  height: 34px;
}
.quiz-wizard-icon svg { width: 16px; height: 16px; }

/* Evaluation setup + rating pages — dashboard sheet */
.eval-page-wrap {
  width: min(640px, 92vw);
  max-width: 640px;
  padding: .7rem 0 1.25rem;
  margin: 0 auto;
}
.eval-page-shell {
  margin: .25rem auto 1.15rem;
  width: 100%;
}
.eval-page-shell .case-player-page-header {
  padding: .7rem .85rem .65rem;
}
.eval-page-shell .case-player-header-inner {
  padding: .5rem .65rem .55rem .75rem;
  min-height: 0;
  gap: .5rem;
  align-items: center;
}
.eval-page-shell .case-player-page-header h2,
.eval-page-shell .eval-player-header-titles h2 {
  font-size: 1rem;
  letter-spacing: .06em;
  line-height: 1.2;
}
.eval-page-shell .eval-player-header-titles {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .65rem;
}
.eval-page-shell .eval-player-case-name {
  font-size: .78rem;
  line-height: 1.2;
}
.eval-page-shell .case-player-session-code {
  font-size: .62rem;
  letter-spacing: .08em;
  line-height: 1;
}
.eval-page-shell .case-player-header-session {
  gap: .08rem;
}
.eval-page-shell .case-player-page-header .session-qr-host {
  padding: .1rem;
  border-radius: 5px;
}
.eval-page-shell .case-player-page-header .session-qr-box,
.eval-page-shell .case-player-page-header .session-qr-box img,
.eval-page-shell .case-player-page-header .session-qr-box canvas,
.eval-page-shell .case-player-page-header .session-qr-box table {
  width: 28px !important;
  height: 28px !important;
}
.eval-page-shell--rating .case-player-page-header {
  padding: .5rem .65rem .55rem;
  background: transparent;
  border-bottom: none;
}
.eval-page-shell--rating .case-player-header-inner {
  position: relative;
  padding: .2rem .6rem .22rem .7rem;
  gap: .65rem;
  min-height: 4.7rem;
  height: 4.7rem;
  box-sizing: border-box;
  overflow: visible;
  border-radius: 8px;
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  border: 2px solid var(--theme-header-border, #0a2540);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
}
.eval-page-shell--rating .case-player-page-header h2,
.eval-page-shell--rating .eval-player-header-titles h2 {
  flex: none;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #fff;
  overflow: visible;
}
.eval-page-shell--rating .eval-player-header-titles {
  position: absolute;
  left: 0;
  right: 0;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  min-width: 0;
  overflow: visible;
  z-index: 1;
  text-align: center;
  pointer-events: none;
}
.eval-page-shell--rating .eval-player-header-titles h2,
.eval-page-shell--rating .eval-player-case-name {
  pointer-events: auto;
}
.eval-page-shell--rating .eval-player-case-name {
  font-size: .82rem;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}
.eval-page-shell--rating .case-player-header-session {
  flex: none;
  align-self: stretch;
  height: 100%;
  gap: .08rem;
  justify-content: center;
  margin-left: auto;
  z-index: 2;
}
.eval-page-shell--rating .case-player-session-code {
  font-size: .7rem;
  letter-spacing: .1em;
  line-height: 1;
}
.eval-page-shell--rating .case-player-page-header .session-qr-host {
  flex: none;
  height: calc(100% - .85rem);
  width: auto;
  min-height: 0;
  padding: 2px;
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eval-page-shell--rating .case-player-page-header .session-qr-box,
.eval-page-shell--rating .case-player-page-header .session-qr-box img,
.eval-page-shell--rating .case-player-page-header .session-qr-box canvas,
.eval-page-shell--rating .case-player-page-header .session-qr-box table {
  width: auto !important;
  height: 100% !important;
  max-height: 100%;
  aspect-ratio: 1;
}

.eval-results-page--report.eval-page-wrap {
  width: min(210mm, 96vw);
  max-width: 210mm;
  padding: .7rem 0 1.25rem;
}
.eval-results-report-pages {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
}
.eval-results-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 297mm;
  box-sizing: border-box;
  margin: 0;
}
.eval-results-sheet-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.eval-results-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-shrink: 0;
  margin: 0;
  padding: .55rem .85rem .65rem;
  background: var(--panel-main-bg, #e8eef5);
  border-top: 1px solid color-mix(in srgb, var(--accent) 16%, #e2e8f0);
  font-size: .72rem;
  color: #64748b;
}
.eval-results-sheet-brand {
  font-weight: 700;
  color: var(--accent-dark, #143d5c);
}
.eval-results-sheet-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.eval-results-sheet.eval-page-shell {
  margin: 0;
}
.eval-results-sheet .eval-results-themed {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.eval-results-sheet .eval-results-categories {
  margin-bottom: 0;
}
.eval-page-shell--report .eval-results-report-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1.15rem .9rem 1.1rem;
  min-height: 4.15rem;
}
.eval-results-report-brand {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: .28rem .5rem .28rem .28rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .14);
}
.eval-results-report-brand .logo,
.eval-results-report-brand .logo-with-mark,
.eval-results-report-brand .logo-word {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.eval-results-report-brand .logo {
  font-size: .92rem;
  pointer-events: none;
}
.eval-results-report-brand .logo-with-mark:hover {
  opacity: 1;
}
.eval-results-report-brand .logo-with-mark > .logo-mark {
  width: 1.7rem;
  height: 1.7rem;
  margin-right: .38rem;
}
.eval-results-report-brand .logo-word {
  white-space: nowrap;
  letter-spacing: -.02em;
  height: 1.7rem;
}
.eval-results-report-brand .logo-primary {
  color: #143d5c;
}
.eval-results-report-brand .logo-accent {
  color: #1e5a8a;
}
.eval-page-shell--report .eval-results-report-header h2 {
  width: 100%;
  margin: 0;
  padding: 0 7.2rem;
  border: none;
  text-align: center;
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}
.eval-results-page--report .eval-results-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .7rem .55rem .85rem;
  background: var(--panel-main-bg, #e8eef5);
}
.eval-results-subheader {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: 0;
  padding: .55rem .65rem .6rem .7rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
  text-align: left;
}
.eval-results-subheader-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(12.5rem, .95fr);
  gap: .55rem .7rem;
  align-items: start;
}
.eval-results-facts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .06rem;
  margin: 0;
  padding: 0;
  text-align: left;
}
.eval-results-fact {
  font-size: .8rem;
  font-weight: 600;
  color: #e0f2fe;
  line-height: 1.3;
}
.eval-results-fact-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  font-size: .68rem;
  color: #e0f2fe;
}
.eval-results-fact-value {
  text-transform: none;
  font-weight: 600;
  color: #fff;
}
.eval-results-page--report .eval-results-desc {
  color: color-mix(in srgb, #e0f2fe 82%, #fff);
  font-size: .78rem;
  line-height: 1.35;
  margin: 0;
  text-align: left;
}
.eval-results-page--report .video-theme-block {
  padding: .6rem .5rem .7rem;
}
.eval-results-page--report .eval-results-totals-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .32rem;
  margin: 0;
  align-self: stretch;
  align-items: stretch;
}
.eval-results-page--report .eval-source-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .32rem .32rem .28rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.eval-results-page--report .eval-source-summary--self {
  border-top: none;
  background:
    linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%) top / 100% 11px no-repeat,
    #fff;
  padding-top: .72rem;
}
.eval-results-page--report .eval-source-summary--self .eval-source-summary-value {
  color: var(--accent-dark);
}
.eval-results-page--report .eval-source-summary--supervisor {
  border-top: none;
  background:
    linear-gradient(145deg, #7f1d1d 0%, #b91c1c 55%, color-mix(in srgb, #b91c1c 55%, #fff) 100%) top / 100% 11px no-repeat,
    #fff;
  padding-top: .72rem;
}
.eval-results-page--report .eval-source-summary--supervisor .eval-source-summary-badge,
.eval-results-page--report .eval-source-summary--supervisor .eval-source-summary-value {
  color: #b91c1c;
}
.eval-results-page--report .eval-source-summary--others {
  border-top: none;
  background:
    linear-gradient(145deg, #14532d 0%, #16a34a 55%, color-mix(in srgb, #16a34a 55%, #fff) 100%) top / 100% 11px no-repeat,
    #fff;
  padding-top: .72rem;
}
.eval-results-page--report .eval-source-summary--others .eval-source-summary-badge,
.eval-results-page--report .eval-source-summary--others .eval-source-summary-value {
  color: #15803d;
}
.eval-results-page--report .eval-source-summary-badge {
  display: block;
  width: 100%;
  margin-bottom: .02rem;
  font-size: .58rem;
  letter-spacing: .05em;
  text-align: center;
}
.eval-results-page--report .eval-source-summary-value {
  display: block;
  width: 100%;
  font-size: .98rem;
  text-align: center;
  line-height: 1.1;
}
.eval-results-page--report .eval-source-summary-hint {
  display: block;
  width: 100%;
  margin-top: .04rem;
  font-size: .58rem;
  line-height: 1.2;
  text-align: center;
}
.eval-results-page--report .eval-source-summary.is-empty {
  opacity: .92;
}
.eval-results-page--report .eval-results-categories {
  gap: .82rem;
  margin-bottom: 0;
}
.eval-results-page--report .eval-results-legend {
  padding: .35rem .55rem;
  margin-bottom: .05rem;
  font-size: .68rem;
  gap: .35rem .75rem;
}
.eval-results-page--report .eval-legend-item--self::before {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.eval-results-page--report .eval-legend-item--supervisor::before {
  background: linear-gradient(90deg, #7f1d1d, #b91c1c);
}
.eval-results-page--report .eval-legend-item--others::before {
  background: linear-gradient(90deg, #14532d, #16a34a);
}
.eval-results-page--report .eval-cat-block,
.eval-results-page--report .eval-cat-block--situational_awareness,
.eval-results-page--report .eval-cat-block--decision_making,
.eval-results-page--report .eval-cat-block--stress_management,
.eval-results-page--report .eval-cat-block--teamwork,
.eval-results-page--report .eval-cat-block--comments,
.eval-results-page--report .eval-cat-block--align,
.eval-results-page--report .eval-cat-block--gaps {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.eval-results-page--report .eval-cat-head,
.eval-results-page--report .eval-cat-block--situational_awareness .eval-cat-head,
.eval-results-page--report .eval-cat-block--decision_making .eval-cat-head,
.eval-results-page--report .eval-cat-block--stress_management .eval-cat-head,
.eval-results-page--report .eval-cat-block--teamwork .eval-cat-head,
.eval-results-page--report .eval-cat-head--comments,
.eval-results-page--report .eval-cat-head--align,
.eval-results-page--report .eval-cat-head--gaps {
  margin-bottom: .38rem;
  padding: .38rem .55rem .38rem .65rem;
  min-height: 3.15rem;
  gap: .45rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.eval-results-page--report .eval-cat-title {
  display: flex;
  align-items: center;
  font-size: .8rem;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  color: #e0f2fe;
}
.eval-results-page--report .eval-cat-meters {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex: 0 1 10.25rem;
  min-width: 7.25rem;
  padding: .26rem .34rem .26rem .36rem;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.eval-results-page--report .eval-cat-meter {
  display: flex;
  align-items: center;
  gap: .22rem;
  flex: none;
  min-width: 0;
  width: 100%;
}
.eval-results-page--report .eval-cat-meter.is-empty .eval-cat-bar {
  height: 6px;
  min-height: 6px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}
.eval-results-page--report .eval-cat-meter--supervisor.is-empty .eval-cat-bar {
  border: 1px solid #b91c1c;
}
.eval-results-page--report .eval-cat-meter--others.is-empty .eval-cat-bar {
  border: 1px solid #16a34a;
}
.eval-results-page--report .eval-cat-meter--self.is-empty .eval-cat-bar {
  border: 1px solid var(--accent);
}
.eval-cat-empty-label {
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  min-width: 3.4rem;
}
.eval-results-page--report .eval-cat-pct,
.eval-results-page--report .eval-cat-empty-label {
  box-sizing: border-box;
  min-width: 3.5rem;
  width: 3.5rem;
  text-align: right;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.eval-results-page--report .eval-cat-meter--supervisor .eval-cat-empty-label,
.eval-results-page--report .eval-cat-meter--supervisor .eval-cat-pct {
  color: #b91c1c;
}
.eval-results-page--report .eval-cat-meter--others .eval-cat-empty-label,
.eval-results-page--report .eval-cat-meter--others .eval-cat-pct {
  color: #15803d;
}
.eval-results-page--report .eval-cat-meter--self .eval-cat-empty-label,
.eval-results-page--report .eval-cat-meter--self .eval-cat-pct {
  color: var(--accent-dark);
}
.eval-results-page--report .eval-cat-bar {
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .07);
}
.eval-results-page--report .eval-cat-bar-fill,
.eval-results-page--report .eval-cat-meter--self .eval-cat-bar-fill {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.eval-results-page--report .eval-cat-meter--supervisor .eval-cat-bar-fill {
  background: linear-gradient(90deg, #7f1d1d, #b91c1c);
}
.eval-results-page--report .eval-cat-meter--others .eval-cat-bar-fill {
  background: linear-gradient(90deg, #14532d, #16a34a);
}
.eval-results-page--report .eval-cat-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .2rem .45rem;
  font-size: .66rem;
  line-height: 1;
  border-color: rgba(224, 242, 254, .55);
  color: #e0f2fe;
}
.eval-results-page--report .eval-cat-block--align .eval-cat-head--align {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
}
.eval-results-page--report .eval-cat-block--align .eval-cat-expand-panel {
  margin-top: .4rem;
}
.eval-results-page--report .eval-cat-block--align .eval-cat-expand-panel[hidden] {
  display: none;
}
.eval-results-page--report .eval-cat-compare-panel,
.eval-results-page--report .eval-comments-panel,
.eval-results-page--report .eval-question-list {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: 0 0 .1rem;
  background: transparent;
  border: none;
}
.eval-results-page--report .eval-subcat-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: .22rem .38rem .24rem;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.eval-results-page--report .eval-compare-row,
.eval-results-page--report .eval-question-item,
.eval-results-page--report .eval-comment-field {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: .28rem .45rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 1px 2px rgba(30, 107, 138, .05);
}
.eval-results-page--report .eval-subcat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(7.4rem, 1fr);
  align-items: center;
  gap: .3rem .4rem;
  width: 100%;
  margin: 0;
  padding: .16rem .08rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.eval-results-page--report .eval-subcat-meters {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
}
.eval-results-page--report .eval-subcat-meters .eval-cat-meter {
  gap: .22rem;
}
.eval-results-page--report .eval-subcat-row + .eval-subcat-row {
  border-top: 1px solid rgba(71, 85, 105, .48);
  margin: 0;
  padding-top: .22rem;
}
.eval-results-page--report .eval-compare-row:nth-child(even),
.eval-results-page--report .eval-comment-field + .eval-comment-field {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-top: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  margin-top: 0;
  padding-top: .48rem;
}
.eval-results-page--report .eval-question-item,
.eval-results-page--report .eval-comment-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .14rem;
}
.eval-results-page--report .eval-question-ratings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .2rem;
}
.eval-results-page--report .eval-question-rating {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
  padding: .12rem .28rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, .1);
}
.eval-results-page--report .eval-question-rating-role {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.1;
}
.eval-results-page--report .eval-question-rating .eval-question-answer {
  font-size: .66rem;
  line-height: 1.2;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
}
.eval-results-page--report .eval-question-rating--self {
  background: color-mix(in srgb, var(--accent, #2a7ab8) 12%, #fff);
}
.eval-results-page--report .eval-question-rating--supervisor {
  background: rgba(185, 28, 28, .08);
}
.eval-results-page--report .eval-question-rating--others {
  background: rgba(22, 163, 74, .08);
}
.eval-results-page--report .eval-question-rating--yes .eval-question-answer { color: #166534; }
.eval-results-page--report .eval-question-rating--partially .eval-question-answer { color: #a16207; }
.eval-results-page--report .eval-question-rating--no .eval-question-answer { color: #991b1b; }
.eval-results-page--report .eval-question-rating--unknown .eval-question-answer,
.eval-results-page--report .eval-question-rating--pending .eval-question-answer { color: #64748b; }
.eval-results-page--report .eval-question-rating--na .eval-question-answer { color: #0e7490; }
.eval-results-page--report .eval-question-rating--mixed .eval-question-answer { color: #475569; }
.eval-results-page--report .eval-question-text {
  font-size: .74rem;
  line-height: 1.3;
}
.eval-results-page--report .eval-compare-label,
.eval-results-page--report .eval-subcat-label {
  display: flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}
.eval-results-page--report .eval-compare-bar,
.eval-results-page--report .eval-subcat-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .07);
}
.eval-results-page--report .eval-compare-fill,
.eval-results-page--report .eval-subcat-bar-fill,
.eval-results-page--report .eval-subcat-bar-fill--situational_awareness,
.eval-results-page--report .eval-subcat-bar-fill--decision_making,
.eval-results-page--report .eval-subcat-bar-fill--stress_management,
.eval-results-page--report .eval-subcat-bar-fill--teamwork {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.eval-results-page--report .eval-compare-row--self .eval-compare-fill {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.eval-results-page--report .eval-compare-row--supervisor .eval-compare-fill {
  background: linear-gradient(90deg, #7f1d1d, #b91c1c);
}
.eval-results-page--report .eval-compare-row--others .eval-compare-fill {
  background: linear-gradient(90deg, #14532d, #16a34a);
}
.eval-results-page--report .eval-compare-pct,
.eval-results-page--report .eval-subcat-pct {
  font-size: .78rem;
  font-weight: 800;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 2.25rem;
  text-align: right;
}
.eval-results-page--report .eval-comment-field-label {
  margin: 0;
}
.eval-results-page--report .eval-results-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
}
.eval-results-page--report .eval-results-bottom-grid > .eval-cat-block--align {
  width: 100%;
  min-width: 0;
}
.eval-results-page--report .eval-cat-block--align .eval-cat-head--align {
  width: 100%;
  box-sizing: border-box;
}
.eval-results-page--report .eval-results-bottom-grid .eval-comments-panel,
.eval-results-page--report .eval-align-panel {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: 0;
  padding: .42rem .4rem .45rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.eval-results-page--report .eval-cat-block--gaps .eval-align-panel {
  flex: 1 1 auto;
}
.eval-results-page--report .eval-results-bottom-grid .eval-comment-field {
  padding: .38rem .48rem;
}
.eval-align-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.eval-align-group-title {
  margin: 0 0 .2rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.eval-align-agree {
  margin: 0 0 .28rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.eval-align-agree--enig { color: #15803d; }
.eval-align-agree--splittet { color: #b91c1c; }
.eval-gap-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1rem;
  margin: auto 0 0;
  padding: .45rem .1rem 0;
  width: 100%;
  text-align: center;
}
.eval-gap-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  color: #475569;
}
.eval-gap-legend-item::before {
  content: '';
  width: .55rem;
  height: .55rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.eval-gap-legend-item--over::before { background: #dc2626; }
.eval-gap-legend-item--under::before { background: #16a34a; }
.eval-gap-legend-item--over { color: #b91c1c; }
.eval-gap-legend-item--under { color: #15803d; }
.eval-align-group-title--strength { color: #15803d; }
.eval-align-group-title--growth { color: #b45309; }
.eval-align-group-title--gap-superv,
.eval-align-group-title--gap-others { color: var(--accent-dark, #143d5c); }
.eval-align-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  padding: .22rem .35rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, #e2e8f0);
  background: #fff;
}
.eval-align-item + .eval-align-item {
  margin-top: .28rem;
}
.eval-align-item--strength {
  border-left: 3px solid #16a34a;
}
.eval-align-item--growth {
  border-left: 3px solid #d97706;
}
.eval-align-item--gap-over {
  border-left: 3px solid #dc2626;
}
.eval-align-item--gap-under {
  border-left: 3px solid #16a34a;
}
.eval-align-item-name {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  min-width: 0;
  text-align: left;
}
.eval-align-item-pct {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-dark, #143d5c);
  text-align: right;
  line-height: 1;
}
.eval-align-item--strength .eval-align-item-pct { color: #15803d; }
.eval-align-item--growth .eval-align-item-pct { color: #b45309; }
.eval-align-item--gap-over .eval-align-item-pct { color: #b91c1c; }
.eval-align-item--gap-under .eval-align-item-pct { color: #15803d; }
.eval-align-empty {
  margin: 0;
  font-size: .72rem;
  color: #94a3b8;
}
@media (max-width: 640px) {
  .eval-align-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .eval-results-page--report .eval-results-bottom-grid {
    grid-template-columns: 1fr;
  }
}
.eval-results-page--report .eval-results-signatures {
  margin-top: auto;
  padding-top: .85rem;
  padding-bottom: .15rem;
  gap: .75rem;
  flex-shrink: 0;
}
.eval-results-page--report .eval-signature-rule {
  margin-top: .45rem;
  border-bottom: 2px solid #1e293b;
  min-height: 2.25rem;
}
@media (max-width: 640px) {
  .eval-results-subheader-top {
    grid-template-columns: 1fr;
  }
}
.eval-results-pdf-row {
  text-align: center;
  margin-top: .15rem;
}
.eval-results-back-row {
  text-align: center;
  margin-top: .55rem;
  display: flex;
  gap: .75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
#viewEvalSummary .eval-results-page--report.eval-page-wrap {
  padding-bottom: 4.75rem;
}
#viewEvalSummary .eval-results-back-row {
  position: fixed;
  left: 50%;
  bottom: .7rem;
  z-index: 40;
  width: min(210mm, calc(96vw - 1.5rem));
  transform: translateX(-50%);
  margin-top: 0;
  padding: .55rem .7rem;
  background: color-mix(in srgb, #f4f7fb 94%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #e2e8f0);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}
.eval-results-back-row .btn {
  min-width: 10.5rem;
}
#viewEvalSummary .eval-results-back-row .btn {
  min-width: 7.1rem;
}

.eval-setup-page {
  max-width: 720px;
  padding: 1.25rem 0 2rem;
}
.eval-setup-panel {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #cfd9e6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
.eval-setup-doc-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.1rem .9rem 1rem;
  min-height: 3.85rem;
}
.eval-setup-doc-header h2 {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}
.eval-setup-body {
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--panel-main-bg, #e8eef5) 55%, #fff) 100%);
}
.eval-setup-form {
  padding: 0;
}
.eval-setup-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eval-setup-form .form-group {
  margin-bottom: .75rem;
}
.eval-setup-form input[type="text"],
.eval-setup-form input[type="date"],
.eval-setup-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 10px;
  background: #fff;
  padding: .55rem .7rem;
  font-size: .88rem;
  color: #1e293b;
}
.eval-setup-form input::placeholder,
.eval-setup-form textarea::placeholder {
  color: #94a3b8;
}
.eval-setup-form input:focus,
.eval-setup-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.eval-invite-options {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: .15rem 0 .25rem;
}
.eval-invite-option {
  padding: .7rem .8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.eval-invite-check {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
}
.eval-invite-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.eval-invite-check-text {
  font-size: .86rem;
  line-height: 1.35;
}
.eval-invite-picker {
  margin: .6rem 0 0;
  padding-top: .6rem;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 20%, #e2e8f0);
}
.eval-invite-search-row {
  display: flex;
  align-items: stretch;
  gap: .45rem;
}
.eval-invite-search-row input[type="text"] {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.eval-invite-add-btn {
  flex-shrink: 0;
  appearance: none;
  border: 1.5px solid color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 62%, #fff);
  border-radius: 999px;
  padding: .45rem .85rem;
  background: linear-gradient(145deg, var(--accent-dark, #143d5c) 0%, var(--accent, #1e5a8a) 100%);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 2px 8px color-mix(in srgb, var(--accent-dark, #143d5c) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}
.eval-invite-add-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 78%, #fff);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-dark, #143d5c) 92%, #000) 0%, var(--accent-dark, #143d5c) 55%, var(--accent, #1e5a8a) 100%);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--accent-dark, #143d5c) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.eval-invite-add-btn:disabled {
  opacity: .65;
  cursor: wait;
}
.eval-invite-suggest {
  list-style: none;
  margin: .35rem 0 0;
  padding: .2rem 0;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 10px;
  background: #fff;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(15, 45, 74, .08);
}
.eval-invite-suggest li {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  padding: .42rem .7rem;
  cursor: pointer;
  font-size: .85rem;
  color: #1e293b;
}
.eval-invite-suggest li:hover,
.eval-invite-suggest li.is-active {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
}
.eval-invite-suggest-name {
  font-weight: 600;
}
.eval-invite-suggest-addr {
  font-size: .75rem;
  color: #64748b;
  font-weight: 500;
}
.eval-invite-chips {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.eval-invite-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #e2e8f0);
  font-size: .78rem;
  font-weight: 600;
  color: #1e293b;
}
.eval-invite-chip-sent {
  font-size: .7rem;
  font-weight: 600;
  color: #15803d;
  text-transform: none;
}
.eval-setup-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, #e2e8f0);
}
.eval-setup-actions .eval-setup-start-btn {
  width: auto;
  min-width: 10.5rem;
  margin-bottom: 0;
  flex: 0 1 auto;
}
.eval-setup-actions .eval-setup-cancel-btn {
  min-width: 6.5rem;
  border-color: color-mix(in srgb, var(--accent) 42%, #cbd5e1);
  color: var(--accent-dark);
  background: #fff;
}
.eval-setup-actions .eval-setup-cancel-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}
.eval-page-shell .eval-wizard-progress {
  margin-bottom: .55rem;
}
.eval-page-shell .eval-wizard-meta {
  justify-content: center;
  margin-bottom: .4rem;
}
.eval-page-shell .eval-wizard-step {
  width: 100%;
  text-align: center;
  color: var(--accent-dark);
}
.eval-page-shell .eval-wizard-progress-bar {
  height: 4px;
  background: color-mix(in srgb, var(--accent) 14%, #e2e8f0);
  border: none;
}
.eval-page-shell .eval-wizard-progress-fill {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.eval-page-shell .eval-category-chip--inline {
  white-space: normal;
  text-transform: none;
  letter-spacing: .01em;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
}
.eval-page-shell .eval-wizard-question-text {
  margin: 0 auto .85rem;
  max-width: 34rem;
  text-align: center;
  color: #1e293b;
  font-size: .95rem;
}
.eval-page-shell .eval-wizard-card-body,
.eval-page-shell .eval-wizard-question {
  text-align: center;
}
.eval-page-shell .eval-rating-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .4rem;
  margin: .15rem auto 0;
  max-width: none;
  width: 100%;
}
.eval-page-shell .rating-btn--eval {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.1rem;
  padding: .35rem .4rem;
  border-radius: 8px;
  font-size: .72rem;
  line-height: 1.15;
  white-space: nowrap;
}
.eval-page-shell .eval-wizard-comments {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  border-top-color: color-mix(in srgb, var(--accent) 18%, #e2e8f0);
}
.eval-page-shell .eval-wizard-comments textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 10px;
  padding: .55rem .7rem;
}
.eval-page-shell .eval-wizard-comments textarea::placeholder {
  color: #94a3b8;
}
.eval-page-shell .eval-wizard-actions.case-player-nav {
  margin-top: 0;
}
.eval-page-shell--rating .panel-body.case-player-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1rem 1.05rem 1.15rem;
}
.eval-page-shell--rating .video-theme-block.elearning-theme-block {
  padding: 1.1rem 1rem 1.2rem;
}
.eval-page-shell--rating #evalProgressHeader:empty {
  display: none;
  margin: 0;
}
.eval-page-shell--rating .eval-wizard-question-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.35rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  min-height: 3.85rem;
  padding: 1.05rem 1.1rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: none;
  color: #fff;
  background: var(--theme-header-border, var(--accent-dark));
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 45, 74, .18);
}
.eval-page-shell--rating .eval-rating-grid {
  margin: 0 auto;
  gap: .4rem;
}
.eval-page-shell--rating .rating-btn--eval {
  min-height: 2.7rem;
  padding: .5rem .35rem;
  font-size: .7rem;
  font-weight: 700;
  border-width: 2px;
  border-style: solid;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .12);
}
.eval-page-shell--rating .rating-btn.yes {
  background: linear-gradient(145deg, #14532d 0%, #15803d 55%, #22c55e 100%);
  color: #fff;
  border-color: #14532d;
}
.eval-page-shell--rating .rating-btn.yes:hover {
  background: linear-gradient(145deg, #052e16 0%, #166534 55%, #16a34a 100%);
  border-color: #052e16;
}
.eval-page-shell--rating .rating-btn.yes.selected {
  background: linear-gradient(145deg, #052e16 0%, #14532d 60%, #15803d 100%);
  border-color: #052e16;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, .28);
}
.eval-page-shell--rating .rating-btn.partially {
  background: linear-gradient(145deg, #a16207 0%, #eab308 55%, #facc15 100%);
  color: #422006;
  border-color: #ca8a04;
}
.eval-page-shell--rating .rating-btn.partially:hover {
  background: linear-gradient(145deg, #854d0e 0%, #ca8a04 55%, #eab308 100%);
  color: #fff;
  border-color: #a16207;
}
.eval-page-shell--rating .rating-btn.partially.selected {
  background: linear-gradient(145deg, #713f12 0%, #a16207 60%, #ca8a04 100%);
  color: #fff;
  border-color: #854d0e;
  box-shadow: 0 0 0 3px rgba(202, 138, 4, .28);
}
.eval-page-shell--rating .rating-btn.no {
  background: linear-gradient(145deg, #7f1d1d 0%, #b91c1c 55%, #ef4444 100%);
  color: #fff;
  border-color: #991b1b;
}
.eval-page-shell--rating .rating-btn.no:hover {
  background: linear-gradient(145deg, #7f1d1d 0%, #991b1b 55%, #dc2626 100%);
  border-color: #7f1d1d;
}
.eval-page-shell--rating .rating-btn.no.selected {
  background: linear-gradient(145deg, #450a0a 0%, #7f1d1d 60%, #991b1b 100%);
  border-color: #7f1d1d;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .28);
}
.eval-page-shell--rating .rating-btn.dont-know {
  background: linear-gradient(145deg, #475569 0%, #64748b 55%, #94a3b8 100%);
  color: #fff;
  border-color: #334155;
}
.eval-page-shell--rating .rating-btn.dont-know:hover {
  background: linear-gradient(145deg, #334155 0%, #475569 55%, #64748b 100%);
  border-color: #1e293b;
}
.eval-page-shell--rating .rating-btn.dont-know.selected {
  background: linear-gradient(145deg, #1e293b 0%, #334155 60%, #475569 100%);
  border-color: #1e293b;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, .28);
}
.eval-page-shell--rating .rating-btn.not-applicable {
  background: linear-gradient(145deg, #0e7490 0%, #0891b2 55%, #22d3ee 100%);
  color: #fff;
  border-color: #0e7490;
}
.eval-page-shell--rating .rating-btn.not-applicable:hover {
  background: linear-gradient(145deg, #155e75 0%, #0e7490 55%, #06b6d4 100%);
  border-color: #155e75;
}
.eval-page-shell--rating .rating-btn.not-applicable.selected {
  background: linear-gradient(145deg, #164e63 0%, #155e75 60%, #0e7490 100%);
  border-color: #164e63;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .28);
}
.eval-page-shell--rating .rating-btn.selected {
  transform: scale(1.03);
}
.eval-page-shell--rating .eval-wizard-progress--below {
  margin: 1.05rem auto 0;
  max-width: 18rem;
}
.eval-page-shell--rating .eval-wizard-progress--below .eval-wizard-meta {
  justify-content: center;
  margin-bottom: .28rem;
}
.eval-page-shell--rating .eval-wizard-progress--below .eval-wizard-step {
  width: 100%;
  text-align: center;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.eval-page-shell--rating .eval-wizard-progress--below .eval-wizard-progress-bar {
  height: 3px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--accent) 10%, #e8eef4);
  opacity: .85;
}
.eval-page-shell--rating .eval-wizard-actions.case-player-nav {
  margin-top: 0;
  padding: .9rem .95rem;
}

/* Evaluation setup page (legacy unused wrap kept compact) */
.eval-setup-wrap {
  padding: 1.5rem 0 2.5rem;
  max-width: 560px;
}

.quiz-wizard-panel .rating-btn-group {
  margin-top: .25rem;
}

.eval-wizard-comments {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}
.eval-wizard-comments textarea {
  width: 100%;
  margin-top: .5rem;
}

.quiz-flash {
  margin-bottom: .75rem;
  padding: .6rem .85rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  font-size: .84rem;
  color: #065f46;
}

.exam-cert-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .75rem; padding: .65rem 1rem;
  background: #eef6ff; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  color: var(--accent-dark);
  text-decoration: none;
}

/* Final exam panel */
.panel-exam .panel-header-accent h2 { font-size: 1rem; }
.exam-panel-layout {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: 220px;
  height: 100%;
}
.exam-panel-layout--compact {
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  min-height: 0;
  align-items: center;
}
.exam-panel-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 107, 138, .12), rgba(30, 107, 138, .04));
  border: 1.5px solid rgba(30, 107, 138, .22);
  color: #1e6b8a;
  position: relative;
}
.exam-panel-icon svg { width: 24px; height: 24px; display: block; }
.exam-panel-lock {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8edf2;
  border: 1.5px solid #94a3b8;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exam-panel-lock svg { width: 12px; height: 12px; }
.exam-panel-layout.is-locked {
  filter: grayscale(.45);
  opacity: .82;
}
.exam-panel-layout.is-locked .exam-panel-icon {
  background: #e8edf2;
  border-color: #cbd5e1;
  color: #94a3b8;
}
.exam-panel-layout.is-locked #examBtn,
.course-material-exam.is-locked #examBtn {
  background: #94a3b8;
  border-color: #94a3b8;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}
.exam-failed-title {
  color: #b45309;
  font-weight: 700;
  font-size: .92rem;
  margin: 0 0 .2rem;
}
.exam-panel-layout--compact .exam-panel-content {
  gap: .5rem;
  justify-content: flex-start;
}
.exam-panel-layout--compact .exam-requirements {
  font-size: .78rem;
  line-height: 1.4;
}
.exam-panel-layout--compact .exam-result .exam-passed-title {
  font-size: .88rem;
}
.exam-panel-layout--compact .exam-result .exam-passed-sub {
  font-size: .78rem;
}
.exam-panel-visual {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #fdf8ef, #f0e4cc);
  border: 2px solid color-mix(in srgb, var(--accent) 35%, #c9a227);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}
.exam-panel-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.exam-draft-meta {
  font-size: .75rem;
  color: var(--muted);
  margin: .35rem 0 .25rem;
}
.exam-panel-visual-badge {
  display: inline-block;
  margin-top: .35rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, .12);
  border: 1px solid rgba(22, 163, 74, .35);
  color: #166534;
  font-size: .72rem;
  font-weight: 700;
}
.exam-flash {
  margin-bottom: .65rem;
  padding: .55rem .8rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  font-size: .82rem;
  color: #065f46;
}
.quiz-wizard-category {
  margin: 0 0 .45rem;
  padding: .32rem .5rem .36rem .55rem;
  border-left: 3px solid #e0f2fe;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #e0f2fe;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.exam-panel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .85rem;
  min-height: 100%;
}
.exam-requirements {
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
  line-height: 1.5;
}
.exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.exam-result {
  margin-top: .15rem;
}
.exam-result p { margin: 0 0 .35rem; }
.exam-result .exam-passed-title {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}
.exam-result .exam-passed-sub {
  color: var(--muted);
  font-size: .85rem;
}
body.theme-medical .exam-panel-visual {
  background: linear-gradient(145deg, #f4fafd, #e8f2f7);
}
.quiz-category-grid-narrow {
  grid-template-columns: 1fr;
  gap: .75rem;
}
.quiz-category-grid-narrow .quiz-category-card {
  min-height: auto;
  padding: .85rem;
  flex-direction: row;
  text-align: left;
  gap: .85rem;
  align-items: flex-start;
}
.quiz-category-grid-narrow .quiz-category-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  margin-top: .1rem;
}
.quiz-category-grid-narrow .quiz-category-icon svg { width: 20px; height: 20px; }
.quiz-category-grid-narrow .quiz-category-card h3 { font-size: .88rem; margin: 0; }
.quiz-category-grid-narrow .quiz-category-card p { font-size: .75rem; margin: 0; display: none; }
.quiz-category-grid-narrow .quiz-category-card .quiz-meta { font-size: .72rem; margin: 0; }
.quiz-category-grid-narrow .quiz-category-card > div,
.quiz-category-grid-narrow .quiz-category-card .quiz-card-text { flex: 1; min-width: 0; }

.quiz-category-grid-tight {
  gap: .45rem;
}
.quiz-category-grid-tight .quiz-category-card {
  padding: .55rem .65rem;
  gap: .55rem;
  align-items: flex-start;
}
.quiz-category-grid-tight .quiz-category-icon {
  width: 34px;
  height: 34px;
  margin-top: .1rem;
}
.quiz-category-grid-tight .quiz-category-icon svg { width: 18px; height: 18px; }
.quiz-category-grid-tight .quiz-category-card h3 { font-size: .8rem; }
.quiz-category-grid-tight .quiz-category-card .quiz-meta { font-size: .68rem; }

.case-list-compact .case-list-item { padding: .5rem 0; gap: .65rem; }
.case-list-compact .case-name { font-size: .82rem; }
.case-list-compact .btn-sm { padding: .3rem .65rem; font-size: .75rem; }

/* Case list with SVG icons */
.case-list-icon {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
}
.case-list-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.case-list-icon--triage { background: linear-gradient(145deg, #7f1d1d, #b91c1c); }
.case-list-icon--medication { background: linear-gradient(145deg, #1e3a5f, #1e5a8a); }
.case-list-icon--icu { background: linear-gradient(145deg, #1e40af, #2563eb); }
.case-list-icon--pediatric { background: linear-gradient(145deg, #334155, #475569); }
.case-list-icon--mass { background: linear-gradient(145deg, #991b1b, #dc2626); }
.case-list-icon--custom { background: linear-gradient(145deg, #0f172a, #334155); }
.case-list-icon--create { background: linear-gradient(145deg, #1e3a8a, #2563eb); }
.case-list-icon--game { background: linear-gradient(145deg, #1e293b, #475569); }

/* Case list items */
.case-list-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 0;
  border-bottom: 1px solid #eef2f7;
}
.case-list-item:last-child { border-bottom: none; }
.case-list-item .case-name { flex: 1; font-weight: 600; font-size: .84rem; min-width: 0; }
.case-list-item--create .case-name { color: var(--muted); font-weight: 500; }

/* Legacy video grid (unused) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.video-item {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  position: relative;
  cursor: pointer;
  transition: transform .2s;
}
.video-item:hover:not(.locked) { transform: translateY(-2px); box-shadow: var(--shadow); }
.video-item.locked { opacity: .6; cursor: not-allowed; }
.video-thumb {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.5rem;
  position: relative;
}
.video-item.watched .video-thumb { background: var(--success); }
.video-item.watched .video-thumb::after {
  content: '✓';
  position: absolute;
  bottom: -4px; right: -4px;
  background: #fff;
  color: var(--success);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--success);
  animation: popIn .4s ease;
}
@keyframes popIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.video-item.in-progress .video-thumb {
  background: linear-gradient(90deg, var(--success) 50%, var(--accent) 50%);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.lock-icon { position: absolute; top: 8px; right: 8px; font-size: 1rem; }
.video-item span { font-size: .82rem; font-weight: 600; }

/* Quiz tabs */
.quiz-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.quiz-tab {
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
}
.quiz-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.quiz-question { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #eef2f7; }
.quiz-question p { font-weight: 600; margin-bottom: .5rem; font-size: .92rem; }
.quiz-options label {
  display: block;
  padding: .45rem .75rem;
  margin-bottom: .35rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .88rem;
}
.quiz-options label:hover { background: #f1f5f9; }
.quiz-score { background: #eef6ff; padding: 1rem; border-radius: 8px; margin-top: 1rem; font-weight: 600; }

/* Evaluation Tool action cards */
.insight-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.insight-action-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all .2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
}
.insight-action-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  background: #f8fafc;
}
.insight-action-card--outline {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.insight-action-card--outline:hover {
  border-color: var(--accent);
}
.insight-action-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 107, 138, .12), rgba(30, 107, 138, .04));
  border: 1.5px solid rgba(30, 107, 138, .22);
  color: #1e6b8a;
}
.insight-action-icon svg { width: 24px; height: 24px; display: block; }
.insight-action-card--outline .insight-action-icon {
  background: linear-gradient(135deg, rgba(148, 163, 184, .12), rgba(148, 163, 184, .04));
  border-color: rgba(148, 163, 184, .35);
  color: #64748b;
}
.insight-action-text h3 {
  font-size: 1.15rem;
  margin-bottom: .35rem;
  color: var(--text);
}
.insight-action-text p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .65rem;
  line-height: 1.45;
}
.insight-action-cta {
  display: inline-block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--accent);
  padding: .5rem 1rem;
  background: rgba(30, 90, 138, .08);
  border-radius: 8px;
}
.insight-action-card--outline .insight-action-cta {
  background: var(--white);
  border: 1px solid var(--accent);
}
.insight-ratings-title {
  font-size: .95rem;
  margin-bottom: .75rem;
  color: var(--muted);
  font-weight: 600;
}
.insight-ratings-title--compact {
  font-size: .78rem;
  margin-bottom: .45rem;
  margin-top: .25rem;
}

/* Compact insight cards (Tools) */
.insight-actions--compact {
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-bottom: .65rem;
}
.insight-actions--compact.insight-actions--row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  margin-bottom: 0;
}
.insight-actions--compact.insight-actions--row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  margin-bottom: 0;
}
.insight-actions--stack {
  grid-template-columns: 1fr;
}
.insight-actions--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.insight-action-card--compact {
  padding: .65rem .75rem;
  gap: .65rem;
  border-width: 1.5px;
}
.insight-action-card--compact:hover {
  transform: translateY(-1px);
}
.insight-action-card--compact .insight-action-icon {
  width: 48px;
  height: 48px;
}
.insight-action-card--compact .insight-action-icon svg {
  width: 24px;
  height: 24px;
}
.insight-action-card--compact .insight-action-text h3 {
  font-size: .82rem;
  margin-bottom: .2rem;
}
.insight-action-card--compact .insight-action-text p {
  display: none;
}
.insight-action-card--compact .insight-action-cta {
  font-size: .72rem;
  padding: .25rem .55rem;
  border-radius: 6px;
}

/* Tools panels — split layout (Insight, Briefing, Feedback) */
.insight-panel-split {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 1.15rem;
  align-items: start;
}
.insight-panel-actions {
  min-width: 0;
}
#panelEval .insight-panel-ratings,
.insight-panel-split .tools-record-block,
.insight-panel-split .insight-panel-ratings {
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .5rem .6rem;
}
.tools-record-block {
  margin-top: .45rem;
}
.insight-panel-split .tools-record-block,
.insight-panel-split .insight-panel-ratings {
  margin-top: 0;
}
.tools-record-block .insight-ratings-title--compact {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
  margin-bottom: .35rem;
}
.tools-record-block .eval-rating-table {
  min-width: 0;
}
.tools-record-block .eval-rating-head,
.tools-record-block .eval-rating-line-btn {
  display: grid;
  grid-template-columns: 1fr 4.75rem 2.75rem;
  gap: .4rem;
  align-items: center;
}
.tools-record-block .eval-rating-head {
  padding: .22rem .15rem .28rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: .1rem;
}
.tools-record-block .eval-rating-head .eval-rating-col {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
.tools-record-block .eval-rating-col--date {
  text-align: right;
}
.tools-record-block .eval-rating-list {
  gap: 0;
}
.tools-record-block .eval-rating-item--line {
  padding: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #e8edf2;
  background: transparent;
  box-shadow: none;
}
.tools-record-block .eval-rating-item--line:last-child {
  border-bottom: none;
}
.tools-record-block .eval-rating-item--line:hover {
  background: transparent;
}
.tools-record-block .eval-rating-line-btn {
  width: 100%;
  padding: .28rem .15rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.tools-record-block .eval-rating-line-btn:hover .eval-rating-col--name {
  color: #0f172a;
}
.tools-record-block .eval-rating-line-btn:hover .eval-rating-col--action {
  color: #1a5f7a;
}
.tools-record-block .eval-rating-col--name {
  min-width: 0;
  font-size: .7rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tools-record-block .eval-rating-col--date {
  font-size: .68rem;
  color: #64748b;
  white-space: nowrap;
}
.tools-record-block .eval-rating-col--action {
  font-size: .64rem;
  font-weight: 600;
  color: #1e6b8a;
  text-align: right;
}
.tools-record-block .eval-rating-empty {
  background: #fff;
  border: none;
  border-bottom: 1px dashed #e2e8f0;
  color: #94a3b8;
  padding: .35rem .15rem;
  font-size: .7rem;
  text-align: left;
}
.insight-panel-split .insight-panel-actions .insight-actions--compact {
  grid-template-columns: 1fr;
  gap: .4rem;
  margin-bottom: 0;
}
#panelBriefing .insight-panel-split {
  grid-template-columns: minmax(170px, 200px) 1fr;
  align-items: start;
}
/* —— Evaluation Tool: blue —— */
#panelEval .panel-header-accent {
  border-top-color: #2563eb;
}
.eval-start-rating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid #2563eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .22);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.eval-start-rating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
  border-color: #3b82f6;
}
.eval-start-rating-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  flex-shrink: 0;
}
.eval-start-rating-icon svg { width: 18px; height: 18px; display: block; }
.eval-rating-choice-modal {
  width: min(92vw, 380px);
  padding: 1.35rem 1.15rem 1.2rem;
  text-align: center;
  border-top: none;
  overflow: hidden;
}
.eval-rating-choice-header {
  margin: 0 0 .95rem;
  padding: .85rem 1rem .75rem;
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  border: 2px solid var(--theme-header-border, #0a2540);
  border-radius: 12px;
}
.eval-rating-choice-header h2 {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}
.eval-rating-choice-body {
  padding: 0 .15rem;
}
.eval-rating-choice-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
}
.eval-rating-choice-modal .eval-rating-choice-btn {
  width: auto;
  min-width: 11.5rem;
  max-width: 100%;
  margin: 0;
  padding: .48rem .9rem;
  font-size: .76rem;
  justify-content: center;
  border: 1.5px solid color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 62%, #fff);
  background: linear-gradient(145deg, var(--accent-dark, #143d5c) 0%, var(--accent, #1e5a8a) 100%);
  color: #fff;
  box-shadow:
    0 2px 8px color-mix(in srgb, var(--accent-dark, #143d5c) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}
.eval-rating-choice-modal .eval-rating-choice-btn:hover {
  filter: brightness(1.06);
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 78%, #fff);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-dark, #143d5c) 92%, #000) 0%, var(--accent-dark, #143d5c) 55%, var(--accent, #1e5a8a) 100%);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--accent-dark, #143d5c) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}
.eval-rating-choice-modal .case-create-game-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, .18);
  color: #ecfdf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .24);
}
.eval-rating-choice-modal .case-create-game-icon svg {
  width: 14px;
  height: 14px;
}
.eval-summary-create-btn {
  margin-bottom: 0;
}
.eval-summary-modal {
  width: min(92vw, 420px);
  padding: 1.35rem 1.15rem 1.2rem;
  text-align: center;
  border-top: none;
  overflow: hidden;
}
.eval-summary-modal-body {
  padding: 0 .15rem;
  text-align: left;
}
.eval-summary-modal-lead {
  margin: 0 0 .85rem;
  font-size: .82rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}
.eval-summary-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .55rem;
}
.eval-summary-date-row .form-group {
  margin: 0;
}
.eval-summary-modal-count {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-align: center;
}
.eval-summary-modal-submit {
  width: 100%;
  margin: 0;
  justify-content: center;
}
.eval-summary-section {
  margin-bottom: .85rem;
}
.eval-summary-section--overall .eval-summary-overall-body {
  padding: .55rem .15rem .15rem;
}
.eval-summary-totals-row {
  margin: 0;
}
.eval-summary-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .15rem .05rem .25rem;
}
.eval-summary-charts-grid--stack {
  grid-template-columns: 1fr;
  gap: .42rem;
}
.eval-summary-charts-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  margin: .08rem .12rem .1rem;
}
.eval-summary-charts-legend {
  justify-content: flex-end;
  margin: 0;
}
.eval-summary-charts-period {
  margin: 0;
  font-size: .68rem;
  font-weight: 600;
  color: #475569;
}
.eval-summary-charts-period-label {
  font-weight: 700;
  color: #334155;
}
.eval-summary-chart {
  margin: 0;
  padding: .4rem .4rem .35rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}
.eval-summary-chart--situational_awareness { border-top: 3px solid #1e5a8a; }
.eval-summary-chart--decision_making { border-top: 3px solid #166534; }
.eval-summary-chart--stress_management { border-top: 3px solid #991b1b; }
.eval-summary-chart--teamwork { border-top: 3px solid #1a1a1a; }
.eval-summary-chart-title {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--accent-dark);
  text-align: center;
  line-height: 1.25;
}
.eval-summary-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}
.eval-summary-chart-grid {
  stroke: #e2e8f0;
  stroke-width: .6;
}
.eval-summary-chart-axis {
  stroke: #94a3b8;
  stroke-width: 1;
}
.eval-summary-chart-axis-y,
.eval-summary-chart-axis-x {
  fill: #64748b;
  font-size: 8px;
  font-family: inherit;
}
.eval-summary-chart-period {
  fill: #475569;
  font-size: 7.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .02em;
}
.eval-summary-chart-axis-label {
  fill: #64748b;
  font-size: 8px;
  font-family: inherit;
}
.eval-summary-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .55rem;
  margin-top: .35rem;
}
.eval-summary-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .62rem;
  font-weight: 600;
  color: #475569;
}
.eval-summary-chart-legend-item::before {
  content: '';
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: currentColor;
}
.eval-summary-chart-legend-item--self { color: var(--accent-dark); }
.eval-summary-chart-legend-item--supervisor { color: #991b1b; }
.eval-summary-chart-legend-item--others { color: #15803d; }
.eval-summary-chart-empty {
  padding: 1rem .5rem;
  text-align: center;
  font-size: .76rem;
  color: #94a3b8;
}
.eval-summary-performance-dual {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: .2rem .1rem .35rem;
}
.eval-summary-performance-pair + .eval-summary-performance-pair {
  padding-top: .15rem;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 18%, #e2e8f0);
}
.eval-summary-performance-subtitle {
  margin: 0 0 .45rem;
  padding: 0 .1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eval-summary-section--poor .eval-summary-best-rank {
  background: color-mix(in srgb, #991b1b 12%, #f8fafc);
  color: #991b1b;
}
.eval-summary-section--poor .eval-summary-best-stat-pct {
  color: #991b1b;
}
.eval-summary-section--best .eval-summary-best-rank {
  background: color-mix(in srgb, #15803d 12%, #f8fafc);
  color: #3f9a5f;
}
.eval-summary-section--best .eval-summary-best-stat-pct {
  color: #3f9a5f;
}
.eval-summary-section--gaps .eval-summary-best-rank {
  background: color-mix(in srgb, #b91c1c 10%, #f8fafc);
  color: #991b1b;
}
.eval-summary-gap-stat.eval-align-item--gap-over .eval-summary-gap-pct {
  color: #b91c1c;
}
.eval-summary-gap-stat.eval-align-item--gap-under .eval-summary-gap-pct {
  color: #15803d;
}
.eval-summary-gap-stat.eval-summary-gap-stat--aligned .eval-summary-gap-pct {
  color: #64748b;
}
.eval-summary-gap-detail {
  display: block;
  margin-top: .12rem;
  font-size: .68rem;
  color: #64748b;
}
.eval-summary-gap-stat--self-higher .eval-summary-gap-pct {
  color: #b91c1c;
}
.eval-summary-gap-stat--other-higher .eval-summary-gap-pct {
  color: #15803d;
}
.eval-summary-best-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: .7rem;
  padding: .2rem .1rem .35rem;
}
.eval-summary-best-stats,
.eval-summary-best-narrative {
  padding: .7rem .75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.eval-summary-best-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .45rem 0;
  border-top: 1px solid #eef2f7;
}
.eval-summary-best-stat:first-child {
  border-top: none;
  padding-top: 0;
}
.eval-summary-best-rank {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, #e2e8f0);
  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 800;
}
.eval-summary-best-stat-body {
  min-width: 0;
}
.eval-summary-best-stat-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.eval-summary-best-stat-cat {
  display: block;
  font-size: .68rem;
  color: #64748b;
}
.eval-summary-best-stat-pct {
  font-size: .92rem;
  font-weight: 800;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}
.eval-summary-best-narrative p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
  color: #334155;
}
.eval-summary-best-narrative strong {
  color: #0f172a;
}
.eval-summary-best-empty {
  margin: 0;
  font-size: .76rem;
  color: #94a3b8;
}
.eval-summary-section--executive {
  margin-bottom: 1rem;
}
.eval-summary-themed .eval-summary-executive-head {
  margin-bottom: .45rem;
  padding: .45rem .65rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 8%, #fff) 0%,
    color-mix(in srgb, var(--prof-heading, var(--accent-light, var(--accent))) 12%, #fff) 55%,
    #fff 100%
  );
}
.eval-summary-themed .eval-summary-executive-title {
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eval-summary-themed .eval-summary-executive-body {
  padding: .7rem .85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 12%, transparent);
}
.eval-summary-themed .eval-summary-executive-body p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
  color: #334155;
}
.eval-summary-executive-list {
  margin: 0;
  padding: 0 0 0 1.05rem;
}
.eval-summary-executive-list li {
  margin: 0;
  padding: 0;
  font-size: .84rem;
  line-height: 1.28;
  color: #334155;
}
.eval-summary-executive-list li + li {
  margin-top: .1rem;
}
.eval-summary-themed .eval-summary-executive-body p + p {
  margin-top: .32rem;
}
.eval-summary-themed .eval-summary-executive-body strong {
  color: var(--accent-dark);
}
.eval-summary-section--insights,
.eval-summary-section--focus {
  margin-top: .55rem;
}
.eval-summary-development-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding: .15rem .05rem .1rem;
}
.eval-summary-best-row--stacked {
  grid-template-columns: 1fr;
  gap: .4rem;
  padding: .1rem 0 0;
}
.eval-summary-insight-group--declining .eval-summary-best-stat-pct {
  color: #c2410c;
}
.eval-summary-insight-group--improved .eval-summary-best-stat-pct {
  color: var(--accent-dark);
}
.eval-summary-insights-panel--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.eval-summary-themed .eval-summary-insight-group--improved {
  border-top: none;
}
.eval-summary-insight-group--declining {
  border-top: none;
}
.eval-summary-themed .eval-summary-insight-group--calibration {
  border-top: 3px solid var(--prof-heading, var(--accent));
}
.eval-summary-insight-badge--down {
  background: #ffedd5;
  color: #c2410c;
}
.eval-summary-calibration {
  margin-top: .15rem;
}
.eval-summary-themed .eval-summary-calibration-score {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}
.eval-summary-themed .eval-summary-calibration-label {
  margin-top: .25rem;
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent);
}
.eval-summary-calibration-detail {
  margin: .4rem 0 0;
  font-size: .72rem;
  line-height: 1.45;
  color: #475569;
}
.eval-summary-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  padding: .2rem .1rem .35rem;
}
.eval-summary-themed .eval-summary-focus-panel {
  padding: .7rem .75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 8%, transparent);
}
.eval-summary-themed .eval-summary-focus-subtitle {
  margin: 0 0 .45rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eval-summary-focus-list,
.eval-summary-focus-questions {
  margin: 0;
  padding-left: 1rem;
}
.eval-summary-focus-item {
  margin-bottom: .45rem;
  font-size: .78rem;
  line-height: 1.4;
  color: #334155;
}
.eval-summary-focus-item:last-child {
  margin-bottom: 0;
}
.eval-summary-focus-cat,
.eval-summary-focus-reason {
  display: block;
  font-size: .68rem;
  color: #64748b;
}
.eval-summary-focus-questions li {
  font-size: .78rem;
  line-height: 1.45;
  color: #334155;
  margin-bottom: .35rem;
}
.eval-summary-themed .eval-summary-focus-questions li strong {
  color: var(--accent-dark);
}
.eval-summary-insights-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .4rem .5rem .5rem;
}
.eval-summary-insight-group {
  padding: .45rem .5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.eval-summary-insight-title {
  margin: 0 0 .25rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eval-summary-insight-lead {
  margin: 0 0 .4rem;
  font-size: .68rem;
  line-height: 1.35;
  color: #64748b;
}
.eval-summary-insight-empty {
  margin: 0;
  font-size: .76rem;
  line-height: 1.4;
  color: #94a3b8;
}
.eval-summary-insight-item {
  padding: .35rem 0;
  border-top: 1px solid #eef2f7;
}
.eval-summary-insight-item:first-of-type {
  border-top: none;
  padding-top: 0;
}
.eval-summary-insight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .45rem;
  margin-bottom: .2rem;
}
.eval-summary-insight-name {
  font-size: .76rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.eval-summary-insight-badge {
  flex-shrink: 0;
  padding: .12rem .4rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.eval-summary-insight-badge--up {
  background: #dcfce7;
  color: #166534;
}
.eval-summary-insight-badge--gap {
  background: #fef3c7;
  color: #92400e;
}
.eval-summary-insight-cat {
  display: block;
  font-size: .68rem;
  color: #64748b;
  margin-bottom: .15rem;
}
.eval-summary-insight-detail {
  display: block;
  font-size: .72rem;
  color: #475569;
}
.eval-summary-comments-wrap {
  margin-top: 1.75rem;
}
.eval-summary-comments-wrap > .eval-cat-head--comments {
  margin-bottom: .55rem;
}
.eval-results-page--report .eval-summary-comment-cat-block .eval-cat-head {
  min-height: auto;
  padding: .28rem .5rem .28rem .55rem;
  margin-bottom: 0;
  gap: 0;
  border-left: 3px solid #cbd5e1;
  border-radius: 0;
  background: #f8fafc;
  box-shadow: none;
}
.eval-results-page--report .eval-summary-comment-cat-block.eval-cat-block--situational_awareness .eval-cat-head {
  border-left-color: #1e5a8a;
  background: color-mix(in srgb, #1e5a8a 7%, #f8fafc);
}
.eval-results-page--report .eval-summary-comment-cat-block.eval-cat-block--decision_making .eval-cat-head {
  border-left-color: #166534;
  background: color-mix(in srgb, #166534 7%, #f8fafc);
}
.eval-results-page--report .eval-summary-comment-cat-block.eval-cat-block--stress_management .eval-cat-head {
  border-left-color: #991b1b;
  background: color-mix(in srgb, #991b1b 7%, #f8fafc);
}
.eval-results-page--report .eval-summary-comment-cat-block.eval-cat-block--teamwork .eval-cat-head {
  border-left-color: #1a1a1a;
  background: color-mix(in srgb, #1a1a1a 6%, #f8fafc);
}
.eval-results-page--report .eval-summary-comment-cat-block .eval-cat-title {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #334155;
}
.eval-summary-comments-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
  padding: .2rem .1rem .35rem;
  align-items: stretch;
}
.eval-summary-comment-cat-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.eval-summary-comment-cat-block .eval-cat-head {
  margin-bottom: 0;
  border-radius: 0;
}
.eval-summary-comment-cat-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  flex: 1;
  padding: .5rem .55rem .6rem;
  min-width: 0;
  align-items: stretch;
}
.eval-summary-comment-subbox {
  min-width: 0;
  min-height: 5.75rem;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: .5rem .55rem;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #f8fafc;
}
.eval-summary-comment-subbox-title {
  margin: 0 0 .35rem;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-shrink: 0;
}
.eval-summary-comment-list {
  margin: 0;
  padding-left: 1rem;
  list-style: disc;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.eval-summary-comment-bullet {
  font-size: .74rem;
  line-height: 1.4;
  color: #334155;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.eval-summary-comment-bullet + .eval-summary-comment-bullet {
  margin-top: .28rem;
}
.eval-summary-comment-bullet.is-empty {
  list-style: none;
  margin-left: -1rem;
  color: #94a3b8;
}
.eval-summary-comments-panel {
  padding: .65rem .75rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.eval-summary-comment-cat-title {
  margin: 0 0 .45rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.eval-summary-comment-empty {
  margin: 0;
  font-size: .76rem;
  color: #94a3b8;
}
.eval-summary-comment-item {
  padding: .55rem .65rem;
  margin-bottom: .45rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.eval-summary-comment-item:last-child {
  margin-bottom: 0;
}
.eval-summary-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin-bottom: .35rem;
  font-size: .68rem;
  color: #64748b;
}
.eval-summary-comment-source {
  font-weight: 700;
  color: var(--accent-dark);
}
.eval-summary-comment-body {
  font-size: .8rem;
  line-height: 1.45;
  color: #334155;
}
@media (max-width: 720px) {
  .eval-summary-change-sources,
  .eval-summary-change-under-charts,
  .eval-summary-development-dual,
  .eval-summary-insights-panel--triple,
  .eval-summary-focus-grid {
    grid-template-columns: 1fr;
  }
  .eval-summary-charts-grid {
    grid-template-columns: 1fr;
  }
  .eval-summary-best-row {
    grid-template-columns: 1fr;
  }
  .eval-summary-insights-panel {
    grid-template-columns: 1fr;
  }
  .eval-summary-date-row {
    grid-template-columns: 1fr;
  }
}
#panelEval .insight-action-card--self {
  background: #fff;
  border-color: #2563eb;
}
#panelEval .insight-action-card--self .insight-action-icon {
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
#panelEval .insight-action-card--friend {
  background: #fff;
  border-color: #93c5fd;
}
#panelEval .insight-action-card--friend .insight-action-icon {
  background: linear-gradient(145deg, #2563eb, #3b82f6);
  box-shadow: 0 2px 6px rgba(59, 130, 246, .22);
}
#panelEval .insight-action-card--supervisor {
  background: #fff;
  border-color: #60a5fa;
}
#panelEval .insight-action-card--supervisor .insight-action-icon {
  background: linear-gradient(145deg, #1e40af, #1d4ed8);
  box-shadow: 0 2px 6px rgba(29, 78, 216, .25);
}

/* —— Feedback Session: red —— */
#panelFeedback .panel-header-accent {
  border-top-color: #dc2626;
}
#panelFeedback .insight-action-card--feedback-start {
  border-color: #fca5a5;
}
#panelFeedback .insight-action-card--feedback-start .insight-action-icon {
  background: linear-gradient(145deg, #b91c1c, #dc2626);
  box-shadow: 0 2px 6px rgba(220, 38, 38, .25);
}
#panelFeedback .insight-action-card--feedback-join {
  border-color: #fecaca;
}
#panelFeedback .insight-action-card--feedback-join .insight-action-icon {
  background: linear-gradient(145deg, #7f1d1d, #991b1b);
  box-shadow: 0 2px 6px rgba(153, 27, 27, .28);
}

/* —— Briefing: green —— */
#panelBriefing .panel-header-accent {
  border-top-color: #16a34a;
}
#panelBriefing .insight-action-card--briefing {
  border-color: #86efac;
}
#panelBriefing .insight-action-card--briefing .insight-action-icon {
  background: linear-gradient(145deg, #15803d, #22c55e);
  box-shadow: 0 2px 6px rgba(34, 197, 94, .25);
}
#panelBriefing .tools-column-actions .insight-actions--stack {
  align-items: center;
}
#panelBriefing .tools-column-actions .insight-action-card--briefing {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: auto;
  max-width: 9.5rem;
  min-height: 3.35rem;
  padding: .4rem .55rem;
  gap: .3rem;
}
#panelBriefing .tools-column-actions .insight-action-card--briefing .insight-action-icon {
  width: 1.55rem;
  height: 1.55rem;
}
#panelBriefing .tools-column-actions .insight-action-card--briefing .insight-action-text h3 {
  font-size: .68rem;
  line-height: 1.2;
}

#panelEval.tools-panel-styled .insight-ratings-title--compact { color: #1e40af; }
#panelFeedback.tools-panel-styled .insight-ratings-title--compact { color: #991b1b; }
#panelBriefing.tools-panel-styled .insight-ratings-title--compact { color: #15803d; }

/* —— Decision Games: slate (matches tools-panel-styled look) —— */
#panelCases .panel-header-accent {
  border-top-color: #475569;
}
#panelCases.tools-panel-styled .panel-body-compact {
  padding-top: .85rem;
  padding-bottom: .85rem;
}
#panelCases.tools-panel-styled .case-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#panelCases.tools-panel-styled .case-list-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: start;
  gap: .45rem .6rem;
  padding: .55rem .65rem;
  background: var(--dashboard-list-card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}
#panelCases.tools-panel-styled .case-list-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
}
#panelCases.tools-panel-styled .case-list-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .15);
  margin-top: .05rem;
}
#panelCases.tools-panel-styled .case-list-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
#panelCases.tools-panel-styled .case-name {
  min-width: 0;
  font-size: .82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}
#panelCases.tools-panel-styled .case-list-item--create {
  margin-top: .25rem;
}
#panelCases.tools-panel-styled .case-list-item--create .case-name {
  color: #64748b;
  font-weight: 600;
}
#panelCases.tools-panel-styled .btn-sm {
  padding: .28rem .55rem;
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: .05rem;
}
#panelBriefing .panel-header-accent h2,
#panelFeedback .panel-header-accent h2,
#panelCases .panel-header-accent h2 {
  font-size: .88rem;
}
.tools-panel-styled .tools-column-actions .insight-actions--row-3,
.tools-panel-styled .tools-column-actions .insight-actions--row-2 {
  display: grid;
  margin-bottom: 0;
}
.tools-panel-styled .tools-column-actions .insight-actions--row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tools-panel-styled .tools-column-actions .insight-actions--row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tools-panel-styled .tools-column-actions .insight-actions--row-3 .insight-action-card--compact,
.tools-panel-styled .tools-column-actions .insight-actions--row-2 .insight-action-card--compact {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .55rem .25rem .5rem;
  min-height: 0;
  gap: .35rem;
}
.tools-panel-styled .tools-column-actions .insight-actions--row-3 .insight-action-icon,
.tools-panel-styled .tools-column-actions .insight-actions--row-2 .insight-action-icon,
.tools-panel-styled .insight-action-card--briefing .insight-action-icon {
  color: #fff;
}
.tools-panel-styled .tools-column-actions .insight-actions--row-3 .insight-action-icon,
.tools-panel-styled .tools-column-actions .insight-actions--row-2 .insight-action-icon {
  width: 2.25rem;
  height: 2.25rem;
}
.tools-panel-styled .tools-column-actions .insight-actions--row-3 .insight-action-icon svg,
.tools-panel-styled .tools-column-actions .insight-actions--row-2 .insight-action-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.tools-panel-styled .tools-column-actions .insight-actions--row-3 .insight-action-text h3,
.tools-panel-styled .tools-column-actions .insight-actions--row-2 .insight-action-text h3 {
  font-size: .62rem;
  line-height: 1.2;
  word-break: break-word;
}
.tools-panel-styled .insight-action-card--compact {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem .85rem .9rem;
  gap: .55rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}
.tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline) {
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
  border-color: #2563eb;
  border-width: 2px;
}
.tools-panel-styled .insight-action-card--outline {
  background: #fff;
  border-color: #94a3b8;
  border-width: 2px;
}
.tools-panel-styled .insight-action-card--compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 58, 138, .15);
}
.tools-panel-styled .insight-action-card--outline:hover {
  border-color: #334155;
  background: #f8fafc;
}
.tools-panel-styled .insight-action-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.tools-panel-styled .insight-action-icon svg {
  width: 26px;
  height: 26px;
}
.tools-panel-styled .insight-action-card--outline .insight-action-icon {
  background: linear-gradient(145deg, #0f172a 0%, #475569 100%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .28);
  color: #f8fafc;
}

/* Tools — panel colour themes (Insight blue · Feedback red · Briefing green) */
#panelEval.tools-panel-styled .insight-action-card--self .insight-action-icon {
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
#panelEval.tools-panel-styled .insight-action-card--friend .insight-action-icon {
  background: linear-gradient(145deg, #2563eb, #3b82f6);
  box-shadow: 0 2px 6px rgba(59, 130, 246, .22);
}
#panelEval.tools-panel-styled .insight-action-card--supervisor .insight-action-icon {
  background: linear-gradient(145deg, #1e40af, #1d4ed8);
  box-shadow: 0 2px 6px rgba(29, 78, 216, .25);
}
#panelFeedback.tools-panel-styled .insight-action-card--feedback-start .insight-action-icon {
  background: linear-gradient(145deg, #b91c1c, #dc2626);
  box-shadow: 0 2px 6px rgba(220, 38, 38, .25);
}
#panelFeedback.tools-panel-styled .insight-action-card--feedback-join .insight-action-icon {
  background: linear-gradient(145deg, #7f1d1d, #991b1b);
  box-shadow: 0 2px 6px rgba(153, 27, 27, .28);
}
#panelBriefing.tools-panel-styled .insight-action-card--briefing .insight-action-icon {
  background: linear-gradient(145deg, #15803d, #22c55e);
  box-shadow: 0 2px 6px rgba(34, 197, 94, .25);
}
#panelEval.tools-panel-styled .insight-action-card--self { border-color: #2563eb; background: #fff; }
#panelEval.tools-panel-styled .insight-action-card--friend { border-color: #93c5fd; background: #fff; }
#panelEval.tools-panel-styled .insight-action-card--supervisor { border-color: #60a5fa; background: #fff; }
#panelFeedback.tools-panel-styled .insight-action-card--feedback-start { border-color: #fca5a5; background: #fff; }
#panelFeedback.tools-panel-styled .insight-action-card--feedback-join { border-color: #fecaca; background: #fff; }
#panelBriefing.tools-panel-styled .insight-action-card--briefing { border-color: #86efac; background: #fff; }
#panelFeedback.tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline) {
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
  border-color: #f87171;
}
#panelBriefing.tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline) {
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  border-color: #4ade80;
}
#panelEval.tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline) {
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
  border-color: #2563eb;
}
#panelFeedback.tools-panel-styled .insight-action-card--outline { border-color: #fca5a5; }
#panelFeedback.tools-panel-styled .insight-action-card--outline:hover { border-color: #dc2626; }
#panelBriefing.tools-panel-styled .insight-action-card--compact:hover {
  box-shadow: 0 6px 18px rgba(21, 128, 61, .12);
}
#panelFeedback.tools-panel-styled .insight-action-card--compact:hover {
  box-shadow: 0 6px 18px rgba(220, 38, 38, .12);
}

.tools-panel-styled .insight-action-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  width: 100%;
}
.tools-panel-styled .insight-action-text h3 {
  margin: 0;
  font-size: .84rem;
  font-weight: 700;
  color: #0f172a;
}
.tools-panel-styled .insight-action-cta {
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #1e6b8a;
  color: #fff;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .28);
}
.tools-panel-styled .insight-action-card--outline .insight-action-cta {
  background: #fff;
  color: #1e6b8a;
  border: 1.5px solid #1e6b8a;
  box-shadow: 0 1px 4px rgba(30, 107, 138, .12);
}
.tools-panel-styled .insight-ratings-title--compact {
  font-size: .8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .5rem;
  padding-top: .65rem;
  border-top: 1px solid #e2e8f0;
}
/* Split panel: buttons left, list right — overrides tools-panel-styled defaults */
.insight-panel-split .insight-panel-actions .insight-action-card--compact {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: .55rem .65rem;
  gap: .5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  border-width: 2px;
}
.insight-panel-split .insight-panel-actions .insight-action-card--compact:not(.insight-action-card--outline) {
  background: #fff;
  border-color: #1e6b8a;
}
.insight-panel-split .insight-panel-actions .insight-action-card--compact:not(.insight-action-card--outline) .insight-action-icon {
  background: #1e6b8a;
  box-shadow: none;
}
.insight-panel-split .insight-panel-actions .insight-action-card--outline {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.insight-panel-split .insight-panel-actions .insight-action-card--outline .insight-action-icon {
  background: #475569;
  box-shadow: none;
}
.insight-panel-split .insight-panel-actions .insight-action-card--compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}
.insight-panel-split .insight-panel-actions .insight-action-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  color: #fff;
}
.insight-panel-split .insight-panel-actions .insight-action-icon svg {
  width: 18px;
  height: 18px;
}
.insight-panel-split .insight-panel-actions .insight-action-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: auto;
  gap: 0;
}
.insight-panel-split .insight-panel-actions .insight-action-text h3 {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  color: #0f172a;
}
.tools-panel-styled .eval-rating-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
}
.tools-panel-styled .eval-rating-item:not(.eval-rating-item--line) {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .8rem;
  background: var(--dashboard-list-card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
  border-bottom: none;
  flex-wrap: wrap;
}
.tools-panel-styled .eval-rating-item:not(.eval-rating-item--line):hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
}
.tools-panel-styled .eval-rating-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.tools-panel-styled .eval-rating-name {
  font-size: .84rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tools-panel-styled .eval-rating-meta {
  font-size: .72rem;
  color: #64748b;
}
.tools-panel-styled .eval-rating-score {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 800;
  color: #1e6b8a;
  background: linear-gradient(135deg, rgba(30, 107, 138, .14), rgba(30, 107, 138, .06));
  border: 1px solid rgba(30, 107, 138, .22);
  padding: .28rem .6rem;
  border-radius: 999px;
  min-width: 3.1rem;
  text-align: center;
}
.tools-panel-styled .eval-rating-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.tools-panel-styled .eval-rating-status .badge {
  font-size: .68rem;
  padding: .22rem .5rem;
}
.tools-panel-styled .eval-rating-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
.tools-panel-styled .eval-rating-actions .btn-sm {
  padding: .28rem .55rem;
  font-size: .7rem;
}
.tools-panel-styled .eval-rating-empty {
  padding: .85rem 1rem;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  border-bottom: none;
}

.eval-list-compact li:not(.eval-rating-item--line):not(.eval-rating-empty) {
  padding: .45rem .35rem;
  font-size: .78rem;
  gap: .35rem;
}
.eval-list-compact .btn-sm {
  padding: .22rem .45rem;
  font-size: .68rem;
}

/* SimSolution — entry tiles + simulators */
.simsolution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.simsolution-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--dashboard-list-card-bg);
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  font: inherit;
  color: inherit;
}
.simsolution-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent-dark, var(--accent));
}
.simsolution-tile strong {
  font-size: .95rem;
  color: var(--text);
}
.simsolution-tile span:last-child {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.35;
}
.simsolution-tile-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem;
}
.simsolution-tile-icon svg {
  width: 100%;
  height: 100%;
}
.sim-icon-monitor {
  background: linear-gradient(145deg, #0a3d4f, #1e6b8a);
  color: #7ee787;
}
.sim-icon-vent {
  background: linear-gradient(145deg, #0c3a4a, #1a7a9e);
  color: #5eead4;
}
.sim-icon-ecmo {
  background: linear-gradient(145deg, #2a1a4a, #5b3a8a);
  color: #f0abfc;
}
.sim-icon-iabp {
  background: linear-gradient(145deg, #7f1d1d, #b91c1c);
  color: #fecaca;
}
.sim-icon-prismax {
  background: linear-gradient(145deg, #1e3a5f, #2563eb);
  color: #bfdbfe;
}

.simsolution-grid--stacked {
  grid-template-columns: 1fr;
  gap: .45rem;
}
.simsolution-grid--tools-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--list-row-gap, .5rem);
  align-content: start;
}
#panelSimSolution .simsolution-grid--tools-row {
  width: 100%;
  flex: 1;
  min-height: 0;
  align-self: stretch;
}
#panelSimSolution .simsolution-tile.simsolution-tile--lecture {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  min-height: var(--list-row-h, 2.5rem);
  height: var(--list-row-h, 2.5rem);
  padding: .32rem .45rem .32rem .28rem;
  gap: .28rem;
  border: 1px solid var(--dashboard-list-card-border);
  border-radius: 10px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
#panelSimSolution .simsolution-tile.simsolution-tile--lecture:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
  background: #fff;
  transform: translateY(-3px);
}
#panelSimSolution .simsolution-tile--lecture .simsolution-tile-icon {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#panelSimSolution .simsolution-tile--lecture .simsolution-tile-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}
#panelSimSolution .simsolution-tile--lecture .simsolution-tile-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}
#panelSimSolution .simsolution-tile--lecture .simsolution-tile-text h4 {
  margin: 0;
  font-size: .8rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#panelSimSolution.tools-cell-sim .simsolution-tile--compact {
  padding: .28rem .38rem;
  gap: .38rem;
}
#panelSimSolution .simsolution-tile--stacked {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#panelSimSolution.tools-cell-sim .simsolution-tile--stacked {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: .28rem .38rem;
  gap: .38rem;
  min-height: 0;
}
#panelSimSolution .simsolution-tile--stacked .simsolution-tile-text {
  align-items: center;
  width: 100%;
}
#panelSimSolution.tools-cell-sim .simsolution-tile--stacked .simsolution-tile-text {
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
#panelSimSolution .simsolution-tile--stacked .simsolution-tile-text strong {
  display: block;
  width: 100%;
}
#panelSimSolution.tools-cell-sim .simsolution-tile--stacked .simsolution-tile-text strong {
  font-size: .66rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#panelSimSolution.tools-cell-sim .simsolution-tile--compact .simsolution-tile-icon {
  width: 28px;
  height: 28px;
  padding: .28rem;
  border-radius: 7px;
}
#panelSimSolution.tools-cell-sim .simsolution-tile--compact .simsolution-tile-text strong {
  font-size: .66rem;
  line-height: 1.2;
}
#panelSimSolution .simsolution-tile--compact .simsolution-tile-icon {
  width: 48px;
  height: 48px;
  padding: .55rem;
}
#panelSimSolution .simsolution-tile--compact .simsolution-tile-text strong {
  font-size: .82rem;
}
#panelSimSolution .simsolution-tile--compact .simsolution-tile-text span {
  font-size: .68rem;
}
.simsolution-tile--compact {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: .5rem .65rem;
  gap: .65rem;
  border-width: 1.5px;
}
.simsolution-tile--compact:hover {
  transform: translateY(-1px);
}
.simsolution-tile--compact .simsolution-tile-icon {
  width: 40px;
  height: 40px;
  padding: .4rem;
  border-radius: 10px;
  flex-shrink: 0;
}
.simsolution-tile-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.simsolution-tile--compact strong {
  font-size: .82rem;
}
.simsolution-tile--compact .simsolution-tile-text span {
  font-size: .68rem;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .simsolution-grid {
    grid-template-columns: 1fr;
  }
}

.simsolution-entry {
  max-width: 520px;
}
.simsolution-entry-icon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #0a3d4f, #1e6b8a);
  color: #7ee787;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.simsolution-entry-icon svg {
  width: 100%;
  height: 100%;
}

#viewSimSolution {
  background: #0b0d0b;
  min-height: 100vh;
}
#viewVentilator {
  background: #071318;
  min-height: 100vh;
}
.icu-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #d1d5db;
}
.icu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .4rem .85rem;
  background: #111;
  border-bottom: 2px solid #222;
  flex-wrap: wrap;
}
.icu-toolbar-left,
.icu-toolbar-center,
.icu-toolbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.icu-back-btn {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: none !important;
  font-weight: 700 !important;
}
.icu-back-btn:hover {
  background: #fff !important;
  color: #020617 !important;
}
.icu-toolbar-title {
  font-weight: 700;
  font-size: .95rem;
  color: #eee;
}
.icu-patient-id {
  font-family: ui-monospace, monospace;
  font-size: .78rem;
  color: #888;
  letter-spacing: .05em;
}
.icu-monitor-live {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #ef4444;
  font-size: .75rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}
.ecg-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: ecg-pulse 1s ease-in-out infinite;
}
@keyframes ecg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}
.icu-clock {
  font-family: ui-monospace, monospace;
  font-size: .85rem;
  color: #7ee787;
}

.icu-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 292px);
  gap: 0;
  min-height: 0;
  height: calc(100vh - 42px);
  overflow: hidden;
}
.icu-display {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #222;
}
.icu-channels {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.icu-channel {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 152px);
  border-bottom: 1px solid #1a1a1a;
  min-height: 0;
  transition: grid-template-columns .22s ease;
}
.icu-channel:last-child { border-bottom: none; }
.icu-channel-values {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .45rem .65rem;
  background: #080808;
  border-right: none;
  border-left: 1px solid #1a1a1a;
  text-align: right;
  align-items: flex-end;
  font-family: ui-monospace, monospace;
  line-height: 1.05;
  transition: border-color .22s ease;
}
.icu-channel-side-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .92;
  margin-bottom: .12rem;
}
.icu-channel-side-value {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.icu-channel-side-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 600;
  opacity: .88;
  margin-top: .12rem;
}
.icu-channel-side-unit {
  font-size: .72rem;
  opacity: .58;
  margin-top: .14rem;
  text-transform: uppercase;
}
.icu-channel-name {
  margin-top: auto;
  padding-top: .22rem;
  font-size: .64rem;
  opacity: .45;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: right;
  width: 100%;
}
.icu-val-ecg .icu-channel-side-label,
.icu-val-ecg .icu-channel-side-value { color: #3dff7a; }
.icu-val-art .icu-channel-side-label,
.icu-val-art .icu-channel-side-value,
.icu-val-art .icu-channel-side-sub { color: #ff4d4d; }
.icu-val-spo2 .icu-channel-side-label,
.icu-val-spo2 .icu-channel-side-value,
.icu-val-spo2 .icu-channel-side-sub,
.icu-val-spo2 .icu-channel-side-unit { color: #fff; }
.icu-val-spo2 .icu-channel-name { color: rgba(255,255,255,.45); }
.icu-channel--spo2 .icu-channel-trace { background: #040604; }
.icu-val-cvp .icu-channel-side-label,
.icu-val-cvp .icu-channel-side-value { color: #66a3ff; }
.icu-val-pap .icu-channel-side-label,
.icu-val-pap .icu-channel-side-value,
.icu-val-pap .icu-channel-side-sub { color: #facc15; }
.icu-channel-trace {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 88px;
  background: #040604;
  transition: border-color .22s ease;
}
.icu-channel-trace canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.icu-controls {
  background: #141414;
  padding: .5rem .6rem;
  overflow-y: auto;
  max-height: 100%;
  min-width: 0;
}

/* Sim slider drawer — collapse side panels */
.sim-slider-drawer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
}
.sim-slider-drawer-toggle {
  align-self: center;
  flex-shrink: 0;
  width: .95rem;
  height: 2.6rem;
  padding: 0;
  margin: 0;
  border: 1px solid #2a2a2a;
  border-right: none;
  border-radius: 5px 0 0 5px;
  background: #121212;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
}
.sim-slider-drawer-toggle:hover {
  background: #1c1c1c;
  color: #bbb;
  border-color: #444;
}
.sim-slider-drawer-chevron {
  display: block;
  width: .38rem;
  height: .38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: -.1rem;
  transition: transform .15s ease;
}
.sim-slider-drawer.is-collapsed .sim-slider-drawer-chevron {
  transform: rotate(135deg);
  margin-left: .08rem;
}
.sim-slider-drawer.is-collapsed {
  grid-template-columns: auto 0fr;
}
.sim-slider-drawer.is-collapsed > aside {
  overflow: hidden;
  opacity: 0;
  padding: 0;
  min-width: 0;
  pointer-events: none;
}
.icu-layout:has(.sim-slider-drawer.is-collapsed),
.lab-workspace:has(.sim-slider-drawer.is-collapsed),
.sim-track-body:has(.sim-slider-drawer.is-collapsed),
.ch-workspace:has(.sim-slider-drawer.is-collapsed) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.ch-workspace:has(.sim-slider-drawer.is-collapsed) {
  gap: 0;
}
.icu-layout:has(.sim-slider-drawer.is-collapsed) .icu-display {
  border-right: none;
}

.icu-controls h3 {
  margin: 0 0 .35rem;
  font-size: .82rem;
  color: #eee;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.icu-controls-hint {
  color: #777;
  font-size: .68rem;
  margin: 0 0 .5rem;
  line-height: 1.3;
}
.icu-controls-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .45rem;
}
.icu-control-group {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  column-gap: .3rem;
  row-gap: .08rem;
  margin-bottom: .35rem;
  align-items: center;
}
.icu-control-group label {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: .62rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.icu-control-group input[type="range"] {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 12px;
  accent-color: #3dff7a;
  cursor: pointer;
  margin: 0;
}
.icu-control-val {
  display: none;
}
.sim-slider-drawer aside .icu-controls-hint,
.sim-slider-drawer aside .ch-sim-hint {
  display: none;
}
.sim-sliders-apply-bar {
  position: sticky;
  bottom: 0;
  margin-top: .5rem;
  padding-top: .45rem;
  border-top: 1px solid #2a2a2a;
  background: linear-gradient(180deg, transparent, #141414 28%);
}
.sim-sliders-apply-bar .sim-sliders-apply {
  width: 100%;
}
.sim-sliders-apply:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.sim-slider-drawer aside.sim-sliders-pending .sim-sliders-apply:not(:disabled) {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .35);
}
.icu-controls-sub {
  margin: 0 0 .3rem;
  font-size: .62rem;
  font-weight: 600;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.icu-controls-sub-note {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #666;
  font-size: .58rem;
}
.icu-rhythm-section {
  margin-bottom: .45rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid #2a2a2a;
}
.icu-rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
}
.icu-rhythm-btn {
  font: inherit;
  font-size: .6rem;
  line-height: 1.15;
  padding: .28rem .3rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #0c0c0c;
  color: #999;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, color .15s, background .15s;
}
.icu-rhythm-btn:hover {
  border-color: #555;
  color: #ddd;
  background: #151515;
}
.icu-rhythm-btn.active {
  border-color: #3dff7a;
  color: #3dff7a;
  background: rgba(61, 255, 122, .08);
  box-shadow: 0 0 0 1px rgba(61, 255, 122, .15);
}
.icu-rhythm-badge {
  color: #ffe066;
  font-weight: 600;
  letter-spacing: .03em;
}
.icu-val-ecg .icu-channel-side-value.icu-hr-alarm {
  color: #ff6b6b;
  animation: icu-hr-blink 1s step-start infinite;
}
@keyframes icu-hr-blink {
  50% { opacity: .35; }
}

/* Ventilator simulator */
.vent-toolbar { border-bottom-color: #0e3a4a; }
.vent-live { color: #5eead4; }
.vent-metrics-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #1a2a30;
  background: #061014;
}
.vent-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .65rem .35rem;
  border-right: 1px solid #152228;
  font-family: ui-monospace, monospace;
}
.vent-metric:last-child { border-right: none; }
.vent-metric-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .65;
}
.vent-metric-value {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
}
.vent-metric-unit {
  font-size: .58rem;
  opacity: .5;
  margin-top: .1rem;
}
.vent-metric-fio2 .vent-metric-value { color: #5eead4; }
.vent-metric-peep .vent-metric-value { color: #66a3ff; }
.vent-metric-pip .vent-metric-value { color: #ffe066; }
.vent-metric-vt .vent-metric-value { color: #f472b6; }
.vent-metric-rr .vent-metric-value { color: #a78bfa; }
.vent-metric-mv .vent-metric-value { color: #7ee787; }
.vent-channels .icu-channel {
  flex: 1;
  min-height: 140px;
}
.icu-val-vent-paw .icu-channel-side-label,
.icu-val-vent-paw .icu-channel-side-value { color: #ffe066; }
.icu-val-vent-flow .icu-channel-side-label,
.icu-val-vent-flow .icu-channel-side-value { color: #5eead4; }
.vent-controls input[type="range"] { accent-color: #5eead4; }
.vent-controls .icu-control-val { color: #5eead4; }
.vent-select {
  width: 100%;
  padding: .45rem .5rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #ddd;
  font-size: .82rem;
}
.vent-ctrl-pcv,
.vent-ctrl-aprv { display: none; }
.vent-page.mode-pcv .vent-ctrl-pcv { display: block; }
.vent-page.mode-pcv .vent-ctrl-vc { display: none; }
.vent-page.mode-aprv .vent-ctrl-aprv { display: block; }
.vent-page.mode-aprv .vent-ctrl-vc,
.vent-page.mode-aprv .vent-ctrl-pcv { display: none; }

/* Cardiohelp-style ECMO console */
#viewEcmo {
  background: linear-gradient(160deg, #1a1f24 0%, #2d3439 45%, #1e2428 100%);
  min-height: 100vh;
}
.ch-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #cfd8dc;
}
.ch-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid #3a4449;
  flex-wrap: wrap;
}
.ch-back-btn {
  color: #aaa !important;
  border-color: #444 !important;
}
.ch-page-title {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.ch-page-title strong {
  font-size: .95rem;
  color: #eee;
  letter-spacing: .04em;
}
.ch-page-title span {
  font-size: .72rem;
  color: #8899a0;
}
.ch-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 1.25rem;
  padding: 1.25rem;
  align-items: start;
}
.cardiohelp-device {
  background: linear-gradient(180deg, #d8dde0 0%, #b8c0c4 8%, #c5cbd0 100%);
  border-radius: 14px;
  padding: 1rem 1rem .75rem;
  box-shadow:
    0 12px 40px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 4px rgba(0,0,0,.08);
  border: 1px solid #9aa5ab;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.ch-led-bar-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .5rem;
  padding: .35rem .5rem .65rem;
  background: #2a3034;
  border-radius: 8px 8px 4px 4px;
  margin-bottom: .65rem;
  border: 1px solid #1a1e21;
}
.ch-led-label,
.ch-led-scale {
  font-size: .62rem;
  font-family: ui-monospace, monospace;
  color: #8a9;
  text-transform: uppercase;
}
.ch-led-max { margin-left: -.25rem; }
.ch-led-bar {
  display: flex;
  gap: 3px;
  height: 14px;
  align-items: stretch;
}
.ch-led-seg {
  flex: 1;
  min-width: 4px;
  border-radius: 2px;
  background: #1e2428;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.ch-led-seg.on {
  background: #5dff6a;
  box-shadow: 0 0 6px rgba(93,255,106,.7);
}
.ch-led-seg.on.warn {
  background: #ffb020;
  box-shadow: 0 0 6px rgba(255,176,32,.7);
}
.ch-led-seg.on.max {
  background: #ff4444;
  box-shadow: 0 0 6px rgba(255,68,68,.7);
}
.ch-panel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 56px;
  gap: .65rem;
  align-items: stretch;
}
.ch-keys {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: .25rem;
}
.ch-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 34px;
  border-radius: 6px;
  background: linear-gradient(180deg, #eceff1, #b0bec5);
  border: 1px solid #78909c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.15);
  font-size: .55rem;
  color: #37474f;
  font-weight: 700;
  text-transform: uppercase;
}
.ch-key-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #455a64;
}
.ch-key-dot.on {
  background: #43a047;
  box-shadow: 0 0 4px rgba(67,160,71,.8);
}
.ch-key-power .ch-key-dot.on { background: #29b6f6; }
.ch-touchscreen {
  background: #1a1a1a;
  border-radius: 8px;
  border: 3px solid #37474f;
  box-shadow: inset 0 0 0 1px #000, 0 2px 8px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  overflow: hidden;
}
.ch-status-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .55rem;
  background: #b0b0b0;
  color: #222;
  font-size: .68rem;
  font-weight: 600;
  border-bottom: 1px solid #888;
}
.ch-thapp { text-transform: uppercase; letter-spacing: .04em; }
.ch-status-spacer { flex: 1; }
.ch-status-time {
  font-family: ui-monospace, monospace;
  font-size: .72rem;
}
.ch-screen-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  min-height: 0;
  background: #d8d8d8;
}
.ch-screen-body {
  padding: .55rem;
  overflow: auto;
  min-height: 240px;
}
.ch-tab-panel { display: none; }
.ch-tab-panel.active { display: block; }
.ch-panel-title {
  margin: 0 0 .65rem;
  font-size: .78rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ch-primary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-bottom: .55rem;
}
.ch-metric-blue {
  background: linear-gradient(180deg, #1e5a9e 0%, #164a82 100%);
  border: 2px solid #0d3a6a;
  border-radius: 6px;
  padding: .45rem .55rem;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ch-metric-blue.ch-active-control {
  outline: 2px solid #7ec8ff;
  outline-offset: 1px;
}
.ch-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .25rem;
}
.ch-metric-tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.ch-metric-sub {
  font-size: .58rem;
  opacity: .75;
}
.ch-metric-values {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  font-family: ui-monospace, monospace;
  line-height: 1;
}
.ch-value-actual {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
}
.ch-value-setpoint {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: #9dd4ff;
}
.ch-param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
}
.ch-param-tile,
.ch-blood-tile {
  background: #ececec;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: .4rem .45rem;
  text-align: center;
}
.ch-param-name {
  display: block;
  font-size: .62rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ch-param-val,
.ch-blood-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a3a5c;
  font-family: ui-monospace, monospace;
  line-height: 1.15;
  margin: .1rem 0;
}
.ch-param-mode { font-size: 1rem; color: #164a82; }
.ch-param-unit {
  display: block;
  font-size: .58rem;
  color: #777;
}
.ch-blood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.ch-blood-val { font-size: 1.5rem; color: #0d47a1; }
.ch-param-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ch-param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .55rem;
  background: #ececec;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: .78rem;
  color: #444;
}
.ch-param-row strong {
  font-family: ui-monospace, monospace;
  color: #1a3a5c;
}
.ch-toolbar-r {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .35rem .2rem;
  background: #c8c8c8;
  border-left: 1px solid #aaa;
}
.ch-tool-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #888;
  border-radius: 4px;
  background: linear-gradient(180deg, #eee, #ccc);
  color: #333;
  font-size: .72rem;
  cursor: pointer;
  padding: 0;
}
.ch-tool-btn:hover { background: #ddd; }
.ch-tab-bar {
  display: flex;
  background: #a8a8a8;
  border-top: 1px solid #888;
}
.ch-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: .45rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  cursor: pointer;
  letter-spacing: .03em;
}
.ch-tab.active {
  background: #1e5a9e;
  color: #fff;
}
.ch-knob-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.ch-rotary-knob {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eceff1, #78909c 70%, #546e7a);
  border: 2px solid #546e7a;
  box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 1px 2px rgba(255,255,255,.4);
  position: relative;
}
.ch-knob-cap {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #cfd8dc, #90a4ae);
}
.ch-knob-indicator {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 10px;
  margin-left: -1.5px;
  background: #263238;
  border-radius: 2px;
  transform-origin: 50% 17px;
  transform: rotate(25deg);
}
.ch-knob-label {
  font-size: .58rem;
  color: #455a64;
  text-transform: uppercase;
  font-weight: 700;
}
.ch-device-brand {
  text-align: center;
  margin-top: .65rem;
  font-size: .62rem;
  letter-spacing: .12em;
  color: #546e7a;
  font-weight: 700;
}
.ch-sim-controls {
  background: #141a1e;
  border: 1px solid #2a353b;
  border-radius: var(--radius);
  padding: 1.1rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.ch-sim-controls h3 {
  margin: 0 0 .25rem;
  font-size: .95rem;
  color: #eee;
}
.ch-sim-hint {
  color: #778;
  font-size: .75rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}
.ch-sim-controls .icu-control-group label {
  color: #9ab;
}
.ch-sim-controls input[type="range"] { accent-color: #1e5a9e; }
.ch-sim-controls .ch-val { color: #7ec8ff; }
.ch-select {
  background: #0a1014;
  border-color: #334;
  color: #ccc;
}

/* IABP console */
#viewIabp {
  background: #0b0d0b;
  min-height: 100vh;
}
.iabp-live { color: #fca5a5; }
.iabp-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .65rem;
}
.iabp-status-pill {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  padding: .35rem .55rem;
  background: #141818;
  border: 1px solid #2a3333;
  border-radius: 8px;
  font-size: .72rem;
}
.iabp-status-pill span { color: #7a8a8a; text-transform: uppercase; letter-spacing: .04em; }
.iabp-status-pill strong { color: #e8e8e8; font-size: .95rem; }
.iabp-status-pill small { color: #6a7a7a; }
.iabp-status-pill--he strong { color: #7ee787; }
.iabp-status-pill--alarm strong { color: #ffe066; }
.iabp-metrics-bar .vent-metric-value { color: #ffe066; }
.icu-val-iabp-art .icu-channel-side-label,
.icu-val-iabp-art .icu-channel-side-value { color: #ff6b6b; }
.icu-val-iabp-ecg .icu-channel-side-label { color: #7ee787; }
.iabp-ecg-channel { max-height: 120px; }
.iabp-ecg-trace { max-height: 72px; }
.iabp-controls .vent-select,
.iabp-controls select {
  background: #0a1014;
  border-color: #334;
  color: #ccc;
}

/* PrisMax CRRT console */
#viewPrismax {
  background: linear-gradient(165deg, #0c1220 0%, #141c2e 50%, #0a0f18 100%);
  min-height: 100vh;
}
.px-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #d8e2ef;
}
.px-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid #2a3548;
  flex-wrap: wrap;
}
.px-back-btn {
  color: #aaa !important;
  border-color: #444 !important;
}
.px-toolbar-center {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.px-toolbar-center strong {
  font-size: .95rem;
  letter-spacing: .06em;
  color: #fff;
}
.px-toolbar-sub {
  font-size: .72rem;
  color: #8899b0;
}
.px-toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.px-live { color: #93c5fd; font-size: .78rem; }
.px-clock {
  font-family: ui-monospace, monospace;
  font-size: .85rem;
  color: #94a3b8;
}
.px-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 292px);
  gap: .75rem;
  padding: .75rem;
  align-items: start;
  overflow: hidden;
}
.px-device {
  position: relative;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 8%, #64748b 100%);
  border-radius: 16px;
  padding: 1.25rem 1rem 2.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.px-status-light {
  position: absolute;
  top: .65rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: px-pulse 2s ease-in-out infinite;
}
.px-status-light--ok {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: px-pulse 2s ease-in-out infinite;
}
@keyframes px-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.px-status-light--warn {
  background: #eab308;
  box-shadow: 0 0 8px #eab308;
}
.px-status-light--alarm {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: px-alarm-pulse 1s ease-in-out infinite;
}
@keyframes px-alarm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.15); }
}
.px-touchscreen {
  background: #eef2f7;
  border: 3px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.12);
  color: #1e293b;
}
.px-gui-toolbar {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  background: linear-gradient(180deg, #0072ce 0%, #005eb8 100%);
  border-bottom: 1px solid #004a94;
  font-size: .72rem;
}
.px-gui-btn {
  font: inherit;
  font-size: .68rem;
  padding: .22rem .5rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.px-gui-btn--icon { min-width: 1.6rem; }
.px-gui-spacer { flex: 1; }
.px-gui-role {
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .65rem;
  margin-right: .5rem;
}
.px-gui-time {
  font-family: ui-monospace, monospace;
  font-size: .78rem;
  color: #fff;
  font-weight: 600;
}
.px-gui-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 168px);
  gap: .5rem;
  padding: .5rem;
  background: #f8fafc;
  min-height: 280px;
}
.px-schematic-panel {
  position: relative;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}
.px-schematic {
  display: block;
  width: 100%;
  height: auto;
}
.px-rate-box {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
  padding: .2rem .35rem;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: rgba(255,255,255,.95);
  text-align: center;
  font-size: .62rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: opacity .2s;
}
.px-rate-box strong {
  font-size: .85rem;
  color: #0f172a;
  line-height: 1.1;
}
.px-rate-box small {
  font-size: .55rem;
  color: #64748b;
}
.px-rate-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .1rem;
}
.px-rate-pbp { left: 10%; top: 6%; border-color: #cbd5e1; background: #fff; }
.px-rate-pbp .px-rate-label { color: #64748b; }
.px-rate-blood { left: 12%; top: 58%; border-color: #ef4444; }
.px-rate-blood .px-rate-label { color: #dc2626; }
.px-rate-syr { left: 26%; top: 6%; border-color: #64748b; }
.px-rate-syr .px-rate-label { color: #475569; }
.px-rate-dial { left: 40%; top: 2%; border-color: #22c55e; }
.px-rate-dial .px-rate-label { color: #16a34a; }
.px-rate-repl { right: 16%; top: 2%; border-color: #a855f7; }
.px-rate-repl .px-rate-label { color: #9333ea; }
.px-rate-heat { right: 22%; top: 44%; border-color: #f97316; }
.px-rate-heat .px-rate-label { color: #ea580c; }
.px-rate-pfr { right: 42%; bottom: 4%; border-color: #eab308; }
.px-rate-pfr .px-rate-label { color: #ca8a04; }
.px-flow-pbp:not(.px-flow-pbp--active) { opacity: .45; }
.px-flow-dial--active { background: rgba(34,197,94,.14); }
.px-flow-repl--active { background: rgba(168,85,247,.14); }
.px-flow-eff--active { background: rgba(234,179,8,.16); }
.px-flow-pbp--active { background: rgba(255,255,255,.95); }
.px-flow-dial:not(.px-flow-dial--active),
.px-flow-repl:not(.px-flow-repl--active),
.px-flow-eff:not(.px-flow-eff--active),
.px-flow-pbp:not(.px-flow-pbp--active) {
  opacity: .4;
}
.px-flow-dot { pointer-events: none; }
.px-gui-side {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.px-therapy-btn {
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  padding: .45rem .5rem;
  border: 2px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  text-align: center;
  letter-spacing: .04em;
  cursor: default;
}
.px-side-card {
  padding: .4rem .45rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: .68rem;
}
.px-side-card--data {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.px-side-label {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  margin-bottom: .25rem;
}
.px-dose-row, .px-data-row {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  margin-bottom: .15rem;
}
.px-dose-row span, .px-data-row span {
  flex: 1;
  color: #64748b;
  font-size: .62rem;
}
.px-dose-row strong, .px-data-row strong {
  font-size: .95rem;
  color: #0f172a;
}
.px-dose-row small, .px-data-row small {
  font-size: .58rem;
  color: #94a3b8;
}
.px-dose-row--highlight strong {
  color: #0072ce;
  font-size: 1.05rem;
}
.px-data-row--large strong {
  font-size: 1.1rem;
  font-weight: 700;
}
.px-pressure-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  padding: .55rem .75rem .7rem;
  background: #d1dae6;
  border-top: 2px solid #94a3b8;
}
.px-vbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.px-vbar-title {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: .03em;
}
.px-vbar-track {
  position: relative;
  width: 28px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #94a3b8;
  background: #f1f5f9;
}
.px-vbar-zone {
  position: absolute;
  left: 0;
  right: 0;
}
.px-vbar-zone--ok { background: #86efac; }
.px-vbar-zone--warn { background: #fde047; }
.px-vbar-zone--danger { background: #fca5a5; }
.px-vbar:nth-child(1) .px-vbar-zone--low { bottom: 0; height: 12%; }
.px-vbar:nth-child(1) .px-vbar-zone--ok { bottom: 12%; height: 58%; }
.px-vbar:nth-child(1) .px-vbar-zone--high { bottom: 70%; height: 15%; }
.px-vbar:nth-child(1) .px-vbar-zone--disc { bottom: 85%; height: 15%; }
.px-vbar:nth-child(2) .px-vbar-zone--disc { bottom: 0; height: 12%; }
.px-vbar:nth-child(2) .px-vbar-zone--ok { bottom: 12%; height: 48%; }
.px-vbar:nth-child(2) .px-vbar-zone--warn { bottom: 60%; height: 22%; }
.px-vbar:nth-child(2) .px-vbar-zone--danger { bottom: 82%; height: 18%; }
.px-vbar:nth-child(3) .px-vbar-zone--ok { bottom: 0; height: 55%; }
.px-vbar:nth-child(3) .px-vbar-zone--warn { bottom: 55%; height: 22%; }
.px-vbar:nth-child(3) .px-vbar-zone--danger { bottom: 77%; height: 23%; }
.px-vbar:nth-child(4) .px-vbar-zone--ok { bottom: 0; height: 50%; }
.px-vbar:nth-child(4) .px-vbar-zone--warn { bottom: 50%; height: 25%; }
.px-vbar:nth-child(4) .px-vbar-zone--danger { bottom: 75%; height: 25%; }
.px-vbar-marker {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -7px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid #fff;
  filter: drop-shadow(0 0 1px #334155) drop-shadow(0 1px 2px rgba(0,0,0,.35));
  transform: translateY(50%);
  transition: bottom .25s ease;
  z-index: 2;
}
.px-vbar-val {
  font-size: .82rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.px-message-center {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-top: 2px solid transparent;
  font-size: .74rem;
  font-weight: 500;
}
.px-msg--ok {
  background: #dcfce7;
  border-top-color: #86efac;
  color: #166534;
}
.px-msg--ok .px-msg-icon { color: #16a34a; }
.px-msg--warn {
  background: #fef9c3;
  border-top-color: #facc15;
  color: #854d0e;
}
.px-msg--warn .px-msg-icon { color: #ca8a04; }
.px-msg--alarm {
  background: #fee2e2;
  border-top-color: #f87171;
  color: #991b1b;
}
.px-msg--alarm .px-msg-icon { color: #dc2626; }
.px-device-brand {
  position: absolute;
  bottom: .55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #334155;
}
.px-flow-dial { border-color: #22c55e; }
.px-flow-repl { border-color: #a855f7; }
.px-flow-eff { border-color: #eab308; }
.px-controls {
  background: #141c2e;
  border: 1px solid #2a3548;
  border-radius: 10px;
  padding: .65rem;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.px-controls .icu-control-group {
  margin-bottom: .35rem;
}
.px-controls h3 { color: #eee; margin: 0 0 .25rem; font-size: .95rem; }
.px-controls .icu-controls-hint { color: #778; }
.px-controls label { color: #9ab; }
.px-controls .vent-select,
.px-controls select {
  background: #0a1014;
  border-color: #334;
  color: #ccc;
}
.px-controls input[type="range"] { accent-color: #2563eb; }
.px-controls .icu-control-val { color: #93c5fd; }
.px-ctrl-dial label { color: #86efac; }
.px-ctrl-repl label { color: #d8b4fe; }
.px-ctrl-pfr label { color: #fde047; }
.px-ctrl-access label { color: #93c5fd; }
.px-ctrl-return label { color: #fca5a5; }
.px-ctrl-deltap label { color: #c4b5fd; }
.px-ctrl-tmp label { color: #fdba74; }
.px-controls-divider {
  border: none;
  border-top: 1px solid #2a3548;
  margin: .85rem 0 .65rem;
}
.px-controls-sub {
  color: #ddd;
  font-size: .82rem;
  margin: 0 0 .25rem;
  font-weight: 600;
}
.px-toggle-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  color: #bcd !important;
}
.px-toggle-label input { accent-color: #2563eb; }
.px-ctrl-pressures.px-ctrl-pressures--disabled {
  opacity: .45;
  pointer-events: none;
}
.px-ctrl-pressures.px-ctrl-pressures--disabled input[type="range"] {
  cursor: not-allowed;
}
.px-fault-presets { margin-top: .65rem; }
.px-fault-label {
  display: block;
  font-size: .68rem;
  color: #8899b0;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}
.px-fault-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.px-fault-btn {
  font: inherit;
  font-size: .68rem;
  padding: .28rem .45rem;
  border: 1px solid #3a4a62;
  border-radius: 4px;
  background: #0f1623;
  color: #cbd5e1;
  cursor: pointer;
}
.px-fault-btn:hover {
  background: #1a2438;
  border-color: #0072ce;
  color: #fff;
}

@media (max-width: 960px) {
  .px-workspace {
    grid-template-columns: 1fr;
  }
  .px-gui-body {
    grid-template-columns: 1fr;
  }
  .px-pressure-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .px-rate-box {
    font-size: .55rem;
    min-width: 2.6rem;
  }
}

@media (max-width: 960px) {
  .ch-workspace {
    grid-template-columns: 1fr;
  }
  .ch-primary-row {
    grid-template-columns: 1fr;
  }
  .ch-param-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vent-metrics-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vent-metric:nth-child(3) { border-right: none; }
  .icu-layout {
    grid-template-columns: 1fr;
  }
  .icu-display {
    border-right: none;
    border-bottom: 1px solid #222;
  }
  .icu-channel {
    grid-template-columns: minmax(108px, 128px) minmax(0, 1fr);
  }
  .icu-channel-side-value {
    font-size: 1.75rem;
  }
  .icu-channel-side-label {
    font-size: .72rem;
  }
}

/* Evaluation list */
.eval-actions { display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.eval-list { list-style: none; }
.eval-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem;
  border-bottom: 1px solid #eef2f7;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .88rem;
}
.rating-btn-group { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.rating-btn {
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
}
.rating-btn.yes { background: #15803d; color: #fff; border-color: #14532d; }
.rating-btn.partially { background: #eab308; color: #422006; border-color: #ca8a04; }
.rating-btn.dont-know { background: #475569; color: #fff; border-color: #334155; }
.rating-btn.no { background: #b91c1c; color: #fff; border-color: #991b1b; }
.rating-btn.yes:hover { background: #166534; }
.rating-btn.partially:hover { background: #ca8a04; color: #fff; border-color: #a16207; }
.rating-btn.dont-know:hover { background: #334155; }
.rating-btn.no:hover { background: #991b1b; }
.rating-btn.selected { transform: scale(1.03); box-shadow: 0 0 0 3px rgba(15, 23, 42, .18); }
.rating-btn.yes.selected { background: #14532d; border-color: #052e16; }
.rating-btn.partially.selected { background: #a16207; color: #fff; border-color: #854d0e; }
.rating-btn.dont-know.selected { background: #334155; border-color: #1e293b; }
.rating-btn.no.selected { background: #991b1b; border-color: #7f1d1d; }
.eval-category-progress {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .65rem;
}
.eval-category-chip {
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .45rem;
  border-radius: 999px;
  background: rgba(15, 45, 74, .08);
  color: #475569;
  border: 1px solid #e2e8f0;
}
.eval-category-chip.is-current {
  background: rgba(30, 90, 138, .14);
  border-color: rgba(30, 90, 138, .35);
  color: #143d5c;
}
.eval-category-chip.is-done {
  background: rgba(22, 101, 52, .12);
  border-color: rgba(22, 101, 52, .28);
  color: #14532d;
}
.eval-question-list {
  list-style: none;
  margin: 0;
  padding: .55rem 1rem .75rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.eval-question-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .28rem 0;
  font-size: .8rem;
  line-height: 1.4;
}
.eval-question-text {
  flex: 1;
  min-width: 0;
  color: #334155;
}
.eval-question-answer {
  flex-shrink: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .7rem;
  white-space: nowrap;
}
.eval-question-item--yes .eval-question-answer { color: #166534; }
.eval-question-item--partially .eval-question-answer { color: #a16207; }
.eval-question-item--no .eval-question-answer { color: #991b1b; }
.eval-question-item--unknown .eval-question-answer { color: #64748b; }
.eval-question-item--na .eval-question-answer { color: #0e7490; }

/* Evaluation Tool evaluation wizard — healthcare theme */
.eval-wizard-page {
  background: linear-gradient(180deg, #e8eef5 0%, #f4f7fb 42%, #eef3f9 100%);
  min-height: 100vh;
}
.eval-wizard-header .eval-wizard-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.eval-wizard-title {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
}
.eval-wizard-wrap {
  padding: 1.35rem 0 2.5rem;
  max-width: 680px;
}
.eval-wizard-progress {
  margin-bottom: 1rem;
}
.eval-wizard-meta {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .75rem;
}
.eval-wizard-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 107, 138, .18), rgba(30, 107, 138, .06));
  border-radius: 12px;
  border: 1px solid rgba(30, 107, 138, .28);
  color: #1e6b8a;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30, 107, 138, .1);
}
.eval-wizard-icon svg { width: 22px; height: 22px; display: block; }
.eval-wizard-step {
  font-weight: 700;
  font-size: .98rem;
  color: #145068;
}
.eval-wizard-answered {
  font-size: .78rem;
  color: #64748b;
  margin-top: .12rem;
}
.eval-wizard-progress-bar {
  height: 7px;
  background: rgba(30, 107, 138, .12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(30, 107, 138, .1);
}
.eval-wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e6b8a, #2d8cb8);
  border-radius: 999px;
  transition: width .25s ease;
}
.eval-wizard-categories-row {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  margin-top: .85rem;
  width: 100%;
}
.eval-category-chip--inline {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .08rem;
  padding: .4rem .25rem;
  border-radius: 10px;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.eval-category-chip-count {
  font-size: .58rem;
  font-weight: 700;
  opacity: .85;
  font-variant-numeric: tabular-nums;
}
.eval-wizard-card {
  border: 1px solid rgba(30, 107, 138, .22);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(15, 45, 74, .1);
  background: #fff;
  overflow: hidden;
}
.eval-wizard-card-body {
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}
.eval-wizard-question { margin: 0; }
.eval-wizard-category-badge {
  display: inline-block;
  margin: 0 auto 1rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #145068;
  background: linear-gradient(135deg, rgba(30, 107, 138, .12), rgba(168, 212, 240, .2));
  border: 1px solid rgba(30, 107, 138, .22);
}
.eval-wizard-question-text {
  margin: 0 auto 1.35rem;
  max-width: 34rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  color: #0f2d4a;
}
.eval-rating-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .4rem;
  max-width: none;
  margin: 0 auto;
  width: 100%;
}
.rating-btn--eval {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.1rem;
  padding: .35rem .4rem;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.rating-btn.not-applicable {
  background: #fff;
  color: #0e7490;
  border: 2px solid #67e8f9;
}
.rating-btn.not-applicable:hover {
  background: #ecfeff;
  border-color: #22d3ee;
}
.rating-btn.not-applicable.selected {
  background: linear-gradient(145deg, #0891b2, #0e7490);
  color: #fff;
  border-color: #0e7490;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .2);
}
.eval-wizard-comments {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 107, 138, .15);
  text-align: left;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.eval-wizard-comments .eval-comments-title {
  margin: 0 0 .25rem;
  font-size: .92rem;
  color: #145068;
}
.eval-wizard-actions {
  margin-top: 1rem;
  justify-content: center;
  gap: .65rem;
}
.eval-wizard-resume-hint {
  background: rgba(30, 107, 138, .08);
  border-color: rgba(30, 107, 138, .22);
  color: #145068;
  text-align: center;
}

.eval-results-page--healthcare .eval-results-header {
  text-align: center;
}
.eval-results-header--compact {
  padding: .75rem 1.15rem .85rem;
}
.eval-results-header--compact .eval-results-label {
  margin-bottom: .2rem;
  font-size: .66rem;
}
.eval-results-header--compact h2 {
  font-size: 1.08rem;
  margin-bottom: .3rem;
  line-height: 1.25;
}
.eval-results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem .45rem;
  font-size: .76rem;
  color: rgba(255, 255, 255, .88);
  margin: 0;
  font-weight: 500;
  line-height: 1.35;
}
.eval-results-meta-sep {
  opacity: .45;
  user-select: none;
}
.eval-results-header--compact .eval-results-desc {
  font-size: .8rem;
  margin-top: .45rem;
  margin-bottom: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, .75);
}
.eval-results-page--healthcare .eval-results-participants {
  align-items: center;
}
.eval-results-categories-row {
  display: flex;
  flex-wrap: nowrap;
  gap: .45rem;
  margin-bottom: 1rem;
  width: 100%;
}
.eval-results-cat-pill {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .55rem .35rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.eval-results-cat-pill-label {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  white-space: nowrap;
}
.eval-results-cat-pill-pct {
  font-size: .95rem;
  font-weight: 800;
  color: #0f2d4a;
  font-variant-numeric: tabular-nums;
}
.eval-results-cat-pill--situational_awareness { border-top: 3px solid #1e5a8a; }
.eval-results-cat-pill--decision_making { border-top: 3px solid #166534; }
.eval-results-cat-pill--stress_management { border-top: 3px solid #991b1b; }
.eval-results-cat-pill--teamwork { border-top: 3px solid #1a1a1a; }

@media (max-width: 640px) {
  /* Workout rating: 2-row button grid, full-viewport app feel, no page scroll */
  #viewEvalQuestions.active {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  #viewEvalQuestions.active > .dashboard-header {
    flex-shrink: 0;
    padding: .35rem 0;
  }
  #viewEvalQuestions.active > .dashboard-header .dashboard-header-inner {
    min-height: 0;
    padding-left: .65rem;
    padding-right: .65rem;
  }
  #viewEvalQuestions.active > .dashboard-header .logo-word {
    font-size: .92rem;
  }
  #viewEvalQuestions.active > .dashboard-header .btn-header-back {
    padding: .35rem .55rem;
    font-size: .72rem;
  }
  #viewEvalQuestions .eval-page-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: .35rem .5rem .5rem;
    box-sizing: border-box;
  }
  #viewEvalQuestions .eval-page-shell--rating {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 12px;
    overflow: hidden;
  }
  #viewEvalQuestions .eval-page-shell--rating > .case-player-page-header {
    flex-shrink: 0;
    padding: .35rem .45rem .4rem;
  }
  #viewEvalQuestions .eval-page-shell--rating .case-player-header-inner {
    min-height: 3.35rem;
    height: 3.35rem;
    padding: .15rem .45rem;
  }
  #viewEvalQuestions .eval-page-shell--rating .case-player-page-header h2,
  #viewEvalQuestions .eval-page-shell--rating .eval-player-header-titles h2 {
    font-size: .88rem;
  }
  #viewEvalQuestions .eval-page-shell--rating .eval-player-case-name {
    font-size: .68rem;
  }
  #viewEvalQuestions .eval-page-shell--rating > .panel-body.case-player-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .55rem;
    min-height: 0;
    overflow: hidden;
    padding: .55rem .5rem .6rem;
  }
  #viewEvalQuestions .eval-page-shell--rating .video-theme-block.elearning-theme-block {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: .55rem .5rem .6rem;
    overflow: hidden;
  }
  #viewEvalQuestions #evalQuestions {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #viewEvalQuestions .eval-wizard-question {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: .55rem;
  }
  #viewEvalQuestions .eval-page-shell--rating .eval-wizard-question-text {
    /* Fixed 2-line box so 1- vs 2-line questions don't shift buttons */
    flex: 0 0 auto;
    height: calc(.65rem + .65rem + (2 * 1.3 * .88rem));
    min-height: calc(.65rem + .65rem + (2 * 1.3 * .88rem));
    max-height: calc(.65rem + .65rem + (2 * 1.3 * .88rem));
    overflow: auto;
    margin: 0;
    padding: .65rem .7rem;
    font-size: .88rem;
    line-height: 1.3;
    box-sizing: border-box;
  }
  #viewEvalQuestions .eval-page-shell--rating .eval-rating-grid,
  #viewEvalQuestions .eval-page-shell .eval-rating-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .4rem;
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 0 0 auto;
  }
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval,
  #viewEvalQuestions .eval-page-shell .rating-btn--eval {
    flex: none;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 2.75rem;
    height: auto;
    padding: .4rem .3rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: clip;
    box-sizing: border-box;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  }
  /* Row 1: Yes / Partially / No — Row 2: Don't know / N/A */
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval:nth-child(-n+3),
  #viewEvalQuestions .eval-page-shell .rating-btn--eval:nth-child(-n+3) {
    grid-column: span 2;
  }
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval:nth-child(4),
  #viewEvalQuestions .eval-page-shell .rating-btn--eval:nth-child(4) {
    grid-column: 1 / 4;
  }
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval:nth-child(5),
  #viewEvalQuestions .eval-page-shell .rating-btn--eval:nth-child(5) {
    grid-column: 4 / 7;
  }
  #viewEvalQuestions .eval-page-shell--rating .rating-btn.selected,
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval.selected,
  #viewEvalQuestions .rating-btn.selected {
    transform: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 0 0 2px rgba(15, 23, 42, .28);
  }
  #viewEvalQuestions .eval-page-shell--rating .eval-wizard-progress--below {
    margin: .1rem auto 0;
    max-width: none;
    width: 100%;
    flex: 0 0 auto;
  }
  #viewEvalQuestions .eval-wizard-comments {
    flex: 0 0 auto;
    height: 7.25rem;
    max-height: 7.25rem;
    overflow: hidden;
    margin-top: .25rem;
    padding-top: .5rem;
    box-sizing: border-box;
  }
  #viewEvalQuestions .eval-wizard-comments .eval-comments-title {
    margin: 0 0 .25rem;
    font-size: .8rem;
  }
  #viewEvalQuestions .eval-wizard-comments textarea {
    display: block;
    width: 100%;
    height: 4.5rem;
    min-height: 4.5rem;
    max-height: 4.5rem;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
  }
  #viewEvalQuestions .eval-wizard-actions.case-player-nav {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: .4rem;
    margin-top: auto;
    padding: .45rem .15rem 0;
  }
  #viewEvalQuestions .eval-wizard-actions .quiz-nav-btn {
    flex: 1 1 calc(50% - .4rem);
    min-width: 0;
    max-width: none;
  }
  #viewEvalQuestions #evalResumeHint:empty {
    display: none;
  }
}

@media (max-width: 380px) {
  /* Very narrow: 3 rows of full-width pairs / single */
  #viewEvalQuestions .eval-page-shell--rating .eval-rating-grid,
  #viewEvalQuestions .eval-page-shell .eval-rating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval:nth-child(-n+3),
  #viewEvalQuestions .eval-page-shell .rating-btn--eval:nth-child(-n+3),
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval:nth-child(4),
  #viewEvalQuestions .eval-page-shell .rating-btn--eval:nth-child(4),
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval:nth-child(5),
  #viewEvalQuestions .eval-page-shell .rating-btn--eval:nth-child(5) {
    grid-column: auto;
  }
  #viewEvalQuestions .eval-page-shell--rating .rating-btn--eval:nth-child(5),
  #viewEvalQuestions .eval-page-shell .rating-btn--eval:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .eval-category-chip--inline {
    font-size: .56rem;
    padding: .35rem .15rem;
  }
  .eval-wizard-card-body { padding: 1.35rem 1rem 1.15rem; }
  .eval-wizard-question-text { font-size: 1rem; }
}

.eval-category-block {
  margin-bottom: .55rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 8px rgba(15, 45, 74, .06);
}
.eval-category-block:last-child { border-bottom: none; margin-bottom: 0; }
.eval-category-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  padding: .5rem .85rem;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* Evaluation results — landing-style report theme */
.eval-report-panel {
  border: 1px solid rgba(168, 212, 240, .28);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
  overflow: hidden;
}
.eval-results-panel { overflow: hidden; }
.eval-page-shell.main-panel {
  overflow: hidden;
  border: none;
  background: var(--panel-main-bg, #e8eef5);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent-dark, var(--accent)) 16%, rgba(15, 45, 74, 0.1));
}
.eval-results-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(15, 45, 74, .96) 0%, rgba(30, 90, 138, .9) 100%);
  border-bottom: 1px solid rgba(168, 212, 240, .22);
  color: #fff;
}
.eval-results-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #a8d4f0;
  font-weight: 700;
  margin-bottom: .35rem;
}
.eval-results-header h2 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: .35rem;
}
.eval-results-participants {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 .5rem;
  font-weight: 500;
}
.eval-results-participant-line {
  display: block;
  line-height: 1.35;
}
.eval-results-date {
  font-size: .88rem;
  color: rgba(255, 255, 255, .82);
  margin-bottom: .75rem;
  font-weight: 500;
}
.eval-results-desc {
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
  margin: 0;
}
.eval-results-body {
  padding: 1rem 1.15rem 1.25rem;
  background: #f8fafc;
}
.eval-results-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.eval-results-totals-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.eval-source-summary {
  border-radius: 12px;
  padding: 1rem .9rem;
  text-align: center;
  border: 1px solid rgba(168, 212, 240, .35);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 45, 74, .06);
}
.eval-source-summary--self {
  border-top: 4px solid #1e5a8a;
  background: linear-gradient(180deg, rgba(30, 90, 138, .08), #fff);
}
.eval-source-summary--supervisor {
  border-top: 4px solid #7f1d1d;
  background: linear-gradient(180deg, rgba(127, 29, 29, .06), #fff);
}
.eval-source-summary--others {
  border-top: 4px solid #1a1a1a;
  background: linear-gradient(180deg, rgba(26, 26, 26, .05), #fff);
}
.eval-source-summary.is-empty { opacity: .6; }
.eval-source-summary-badge {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: .25rem;
}
.eval-source-summary-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f2d4a;
  line-height: 1.1;
}
.eval-source-summary-hint {
  display: block;
  margin-top: .35rem;
  font-size: .76rem;
  color: #64748b;
}

.eval-results-categories {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.25rem;
}
.eval-results-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: .25rem;
  padding: .55rem .75rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(15, 45, 74, .06);
  border-radius: 8px;
  border: 1px solid rgba(168, 212, 240, .25);
}
.eval-legend-item::before {
  content: '';
  display: inline-block;
  width: .65rem;
  height: .65rem;
  border-radius: 2px;
  margin-right: .35rem;
  vertical-align: middle;
}
.eval-legend-item--self::before { background: #1e5a8a; }
.eval-legend-item--supervisor::before { background: #7f1d1d; }
.eval-legend-item--others::before { background: #1a1a1a; }

.eval-cat-block {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 45, 74, .05);
}
.eval-cat-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  min-height: 2.5rem;
}
.eval-cat-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.eval-cat-meter {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 0 1 7.5rem;
  min-width: 4.5rem;
}
.eval-cat-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  overflow: hidden;
}
.eval-cat-bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  transition: width .25s ease;
}
.eval-cat-pct {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.eval-cat-expand-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .28rem .55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.eval-cat-expand-btn:hover {
  background: rgba(255, 255, 255, .22);
}
.eval-cat-block--situational_awareness { border-left: 4px solid #1e5a8a; }
.eval-cat-block--situational_awareness .eval-cat-head {
  background: linear-gradient(90deg, #143d5c, #1e5a8a);
}
.eval-cat-block--decision_making { border-left: 4px solid #166534; }
.eval-cat-block--decision_making .eval-cat-head {
  background: linear-gradient(90deg, #14532d, #166534);
}
.eval-cat-block--stress_management { border-left: 4px solid #991b1b; }
.eval-cat-block--stress_management .eval-cat-head {
  background: linear-gradient(90deg, #7f1d1d, #991b1b);
}
.eval-cat-block--teamwork { border-left: 4px solid #1a1a1a; }
.eval-cat-block--teamwork .eval-cat-head {
  background: linear-gradient(90deg, #0f172a, #1a1a1a);
}
.eval-subcat-panel {
  padding: .65rem 1rem .75rem;
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.eval-subcat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .32rem 0;
}
.eval-subcat-row + .eval-subcat-row {
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.eval-subcat-label {
  font-size: .76rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}
.eval-subcat-meter { min-width: 0; }
.eval-subcat-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.eval-subcat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .25s ease;
}
.eval-subcat-bar-fill--situational_awareness { background: linear-gradient(90deg, #143d5c, #1e5a8a); }
.eval-subcat-bar-fill--decision_making { background: linear-gradient(90deg, #14532d, #166534); }
.eval-subcat-bar-fill--stress_management { background: linear-gradient(90deg, #7f1d1d, #991b1b); }
.eval-subcat-bar-fill--teamwork { background: linear-gradient(90deg, #0f172a, #334155); }
.eval-subcat-pct {
  font-size: .78rem;
  font-weight: 800;
  color: #0f2d4a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 2.25rem;
  text-align: right;
}
.eval-cat-expand-panel {
  background: #fff;
}

.eval-source-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem .15rem;
  border-bottom: 1px solid #f1f5f9;
}
.eval-source-score:last-child { border-bottom: 0; }
.eval-source-score-label {
  font-size: .82rem;
  font-weight: 600;
  color: #475569;
}
.eval-source-score--self .eval-source-score-label { color: #143d5c; }
.eval-source-score--supervisor .eval-source-score-label { color: #7f1d1d; }
.eval-source-score--others .eval-source-score-label { color: #1a1a1a; }
.eval-source-score-val {
  font-size: .95rem;
  font-weight: 800;
  color: #0f2d4a;
  font-variant-numeric: tabular-nums;
}
.eval-source-score.is-empty .eval-source-score-val { color: #94a3b8; font-weight: 600; }

.eval-results-comments {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 0;
}
.eval-cat-block--comments {
  border-left: 4px solid #ca8a04;
}
.eval-cat-head--comments {
  background: linear-gradient(90deg, #92400e, #ca8a04);
}
.eval-comments-panel {
  padding: .85rem 1rem 1rem;
  background: #fff;
}
.eval-comment-field + .eval-comment-field {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid #e8edf2;
}
.eval-comment-field-label {
  margin: 0 0 .4rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
}
.eval-comment-field-body {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .65rem .75rem;
  min-height: 2.35rem;
  font-size: .86rem;
  line-height: 1.55;
  color: #334155;
}
.eval-comment-field-body p {
  margin: 0;
}
.eval-feedback-heading {
  margin: 0 0 .75rem;
  font-size: 1rem;
  color: #0f172a;
}
.eval-feedback-block {
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: .65rem;
  border: 1px solid #e2e8f0;
}
.eval-feedback-block--self {
  border-left: 4px solid #1e5a8a;
  background: rgba(30, 90, 138, .05);
}
.eval-feedback-block--supervisor {
  border-left: 4px solid #7f1d1d;
  background: rgba(127, 29, 29, .04);
}
.eval-feedback-block--others {
  border-left: 4px solid #1a1a1a;
  background: rgba(26, 26, 26, .04);
}
.eval-feedback-block h4 {
  margin: 0 0 .4rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.eval-feedback-block p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: #334155;
}
.eval-feedback-empty {
  color: #94a3b8;
  font-style: italic;
}
.eval-results-signatures {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.eval-signature-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}
.eval-signature-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
}
.eval-signature-value {
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  min-height: 1.1rem;
}
.eval-signature-rule {
  margin-top: .4rem;
  border: none;
  border-bottom: 2px solid #334155;
  min-height: 2.15rem;
  width: 100%;
}
@media (max-width: 640px) {
  .eval-results-signatures {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.tools-record-block .eval-rating-col--resume {
  color: var(--accent-dark);
  font-weight: 700;
}

.eval-total-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .7rem .75rem;
  text-align: center;
}
.eval-total-pill--self { border-top: 3px solid var(--accent); }
.eval-total-pill--supervisor { border-top: 3px solid #c2410c; }
.eval-total-pill--others { border-top: 3px solid #6366f1; }
.eval-total-pill.is-empty { opacity: .55; }
.eval-total-pill-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .2rem;
}
.eval-total-pill-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.eval-results-comparison {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  font-size: .84rem;
}
.eval-compare-head,
.eval-compare-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: .35rem;
  align-items: center;
  padding: .55rem .75rem;
}
.eval-compare-head {
  background: #f1f5f9;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.eval-compare-row:nth-child(even) { background: #fafbfc; }
.eval-compare-cat { font-weight: 600; color: #334155; }
.eval-compare-val { text-align: center; font-weight: 600; }
.eval-compare-val--self { color: #1e5a8a; }
.eval-compare-val--supervisor { color: #7f1d1d; }
.eval-compare-val--others { color: #1a1a1a; }
.eval-ai-assessment {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(15, 45, 74, .04), #fff);
  border: 1px solid rgba(168, 212, 240, .35);
  border-left: 4px solid #1e5a8a;
  border-radius: 10px;
}
.eval-ai-assessment h3 {
  margin: 0 0 .65rem;
  font-size: 1rem;
  color: #143d5c;
}
.eval-ai-assessment-text {
  font-size: .88rem;
  line-height: 1.6;
  color: #334155;
}
.eval-comments-panel {
  margin-top: 1rem;
}
.eval-comments-panel .panel-body {
  padding: 1rem 1.15rem;
}
.eval-comments-title {
  margin: 0 0 .35rem;
  font-size: 1rem;
}
.eval-results-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.eval-score-card {
  background: linear-gradient(145deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .85rem 1rem;
  text-align: center;
  border-top: 3px solid var(--accent);
}
.eval-score-card-label {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.eval-score-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.eval-results-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(30, 90, 138, .08);
  border-radius: var(--radius);
  border: 1px solid rgba(168, 212, 240, .35);
}
.eval-total-label {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eval-total-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.eval-results-page {
  padding: 2rem 0;
  max-width: 720px;
}

.eval-case-code-banner {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #fff), color-mix(in srgb, var(--accent) 10%, #f8fafc));
  border: 2px solid color-mix(in srgb, var(--accent) 35%, #cbd5e1);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.eval-case-code-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.eval-case-code-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: .35rem;
}
.eval-case-code-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent-dark);
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  margin: 0;
}
.eval-case-code-copy {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  font-weight: 600;
  white-space: nowrap;
}

.eval-question { margin-bottom: 1.5rem; }
.eval-question p { font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }

/* Radar chart container */
.chart-container { max-width: 400px; margin: 1.5rem auto; }

/* Case list */
.case-list { list-style: none; }
.case-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid #eef2f7;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Case exam mode */
.case-mode-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.modal-case-mode .case-mode-choice-btn {
  width: 100%;
  min-height: 100%;
  gap: .55rem;
  padding: 1.1rem .7rem .95rem;
}
.modal-case-mode .case-mode-choice-btn--exam {
  border-color: color-mix(in srgb, var(--accent) 28%, #e2e8f0);
}
.modal-case-mode .case-mode-choice-icon {
  width: 3.25rem;
  height: 3.25rem;
  color: #fff;
  background: var(--dashboard-pill-bg, linear-gradient(145deg, var(--accent-dark), var(--accent)));
  box-shadow: var(--dashboard-pill-shadow, 0 2px 6px color-mix(in srgb, var(--accent) 28%, transparent));
}
.modal-case-mode .case-mode-choice-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}
body[class*="theme-"] .modal-case-mode .case-mode-choice-btn {
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent)) 22%, #e2e8f0);
}
body[class*="theme-"] .modal-case-mode .case-mode-choice-btn:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 14%, transparent);
}
body[class*="theme-"] .modal-case-mode .case-mode-choice-icon {
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
  color: var(--dashboard-pill-text, #fff);
}
body[class*="theme-"] .modal-case-mode .case-role-card-label {
  color: var(--accent-dark);
}
.modal-case-mode {
  width: min(520px, 100%);
}
@media (max-width: 520px) {
  .case-mode-choice-grid {
    grid-template-columns: 1fr;
  }
}
.case-exam-invite-results {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
  max-height: 10rem;
  overflow: auto;
}
.case-exam-invite-result-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  width: 100%;
  padding: .55rem .65rem;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.case-exam-invite-result-btn:hover { background: #f8fafc; }
.case-exam-invite-result-btn span { font-size: .72rem; color: #64748b; }
.case-exam-invite-empty { padding: .55rem .65rem; color: #64748b; font-size: .8rem; }
.case-exam-invite-picked {
  margin: .5rem 0 0;
  font-size: .8rem;
  color: var(--accent-dark, #1e5a8a);
  font-weight: 600;
}
.case-exam-approve {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .35rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #166534;
  cursor: pointer;
}
.case-exam-approve input { accent-color: #16a34a; width: 1rem; height: 1rem; }
.case-ip-point-box.is-approved {
  border-color: #86efac;
  background: #f0fdf4;
}
.case-exam-results-page .case-exam-step-tabs {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.case-exam-results-page .case-exam-totals-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.case-exam-results-page .case-exam-summary--overall {
  border-top: none;
  background:
    linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 100%) top / 100% 11px no-repeat,
    #fff;
  padding-top: .72rem;
}
.case-exam-results-page .case-exam-summary--overall .eval-source-summary-value {
  color: var(--accent-dark);
}
.case-exam-results-page .case-exam-summary--good {
  border-top: none;
  background:
    linear-gradient(145deg, #14532d 0%, #16a34a 100%) top / 100% 11px no-repeat,
    #fff;
  padding-top: .72rem;
}
.case-exam-results-page .case-exam-summary--good .eval-source-summary-badge,
.case-exam-results-page .case-exam-summary--good .eval-source-summary-value {
  color: #14532d;
}
.case-exam-results-page .case-exam-summary--ok {
  border-top: none;
  background:
    linear-gradient(145deg, #854d0e 0%, #eab308 100%) top / 100% 11px no-repeat,
    #fff;
  padding-top: .72rem;
}
.case-exam-results-page .case-exam-summary--ok .eval-source-summary-badge,
.case-exam-results-page .case-exam-summary--ok .eval-source-summary-value {
  color: #854d0e;
}
.case-exam-results-page .case-exam-summary--fail {
  border-top: none;
  background:
    linear-gradient(145deg, #7f1d1d 0%, #ef4444 100%) top / 100% 11px no-repeat,
    #fff;
  padding-top: .72rem;
}
.case-exam-results-page .case-exam-summary--fail .eval-source-summary-badge,
.case-exam-results-page .case-exam-summary--fail .eval-source-summary-value {
  color: #991b1b;
}
.case-exam-step-tab {
  border: 1px solid color-mix(in srgb, var(--accent, #64748b) 22%, #e2e8f0);
  border-radius: 12px;
  background: var(--dashboard-list-card-bg, #fff);
  box-shadow: var(--dashboard-list-card-shadow, 0 2px 8px rgba(15,23,42,.05));
  overflow: hidden;
}
.case-exam-step-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .85rem 1rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.case-exam-step-tab-head:hover {
  background: color-mix(in srgb, var(--accent, #64748b) 6%, #f8fafc);
}
.case-exam-step-tab.is-open .case-exam-step-tab-head {
  border-bottom: 1px solid #eef2f7;
}
.case-exam-step-tab-aside {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.case-exam-step-toggle {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent, #2563eb);
  min-width: 2.4rem;
  text-align: right;
}
.case-exam-step-tab-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.case-exam-step-tab-title h3 {
  margin: 0;
  font-size: .92rem;
  font-weight: 650;
  color: var(--text);
}
.case-exam-step-num {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--case-skill-blue-gradient-start, #1e5a8a) 0%, var(--case-skill-blue-gradient-end, #2563eb) 100%);
}
.case-exam-step-score {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .18rem;
}
.case-exam-step-score strong {
  font-size: 1.15rem;
  color: var(--case-skill-blue-text, #1e5a8a);
  line-height: 1;
}
.case-exam-step-score-breakdown {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .2rem;
}
.case-exam-score-chip {
  display: inline-flex;
  align-items: center;
  padding: .1rem .35rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
}
.case-exam-score-chip--good {
  color: #14532d;
  background: #dcfce7;
}
.case-exam-score-chip--ok {
  color: #854d0e;
  background: #fef9c3;
}
.case-exam-score-chip--fail {
  color: #991b1b;
  background: #fee2e2;
}
.case-exam-step-tab--decision_making {
  border-color: var(--case-skill-blue-border, #bfdbfe);
  border-left: 4px solid var(--case-skill-blue-text, #1e5a8a);
}
.case-exam-step-tab--decision_making .case-exam-step-num {
  background: linear-gradient(145deg, var(--case-skill-blue-gradient-start), var(--case-skill-blue-gradient-end));
}
.case-exam-step-tab--decision_making .case-exam-step-score strong,
.case-exam-step-tab--decision_making .case-exam-step-toggle {
  color: var(--case-skill-blue-text, #1e5a8a);
}
.case-exam-step-tab--situational_awareness {
  border-color: var(--case-skill-green-border, #a7f3d0);
  border-left: 4px solid var(--case-skill-green-text, #047857);
}
.case-exam-step-tab--situational_awareness .case-exam-step-num {
  background: linear-gradient(145deg, var(--case-skill-green-gradient-start), var(--case-skill-green-gradient-end));
}
.case-exam-step-tab--situational_awareness .case-exam-step-score strong,
.case-exam-step-tab--situational_awareness .case-exam-step-toggle {
  color: var(--case-skill-green-text, #047857);
}
.case-exam-step-tab--stress_management {
  border-color: var(--case-skill-red-border, #fecaca);
  border-left: 4px solid var(--case-skill-red-text, #b91c1c);
}
.case-exam-step-tab--stress_management .case-exam-step-num {
  background: linear-gradient(145deg, var(--case-skill-red-gradient-start), var(--case-skill-red-gradient-end));
}
.case-exam-step-tab--stress_management .case-exam-step-score strong,
.case-exam-step-tab--stress_management .case-exam-step-toggle {
  color: var(--case-skill-red-text, #b91c1c);
}
.case-exam-step-tab--teamwork {
  border-color: var(--case-skill-yellow-border, #fde68a);
  border-left: 4px solid var(--case-skill-yellow-text, #a16207);
}
.case-exam-step-tab--teamwork .case-exam-step-num {
  background: linear-gradient(145deg, var(--case-skill-yellow-gradient-start), var(--case-skill-yellow-gradient-end));
  color: #1a1208;
}
.case-exam-step-tab--teamwork .case-exam-step-score strong,
.case-exam-step-tab--teamwork .case-exam-step-toggle {
  color: var(--case-skill-yellow-text, #a16207);
}
.case-exam-fasit-heading--clinical {
  color: var(--case-skill-blue-text, #1e5a8a);
}
.case-exam-fasit-heading--nts {
  color: var(--case-skill-yellow-text, #a16207);
}
@media (max-width: 720px) {
  .case-exam-results-page .case-exam-totals-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.case-exam-invite-body { text-align: left; }
.case-exam-invite-field { margin-bottom: .85rem; }
.case-exam-invite-field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
}
.case-exam-invite-field input { width: 100%; box-sizing: border-box; }
.case-exam-invite-actions {
  display: flex;
  justify-content: center;
  margin-top: .85rem;
}
.case-exam-student-wait {
  margin: 0;
  padding: .85rem 1rem;
  font-size: .86rem;
  line-height: 1.45;
  color: #475569;
  background: color-mix(in srgb, var(--accent) 8%, #f8fafc);
  border-radius: 10px;
}
.case-exam-rate {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .45rem;
}
.case-exam-rate-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: .22rem .55rem;
  font: inherit;
  font-size: .68rem;
  font-weight: 700;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}
.case-exam-rate-btn:disabled { opacity: .55; cursor: default; }
.case-exam-rate-btn--good.is-active,
.case-exam-rate-btn--good:hover { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.case-exam-rate-btn--ok.is-active,
.case-exam-rate-btn--ok:hover { background: #fef9c3; border-color: #ca8a04; color: #854d0e; }
.case-exam-rate-btn--fail.is-active,
.case-exam-rate-btn--fail:hover { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
/* Graded boxes: soft fill by rating (no red outline) */
.case-ip-point-box.is-rated-good {
  border: 1px solid #86efac;
  background: #f0fdf4;
  box-shadow: 0 1px 4px color-mix(in srgb, #16a34a 12%, transparent);
}
.case-ip-point-box.is-rated-ok {
  border: 1px solid #fde047;
  background: #fefce8;
  box-shadow: 0 1px 4px color-mix(in srgb, #ca8a04 12%, transparent);
}
.case-ip-point-box.is-rated-fail {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  box-shadow: 0 1px 4px color-mix(in srgb, #dc2626 12%, transparent);
}
.case-ip-point-box.is-approved {
  border: 1px solid #86efac;
  background: #f0fdf4;
  box-shadow: 0 1px 4px color-mix(in srgb, #16a34a 12%, transparent);
}
.case-exam-pill-good strong { color: #15803d; }
.case-exam-pill-ok strong { color: #a16207; }
.case-exam-pill-fail strong { color: #b91c1c; }
.case-exam-results-page .eval-results-fact--supervisor .eval-results-fact-value {
  font-weight: 700;
  color: #fff;
}
.case-exam-step-fasit {
  margin: 0;
  padding: .85rem 1rem 1rem;
}
.case-exam-fasit-heading {
  margin: .45rem 0 .3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b;
}
.case-exam-fasit-empty {
  margin: .35rem 0 0;
  font-size: .82rem;
  color: #64748b;
}
.case-exam-fasit-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .82rem;
  line-height: 1.4;
  color: #334155;
}
.case-exam-fasit-list--nts {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.case-exam-fasit-list--nts li,
.case-exam-fasit-item {
  display: grid;
  gap: .15rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.case-exam-fasit-item.is-graded {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.case-exam-fasit-item--good.is-graded {
  border-color: #86efac;
  background: #f0fdf4;
}
.case-exam-fasit-item--ok.is-graded {
  border-color: #fde047;
  background: #fefce8;
}
.case-exam-fasit-item--fail.is-graded {
  border-color: #fca5a5;
  background: #fef2f2;
}
.case-exam-fasit-item--good { background: #f0fdf4; }
.case-exam-fasit-item--ok { background: #fefce8; }
.case-exam-fasit-item--fail { background: #fef2f2; }
.case-exam-fasit-item--pending { opacity: .85; }
.case-exam-fasit-rating {
  display: inline-block;
  width: fit-content;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.case-exam-fasit-rating--good { background: #dcfce7; color: #14532d; }
.case-exam-fasit-rating--ok { background: #fef9c3; color: #854d0e; }
.case-exam-fasit-rating--fail { background: #fee2e2; color: #991b1b; }
.case-exam-fasit-rating--none { background: #f1f5f9; color: #94a3b8; }

.case-player {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 5.5rem);
}
.case-step-panel {
  margin-bottom: .75rem;
  flex-shrink: 0;
  border-top: 3px solid #475569;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.case-step-body {
  padding: .85rem 1rem !important;
  background: #fff;
}
.case-step-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 12.5rem);
  gap: 1rem;
  align-items: stretch;
}
.case-step-main-row--with-visual {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: stretch;
}
.case-step-sit-discuss {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.case-step-main-row--with-visual .case-step-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.case-step-main-row--with-visual .case-step-sit-discuss {
  grid-column: 1;
  grid-row: 1;
}
.case-step-main-row--with-visual .case-step-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.case-step-main-row--no-visual {
  grid-template-columns: minmax(0, 1fr);
}
.case-step-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.case-step-visual {
  align-self: stretch;
  min-height: 11rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
  background: #0f172a;
}
.case-step-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
}
.case-step-visual-img--medical { object-position: 50% 22%; }
.case-step-visual-img--case-photo { object-position: center 28%; }
.case-step-visual-img--law { object-position: center 22%; }
.case-step-visual-img--business { object-position: 50% 28%; }
.case-step-visual-img--aviation { object-position: center 42%; }
.case-step-visual-img--fire { object-position: center 30%; }
.case-step-visual-img--disaster { object-position: center 40%; }
.case-step-visual-img--industry { object-position: center 32%; }
.case-step-visual-img--role-nurse { object-position: 50% 28%; }
.case-step-visual-img--role-shift_leader { object-position: 50% 30%; }
.case-step-visual-img--role-paramedic { object-position: 50% 40%; }
.case-step-visual-img--role-police { object-position: center 22%; }
.case-step-visual-img--role-military { object-position: center 22%; }
.case-step-visual-img--role-firefighter { object-position: center 28%; }
.case-step-visual-img--role-finance { object-position: 50% 32%; }
.case-step-visual-img--role-consultant { object-position: 50% 30%; }
.case-step-visual-img--role-legal { object-position: 50% 22%; }
.case-step-intro {
  display: none;
}
.case-step-block {
  margin: 0;
  flex: 0;
  padding: .85rem .95rem 1rem;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
}
.case-step-block--situation {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.case-step-block--discussion {
  margin-top: .75rem;
  padding: .85rem .95rem 1rem;
  border: 1px solid #99f6e4;
  background: #f0fdf9;
}
.case-step-block--team-comments {
  margin-top: .75rem;
  padding: .85rem .95rem 1rem;
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
}
.case-step-block--discussion .case-step-heading {
  margin-bottom: .45rem;
}
.case-step-block .case-editor-textarea {
  background: #fff;
}
.case-step-block--discussion .case-editor-textarea {
  background: #fff;
}
.case-step-heading {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .4rem;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
}
.case-step-heading--situation { color: #1e5a8a; }
.case-step-case-title {
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #0f172a;
}
.case-step-heading--discussion { color: #0f766e; }
.case-step-heading--team-comments { color: #6d28d9; }
.case-step-heading--important-points { color: #b45309; }
.case-step-heading--important-points .case-step-heading-icon {
  background: #fffbeb;
  color: #b45309;
}
.case-player .case-step-block--important-points {
  margin-top: .75rem;
  padding: .85rem .95rem 1rem;
  border: 1px solid color-mix(in srgb, #f59e0b 34%, #fcd34d);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.case-player-discussion-stack {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.case-qa-stack {
  gap: .75rem;
}
.case-qa-item--point {
  padding-left: .15rem;
}
.case-qa-item--point .case-ip-point-box {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
}
.case-qa-item--point .case-exam-student-wait {
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.case-player-focus-box--full {
  width: 100%;
}
.case-ip-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 .75rem;
  padding: .28rem .62rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.case-ip-category--decision_making {
  color: var(--case-skill-blue-text, #1e5a8a);
  background: var(--case-skill-blue-bg, #eff6ff);
  border: 1px solid var(--case-skill-blue-border, #bfdbfe);
}
.case-ip-category--situational_awareness {
  color: var(--case-skill-green-text, #047857);
  background: var(--case-skill-green-bg, #ecfdf5);
  border: 1px solid var(--case-skill-green-border, #a7f3d0);
}
.case-ip-category--stress_management {
  color: var(--case-skill-red-text, #b91c1c);
  background: var(--case-skill-red-bg, #fef2f2);
  border: 1px solid var(--case-skill-red-border, #fecaca);
}
.case-ip-category--teamwork {
  color: var(--case-skill-yellow-text, #a16207);
  background: var(--case-skill-yellow-bg, #fffbeb);
  border: 1px solid var(--case-skill-yellow-border, #fde68a);
}
.case-ip-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.case-ip-focus-section {
  width: 100%;
  padding: .72rem .75rem .78rem;
  border-radius: 11px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}
.case-ip-focus-section--clinical {
  background: linear-gradient(
    180deg,
    var(--case-skill-blue-bg, #eff6ff) 0%,
    color-mix(in srgb, var(--case-skill-blue-bg, #eff6ff) 28%, #fff) 55%,
    #fff 100%
  );
  border-color: var(--case-skill-blue-border, #bfdbfe);
}
.case-ip-focus-section--nts {
  margin-top: .15rem;
  background: linear-gradient(
    180deg,
    var(--case-skill-yellow-bg, #fffbeb) 0%,
    color-mix(in srgb, var(--case-skill-yellow-bg, #fffbeb) 24%, #fff) 55%,
    #fff 100%
  );
  border-color: var(--case-skill-yellow-border, #fde68a);
}
.case-ip-section-heading {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.case-ip-section-heading--clinical {
  color: var(--case-skill-blue-text, #1e5a8a);
}
.case-ip-section-heading--nts {
  color: var(--case-skill-blue-text, #1e5a8a);
}
.case-ip-point-row {
  display: flex;
  flex-wrap: nowrap;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  scrollbar-width: thin;
}
.case-ip-focus-section--nts .case-ip-point-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  overflow: visible;
}
.case-ip-focus-section--nts .case-ip-point-box {
  min-width: 0;
  height: 100%;
}
.case-ip-point-box {
  flex: 1 1 0;
  min-width: 9.5rem;
  padding: .62rem .72rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #d4dde8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.case-ip-point-box--clinical {
  border-color: var(--case-skill-blue-border, #bfdbfe);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--case-skill-blue-text, #1e5a8a) 8%, transparent);
}
.case-ip-point-box--nts {
  border-color: color-mix(in srgb, var(--case-skill-blue-border, #93c5fd) 85%, #d4dde8);
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--case-skill-blue-text, #1e5a8a) 8%, transparent);
}
.case-ip-point-box--nts.case-ip-point-box--decision_making,
.case-ip-point-box--nts.case-ip-point-box--situational_awareness,
.case-ip-point-box--nts.case-ip-point-box--stress_management,
.case-ip-point-box--nts.case-ip-point-box--teamwork {
  border-color: color-mix(in srgb, var(--case-skill-blue-border, #93c5fd) 90%, #c7d7ea);
}
.case-ip-point-box-title {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--accent-dark);
  line-height: 1.25;
  white-space: normal;
}
.case-ip-point-box--nts .case-ip-point-box-title,
.case-ip-point-box--nts.case-ip-point-box--decision_making .case-ip-point-box-title,
.case-ip-point-box--nts.case-ip-point-box--situational_awareness .case-ip-point-box-title,
.case-ip-point-box--nts.case-ip-point-box--stress_management .case-ip-point-box-title,
.case-ip-point-box--nts.case-ip-point-box--teamwork .case-ip-point-box-title {
  color: var(--case-skill-blue-text, #1e5a8a);
}
.case-ip-point-box-text {
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
  color: #334155;
  white-space: pre-line;
}
.case-ip-empty {
  margin: 0;
  font-size: .84rem;
  color: #64748b;
}
.case-ip-archive-section {
  margin-top: .75rem;
}
.case-ip-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.case-ip-archive-item {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #d4dde8);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.case-ip-archive-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .55rem .7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, #e2e8f0);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.case-ip-archive-num {
  flex: 0 0 auto;
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 100%);
}
.case-ip-archive-skill {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0f172a;
  line-height: 1.35;
  white-space: normal;
}
.case-ip-archive-item--decision_making .case-ip-archive-num {
  background: linear-gradient(145deg, var(--case-skill-blue-gradient-start, #1e5a8a), var(--case-skill-blue-gradient-end, #2563eb));
}
.case-ip-archive-item--situational_awareness .case-ip-archive-num {
  background: linear-gradient(145deg, var(--case-skill-green-gradient-start, #047857), var(--case-skill-green-gradient-end, #10b981));
}
.case-ip-archive-item--stress_management .case-ip-archive-num {
  background: linear-gradient(145deg, var(--case-skill-red-gradient-start, #b91c1c), var(--case-skill-red-gradient-end, #ef4444));
}
.case-ip-archive-item--teamwork .case-ip-archive-num {
  background: linear-gradient(145deg, var(--case-skill-yellow-gradient-start, #a16207), var(--case-skill-yellow-gradient-end, #eab308));
}
.case-ip-archive-item--decision_making .case-ip-archive-skill {
  color: var(--case-skill-blue-text, #1e5a8a);
}
.case-ip-archive-item--situational_awareness .case-ip-archive-skill {
  color: var(--case-skill-green-text, #047857);
}
.case-ip-archive-item--stress_management .case-ip-archive-skill {
  color: var(--case-skill-red-text, #b91c1c);
}
.case-ip-archive-item--teamwork .case-ip-archive-skill {
  color: var(--case-skill-yellow-text, #a16207);
}
.case-ip-archive-toggle {
  flex: 0 0 auto;
  min-width: 4.1rem;
  padding: .18rem .55rem;
  font-size: .72rem;
}
.case-ip-archive-body {
  padding: .7rem .75rem .8rem;
}
.case-ip-archive-body.hidden {
  display: none;
}
.case-step-tips-block--participants {
  width: 100%;
  margin-top: .15rem;
}
.case-step-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.case-step-heading--situation .case-step-heading-icon {
  background: #eef6ff;
  color: #1e5a8a;
}
.case-step-heading--discussion .case-step-heading-icon {
  background: #ecfdf5;
  color: #0f766e;
}
.case-step-heading--team-comments .case-step-heading-icon {
  background: #ede9fe;
  color: #6d28d9;
}
.case-step-heading-icon svg {
  width: .9rem;
  height: .9rem;
}
.case-step-block--situation .case-step-text {
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: .7rem;
}
.case-step-block--situation .case-step-text:last-child {
  margin-bottom: 0;
}
.case-step-text--nts-hint {
  color: #334155;
}
.case-step-text {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: #1e293b;
  max-width: 100%;
}
.case-step-text--prompt {
  font-weight: 600;
  color: #0f172a;
  white-space: pre-line;
}
.case-step-discussion-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.case-step-discussion-point-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}
.case-step-discussion-point--clinical .case-step-discussion-point-label { color: #0f766e; }
.case-step-discussion-point--nts .case-step-discussion-point-label { color: #1e5a8a; }
.case-step-text--nts-intro {
  margin: 0 0 .45rem;
  font-size: .82rem;
  line-height: 1.45;
  color: #475569;
}
.case-step-nts-principles {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: .82rem;
  line-height: 1.45;
  color: #334155;
}
.case-step-nts-principles li { margin-bottom: .2rem; }
.case-step-tips-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: .75rem;
}
.case-step-tips-block {
  padding: 1.05rem 1.15rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.case-step-tips-block--clinical {
  border-color: #93c5fd;
  background: #f5f9ff;
}
.case-step-tips-block--nts {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.case-step-tips-heading {
  margin: 0 0 .7rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #475569;
}
.case-step-tips-block--clinical .case-step-tips-heading { color: #1e5a8a; }
.case-step-tips-block--nts .case-step-tips-heading { color: #334155; }
.case-step-tips-block--instructor {
  border-color: #cbd5e1;
  background: #fff;
}
.case-step-tips-block--instructor .case-step-tips-heading {
  color: #475569;
}
.case-step-tips-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: .92rem;
  line-height: 1.55;
  color: #334155;
}
.case-step-tips-block--clinical .case-step-tips-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 1.15rem;
}
.case-step-tips-list li { margin-bottom: .35rem; }
.case-nts-pair-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-nts-pair-list li {
  display: grid;
  grid-template-columns: minmax(10.5rem, 34%) 1.4rem minmax(0, 1fr);
  gap: .35rem .85rem;
  align-items: start;
  padding: .55rem 0;
  border-top: 1px solid #e8edf2;
  font-size: .92rem;
  line-height: 1.5;
}
.case-nts-pair-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.case-nts-principle {
  font-weight: 700;
  color: #1e5a8a;
}
.case-nts-arrow {
  color: #64748b;
  font-weight: 700;
}
.case-nts-detail {
  color: #334155;
}
@media (max-width: 640px) {
  .case-nts-pair-list li {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "principle arrow"
      "detail detail";
  }
  .case-nts-principle { grid-area: principle; }
  .case-nts-arrow { grid-area: arrow; justify-self: start; }
  .case-nts-detail { grid-area: detail; }
}
.case-timeline-tips-stack {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.case-timeline-tips-box {
  padding: .35rem .4rem .4rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e8edf2;
}
.case-timeline-tips-box--clinical { background: #f8fbff; border-color: #dbeafe; }
.case-timeline-tips-label {
  display: block;
  margin-bottom: .2rem;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}
.case-editor-discussion-label {
  display: block;
  margin: .55rem 0 .3rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}
.case-editor-nts-preview {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px dashed rgba(15, 118, 110, .25);
}
.case-editor-tips-stack .case-step-tips-heading {
  display: block;
}
.case-editor-tips-stack .case-editor-textarea {
  margin-top: .35rem;
}
.case-step-complete {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(135deg, #eef6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(30, 90, 138, .08);
}
.case-step-complete--finished {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  max-width: 32rem;
  margin: 0 auto;
}
.case-complete-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 1.5rem;
  max-width: 100%;
}
.case-complete-modal {
  width: min(440px, 100%);
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 1.35rem 1.25rem;
  box-sizing: border-box;
  overflow: hidden;
}
.case-complete-modal .login-modal-header {
  margin: 0 0 1rem;
  width: 100%;
  box-sizing: border-box;
}
body[class*="theme-"] .case-complete-modal .login-modal-header {
  margin-left: 0;
  margin-right: 0;
}
.case-complete-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 .85rem;
}
.case-complete-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent, #1e6b8a);
}
.case-complete-lead {
  margin: 0 0 1rem;
  text-align: center;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--text-muted, #5a6b7d);
}
.case-complete-actions.join-actions {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.case-complete-actions .btn,
.case-complete-actions .login-modal-submit {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body[class*="theme-"] .case-complete-modal .join-modal-kind {
  color: rgba(255, 255, 255, .82);
}
body[class*="theme-"] .case-complete-modal .login-modal-title {
  color: #fff;
}
.case-step-complete-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e5a8a, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 90, 138, .22);
}
.case-step-complete-icon svg {
  width: 1.85rem;
  height: 1.85rem;
}
.case-step-complete-text {
  min-width: 0;
  text-align: left;
}
.case-step-complete-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e5a8a;
  line-height: 1.25;
}
.case-step-complete-sub {
  margin: .25rem 0 0;
  font-size: .88rem;
  font-weight: 600;
  color: #047857;
  line-height: 1.35;
}
.case-step-hero {
  display: flex;
  align-self: stretch;
  min-height: 100%;
}
.case-step-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 90, 138, .18);
}
.case-step-hero-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}
.case-step-hero-icon--0 {
  background: linear-gradient(145deg, #1e5a8a, #2563eb);
}
.case-step-hero-icon--1 {
  background: linear-gradient(145deg, #475569, #64748b);
}
.case-step-hero-icon--2 {
  background: linear-gradient(145deg, #0f766e, #14b8a6);
}
.case-step-hero-icon--decision_making {
  background: linear-gradient(145deg, #1e5a8a, #2563eb);
}
.case-step-hero-icon--situational_awareness {
  background: linear-gradient(145deg, #047857, #10b981);
}
.case-step-hero-icon--stress_management {
  background: linear-gradient(145deg, #c2410c, #ea580c);
}
.case-step-hero-icon--teamwork {
  background: linear-gradient(145deg, #6d28d9, #8b5cf6);
}
.case-nav {
  display: flex;
  gap: .65rem;
  justify-content: center;
  margin: .5rem 0 1rem;
  flex-shrink: 0;
}
.case-timeline-section {
  margin-top: auto;
  padding: .85rem 1rem 1rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.case-timeline-title {
  margin: 0 0 .65rem;
  font-size: .82rem;
  font-weight: 700;
  color: #475569;
  border-left: 4px solid #475569;
  padding-left: .6rem;
}
.case-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .65rem;
  align-items: stretch;
}
.case-player .case-timeline,
.case-editor .case-timeline {
  grid-template-columns: 1fr;
}
.case-points-open {
  padding: 1.1rem 1.25rem 1.3rem;
}
.case-points-open .case-timeline-item {
  display: block;
}
.case-points-open .case-timeline-marker {
  display: none;
}
.case-points-open .case-timeline-body {
  min-height: 0;
  height: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.case-points-open .case-timeline-head {
  margin-bottom: .75rem;
}
.case-player .case-points-open .case-step-tips-stack,
.case-editor .case-step-tips-stack {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(20rem, 1.25fr);
  gap: 1.1rem;
  margin-top: .35rem;
}
.case-player .case-points-open .case-step-tips-block {
  min-height: 12rem;
  padding: 1.15rem 1.25rem 1.3rem;
}
.case-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
}
.case-timeline-marker {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin-bottom: .35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
}
.case-timeline-item--decision_making .case-timeline-marker {
  background: linear-gradient(145deg, #1e5a8a, #2563eb);
}
.case-timeline-item--situational_awareness .case-timeline-marker {
  background: linear-gradient(145deg, #047857, #10b981);
}
.case-timeline-item--stress_management .case-timeline-marker {
  background: linear-gradient(145deg, #c2410c, #ea580c);
}
.case-timeline-item--teamwork .case-timeline-marker {
  background: linear-gradient(145deg, #6d28d9, #8b5cf6);
}
.case-timeline-marker svg { width: 1rem; height: 1rem; }
.case-timeline-body {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .5rem .55rem;
  min-height: 7.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}
.case-timeline-head {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.case-timeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #1e293b;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}
.case-timeline-skill {
  font-size: .64rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.2;
}
.case-timeline-item--decision_making .case-timeline-skill { color: #1e5a8a; }
.case-timeline-item--situational_awareness .case-timeline-skill { color: #047857; }
.case-timeline-item--stress_management .case-timeline-skill { color: #c2410c; }
.case-timeline-item--teamwork .case-timeline-skill { color: #6d28d9; }
.case-timeline-keywords {
  margin: 0;
  padding: 0 0 0 .8rem;
  font-size: .68rem;
  line-height: 1.35;
  color: #475569;
  flex: 1;
  overflow: hidden;
}
.case-timeline-keywords li { margin-bottom: .12rem; }
.case-timeline-item--active .case-timeline-body {
  border-color: #1e5a8a;
  box-shadow: 0 0 0 2px rgba(30, 90, 138, .12);
}
.case-player img:not(.case-step-visual-img) { display: none; }

/* Case editor & player */
.case-editor-shell,
.case-player-shell,
.quiz-page-shell,
.eval-page-shell {
  margin: .5rem 0 2rem;
}
.case-editor-body,
.case-player-body {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: .85rem;
}
.case-editor-block,
.case-player-block {
  margin: 0;
}
.case-editor-page-header,
.case-player-page-header {
  background: transparent;
  border-bottom: 1px solid #c5d0dc;
  padding: .85rem 1rem .9rem;
}
#viewCase .case-player-page-header {
  padding: .4rem .75rem .45rem;
}
.case-player-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: .72rem .85rem .78rem;
  min-height: 3.35rem;
  border-left: 3px solid #fff;
  border-radius: 8px;
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
}
#viewCase .case-player-header-inner {
  min-height: 0;
  height: auto;
  padding: .28rem .65rem .28rem .75rem;
  gap: .75rem;
  align-items: center;
}
.case-player-header-session {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  flex-shrink: 0;
}
.case-player-header-session.hidden {
  display: none;
}
.eval-player-header-titles {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .18rem;
}
.eval-player-header-titles h2 {
  flex: none;
  width: auto;
}
.eval-player-case-name {
  margin: 0;
  max-width: 100%;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.25;
  color: #fff;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-player-page-header h2 {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  min-height: 0;
  display: block;
  width: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
}
#viewCase .case-player-page-header h2 {
  flex: 1 1 auto;
  font-size: 1.05rem;
  letter-spacing: .04em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eval-page-shell--rating .eval-player-header-titles h2,
.eval-page-shell--rating .case-player-page-header h2 {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .08em;
}
.case-player-session-code {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  white-space: nowrap;
  line-height: 1.1;
  text-align: center;
}
.case-player-page-header .session-qr-host {
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: .2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.case-player-page-header .session-qr-caption {
  display: none;
}
.case-player-page-header .session-qr-box,
.case-player-page-header .session-qr-box img,
.case-player-page-header .session-qr-box canvas,
.case-player-page-header .session-qr-box table {
  width: 72px !important;
  height: 72px !important;
}
#viewCase .case-player-header-session {
  flex-direction: row;
  align-items: center;
  gap: .45rem;
}
#viewCase .case-player-page-header .session-qr-host {
  padding: .12rem;
  border-radius: 6px;
}
#viewCase .case-player-page-header .session-qr-box,
#viewCase .case-player-page-header .session-qr-box img,
#viewCase .case-player-page-header .session-qr-box canvas,
#viewCase .case-player-page-header .session-qr-box table {
  width: 48px !important;
  height: 48px !important;
}
#viewCase .case-player-session-code {
  font-size: .78rem;
  letter-spacing: .08em;
}
.case-editor-page-header h2 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: .5rem .65rem .55rem .75rem;
  border-left: 3px solid #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dashboard-pill-text);
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
}
.case-editor-fields {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.case-editor-step-body,
.case-player-step-body {
  min-width: 0;
}
.case-player-step-body > .case-step-block--team-comments {
  margin-top: .75rem;
}
.case-editor .case-step-block,
.case-player .case-step-block {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  box-shadow: 0 1px 3px rgba(30, 107, 138, .06);
}
.case-editor .case-step-heading,
.case-player .case-step-heading {
  margin: -.85rem -.95rem .65rem;
  padding: .42rem .6rem .46rem .65rem;
  border-left: 3px solid #e0f2fe;
  border-radius: 8px 8px 0 0;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #e0f2fe;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  box-shadow: none;
}
.case-editor .case-step-heading-icon,
.case-player .case-step-heading-icon {
  background: rgba(255, 255, 255, .18);
  color: #e0f2fe;
}
.case-editor .case-step-block--discussion,
.case-player .case-step-block--discussion,
.case-editor .case-step-block--team-comments,
.case-player .case-step-block--team-comments {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: color-mix(in srgb, var(--accent) 24%, #d4dde8);
}
.case-editor .case-step-heading--situation,
.case-editor .case-step-heading--discussion,
.case-editor .case-step-heading--important-points,
.case-editor .case-step-heading--team-comments,
.case-player .case-step-heading--situation,
.case-player .case-step-heading--discussion,
.case-player .case-step-heading--important-points,
.case-player .case-step-heading--team-comments {
  color: #e0f2fe;
}
.case-live-comments-wrap {
  margin-top: 0;
}
.case-player .case-step-block--team-comments {
  margin-top: .75rem;
}
.case-live-comments-empty {
  margin: 0;
  font-size: .88rem;
  color: #64748b;
  line-height: 1.45;
}
.case-participant-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.case-participant-comment-list li {
  padding: .55rem .65rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #d4dde8);
}
.case-participant-author {
  display: block;
  margin-bottom: .2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.case-participant-comment-list p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
  color: #334155;
}
.case-editor .case-editor-dual-row,
.case-player .case-editor-dual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .75rem;
  align-items: stretch;
}
.case-player-focus-box,
.case-editor .case-editor-field-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: .65rem .75rem;
  border-radius: 10px;
}
.case-player-focus-box--clinical,
.case-editor .case-editor-field-box--clinical {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
}
.case-player-focus-box--nts,
.case-editor .case-editor-field-box--nts {
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  border: 1px solid color-mix(in srgb, var(--case-skill-blue-border, #93c5fd) 70%, #d4dde8);
}
.case-player-focus-box .case-step-discussion-point-label,
.case-editor .case-editor-field-box .case-editor-discussion-label {
  margin-top: 0;
}
.case-editor .case-step-tips-block--clinical,
.case-player .case-step-tips-block--clinical {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
}
.case-editor .case-step-tips-block--nts,
.case-player .case-step-tips-block--nts {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #d4dde8);
}
.case-editor .case-step-tips-block--clinical .case-step-tips-heading,
.case-editor .case-step-tips-block--nts .case-step-tips-heading,
.case-player .case-step-tips-block--clinical .case-step-tips-heading,
.case-player .case-step-tips-block--nts .case-step-tips-heading {
  color: var(--accent-dark);
}
.case-editor-nav,
.case-player-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 28%, #b8c5d4);
  background: linear-gradient(180deg, #fafbfd 0%, color-mix(in srgb, var(--accent) 6%, #f3f7fb) 100%);
  box-shadow: 0 1px 4px rgba(30, 107, 138, .05);
}
.case-editor .case-step-block--important-points {
  margin-top: .75rem;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  box-shadow: 0 1px 3px rgba(30, 107, 138, .06);
}
.case-editor .case-step-block--important-points .case-step-tips-block {
  margin: 0;
  min-width: 0;
  height: 100%;
}
.case-editor .case-step-block--important-points .case-step-tips-heading {
  margin-bottom: .45rem;
}
.case-editor .case-editor-textarea:focus,
.case-editor-block .case-editor-field input:focus,
.case-editor-block .case-editor-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.case-editor-block .case-editor-field input,
.case-editor-block .case-editor-field textarea {
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 22%, #cbd5e1);
}
.case-editor-field { margin-bottom: .65rem; }
.case-editor-field:last-child { margin-bottom: 0; }
.case-editor-field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: .3rem;
}
.case-editor-field input,
.case-editor-field textarea {
  width: 100%;
  font-size: .88rem;
  padding: .5rem .6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  line-height: 1.45;
}
.case-editor-field input::placeholder,
.case-editor-field textarea::placeholder,
.case-editor-textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.case-step-main-row--editor {
  grid-template-columns: minmax(0, 1fr);
}
.case-editor-hint {
  font-weight: 500;
  color: #94a3b8;
  font-size: .72rem;
}
.case-editor-step-panel {
  border-top-color: #475569;
}
.case-editor-skill-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #e2e8f0;
}
.case-editor-skill-label {
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.case-editor-skill-select {
  flex: 1;
  max-width: 220px;
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem .55rem;
  border-radius: 8px;
  border: 2px solid #1e5a8a;
  background: #eef6ff;
  color: #1e5a8a;
  cursor: pointer;
}
.case-editor-skill-select--situational_awareness {
  border-color: #047857;
  background: #ecfdf5;
  color: #047857;
}
.case-editor-skill-select--stress_management {
  border-color: #c2410c;
  background: #fff7ed;
  color: #c2410c;
}
.case-editor-skill-select--teamwork {
  border-color: #6d28d9;
  background: #f5f3ff;
  color: #6d28d9;
}
.case-editor-textarea {
  width: 100%;
  min-height: 4.5rem;
  font-size: .88rem;
  line-height: 1.5;
  padding: .55rem .65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
}
.case-editor-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.case-editor-textarea--prompt { font-weight: 500; }
.case-editor-textarea--keywords { font-size: .82rem; }
.case-editor-keywords-block {
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px dashed #e2e8f0;
}
.case-editor-keywords-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: .35rem;
}
.case-editor-nav {
  align-items: center;
}
.case-editor-step-label {
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
  min-width: 6.5rem;
  text-align: center;
}
.case-editor-actions {
  display: flex;
  gap: .65rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.case-editor-saved {
  font-size: .78rem;
  font-weight: 600;
  color: #047857;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .2s ease, transform .2s ease;
}
.case-editor-saved--visible {
  opacity: 1;
  transform: translateY(0);
}
.case-list-actions {
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
}

/* Case role picker modal */
.modal-case-role {
  width: min(520px, 100%);
  padding: 1.35rem 1.15rem 1.2rem;
  text-align: center;
  border-top: none;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 8%, #fff) 100%);
}
.case-role-modal-header {
  margin: 0 0 .85rem;
  padding: .85rem 1rem .75rem;
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  border: 2px solid var(--theme-header-border, #0a2540);
  border-radius: 12px;
}
.case-role-modal-title {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}
.case-role-modal-body {
  padding: 0 .15rem;
}
.case-role-modal-lead {
  margin: 0 0 1rem;
  font-size: .84rem;
  color: #64748b;
  line-height: 1.45;
}
.case-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.case-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .65rem .85rem;
  border: 2px solid color-mix(in srgb, var(--accent) 18%, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  font-family: inherit;
}
.case-role-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 14%, transparent);
}
.case-role-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 28%, transparent);
}
.case-role-card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
.case-role-card-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.25;
}
.case-step-role-tag {
  display: inline-block;
  margin-left: .45rem;
  padding: .12rem .45rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #1e5a8a;
  background: #dbeafe;
  border-radius: 999px;
  vertical-align: middle;
}
@media (max-width: 520px) {
  .case-role-grid {
    grid-template-columns: 1fr;
  }
  .case-ip-focus-section--nts .case-ip-point-row {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}
@media (max-width: 640px) {
  .case-step-main-row {
    grid-template-columns: 1fr;
  }
  .case-step-main-row--with-visual {
    grid-template-columns: 1fr;
  }
  .case-step-visual {
    order: -1;
    min-height: 9rem;
  }
  .case-step-main-row--with-visual .case-step-visual {
    order: -1;
    min-height: 12rem;
  }
  .case-step-visual-img {
    min-height: 9rem;
  }
  .case-step-main-row--with-visual .case-step-visual-img {
    min-height: 12rem;
  }
  .case-step-tips-block--clinical .case-step-tips-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .case-ip-point-row {
    flex-wrap: wrap;
  }
  .case-ip-point-box {
    flex: 1 1 calc(50% - .3rem);
    min-width: min(100%, 9.5rem);
  }
  .case-ip-focus-section--nts .case-ip-point-row {
    grid-template-columns: 1fr 1fr;
  }
  .case-player .case-points-open .case-step-tips-stack,
  .case-editor .case-step-tips-stack,
  .case-editor .case-editor-dual-row,
  .case-player .case-editor-dual-row {
    grid-template-columns: 1fr;
  }
}

/* Admin */
.admin-mode-header {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
  border-bottom: 1px solid rgba(254, 202, 202, 0.45);
  box-shadow: 0 2px 12px rgba(127, 29, 29, 0.35);
}
.admin-mode-header .logo .logo-primary {
  color: #fff;
}
.admin-mode-header .logo .logo-accent {
  color: #fecaca;
}
.admin-mode-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fee2e2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.35rem;
}
.admin-mode-header .nav-links .btn-ghost {
  color: #fff;
  border: 1px solid rgba(254, 202, 202, 0.55);
  background: rgba(0, 0, 0, 0.08);
}
.admin-mode-header .nav-links .btn-ghost:hover {
  color: #7f1d1d;
  background: #fecaca;
  border-color: #fecaca;
}
.admin-page.section {
  padding: 1rem 0 1.75rem;
}
.admin-page.section h2 {
  text-align: left;
  margin-bottom: 0;
  font-size: inherit;
}
.admin-page-title {
  margin-bottom: .7rem;
  font-size: 1.2rem;
}
.admin-login-wrap {
  display: flex;
  justify-content: center;
  margin: 1.25rem auto 0;
}
.admin-login-wrap .login-modal {
  margin: 0;
}
.admin-page:has(#loginSection:not(.hidden)) .admin-page-title {
  display: none;
}
.admin-page .panel-header {
  padding: .5rem .85rem;
}
.admin-page .panel-header-accent h2 {
  font-size: .9rem;
  padding: .12rem 0 .12rem .55rem;
}
.admin-page .panel-body {
  padding: .7rem .85rem;
}
.admin-page .container {
  width: min(1440px, 96vw);
}
.admin-shell {
  display: grid;
  grid-template-columns: 15.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.admin-nav {
  position: sticky;
  top: .75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: .55rem .45rem .7rem;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
}
.admin-nav-label {
  margin: .75rem .6rem .2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-nav-label:first-child { margin-top: .2rem; }
.admin-nav button,
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: .4rem .6rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.admin-nav button:hover,
.admin-nav a:hover { background: #f8fafc; }
.admin-nav button.is-current {
  background: #eff6ff;
  color: #1e5a8a;
}
.admin-main { min-width: 0; }
.admin-main .admin-top,
.admin-main .admin-top-row-full,
.admin-main .admin-compact-grid {
  display: contents;
}
.admin-main .admin-panel { display: none; margin: 0; }
.admin-main .admin-panel.is-current { display: block; }
.admin-main .admin-panel-toggle { display: none; }
.admin-main .admin-panel.is-current .panel-header-accent h2 {
  font-size: 1.15rem;
}
.admin-page .admin-panel {
  margin-bottom: .75rem;
}
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav {
    position: static;
    max-height: none;
  }
}
.admin-page .admin-collapsible:has(.panel-body.hidden) .panel-header,
.admin-page #adminAccessControlPanel .panel-header {
  border-bottom: none;
}
.admin-access-control {
  padding: .65rem .85rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.admin-access-lead {
  margin: 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}
.admin-access-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}
.admin-access-fieldset legend {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: .4rem;
}
.admin-access-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem .65rem;
}
.admin-access-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: #1e293b;
  cursor: pointer;
}
.admin-access-check input {
  flex-shrink: 0;
}
.admin-access-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.admin-access-actions {
  display: flex;
  justify-content: flex-end;
}
.admin-access-actions .btn[disabled],
.admin-access-actions .btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.admin-login-lock-head {
  min-width: 0;
  flex: 1;
}
.admin-login-lock-head h2 {
  margin-bottom: .15rem;
}
.admin-login-lock-status {
  margin: 0;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}
.admin-login-lock-status--closed,
.admin-login-lock-body--closed {
  color: #92400e;
  font-weight: 600;
}
.admin-login-lock-body {
  padding: .55rem .85rem;
  font-size: .82rem;
  color: var(--muted);
}
.admin-switch {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: .35rem 0 1.1rem;
  cursor: pointer;
  user-select: none;
}
.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.admin-switch-ui {
  flex-shrink: 0;
  width: 2.7rem;
  height: 1.5rem;
  margin-top: .15rem;
  border-radius: 999px;
  background: #c5d0dc;
  position: relative;
  transition: background .15s ease;
}
.admin-switch-ui::after {
  content: "";
  position: absolute;
  top: .15rem;
  left: .15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform .15s ease;
}
.admin-switch input:checked + .admin-switch-ui {
  background: #1e6b8a;
}
.admin-switch input:checked + .admin-switch-ui::after {
  transform: translateX(1.2rem);
}
.admin-switch input:focus-visible + .admin-switch-ui {
  outline: 2px solid #1e6b8a;
  outline-offset: 2px;
}
.admin-switch-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.admin-switch-copy strong {
  font-size: .95rem;
}
.admin-switch-copy span {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.35;
}
.admin-waitlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.admin-waitlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  padding: .65rem .8rem;
  background: #fff;
}
.admin-waitlist-row p {
  margin: .15rem 0 0;
  font-size: .78rem;
  color: #64748b;
}
.admin-top {
  margin-bottom: .75rem;
}
.admin-top-row-full {
  margin-bottom: .75rem;
}
.admin-top-row-full > .admin-panel {
  margin-bottom: 0;
}
.admin-top-row-key-access {
  align-items: stretch;
}
.admin-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  align-items: start;
  margin-bottom: .75rem;
}
.admin-top .admin-compact-grid {
  margin-bottom: .75rem;
}
.admin-top .admin-compact-grid:last-child {
  margin-bottom: 0;
}
.admin-compact-col {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
}
.admin-compact-grid > .admin-panel,
.admin-compact-col > .admin-panel {
  margin-bottom: 0;
  min-width: 0;
}
.admin-compact-grid > .admin-panel-full {
  grid-column: 1 / -1;
}
.admin-improvements-input {
  display: block;
  width: 100%;
  min-height: 36rem;
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid #d4dde8;
  border-radius: 10px;
  background: #fff;
  color: #1a2330;
  font-family: inherit;
  font-size: .92rem;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
}
.admin-improvements-input:focus {
  outline: 2px solid #1e6b8a;
  outline-offset: 1px;
}
@media (max-width: 800px) {
  .admin-compact-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}
.admin-page .inbox-dashboard-panel .comm-center-split {
  min-height: 22rem;
  gap: 1.35rem;
}
.admin-page .comm-center-pane--messages {
  min-height: 26rem;
}
.admin-page .comm-center-pane--email {
  min-height: 32rem;
}
.admin-panel-meta {
  color: var(--muted);
  font-size: .78rem;
}
.admin-panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.admin-panel-header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.admin-panel-toggle {
  flex-shrink: 0;
  min-width: 3.5rem;
}
.admin-range {
  display: inline-flex;
  gap: .25rem;
}
.admin-range-btn.is-active {
  background: var(--accent, #1e6b8a);
  color: #fff;
  border-color: transparent;
}
.admin-visitor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .35rem;
}
.admin-visitor-note {
  margin: .75rem .85rem .35rem;
  font-size: .75rem;
  color: var(--muted, #64748b);
}
.admin-visitor-note a {
  color: inherit;
}
@media (max-width: 800px) {
  .admin-visitor-split { grid-template-columns: 1fr; }
}
.admin-stats-rows {
  display: flex;
  flex-direction: column;
  padding: .1rem 0;
  overflow: hidden;
}
.panel-body.admin-stats-rows {
  padding: .1rem 0;
}
.admin-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .32rem .85rem;
  border-bottom: 1px solid var(--border-light, #eef2f6);
  font-size: .8rem;
}
.admin-stat-row:last-child {
  border-bottom: none;
}
.admin-stat-row span {
  color: var(--muted);
}
.admin-stat-row strong {
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
}
.admin-account-cell {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
}
.admin-presence {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .35rem;
  vertical-align: middle;
}
.admin-seat-row .admin-presence {
  margin-top: 0;
  margin-right: .4rem;
}
.admin-presence--online {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .22);
}
.admin-presence--offline {
  background: #cbd5e1;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .65rem;
  align-items: center;
  margin-bottom: .75rem;
}
.admin-search {
  flex: 1 1 16rem;
  min-width: 12rem;
  padding: .42rem .65rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: .84rem;
}
.admin-toolbar select {
  padding: .4rem .5rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: .8rem;
  background: #fff;
}
.admin-check {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}
.admin-attention-filter {
  margin: 0 0 .65rem;
  font-size: .82rem;
  color: var(--muted);
}
.admin-accounts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .9fr);
  gap: 1rem;
  align-items: start;
}
.admin-accounts-layout--stacked {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.admin-accounts-layout--stacked .admin-account-detail {
  order: 1;
  width: 100%;
  overflow: hidden;
}
.admin-accounts-layout--stacked .admin-account-detail.is-expanded {
  max-height: min(44vh, 30rem);
  overflow: auto;
}
.admin-accounts-layout--stacked .admin-account-detail:not(.is-expanded) {
  max-height: none;
  min-height: 0;
  padding: .65rem 1rem;
}
.admin-account-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: -.15rem 0 .65rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(148, 163, 184, .28);
}
.admin-account-detail-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}
.admin-detail-minimize {
  flex-shrink: 0;
}
.admin-accounts-layout--stacked .admin-accounts-list {
  order: 2;
  width: 100%;
  min-width: 0;
}
@media (max-width: 1100px) {
  .admin-accounts-layout:not(.admin-accounts-layout--stacked) {
    grid-template-columns: 1fr;
  }
}
.admin-accounts-list .admin-table-wrap {
  max-height: min(46vh, 34rem);
  overflow: auto;
}
.admin-owner-row {
  cursor: pointer;
}
.admin-owner-row--selected td {
  background: #eff6ff !important;
}
.admin-table-loading {
  color: var(--muted);
  padding: 1.2rem .75rem !important;
}
.admin-pager-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: .65rem;
  flex-wrap: wrap;
}
.admin-pager {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.admin-pager-meta,
.admin-page-size {
  font-size: .78rem;
  color: var(--muted);
}
.admin-account-detail {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #f8fafc;
  padding: .9rem 1rem 1.1rem;
  min-height: 0;
}
.admin-account-detail.is-expanded {
  min-height: 8.5rem;
}
.admin-account-detail.is-expanded:has(.admin-detail-header) {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.admin-detail-header {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .75rem;
}
.admin-detail-header h3 {
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.admin-detail-header .admin-presence {
  margin-top: 0;
}
.admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  justify-content: flex-end;
}
.admin-playbook-lead,
.admin-playbook-note {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 1rem;
}
.admin-playbook-note {
  background: #fff8e6;
  border: 1px solid #ead9a8;
  padding: .65rem .8rem;
  border-radius: 8px;
}
.admin-playbook-section {
  margin-bottom: 1.35rem;
}
.admin-playbook-section h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
}
.admin-playbook-section ol {
  margin: 0;
  padding-left: 1.2rem;
}
.admin-playbook-section li {
  margin: .35rem 0;
  font-size: .9rem;
}
.admin-playbook-checks {
  list-style: none;
  padding-left: 0;
}
.admin-playbook-checks label {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  cursor: pointer;
}
.admin-playbook-checks input {
  margin-top: .2rem;
}
.admin-playbook-cmd {
  display: block;
  margin: .45rem 0 .6rem;
  padding: .7rem .85rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: .8rem;
  overflow-x: auto;
  white-space: pre-wrap;
}
.admin-playbook-glossary {
  display: grid;
  gap: .55rem;
  margin: 0 0 1rem;
}
.admin-playbook-glossary > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: .35rem .75rem;
  font-size: .86rem;
}
.admin-playbook-glossary dt {
  font-weight: 600;
  color: var(--text, #1a2332);
}
.admin-playbook-glossary dd {
  margin: 0;
  color: var(--muted);
}
.admin-playbook-checks > li {
  margin-bottom: .75rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--border-light, #eef2f6);
}
.admin-playbook-checks > li:last-child {
  border-bottom: none;
}
.admin-playbook details {
  margin: .35rem 0 0 1.55rem;
}
.admin-playbook summary {
  cursor: pointer;
  color: var(--accent, #1e6b8a);
  font-size: .84rem;
  font-weight: 600;
}
.admin-playbook-sub {
  margin: .4rem 0 0;
  padding-left: 1.15rem;
}
.admin-playbook-sub li {
  margin: .28rem 0;
  font-size: .86rem;
}
.admin-playbook-section > p {
  font-size: .9rem;
  margin: 0 0 .7rem;
}
@media (max-width: 720px) {
  .admin-playbook-glossary > div {
    grid-template-columns: 1fr;
  }
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .75rem;
  margin: 0 0 .85rem;
}
.admin-detail-grid dt {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}
.admin-detail-grid dd {
  margin: .1rem 0 0;
  font-size: .84rem;
}
.admin-learning-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .85rem;
}
.admin-learning-bar span {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 600;
}
.admin-group-card,
.admin-seat-tools {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: .75rem;
  margin-bottom: .75rem;
}
.admin-group-card h4,
.admin-seat-tools h4,
.admin-detail-sub,
.admin-billing-grid h3 {
  margin: 0 0 .4rem;
  font-size: .82rem;
}
.admin-group-card p {
  margin: 0 0 .65rem;
  font-size: .82rem;
  color: var(--muted);
}
.admin-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: end;
  margin-bottom: .75rem;
}
.admin-tool-row label,
.admin-seat-tools-head {
  display: flex;
  gap: .4rem;
  align-items: center;
  font-size: .78rem;
}
.admin-tool-row input,
.admin-seat-tools-head input {
  padding: .32rem .45rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  font-size: .8rem;
}
.admin-seat-tools-head {
  justify-content: space-between;
  margin-bottom: .5rem;
}
.admin-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .45rem;
}
.admin-attention-card {
  text-align: left;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  border-radius: 10px;
  padding: .5rem .6rem;
  cursor: pointer;
}
.admin-attention-card:hover {
  border-color: var(--accent, #2563eb);
}
.admin-attention-count {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}
.admin-attention-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin: .15rem 0 .35rem;
}
.admin-attention-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: .72rem;
}
.admin-billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
  padding: .7rem .85rem;
}
.admin-linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.admin-linkish:hover strong {
  text-decoration: underline;
}
.impersonation-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .55rem 1rem;
  background: #facc15;
  color: #1e293b;
  font-size: .88rem;
  font-weight: 600;
}
.impersonation-banner.hidden {
  display: none;
}
body.is-impersonating {
  padding-top: 0;
}
.admin-create-form {
  padding: .7rem .85rem;
}
.admin-create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .65rem .85rem;
  align-items: end;
}
.admin-create-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.admin-create-grid .form-group {
  margin: 0;
}
.admin-create-grid label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .25rem;
}
.admin-create-grid input,
.admin-create-grid select {
  width: 100%;
  padding: .42rem .55rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: .84rem;
  font-family: inherit;
}
.admin-create-submit {
  display: flex;
  align-items: flex-end;
}
.admin-create-result {
  margin: .75rem 0 0;
  padding: .65rem .8rem;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: .78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
}
.admin-sub {
  color: var(--muted);
  font-size: .78rem;
}
.admin-no-seats {
  margin: 0;
  padding: .5rem .65rem;
  color: var(--muted);
  font-size: .82rem;
  background: #f8fafc;
  border-radius: 8px;
}
.admin-nested-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  margin: .35rem 0 .15rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.05);
}
.admin-nested-table th,
.admin-nested-table td {
  padding: .4rem .55rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light, #eef2f6);
  vertical-align: middle;
}
.admin-nested-table th {
  background: #f1f5f9;
  font-size: .68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.admin-nested-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-nested-table tbody tr:nth-child(even) td {
  background: #f9fbfd;
}
.admin-nested-table code {
  font-size: .72rem;
  background: #fff;
  border: 1px solid var(--border-light, #eef2f6);
  padding: .08rem .3rem;
  border-radius: 4px;
}
.admin-seats-block > td {
  padding: .35rem .65rem .75rem !important;
  background: #f8fafc;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.admin-msg-btn {
  white-space: nowrap;
}
#adminMessageModal {
  z-index: 2000;
}
#adminMessageModal.open {
  display: flex;
}
.admin-message-modal {
  width: min(340px, 94vw);
  padding: 1rem 1.1rem 1.1rem;
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}
.admin-message-modal h2 {
  margin: 0 0 .35rem;
  font-size: .95rem;
  padding-right: 1.5rem;
}
.admin-message-to {
  margin: 0 0 .75rem;
  font-size: .8rem;
  color: var(--muted);
}
.admin-message-modal .form-group {
  margin-bottom: .65rem;
}
.admin-message-modal .form-group label {
  font-size: .78rem;
  margin-bottom: .25rem;
}
.admin-message-modal .form-group input,
.admin-message-modal .form-group textarea {
  padding: .45rem .55rem;
  font-size: .84rem;
}
.admin-message-actions {
  display: flex;
  justify-content: flex-end;
  gap: .45rem;
  margin-top: .35rem;
}
.admin-message-modal textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.admin-message-modal .modal-close-btn {
  top: .5rem;
  right: .55rem;
  font-size: 1.4rem;
}
.admin-recent-logins {
  padding: .65rem 1rem;
}
.admin-login-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-login-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .65rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border-light, #eef2f6);
  font-size: .82rem;
}
.admin-login-list li:last-child {
  border-bottom: none;
}
.admin-login-list li span {
  color: var(--muted);
  font-size: .76rem;
  margin-left: auto;
}
.admin-login-list code {
  font-size: .72rem;
}
.admin-empty {
  color: var(--muted);
  font-size: .82rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card .label { color: var(--muted); font-size: .85rem; margin-top: .25rem; }

/* Admin user table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.admin-table th,
.admin-table td {
  padding: .55rem .75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.admin-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-owner-row td {
  background: #fff;
  font-weight: 500;
}
.admin-owner-row--blocked td {
  background: #fecaca !important;
}
.admin-owner-row--blocked:hover td {
  background: #fca5a5 !important;
}
.admin-owner-row--deleted-self td {
  background: #fecaca !important;
}
.admin-owner-row--deleted-self:hover td {
  background: #fca5a5 !important;
}
.admin-seat-row--deleted-self td {
  background: #fecaca !important;
}
.admin-seat-row--deleted-self:hover td {
  background: #fca5a5 !important;
}
.admin-status--deleted-self {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}
.admin-row-actions--deleted {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #991b1b;
  font-size: .78rem;
  font-weight: 600;
}
.admin-row-actions--deleted svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.admin-deleted-inline {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-left: .35rem;
  color: #991b1b;
  font-size: .72rem;
  font-weight: 600;
  vertical-align: middle;
}
.admin-deleted-inline svg {
  width: .9rem;
  height: .9rem;
}
.admin-deleted-label {
  white-space: nowrap;
}
.admin-seat-row--blocked td {
  background: #fecaca !important;
}
.admin-seat-row--blocked:hover td {
  background: #fca5a5 !important;
}
.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
  flex-wrap: nowrap;
}
.admin-msg-btn {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: #64748b;
}
.admin-msg-btn svg {
  width: .95rem;
  height: .95rem;
}
.admin-msg-btn:hover {
  color: var(--accent);
  background: #eef6ff;
}
.admin-block-btn {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: #64748b;
}
.admin-block-btn svg {
  width: .95rem;
  height: .95rem;
}
.admin-block-btn:hover {
  color: #dc2626;
  background: #fef2f2;
}
.admin-block-btn--active {
  color: #991b1b;
  background: #fee2e2;
}
.admin-status {
  display: inline-block;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-status--active {
  background: #dcfce7;
  color: #166534;
}
.admin-status--blocked {
  background: #fee2e2;
  color: #991b1b;
}
.admin-status--trial {
  background: #fef9c3;
  color: #854d0e;
}
.admin-status--instructor,
.badge-instructor {
  background: #e0e7ff;
  color: #3730a3;
}
.badge-instructor {
  display: inline-block;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-billing {
  display: inline-block;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-billing--free {
  background: #dbeafe;
  color: #1e40af;
}
.admin-billing--paying {
  background: #dcfce7;
  color: #166534;
}
.admin-billing--none {
  color: #94a3b8;
  background: transparent;
  padding: 0;
}
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-yes { background: #dcfce7; color: #166534; }
.badge-no { background: #fee2e2; color: #991b1b; }
.badge-trial { background: #fef9c3; color: #854d0e; }
.badge-active { background: #dbeafe; color: #1e40af; }
.badge-track { background: #eef2f7; color: #475569; text-transform: capitalize; }

/* Theme variants */
body.theme-medical {
  --prof-heading: #a8d4f0;
  --accent: #1e6b8a;
  --accent-dark: #145068;
  --accent-light: #a8d4f0;
  --dashboard-scene-from: #1a5570;
  --dashboard-scene-mid: #174056;
  --dashboard-scene-to: #123040;
  --dashboard-scene-glow: rgba(72, 168, 196, 0.46);
  --dashboard-scene-glow-2: rgba(30, 107, 138, 0.36);
  --theme-header: linear-gradient(135deg, #0a3d4f, #1e6b8a);
  --theme-header-border: #0a3d4f;
  --panel-main-bg: #e8eef5;
  --panel-sub-header-bg: linear-gradient(135deg, #f7fafc 0%, #eef3f9 100%);
  --panel-sub-header-border: #d4dde8;
  --dashboard-pill-text: #fff;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    #0a3d4f 0%,
    #1e6b8a 100%
  );
  --dashboard-pill-shadow: 0 2px 6px rgba(30, 107, 138, 0.28);
  --auth-btn-text: var(--dashboard-pill-text);
  --auth-btn-bg: var(--dashboard-pill-bg);
  --auth-btn-hover-bg: linear-gradient(145deg, #082f3d 0%, #145068 100%);
  --auth-btn-shadow: var(--dashboard-pill-shadow);
}

body.theme-law {
  --prof-heading: #b91c1c;
  --accent: #991b1b;
  --accent-dark: #0a0808;
  --accent-light: var(--prof-heading);
  --dashboard-scene-from: #4a1c24;
  --dashboard-scene-mid: #2e1418;
  --dashboard-scene-to: #1c1012;
  --dashboard-scene-glow: rgba(185, 28, 28, 0.44);
  --dashboard-scene-glow-2: rgba(120, 20, 28, 0.36);
  --theme-header: linear-gradient(
    155deg,
    color-mix(in srgb, var(--prof-heading) 24%, #0b1828) 0%,
    color-mix(in srgb, var(--prof-heading) 46%, #060e18) 100%
  );
  --theme-header-border: color-mix(in srgb, var(--prof-heading) 28%, #060e18);
  --panel-main-bg: color-mix(in srgb, var(--prof-heading) 8%, #f7f2f2);
  --panel-sub-header-bg: linear-gradient(135deg, #faf5f5 0%, #f0e8e8 100%);
  --panel-sub-header-border: color-mix(in srgb, var(--prof-heading) 28%, #e2d8d8);
  --surface-tint: rgba(185, 28, 28, 0.06);
  --dashboard-pill-text: #fff;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--prof-heading) 40%, #3d0808) 0%,
    var(--prof-heading) 100%
  );
  --dashboard-pill-shadow: 0 2px 6px rgba(185, 28, 28, 0.22);
  --auth-btn-bg: var(--dashboard-pill-bg);
  --auth-btn-text: var(--dashboard-pill-text);
  --auth-btn-hover-bg: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading) 28%, #3d0808) 0%, color-mix(in srgb, var(--accent) 84%, #000) 100%);
  --auth-btn-shadow: var(--dashboard-pill-shadow);
}

body.theme-business {
  --prof-heading: #d4af37;
  --accent: #a88a20;
  --accent-dark: #14100c;
  --accent-light: var(--prof-heading);
  --dashboard-scene-from: #4a3c18;
  --dashboard-scene-mid: #2c2414;
  --dashboard-scene-to: #1c1810;
  --dashboard-scene-glow: rgba(212, 175, 55, 0.40);
  --dashboard-scene-glow-2: rgba(168, 138, 32, 0.32);
  --theme-header: linear-gradient(
    155deg,
    color-mix(in srgb, var(--prof-heading) 24%, #0b1828) 0%,
    color-mix(in srgb, var(--prof-heading) 46%, #060e18) 100%
  );
  --theme-header-border: color-mix(in srgb, var(--prof-heading) 28%, #060e18);
  --panel-main-bg: color-mix(in srgb, var(--prof-heading) 11%, #f7f4ea);
  --panel-sub-header-bg: linear-gradient(135deg, #faf8f2 0%, #f0ebe0 100%);
  --panel-sub-header-border: color-mix(in srgb, var(--prof-heading) 30%, #e8e0cc);
  --surface-tint: rgba(212, 175, 55, 0.08);
  --dashboard-pill-text: #1a1208;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--prof-heading) 72%, #3d2812) 0%,
    var(--prof-heading) 100%
  );
  --dashboard-pill-shadow: 0 2px 6px rgba(168, 138, 32, 0.22);
  --auth-btn-bg: var(--dashboard-pill-bg);
  --auth-btn-text: var(--dashboard-pill-text);
  --auth-btn-hover-bg: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading) 60%, #3d2812) 0%, var(--prof-heading) 100%);
  --auth-btn-shadow: var(--dashboard-pill-shadow);
}

body.theme-aviation {
  --prof-heading: #4a6fa5;
  --accent: #3a5f8f;
  --accent-dark: #0a1018;
  --accent-light: var(--prof-heading);
  --dashboard-scene-from: #1e3a5c;
  --dashboard-scene-mid: #162840;
  --dashboard-scene-to: #101c2c;
  --dashboard-scene-glow: rgba(90, 140, 196, 0.44);
  --dashboard-scene-glow-2: rgba(74, 111, 165, 0.36);
  --theme-header: linear-gradient(
    155deg,
    color-mix(in srgb, var(--prof-heading) 24%, #0b1828) 0%,
    color-mix(in srgb, var(--prof-heading) 46%, #060e18) 100%
  );
  --theme-header-border: color-mix(in srgb, var(--prof-heading) 28%, #060e18);
  --panel-main-bg: color-mix(in srgb, var(--prof-heading) 11%, #f2f4f8);
  --panel-sub-header-bg: linear-gradient(135deg, #f5f7fb 0%, #e6ebf4 100%);
  --panel-sub-header-border: color-mix(in srgb, var(--prof-heading) 32%, #d1d9e6);
  --surface-tint: rgba(74, 111, 165, 0.08);
  --dashboard-pill-text: #fff;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--prof-heading) 40%, #0a1628) 0%,
    var(--prof-heading) 100%
  );
  --dashboard-pill-shadow: 0 2px 6px rgba(74, 111, 165, 0.22);
  --auth-btn-bg: var(--dashboard-pill-bg);
  --auth-btn-text: var(--dashboard-pill-text);
  --auth-btn-hover-bg: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading) 28%, #0a1628) 0%, color-mix(in srgb, var(--accent) 84%, #000) 100%);
  --auth-btn-shadow: var(--dashboard-pill-shadow);
}

body.theme-fire {
  --prof-heading: #d8b48c;
  --accent: #9a7048;
  --accent-dark: #14100c;
  --accent-light: var(--prof-heading);
  --dashboard-scene-from: #4a3018;
  --dashboard-scene-mid: #2c1c12;
  --dashboard-scene-to: #1c140e;
  --dashboard-scene-glow: rgba(216, 140, 72, 0.42);
  --dashboard-scene-glow-2: rgba(154, 80, 36, 0.34);
  --theme-header: linear-gradient(
    155deg,
    color-mix(in srgb, var(--prof-heading) 24%, #0b1828) 0%,
    color-mix(in srgb, var(--prof-heading) 46%, #060e18) 100%
  );
  --theme-header-border: color-mix(in srgb, var(--prof-heading) 28%, #060e18);
  --panel-main-bg: color-mix(in srgb, var(--prof-heading) 11%, #f7f2eb);
  --panel-sub-header-bg: linear-gradient(135deg, #faf6f1 0%, #f0e6d8 100%);
  --panel-sub-header-border: color-mix(in srgb, var(--prof-heading) 34%, #ddd4cc);
  --surface-tint: rgba(216, 180, 140, 0.08);
  --dashboard-pill-text: #1a1208;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--prof-heading) 72%, #3d2812) 0%,
    var(--prof-heading) 100%
  );
  --dashboard-pill-shadow: 0 2px 6px rgba(154, 112, 72, 0.22);
  --auth-btn-bg: var(--dashboard-pill-bg);
  --auth-btn-text: var(--dashboard-pill-text);
  --auth-btn-hover-bg: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading) 60%, #3d2812) 0%, var(--prof-heading) 100%);
  --auth-btn-shadow: var(--dashboard-pill-shadow);
}

body.theme-disaster {
  --prof-heading: #a8c4be;
  --accent: #7fa39a;
  --accent-dark: #0c1412;
  --accent-light: var(--prof-heading);
  --dashboard-scene-from: #1e4a44;
  --dashboard-scene-mid: #163830;
  --dashboard-scene-to: #102824;
  --dashboard-scene-glow: rgba(127, 180, 168, 0.44);
  --dashboard-scene-glow-2: rgba(80, 140, 128, 0.36);
  --theme-header: linear-gradient(
    155deg,
    color-mix(in srgb, var(--prof-heading) 24%, #0b1828) 0%,
    color-mix(in srgb, var(--prof-heading) 46%, #060e18) 100%
  );
  --theme-header-border: color-mix(in srgb, var(--prof-heading) 28%, #060e18);
  --panel-main-bg: color-mix(in srgb, var(--prof-heading) 12%, #f2f6f4);
  --panel-sub-header-bg: linear-gradient(135deg, #f0f5f3 0%, #e2ebe8 100%);
  --panel-sub-header-border: color-mix(in srgb, var(--prof-heading) 32%, #ccd8d4);
  --surface-tint: rgba(168, 196, 190, 0.08);
  --dashboard-pill-text: #0c1412;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--prof-heading) 72%, #164e46) 0%,
    var(--prof-heading) 100%
  );
  --dashboard-pill-shadow: 0 2px 6px rgba(127, 163, 154, 0.22);
  --auth-btn-bg: var(--dashboard-pill-bg);
  --auth-btn-text: var(--dashboard-pill-text);
  --auth-btn-hover-bg: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading) 60%, #164e46) 0%, var(--prof-heading) 100%);
  --auth-btn-shadow: var(--dashboard-pill-shadow);
}

body.theme-industry {
  --prof-heading: #d4b878;
  --accent: #a88f50;
  --accent-dark: #14100c;
  --accent-light: var(--prof-heading);
  --dashboard-scene-from: #3c3420;
  --dashboard-scene-mid: #282418;
  --dashboard-scene-to: #1c1810;
  --dashboard-scene-glow: rgba(212, 184, 120, 0.40);
  --dashboard-scene-glow-2: rgba(168, 143, 80, 0.32);
  --theme-header: linear-gradient(
    155deg,
    color-mix(in srgb, var(--prof-heading) 24%, #0b1828) 0%,
    color-mix(in srgb, var(--prof-heading) 46%, #060e18) 100%
  );
  --theme-header-border: color-mix(in srgb, var(--prof-heading) 28%, #060e18);
  --panel-main-bg: color-mix(in srgb, var(--prof-heading) 11%, #f6f3ec);
  --panel-sub-header-bg: linear-gradient(135deg, #faf7f0 0%, #efe8da 100%);
  --panel-sub-header-border: color-mix(in srgb, var(--prof-heading) 35%, #d6d3d1);
  --surface-tint: rgba(212, 184, 120, 0.08);
  --dashboard-pill-text: #1a1208;
  --dashboard-pill-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--prof-heading) 72%, #3d2812) 0%,
    var(--prof-heading) 100%
  );
  --dashboard-pill-shadow: 0 2px 6px rgba(168, 143, 80, 0.22);
  --auth-btn-bg: var(--dashboard-pill-bg);
  --auth-btn-text: var(--dashboard-pill-text);
  --auth-btn-hover-bg: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading) 60%, #3d2812) 0%, var(--prof-heading) 100%);
  --auth-btn-shadow: var(--dashboard-pill-shadow);
}

body.theme-law .panel-header-accent,
body.theme-business .panel-header-accent {
  background: var(--panel-sub-header-bg);
  border-bottom-color: var(--panel-sub-header-border);
}

body.theme-law .panel-header-accent h2,
body.theme-business .panel-header-accent h2 {
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

/* Law & business: unify tool / course sub-panel headers under track theme */
body.theme-law #panelEval .panel-header-accent,
body.theme-law #panelFeedback .panel-header-accent,
body.theme-law #panelBriefing .panel-header-accent,
body.theme-law #panelCases .panel-header-accent,
body.theme-law #panelSimSolution .panel-header-accent,
body.theme-law .course-material-videos .panel-header-accent,
body.theme-law .course-material-notes .panel-header-accent,
body.theme-law .course-material-games .panel-header-accent,
body.theme-law .course-material-quizzes .panel-header-accent,
body.theme-law .course-material-exam .panel-header-accent,
body.theme-business #panelEval .panel-header-accent,
body.theme-business #panelFeedback .panel-header-accent,
body.theme-business #panelBriefing .panel-header-accent,
body.theme-business #panelCases .panel-header-accent,
body.theme-business #panelSimSolution .panel-header-accent,
body.theme-business .course-material-videos .panel-header-accent,
body.theme-business .course-material-notes .panel-header-accent,
body.theme-business .course-material-games .panel-header-accent,
body.theme-business .course-material-quizzes .panel-header-accent,
body.theme-business .course-material-exam .panel-header-accent {
  background: var(--panel-sub-header-bg);
  border-top: 3px solid var(--accent);
  border-bottom-color: var(--panel-sub-header-border);
}

body.theme-law #panelEval .panel-header-accent h2,
body.theme-law #panelFeedback .panel-header-accent h2,
body.theme-law #panelBriefing .panel-header-accent h2,
body.theme-law #panelCases .panel-header-accent h2,
body.theme-law #panelSimSolution .panel-header-accent h2,
body.theme-business #panelEval .panel-header-accent h2,
body.theme-business #panelFeedback .panel-header-accent h2,
body.theme-business #panelBriefing .panel-header-accent h2,
body.theme-business #panelCases .panel-header-accent h2,
body.theme-business #panelSimSolution .panel-header-accent h2 {
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

body[class*="theme-"] .course-material-videos .panel-header-accent h2,
body[class*="theme-"] .course-material-notes .panel-header-accent h2,
body[class*="theme-"] .course-material-games .panel-header-accent h2,
body[class*="theme-"] .course-material-quizzes .panel-header-accent h2,
body[class*="theme-"] .course-material-exam .panel-header-accent h2,
body[class*="theme-"] #groupTools .sub-panel .panel-header-accent h2,
body[class*="theme-"] #groupIncidentEvaluations .sub-panel .panel-header-accent h2,
body[class*="theme-"] #groupCommunication .comm-center-pane .panel-header-accent h2,
body[class*="theme-"] .inbox-dashboard-panel .comm-center-pane .panel-header-accent h2 {
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border-left: none;
  box-shadow: 0 2px 6px var(--thumb-shadow);
}
body[class*="theme-"] .case-editor-page-header h2 {
  color: var(--dashboard-pill-text);
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
  border-left-color: color-mix(in srgb, #fff 72%, var(--prof-heading, var(--accent-light)));
}

body[class*="theme-"] .case-player-header-inner {
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
}
body[class*="theme-"] .eval-page-shell--rating .case-player-header-inner {
  background: var(--theme-header);
  border-color: var(--theme-header-border);
}

body[class*="theme-"] .case-player-page-header h2 {
  color: #fff;
  background: transparent;
}

body[class*="theme-"] .case-editor .case-step-heading,
body[class*="theme-"] .case-player .case-step-heading {
  color: #e0f2fe;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border-left-color: #e0f2fe;
}

body[class*="theme-"] .case-editor-nav,
body[class*="theme-"] .case-player-nav {
  border-color: color-mix(in srgb, var(--accent) 28%, #b8c5d4);
  background: linear-gradient(180deg, #fafbfd 0%, color-mix(in srgb, var(--accent) 6%, #f3f7fb) 100%);
}

body[class*="theme-"] #panelEval .games-column-card--with-heading > .games-column-heading {
  border: none;
  background: none;
  box-shadow: none;
}

body[class*="theme-"] .elearning-theme-block {
  border: none;
  background: transparent;
}

body.theme-law #panelEval.tools-panel-styled .insight-ratings-title--compact,
body.theme-law #panelFeedback.tools-panel-styled .insight-ratings-title--compact,
body.theme-law #panelBriefing.tools-panel-styled .insight-ratings-title--compact,
body.theme-business #panelEval.tools-panel-styled .insight-ratings-title--compact,
body.theme-business #panelFeedback.tools-panel-styled .insight-ratings-title--compact,
body.theme-business #panelBriefing.tools-panel-styled .insight-ratings-title--compact {
  color: var(--accent-dark);
}

body.theme-law .tools-column-actions .insight-action-card--compact:not(.insight-action-card--outline),
body.theme-business .tools-column-actions .insight-action-card--compact:not(.insight-action-card--outline) {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-color: var(--accent);
}

body.theme-law .panel-header-main .inbox-header-compose-btn,
body.theme-business .panel-header-main .inbox-header-compose-btn {
  color: var(--accent-dark);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.92);
}

body.theme-law .panel-header-main .inbox-header-compose-btn:hover,
body.theme-business .panel-header-main .inbox-header-compose-btn:hover {
  background: #fff;
  color: var(--accent);
}

body.theme-law .main-panel,
body.theme-business .main-panel {
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 72%, #0b1220);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-dark, var(--accent)) 18%, transparent),
    0 8px 32px color-mix(in srgb, var(--accent-dark, var(--accent)) 16%, rgba(15, 45, 74, 0.1));
}

body.theme-law .dashboard-group .sub-panel,
body.theme-business .dashboard-group .sub-panel {
  border-color: color-mix(in srgb, var(--accent) 18%, #cfd9e6);
}

body.theme-law .btn-primary,
body.theme-business .btn-primary,
body.theme-aviation .btn-primary,
body.theme-fire .btn-primary,
body.theme-disaster .btn-primary,
body.theme-industry .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.theme-law .btn-primary:hover,
body.theme-business .btn-primary:hover,
body.theme-aviation .btn-primary:hover,
body.theme-fire .btn-primary:hover,
body.theme-disaster .btn-primary:hover,
body.theme-industry .btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 78%, #000);
  border-color: color-mix(in srgb, var(--accent) 78%, #000);
}

body.theme-aviation .exam-panel-visual {
  background: linear-gradient(145deg, color-mix(in srgb, #4a6fa5 10%, #fff), color-mix(in srgb, #4a6fa5 18%, #e8ecf2));
}
body.theme-fire .exam-panel-visual {
  background: linear-gradient(145deg, #f7f2eb, #e8ddd0);
}
body.theme-disaster .exam-panel-visual {
  background: linear-gradient(145deg, color-mix(in srgb, #a8c4be 12%, #fff), color-mix(in srgb, #a8c4be 22%, #e4eae8));
}
body.theme-law .exam-panel-visual {
  background: linear-gradient(145deg, color-mix(in srgb, #b91c1c 8%, #fff), color-mix(in srgb, #b91c1c 14%, #f5f0f0));
}
body.theme-industry .exam-panel-visual,
body.theme-business .exam-panel-visual {
  background: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading) 12%, #fff), color-mix(in srgb, var(--prof-heading) 22%, #f8f6f0));
}

body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .course-material-videos .panel-header-accent h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .course-material-notes .panel-header-accent h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .course-material-games .panel-header-accent h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .course-material-quizzes .panel-header-accent h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .course-material-exam .panel-header-accent h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #groupTools .sub-panel .panel-header-accent > h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #groupIncidentEvaluations .sub-panel .panel-header-accent > h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelVideos.course-material-videos > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelPersonalNotes.course-material-notes > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelCases.course-material-games > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelQuizzes.course-material-quizzes > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelExam.course-material-exam > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelEval > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelFeedback > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelBriefing > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) #panelSimSolution > .panel-header h2,
body:is(.theme-medical, .theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .case-editor-page-header h2 {
  color: var(--dashboard-pill-text);
  background: var(--dashboard-pill-bg);
  box-shadow: var(--dashboard-pill-shadow);
}
body:is(.theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .panel-header-accent {
  background: var(--panel-sub-header-bg);
  border-bottom-color: var(--panel-sub-header-border);
}
body:is(.theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .panel-header-accent h2 {
  color: var(--accent-dark);
  border-left-color: var(--accent);
}
body:is(.theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .main-panel {
  border: 1.5px solid color-mix(in srgb, var(--accent-dark, var(--accent)) 72%, #0b1220);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-dark, var(--accent)) 18%, transparent),
    0 8px 32px color-mix(in srgb, var(--accent-dark, var(--accent)) 16%, rgba(15, 45, 74, 0.1));
}
body[class*="theme-"] .eval-page-shell.main-panel,
body[class*="theme-"] .eval-results-panel {
  overflow: hidden;
  border: none;
  background: var(--panel-main-bg, #e8eef5);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent-dark, var(--accent)) 16%, rgba(15, 45, 74, 0.1));
}
body:is(.theme-aviation, .theme-fire, .theme-disaster, .theme-law, .theme-industry, .theme-business) .dashboard-group .sub-panel {
  border-color: color-mix(in srgb, var(--prof-heading) 18%, #cfd9e6);
}

/* Track-themed thumbnails, tools & auth modals */
body[class*="theme-"] {
  --thumb-shadow: color-mix(in srgb, var(--accent) 28%, transparent);
  --thumb-border-light: color-mix(in srgb, var(--accent) 40%, #e2e8f0);
  --thumb-bg-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --thumb-bg-card: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 12%, #fff) 100%);
  --action-green-dark: color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 18%, #14532d);
  --action-green-mid: color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 14%, #16a34a);
  --action-green-bright: color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 12%, #22c55e);
  --action-green-border: color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 16%, #15803d);
  --action-green-border-light: color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 22%, #86efac);
  --action-green-surface: color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 10%, #f0fdf4);
  --action-green-text: #fff;
  --action-green-title: color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 12%, #15803d);
  --action-green-gradient: linear-gradient(145deg, var(--action-green-dark) 0%, var(--action-green-mid) 100%);
  --action-green-gradient-hover: linear-gradient(145deg, var(--action-green-dark) 0%, color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 12%, #15803d) 55%, var(--action-green-mid) 100%);
  --action-green-icon-gradient: linear-gradient(145deg, color-mix(in srgb, var(--prof-heading, var(--accent-light, #a8d4f0)) 10%, #15803d), var(--action-green-bright));
  --action-green-shadow: 0 2px 6px color-mix(in srgb, var(--action-green-mid) 38%, transparent);
  --action-green-shadow-hover: 0 4px 14px color-mix(in srgb, var(--action-green-mid) 45%, transparent);
  --case-skill-blue-text: color-mix(in srgb, var(--accent) 70%, #1e3a8a);
  --case-skill-blue-bg: color-mix(in srgb, var(--accent) 9%, #fff);
  --case-skill-blue-border: color-mix(in srgb, var(--accent) 30%, #bfdbfe);
  --case-skill-blue-gradient-start: var(--accent-dark);
  --case-skill-blue-gradient-end: var(--accent);
  --case-skill-green-text: var(--action-green-title);
  --case-skill-green-bg: var(--action-green-surface);
  --case-skill-green-border: var(--action-green-border-light);
  --case-skill-green-gradient-start: var(--action-green-border);
  --case-skill-green-gradient-end: var(--action-green-mid);
  --case-skill-red-text: color-mix(in srgb, var(--danger) 82%, #7f1d1d);
  --case-skill-red-bg: color-mix(in srgb, var(--danger) 7%, #fff);
  --case-skill-red-border: color-mix(in srgb, var(--danger) 24%, #fecaca);
  --case-skill-red-gradient-start: color-mix(in srgb, var(--danger) 88%, #7f1d1d);
  --case-skill-red-gradient-end: color-mix(in srgb, var(--danger) 72%, #ef4444);
  --case-skill-yellow-text: color-mix(in srgb, var(--warning) 78%, #854d0e);
  --case-skill-yellow-bg: color-mix(in srgb, var(--warning) 8%, #fff);
  --case-skill-yellow-border: color-mix(in srgb, var(--warning) 28%, #fde68a);
  --case-skill-yellow-gradient-start: color-mix(in srgb, var(--warning) 82%, #854d0e);
  --case-skill-yellow-gradient-end: color-mix(in srgb, var(--warning) 68%, #eab308);
}

body[class*="theme-"] #panelEval .panel-header-accent,
body[class*="theme-"] #panelFeedback .panel-header-accent,
body[class*="theme-"] #panelBriefing .panel-header-accent,
body[class*="theme-"] #panelCases .panel-header-accent {
  border-top-color: var(--accent);
}

body[class*="theme-"] #panelBriefing.tools-panel-styled .insight-ratings-title--compact {
  color: var(--action-green-title);
}

body[class*="theme-"] #panelBriefing .panel-header-accent {
  border-top-color: var(--action-green-mid);
}

body[class*="theme-"] #panelBriefing .insight-action-card .insight-action-icon,
body[class*="theme-"] #panelBriefing.tools-panel-styled .insight-action-card--briefing .insight-action-icon {
  background: var(--action-green-icon-gradient);
  box-shadow: var(--action-green-shadow);
}

body[class*="theme-"] #panelBriefing.tools-panel-styled .insight-action-card--briefing {
  background: linear-gradient(180deg, #fff 0%, var(--action-green-surface) 100%);
  border-color: color-mix(in srgb, var(--action-green-mid) 42%, #86efac);
}

body[class*="theme-"] #panelBriefing.tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline) {
  background: linear-gradient(180deg, #fff 0%, var(--action-green-surface) 100%);
  border-color: color-mix(in srgb, var(--action-green-mid) 48%, #4ade80);
}

body[class*="theme-"] #panelBriefing.tools-panel-styled .insight-action-card--compact:hover {
  box-shadow: var(--action-green-shadow-hover);
}

body[class*="theme-"] #panelEval.tools-panel-styled .insight-ratings-title--compact,
body[class*="theme-"] #panelFeedback.tools-panel-styled .insight-ratings-title--compact {
  color: var(--accent-dark);
}

body[class*="theme-"] .tools-panel-styled .insight-action-icon,
body[class*="theme-"] #panelEval .insight-action-card .insight-action-icon,
body[class*="theme-"] #panelFeedback .insight-action-card .insight-action-icon {
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  box-shadow: 0 2px 6px var(--thumb-shadow);
}
body[class*="theme-"] #panelEval .insight-action-card--friend .insight-action-icon,
body[class*="theme-"] #panelFeedback .insight-action-card--feedback-join .insight-action-icon {
  background: linear-gradient(145deg, var(--accent), var(--accent-light));
}
body[class*="theme-"] .tools-panel-styled .insight-action-card--outline .insight-action-icon {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-dark) 80%, #0f172a), var(--accent-dark));
}

body[class*="theme-"] #panelEval.tools-panel-styled .insight-action-card--self,
body[class*="theme-"] #panelEval.tools-panel-styled .insight-action-card--friend,
body[class*="theme-"] #panelEval.tools-panel-styled .insight-action-card--supervisor,
body[class*="theme-"] #panelFeedback.tools-panel-styled .insight-action-card--feedback-start,
body[class*="theme-"] #panelFeedback.tools-panel-styled .insight-action-card--feedback-join {
  border-color: var(--thumb-border-light);
  background: #fff;
}
body[class*="theme-"] #panelEval.tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline),
body[class*="theme-"] #panelFeedback.tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline),
body[class*="theme-"] .tools-panel-styled .insight-action-card--compact:not(.insight-action-card--outline) {
  background: var(--thumb-bg-card);
  border-color: var(--accent);
}
body[class*="theme-"] .tools-panel-styled .insight-action-card--compact:hover,
body[class*="theme-"] #panelFeedback.tools-panel-styled .insight-action-card--compact:hover {
  box-shadow: 0 6px 18px var(--thumb-shadow);
}
body[class*="theme-"] .tools-panel-styled .insight-action-cta {
  background: var(--accent);
  box-shadow: 0 2px 6px var(--thumb-shadow);
}

body[class*="theme-"] .case-list-icon,
body[class*="theme-"] #panelCases.tools-panel-styled .case-list-icon {
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  box-shadow: 0 2px 6px var(--thumb-shadow);
}

body[class*="theme-"] .quiz-category-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #fff), color-mix(in srgb, var(--accent) 5%, #fff));
  border-color: color-mix(in srgb, var(--accent) 30%, #e2e8f0);
  color: var(--accent-dark);
}
body[class*="theme-"] .quiz-wizard-icon,
body[class*="theme-"] .quiz-option-letter,
body[class*="theme-"] .quiz-option-card.selected .quiz-option-letter {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border: none;
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
body[class*="theme-"] .quiz-wizard-step {
  color: var(--accent-dark);
}
body[class*="theme-"] .quiz-wizard-category {
  color: #e0f2fe;
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border-left-color: #e0f2fe;
}
body[class*="theme-"] .quiz-progress-fill {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
body[class*="theme-"] .quiz-option-card {
  border-color: color-mix(in srgb, var(--accent) 24%, #d4dde8);
}
body[class*="theme-"] .quiz-option-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent), 0 6px 18px rgba(30, 107, 138, .12);
}
body[class*="theme-"] .quiz-option-card.selected .quiz-option-check {
  border-color: var(--accent);
  background: var(--accent);
}

body[class*="theme-"] .video-lesson-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #fff), color-mix(in srgb, var(--accent) 5%, #fff));
  border-color: color-mix(in srgb, var(--accent) 30%, #e2e8f0);
  color: var(--accent-dark);
}
body[class*="theme-"] .video-list-item.in-progress .video-lesson-icon {
  border-color: color-mix(in srgb, var(--accent) 40%, #e2e8f0);
  color: var(--accent);
}
body[class*="theme-"] .video-list-compact .video-list-item .video-lesson-icon.video-lesson-icon--play,
body[class*="theme-"] .video-list-compact .video-list-item.in-progress .video-lesson-icon.video-lesson-icon--play,
body[class*="theme-"] .video-list-compact .video-list-item.watched .video-lesson-icon.video-lesson-icon--play {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  border: none;
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
body[class*="theme-"] .video-list-compact .video-list-item.locked .video-lesson-icon.video-lesson-icon--play {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  color: #f8fafc;
  box-shadow: none;
}
body[class*="theme-"] .video-list-compact .video-list-item .video-progress-fill.is-done,
body[class*="theme-"] .video-list-compact .video-list-item .video-progress-fill.is-progress,
body[class*="theme-"] .video-list-compact .video-list-item .course-progress-fill.is-done,
body[class*="theme-"] .video-list-compact .video-list-item .course-progress-fill.is-progress {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

body[class*="theme-"] .tools-record-block .eval-rating-col--action,
body[class*="theme-"] .tools-record-block .eval-rating-line-btn:hover .eval-rating-col--action {
  color: var(--accent);
}

body[class*="theme-"] .case-step-hero-icon,
body[class*="theme-"] [class*="case-step-hero-icon--"],
body[class*="theme-"] .case-timeline-marker {
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  box-shadow: 0 2px 8px var(--thumb-shadow);
}
body[class*="theme-"] .case-timeline-title {
  border-left-color: var(--accent);
  color: var(--accent-dark);
}

body[class*="theme-"] .modal {
  border-top: 4px solid var(--accent);
}
body[class*="theme-"] .login-modal,
body[class*="theme-"] .signup-modal,
body[class*="theme-"] .forgot-password-modal,
body[class*="theme-"] .instructor-picker-modal,
body[class*="theme-"] .plan-choice-modal,
body[class*="theme-"] .eval-rating-choice-modal,
body[class*="theme-"] .modal-case-role,
body[class*="theme-"] .modal-preview-access.login-modal,
body[class*="theme-"] .section-help-modal,
body[class*="theme-"] .case-complete-modal,
body[class*="theme-"] .landing-join-code-modal {
  border-top: none;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--prof-heading, var(--accent-light)) 8%, #fff) 100%);
}
body[class*="theme-"] .login-modal-header,
body[class*="theme-"] .signup-modal-header,
body[class*="theme-"] .plan-choice-header,
body[class*="theme-"] .eval-rating-choice-header,
body[class*="theme-"] .case-role-modal-header,
body[class*="theme-"] .eval-summary-modal .eval-rating-choice-header,
body[class*="theme-"] .section-help-modal-header {
  margin: 0 0.25rem 1rem;
  padding: 0.9rem 1.15rem 0.75rem;
  background: var(--theme-header);
  border: 2px solid var(--theme-header-border);
  border-radius: 12px;
}
body[class*="theme-"] .login-modal-header .login-modal-logo,
body[class*="theme-"] .signup-modal-header .signup-modal-logo,
body[class*="theme-"] .plan-choice-header .plan-choice-logo {
  margin-bottom: 0.35rem;
}
body[class*="theme-"] .login-modal-header .login-modal-title,
body[class*="theme-"] .signup-modal-header .signup-modal-title,
body[class*="theme-"] .plan-choice-header .plan-choice-heading {
  font-size: 1.2rem;
}
body[class*="theme-"] .forgot-password-modal {
  padding-bottom: 1.35rem;
}
body[class*="theme-"] .forgot-password-modal > h2 {
  margin: 0 0.25rem 1rem;
  padding: 0.85rem 1.15rem 0.75rem;
  background: var(--theme-header);
  border: 2px solid var(--theme-header-border);
  border-radius: 12px;
  color: #fff;
  font-size: 1.35rem;
  text-align: center;
}
body[class*="theme-"] .forgot-password-modal > p,
body[class*="theme-"] .forgot-password-modal > form {
  padding-left: 0;
  padding-right: 0;
}
body[class*="theme-"] .modal:not(.login-modal):not(.signup-modal):not(.forgot-password-modal):not(.instructor-picker-modal):not(.plan-choice-modal):not(.eval-rating-choice-modal):not(.modal-case-role):not(.eval-summary-modal):not(.section-help-modal) h2 {
  color: var(--accent-dark);
}
body[class*="theme-"] .login-modal .login-modal-title,
body[class*="theme-"] .signup-modal .signup-modal-title,
body[class*="theme-"] .plan-choice-modal .plan-choice-heading,
body[class*="theme-"] .forgot-password-modal > h2,
body[class*="theme-"] .eval-rating-choice-header h2,
body[class*="theme-"] .case-role-modal-title,
body[class*="theme-"] .eval-summary-modal .eval-rating-choice-header h2,
body[class*="theme-"] .section-help-modal-header h2 {
  color: #fff;
}
body[class*="theme-"] .login-modal-logo .logo-primary,
body[class*="theme-"] .signup-modal-logo .logo-primary,
body[class*="theme-"] .plan-choice-logo .logo-primary {
  color: #fff;
}
body[class*="theme-"] .login-modal-logo .logo-accent,
body[class*="theme-"] .signup-modal-logo .logo-accent,
body[class*="theme-"] .plan-choice-logo .logo-accent {
  color: var(--prof-heading, var(--accent-light));
}
body[class*="theme-"] .instructor-picker-intro,
body[class*="theme-"] .signup-modal-intro,
body[class*="theme-"] .plan-choice-intro,
body[class*="theme-"] .delete-case-modal-intro {
  color: rgba(255, 255, 255, 0.86);
}
body[class*="theme-"] .inbox-folder-delete-modal .delete-case-modal-intro {
  color: #fff;
}
body[class*="theme-"] .login-modal .btn-primary.login-modal-submit,
body[class*="theme-"] .signup-modal .btn-primary.signup-modal-submit,
body[class*="theme-"] .forgot-password-modal .btn-primary {
  background: var(--auth-btn-bg);
  border: 1px solid color-mix(in srgb, var(--prof-heading, var(--accent-light)) 42%, var(--accent));
  color: var(--auth-btn-text);
  box-shadow: var(--auth-btn-shadow);
}
body[class*="theme-"] .login-modal .btn-primary.login-modal-submit:hover,
body[class*="theme-"] .signup-modal .btn-primary.signup-modal-submit:hover,
body[class*="theme-"] .forgot-password-modal .btn-primary:hover {
  background: var(--auth-btn-hover-bg);
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light)) 35%, var(--accent-dark));
  color: var(--auth-btn-text);
}
body[class*="theme-"] .login-modal .login-alt-actions .btn-outline {
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light)) 55%, #94a3b8);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
}
body[class*="theme-"] .login-modal .login-alt-actions .btn-outline:hover {
  background: color-mix(in srgb, var(--prof-heading, var(--accent-light)) 14%, #fff);
  border-color: var(--prof-heading, var(--accent));
  color: var(--accent-dark);
}
body[class*="theme-"] .login-modal .btn-link,
body[class*="theme-"] .signup-modal-footer a,
body[class*="theme-"] .plan-choice-footer a {
  color: var(--accent);
}
body[class*="theme-"] .login-modal .btn-link:hover,
body[class*="theme-"] .signup-modal-footer a:hover,
body[class*="theme-"] .plan-choice-footer a:hover {
  color: var(--accent-dark);
}
body[class*="theme-"] .plan-choice-card {
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent-light)) 28%, #d4dde8);
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--prof-heading, var(--accent-light)) 8%, #fff) 100%);
}
body[class*="theme-"] .plan-choice-card:hover {
  border-color: var(--prof-heading, var(--accent));
  background: color-mix(in srgb, var(--prof-heading, var(--accent-light)) 12%, #fff);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--prof-heading, var(--accent)) 16%, rgba(15, 45, 74, 0.12));
}
body[class*="theme-"] .plan-choice-title {
  color: var(--accent-dark);
}
body[class*="theme-"] .plan-choice-price {
  color: var(--accent);
}
body[class*="theme-"] .eval-setup-panel {
  border-color: color-mix(in srgb, var(--accent) 22%, #cfd9e6);
}
body[class*="theme-"] .eval-setup-doc-header {
  background: var(--theme-header);
  border-bottom-color: var(--theme-header-border);
}
body[class*="theme-"] .eval-setup-doc-header h2 {
  color: #fff;
}
body[class*="theme-"] .eval-setup-body {
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--panel-main-bg) 55%, #fff) 100%);
}
body[class*="theme-"] .eval-setup-label {
  color: var(--accent-dark);
}
body[class*="theme-"] .eval-invite-option {
  border-left-color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 22%, #d4dde8);
}
body[class*="theme-"] .eval-setup-actions .eval-setup-cancel-btn {
  border-color: color-mix(in srgb, var(--accent) 42%, #cbd5e1);
  color: var(--accent-dark);
}
body[class*="theme-"] .eval-setup-actions .eval-setup-cancel-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}
body[class*="theme-"] .modal a:not(.btn) {
  color: var(--accent);
}
body[class*="theme-"] .login-mode-tab.active {
  background: var(--thumb-bg-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
body[class*="theme-"] .form-group input:focus,
body[class*="theme-"] .form-group select:focus,
body[class*="theme-"] .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

body[class*="theme-"] .tour-ui-panel--main { border-bottom-color: var(--accent); }
body[class*="theme-"] .tour-ui-sub--accent {
  color: var(--accent-dark);
  border-left-color: var(--accent);
}
body[class*="theme-"] .tour-ui-sub--accent em { color: var(--accent); }
body[class*="theme-"] .tour-ui-total.self { border-top-color: var(--accent); }
body[class*="theme-"] .tour-ui-total strong,
body[class*="theme-"] .tour-ui-ai-snippet strong,
body[class*="theme-"] .tour-ui-rating-line code { color: var(--accent-dark); }
body[class*="theme-"] .tour-ui-btn-sm.primary { background: var(--accent); }
body[class*="theme-"] .tour-ui-chart-col:nth-child(1) span:nth-child(1),
body[class*="theme-"] .tour-ui-chart-col:nth-child(2) span:nth-child(1),
body[class*="theme-"] .tour-ui-chart-col:nth-child(3) span:nth-child(1) { background: var(--accent); }
body[class*="theme-"] .tour-ui-chart-legend .c-self { background: var(--accent); }
body[class*="theme-"] .tour-ui-compare-row .c-self { color: var(--accent); }
body[class*="theme-"] .tour-slide-caption h2 { color: var(--accent-dark); }
body[class*="theme-"] .tour-slide-kicker { color: var(--accent); }
body[class*="theme-"] .tour-ui-quiz-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #fff), color-mix(in srgb, var(--accent) 5%, #fff));
  border-color: color-mix(in srgb, var(--accent) 30%, #e2e8f0);
  color: var(--accent-dark);
}
body[class*="theme-"] .tour-ui-action-card {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 10%, #fff) 100%);
}
body[class*="theme-"] .tour-ui-action-card.is-outline { border-color: color-mix(in srgb, var(--accent) 35%, #94a3b8); }
body[class*="theme-"] .tour-ui-panel-header { border-left-color: var(--accent); color: var(--accent-dark); }
body[class*="theme-"] .tour-ui-ratings-title { color: var(--accent-dark); }
body[class*="theme-"] .tour-ui-section-head { color: var(--accent-dark); }
body[class*="theme-"] .tour-slide-caption { border-left-color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 2rem 0 1rem; }
  .intro-hero-wrap { margin: 0.65rem 0 0.85rem; padding: 0 1rem; }
  .intro-hero-panel--full .intro-hero-content {
    padding: 1.65rem 1.35rem 1.5rem;
    border-radius: 14px;
  }
  .hero-brand-logo {
    font-size: clamp(2.05rem, 8vw, 2.55rem);
  }
  .hero-brand-logo .logo-mark {
    width: clamp(2.35rem, 8vw, 2.85rem);
    height: clamp(2.35rem, 8vw, 2.85rem);
  }
  .hero-brand-box {
    padding: 1.45rem 1.65rem 1.3rem;
    min-width: min(100%, 20rem);
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }
  .hero-brand-box .hero-tagline {
    font-size: clamp(1.05rem, 3.6vw, 1.18rem);
  }
  .hero-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-panel p {
    font-size: .95rem;
  }
  body.landing-page .hero-panel .hero-lead,
  .hero-panel .hero-lead {
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    max-width: min(22rem, calc(100% - .5rem));
    margin: 0 auto;
    padding: .75rem 1.15rem;
    font-family: 'Sora', var(--font);
    font-size: clamp(.88rem, 3.6vw, 1.02rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .02em;
    white-space: normal;
    text-wrap: balance;
    text-align: center;
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 0;
    text-shadow: none;
    filter: none;
    opacity: 1;
    background: linear-gradient(135deg, #0a3d4f 0%, #1e6b8a 52%, #2d7ab8 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      0 4px 14px rgba(30, 107, 138, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  .tracks-panel,
  .hero-panel,
  .offerings-panel,
  .offerings-train-panel,
  .science-panel,
  .landing-compact-panel.landing-team-panel {
    padding: 1.5rem 1.25rem 1.35rem;
  }
  .offerings-block-layout {
    grid-template-columns: 1fr;
  }
  .offerings-block-copy h3 {
    text-align: center;
  }
  .offerings-row {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .offerings-row-copy h3 {
    text-align: center;
  }
  .offerings-tools-split {
    grid-template-columns: 1fr;
  }
  .offerings-sim-layout {
    grid-template-columns: minmax(8.5rem, .9fr) minmax(0, 1.2fr);
  }
  .track-grid { margin-top: 0; }
  .panel-header { flex-direction: column; align-items: flex-start; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-header .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .dashboard-cols-2,
  .dashboard-cols-balanced,
  .dashboard-cols-exam,
  .course-material-grid,
  .course-material-learn-row,
  .course-material-top-row--triple,
  .games-panel-columns,
  .games-panel-columns--dual {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .games-panel-column--create {
    min-height: 0;
    order: -1;
  }
  .games-panel-column--create::before {
    display: none;
  }
  .games-panel-column--create .case-create-game-btn--tall {
    flex-direction: row;
    min-height: 0;
    padding: .7rem .85rem;
    text-align: left;
  }
  .games-panel-column--create .case-create-game-label {
    max-width: none;
  }
  .tools-row-stack .insight-actions--compact {
    grid-template-columns: 1fr;
  }
  .video-lessons-columns {
    grid-template-columns: 1fr;
  }
  .insight-panel-split {
    grid-template-columns: 1fr;
  }
  .tools-row-split {
    grid-template-columns: 1fr;
  }
  .tools-row-tools-bottom {
    grid-template-columns: 1fr;
  }
  .tools-row-tools-right {
    grid-template-columns: 1fr;
  }
  .tools-row-2,
  .tools-row-3,
  .tools-row-4,
  .tools-row-simsolutions { grid-template-columns: 1fr; }
  .tools-create-btn-row:not(.tools-create-btn-row--single),
  .games-create-btn-row--dual {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .tools-create-btn-row:not(.tools-create-btn-row--single) .case-create-game-btn,
  .games-create-btn-row--dual .case-create-game-btn {
    width: auto;
    max-width: 100%;
  }
  .course-material-exam { margin-top: 0; }
  .eval-compare-head,
  .eval-compare-row { grid-template-columns: 1fr; gap: .15rem; }
  .eval-compare-head { display: none; }
  .eval-compare-row {
    border-bottom: 1px solid #e2e8f0;
    padding: .65rem .75rem;
  }
  .eval-results-totals-row { grid-template-columns: 1fr; }
  .eval-source-score {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }
  .insight-actions--inline { grid-template-columns: 1fr; }
  .tools-panel-styled .eval-rating-item:not(.eval-rating-item--line) {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  .tools-panel-styled .eval-rating-score,
  .tools-panel-styled .eval-rating-status { align-self: flex-start; }
  .tools-panel-styled .eval-rating-actions { width: 100%; }
  .upgrade-modal-grid { grid-template-columns: 1fr; }
  .upgrade-modal-summary { padding: 1.5rem; }
  .upgrade-modal-form { padding: 1.25rem; }
  .plan-choice-grid { grid-template-columns: 1fr; }
  .exam-panel-layout { grid-template-columns: 1fr; min-height: auto; }
  .exam-panel-visual { min-height: 160px; }
  .quiz-category-grid-narrow .quiz-category-card { flex-direction: column; text-align: center; }
  .quiz-category-grid-narrow .quiz-category-card p { display: block; }
  .feedback-bubble,
  .feedback-bubbles--host .feedback-bubble,
  .feedback-bubbles--archive .feedback-bubble {
    max-width: 92%;
    min-width: 0;
  }
  .feedback-room-header {
    padding: .5rem 1rem .55rem;
  }
  .feedback-room-join {
    flex-direction: column;
  }
  .feedback-bubbles {
    max-height: calc(100vh - 320px);
  }
  .feedback-debrief-paired-head,
  .feedback-debrief-paired-row,
  .feedback-debrief-report-row {
    grid-template-columns: 1fr;
  }
}

.hidden { display: none !important; }
.page-view { display: none; }
.page-view.active { display: block; }

/* Paddle checkout (demo overlay until Live) */
.checkout-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f5f7;
}
.checkout-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 860px) {
  .checkout-shell { grid-template-columns: 1fr; }
  .checkout-summary { min-height: auto; }
}
.checkout-summary {
  background: linear-gradient(160deg, var(--accent-dark), var(--accent));
  color: #fff;
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
}
.checkout-back {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}
.checkout-back:hover { color: #fff; }
.checkout-product {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.checkout-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.checkout-product h1 {
  font-size: 1.35rem;
  margin-bottom: .35rem;
}
.checkout-product p {
  font-size: .88rem;
  opacity: .88;
  line-height: 1.45;
  margin: 0;
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: .65rem 0;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.checkout-line-total {
  border-bottom: none;
  margin-top: .5rem;
  font-size: 1rem;
}
.checkout-demo-note {
  margin-top: auto;
  padding-top: 2rem;
  font-size: .78rem;
  opacity: .75;
  line-height: 1.45;
}
.checkout-main {
  background: #fff;
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.checkout-paddle-badge,
.checkout-stripe-badge {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.5rem;
  font-size: .78rem;
  font-weight: 600;
  color: #5b616e;
}
.paddle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: #00d4aa;
  color: #04281f;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1;
}
.paddle-word {
  color: #0d0d0d;
  font-size: .95rem;
  letter-spacing: -.02em;
}
.paddle-overlay-mock {
  margin: 0 0 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f7faf9 100%);
}
.paddle-overlay-mock-title {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #00a888;
}
.paddle-overlay-mock p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.45;
  color: #334155;
}
.paddle-overlay-mock-note {
  margin-top: .55rem !important;
  color: #64748b !important;
  font-size: .78rem !important;
}
.checkout-form { max-width: 420px; width: 100%; margin: 0 auto; }
.checkout-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.checkout-fieldset legend {
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .65rem;
  color: #30313d;
}
.checkout-card-mock {
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  padding: 1rem;
  background: #fafbfc;
}
.checkout-readonly {
  background: #fff !important;
  color: #697386 !important;
  cursor: default;
}
.checkout-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.checkout-pay-btn {
  width: 100%;
  padding: .95rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: #0d0d0d;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .5rem;
}
.checkout-pay-btn:hover:not(:disabled) { background: #222; }
.checkout-pay-btn:disabled { opacity: .75; cursor: wait; }
.checkout-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: checkout-spin .7s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.checkout-footer-note {
  margin-top: 1rem;
  font-size: .78rem;
  color: #697386;
  line-height: 1.45;
  text-align: center;
}
.checkout-trial-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .85rem;
}
.checkout-trial-link a { color: var(--accent); font-weight: 600; }

/* Feedback session */
.feedback-session-page {
  padding: 1.5rem 0 2.5rem;
  max-width: 560px;
}
.feedback-session-page--narrow {
  max-width: 440px;
}
.feedback-session-panel {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #cfd9e6);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .1);
  overflow: hidden;
}
.feedback-session-doc-header {
  padding: 1.35rem 1.5rem 1.15rem;
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  border-bottom: 2px solid var(--theme-header-border, #0a2540);
  color: #fff;
}
.feedback-session-doc-header--compact {
  padding: 1.1rem 1.35rem .95rem;
}
.feedback-session-doc-label {
  margin: 0 0 .3rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 72%, var(--prof-heading, var(--accent-light)));
}
.feedback-session-doc-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
  color: #fff;
}
.feedback-session-doc-header--compact .feedback-session-doc-title {
  font-size: 1.12rem;
}
.feedback-session-doc {
  padding: 1.15rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--panel-main-bg, #e8eef5) 55%, #fff) 100%);
}
.feedback-session-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.feedback-room {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-main-bg, #e8eef5) 65%, #fff) 0%, #f1f5f9 100%);
}
.feedback-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 1.5rem .6rem;
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  border-bottom: 2px solid var(--theme-header-border, #0a2540);
  color: #fff;
  flex-wrap: wrap;
}
.feedback-room-brand .logo {
  font-size: 1.1rem;
  font-weight: 800;
}
.feedback-room-brand .logo-primary {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.feedback-room-brand .logo-accent {
  color: var(--prof-heading, #d8ecff);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.feedback-room-brand .logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .28));
}
.feedback-room-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  flex-shrink: 0;
}
.feedback-room-report-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  width: 100%;
  flex-wrap: wrap;
}
.feedback-room-report-header .feedback-live-indicator {
  flex-shrink: 0;
  margin: 0;
  padding: .3rem .65rem;
  font-size: .68rem;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  animation: feedback-live-pulse 1.6s ease-in-out infinite;
}
.feedback-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.feedback-live-indicator-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .55);
  animation: feedback-live-dot 1.6s ease-in-out infinite;
}
.feedback-live-indicator-icon {
  flex-shrink: 0;
  opacity: .95;
}
@keyframes feedback-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}
@keyframes feedback-live-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}
.feedback-debrief-host {
  margin-top: .85rem;
}
.feedback-debrief-phases {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.feedback-debrief-phase-item {
  border: 1px solid #d5dee9;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 45, 74, .05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feedback-debrief-phase-item--unlocked {
  background: #fff;
}
.feedback-debrief-phase-item--active {
  border-color: color-mix(in srgb, var(--accent, #1e5a8a) 42%, #c5d4e4);
}
.feedback-debrief-phase-item--open {
  box-shadow: 0 4px 16px rgba(15, 45, 74, .09);
}
.feedback-debrief-phase-item--sealed {
  border-color: #cfd8e3;
}
.feedback-debrief-phase-item--sealed.feedback-debrief-phase-item--expanded {
  border-color: color-mix(in srgb, var(--accent, #1e5a8a) 28%, #c5d4e4);
}
.feedback-debrief-phase-item--locked {
  opacity: .5;
  pointer-events: none;
}
.feedback-debrief-phase-head {
  display: block;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.feedback-debrief-phase-title-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 2.65rem;
}
.feedback-debrief-phase-item--active .feedback-debrief-phase-head {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #fff) 0%, color-mix(in srgb, var(--prof-heading, var(--accent-light)) 12%, #f4f8fc) 100%);
  border-left: 3px solid var(--accent, #1e5a8a);
}
.feedback-debrief-phase-item--sealed .feedback-debrief-phase-head {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, #eef2f7) 0%, color-mix(in srgb, var(--accent) 4%, #e6ecf3) 100%);
  border-left: 3px solid color-mix(in srgb, var(--accent) 35%, #94a3b8);
}
.feedback-debrief-phase-select {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .95rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
}
.feedback-debrief-phase-select:disabled {
  cursor: default;
}
.feedback-debrief-phase-num {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .74rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
}
.feedback-debrief-phase-item--active .feedback-debrief-phase-num {
  background: var(--accent, #1e5a8a);
  color: #fff;
}
.feedback-debrief-phase-title {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
}
.feedback-debrief-phase-item--active .feedback-debrief-phase-title {
  color: #0f2d4a;
  font-weight: 700;
}
.feedback-debrief-phase-toggle {
  flex-shrink: 0;
  align-self: center;
  padding: .4rem .75rem;
  margin-right: .55rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.feedback-debrief-phase-toggle:hover {
  border-color: color-mix(in srgb, var(--accent, #1e5a8a) 35%, #cbd5e1);
  color: var(--accent, #1e5a8a);
}
.feedback-debrief-phase-item--open .feedback-debrief-phase-toggle {
  background: color-mix(in srgb, var(--accent, #1e5a8a) 10%, #fff);
  border-color: color-mix(in srgb, var(--accent, #1e5a8a) 40%, #cbd5e1);
  color: var(--accent, #1e5a8a);
}
.feedback-debrief-phase-body {
  border-top: 1px solid color-mix(in srgb, var(--accent, #1e5a8a) 12%, #e2e8f0);
  background: linear-gradient(180deg, #fafbfd 0%, #f4f7fb 100%);
  padding-bottom: .25rem;
}
.feedback-debrief-paired-head--phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  padding: .5rem .65rem .35rem;
  background: transparent;
  border-bottom: none;
}
.feedback-debrief-paired-head-col--user {
  padding: .38rem .5rem;
  border-radius: 6px;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-dark, var(--accent)) 82%, #0f2d4a) 0%, color-mix(in srgb, var(--accent) 58%, var(--prof-heading, var(--accent-light))) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.feedback-debrief-paired-head-col--facilitator {
  padding: .38rem .5rem;
  border-radius: 6px;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, #0f2d4a) 0%, color-mix(in srgb, var(--accent-dark, var(--accent)) 88%, var(--prof-heading, var(--accent-light))) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.feedback-debrief-paired-rows {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 0 .65rem .55rem;
}
.feedback-debrief-paired-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  align-items: start;
}
.feedback-debrief-user-cell {
  padding: .42rem .58rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, #dbe4ee);
  background: linear-gradient(145deg, #ffffff 0%, color-mix(in srgb, var(--accent) 4%, #f3f7fb) 100%);
  box-shadow: 0 1px 2px rgba(15, 45, 74, .05);
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.35;
  color: #1e293b;
}
.feedback-debrief-facilitator-cell {
  display: block;
  min-height: 0;
}
.feedback-debrief-facilitator-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(1.35em + .84rem);
  margin: 0;
  padding: .42rem .58rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #cbd5e1);
  background: linear-gradient(145deg, #ffffff 0%, color-mix(in srgb, var(--accent) 3%, #f3f7fb) 100%);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 8%, transparent);
  resize: none;
  overflow: hidden;
  overflow-wrap: break-word;
  field-sizing: content;
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.35;
  color: #1e293b;
}
.feedback-debrief-facilitator-input::placeholder {
  font-family: inherit;
  font-size: .88rem;
  color: #94a3b8;
  opacity: 1;
}
.feedback-debrief-facilitator-readonly {
  padding: .42rem .58rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #dbe4ee);
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--accent) 4%, #f3f7fb) 100%);
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.35;
  color: #1e293b;
  min-height: 0;
}
.feedback-debrief-facilitator-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, #94a3b8);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}
.feedback-debrief-question-text {
  margin: 0;
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.35;
  color: #1e293b;
}
.feedback-debrief-empty {
  margin: 0;
  padding: .75rem .35rem;
  text-align: center;
  color: #94a3b8;
  font-size: .85rem;
}
.feedback-debrief-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin: .35rem .65rem .65rem;
  padding-top: .55rem;
  border-top: 1px solid #e2e8f0;
}
.feedback-debrief-save-btn {
  min-width: 6.5rem;
  font-weight: 700;
}
.feedback-debrief-next-phase-btn {
  min-width: 13rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.feedback-debrief-next-phase-btn--finish {
  background: linear-gradient(135deg, var(--accent-dark, #0f2d4a), var(--accent, #1e5a8a));
}
.feedback-debrief-report-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feedback-debrief-report-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid #eef2f7;
}
.feedback-debrief-report-row:last-child {
  border-bottom: none;
}
.feedback-debrief-report-col--questions {
  padding: .75rem .9rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, #e2e8f0);
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--accent) 4%, #f1f6fb) 100%);
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.35;
  color: #1e293b;
}
.feedback-debrief-report-col--comments {
  padding: .75rem .9rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #dbe4ee);
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--accent) 4%, #f3f7fb) 100%);
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.35;
  color: #1e293b;
}
.feedback-debrief-facilitator-label {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #94a3b8;
}
.feedback-debrief-facilitator-text {
  font-size: .9rem;
  line-height: 1.5;
  color: #334155;
}
.feedback-room-qr.session-qr {
  padding: .2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
}
.feedback-room-qr .session-qr-caption {
  display: none;
}
.feedback-room-qr .session-qr-box,
.feedback-room-qr .session-qr-box img,
.feedback-room-qr .session-qr-box canvas,
.feedback-room-qr .session-qr-box table {
  width: 68px !important;
  height: 68px !important;
}
.feedback-room-code {
  margin: 0;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.feedback-room-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.35rem;
  gap: .85rem;
}
.feedback-room-host-grid,
.feedback-archive-host-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
}
.feedback-room-host-col,
.feedback-archive-host-col {
  min-width: 0;
}
.feedback-room-host-comment-block,
.feedback-room-host-comment-block .eval-cat-head {
  border-radius: 8px 8px 0 0;
}
.feedback-room-host-comment-panel {
  padding: .45rem .45rem .5rem;
}
.feedback-room-host-comment-input {
  min-height: 10rem;
}
.feedback-room-host-nav,
.feedback-archive-step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .45rem;
}
.feedback-room-step {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  min-width: 4.5rem;
  text-align: center;
}
.feedback-bubble-meta {
  margin: 0 0 .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.feedback-room-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #cfd9e6);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.feedback-room-report-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem .9rem .95rem;
  min-height: 4.15rem;
}
.feedback-room-report-header h2 {
  width: auto;
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}
.feedback-room-panel-body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
  min-height: 0;
}
.feedback-room-subheader {
  margin: 0;
}
.feedback-bubbles {
  flex: 1;
  min-height: 240px;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem .55rem .7rem;
  border-radius: 8px;
  background: #fff;
}
.feedback-bubbles--host .feedback-bubble,
.feedback-bubbles--archive .feedback-bubble {
  max-width: 33%;
  min-width: 180px;
}
.feedback-bubbles--archive {
  max-height: none;
  min-height: 120px;
  padding: .5rem 0;
}
.feedback-archive-page {
  padding: 0;
}
.feedback-archive-subheader .eval-results-facts {
  width: 100%;
}
.feedback-archive-page .feedback-archive-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.eval-results-page--report .feedback-archive-section-field {
  display: block;
  grid-template-columns: none;
}
.eval-results-page--report .feedback-archive-section-field .eval-comment-field-body {
  font-size: .88rem;
  line-height: 1.6;
}
.feedback-archive-comments-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.feedback-archive-comment-item + .feedback-archive-comment-item {
  padding-top: .85rem;
  border-top: 1px solid #e2e8f0;
}
.feedback-archive-comment-meta {
  margin: 0 0 .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.feedback-archive-comment-text {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: #0f172a;
}
.feedback-archive-conclusion-wrap {
  margin-top: .55rem;
}
.feedback-archive-conclusion-label {
  display: block;
  margin: 0 0 .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark, #143d5c);
}
.feedback-archive-conclusion-input {
  display: block;
  width: 100%;
  min-height: 8.5rem;
  padding: .7rem .8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  font: inherit;
  font-size: .88rem;
  line-height: 1.55;
  color: #0f172a;
  resize: vertical;
  box-sizing: border-box;
}
.feedback-archive-conclusion-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.feedback-archive-conclusion-input:read-only {
  background: #f8fafc;
  color: #475569;
}
.feedback-archive-case-description-input {
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: .7rem .8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  font: inherit;
  font-size: .88rem;
  line-height: 1.55;
  color: #0f172a;
  resize: vertical;
  box-sizing: border-box;
}
.feedback-archive-case-description-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
body.sim-preview-gate-active #viewFeedbackRoom,
body.sim-preview-gate-active #viewFeedbackRoom * {
  pointer-events: none !important;
}
.feedback-session-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.feedback-bubble--archive {
  opacity: 1;
  filter: none;
}
.feedback-bubble-num {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.feedback-bubbles-empty {
  color: var(--muted);
  text-align: center;
  margin: auto;
  font-size: .92rem;
}
.feedback-bubble {
  display: flex;
  align-items: stretch;
  gap: .75rem;
  background: var(--dashboard-list-card-bg, #fff);
  border: 1px solid var(--dashboard-list-card-border, #e2e8f0);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: .85rem 1rem;
  box-shadow: var(--dashboard-list-card-shadow, 0 2px 8px rgba(15, 23, 42, .06));
  max-width: 33%;
  width: 100%;
  align-self: flex-start;
  animation: feedback-bubble-in .35s ease;
  position: relative;
  transition: filter .35s ease, opacity .35s ease, border-color .25s ease, box-shadow .25s ease;
}
.feedback-bubble-body {
  flex: 1;
  min-width: 0;
}
.feedback-bubble--active {
  border-left-color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 34%, #cbd5e1);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 18%, rgba(15, 23, 42, .1));
}
.feedback-bubble--done {
  opacity: .72;
}
.feedback-bubble--upcoming {
  filter: blur(5px);
  opacity: .38;
  pointer-events: none;
  user-select: none;
}
.feedback-check-btn {
  flex-shrink: 0;
  align-self: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--accent, #1e6b8a);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.feedback-check-btn:hover {
  background: var(--accent-dark, #0f4d66);
  transform: scale(1.05);
}
.feedback-check-done {
  flex-shrink: 0;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent-dark);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
  opacity: 0;
}
.feedback-check-done.is-visible {
  opacity: 1;
}
.feedback-bubbles--host {
  gap: 1rem;
}
@keyframes feedback-bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.feedback-bubble-text {
  margin: 0 0 .35rem;
  font-size: .95rem;
  line-height: 1.45;
  color: #1e293b;
}
.feedback-bubble-time {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  text-align: right;
}
.feedback-ask-panel {
  margin-top: 0;
}
.feedback-ask-card {
  padding: 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #d4dde8);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}
.feedback-ask-lead {
  margin: 0 0 .75rem;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--accent-dark);
  font-weight: 600;
}
.feedback-ask-row {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.feedback-ask-row input {
  flex: 1;
  min-width: 180px;
  padding: .65rem .85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #cbd5e1);
  border-radius: 8px;
  font-size: .92rem;
}
.feedback-ask-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.feedback-room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--panel-main-bg, #e8eef5) 45%, #fff) 100%);
  border-top: 1px solid color-mix(in srgb, var(--accent) 14%, #e2e8f0);
  flex-wrap: wrap;
}
body[class*="theme-"] .feedback-session-panel,
body[class*="theme-"] .feedback-room-panel {
  border-color: color-mix(in srgb, var(--accent) 22%, #cfd9e6);
}
body[class*="theme-"] .feedback-session-doc-header,
body[class*="theme-"] .feedback-room-header {
  background: var(--theme-header);
  border-bottom-color: var(--theme-header-border);
}
body[class*="theme-"] .feedback-session-doc-label {
  color: color-mix(in srgb, #fff 72%, var(--prof-heading, var(--accent-light)));
}
body[class*="theme-"] .feedback-room-brand .logo-accent {
  color: var(--prof-heading, #d8ecff);
}
body[class*="theme-"] .feedback-room-report-header {
  background: var(--theme-header);
  border-bottom-color: var(--theme-header-border);
}
body[class*="theme-"] .feedback-ask-lead {
  color: var(--accent-dark);
}
body[class*="theme-"] .feedback-bubble {
  border-left-color: var(--accent);
  border-color: var(--dashboard-list-card-border);
  background: var(--dashboard-list-card-bg);
}
body[class*="theme-"] .feedback-bubble--active {
  border-left-color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 34%, #cbd5e1);
}
body[class*="theme-"] .feedback-ask-card {
  border-left-color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 24%, #d4dde8);
}
body[class*="theme-"] .feedback-check-btn {
  background: var(--accent);
}
body[class*="theme-"] .feedback-check-btn:hover {
  background: var(--accent-dark);
}
body[class*="theme-"] .feedback-check-done {
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent-dark);
}

/* Legal pages & privacy */
.site-footer a {
  color: #94a3b8;
  margin: 0 .35rem;
}
.legal-page { padding: 2rem 0 3rem; }
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h1 { margin-bottom: .35rem; }
.legal-meta {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.legal-content h2 {
  font-size: 1.05rem;
  margin: 1.4rem 0 .4rem;
  text-align: left;
}
.legal-content h3 {
  font-size: .95rem;
  margin: .9rem 0 .3rem;
  text-align: left;
}
.legal-content p,
.legal-content li {
  color: var(--text);
  line-height: 1.45;
  font-size: .92rem;
}
.legal-content p { margin: 0 0 .5rem; }
.legal-content ul {
  padding-left: 1.25rem;
  margin: .5rem 0 1rem;
}
.consent-group { margin-top: .25rem; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 400;
  cursor: pointer;
}

/* Science / evidence page */
.science-page-hero {
  background: linear-gradient(135deg, #0f2d4a 0%, #1e5a8a 100%);
  color: #fff;
  padding: 2.25rem 0 2rem;
  text-align: center;
}
.science-page-hero h1 {
  margin: 0 0 .4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  font-weight: 700;
}
.science-hero-tagline {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .88);
}
.science-page-meta {
  margin: 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}
.science-page-main {
  padding: 2rem 0 3rem;
  background: #f1f5f9;
}
.science-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 820px;
  margin: 0 auto;
}
.science-panel-full {
  grid-column: 1 / -1;
}
.science-back-wrap {
  grid-column: 1 / -1;
  text-align: center;
  margin: .5rem 0 0;
}

/* Profession-themed domain cards — shared main blue theme */
.science-domain-panel {
  --prof-heading: #a8d4f0;
  --accent: #1e6b8a;
  --accent-dark: #145068;
  --accent-light: #a8d4f0;
  --theme-header: linear-gradient(135deg, #0a3d4f 0%, #1e6b8a 55%, #2a7fa0 100%);
  --theme-header-border: #0a3d4f;
  --panel-main-bg: linear-gradient(180deg, #fff 0%, #e8eef5 55%, #e2ebf4 100%);
  --panel-sub-header-border: #d4dde8;
  --dashboard-pill-text: #fff;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--panel-sub-header-border);
  background: var(--panel-main-bg);
  box-shadow: 0 4px 16px rgba(15, 45, 74, .08);
}
.science-domain-panel > h3 {
  margin: 0;
  padding: .8rem 1.15rem .75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--dashboard-pill-text);
  background: var(--theme-header);
  border-bottom: 2px solid var(--theme-header-border);
  text-align: left;
}
.science-domain-body {
  padding: 1.05rem 1.15rem 1.2rem;
}
.science-domain-body > p {
  margin: 0 0 .65rem;
  font-size: .88rem;
  line-height: 1.55;
  color: #334155;
}
.science-domain-body > p:last-child {
  margin-bottom: 0;
}
.science-domain-sub {
  margin: 0 0 .7rem !important;
  font-size: .82rem !important;
  font-weight: 600;
  color: var(--accent-dark) !important;
}
.science-domain-refs {
  margin-top: .95rem;
  padding: .85rem .95rem .9rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #e2e8f0);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.science-domain-refs h4 {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.science-ref-list {
  padding-left: 1.15rem;
  margin: 0;
}
.science-ref-list li {
  margin-bottom: .65rem;
  line-height: 1.5;
  font-size: .8rem;
  color: #64748b;
}
.science-ref-list li:last-child {
  margin-bottom: 0;
}
.science-ref-list a {
  font-size: .76rem;
  word-break: break-word;
  color: var(--accent);
}
.science-ack-panel .science-note {
  display: block;
  margin: .85rem 0 0;
  font-size: .8rem;
  color: #475569;
  line-height: 1.5;
  padding: .75rem .9rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.science-fn {
  font-size: .68em;
  font-weight: 700;
  line-height: 0;
  position: relative;
  top: -.35em;
  margin-left: .12em;
}
.science-fn a {
  color: #145068;
  text-decoration: none;
}
.science-fn a:hover,
.science-fn a:focus-visible {
  text-decoration: underline;
}
.science-prof-head {
  margin: 1rem 0 .3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #145068;
}
.science-prof-head:first-child {
  margin-top: 0;
}
.science-domain-body > .science-prof-head + p {
  margin-bottom: .15rem;
}
.science-refs-panel .science-ref-list {
  padding-left: 1.35rem;
}
.science-refs-panel .science-ref-list li {
  scroll-margin-top: 5rem;
}

@media (max-width: 768px) {
  .science-page-grid {
    grid-template-columns: 1fr;
  }
  .science-domain-body {
    padding: .9rem .85rem 1rem;
  }
}
.consent-label input { margin-top: .2rem; flex-shrink: 0; }
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem 1.25rem;
  background: #0f1a28;
  color: #cbd5e1;
  border-top: 1px solid #334155;
  font-size: .82rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.cookie-consent p { margin: 0; max-width: 720px; line-height: 1.45; }
.cookie-consent a { color: #7dd3fc; }
.privacy-panel-body { padding: 1.25rem 1.5rem; }
.account-summary { padding: 1.25rem 1.5rem; }
.account-details {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.account-details > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: .75rem;
  align-items: baseline;
}
.account-details dt {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.account-details dd {
  margin: 0;
  font-size: .95rem;
}
.privacy-panel-intro {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 1.25rem;
  max-width: 640px;
}
.privacy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.privacy-action-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: #fafbfc;
}
.privacy-action-card h3 {
  margin: 0 0 .35rem;
  font-size: .95rem;
}
.privacy-action-card p {
  margin: 0 0 .85rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}
.privacy-action-danger {
  border-color: #fecaca;
  background: #fffafa;
}
.privacy-delete-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.privacy-delete-row input {
  flex: 1;
  min-width: 140px;
  padding: .45rem .6rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: .85rem;
}
.privacy-delete-btn {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

/* Briefing */
.briefing-view-page,
.briefing-edit-page {
  padding: 1.5rem 0 2.5rem;
  max-width: 720px;
}
.briefing-view-panel,
.briefing-edit-panel {
  border: 1px solid color-mix(in srgb, var(--action-green-mid) 28%, #d4dde8);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .1);
  overflow: hidden;
}
.briefing-doc-header {
  padding: 1.35rem 1.5rem 1.15rem;
  background: var(--action-green-gradient);
  border-bottom: 1px solid color-mix(in srgb, var(--action-green-border) 55%, #052e16);
  color: #fff;
}
.briefing-doc-header--compact {
  padding: 1.1rem 1.35rem .95rem;
}
.briefing-doc-label {
  margin: 0 0 .3rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 72%, var(--action-green-border-light));
}
.briefing-doc-title {
  margin: 0 0 .35rem;
  font-size: 1.28rem;
  line-height: 1.25;
  color: #fff;
}
.briefing-doc-header--compact .briefing-doc-title {
  font-size: 1.12rem;
  margin-bottom: 0;
}
.briefing-doc-header .briefing-doc-meta {
  margin: 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, .86);
  font-weight: 500;
}
.briefing-doc {
  padding: 1.15rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--action-green-surface) 55%, #fff) 100%);
}
.briefing-edit-body {
  padding: 1.15rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--action-green-surface) 45%, #fff) 100%);
}
.briefing-doc-sections {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.briefing-doc-card {
  padding: .85rem .95rem;
  border: 1px solid var(--dashboard-list-card-border);
  border-left: 3px solid var(--action-green-mid);
  border-radius: 10px;
  background: var(--dashboard-list-card-bg);
  box-shadow: var(--dashboard-list-card-shadow);
}
.briefing-doc-card-title {
  margin: 0 0 .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--action-green-title);
}
.briefing-doc-card-body {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: #0f172a;
}
.briefing-view-back {
  margin-top: 1.35rem;
  text-align: center;
}
#panelBriefing .dashboard-list-card--briefing {
  border-color: color-mix(in srgb, var(--action-green-mid) 34%, var(--dashboard-list-card-border));
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--action-green-surface) 72%, #fff) 100%);
}
#panelBriefing .dashboard-list-card--briefing:hover {
  border-color: color-mix(in srgb, var(--action-green-mid) 52%, var(--dashboard-list-card-border));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--action-green-mid) 18%, rgba(15, 23, 42, .08));
}
#panelBriefing .briefing-list-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: var(--action-green-icon-gradient);
  border: none;
  color: var(--action-green-text);
  box-shadow: var(--action-green-shadow);
}
#panelBriefing .briefing-list-icon svg {
  width: 14px;
  height: 14px;
}
#panelBriefing .briefing-list-item .dashboard-list-card--briefing .dashboard-list-card-body {
  padding-left: 0;
}
.briefing-list { margin: 0; padding: 0; }
.briefing-list-item .briefing-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, #f4f7fa);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #e2e8f0);
}
.briefing-list-item .briefing-item-icon svg { width: 22px; height: 22px; }
.briefing-list-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.briefing-list-text .case-name {
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.briefing-list-meta {
  font-size: .75rem;
  color: var(--muted);
}
.briefing-list-actions {
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.briefing-list-empty {
  color: var(--muted);
  font-size: .88rem;
  padding: .5rem 0;
  list-style: none;
}
.briefing-delete-btn { color: #b91c1c !important; }
.briefing-placeholder {
  color: var(--muted);
  font-size: .92rem;
  font-style: italic;
  margin: 0;
  line-height: 1.55;
  text-align: center;
  padding: 1rem .5rem;
}
.briefing-doc-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

body[class*="theme-"] .briefing-view-panel,
body[class*="theme-"] .briefing-edit-panel {
  border-color: color-mix(in srgb, var(--action-green-mid) 32%, var(--dashboard-list-card-border));
}
body[class*="theme-"] .briefing-doc-header {
  background: var(--theme-header);
  border-bottom-color: var(--theme-header-border);
}
body[class*="theme-"] .briefing-doc-label {
  color: color-mix(in srgb, #fff 72%, var(--prof-heading, var(--accent-light)));
}
body[class*="theme-"] .briefing-doc-card {
  border-left-color: var(--action-green-mid);
  border-color: var(--dashboard-list-card-border);
  background: var(--dashboard-list-card-bg);
}
body[class*="theme-"] .briefing-doc-card-title {
  color: var(--action-green-title);
}
body[class*="theme-"] #panelBriefing .briefing-list-icon {
  background: var(--action-green-icon-gradient);
  box-shadow: var(--action-green-shadow);
}
body[class*="theme-"] #panelBriefing .dashboard-list-card--briefing {
  border-color: color-mix(in srgb, var(--action-green-mid) 34%, var(--dashboard-list-card-border));
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--action-green-surface) 72%, #fff) 100%);
}

@media (max-width: 640px) {
  .privacy-actions { grid-template-columns: 1fr; }
  .account-details > div { grid-template-columns: 1fr; gap: .25rem; }
  .briefing-list-item { flex-wrap: wrap; }
  .briefing-list-actions { width: 100%; justify-content: flex-start; padding-left: calc(36px + 1rem); }
}

.sim-remote-link-btn {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  padding: .38rem .85rem !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.2);
}
.sim-remote-link-btn:hover {
  background: #fff !important;
  color: #020617 !important;
}
.sim-remote-link-btn.is-linked {
  background: #22c55e !important;
  color: #052e16 !important;
}
.ch-page-header .sim-remote-link-btn {
  margin-left: auto;
}
#simRemoteModal {
  z-index: 10000;
}
#simRemoteModal.open {
  z-index: 10000;
}
.sim-lab-modal-overlay > #simRemoteModal,
.sim-lab-modal-dialog > #simRemoteModal {
  position: absolute;
  inset: 0;
  z-index: 10000;
}
.sim-remote-modal {
  position: relative;
  width: min(340px, 92vw);
  text-align: center;
  padding: 1.35rem 1.25rem 1.2rem;
}
.sim-remote-modal h2 {
  margin-bottom: .85rem;
  font-size: 1.15rem;
}
.sim-remote-qr {
  display: flex;
  justify-content: center;
  margin: 0 0 .75rem;
}
.sim-remote-qr img,
.sim-remote-qr canvas {
  border-radius: 8px;
  background: #fff;
  padding: .35rem;
}
.sim-remote-code-lg {
  display: block;
  width: 100%;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--text);
  margin: 0 0 .35rem;
  padding: .45rem .5rem;
  cursor: pointer;
  font-family: inherit;
}
.sim-remote-divider {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .85rem 0 .55rem;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sim-remote-divider::before,
.sim-remote-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, #e2e8f0);
}
.sim-remote-join-url {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: .35rem .2rem;
  border: none;
  background: transparent;
  font-size: .78rem;
  color: var(--muted);
  word-break: break-all;
  cursor: pointer;
  font-family: inherit;
}
.sim-remote-warn {
  margin: .7rem 0 0 !important;
  padding: .55rem .65rem;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .78rem;
  line-height: 1.4;
  text-align: left;
}
.sim-remote-warn.is-cloud {
  background: #ecfdf5;
  color: #065f46;
}
.sim-remote-hint {
  margin: 0 !important;
  color: var(--muted);
  font-size: .88rem;
}
.sim-remote-status-line {
  min-height: 1.1em;
  margin: .55rem 0 0 !important;
  font-size: .82rem;
  color: var(--success);
  font-weight: 600;
}

.sim-remote-page {
  margin: 0;
  min-height: 100vh;
  background: #0f1720;
  color: #e8eef4;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
.sim-remote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}
.sim-remote-header .logo {
  font-size: 1rem;
}
.sim-remote-header .logo .logo-primary {
  color: #fff;
}
.sim-remote-header .logo .logo-accent {
  color: #8fd4ff;
}
.sim-remote-code {
  font-weight: 800;
  letter-spacing: .14em;
  color: #93c5fd;
}
.sim-remote-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.1rem 1rem 2.5rem;
}
.sim-remote-join h1,
.sim-remote-main h1 {
  font-size: 1.35rem;
  margin: 0 0 .5rem;
}
.sim-remote-join p,
.sim-remote-status {
  color: #9ca3af;
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.sim-remote-join label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
}
.sim-remote-join input {
  width: 100%;
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #1f2937;
  color: #fff;
  margin-bottom: .85rem;
}
.remote-group {
  margin-bottom: 1.05rem;
}
.remote-group h3,
.remote-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: #cbd5e1;
}
.remote-slider-head {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
}
.remote-slider-head strong {
  color: #93c5fd;
  font-size: .9rem;
  white-space: nowrap;
}
.remote-group input[type="range"] {
  width: 100%;
  accent-color: #3b82f6;
}
.remote-group select {
  width: 100%;
  font-size: 1rem;
  padding: .55rem .65rem;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #1f2937;
  color: #fff;
}
.remote-rhythm-grid,
.remote-fault-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.remote-rhythm-btn {
  border: 1px solid #374151;
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 8px;
  padding: .4rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}
.remote-rhythm-btn.active {
  background: #1d4ed8;
  border-color: #60a5fa;
  color: #fff;
}

/* === Sim lab modal + session dock === */
.sim-lab-modal-overlay {
  z-index: 1300;
  padding: .85rem;
  background: rgba(15, 26, 40, .62);
  backdrop-filter: blur(4px);
}
.sim-lab-modal-dialog {
  display: flex;
  flex-direction: column;
  position: relative;
  width: min(96vw, 1480px);
  height: min(90vh, 920px);
  max-width: 100%;
  max-height: 100%;
  background: #0b0d0b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
  border: 1px solid rgba(148, 163, 184, .28);
}
.sim-lab-modal-dialog:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}
.sim-lab-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .85rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, .25);
  flex-shrink: 0;
}
.sim-lab-modal-head-main {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  min-width: 0;
}
.sim-lab-modal-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: .02em;
}
.sim-lab-modal-sub {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.sim-lab-modal-head-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.sim-lab-modal-close {
  position: static;
  width: 2rem;
  height: 2rem;
  font-size: 1.35rem;
  line-height: 1;
  color: #cbd5e1;
}
.sim-lab-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: #0b0d0b;
  padding-bottom: 3.35rem;
}
.sim-lab-modal-body > .page-view {
  display: none;
  height: 100%;
  min-height: 0;
}
.sim-lab-modal-body > .page-view.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.sim-lab-modal-body #viewSimSolution,
.sim-lab-modal-body #viewVentilator,
.sim-lab-modal-body #viewEcmo,
.sim-lab-modal-body #viewIabp,
.sim-lab-modal-body #viewPrismax,
.sim-lab-modal-body #viewBloodGas,
.sim-lab-modal-body #viewBloodSamples,
.sim-lab-modal-body #viewAdmissionJournal {
  min-height: 0;
  height: 100%;
  flex: 1;
}
.sim-lab-modal-body .icu-page,
.sim-lab-modal-body .ch-page,
.sim-lab-modal-body .px-page,
.sim-lab-modal-body .lab-page {
  min-height: 0;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sim-lab-modal-body .icu-layout,
.sim-lab-modal-body .vent-layout,
.sim-lab-modal-body .iabp-layout,
.sim-lab-modal-body .ch-workspace,
.sim-lab-modal-body .px-workspace,
.sim-lab-modal-body .lab-workspace,
.sim-lab-modal-body .admission-workspace {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.sim-lab-modal-body .icu-back-btn,
.sim-lab-modal-body .ch-back-btn,
.sim-lab-modal-body .px-back-btn,
.sim-lab-modal-body .lab-toolbar > .btn:first-child {
  display: none;
}
.sim-lab-modal-dock-host {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
}
.sim-lab-modal-dock-host .sim-dock-wrap {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.sim-lab-modal-dock-host .sim-dock-wrap > * {
  pointer-events: auto;
}
.sim-lab-modal-dock-host .sim-dock-panel {
  flex-shrink: 0;
  box-shadow: 0 -14px 36px rgba(0, 0, 0, .55);
}
.sim-lab-modal-dock-host .sim-dock-panel.is-collapsed {
  box-shadow: none;
}
.sim-lab-modal-dock-host .sim-session-dock {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
body.sim-lab-modal-open {
  overflow: hidden;
}
body.sim-lab-modal-open.sim-dock-panel-open .sim-lab-modal-body .icu-page,
body.sim-lab-modal-open.sim-dock-panel-open .sim-lab-modal-body .ch-page,
body.sim-lab-modal-open.sim-dock-panel-open .sim-lab-modal-body .px-page,
body.sim-lab-modal-open.sim-dock-panel-open .sim-lab-modal-body .lab-page {
  padding-bottom: 0;
}

.simsolution-prismax-group { display: contents; }
.simsolution-sub-tiles { display: contents; }
.simsolution-tile--sub { padding: .26rem .28rem !important; min-height: 0 !important; gap: .28rem !important; }
.simsolution-tile--sub .simsolution-tile-text strong { font-size: .54rem !important; line-height: 1.15; }
.simsolution-tile--sub .simsolution-tile-icon { width: 1.35rem !important; height: 1.35rem !important; padding: .2rem !important; border-radius: 6px !important; }
.sim-icon-bloodgas { background: linear-gradient(145deg, #0c4a6e, #0284c7); color: #e0f2fe; }
.sim-icon-bloodsamples { background: linear-gradient(145deg, #14532d, #16a34a); color: #dcfce7; }
.sim-icon-admission { background: linear-gradient(145deg, #78350f, #d97706); color: #fffbeb; }
#viewBloodGas { background: #525659; min-height: 100vh; }
#viewBloodSamples { background: #eef2f6; min-height: 100vh; }
.lab-page { min-height: 100vh; display: flex; flex-direction: column; }
.lab-toolbar { display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; background: #1e293b; color: #e2e8f0; border-bottom: 1px solid #334155; flex-wrap: wrap; }
.lab-toolbar-center { display: flex; flex-direction: column; gap: .05rem; }
.lab-toolbar-center strong { font-size: .9rem; color: #fff; }
.lab-toolbar-sub { font-size: .68rem; color: #94a3b8; }
.lab-toolbar-right { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.lab-workspace { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(248px, 292px); gap: .75rem; padding: .75rem; align-items: start; min-height: 0; }
.lab-main { min-width: 0; }
.lab-gas-stage { display: flex; justify-content: center; padding: .5rem 0 1rem; overflow: auto; }
.lab-gas-slip { position: relative; width: min(420px, 100%); background: #faf9f6; color: #111; font-family: "Courier New", Courier, ui-monospace, monospace; font-size: 11px; line-height: 1.35; box-shadow: 0 8px 32px rgba(0,0,0,.45); padding: .85rem .75rem 1rem; }
.lab-gas-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.lab-gas-table th, .lab-gas-table td { padding: .12rem .15rem; border-bottom: 1px dotted #ccc; }
.lab-gas-value { width: 100%; font: inherit; text-align: right; background: transparent; border: none; color: #111; }
.lab-gas-flag--h { color: #b91c1c; font-weight: 800; }
.lab-gas-flag--l { color: #1d4ed8; font-weight: 800; }
.lab-controls { max-height: calc(100vh - 4.5rem); overflow: hidden; display: flex; flex-direction: column; }
.lab-control-scroll { flex: 1; overflow-y: auto; margin-top: .5rem; }
.lab-control-row { display: grid; grid-template-columns: 1fr minmax(4.5rem, 5.5rem) 2.5rem; gap: .35rem; align-items: center; margin-bottom: .35rem; font-size: .72rem; }
.lab-control-input { width: 100%; font-size: .72rem; padding: .25rem .35rem; border: 1px solid #cbd5e1; border-radius: 4px; text-align: right; }
.lab-epj-window { margin: 0; background: #fff; border: 1px solid #94a3b8; border-radius: 6px; box-shadow: 0 4px 24px rgba(15, 23, 42, .12); display: flex; flex-direction: column; min-height: calc(100vh - 5rem); overflow: hidden; }
.lab-epj-titlebar { display: flex; align-items: center; gap: .5rem; padding: .35rem .65rem; background: linear-gradient(180deg, #f8fafc, #e2e8f0); border-bottom: 1px solid #cbd5e1; font-size: .72rem; }
.lab-epj-titlebar-icon { font-size: .62rem; font-weight: 800; padding: .12rem .35rem; background: #1e3a5f; color: #fff; border-radius: 3px; }
.lab-epj-patient-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: .45rem .75rem; background: #1e3a5f; color: #e2e8f0; font-size: .72rem; }
.lab-epj-grid thead th { background: #217346; color: #fff; padding: .35rem .5rem; border: 1px solid #1a5c38; }
.lab-epj-grid tbody td { padding: .22rem .5rem; border: 1px solid #d4d4d4; font-size: .72rem; }
.lab-epj-cell-input { width: 100%; font: inherit; border: 1px solid transparent; background: transparent; padding: .12rem .2rem; }
#viewAdmissionJournal { background: #e8edf2; min-height: 100vh; }
.admission-workspace { flex: 1; display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: .75rem; padding: .75rem; }
.admission-picker-panel { background: #fff; border: 1px solid #cbd5e1; border-radius: var(--radius, 8px); padding: .65rem; max-height: calc(100vh - 4.5rem); overflow: hidden; display: flex; flex-direction: column; }
.admission-picker { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .35rem; }
.admission-pick { width: 100%; padding: .45rem .5rem; border: 1.5px solid #e2e8f0; border-radius: 8px; background: #f8fafc; cursor: pointer; text-align: left; font-family: inherit; }
.admission-pick.is-active { border-color: #b45309; background: #fffbeb; }
.admission-doc-panel { min-width: 0; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
body.sim-session-active .icu-page, body.sim-session-active .ch-page, body.sim-session-active .px-page, body.sim-session-active .lab-page { padding-bottom: 4.25rem; }
body.sim-session-active.sim-dock-panel-open:not(.sim-lab-modal-open) .icu-page,
body.sim-session-active.sim-dock-panel-open:not(.sim-lab-modal-open) .ch-page,
body.sim-session-active.sim-dock-panel-open:not(.sim-lab-modal-open) .px-page,
body.sim-session-active.sim-dock-panel-open:not(.sim-lab-modal-open) .lab-page { padding-bottom: min(52vh, 28rem); }
body.sim-session-active .icu-layout,
body.sim-session-active .ch-workspace,
body.sim-session-active .px-workspace,
body.sim-session-active .lab-workspace {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.sim-session-active .icu-layout > aside,
body.sim-session-active .icu-layout > .sim-slider-drawer,
body.sim-session-active .ch-workspace > aside,
body.sim-session-active .ch-workspace > .sim-slider-drawer,
body.sim-session-active .px-workspace > aside,
body.sim-session-active .px-workspace > .sim-slider-drawer,
body.sim-session-active .lab-workspace > aside,
body.sim-session-active .lab-workspace > .sim-slider-drawer {
  display: none !important;
}
body.sim-session-active .icu-display { border-right: none; }
body.sim-session-active .sim-remote-link-btn { display: none !important; }
body.sim-session-active .sim-session-dock-actions .sim-remote-link-btn { display: inline-flex !important; }
.sim-dock-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: flex; flex-direction: column; pointer-events: none; }
.sim-dock-wrap.hidden { display: none; }
.sim-dock-wrap > * { pointer-events: auto; }
.sim-dock-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, .97), rgba(15, 23, 42, .98));
  border-top: 1px solid rgba(148, 163, 184, .35);
  max-height: min(48vh, 26rem);
  display: flex;
  flex-direction: column;
}
.sim-dock-panel.is-collapsed {
  max-height: 0;
  min-height: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}
.sim-dock-panel.is-collapsed .sim-dock-panel-head,
.sim-dock-panel.is-collapsed .sim-dock-panel-body {
  display: none;
}
.sim-slider-drawer-chevron--dock {
  transform: rotate(45deg);
  margin: .05rem 0 0;
}
.sim-session-dock-panel-btn[aria-expanded="false"] .sim-slider-drawer-chevron--dock {
  transform: rotate(-135deg);
  margin: -.05rem 0 0;
}
.sim-dock-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .75rem; border-bottom: 1px solid rgba(148, 163, 184, .2); }
.sim-dock-panel-head h3 { margin: 0; font-size: .78rem; color: #e2e8f0; flex: 1; min-width: 0; }
.sim-dock-panel-collapse-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: #cbd5e1;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.sim-dock-panel-collapse-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, .55);
}
.sim-dock-panel-collapse-btn[aria-expanded="true"] .sim-slider-drawer-chevron--dock {
  transform: rotate(45deg);
  margin: .05rem 0 0;
}
.sim-dock-panel-body { overflow-y: auto; padding: .55rem .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .45rem .65rem; }
.sim-dock-panel-body .remote-group--slider label {
  display: block;
  margin: 0 0 .28rem;
  font-size: .62rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.sim-dock-panel-body .remote-slider-wrap {
  position: relative;
  padding-top: 1.35rem;
}
.sim-dock-panel-body .remote-slider-tip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  padding: .14rem .42rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(129, 140, 248, .45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  color: #f8fafc;
  font-size: .68rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .1s ease;
  z-index: 2;
}
.sim-dock-panel-body .remote-slider-wrap.is-dragging .remote-slider-tip {
  opacity: 1;
}
.sim-dock-panel-body .remote-slider-wrap input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #818cf8;
}
.sim-dock-panel-body .remote-slider-head strong { display: none; }
.sim-dock-panel-body .remote-group { margin: 0; padding: .35rem .45rem; background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.18); border-radius: 8px; }
.sim-dock-panel-body .remote-group:has(.remote-rhythm-grid) { grid-column: 1 / -1; }
.sim-dock-panel-body .remote-rhythm-grid { display: flex; flex-wrap: wrap; gap: .3rem; }
.sim-dock-panel-body .remote-rhythm-btn { padding: .25rem .45rem; font-size: .62rem; border-radius: 6px; border: 1px solid rgba(148,163,184,.35); background: rgba(255,255,255,.06); color: #cbd5e1; cursor: pointer; font-family: inherit; }
.sim-dock-panel-body .remote-rhythm-btn.active { background: rgba(99,102,241,.35); border-color: rgba(129,140,248,.65); color: #eef2ff; }
.sim-session-dock { display: flex; align-items: stretch; gap: .5rem; padding: .45rem .65rem calc(.45rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .98)); border-top: 1px solid rgba(148, 163, 184, .35); }
.sim-session-dock-exit { flex-shrink: 0; display: flex; align-items: center; gap: .25rem; padding: .35rem .65rem; border: 1px solid rgba(148, 163, 184, .45); border-radius: 8px; background: rgba(255,255,255,.08); color: #e2e8f0; font-size: .72rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.sim-session-dock-tabs { flex: 1; min-width: 0; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: thin; }
.sim-session-dock-actions { flex-shrink: 0; display: flex; align-items: center; gap: .35rem; }
.sim-session-dock-panel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .08rem;
  min-width: 3.1rem;
  padding: .22rem .4rem;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, border-color .12s, color .12s;
}
.sim-session-dock-panel-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #f8fafc;
}
body.sim-dock-panel-open .sim-session-dock-panel-btn {
  background: rgba(99, 102, 241, .28);
  border-color: rgba(129, 140, 248, .55);
  color: #eef2ff;
}
.sim-session-dock-action-label { font-size: .52rem; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.sim-session-dock-actions .sim-dock-apply:disabled { opacity: .45; cursor: not-allowed; }
.sim-session-dock-actions .sim-remote-link-btn { white-space: nowrap; font-size: .68rem; padding: .28rem .5rem; }
.sim-session-dock-tab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 4rem; padding: .25rem .4rem; border: 1.5px solid transparent; border-radius: 8px; background: transparent; color: #cbd5e1; font-family: inherit; cursor: pointer; }
.sim-session-dock-tab.is-active { background: rgba(255,255,255,.12); border-color: rgba(148,163,184,.55); color: #fff; }
.sim-session-dock-icon { width: 1.55rem; height: 1.55rem; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: .2rem; }
.sim-session-dock-icon svg { width: 100%; height: 100%; }
.sim-session-dock-label { font-size: .58rem; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; }
@media (max-width: 900px) { .lab-workspace { grid-template-columns: 1fr; } .admission-workspace { grid-template-columns: 1fr; } }

/* Tablet / mobile layout refinements */
@media (max-width: 900px) {
  .course-material-learn-row,
  .course-material-top-row,
  .course-material-top-row--triple {
    grid-template-columns: 1fr;
  }
  .video-lessons-columns {
    grid-template-columns: 1fr;
  }
  .tools-row-2,
  .tools-row-3,
  .tools-row-4,
  .tools-row-simsolutions,
  .tools-row-split,
  .tools-row-tools-bottom,
  .tools-row-tools-right,
  .games-panel-columns,
  .games-panel-columns--dual {
    grid-template-columns: 1fr;
  }
  .tools-create-btn-row:not(.tools-create-btn-row--single),
  .games-create-btn-row--dual {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .tools-create-btn-row:not(.tools-create-btn-row--single) .case-create-game-btn,
  .games-create-btn-row--dual .case-create-game-btn,
  .tools-create-btn-row--single .case-create-game-btn,
  .tools-row-simsolutions .tools-create-btn-row .case-create-game-btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  /* Use full viewport width on phone / narrow tablet */
  #viewDashboard > .dashboard-header > .container,
  #viewDashboard > .dashboard-main.container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-left: .7rem;
    padding-right: .7rem;
  }
  .dashboard-main {
    padding: .85rem 0 2.25rem;
  }
  .dashboard-group {
    margin-bottom: 1rem;
  }
  .dashboard-page-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
  .dashboard-launcher {
    width: 100%;
    max-width: none;
  }
  .dashboard-launcher-grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }
  .dashboard-launcher-card--account {
    grid-column: auto;
    grid-row: auto;
  }
  .account-page-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "privacy"
      "licenses";
  }
  .panel-body-main,
  #groupCourseMaterial .panel-body-main,
  #groupTools .panel-body-main,
  #groupIncidentEvaluations .panel-body-main,
  #groupMyAccount .panel-body-main {
    padding: .75rem .8rem .9rem;
  }
  .dashboard-header {
    padding: .85rem 0;
  }
  .dashboard-header-page-title,
  .dashboard-header-inner > .eval-wizard-title {
    font-size: 1.15rem;
  }
  .dashboard-header-inner {
    gap: .65rem;
  }
  .sub-panel .panel-header-accent h2,
  #groupTools .sub-panel .panel-header-accent > h2,
  #groupIncidentEvaluations .sub-panel .panel-header-accent > h2,
  .course-material-videos .panel-header-accent h2,
  .course-material-notes .panel-header-accent h2,
  .course-material-quizzes .panel-header-accent h2,
  .course-material-exam .panel-header-accent h2 {
    margin-left: .55rem;
    margin-right: .55rem;
    width: calc(100% - 1.1rem);
  }
  .course-material-assessment-column,
  .course-material-videos-column {
    gap: .75rem;
  }
  .list-scroll-cap {
    max-height: none;
  }
  body.landing-page .site-header .header-inner {
    flex-wrap: wrap;
    gap: .65rem;
  }
  .footer-inner {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  #viewDashboard > .dashboard-header > .container,
  #viewDashboard > .dashboard-main.container {
    padding-left: .55rem;
    padding-right: .55rem;
  }
  .dashboard-group-header,
  .comm-center-main-header {
    gap: .5rem;
  }
  .comm-center-main-header {
    flex-direction: column;
    align-items: center;
  }
  .comm-center-main-header h2 {
    flex: none;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .comm-center-header-actions {
    width: 100%;
    justify-content: center;
  }
  .panel-header-main {
    padding: .75rem .85rem;
  }
  .panel-header-main h2 {
    font-size: .82rem;
    letter-spacing: .05em;
  }
  .inbox-layout--dashboard,
  .mailbox-layout,
  .comm-center-split {
    gap: .75rem;
  }
}

@media (max-width: 640px) {
  .list-scroll-cap > .eval-rating-item--line,
  .list-scroll-cap > .case-game-list-item {
    flex: 0 0 auto;
    height: auto;
    min-height: var(--list-row-h);
  }
  .eval-rating-item--line .dashboard-list-card--tools-record,
  .case-game-list-shell.dashboard-list-card--tools-record {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: .22rem;
    padding: .42rem .5rem .42rem .32rem;
    height: auto;
    min-height: var(--list-row-h, 2.5rem);
  }
  .eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-title,
  .eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-body h4,
  .case-game-list-main .dashboard-list-card-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3;
  }
  .eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-body {
    flex: 1 1 calc(100% - 1.4rem);
    min-width: 0;
  }
  .eval-rating-item--line .dashboard-list-card--tools-record .dashboard-list-card-meta {
    flex: 1 1 100%;
    margin-left: 1.15rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .25rem .55rem;
  }
  .container {
    padding-left: .85rem;
    padding-right: .85rem;
  }
  .dashboard-header-inner {
    align-items: flex-start;
  }
  .dashboard-page-title {
    margin-bottom: 1.15rem;
    font-size: 1.45rem;
  }
  .modal {
    width: min(100%, calc(100vw - 1rem));
    padding: 1.15rem 1rem;
    border-radius: 12px;
  }
  .login-modal,
  .signup-modal,
  .forgot-password-modal,
  .instructor-picker-modal,
  .plan-choice-modal,
  .modal-preview-access.login-modal {
    padding: 2.25rem 1rem 1.25rem;
  }
  .modal-close-btn {
    top: .45rem;
    right: .45rem;
  }
  .login-modal > .modal-close-btn,
  .signup-modal > .modal-close-btn,
  .forgot-password-modal > .modal-close-btn,
  .instructor-picker-modal > .modal-close-btn,
  .plan-choice-modal > .modal-close-btn,
  .modal-preview-access.login-modal > .modal-close-btn {
    top: 0.35rem;
    right: 0.35rem;
  }
  .track-actions {
    flex-wrap: nowrap;
  }
  .track-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .track-card-img-wrap .track-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .footer-copy {
    font-size: .72rem;
    line-height: 1.55;
  }
  .instructor-picker-list {
    max-height: 50vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .tools-row-3 {
    grid-template-columns: 1fr;
  }
  .dashboard-header .btn-header-outline,
  .dashboard-header .btn-header-back {
    padding: .35rem .55rem;
    font-size: .72rem;
  }
}

/* Profession dashboard preview */
.modal-preview-access {
  width: min(400px, 94vw);
  padding: 2.45rem 1.35rem 1.35rem;
  position: relative;
}
.preview-access-header {
  margin-bottom: 1rem;
}
.preview-access-body {
  padding-top: 0.15rem;
}
.preview-access-text {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: .95rem;
}
.preview-access-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: 0;
}
.preview-access-actions .btn-outline {
  border-color: color-mix(in srgb, var(--prof-heading, var(--accent)) 45%, #cbd5e1);
  color: var(--accent-dark);
}
.preview-access-actions .btn-outline:hover {
  background: color-mix(in srgb, var(--prof-heading, var(--accent)) 10%, #fff);
  border-color: var(--prof-heading, var(--accent));
  color: var(--accent-dark);
}
.dashboard-preview-mode .video-list-item.locked,
.dashboard-preview-mode .quiz-list-item.locked,
.dashboard-preview-mode .dashboard-list-card.preview-locked-item,
.dashboard-preview-mode .preview-locked-item {
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer;
}
.dashboard-preview-mode .video-list-item.locked .video-list-info h4,
.dashboard-preview-mode .video-list-item.locked .video-pct,
.dashboard-preview-mode .quiz-list-item.locked .dashboard-list-card-body h4,
.dashboard-preview-mode .preview-locked-item .dashboard-list-card-body h4 {
  color: inherit;
}
.dashboard-preview-mode .dashboard-list-card.locked:not(.exam-list-item) {
  opacity: 1;
}
.dashboard-preview-mode .dashboard-list-card.locked:not(.exam-list-item) .dashboard-list-card-icon,
.dashboard-preview-mode .dashboard-list-card.locked:not(.exam-list-item) .video-lesson-icon--play,
.dashboard-preview-mode .dashboard-list-card.locked:not(.exam-list-item) .quiz-lesson-icon--question {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
body.dashboard-preview-mode[class*="theme-"] .video-list-compact .video-list-item.locked .video-lesson-icon.video-lesson-icon--play,
body.dashboard-preview-mode[class*="theme-"] .video-list-compact .quiz-list-item.locked .quiz-lesson-icon--question {
  background: linear-gradient(145deg, var(--accent-dark) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, #fff) 100%);
  color: #e0f2fe;
  box-shadow: 0 2px 6px rgba(30, 107, 138, .18);
}
.dashboard-preview-mode .video-list-item.locked .course-progress-fill.is-locked,
.dashboard-preview-mode .video-list-item.locked .course-progress-fill.is-start,
.dashboard-preview-mode .quiz-list-item.locked .course-progress-fill.is-start {
  background: rgba(30, 107, 138, .12);
}
body.dashboard-preview-mode[class*="theme-"] .video-list-compact .video-list-item .course-progress-fill.is-start,
body.dashboard-preview-mode[class*="theme-"] .quiz-list-compact .quiz-list-item .course-progress-fill.is-start {
  background: color-mix(in srgb, var(--accent) 16%, #e8eef5);
}
.dashboard-preview-mode .preview-locked-item,
.dashboard-preview-mode .dashboard-list-card:has(.exam-lesson-lock--yellow),
.dashboard-preview-mode .dashboard-list-card:has(.preview-lock-badge) {
  overflow: visible;
}
.dashboard-preview-mode button.dashboard-list-card.preview-locked-item,
.dashboard-preview-mode li.dashboard-list-card.preview-locked-item,
.dashboard-preview-mode li.dashboard-list-card.locked:has(.exam-lesson-lock--yellow) {
  position: relative;
}
.dashboard-preview-mode .dashboard-list-card:has(.exam-lesson-lock--yellow) .dashboard-list-card-icon,
.dashboard-preview-mode .dashboard-list-card:has(.preview-lock-badge) .dashboard-list-card-icon {
  position: relative;
  overflow: visible;
}
.dashboard-preview-mode .dashboard-list-card-icon .exam-lesson-lock--yellow,
.dashboard-preview-mode .dashboard-list-card-icon .preview-lock-badge {
  top: -.48rem;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
}
.dashboard-preview-mode .exam-lesson-lock--yellow,
.dashboard-preview-mode .preview-lock-badge {
  position: absolute;
  top: -.48rem;
  left: calc(.28rem + .425rem);
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 3;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fde047 0%, #facc15 55%, #eab308 100%);
  border: 1.5px solid #ca8a04;
  color: #713f12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.95),
    0 1px 5px rgba(180, 120, 0, 0.34);
}
.dashboard-preview-mode .exam-lesson-lock--yellow svg,
.dashboard-preview-mode .preview-lock-badge svg {
  width: 9px;
  height: 9px;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}
.dashboard-preview-mode .dashboard-list-card--tools-record.preview-locked-item--num-slot {
  position: relative;
  overflow: visible;
}
.dashboard-preview-mode .dashboard-list-card-lock-slot .preview-lock-badge,
.dashboard-preview-mode .dashboard-list-card-lock-slot .exam-lesson-lock--yellow {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 16px;
  height: 16px;
}
.dashboard-preview-mode #panelCases .dashboard-list-card-lock-slot .preview-lock-badge,
.dashboard-preview-mode #panelCases .dashboard-list-card-lock-slot .exam-lesson-lock--yellow {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
}
.dashboard-preview-mode .dashboard-list-card-icon .exam-lesson-lock--yellow,
.dashboard-preview-mode .dashboard-list-card-icon .preview-lock-badge {
  top: -.48rem;
  left: 50%;
  transform: translateX(-50%);
}
.dashboard-preview-mode .exam-list-compact .exam-lesson-lock--yellow,
.dashboard-preview-mode .course-material-assessment-column .exam-lesson-lock--yellow {
  top: -.44rem;
  left: 50%;
  transform: translateX(-50%);
}
body[class*="theme-"] .modal-preview-access .login-modal-title {
  font-size: 1.2rem;
}
.preview-readonly-field {
  background: #f4f6f8 !important;
  cursor: not-allowed;
}
.sim-preview-dimmer {
  position: fixed;
  inset: 0;
  z-index: 2650;
  background: rgba(15, 23, 42, 0.5);
  pointer-events: auto;
  cursor: default;
}
body.sim-preview-dimmed .page-view.active,
body.sim-preview-dimmed .modal-overlay.open {
  filter: grayscale(0.35) brightness(0.72);
}
body.sim-preview-dimmed .sim-lab-modal-overlay.open,
body.sim-preview-dimmed .sim-lab-modal-overlay.open * {
  pointer-events: none !important;
}
body.sim-preview-dimmed #previewAccessModal {
  filter: none;
  z-index: 2700;
  pointer-events: auto;
}
body.sim-preview-dimmed #previewAccessModal.open {
  pointer-events: auto;
}
body.sim-preview-dimmed #previewAccessModal .modal,
body.sim-preview-dimmed #previewAccessModal .modal * {
  pointer-events: auto;
}
body.sim-preview-gate-active .dashboard-header,
body.sim-preview-gate-active .page-view.active {
  pointer-events: none;
}

/* Guest join landing */
.join-page-main,
.guest-thanks-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem 2rem;
  min-height: calc(100vh - 72px);
}

.join-card,
.guest-thanks-card {
  width: min(100%, 480px);
  padding: 2rem 1.75rem;
  margin: 0 auto;
}

.join-card-loading {
  text-align: center;
  color: var(--text-muted, #5a6b7d);
}

.join-card-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #2a7ab8);
  margin: 0 0 0.35rem;
}

.join-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.join-card-desc {
  margin: 0 0 1rem;
  color: var(--text-muted, #5a6b7d);
}

.join-card-code {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  margin: 0 0 1rem;
  color: var(--text-muted, #5a6b7d);
}

.join-kind-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(42, 122, 184, 0.12);
  color: var(--accent, #2a7ab8);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.join-field-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.join-role-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.join-name-field {
  margin-bottom: 1rem;
}

.join-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.join-hint {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #5a6b7d);
  text-align: center;
}

.join-card-error {
  text-align: center;
}

.guest-thanks-card {
  text-align: center;
}

.guest-thanks-logo {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.guest-thanks-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.guest-thanks-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted, #5a6b7d);
}

.guest-thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.guest-session #viewDashboard,
body.guest-session #groupCourseMaterial,
body.guest-session #groupEvaluations,
body.guest-session #groupFeedback,
body.guest-session #groupBriefings,
body.guest-session #groupCases,
body.guest-session #groupExam,
body.guest-session #groupInbox,
body.guest-session .dashboard-page-title {
  display: none !important;
}

body.guest-session .dashboard-header-actions,
body.guest-session #dashboardNav,
body.guest-session #navBackdrop {
  display: none !important;
}

.join-page-overlay {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.join-modal {
  width: min(100%, 440px);
  max-width: 440px;
  padding: 1.5rem 1.35rem 1.25rem;
  margin: 0;
  box-shadow: 0 18px 48px rgba(15, 45, 74, .18);
}

.join-modal-header {
  text-align: center;
  margin-bottom: 1rem;
}

.join-modal-logo {
  justify-content: center;
  margin-bottom: .35rem;
}

.join-modal-title {
  margin-bottom: .35rem;
}

.join-profession-badge {
  display: inline-block;
  margin: 0 0 .65rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #2a7ab8) 12%, #fff);
  color: var(--accent-dark, #143d5c);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sensitive-data-notice {
  margin: .45rem 0 0;
  font-size: .76rem;
  line-height: 1.45;
  color: #64748b;
}

.eval-others-rating-stat {
  margin: .15rem 0 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent-dark, #143d5c);
}

.session-rater-status {
  margin: .2rem 0 0;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .35);
}

.session-rater-status--header {
  margin: .2rem 0 0;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .35);
}

.eval-page-shell--rating .session-rater-status,
.case-player-page-header .session-rater-status {
  color: #fff;
  opacity: 1;
}

.eval-page-shell--rating .eval-player-header-titles .session-rater-status {
  pointer-events: auto;
  font-size: .84rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .4);
}

/* Feedback room: status sits on light subheader — keep dark readable text */
.feedback-room-subheader .session-rater-status {
  color: var(--accent-dark, #0f2d4a);
  text-shadow: none;
  font-weight: 700;
}

.session-finish-modal .case-role-modal-lead {
  margin-bottom: 1.15rem;
  font-size: .92rem;
  color: #334155;
  text-align: left;
}

.session-finish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}

.session-finish-actions .btn-outline {
  min-width: 7rem;
}

.join-scan-qr-btn {
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  padding-inline: .85rem;
}

.join-or-divider {
  margin: .85rem 0 .75rem;
}

.join-code-scan-block {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.join-code-scan-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.join-code-scan-row input[type="text"],
.join-code-scan-row .join-scan-qr-btn {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

.join-code-scan-row input[type="text"] {
  text-align: center;
  letter-spacing: .02em;
  font-size: .9rem;
  padding-inline: .55rem;
}

.join-code-scan-row input[type="text"]::placeholder {
  font-style: italic;
  opacity: .72;
  letter-spacing: 0;
  white-space: nowrap;
}

.join-code-scan-block > input[type="text"]::placeholder,
.join-modal input[type="text"][placeholder="Enter session code"]::placeholder {
  font-style: italic;
  opacity: .72;
}

.join-code-scan-divider {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0 .55rem;
  min-width: 1.35rem;
}

.join-code-scan-divider::before,
.join-code-scan-divider::after {
  content: '';
  flex: 1 1 auto;
  width: 1px;
  background: color-mix(in srgb, currentColor 28%, transparent);
}

.join-code-scan-divider > span {
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: lowercase;
  opacity: .62;
  padding: .28rem 0;
}

.form-group .join-scan-qr-btn,
.case-exam-invite-field .join-scan-qr-btn {
  width: auto;
}

.landing-join-code-modal .join-name-field,
.landing-join-code-modal .join-actions {
  width: 100%;
  max-width: none;
}

.landing-join-code-modal .join-name-field input,
.landing-join-code-modal .join-actions .btn {
  width: 100%;
  box-sizing: border-box;
}

.qr-scan-modal {
  width: min(420px, 100%);
}

.qr-scan-reader {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  min-height: 240px;
  position: relative;
}

.qr-scan-video,
.qr-scan-reader video {
  display: block;
  width: 100% !important;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.qr-scan-canvas {
  display: none;
}

.qr-scan-video.hidden {
  display: none !important;
}

.qr-scan-upload {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.qr-scan-upload .join-scan-qr-btn {
  cursor: pointer;
  margin: 0;
}

.case-player-header-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  min-width: 0;
  flex: 1 1 auto;
}
#viewCase .case-player-header-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.eval-waiting-intro {
  margin: 0 0 1rem;
  color: #475569;
}

.eval-waiting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
}

.feedback-debrief-question-text--muted {
  color: #94a3b8;
  font-style: italic;
}

.feedback-debrief-paired-row--session .feedback-debrief-user-cell {
  opacity: .92;
}

/* Subpage hamburger nav (shared across wizard/report headers) */
.dashboard-nav--subpage {
  position: fixed;
  top: calc(4.75rem + var(--impersonation-banner-height, 0px));
  right: max(1rem, calc((100vw - min(100vw - 2rem, 1200px)) / 2 + 1rem));
  z-index: 220;
}
.nav-backdrop--subpage {
  z-index: 215;
}
body.guest-session .hamburger-btn--subpage,
body.guest-session #dashboardNavSubpage,
body.guest-session #navBackdropSubpage {
  display: none !important;
}
.feedback-room-hamburger {
  margin-left: auto;
}

/* Eval summary paginated report — same A4 sheets as case reports */
#evalSummaryReportCapture.eval-results-report-pages {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
}
#evalSummaryReportCapture .eval-results-sheet {
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  overflow: hidden;
}
#evalSummaryReportCapture .eval-results-sheet-body {
  min-height: 0;
  gap: .28rem;
  padding: .4rem .45rem .4rem;
}
#evalSummaryReportCapture .eval-results-themed {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  gap: .22rem;
}
#evalSummaryReportCapture .eval-summary-section--executive {
  margin-bottom: .16rem;
  flex: 0 0 auto;
}
#evalSummaryReportCapture .eval-summary-section--development {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
#evalSummaryReportCapture .eval-summary-section--development .eval-cat-head {
  flex: 0 0 auto;
}
#evalSummaryReportCapture .eval-summary-executive-body {
  padding: .32rem .5rem .35rem;
}
#evalSummaryReportCapture .eval-summary-executive-body p,
#evalSummaryReportCapture .eval-summary-executive-list li {
  font-size: .72rem;
  line-height: 1.26;
}
#evalSummaryReportCapture .eval-summary-executive-list li + li {
  margin-top: .08rem;
}
#evalSummaryReportCapture .eval-results-categories {
  gap: .28rem;
}
#evalSummaryReportCapture .eval-results-categories .eval-cat-head {
  padding: .32rem .45rem;
}
#evalSummaryReportCapture .eval-results-categories .eval-subcat-row {
  padding: .08rem .06rem;
}
#evalSummaryReportCapture .eval-results-report-header h2 {
  padding: 0 7.2rem;
  text-align: center;
  font-size: 1.28rem;
  letter-spacing: .04em;
}
#viewEvalSummary .eval-wizard-title {
  margin-left: .35rem;
}
#viewEvalSummary .eval-wizard-header-end {
  margin-right: 3.4rem;
}
#viewEvalSummary .eval-wizard-header-end .btn {
  background: #fff;
  color: var(--accent-dark);
  border-color: color-mix(in srgb, #fff 55%, var(--accent));
}
#evalSummaryReportCapture .eval-results-themed {
  gap: .42rem;
}
#evalSummaryReportCapture .eval-summary-section {
  margin-bottom: .45rem;
}
#evalSummaryReportCapture .eval-cat-head {
  margin-top: .42rem;
}
#evalSummaryReportCapture .eval-summary-overview--plain .eval-results-facts {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: .08rem;
}
#evalSummaryReportCapture .eval-summary-change-under-charts {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: 0;
}
.eval-summary-change-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  padding: .2rem .08rem .15rem;
}
#evalSummaryReportCapture .eval-summary-change-sources {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.eval-summary-change-source {
  padding: .3rem .35rem .35rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.eval-summary-change-source:nth-child(1) { border-top: 3px solid var(--accent, #2a7ab8); }
.eval-summary-change-source:nth-child(2) { border-top: 3px solid #b91c1c; }
.eval-summary-change-source:nth-child(3) { border-top: 3px solid #15803d; }
.eval-summary-change-source:nth-child(2) .eval-summary-performance-subtitle { color: #991b1b; }
.eval-summary-change-source:nth-child(3) .eval-summary-performance-subtitle { color: #15803d; }
.eval-summary-change-source .eval-summary-performance-subtitle {
  margin-bottom: .3rem;
}
.eval-summary-section--setbacks .eval-summary-best-stat-pct {
  color: #c2410c;
}
#evalSummaryReportCapture .eval-summary-change-stats {
  padding: .25rem .35rem .3rem;
}
#evalSummaryReportCapture .eval-summary-comment-case {
  margin: 0;
}
#evalSummaryReportCapture .eval-comments-summary-grid,
#evalSummaryReportCapture .eval-summary-comment-case .eval-comments-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  padding: 0;
}
#evalSummaryReportCapture .eval-summary-comments-case-list {
  gap: .45rem;
  padding: .3rem .4rem .4rem;
}
#evalSummaryReportCapture .eval-comments-summary-card {
  min-height: 0;
  padding: .28rem .35rem;
}
#evalSummaryReportCapture .eval-summary-change-under-charts .eval-summary-section {
  margin: 0;
}
#evalSummaryReportCapture .eval-summary-change-stats {
  padding: .3rem .45rem .35rem;
}
#evalSummaryReportCapture .eval-summary-charts-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: .28rem;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
}
#evalSummaryReportCapture .eval-summary-charts-meta {
  margin: .02rem .08rem .08rem;
  flex: 0 0 auto;
}
#evalSummaryReportCapture .eval-summary-chart {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: .16rem .28rem .1rem;
}
#evalSummaryReportCapture .eval-summary-chart-title {
  margin-bottom: .08rem;
  text-align: left;
  font-size: .72rem;
  flex: 0 0 auto;
}
#evalSummaryReportCapture .eval-summary-chart-svg {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
}
#evalSummaryReportCapture .eval-summary-section {
  margin-bottom: .4rem;
}
#evalSummaryReportCapture .eval-summary-section--executive {
  margin-bottom: .16rem;
}
#evalSummaryReportCapture .eval-results-themed > .eval-summary-section:last-child {
  margin-bottom: 0;
}
#evalSummaryReportCapture .eval-summary-section--poor {
  margin-top: 0;
  margin-bottom: .22rem;
}
#evalSummaryReportCapture .eval-summary-section--gaps {
  margin-top: 0;
  margin-bottom: 0;
}
#evalSummaryReportCapture .eval-summary-section--gaps .eval-align-panel {
  padding: .28rem .35rem .3rem;
}
#evalSummaryReportCapture .eval-summary-gap-stats .eval-summary-best-stat {
  padding: .16rem 0;
}
#evalSummaryReportCapture .eval-summary-performance-dual {
  gap: .28rem;
  padding: 0;
}
#evalSummaryReportCapture .eval-summary-performance-pair + .eval-summary-performance-pair {
  padding-top: .2rem;
}
#evalSummaryReportCapture .eval-summary-best-stats,
#evalSummaryReportCapture .eval-summary-best-narrative {
  padding: .32rem .4rem;
}
#evalSummaryReportCapture .eval-summary-best-narrative p {
  font-size: .72rem;
  line-height: 1.4;
}
#evalSummaryReportCapture .eval-summary-best-stat {
  padding: .28rem 0;
}
#evalSummaryReportCapture .eval-summary-comments-single {
  height: auto;
}
#evalSummaryReportCapture .eval-summary-comments-case-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .3rem .4rem .4rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
#evalSummaryReportCapture .eval-summary-comment-case-head {
  margin: 0 0 .35rem;
  padding-bottom: .28rem;
}
#evalSummaryReportCapture .eval-summary-comment-case-name {
  font-size: .92rem;
}
#evalSummaryReportCapture .eval-summary-comment-case-date {
  font-size: .78rem;
}
#evalSummaryReportCapture .eval-comments-summary-card-title {
  margin-bottom: .2rem;
  font-size: .62rem;
}
#evalSummaryReportCapture .eval-summary-comment-text {
  font-size: .8rem;
  line-height: 1.45;
}
#evalSummaryReportCapture .eval-summary-comment-text + .eval-summary-comment-text {
  margin-top: .28rem;
}
#evalSummaryReportCapture .eval-results-signatures {
  margin-top: auto;
  padding-top: .35rem;
}
.eval-summary-comment-case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .65rem;
  margin: 0 0 .35rem;
  padding-bottom: .28rem;
  border-bottom: 1px solid #e2e8f0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--accent-dark, #143d5c);
}
.eval-summary-comment-case-name {
  font-size: .92rem;
  font-weight: 700;
}
.eval-summary-comment-case-date {
  font-size: .78rem;
  font-weight: 600;
  font-style: italic;
  color: #475569;
}
.eval-summary-comment-block + .eval-summary-comment-block {
  margin-top: .4rem;
}
.eval-summary-comment-source {
  margin: 0 0 .15rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.eval-summary-comment-text {
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
}
.eval-summary-comment-text + .eval-summary-comment-text {
  margin-top: .28rem;
}
#evalSummaryReportCapture .eval-summary-gap-column {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}
#evalSummaryReportCapture .eval-summary-gap-column .eval-summary-best-stats,
#evalSummaryReportCapture .eval-summary-gap-column .eval-summary-gap-narrative {
  padding: .35rem .4rem;
  box-shadow: none;
}
#evalSummaryReportCapture .eval-comments-summary-box {
  height: auto;
}
#evalSummaryReportCapture .eval-results-signatures {
  margin-top: auto;
}
#evalSummaryReportCapture .eval-results-sheet--measure {
  position: absolute;
  left: -12000px;
  top: 0;
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
#evalSummaryReportCapture .eval-results-sheet--measure .eval-results-themed,
#evalSummaryReportCapture .eval-results-sheet--measure .eval-summary-section--development {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  #viewEvalSummary .eval-results-page--report.eval-page-wrap {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: .55rem .55rem calc(8.9rem + env(safe-area-inset-bottom, 0px));
  }
  #viewEvalSummary .eval-results-back-row {
    left: .5rem;
    right: .5rem;
    bottom: calc(.45rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    transform: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    padding: .5rem;
  }
  #viewEvalSummary .eval-results-back-row .btn {
    min-width: 0;
    width: 100%;
    white-space: normal;
    line-height: 1.2;
    padding: .55rem .4rem;
    font-size: .78rem;
  }
  #viewEvalSummary .eval-results-back-row #evalSummarySaveBtn {
    grid-column: 1 / -1;
  }
  #viewEvalSummary .eval-wizard-title,
  #viewEvalSummary .eval-wizard-header-end {
    display: none;
  }
  #evalSummaryReportCapture .eval-results-report-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .4rem;
    min-height: 0;
    padding: .55rem .5rem .6rem;
  }
  #evalSummaryReportCapture .eval-results-report-brand {
    position: static;
    transform: none;
    align-self: flex-start;
  }
  #evalSummaryReportCapture .eval-results-report-header h2 {
    padding: 0;
    font-size: 1.02rem;
    text-align: center;
  }
  #viewEvalSummary .eval-wizard-title {
    display: none;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-section--development {
    flex: 0 0 auto;
    min-height: 0;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-charts-grid {
    grid-template-rows: none;
    flex: 0 0 auto;
    min-height: 0;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-chart {
    height: auto;
    min-height: 8.6rem;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-chart-svg {
    height: 7.6rem;
    flex: 0 0 auto;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-change-sources,
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-comments-summary-grid,
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-comment-case .eval-comments-summary-grid,
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-results-signatures {
    grid-template-columns: 1fr;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-best-row,
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-align-columns {
    grid-template-columns: 1fr;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-change-source,
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-comments-summary-card,
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-best-stats,
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-best-narrative {
    min-width: 0;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-best-stat {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .4rem;
    align-items: start;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-summary-best-stat-label {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  html:not(.eval-summary-pdf-capturing) #evalSummaryReportCapture .eval-results-sheet:not(.eval-results-sheet--measure) .eval-results-signatures {
    margin-top: 1rem;
    gap: .75rem;
  }
}

html.eval-summary-pdf-capturing #viewEvalSummary .eval-results-page--report.eval-page-wrap {
  width: 210mm;
  max-width: 210mm;
  padding: .7rem 0 1.25rem;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture {
  width: 210mm;
  max-width: 210mm;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-results-sheet {
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  overflow: hidden;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-results-report-header {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 4.15rem;
  padding: 1.15rem .9rem 1.1rem;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-results-report-brand {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  align-self: auto;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-results-report-header h2 {
  padding: 0 7.2rem;
  font-size: 1.28rem;
  text-align: center;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-summary-section--development {
  flex: 1 1 auto;
  min-height: 0;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-summary-charts-grid {
  grid-template-rows: repeat(4, minmax(0, 1fr));
  flex: 1 1 auto;
  min-height: 0;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-summary-chart {
  height: 100%;
  min-height: 0;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-summary-chart-svg {
  height: 100%;
  flex: 1 1 auto;
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-summary-change-sources,
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-comments-summary-grid,
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-summary-comment-case .eval-comments-summary-grid,
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-results-signatures {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-summary-best-row,
html.eval-summary-pdf-capturing #evalSummaryReportCapture .eval-align-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eval-summary-themed--paged {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: .25rem 0 .5rem;
}
.eval-summary-page {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .85rem .9rem .75rem;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 45, 74, .06);
}
.eval-summary-page-head {
  padding-bottom: .55rem;
  border-bottom: 1px solid #e8eef5;
}
.eval-summary-page-kicker {
  margin: 0 0 .2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent, #2a7ab8);
}
.eval-summary-page-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark, #143d5c);
}
.eval-summary-page-body > .eval-summary-section,
.eval-summary-page-body > .eval-results-categories,
.eval-summary-page-body > .eval-results-comments,
.eval-summary-page-body > div {
  margin-bottom: .5rem;
}
.eval-summary-page-body > :last-child {
  margin-bottom: 0;
}
.eval-summary-themed--paged .eval-summary-section--insights,
.eval-summary-themed--paged .eval-summary-section--focus,
.eval-summary-themed--paged .eval-summary-comments-wrap {
  margin-top: 0;
}
.eval-summary-page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .35rem;
  padding-top: .55rem;
  border-top: 1px solid #e8eef5;
  font-size: .72rem;
  color: #64748b;
}
.eval-summary-page-brand {
  font-weight: 700;
  color: var(--accent-dark, #143d5c);
}
.eval-summary-page-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Guest join page — same profession-themed shell as other case-role modals */
.join-modal.modal-case-role {
  position: relative;
  width: min(440px, 94vw);
  max-height: calc(100dvh - 4rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.35rem 1.15rem 1.2rem;
  text-align: center;
  border-top: none;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 8%, #fff) 100%);
}
body[class*="theme-"] .join-modal.modal-case-role {
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--prof-heading, var(--accent-light)) 8%, #fff) 100%);
}
.join-modal .case-role-modal-header {
  margin: 0 0 .85rem;
}
body[class*="theme-"] .join-modal .case-role-modal-header {
  margin: 0 0.25rem 1rem;
  background: var(--theme-header);
  border: 2px solid var(--theme-header-border);
}
.join-modal .case-role-modal-header .join-modal-kind {
  margin: 0 0 .3rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.join-modal .case-role-modal-title {
  margin: 0;
  color: #fff;
}
.join-modal-header-box {
  text-align: center;
  margin-bottom: 1rem;
}
.join-modal-kind {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.join-modal-header-box .join-modal-title,
.join-modal-header-box .login-modal-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: center;
}
.join-modal-footer {
  margin: .85rem 0 0;
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted, #5a6b7d);
}
.join-modal-footer .btn-link {
  font-size: inherit;
  font-weight: 600;
  padding: 0;
  vertical-align: baseline;
}
.join-actions {
  margin-top: .35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.join-modal .join-actions .case-create-game-btn,
.join-actions .login-modal-submit {
  width: 100%;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
}
.landing-join-code-modal .join-actions {
  align-items: center;
  text-align: center;
}
.landing-join-code-modal .join-actions .login-modal-submit,
.landing-join-code-modal #landingJoinGuestBtn {
  display: block;
  width: min(100%, 16rem);
  margin-left: auto;
  margin-right: auto;
}
.join-modal .case-exam-invite-actions {
  margin-top: .85rem;
  justify-content: center;
}
.join-field-label {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
}
.join-modal .join-role-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .35rem;
}
.join-modal .join-role-btns .case-role-card {
  width: 100%;
  min-height: 4.5rem;
  justify-content: center;
}
.join-name-field {
  margin-bottom: .75rem;
}
.join-page-view.active {
  display: block;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
}
body[class*="theme-"] .join-page-view.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--prof-heading, var(--accent-light)) 10%, #fff) 0%, #f8fafc 100%);
}
.session-join-modal {
  margin: 0 auto;
}
.join-page-view .join-page-main {
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.case-participant-intro {
  margin-bottom: 1rem;
}
.case-participant-panel .panel-body:has(.case-complete-wrap) {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 1.75rem;
  min-width: 0;
  overflow-x: hidden;
}
.case-player-step-body:has(.case-complete-wrap) {
  min-width: 0;
  overflow-x: hidden;
}
.guest-thanks-main .case-complete-wrap {
  width: 100%;
}
.case-participant-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
body[class*="theme-"] .case-participant-intro .case-participant-step-title,
body[class*="theme-"] .case-participant-intro .login-modal-title {
  color: #fff;
}
.case-participant-step-lead {
  margin: .35rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .88);
  text-align: center;
}
.case-participant-input-wrap {
  margin-bottom: .85rem;
}
.case-participant-input-wrap textarea {
  width: 100%;
}
#caseParticipantSubmitBtn {
  display: block;
  margin: 0 auto;
  min-width: 10rem;
}
.case-participant-ack {
  margin: .85rem 0 0;
  text-align: center;
  font-weight: 600;
  color: var(--accent-dark, #143d5c);
}

/* Eval results — comments box under Progress */
.eval-comments-summary-box {
  margin-top: 0;
}
.eval-comments-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  padding: .2rem 0 .2rem;
}
.eval-comments-summary-card {
  padding: .35rem .45rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  min-height: 0;
}
.eval-comments-summary-card--self {
  border-top: 3px solid var(--accent, #2a7ab8);
}
.eval-comments-summary-card--supervisor {
  border-top: 3px solid #b91c1c;
}
.eval-comments-summary-card--others {
  border-top: 3px solid #16a34a;
}
.eval-comments-summary-card-title {
  margin: 0 0 .2rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
}
.eval-comments-summary-card-body {
  font-size: .78rem;
  line-height: 1.35;
  color: #334155;
}
.eval-comments-summary-card-body p {
  margin: 0 0 .2rem;
}
.eval-comments-summary-card-body p:last-child {
  margin-bottom: 0;
}

/* Decision game — team comments in important points */
.case-ip-focus-section--comments {
  margin-top: .55rem;
  padding: .65rem .7rem;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #2a7ab8) 4%, #fff);
}
.case-ip-section-heading--comments {
  color: var(--accent-dark, #143d5c);
  margin-bottom: .45rem;
}
.case-ip-comments-box {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.case-ip-comment-item {
  padding: .5rem .55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.case-ip-comment-author {
  display: block;
  margin-bottom: .2rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark, #143d5c);
}
.case-ip-comment-text {
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
  color: #334155;
}
.case-ip-comments-empty {
  margin: 0;
  font-size: .84rem;
  line-height: 1.45;
  color: #64748b;
  font-style: italic;
}

@media (max-width: 900px) {
  .eval-comments-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .join-page-main {
    padding: 1rem .75rem 1.5rem;
  }
  .join-modal.modal-case-role {
    width: min(100%, 94vw);
    padding: 1.15rem .9rem 1rem;
  }
  .join-modal .join-role-btns {
    gap: .55rem;
  }
  .dashboard-nav--subpage {
    right: 1rem;
    left: 1rem;
    min-width: 0;
  }
}

/* Sim display — show on other device */
.sim-display-invite-modal {
  max-width: 28rem;
}
.sim-display-invite-lead {
  margin: 0 0 1rem;
  font-size: .9rem;
  line-height: 1.45;
  color: #475569;
}
.sim-display-invite-modal label {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
}
.sim-display-invite-modal input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: .75rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  border: 1px solid #d4dde8;
  font: inherit;
}
.sim-display-invite-status {
  min-height: 1.2rem;
  margin: .35rem 0 .75rem;
  font-size: .82rem;
  color: #64748b;
}
.sim-display-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.sim-display-session-bar {
  position: fixed;
  z-index: 12000;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem .85rem .55rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #cbd5e1);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
  backdrop-filter: blur(8px);
}
.sim-display-session-bar.hidden {
  display: none !important;
}
.sim-display-session-bar-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 10rem;
}
.sim-display-session-bar-text strong {
  font-size: .78rem;
  color: #0f172a;
}
.sim-display-session-bar-text span {
  font-size: .72rem;
  color: #64748b;
}
.sim-display-session-bar-text span.is-live {
  color: #15803d;
  font-weight: 600;
}
.sim-display-link-btn.is-linked {
  color: var(--accent-dark, var(--accent));
  font-weight: 700;
}
.inbox-body-link--action {
  display: inline-flex;
  margin: .35rem 0;
  padding: .45rem .85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, #cbd5e1);
  color: color-mix(in srgb, var(--accent-dark, var(--accent)) 75%, #0f172a);
  font-weight: 700;
  text-decoration: none;
}
.inbox-body-link--action:hover {
  background: color-mix(in srgb, var(--accent) 24%, #fff);
}
body.sim-display-viewer .icu-controls,
body.sim-display-viewer .ch-sim-controls,
body.sim-display-viewer .px-controls,
body.sim-display-viewer .lab-controls,
body.sim-display-viewer .sim-track-controls,
body.sim-display-viewer .sim-dock-panel,
body.sim-display-viewer .sim-slider-drawer,
body.sim-display-viewer .icu-rhythm-grid,
body.sim-display-viewer .lab-gas-meta-input,
body.sim-display-viewer .sim-remote-link-btn,
body.sim-display-viewer .sim-display-link-btn,
body.sim-display-viewer .sim-dock-apply,
body.sim-display-viewer .sim-session-dock-panel-btn {
  pointer-events: none !important;
  opacity: .45;
}
body.sim-display-viewer .icu-back-btn,
body.sim-display-viewer .ch-back-btn,
body.sim-display-viewer .px-back-btn,
body.sim-display-viewer .lab-toolbar > .btn:first-child {
  display: none !important;
}
body.sim-display-viewer #viewDashboard,
body.sim-display-viewer .dashboard-nav {
  /* keep available but viewer lands on sim view */
}
body.sim-display-viewer .lab-toolbar-right .btn:not(.sim-display-link-btn) {
  display: none;
}

/* In-app PDF preview (mobile) */
.pdf-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  background: #525659;
}
.pdf-preview-overlay.hidden {
  display: none !important;
}
body.pdf-preview-open {
  overflow: hidden;
}
.pdf-preview-bar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .7rem .75rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--theme-header, linear-gradient(135deg, #0f2d4a, #1e5a8a));
  border-bottom: 2px solid var(--theme-header-border, #0a2540);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .28);
}
.pdf-preview-title {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.pdf-preview-actions .btn {
  width: 100%;
  min-height: 2.75rem;
  font-weight: 700;
  justify-content: center;
}
.pdf-preview-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  background: transparent;
}
.pdf-preview-actions .btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.pdf-preview-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #525659;
}
.pdf-preview-fallback {
  flex: 0 0 auto;
  margin: 0;
  padding: .55rem .75rem calc(.65rem + env(safe-area-inset-bottom, 0px));
  font-size: .78rem;
  line-height: 1.35;
  color: #e2e8f0;
  background: #3f4448;
  text-align: center;
}

/* Dashboard primary and secondary actions */
#viewDashboard .user-main .sub-panel.is-current > .panel-header:has(.user-panel-actions) {
  display: flex;
  justify-content: flex-start;
  padding: .85rem 1.15rem 0;
  background: #eef2f6;
}

#viewDashboard .user-main .sub-panel.is-current > .panel-header .user-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .5rem;
  width: auto;
  margin: 0;
  padding: 0;
}

#viewDashboard .user-main .user-panel-actions .case-create-game-btn {
  width: auto;
  min-height: 2.35rem;
  margin: 0;
  padding: .45rem .9rem .45rem .5rem;
  gap: .45rem;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  transform: none;
}

#viewDashboard .user-main .user-panel-actions .user-cta-primary,
#viewDashboard .user-main #panelMessages .inbox-folder-compose {
  border-color: #216f50;
  background: linear-gradient(180deg, #2f966b 0%, #27875f 100%);
  color: #fff;
  box-shadow: 0 3px 9px rgba(27, 109, 76, .22);
}

#viewDashboard .user-main .user-panel-actions .user-cta-primary:hover,
#viewDashboard .user-main #panelMessages .inbox-folder-compose:hover {
  border-color: #195d41;
  background: linear-gradient(180deg, #27875f 0%, #1f704e 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 109, 76, .28);
  filter: none;
  transform: translateY(-1px);
}

#viewDashboard .user-main .user-panel-actions .user-cta-secondary {
  border-color: #5a9e7f;
  background: #fff;
  color: #216f50;
  box-shadow: none;
}

#viewDashboard .user-main .user-panel-actions .user-cta-secondary:hover {
  border-color: #27875f;
  background: #edf8f2;
  color: #195d41;
  box-shadow: 0 2px 7px rgba(27, 109, 76, .12);
  filter: none;
  transform: none;
}

#viewDashboard .user-main .user-panel-actions .case-create-game-icon {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .14);
  color: currentColor;
  box-shadow: none;
}

#viewDashboard .user-main .user-panel-actions .user-cta-secondary .case-create-game-icon {
  border-color: #9dcbb5;
  background: #edf8f2;
}

@media (max-width: 520px) {
  #viewDashboard .user-main .sub-panel.is-current > .panel-header .user-panel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #viewDashboard .user-main .user-panel-actions .case-create-game-btn {
    width: 100%;
  }

  #viewDashboard .user-main .user-panel-actions .case-create-game-btn:only-child {
    grid-column: 1 / -1;
  }
}
