/* ============= GLOBAL ============= */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* ===== MOBILE NAV (STUDENT) ===== */
.mobile-nav,
.mobile-more-panel {
  display: none;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(94%, 420px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 0.35rem 0.5rem;
  justify-content: space-between;
  gap: 0.2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  z-index: 50;
}

.is-capacitor .mobile-nav {
  padding-bottom: calc(0.35rem + var(--safe-bottom));
  min-height: calc(var(--bottom-nav-h) + var(--safe-bottom));
}

.mobile-nav-item {
  flex: 1;
  border: none;
  background: transparent;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.3rem;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-item.is-active {
  background: #eef2ff;
  color: #2563eb;
}

.mobile-nav-label {
  line-height: 1;
}

.mobile-more-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  justify-content: center;
  align-items: flex-end;
  padding: 1rem 1rem 1.5rem;
}

.mobile-more-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-more-sheet {
  width: min(100%, 480px);
  background: #f8fafc;
  border-radius: 24px;
  padding: 1.2rem 1rem 1.1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  max-height: 85vh;
  overflow: auto;
}

.mobile-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-more-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-more-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}

.mobile-more-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-more-name {
  font-weight: 600;
  color: #0f172a;
}

.mobile-more-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.mobile-more-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-more-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.mobile-more-item.is-active {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.25);
  color: #1d4ed8;
}

.mobile-more-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  background: #eef2ff;
  flex-shrink: 0;
}

.mobile-more-icon svg {
  width: 18px;
  height: 18px;
}

.mobile-more-badge {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.mobile-more-badge.is-hidden {
  display: none;
}

.mobile-message-item {
  display: none;
}

.mobile-message-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #64748b;
  padding: 0;
  flex-shrink: 0;
}

.mobile-message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mobile-message-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.mobile-message-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.mobile-message-badge.is-hidden {
  display: none;
}

/* ===== CAPACITOR MOBILE PAGE SMOOTHING ===== */
@media (max-width: 820px) {
  /* NOTE: no will-change on .app-shell — it creates a containing block that
     breaks position:fixed for everything inside it (detail bottom sheets,
     overlays). The legacy enter/leave fade animates fine without the hint. */
  .is-capacitor body.app-dashboard .mobile-more-panel,
  .is-capacitor body.clinician-shell .mobile-more-panel {
    will-change: opacity, transform;
  }

  /* JS fallback transition (engines without cross-doc View Transitions): a
     horizontal push — new page enters from the right, old page exits left — to
     match the directional VT slide. Only runs on forward navigations (the enter
     state is armed by ppNativeNavigate). */
  .is-capacitor body.app-dashboard.native-page-enter .app-shell,
  .is-capacitor body.clinician-shell.native-page-enter .app-shell {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }

  .is-capacitor body.app-dashboard.native-page-enter-active .app-shell,
  .is-capacitor body.clinician-shell.native-page-enter-active .app-shell {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 220ms cubic-bezier(0.32, 0.72, 0, 1),
      transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .is-capacitor body.app-dashboard.native-page-leave .app-shell,
  .is-capacitor body.clinician-shell.native-page-leave .app-shell {
    opacity: 0.82;
    transform: translate3d(-18px, 0, 0);
    transition:
      opacity 140ms ease,
      transform 140ms ease;
    pointer-events: none;
  }

  .is-capacitor body.app-dashboard .navbar,
  .is-capacitor body.clinician-shell .navbar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  /* Keep the mobile nav fixed and centered during page changes.
     It already relies on translateX(-50%) for positioning. */
  .is-capacitor body.app-dashboard .mobile-nav,
  .is-capacitor body.clinician-shell .mobile-nav {
    transition: none;
  }
}

@media (max-width: 768px) {
  body.app-dashboard .app-sidebar {
    display: none;
  }

  body.app-dashboard .app-content {
    margin-left: 0;
    width: 100%;
    padding: 1.25rem 1.1rem 6.5rem;
  }

  body.app-dashboard .nav-search {
    display: flex;
  }

  body.app-dashboard .nav-links {
    margin-left: auto;
    gap: 0.6rem;
  }

  body.app-dashboard .mobile-nav,
  body.app-dashboard .mobile-more-panel {
    display: flex;
  }

  body.app-dashboard .mobile-message-item,
  body.clinician-shell .mobile-message-item {
    display: inline-flex;
    align-items: center;
  }

  body.app-dashboard.has-mobile-message .dm-trigger,
  body.clinician-shell.has-mobile-message .dm-trigger {
    display: none;
  }
}

:root {
  --primary: #2563eb;
  --primary-soft: #e0edff;



  /* new background tokens */
  --bg: #eef2ff;
  --bg-gradient: radial-gradient(
    circle at top left,
    #e2f2ff 0,
    #eaf0ff 35%,
    #f7f8ff 80%
  );

  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;

  /* slightly larger radius + stronger shadow */
  --radius-lg: 1.1rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 8px 22px rgba(15, 23, 42, 0.06);

  /* optional accent colours to use later if needed */
  --accent-purple-soft: #f4ecff;
  --accent-purple: #7c3aed;
  --accent-peach-soft: #fff3e8;
  --accent-peach: #f97316;

   --navbar-height: 66px; /* used by navbar + sidebar */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-h: 72px;
}

body {
  margin: 0;
  font-family: var(--font-application-ui);
  background: var(--bg-gradient);
  color: var(--text-main);
}

/* Leaflet is loaded lazily after this sheet. Keep its authored zoom glyphs
   monospace, while application-facing map copy follows the shared UI face. */
body .leaflet-container,
body .leaflet-container .leaflet-popup-content,
body .leaflet-container a.leaflet-popup-close-button {
  font-family: var(--font-application-ui);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============= NAVBAR ============= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
  height: var(--navbar-height);      /* NEW */
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;                /* FULL WIDTH */
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left / links right */
}

.is-capacitor .navbar {
  padding-top: var(--safe-top);
  height: calc(var(--navbar-height) + var(--safe-top));
}

.nav-logo {
  margin-left: 0.5rem;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #075ff0, #0454d8);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(7, 95, 240, 0.28);
}

.nav-logo-mark::before,
.nav-logo-mark::after {
  content: none !important;
}



.nav-links {
  margin-right: 0.5rem;
}

/* ===== APP NAVBAR LAYOUT (so it lines up with the sidebar) ===== */

.navbar-app .nav-container {
  max-width: none;          /* no centering */
  margin: 0;                /* span full width */
  padding-left: 1.5rem;     /* nice breathing room */
  padding-right: 1.75rem;
}

.navbar-app .nav-logo {
  font-weight: 600;
  font-size: 1.15rem;
}

/* push links to the right + add a subtle divider */
.navbar-app .nav-links {
  margin-left: auto;
  gap: 1.25rem;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  padding-left: 1.5rem;
}

/* Links (desktop) */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-size: 0.95rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.nav-links li a:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}

.nav-profile {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-profile-trigger {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.nav-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #64748b;
  border: 1px solid #dbe3ff;
  overflow: hidden;
}

.nav-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}

.nav-profile:hover .nav-profile-dropdown,
.nav-profile:focus-within .nav-profile-dropdown,
.nav-profile.is-open .nav-profile-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-profile-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.3rem 0.3rem 0.4rem;
}

.nav-profile-name {
  font-weight: 500;
  color: #0f172a;
}

.nav-profile-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}

.nav-profile-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.3rem 0;
}

.nav-profile-dropdown a {
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}

.nav-profile-dropdown a:hover {
  background: #eef2ff;
  color: #1d4ed8;
  transform: none;
}

.nav-button {
  background: var(--primary);
  color: white !important;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: #eef2ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============= HERO (landing page) ============= */
/* ============= HERO (landing page) ============= */
.hero {
  position: relative;
  padding: 4rem 1.25rem 4.5rem;
  min-height: calc(100vh - 64px); /* fill most of the screen under navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      circle at top left,
      #e2f2ff 0,
      #eaf0ff 35%,
      #f7f8ff 80%
    );
  overflow: hidden;
}

/* soft glow behind the right card */
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 40%;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.18),
    transparent 70%
  );
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1; /* above glow */
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

/* tighten hero text */
.hero-text h1 {
  font-size: clamp(2.4rem, 4.2vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero-text p {
  margin-bottom: 1.35rem;
}

/* give the hero card a slightly glassy feel */
.hero-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 1.6rem 1.4rem;
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.2vw, 2.9rem);
  margin-bottom: 0.4rem;
}

.hero-text p {
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 5rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Hero stats chips */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stat {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Buttons */
.btn,
button.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s;
}

.btn,
button.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background 0.15s,
    color 0.15s;
}

/* Primary CTA */
.btn.primary,
button.nav-button.nav-button-primary,
.nav-button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

/* Secondary / outline */
.btn.secondary {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #d0ddff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.btn:hover,
button.nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(52, 57, 67, 0.18);
}

/* Hero right card */
.hero-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 2rem 1.75rem; /* larger */
  border-radius: 1.2rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  max-width: 420px; /* wider card */
  line-height: 1.5;
}

/* Increase spacing between bullet points */
.hero-card ul li {
  margin-bottom: 0.65rem; /* more generous */
}

.hero-card h2 {
  margin-bottom: 1rem;
}

/* Make the small text nicer */
.hero-card-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 1.5rem;
}


/* ============= SECTIONS (landing & app) ============= */
.section {
  padding: 4rem 1.25rem;
}

.section.full-height {
  min-height: 100vh;
  display: flex;
  align-items: center;
}


.section.alt {
  background: #ffffff;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.section-lead {
  margin-top: 0;
  margin-bottom: 1.75rem;
  max-width: 40rem;
  color: var(--text-muted);
}

/* Feature cards */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Desktop: four bigger feature cards in a row */
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .feature-card {
    min-height: 210px;       /* makes them feel more substantial */
    padding: 1.6rem 1.4rem;  /* slightly larger */
  }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-card);
}

.feature-card {
  position: relative;
  padding-top: 1.6rem;
}

.feature-icon {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-size: 1.4rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.step-number {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Auth page (login) */
.auth-body {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #e5efff 0, #f3f6ff 55%, #f9fafb 100%);
  overflow-x: hidden;
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%271200%27%20height%3D%27800%27%20viewBox%3D%270%200%201200%20800%27%3E%0A%20%20%3Cg%20fill%3D%27none%27%20stroke%3D%27%2390b4ff%27%20stroke-width%3D%273%27%20opacity%3D%270.35%27%3E%0A%20%20%20%20%3Cpath%20d%3D%27M120%20420h140l30-60%2040%20120%2040-80%2030%2020h160%27/%3E%0A%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%3Cpath%20d%3D%27M880%20520h120l20-40%2030%2080%2020-50%2030%2020h120%27/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");
  background-size: cover;
  background-position: center right;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.auth-body .navbar {
  position: relative;
  z-index: 30;
}

.auth-body .auth-page {
  position: relative;
  z-index: 1;
}

.auth-body .nav-logo {
  font-weight: 600;
  font-size: 1.05rem;
}

.auth-top-link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.auth-top-link:hover {
  background: #ffffff;
}

/* Container */
.auth-page {
  min-height: calc(100vh - var(--navbar-height, 64px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 1.5rem 3.5rem;
}

.auth-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: center;
}

/* Left intro */
.auth-intro {
  position: relative;
  padding: 1.5rem 1rem 1.5rem 0;
}

.auth-illustration {
  position: absolute;
  inset: -10% -20% -10% -10%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.auth-intro-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.auth-intro h1 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  color: #0f172a;
}

.auth-lead {
  font-size: 1.05rem;
  max-width: 34rem;
  color: #475569;
  margin-bottom: 1.8rem;
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  font-size: 1rem;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1f2937;
}

.auth-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #22c55e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.3);
}

.auth-check svg {
  width: 14px;
  height: 14px;
}

.auth-social-proof {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
  color: #475569;
  font-size: 0.95rem;
}

.auth-avatar-stack {
  display: flex;
  align-items: center;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #f8fafc;
  margin-left: -10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.auth-avatar:first-child {
  margin-left: 0;
}

.auth-avatar--one {
  background: linear-gradient(135deg, #c7d2fe, #60a5fa);
}

.auth-avatar--two {
  background: linear-gradient(135deg, #fcd34d, #f97316);
}

.auth-avatar--three {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.auth-avatar--four {
  background: linear-gradient(135deg, #f9a8d4, #fb7185);
}

.auth-avatar--five {
  background: linear-gradient(135deg, #93c5fd, #818cf8);
}

/* Right card */
.auth-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 243, 255, 0.98) 100%);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8ff;
  padding: 2rem 1.8rem 1.6rem;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.2);
}

.auth-card-header {
  margin-bottom: 1.2rem;
}

.auth-heading {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

.auth-institutional-btn {
  width: 100%;
  margin: 0 0 0.85rem;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #c9d7ff;
  background: #f8fbff;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.08);
}

.auth-institutional-btn:hover {
  background: #f1f6ff;
  border-color: #b9cbff;
}

.auth-divider {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: 0.84rem;
  color: #64748b;
}

.auth-tab-shell {
  position: relative;
}

.auth-tab-shell input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #e2e8ff;
  margin-bottom: 1.25rem;
}

.auth-tab {
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#auth-tab-login:checked ~ .auth-tabs label[for="auth-tab-login"],
#auth-tab-signup:checked ~ .auth-tabs label[for="auth-tab-signup"] {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.auth-panels {
  display: grid;
  gap: 1rem;
}

.auth-panel {
  display: grid;
  gap: 0.9rem;
}

.auth-panel-signup {
  display: none;
}

#auth-tab-signup:checked ~ .auth-panels .auth-panel-login {
  display: none;
}

#auth-tab-signup:checked ~ .auth-panels .auth-panel-signup {
  display: grid;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}

.input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.input-group label {
  color: #334155;
  font-weight: 500;
}

.auth-link {
  font-size: 0.85rem;
  color: #3b82f6;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input input {
  width: 100%;
  padding: 0.7rem 2.6rem 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #dbe3ff;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.auth-input-icon {
  position: absolute;
  right: 0.85rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
}

.auth-input-icon svg {
  width: 18px;
  height: 18px;
}

.auth-submit {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25);
}

.auth-switch {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-tab-link {
  color: #1d4ed8;
  font-weight: 500;
  cursor: pointer;
}

.auth-tab-link:hover {
  text-decoration: underline;
}

.auth-disclaimer {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

#auth-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.native-auth-header {
  display: contents;
}

.auth-native-help,
.native-auth-scene,
.native-auth-bg {
  display: none;
}

@media (max-width: 960px) {
  .auth-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .auth-intro {
    padding-right: 0;
  }

  .auth-card {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .auth-page {
    padding: 2.25rem 1.25rem 3rem;
  }

  .auth-intro h1 {
    font-size: clamp(2.1rem, 7vw, 2.6rem);
  }

  .auth-avatar {
    width: 32px;
    height: 32px;
  }

  .auth-card {
    padding: 1.7rem 1.4rem 1.4rem;
  }
}

@media (max-width: 720px) {
  body.auth-body,
  body.auth-body .auth-page,
  body.auth-body .auth-inner,
  body.auth-body .auth-intro,
  body.auth-body .auth-card {
    max-width: 100%;
    min-width: 0;
  }

  body.auth-body .auth-page {
    overflow-x: hidden;
    padding-inline: 1rem;
  }

  body.auth-body .auth-inner {
    width: 100%;
    gap: 1.35rem;
  }

  body.auth-body .auth-intro {
    padding-inline: 0;
  }

  body.auth-body .auth-illustration {
    inset: -8% 0 -8% 0;
    max-width: 100%;
    overflow: hidden;
  }

  body.auth-body .auth-intro-content,
  body.auth-body .auth-lead,
  body.auth-body .auth-card {
    width: 100%;
    max-width: 100%;
  }

  body.auth-body .auth-intro h1,
  body.auth-body .auth-lead,
  body.auth-body .auth-points li {
    overflow-wrap: anywhere;
  }
}

body.is-native.auth-body {
  --native-auth-safe-top: env(safe-area-inset-top, 0px);
  --native-auth-safe-bottom: env(safe-area-inset-bottom, 0px);
  --native-auth-safe-top-fallback: max(var(--native-auth-safe-top), 28px);
  --native-auth-header-height: calc(var(--native-auth-safe-top-fallback) + 64px);
  --native-auth-illustration-height: min(19vh, 140px);
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(136, 164, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(116, 128, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #f3f5ff 0%, #eef2ff 42%, #e8edff 100%);
}

body.is-native.auth-body::before {
  background: none;
}

body.is-native.auth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 28%, rgba(92, 113, 255, 0.26), transparent 20%),
    radial-gradient(circle at 18% 82%, rgba(99, 102, 241, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  filter: blur(8px);
}

body.is-native.auth-body .navbar {
  position: relative;
  top: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  z-index: 3;
}

body.is-native.auth-body .nav-container {
  display: block;
  padding: 0;
}

body.is-native.auth-body .native-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--native-auth-header-height);
  padding: calc(var(--native-auth-safe-top-fallback) + 12px) 16px 8px;
}

body.is-native.auth-body .nav-logo {
  margin-left: 0;
  gap: 0.85rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #26314f;
}

body.is-native.auth-body .nav-logo-mark {
  width: 48px;
  height: 48px;
  box-shadow: 0 16px 32px rgba(76, 111, 255, 0.28);
}



body.is-native.auth-body .nav-links,
body.is-native.auth-body .marketing-nav-toggle,
body.is-native.auth-body .nav-mobile {
  display: none !important;
}

body.is-native.auth-body .auth-native-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98a2c0;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem;
  flex-shrink: 0;
}

body.is-native.auth-body .auth-page.native-auth-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: calc(100dvh - var(--native-auth-header-height));
  height: calc(100dvh - var(--native-auth-header-height));
  padding: 6px 16px calc(var(--native-auth-safe-bottom) + 16px);
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

body.is-native.auth-body .native-auth-bg {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--native-auth-safe-bottom) + 2px);
  height: var(--native-auth-illustration-height);
  background-image: url("images/native-auth-illustration.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(94%, 420px) auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.98;
}

body.is-native.auth-body .auth-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 calc(var(--native-auth-illustration-height) - 10px);
}

body.is-native.auth-body .auth-intro {
  display: none;
}

body.is-native.auth-body .auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.2rem 1.05rem 0.85rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 243, 255, 0.98) 100%);
  border: 1px solid rgba(226, 232, 255, 0.98);
  box-shadow:
    0 22px 60px rgba(80, 100, 192, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  max-height: none;
  overflow: hidden;
  touch-action: manipulation;
}

body.is-native.auth-body .auth-card:hover {
  transform: none;
  box-shadow:
    0 22px 60px rgba(80, 100, 192, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.is-native.auth-body .auth-card-header {
  margin-bottom: 0.7rem;
  text-align: center;
}

body.is-native.auth-body .auth-heading {
  margin-bottom: 0.15rem;
  font-size: clamp(1.58rem, 6.2vw, 2rem);
  line-height: 1.05;
  color: #2a3556;
}

body.is-native.auth-body .auth-subtitle {
  max-width: 16rem;
  margin: 0 auto;
  color: #8a95b2;
  font-size: 0.86rem;
  line-height: 1.45;
}

body.is-native.auth-body .auth-institutional-btn {
  min-height: 46px;
  margin-bottom: 0.58rem;
  border-radius: 15px;
  border: 1px solid rgba(181, 199, 255, 0.95);
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.96) 0%, rgba(237, 243, 255, 0.97) 100%);
  color: #3d5ed2;
  box-shadow: 0 10px 22px rgba(85, 108, 210, 0.14);
  font-size: 0.9rem;
}

body.is-native.auth-body .auth-divider {
  margin: 0 0 0.68rem;
  font-size: 0.79rem;
  color: #8d97b2;
}

body.is-native.auth-body .auth-tabs {
  gap: 0.15rem;
  padding: 0.24rem;
  margin-bottom: 0.8rem;
  background: rgba(235, 240, 255, 0.94);
  border-color: rgba(219, 227, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.is-native.auth-body .auth-tab {
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #8b95b0;
}

body.is-native.auth-body #auth-tab-login:checked ~ .auth-tabs label[for="auth-tab-login"],
body.is-native.auth-body #auth-tab-signup:checked ~ .auth-tabs label[for="auth-tab-signup"] {
  color: #4e74eb;
  box-shadow: 0 10px 22px rgba(111, 135, 233, 0.18);
}

body.is-native.auth-body .auth-panels {
  gap: 0.65rem;
}

body.is-native.auth-body .auth-panel {
  gap: 0.7rem;
}

body.is-native.auth-body .input-group {
  gap: 0.28rem;
  margin-bottom: 0;
  font-size: 0.86rem;
}

body.is-native.auth-body .input-group label {
  color: #34415f;
  font-size: 0.82rem;
  font-weight: 500;
}

body.is-native.auth-body .auth-link {
  color: #8ca0e5;
  font-size: 0.8rem;
}

body.is-native.auth-body .auth-input input {
  min-height: 48px;
  padding: 0.72rem 2.8rem 0.72rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(218, 225, 248, 0.98);
  background: rgba(255, 255, 255, 0.94);
  color: #26314f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.is-native.auth-body .auth-input input::placeholder {
  color: #a3abc2;
}

body.is-native.auth-body .auth-input-icon {
  right: 1rem;
  color: #7f8aa8;
}

body.is-native.auth-body .auth-input-icon svg {
  width: 22px;
  height: 22px;
}

body.is-native.auth-body .auth-submit {
  min-height: 50px;
  margin-top: 0.25rem;
  font-size: 0.96rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7ba1ff, #3e61ff);
  border: none;
  box-shadow: 0 18px 32px rgba(61, 99, 255, 0.3);
}

body.is-native.auth-body .auth-switch {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: #7e87a2;
}

body.is-native.auth-body .auth-tab-link {
  color: #4e74eb;
}

body.is-native.auth-body .auth-disclaimer {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #95a0bc;
}

body.is-native.auth-body #auth-message {
  min-height: 0;
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.76rem;
}

body.is-native.auth-body .bug-report-fab {
  display: none !important;
}

@media (max-height: 780px) {
  body.is-native.auth-body {
    --native-auth-illustration-height: min(15vh, 104px);
  }

  body.is-native.auth-body .native-auth-header {
    padding-top: calc(max(var(--native-auth-safe-top), 24px) + 10px);
    min-height: calc(max(var(--native-auth-safe-top), 24px) + 58px);
  }

  body.is-native.auth-body .nav-logo-mark {
    width: 44px;
    height: 44px;
  }

  body.is-native.auth-body .auth-page.native-auth-shell {
    padding-top: 4px;
    padding-bottom: calc(var(--native-auth-safe-bottom) + 10px);
  }

  body.is-native.auth-body .auth-card {
    padding: 1rem 0.95rem 0.72rem;
  }

  body.is-native.auth-body .auth-heading {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
}

/* ===== DASHBOARD CARD ===== */

.card-dashboard {
  margin-bottom: 1.5rem;
  padding: 1.4rem 1.6rem 1.5rem;
}

/* top row: title + date chip */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}

.dashboard-date-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e293b;
}

.dashboard-date-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 0.7rem;
  color: #64748b;
}

/* main layout: big left, stacked right */
.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

body.app-dashboard .dashboard-placement-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.4rem 0 1.6rem;
}

body.app-dashboard .dashboard-placement-card.placement-dates {
  margin-top: 0;
}

body.app-dashboard .dashboard-placement-card .placement-dates {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .dashboard-date-chip {
    align-items: flex-start;
  }
}

/* left: progress block */
.dashboard-progress-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.dashboard-progress-main {
  font-weight: 600;
  margin: 0.05rem 0;
}

.dashboard-progress-sub {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* mini progress bar that mirrors the conditions one */
.dashboard-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.dashboard-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.25s ease-out;
}

.dashboard-progress-fill.is-forms {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.dashboard-forms-progress {
  margin-top: 0.6rem;
}

.dashboard-forms-progress .dashboard-progress-sub {
  margin: 0 0 0.35rem;
}

/* right: small stacked cards */
.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-side-card {
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(249, 250, 251, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-side-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 0.15rem;
}

.dashboard-side-card p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
}

.dashboard-notice-title {
  font-weight: 600;
}

.dashboard-notice-body {
  font-size: 0.85rem;
  color: #6b7280;
}

/* SIDEBAR DOT COLOURS */
.app-sidebar-dot {
  width: 6px;
  height: 6px;
  background: #2563eb; /* default blue */
  border-radius: 999px;
  margin-right: 0.5rem;
  display: inline-block;
}

/* when active, turn dot green */
.app-sidebar-link--active .app-sidebar-dot {
  background: #22c55e; /* green */
}



/* ============= APP PAGE: placements & logbook ============= */

.section-inner > h1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

#welcome-text {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

/* Placement selector card */
.card {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 255, 0.8);
}

/* Placement selector card */
.card-placements {
  margin-bottom: 1.5rem;
  border: 1px solid #dbe3ff;
  background: radial-gradient(circle at top left, #f4f6ff 0, #f9fbff 60%);
}


.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Row of selectors */
.selectors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.selector {
  min-width: 180px;
}

.selector label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: #374151;
}

.selector select {
  width: 100%;
  /* extra right padding so text never hits the arrows */
  padding: 0.45rem 2.2rem 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 0.9rem;

  appearance: none;

  /* two triangles = chevron */
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  /* keep them vertically centred and a touch in from the right */
  background-position:
    right 0.9rem center,
    right 0.5rem center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.placement-supervisor {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid #e2e8ff;
  background: #f8faff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.placement-supervisor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.placement-supervisor-label {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #64748b;
}

.placement-supervisor-status {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1d4ed8;
  background: #e0e7ff;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
}

.placement-supervisor-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.placement-supervisor-email {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.placement-dates {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #e2e8ff;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.placement-dates-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.placement-dates-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #64748b;
}

.placement-dates-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.placement-dates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.placement-dates .selector {
  min-width: 200px;
}

.placement-dates input[type="date"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #ffffff;
}

.placement-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.placement-confirm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.placement-history {
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e2e8ff;
}

.placement-history-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.placement-history-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #64748b;
}

.placement-history-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.placement-history-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.placement-history-groups {
  margin-top: 0.75rem;
  display: grid;
  gap: 1rem;
}

.placement-history-group + .placement-history-group {
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8ff;
}

.placement-history-item {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8ff;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.placement-history-title {
  font-weight: 600;
  color: #0f172a;
}

.placement-history-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.placement-history-empty {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Student placement page layout */
body.app-dashboard .placement-page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.2rem 1.4rem 1.4rem;
}

/* Student page frame v1 supersedes the outer frame on adopting pages; this
   declaration is kept, scoped out, for views that have not adopted it yet and
   should be deleted once they have. See styles/student-page-frame.css. */
body.app-dashboard:not(.pf-frame-v1):has(#section-placement.is-active) .app-inner {
  max-width: 1440px;
  padding: 0 1.4rem;
}

body.app-dashboard .tips-page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.2rem 1.4rem 1.4rem;
}

body.app-dashboard:has(#section-tips.is-active) .app-inner {
  max-width: 1440px;
  padding: 0 1.4rem;
}

body.app-dashboard .roadmaps-page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.2rem 1.3rem 1.5rem;
}

body.app-dashboard:has(#section-roadmaps.is-active) .app-inner {
  max-width: 1450px;
  padding: 0 1.25rem;
}

body.app-dashboard:has(#section-roadmaps.is-active) .today-header {
  display: none;
}

body.app-dashboard #section-roadmaps #roadmaps-list-view {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-page-header {
  margin-bottom: 0;
  padding: 1.42rem 1.6rem 1.24rem;
}

body.app-dashboard #section-roadmaps .roadmaps-page-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.05rem);
  font-weight: 600;
  color: #101a31;
  letter-spacing: -0.022em;
}

body.app-dashboard #section-roadmaps .roadmaps-page-header .card-subtitle {
  margin-top: 0.58rem;
  max-width: 1020px;
  color: #3f4d66;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.app-dashboard #section-roadmaps .roadmaps-category-tabs {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 1.6rem;
  padding: 0;
  border-bottom: 1px solid #dfe5ef;
  border-radius: 0;
  background: transparent;
}

body.app-dashboard #section-roadmaps .roadmaps-category-tab {
  border: none;
  background: transparent;
  color: #24375a;
  border-radius: 0;
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.9rem 0.08rem 0.78rem;
  cursor: pointer;
  position: relative;
  transition: background 0.16s ease, color 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-category-tab.is-active {
  background: transparent;
  color: #075ff0;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-category-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: #075ff0;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane.is-hidden,
body.app-dashboard #section-roadmaps .roadmaps-year-pane.is-hidden {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-pane {
  border-top: 1px solid #e5e9f2;
  background: #ffffff;
  padding: 1.05rem 1.6rem 1.25rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-fullscreen-bar {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.56rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item {
  border: 1px solid #d8e0ef;
  border-radius: 8px;
  background: #ffffff;
  color: #213556;
  padding: 0.7rem 1.02rem;
  min-width: 88px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item:hover {
  border-color: #c0cce3;
  box-shadow: 0 8px 18px rgba(24, 41, 74, 0.05);
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item.is-active {
  border-color: #075ff0;
  background: #075ff0;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 95, 240, 0.18);
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-label {
  font-size: 0.93rem;
  font-weight: 500;
  color: inherit;
  line-height: 1.1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-status {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-status.is-current {
  color: #2250b5;
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-status.is-completed {
  color: #507a61;
}

body.app-dashboard #section-roadmaps .roadmaps-year-switcher-status.is-upcoming {
  color: #875d17;
}

body.app-dashboard #section-roadmaps .roadmaps-year-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.98rem;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-year-layout {
  display: grid;
  gap: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card {
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  padding: 1.15rem 1.25rem;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card--overview {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card-head h3 {
  margin: 0;
  font-size: 1.18rem;
  color: #162744;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card-head p {
  margin: 0.34rem 0 0;
  color: #526381;
  font-size: 0.91rem;
  line-height: 1.5;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card-head--timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 1.55rem 1.05rem;
  border-bottom: 1px solid #edf1f7;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card-head-copy {
  max-width: 48rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-overview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.8fr);
  gap: 1rem;
  margin-top: 0.8rem;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline {
  border: 0;
  background: transparent;
  padding: 1.1rem 1.55rem 0.85rem;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-meta span {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #74839a;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-meta strong {
  display: block;
  margin-top: 0.2rem;
  color: #1b2d4d;
  font-size: 1rem;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface {
  --roadmaps-year-label-col: 112px;
  --roadmaps-year-lane-gap: 1rem;
  position: relative;
  border: 1px solid #e6ebf4;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 1.2rem 1.15rem 1.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines,
body.app-dashboard #section-roadmaps .roadmaps-year-now {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  display: grid;
  grid-template-columns: var(--roadmaps-year-label-col) minmax(0, 1fr);
  gap: var(--roadmaps-year-lane-gap);
  min-width: var(--roadmaps-year-layout-width, 860px);
  pointer-events: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines {
  top: 3.8rem;
  bottom: 1.15rem;
  z-index: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines-track,
body.app-dashboard #section-roadmaps .roadmaps-year-now-track {
  position: relative;
  grid-column: 2;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed #d9e1ee;
}

body.app-dashboard #section-roadmaps .roadmaps-year-axis {
  display: grid;
  grid-template-columns: var(--roadmaps-year-label-col) minmax(0, 1fr);
  gap: var(--roadmaps-year-lane-gap);
  align-items: end;
  min-width: var(--roadmaps-year-layout-width, 860px);
  margin-bottom: 0.9rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-axis-track {
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-year-months {
  position: relative;
  height: 1.1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: #5f6f8a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now {
  top: 3.8rem;
  bottom: 1.15rem;
  z-index: 24;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed #6c88dd;
  z-index: 25;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now-pill {
  position: absolute;
  top: -1.76rem;
  transform: translateX(-50%);
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #edf4ff;
  color: #2754af;
  padding: 0.22rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 26;
}

body.app-dashboard #section-roadmaps .roadmaps-year-lanes {
  display: grid;
  gap: 1rem;
  min-width: var(--roadmaps-year-layout-width, 860px);
  position: relative;
  z-index: 2;
}

body.app-dashboard #section-roadmaps .roadmaps-year-lane {
  display: grid;
  grid-template-columns: var(--roadmaps-year-label-col) minmax(0, 1fr);
  gap: var(--roadmaps-year-lane-gap);
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-year-lane-label {
  color: #647490;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.9rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-lane-track {
  position: relative;
  min-height: 72px;
  border: 1px solid #edf1f6;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.74) 0%, rgba(255, 255, 255, 0.98) 100%);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-year-lane-track--placement {
  min-height: 170px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-lane-track--holiday,
body.app-dashboard #section-roadmaps .roadmaps-year-lane-track--milestone {
  min-height: 104px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item {
  position: absolute;
  top: 0.72rem;
  transform: none;
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  background: #ffffff;
  color: #203451;
  min-width: 0;
  padding: 0.72rem 0.82rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
  z-index: 2;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--placement {
  top: 0.88rem;
  transform: none;
  transform-origin: left top;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--holiday,
body.app-dashboard #section-roadmaps .roadmaps-year-item--milestone {
  transform: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-item:focus-visible {
  border-color: #b9caea;
  box-shadow: 0 12px 24px rgba(30, 53, 96, 0.08);
}

body.app-dashboard #section-roadmaps .roadmaps-year-item.is-selected {
  border-color: #86a6eb;
  background: #f4f8ff;
  box-shadow: 0 16px 30px rgba(49, 84, 163, 0.13);
  transform: scale(1.012);
  z-index: 4;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--placement.is-selected {
  transform: scale(1.012);
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--holiday.is-selected,
body.app-dashboard #section-roadmaps .roadmaps-year-item--milestone.is-selected {
  transform: scale(1.012);
}

body.app-dashboard #section-roadmaps .roadmaps-year-item.is-current {
  border-color: #82a2e5;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

body.app-dashboard #section-roadmaps .roadmaps-year-item.is-completed {
  border-color: #dbe4ef;
  background: #f7f9fc;
  color: #6a7a93;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--holiday {
  padding: 0.64rem 0.72rem;
  background: #fbfaf6;
  border-color: #e7dfc8;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--holiday.is-selected {
  background: #f9f4e8;
  border-color: #d9c27f;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--milestone {
  padding: 0.5rem 0.72rem 0.5rem 1.06rem;
  border-radius: 999px;
  background: #fff7f7;
  border-color: #efcfcf;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item--milestone::before {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #cb4f4f;
  transform: translateY(-50%);
}

body.app-dashboard #section-roadmaps .roadmaps-year-item-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.28;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.62rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item-window {
  color: #5f7090;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item-meta {
  display: block;
  color: #6e7d96;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item-summary {
  margin-top: 0.34rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-item-summary-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4f6;
  background: rgba(255, 255, 255, 0.92);
  color: #28446f;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.15;
  padding: 0.18rem 0.46rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail {
  border-top: 1px solid #edf1f7;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #fcfdff;
  padding: 1rem 1.55rem 1.25rem;
  min-width: 0;
  position: static;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.92rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-kicker {
  color: #647490;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-status {
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-status.is-completed {
  background: #edf5ef;
  color: #416a4f;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-status.is-current {
  background: #eef4ff;
  color: #2d59b5;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-status.is-upcoming {
  background: #f7f8fb;
  color: #5d6d88;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy h4 {
  margin: 0;
  color: #182943;
  font-size: 1.14rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy p {
  margin: 0.46rem 0 0;
  color: #526381;
  font-size: 0.9rem;
  line-height: 1.48;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta-row {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.8rem;
  border-top: 1px solid #edf1f7;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta-row dt {
  color: #75839c;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta-row dd {
  margin: 0;
  color: #213455;
  font-size: 0.86rem;
  line-height: 1.4;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions {
  margin-top: 1rem;
  padding-top: 0.92rem;
  border-top: 1px solid #edf1f7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-empty {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.42rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-empty h4 {
  margin: 0;
  color: #203451;
  font-size: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-empty p {
  margin: 0;
  color: #5b6c89;
  font-size: 0.84rem;
  line-height: 1.46;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-empty {
  border: 1px dashed #d5ddeb;
  border-radius: 18px;
  padding: 1rem 1.05rem;
  background: #ffffff;
  color: #6f809a;
  font-size: 0.84rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

body.app-dashboard.roadmaps-year-fullscreen {
  background: #f5f7fc;
  overflow: hidden;
}

body.app-dashboard.roadmaps-year-fullscreen .navbar,
body.app-dashboard.roadmaps-year-fullscreen .app-sidebar {
  display: none;
}

body.app-dashboard.roadmaps-year-fullscreen .app-shell {
  min-height: 100vh;
}

body.app-dashboard.roadmaps-year-fullscreen .app-content {
  margin-left: 0;
  width: 100%;
  padding: 0;
}

body.app-dashboard.roadmaps-year-fullscreen .app-inner {
  max-width: none;
  margin: 0;
}

body.app-dashboard.roadmaps-year-fullscreen .app-content .section-inner {
  max-width: none;
  margin: 0;
  width: 100%;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #f5f7fc;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps #roadmaps-list-view {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  width: 100%;
  min-height: 100%;
}

body.app-dashboard.roadmaps-year-fullscreen .roadmaps-page {
  padding: 0;
  width: 100%;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-page-header,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-category-tabs,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-toolbar {
  display: none;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-pane {
  border-top: 0;
  background: transparent;
  padding: 0 clamp(1rem, 2vw, 2rem) 1.5rem;
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: 100vh;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 0 1.15rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(180deg, rgba(245, 247, 252, 0.98) 0%, rgba(245, 247, 252, 0.92) 74%, rgba(245, 247, 252, 0) 100%);
  backdrop-filter: blur(8px);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-copy {
  flex: 1;
  min-width: 0;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-headline {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-copy h2 {
  margin: 0;
  color: #152540;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-range {
  margin: 0;
  color: #455978;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-subtitle {
  margin: 0.62rem 0 0;
  max-width: 70rem;
  color: #51627f;
  font-size: 1rem;
  line-height: 1.55;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-layout {
  gap: 1.45rem;
  width: 100%;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-card {
  border-radius: 28px;
  border-color: #e4e9f3;
  box-shadow: 0 22px 48px rgba(18, 31, 58, 0.08);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-card--overview {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-card-head--timeline {
  display: none;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-timeline,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail {
  padding-left: 0;
  padding-right: 0;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-timeline {
  padding-top: 0;
  padding-bottom: 0;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-timeline-surface {
  --roadmaps-year-label-col: 144px;
  --roadmaps-year-lane-gap: 1.25rem;
  padding: 0 0 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-gridlines,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-axis,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lanes {
  min-width: var(--roadmaps-year-layout-width, max(1420px, calc(100vw - 4rem)));
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-gridlines,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now {
  left: 0;
  right: 0;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-gridlines {
  top: 2.95rem;
  bottom: 0.85rem;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-axis {
  margin-bottom: 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7edf6;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-month {
  font-size: 0.96rem;
  color: #4d6283;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now {
  top: 2.95rem;
  bottom: 0.85rem;
  z-index: 40;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now-line {
  border-left: 2px solid rgba(108, 136, 221, 0.92);
  z-index: 41;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now-line::before {
  content: "";
  position: absolute;
  top: -0.62rem;
  left: -0.48rem;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 999px;
  background: #8ea8f3;
  box-shadow: 0 0 0 6px rgba(142, 168, 243, 0.16);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now-pill {
  top: -0.86rem;
  background: #eef4ff;
  border-color: #d5e2ff;
  box-shadow: 0 10px 24px rgba(69, 98, 159, 0.12);
  z-index: 42;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lanes {
  gap: 1.22rem;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lane {
  align-items: start;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lane-label {
  padding-top: 1rem;
  font-size: 0.82rem;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lane-track--placement {
  min-height: 220px;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lane-track--holiday,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lane-track--milestone {
  min-height: 112px;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lane-track {
  border-radius: 22px;
  border-color: #e7edf6;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 255, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item {
  min-width: 0;
  border-radius: 22px;
  padding: 0.94rem 1rem;
  box-shadow: 0 14px 30px rgba(21, 37, 64, 0.07);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item--placement {
  top: 1rem;
  transform: none;
  transform-origin: left top;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item.is-selected {
  background: linear-gradient(180deg, #fbfdff 0%, #eef4ff 100%);
  border-color: #6f91ea;
  box-shadow: 0 22px 40px rgba(43, 76, 148, 0.18);
  transform: scale(1.012);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item--placement.is-selected {
  transform: scale(1.012);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item.is-selected .roadmaps-year-item-summary-pill {
  background: rgba(255, 255, 255, 0.96);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item--holiday.is-selected,
body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item--milestone.is-selected {
  transform: scale(1.012);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item.is-current {
  border-color: #7f9fe7;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item.is-completed {
  background: #f8fafc;
  color: #63728b;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item--holiday {
  background: #fdfbf6;
  border-color: #e7dfc5;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item--milestone {
  padding: 0.66rem 1rem 0.66rem 1.26rem;
  background: #fff6f6;
  border-color: #f0caca;
  box-shadow: 0 12px 22px rgba(128, 45, 45, 0.08);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item--milestone::before {
  background: #cf4f4f;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item-title {
  font-size: 1.03rem;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-item-meta {
  font-size: 0.86rem;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail {
  margin-top: 1.42rem;
  padding: 1.32rem 1.48rem 1.48rem;
  border: 1px solid #e4eaf4;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(21, 37, 64, 0.08);
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail-copy h4 {
  font-size: 1.28rem;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.05rem;
}

body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-support-grid {
  display: none;
}

body.app-dashboard.roadmaps-year-fullscreen .bug-report-fab {
  display: none;
}

@media (max-width: 1100px) {
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-pane {
    padding: 0 1rem 1.5rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-timeline,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail {
    padding-left: 0;
    padding-right: 0;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-timeline-surface {
    --roadmaps-year-label-col: 118px;
    --roadmaps-year-lane-gap: 0.96rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-gridlines,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-axis,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lanes {
    min-width: var(--roadmaps-year-layout-width, max(1120px, calc(100vw - 2rem)));
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0.8rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-copy h2 {
    font-size: 1.78rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-range {
    font-size: 0.92rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-subtitle {
    font-size: 0.92rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-fullscreen-exit {
    align-self: flex-start;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-timeline,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail {
    padding-left: 0;
    padding-right: 0;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-timeline-surface {
    --roadmaps-year-label-col: 88px;
    --roadmaps-year-lane-gap: 0.7rem;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-gridlines,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-now,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-axis,
  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-lanes {
    min-width: var(--roadmaps-year-layout-width, max(820px, calc(100vw - 1.75rem)));
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-support-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail-actions {
    flex-direction: column;
  }

  body.app-dashboard.roadmaps-year-fullscreen #section-roadmaps .roadmaps-year-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-divider {
  height: 1px;
  margin: 1rem 0;
  background: #edf1f7;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-wrap h4 {
  margin: 0;
  color: #172845;
  font-size: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-wrap {
  display: grid;
  gap: 0.24rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list,
body.app-dashboard #section-roadmaps .roadmaps-year-focus {
  margin: 0.76rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
  border: 1px solid #e3e9f4;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.76rem 0.82rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head h4 {
  margin: 0;
  color: #1f3152;
  font-size: 0.95rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head span {
  color: #607392;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item p {
  margin: 0.32rem 0 0;
  color: #556987;
  font-size: 0.86rem;
  line-height: 1.44;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
  position: relative;
  padding-left: 1.6rem;
  color: #304666;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-item::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 0.86rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #5d80da;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-empty,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-empty {
  border: 1px dashed #d5ddeb;
  border-radius: 12px;
  padding: 0.62rem 0.68rem;
  background: #ffffff;
  color: #6f809a;
  font-size: 0.84rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
  border-radius: 8px;
  padding: 1.25rem 1.05rem 1.05rem;
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis,
body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  min-width: var(--roadmaps-year-layout-width, 980px);
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis {
  position: relative;
  height: 1.5rem;
  margin-bottom: 1.15rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis .roadmaps-year-months {
  position: absolute;
  inset: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis .roadmaps-year-month {
  color: #071b4d;
  font-size: 0.86rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  position: relative;
  min-height: 186px;
  padding: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines--month {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  pointer-events: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines--month .roadmaps-year-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed #dfe5ef;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-track-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  height: 1px;
  background: #b9c6db;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block,
body.app-dashboard #section-roadmaps .roadmaps-year-break,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  appearance: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block {
  position: absolute;
  top: 35px;
  min-width: 154px;
  min-height: 76px;
  border: 1px solid #bdd7d2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfffe 0%, #f3fbf8 100%);
  color: #071b4d;
  padding: 0.86rem 1rem;
  display: grid;
  gap: 0.28rem;
  text-align: left;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(12, 28, 55, 0.03);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-completed::after {
  content: "✓";
  position: absolute;
  right: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid #178650;
  border-radius: 999px;
  color: #178650;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-current,
body.app-dashboard #section-roadmaps .roadmaps-year-block.is-selected {
  border-color: #4b7ff4;
  background: #f6f9ff;
  box-shadow: inset 5px 0 0 #075ff0, 0 12px 24px rgba(7, 95, 240, 0.1);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-upcoming {
  border-color: #d9e1ef;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-title {
  display: block;
  padding-right: 1.45rem;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.22;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-window,
body.app-dashboard #section-roadmaps .roadmaps-year-block-current {
  display: block;
  color: #243d70;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.22;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-current {
  color: #075ff0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break {
  position: absolute;
  top: 128px;
  min-width: 112px;
  border: 1px solid #eadfbd;
  border-radius: 999px;
  background: #fffaf0;
  color: #725018;
  padding: 0.38rem 0.6rem;
  text-align: center;
  display: grid;
  gap: 0.08rem;
  z-index: 3;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break span {
  font-size: 0.74rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break small {
  font-size: 0.66rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  position: absolute;
  top: calc(18px + (var(--roadmaps-year-milestone-row, 0) * 72px));
  transform: translateX(-50%);
  min-width: 130px;
  max-width: 160px;
  background: transparent;
  color: #071b4d;
  padding: 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.24rem;
  z-index: 5;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin {
  width: 0.82rem;
  height: 0.82rem;
  border: 3px solid #ff5a45;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 90, 69, 0.12);
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin::after {
  content: "";
  display: block;
  width: 2px;
  height: 2rem;
  margin: 0.55rem auto 0;
  background: #ff5a45;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title {
  display: block;
  margin-top: 2.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.18;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  color: #ff5a45;
  font-size: 0.76rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-selected .roadmaps-year-milestone-title {
  color: #075ff0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  z-index: 7;
  pointer-events: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-line {
  position: absolute;
  top: -0.3rem;
  bottom: -0.55rem;
  width: 0;
  border-left: 3px solid #075ff0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-pill {
  position: absolute;
  top: -1.96rem;
  transform: translateX(-50%);
  border: 0;
  border-radius: 4px;
  background: #075ff0;
  color: #ffffff;
  padding: 0.28rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(7, 95, 240, 0.16);
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail {
  margin: 0 1.15rem 1.05rem;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
  border-radius: 8px;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

body.app-dashboard #section-roadmaps .roadmaps-title-icon {
  width: 1.22rem;
  height: 1.22rem;
  display: inline-flex;
  color: #121f39;
}

body.app-dashboard #section-roadmaps .roadmaps-title-icon svg {
  width: 100%;
  height: 100%;
}

body.app-dashboard #section-roadmaps .roadmaps-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  flex-wrap: wrap;
  padding: 1.02rem 1.6rem;
  border-top: 1px solid #e5e9f2;
  border-bottom: 1px solid #e5e9f2;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(500px, 100%);
  min-height: 50px;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid #d8dfeb;
  background: #f9fbff;
  box-shadow: none;
  color: #8a97ac;
  flex: 1 1 360px;
}

body.app-dashboard #section-roadmaps .roadmaps-search input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  color: #172744;
  outline: none;
}

body.app-dashboard #section-roadmaps .roadmaps-search input::placeholder {
  color: #8a96ab;
}

body.app-dashboard #section-roadmaps .roadmaps-search-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

body.app-dashboard #section-roadmaps .roadmaps-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
}

body.app-dashboard #section-roadmaps .roadmaps-filter-chip {
  border: none;
  background: transparent;
  color: #5a687f;
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.14rem 0.28rem;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-filter-chip + .roadmaps-filter-chip::before {
  content: "·";
  color: #a7b1c2;
  margin-right: 0.52rem;
}

body.app-dashboard #section-roadmaps .roadmaps-filter-chip.is-active {
  color: #172744;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-filter-chip:hover {
  color: #304fb8;
  opacity: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-content {
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-table-header {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.94rem;
  align-items: center;
  border-bottom: 1px solid #e6eaf2;
  background: #f7f9fd;
  padding: 0.82rem 1.6rem;
}

body.app-dashboard #section-roadmaps .roadmaps-table-header span {
  margin: 0;
  color: #3c4a62;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.002em;
  text-transform: none;
}

body.app-dashboard #section-roadmaps .roadmaps-table-header .roadmaps-table-header-compare {
  text-align: right;
}

body.app-dashboard #section-roadmaps .roadmaps-table-body {
  display: flex;
  flex-direction: column;
}

body.app-dashboard #section-roadmaps .roadmaps-table-row {
  appearance: none;
  border: none;
  border-top: 1px solid #e8edf6;
  background: #ffffff;
  width: 100%;
  text-align: left;
  padding: 0.86rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.94rem;
  align-items: center;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-table-row:first-child {
  border-top: none;
}

body.app-dashboard #section-roadmaps .roadmaps-table-row:hover {
  background: #f7f8fa;
  border-top-color: #e1e7f2;
}

body.app-dashboard #section-roadmaps .roadmaps-table-row:focus-visible {
  outline: 2px solid #3d65d8;
  outline-offset: -2px;
}

body.app-dashboard #section-roadmaps .roadmaps-table-row:focus-within {
  background: #f7f8fa;
}

body.app-dashboard #section-roadmaps .roadmaps-table-cell {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty h4 {
  margin: 0;
  color: #111c34;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
}

body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty p {
  margin: 0.16rem 0 0;
  color: #4d5d77;
  font-size: 0.9rem;
  line-height: 1.36;
}

body.app-dashboard #section-roadmaps .roadmaps-competition {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.app-dashboard #section-roadmaps .roadmaps-competition-top {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

body.app-dashboard #section-roadmaps .roadmaps-competition-top strong {
  color: #111f39;
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.app-dashboard #section-roadmaps .roadmaps-competition-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

body.app-dashboard #section-roadmaps .roadmaps-competition-dot {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #c9d2e4;
}

body.app-dashboard #section-roadmaps .roadmaps-competition-dot.is-on {
  background: #1f2e4a;
}

body.app-dashboard #section-roadmaps .roadmaps-competition-bottom {
  color: #5f6f88;
  font-size: 0.81rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

body.app-dashboard #section-roadmaps .roadmaps-competition-summary-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-range {
  margin: 0;
  color: #1a2a46;
  font-size: 0.98rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

body.app-dashboard #section-roadmaps .roadmaps-trait {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: #f2f4f8;
  border: 1px solid #d9dfeb;
  color: #475a78;
}

body.app-dashboard #section-roadmaps .roadmaps-trait--empty {
  opacity: 0.7;
}

body.app-dashboard #section-roadmaps .roadmaps-table-cell--action {
  text-align: right;
}

body.app-dashboard #section-roadmaps .roadmaps-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  border: none;
  background: transparent;
  padding: 0;
  color: #3f4f6b;
  font-size: 0.99rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-4px);
  transition: color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-table-row:hover .roadmaps-view-link,
body.app-dashboard #section-roadmaps .roadmaps-table-row:focus-within .roadmaps-view-link {
  opacity: 1;
  transform: translateX(0);
  color: #233b72;
}

body.app-dashboard #section-roadmaps .roadmaps-empty {
  margin: 1rem 1.2rem 1.15rem;
  font-size: 0.88rem;
  color: #64748b;
}

@media (max-width: 1180px) {
  body.app-dashboard #section-roadmaps .roadmaps-table-header,
  body.app-dashboard #section-roadmaps .roadmaps-table-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-support-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-overview-shell {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card--overview {
    grid-column: auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    position: static;
  }
}

@media (max-width: 980px) {
  body.app-dashboard #section-roadmaps .roadmaps-category-tabs {
    margin: 0 1rem 0.9rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-toolbar {
    align-items: stretch;
    padding: 0.95rem 1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-search {
    width: 100%;
  }

  body.app-dashboard #section-roadmaps .roadmaps-filter-chips {
    gap: 0.08rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-header {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem 0.95rem;
    padding: 0.86rem 1rem;
    align-items: flex-start;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.26rem;
    color: #74839a;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty {
    grid-column: 1 / -1;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty h4 {
    font-size: 1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty p {
    font-size: 0.86rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell--action {
    grid-column: 1 / -1;
    text-align: left;
  }

  body.app-dashboard #section-roadmaps .roadmaps-view-link {
    opacity: 1;
    transform: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-pane {
    padding: 0.92rem 1rem 1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-toolbar {
    align-items: stretch;
    margin-bottom: 0.76rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher {
    width: 100%;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item {
    flex: 1 1 148px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-grid {
    gap: 0.75rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-layout {
    gap: 0.9rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-overview-shell {
    gap: 0.78rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card {
    padding: 1rem 1.05rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card--overview {
    padding: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card-head--timeline,
  body.app-dashboard #section-roadmaps .roadmaps-year-timeline,
  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline {
    padding-top: 0.98rem;
    padding-bottom: 0.8rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    padding-top: 0.92rem;
    padding-bottom: 1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface {
    --roadmaps-year-label-col: 100px;
    --roadmaps-year-lane-gap: 0.88rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-gridlines,
  body.app-dashboard #section-roadmaps .roadmaps-year-now,
  body.app-dashboard #section-roadmaps .roadmaps-year-axis,
  body.app-dashboard #section-roadmaps .roadmaps-year-lanes {
    min-width: 760px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.app-dashboard #section-roadmaps .roadmaps-page-header h2 {
    font-size: 1.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tabs {
    width: calc(100% - 1.8rem);
    margin: 0 0.9rem 0.8rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tab {
    flex: 1 1 0;
    text-align: center;
    padding: 0.42rem 0.48rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-filter-chip {
    font-size: 0.87rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty,
  body.app-dashboard #section-roadmaps .roadmaps-table-cell--action {
    grid-column: auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty h4 {
    font-size: 1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell--specialty p {
    font-size: 0.84rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-toolbar {
    padding: 0.9rem 0.9rem;
    gap: 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-search {
    min-height: 48px;
    padding: 0.58rem 0.88rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-body {
    padding: 0.7rem 0.7rem 0.95rem;
    gap: 0.65rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-row:first-child {
    border-top: 1px solid #e4e9f2;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-pane {
    padding: 0.82rem 0.9rem 0.95rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item {
    min-width: 0;
    padding: 0.64rem 0.72rem;
    justify-content: space-between;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card {
    padding: 0.9rem 0.86rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card-head h3 {
    font-size: 1.02rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card-head--timeline,
  body.app-dashboard #section-roadmaps .roadmaps-year-timeline,
  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    padding-left: 0.92rem;
    padding-right: 0.92rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface {
    --roadmaps-year-label-col: 88px;
    --roadmaps-year-lane-gap: 0.74rem;
    padding: 1.02rem 0.88rem 0.92rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-gridlines,
  body.app-dashboard #section-roadmaps .roadmaps-year-now,
  body.app-dashboard #section-roadmaps .roadmaps-year-axis,
  body.app-dashboard #section-roadmaps .roadmaps-year-lanes {
    min-width: 680px;
  }
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 2.6rem);
  letter-spacing: -0.02em;
  color: #13203d;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-heading .card-subtitle {
  margin: 0;
  max-width: 840px;
  font-size: 1.04rem;
  line-height: 1.42;
  color: #4b5a76;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-back {
  align-self: flex-start;
  border: 1px solid #d9e2f4;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  color: #4360c7;
  background: #f7f9ff;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  max-width: 380px;
}

body.app-dashboard #section-roadmaps #roadmaps-detail-progress-label {
  margin: 0;
  color: #415271;
  font-size: 0.95rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f5;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #f1c75f 0 18%, #4f6ef7 18% 100%);
  transition: width 180ms ease;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress-track.is-portfolio {
  margin-top: 0.75rem;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-actions {
  margin-top: 0.2rem;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #dce4f7;
  border-radius: 999px;
  width: fit-content;
  padding: 0.28rem;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab {
  border: none;
  background: transparent;
  color: #4b5a78;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.48rem 0.96rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab.is-active {
  background: linear-gradient(135deg, #6f8fff, #4f6ef7);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(79, 110, 247, 0.24);
}

body.app-dashboard #section-roadmaps .roadmaps-detail-pane {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-pane.is-active {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-next-step-card {
  border: 1px solid #e2e9f8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-next-step-card.is-complete {
  background: #fbfdff;
}

body.app-dashboard #section-roadmaps .roadmaps-next-step-header {
  padding: 0.85rem 1rem 0.78rem;
  border-bottom: 1px solid #e6ecf8;
}

body.app-dashboard #section-roadmaps .roadmaps-next-step-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1d2d4d;
}

body.app-dashboard #section-roadmaps #roadmaps-next-step-rationale {
  margin: 0.26rem 0 0;
  color: #61708d;
  font-size: 0.86rem;
}

body.app-dashboard #section-roadmaps .roadmaps-next-step-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.app-dashboard #section-roadmaps #roadmaps-next-step-title {
  margin: 0;
  color: #122340;
  font-size: 1.36rem;
  line-height: 1.2;
  flex: 1 1 420px;
}

body.app-dashboard #section-roadmaps #roadmaps-next-step-meta {
  margin: 0;
  color: #5a6b8c;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap {
  margin-top: 0.88rem;
  border: 1px solid #e3e9f8;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  padding: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-stage + .roadmaps-stage {
  margin-top: 1.2rem;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-header h3 {
  margin: 0;
  font-size: 1.62rem;
  color: #13203d;
  letter-spacing: -0.012em;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-header p {
  margin: 0.2rem 0 0;
  color: #61708c;
  font-size: 0.91rem;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-track {
  margin-top: 0.72rem;
  padding-left: 1.15rem;
  border-left: 2px solid #dde4f3;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

body.app-dashboard #section-roadmaps .roadmaps-node {
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-node::before {
  content: "";
  position: absolute;
  left: -1.44rem;
  top: 1rem;
  width: 0.68rem;
  border-top: 2px solid #dde4f3;
}

body.app-dashboard #section-roadmaps .roadmaps-node-trigger {
  width: 100%;
  border: 1px solid #e1e8f8;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-node-trigger:hover {
  border-color: #c9d7f6;
  background: #fbfdff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

body.app-dashboard #section-roadmaps .roadmaps-node-status {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  border: 2px solid #c8d4ea;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-node-status.is-in_progress {
  border-color: #e1b95e;
  background: linear-gradient(90deg, #f3cf78 50%, #ffffff 50%);
}

body.app-dashboard #section-roadmaps .roadmaps-node-status.is-done {
  border-color: #54b988;
  background: #54b988;
}

body.app-dashboard #section-roadmaps .roadmaps-node-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

body.app-dashboard #section-roadmaps .roadmaps-node-body h4 {
  margin: 0;
  color: #172644;
  font-size: 1.15rem;
  line-height: 1.3;
}

body.app-dashboard #section-roadmaps .roadmaps-node-body p {
  margin: 0;
  color: #5f6f8b;
  font-size: 0.9rem;
  line-height: 1.38;
}

body.app-dashboard #section-roadmaps .roadmaps-node-footer {
  margin-top: 0.06rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
}

body.app-dashboard #section-roadmaps .roadmaps-node-status-text {
  color: #5a6d8e;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-node-labels {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

body.app-dashboard #section-roadmaps .roadmaps-node-label {
  border-radius: 999px;
  border: 1px solid #d5dff5;
  background: #f5f8ff;
  color: #435f9f;
  padding: 0.12rem 0.44rem;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-roadmap-empty {
  margin: 0;
  color: #5c6d8b;
  font-size: 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-layout {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-sidebar {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-row--bottom {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-card,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-sidebar-card {
  border: 1px solid #e3eaf8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  padding: 1rem 1.05rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-card h3,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-sidebar-card h3 {
  margin: 0;
  color: #172744;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-value {
  margin: 0.5rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.44rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-value strong {
  font-size: clamp(2.15rem, 3.2vw, 2.7rem);
  line-height: 1;
  color: #172744;
  letter-spacing: -0.02em;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-value span {
  color: #253a5a;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-bandline {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.52rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-band-pill {
  width: fit-content;
  border: 1px solid #9ac8c0;
  background: #d8efe9;
  color: #1b4e44;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 500;
  padding: 0.22rem 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-next-target {
  margin: 0.82rem 0 0;
  color: #1f2f4d;
  font-size: 1.02rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-actions {
  list-style: none;
  margin: 0.78rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.56rem 0;
  border-top: 1px solid #e8eef9;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-action-row:first-child {
  border-top: none;
  padding-top: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-action-title {
  border: none;
  background: transparent;
  color: #182947;
  font-size: 1.03rem;
  font-weight: 600;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-action-title:hover,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-action-title:focus-visible {
  color: #2d57cf;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-action-points {
  border: 1px solid #dbe5f9;
  background: #f2f6ff;
  color: #2f5fd4;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.26rem 0.68rem;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-progress-card .roadmaps-portfolio-category-row:first-of-type {
  margin-top: 0.7rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-category-row + .roadmaps-portfolio-category-row {
  margin-top: 0.7rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-category-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  color: #283a5c;
  font-size: 0.84rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-category-track {
  margin-top: 0.28rem;
  height: 8px;
  border-radius: 999px;
  background: #e7edf8;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-category-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7798ff, #4f6ef7);
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-tracker-card h3 {
  margin-bottom: 0.58rem;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-accordion {
  border-top: 1px solid #e7edf8;
  padding-top: 0.25rem;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-accordion + .roadmaps-tracker-accordion {
  margin-top: 0.12rem;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-accordion-head {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.54rem 0;
  color: #1f3151;
  font-size: 1.06rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-accordion-head::-webkit-details-marker {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-items {
  padding: 0.18rem 0 0.62rem;
  display: grid;
  gap: 0.46rem;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-item-row {
  border: 1px solid #e5ebf8;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.62rem 0.68rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-item-copy h5 {
  margin: 0;
  color: #1a2a46;
  font-size: 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-item-copy p {
  margin: 0.2rem 0 0;
  color: #60708b;
  font-size: 0.8rem;
  line-height: 1.38;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-item-points {
  border: 1px solid #e2e8f8;
  background: #f5f8ff;
  color: #2f5fd4;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 0.18rem 0.56rem;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-tracker-status-select {
  border: 1px solid #d9e3f7;
  border-radius: 999px;
  background: #ffffff;
  color: #445472;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.22rem 0.58rem;
  min-width: 120px;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-empty {
  margin: 0.62rem 0 0;
  color: #60708d;
  font-size: 0.84rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-summary-grid,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-bands,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-stats,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-ratios,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-opportunities {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator {
  margin-top: 0.82rem;
  border-top: 1px solid #e8eef8;
  padding-top: 0.7rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator h4 {
  margin: 0;
  color: #1d2f4e;
  font-size: 0.9rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator-list {
  margin: 0.56rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.52rem;
  align-items: center;
  color: #2f4061;
  font-size: 0.84rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator-row input {
  width: 15px;
  height: 15px;
  accent-color: #4f6ef7;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator-row strong {
  color: #2d5ecc;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator-summary {
  margin: 0.62rem 0 0;
  color: #4e6080;
  font-size: 0.82rem;
  line-height: 1.42;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-simulator-summary strong {
  color: #182847;
  font-weight: 700;
}

body.app-dashboard .roadmaps-item-detail-footer .roadmaps-item-status-group {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

body.app-dashboard .roadmaps-item-detail-footer .roadmaps-item-status-btn {
  border: 1px solid #d9e3f7;
  background: #f9fbff;
  color: #506084;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  cursor: pointer;
}

body.app-dashboard .roadmaps-item-detail-footer .roadmaps-item-status-btn.is-active {
  border-color: #5d7ff2;
  color: #ffffff;
  background: linear-gradient(135deg, #6c8dff, #4f6ef7);
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-band {
  border: 1px solid #e1e8f8;
  border-radius: 11px;
  background: #fbfcff;
  padding: 0.46rem 0.54rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-band strong {
  display: block;
  color: #1d2d4a;
  font-size: 0.86rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-band span {
  color: #60708c;
  font-size: 0.74rem;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-band p {
  margin: 0;
  color: #2c3e63;
  font-size: 0.82rem;
  font-weight: 400;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-band.is-active {
  border-color: #bfd2ff;
  background: #edf3ff;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-opportunity {
  border: 1px solid #e3eaf9;
  border-radius: 12px;
  padding: 0.6rem 0.65rem;
  background: #fcfdff;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-opportunity h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #172541;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-opportunity p {
  margin: 0.22rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #5c6a86;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-view {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-header h2 {
  margin: 0;
  font-size: clamp(1.95rem, 2.5vw, 2.45rem);
  letter-spacing: -0.02em;
  color: #13203d;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-back {
  align-self: flex-start;
  border: 1px solid #d9e2f4;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  color: #4360c7;
  background: #f7f9ff;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: end;
  border: 1px solid #dfe7f8;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.8rem 0.86rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector span {
  color: #5f6f8c;
  font-size: 0.78rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector select {
  border: 1px solid #d8e1f5;
  border-radius: 12px;
  height: 42px;
  padding: 0 0.8rem;
  color: #192947;
  font-size: 0.95rem;
  font-weight: 600;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-vs {
  color: #5f6f8c;
  font-size: 1.08rem;
  font-weight: 600;
  align-self: center;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-roadmap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-sections {
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-section {
  border: 1px solid #e3eaf8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-section-header {
  border-bottom: 1px solid #e8edf8;
  padding: 0.78rem 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-section-header h3 {
  margin: 0;
  color: #1a2a47;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-summary-card,
body.app-dashboard #section-roadmaps .roadmaps-compare-panel {
  border: 1px solid #e3e9f7;
  border-radius: 14px;
  background: #fcfdff;
  padding: 0.8rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-summary-card h4,
body.app-dashboard #section-roadmaps .roadmaps-compare-panel h4 {
  margin: 0;
  color: #162744;
  font-size: 1.12rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-summary-card p {
  margin: 0.35rem 0 0;
  color: #4f617f;
  font-size: 0.9rem;
  line-height: 1.42;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-summary-card ul,
body.app-dashboard #section-roadmaps .roadmaps-compare-panel ul {
  margin: 0.62rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.28rem;
  color: #2f4160;
  font-size: 0.88rem;
  line-height: 1.36;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-panel--full {
  margin: 0.88rem 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-training-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-training-list li {
  border-left: 2px solid #d5def3;
  padding-left: 0.52rem;
  display: grid;
  gap: 0.12rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-training-list strong {
  color: #243554;
  font-size: 0.8rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-training-list span,
body.app-dashboard #section-roadmaps .roadmaps-compare-training-years {
  color: #576784;
  font-size: 0.82rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-training-years {
  margin: 0.7rem 0 0;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-header,
body.app-dashboard #section-roadmaps .roadmaps-compare-grid-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-header {
  border-bottom: 1px solid #e7edf8;
  padding-bottom: 0.58rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-header span {
  color: #5d6e8a;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-header strong {
  color: #1d2d49;
  font-size: 0.92rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-row {
  border-bottom: 1px solid #eef2fa;
  padding: 0.54rem 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-row span {
  color: #566683;
  font-size: 0.85rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-grid-row p {
  margin: 0;
  color: #1d2d4a;
  font-size: 0.84rem;
  line-height: 1.36;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  border-bottom: 1px solid #eef2fa;
  padding: 0.58rem 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-row:last-of-type {
  border-bottom: none;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-row > span {
  color: #566683;
  font-size: 0.86rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-cell p {
  margin: 0 0 0.2rem;
  color: #1d2d49;
  font-size: 0.82rem;
  font-weight: 400;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-bar {
  height: 7px;
  border-radius: 999px;
  background: #e8edf8;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #7f9cff, #4f6ef7);
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-specialty {
  margin-top: 0.7rem;
  padding-top: 0.72rem;
  border-top: 1px solid #e8edf8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-specialty h4 {
  margin: 0;
  color: #1b2d4a;
  font-size: 0.92rem;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-priority-specialty ul {
  margin: 0.46rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.24rem;
  color: #334564;
  font-size: 0.82rem;
}

body.app-dashboard .roadmaps-item-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

body.app-dashboard .roadmaps-item-detail-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(12, 18, 33, 0.48);
  cursor: pointer;
}

body.app-dashboard .roadmaps-item-detail-panel {
  position: relative;
  width: min(820px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid #dce4f7;
  background: #ffffff;
  box-shadow: 0 26px 50px rgba(9, 16, 31, 0.28);
  overflow: hidden;
}

body.app-dashboard .roadmaps-item-detail-header {
  padding: 0.95rem 1rem 0.72rem;
  border-bottom: 1px solid #e4ebf8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

body.app-dashboard .roadmaps-item-detail-header h3 {
  margin: 0;
  color: #13203d;
  font-size: 1.3rem;
}

body.app-dashboard .roadmaps-item-detail-header p {
  margin: 0.3rem 0 0;
  color: #5c6d8b;
}

body.app-dashboard #roadmaps-item-detail-metadata {
  margin: 0.35rem 0 0;
  color: #4f6287;
  font-size: 0.84rem;
  font-weight: 500;
}

body.app-dashboard .roadmaps-item-detail-close {
  border: 1px solid #d9e2f5;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8faff;
  color: #41598f;
  font-size: 1.32rem;
  line-height: 1;
  cursor: pointer;
}

body.app-dashboard .roadmaps-item-detail-body {
  overflow: auto;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.82rem;
}

body.app-dashboard .roadmaps-item-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.app-dashboard .roadmaps-item-detail-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d8e2f8;
  background: #f4f7ff;
  color: #3f5f9f;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.14rem 0.5rem;
}

body.app-dashboard .roadmaps-item-detail-body section h4 {
  margin: 0;
  color: #172646;
  font-size: 0.95rem;
}

body.app-dashboard .roadmaps-item-detail-body section p {
  margin: 0.26rem 0 0;
  color: #546583;
  line-height: 1.45;
}

body.app-dashboard .roadmaps-item-detail-list {
  margin: 0.42rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.28rem;
  color: #51617f;
}

body.app-dashboard .roadmaps-item-detail-list a {
  color: #365fd6;
  text-decoration: none;
}

body.app-dashboard .roadmaps-item-detail-list a:hover {
  text-decoration: underline;
}

body.app-dashboard .roadmaps-item-detail-footer {
  border-top: 1px solid #e5ebf8;
  padding: 0.75rem 1rem 0.9rem;
}

@media (max-width: 1240px) {
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-layout {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-portfolio-row--bottom {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-two-col {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-priority-specialty {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-row {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-next-step-body {
    align-items: flex-start;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-controls {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-vs {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-grid-header,
  body.app-dashboard #section-roadmaps .roadmaps-compare-grid-row,
  body.app-dashboard #section-roadmaps .roadmaps-compare-priority-row {
    grid-template-columns: 1fr;
    gap: 0.32rem;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-detail-heading h2 {
    font-size: 1.8rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab {
    font-size: 0.92rem;
    padding: 0.44rem 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-header h3 {
    font-size: 1.34rem;
  }

  body.app-dashboard #section-roadmaps #roadmaps-next-step-title {
    font-size: 1.1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-status-group {
    justify-content: flex-start;
  }

  body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-value span {
    font-size: 1.45rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-tracker-item-row {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-tracker-item-controls {
    align-items: flex-start;
  }
}

/* ROADMAP DETAIL REDESIGN (roadmap-first + right detail panel) */
body.app-dashboard #section-roadmaps .roadmaps-detail-view {
  --roadmaps-detail-gutter: clamp(0.95rem, 1.45vw, 1.3rem);
  --roadmaps-roadmap-gap: clamp(1.3rem, 2.4vw, 1.9rem);
  --roadmaps-inspector-width: 380px;
  --roadmaps-axis-x: 50%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e1e7f2;
  border-radius: 22px;
  background: #ffffff;
  overflow: visible;
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-heading,
body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle,
body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-pane {
  width: 100%;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-heading {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.02rem var(--roadmaps-detail-gutter) 0.92rem;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #172746;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-heading .card-subtitle {
  margin: 0;
  color: #4f617f;
  font-size: 1.04rem;
  line-height: 1.45;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-back {
  align-self: flex-start;
  padding: 0.08rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #4d6290;
  font-size: 1rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 340px;
}

body.app-dashboard #section-roadmaps #roadmaps-detail-progress-label {
  margin: 0;
  color: #425273;
  font-size: 0.97rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e1e8f4;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0c968 0 18%, #4d6ff6 18% 100%);
  transition: width 180ms ease;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-actions {
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: none;
  border-top: 1px solid #e4eaf5;
  border-bottom: 1px solid #e4eaf5;
  border-radius: 0;
  width: 100%;
  padding: 0 var(--roadmaps-detail-gutter);
  background: #ffffff;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab {
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4f607f;
  border-radius: 0;
  font-size: 1.03rem;
  font-weight: 500;
  padding: 0.8rem 0.1rem 0.72rem;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab.is-active {
  border-color: #3764e0;
  color: #1b356f;
  background: transparent;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-pane {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-pane.is-active {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-pane--roadmap {
  padding: 0;
  overflow: visible;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.7rem;
  margin: 0.14rem 0 0.62rem;
  color: #5f7090;
  font-size: 0.82rem;
  line-height: 1.25;
}

body.app-dashboard #section-roadmaps .roadmaps-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

body.app-dashboard #section-roadmaps .roadmaps-legend-label {
  color: inherit;
}

body.app-dashboard #section-roadmaps .roadmaps-legend-symbol {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-legend-symbol.is-not_started {
  border-radius: 999px;
  border: 2px solid #bac7dd;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-legend-symbol.is-in_progress {
  border-radius: 999px;
  border: 2px solid #d7b160;
  background: linear-gradient(90deg, #efcb75 50%, #ffffff 50%);
}

body.app-dashboard #section-roadmaps .roadmaps-legend-symbol.is-done {
  border-radius: 999px;
  border: 2px solid #4677db;
  background: #4677db;
}

body.app-dashboard #section-roadmaps .roadmaps-legend-symbol.is-recommended {
  width: auto;
  height: auto;
  flex-basis: auto;
  color: #2e58c2;
  font-size: 0.82rem;
  line-height: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--roadmaps-inspector-width);
  gap: var(--roadmaps-roadmap-gap);
  align-items: start;
  padding: 0.98rem var(--roadmaps-detail-gutter) 1.15rem;
  overflow: visible;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-roadmap-canvas {
  padding: 0;
  min-width: 0;
  overflow: visible;
}

body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap {
  margin-top: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.18rem 0.18rem 0.86rem;
  position: relative;
  isolation: isolate;
}

body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap::before {
  content: "";
  position: absolute;
  top: 0.24rem;
  bottom: 0.6rem;
  left: var(--roadmaps-axis-x);
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #d6deee 0%, #cbd6ea 100%);
}

body.app-dashboard #section-roadmaps .roadmaps-stage + .roadmaps-stage {
  margin-top: 1.26rem;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  margin-bottom: 0.82rem;
  min-height: 34px;
  padding-left: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-header::before {
  content: "";
  position: absolute;
  left: var(--roadmaps-axis-x);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #b8c6de;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #162744;
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 0.72rem;
  background: #f6f9ff;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-stage.is-done .roadmaps-stage-header::before {
  border-color: #4fa37f;
  background: #4fa37f;
}

body.app-dashboard #section-roadmaps .roadmaps-stage.is-in_progress .roadmaps-stage-header::before {
  border-color: #dab45d;
  background: linear-gradient(90deg, #f0cd74 50%, #ffffff 50%);
}

body.app-dashboard #section-roadmaps .roadmaps-stage-track {
  --roadmaps-track-gap: 2.7rem;
  margin: 0;
  padding: 0;
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--roadmaps-track-gap) minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-row-cell {
  min-width: 0;
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-row-cell:empty {
  min-height: 1px;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-row-junction {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a8b8d8;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-stage-row.is-active .roadmaps-stage-row-junction {
  background: #5f82d0;
  transform: scale(1.08);
}

body.app-dashboard #section-roadmaps .roadmaps-node {
  position: relative;
  width: 100%;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-left {
  grid-column: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-right {
  grid-column: 2;
}

body.app-dashboard #section-roadmaps .roadmaps-node::before,
body.app-dashboard #section-roadmaps .roadmaps-node::after {
  content: "";
  position: absolute;
  top: 50%;
}

body.app-dashboard #section-roadmaps .roadmaps-node::before {
  width: calc(var(--roadmaps-track-gap) / 2);
  border-top: 1px solid #cfd7e9;
  transition: border-color 0.16s ease, border-top-width 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-node::after {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-left::before {
  right: calc(var(--roadmaps-track-gap) / -2);
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-left::after {
  right: calc(var(--roadmaps-track-gap) / -2);
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-right::before {
  left: calc(var(--roadmaps-track-gap) / -2);
}

body.app-dashboard #section-roadmaps .roadmaps-node-trigger {
  width: 100%;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0.34rem 0.52rem;
  display: flex;
  align-items: flex-start;
  gap: 0.56rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-node:hover::before,
body.app-dashboard #section-roadmaps .roadmaps-node:focus-within::before {
  border-top-color: #a9bad9;
  border-top-width: 2px;
}

body.app-dashboard #section-roadmaps .roadmaps-node:hover::after,
body.app-dashboard #section-roadmaps .roadmaps-node:focus-within::after {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-node-trigger:hover,
body.app-dashboard #section-roadmaps .roadmaps-node:focus-within .roadmaps-node-trigger {
  background: #f6f9ff;
  border-color: #d6e0f5;
}

body.app-dashboard #section-roadmaps .roadmaps-node-trigger:focus-visible {
  outline: none;
  border-color: #9bb5ec;
  box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.14);
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-active .roadmaps-node-trigger {
  background: #eef4ff;
  border-color: #9ab8f0;
  box-shadow: 0 8px 16px rgba(79, 110, 247, 0.18);
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-active::before {
  border-top-color: #7c9ad0;
  border-top-width: 2px;
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-active::after {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-recommended .roadmaps-node-trigger {
  border-color: #d7e2fa;
  background: rgba(79, 110, 247, 0.045);
}

body.app-dashboard #section-roadmaps .roadmaps-node-status {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 2px solid #bac7dd;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-node-status.is-in_progress {
  border-color: #d7b160;
  background: linear-gradient(90deg, #efcb75 50%, #ffffff 50%);
}

body.app-dashboard #section-roadmaps .roadmaps-node-status.is-done {
  border-color: #4677db;
  background: #4677db;
}

body.app-dashboard #section-roadmaps .roadmaps-node-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

body.app-dashboard #section-roadmaps .roadmaps-node-title {
  color: #213553;
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.app-dashboard #section-roadmaps .roadmaps-node-meta {
  align-self: flex-start;
  margin-top: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f3f6fd;
  color: #4e6186;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 0.4rem;
  white-space: nowrap;
  max-width: 100%;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  max-height: 0;
  transform: translateY(2px);
  transition: opacity 0.16s ease, visibility 0.16s ease, max-height 0.16s ease, padding 0.16s ease, margin-top 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-node:hover .roadmaps-node-meta,
body.app-dashboard #section-roadmaps .roadmaps-node:focus-within .roadmaps-node-meta,
body.app-dashboard #section-roadmaps .roadmaps-node.is-active .roadmaps-node-meta {
  max-height: 22px;
  opacity: 1;
  visibility: visible;
  padding: 0.12rem 0.44rem;
  margin-top: 0.2rem;
  border-color: #d4dded;
  transform: translateY(0);
}

body.app-dashboard #section-roadmaps .roadmaps-node.is-recommended:hover .roadmaps-node-meta,
body.app-dashboard #section-roadmaps .roadmaps-node.is-recommended:focus-within .roadmaps-node-meta,
body.app-dashboard #section-roadmaps .roadmaps-node.is-recommended.is-active .roadmaps-node-meta {
  border-color: #cbdaff;
  background: #eef4ff;
  color: #2e58c2;
}

body.app-dashboard #section-roadmaps .roadmaps-roadmap-empty {
  margin: 0;
  color: #607089;
  font-size: 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell {
  position: sticky;
  top: calc(var(--navbar-height) + 0.95rem);
  align-self: start;
  width: 100%;
  max-width: var(--roadmaps-inspector-width);
  min-width: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-backdrop {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
  --roadmaps-inspector-pad: 0.9rem;
  position: static;
  top: auto;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--navbar-height) - 2rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dde6f6;
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 14px 28px rgba(13, 22, 39, 0.06);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-header {
  padding: var(--roadmaps-inspector-pad);
  border-bottom: 1px solid #e5ebf6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.62rem;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-kicker {
  margin: 0;
  color: #7082a2;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-header h3 {
  margin: 0.22rem 0 0;
  color: #162744;
  font-size: 1.06rem;
  line-height: 1.3;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-header p {
  margin: 0.22rem 0 0;
  color: #5d6e8b;
  font-size: 0.86rem;
  line-height: 1.4;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-metadata {
  margin: 0.28rem 0 0;
  color: #4f617f;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-recommended {
  margin: 0.32rem 0 0;
  color: #2f5cbf;
  font-size: 0.78rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-close {
  border: 1px solid #d9e3f6;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f8faff;
  color: #415a8f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-close {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--roadmaps-inspector-pad);
  display: grid;
  gap: 0.78rem;
  overscroll-behavior: contain;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-body section h4 {
  margin: 0;
  color: #1c2d4a;
  font-size: 0.9rem;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-body section + section {
  border-top: 1px solid #edf1f8;
  padding-top: 0.62rem;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-body section p {
  margin: 0.2rem 0 0;
  color: #4f6180;
  font-size: 0.93rem;
  line-height: 1.45;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list {
  margin: 0.28rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.24rem;
  color: #4f6180;
  font-size: 0.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list a {
  color: #365fd6;
  text-decoration: none;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list a:hover {
  text-decoration: underline;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-more {
  margin-top: 0.08rem;
  border-top: 1px solid #edf1f8;
  padding-top: 0.56rem;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-more summary {
  list-style: none;
  cursor: pointer;
  color: #4f6180;
  font-size: 0.84rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-more summary::-webkit-details-marker {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-more[open] summary {
  margin-bottom: 0.56rem;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-footer {
  border-top: 1px solid #e5ebf6;
  padding: var(--roadmaps-inspector-pad);
  display: grid;
  gap: 0.4rem;
  background: #ffffff;
  position: static;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-complete {
  width: 100%;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel.is-empty .roadmaps-item-detail-body section:not(:first-child) {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel.is-empty .roadmaps-item-detail-footer {
  opacity: 0.55;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel.is-empty .roadmaps-item-detail-footer button {
  pointer-events: none;
}

body.app-dashboard #section-roadmaps .roadmaps-training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-main,
body.app-dashboard #section-roadmaps .roadmaps-training-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-card,
body.app-dashboard #section-roadmaps .roadmaps-training-sidebar-card {
  border: 1px solid #e3eaf8;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.88rem 0.94rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-card h3,
body.app-dashboard #section-roadmaps .roadmaps-training-sidebar-card h3 {
  margin: 0;
  font-size: 1.14rem;
  color: #1b2b48;
}

body.app-dashboard #section-roadmaps .roadmaps-training-card p {
  margin: 0.3rem 0 0;
  color: #5f6f8d;
  font-size: 0.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-timeline {
  margin: 0.68rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-timeline li {
  border-left: 2px solid #d5def3;
  padding-left: 0.56rem;
  display: grid;
  gap: 0.14rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-timeline strong {
  color: #243554;
  font-size: 0.84rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-timeline span,
body.app-dashboard #section-roadmaps .roadmaps-training-years {
  color: #576784;
  font-size: 0.84rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-years {
  margin: 0.68rem 0 0;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-training-stage-grid {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.52rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-stage-head h4 {
  margin: 0;
  color: #263655;
  font-size: 0.89rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-stage-head span {
  color: #596b8b;
  font-size: 0.84rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-training-stage-track {
  margin-top: 0.2rem;
  height: 7px;
  border-radius: 999px;
  background: #e7edf8;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-training-stage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #7b9bff, #4f6ef7);
}

body.app-dashboard #section-roadmaps .roadmaps-training-sidebar-card dl {
  margin: 0.62rem 0 0;
  display: grid;
  gap: 0.38rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-sidebar-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-sidebar-card dt {
  color: #5f6f8c;
  font-size: 0.8rem;
}

body.app-dashboard #section-roadmaps .roadmaps-training-sidebar-card dd {
  margin: 0;
  color: #1b2b48;
  font-size: 0.83rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-training-sidebar-card ul {
  margin: 0.62rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.28rem;
  color: #344565;
  font-size: 0.83rem;
}

@media (max-width: 1280px) {
  body.app-dashboard #section-roadmaps .roadmaps-detail-view {
    --roadmaps-inspector-width: clamp(336px, 33vw, 368px);
  }

  body.app-dashboard #section-roadmaps .roadmaps-roadmap-layout {
    grid-template-columns: minmax(0, 1fr) var(--roadmaps-inspector-width);
  }

  body.app-dashboard #section-roadmaps .roadmaps-training-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.app-dashboard #section-roadmaps .roadmaps-detail-heading {
    padding: 0.9rem 0.95rem 0.84rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-roadmap-layout {
    grid-template-columns: 1fr;
    padding: 0.82rem 0.9rem 0.98rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-roadmap-canvas {
    padding: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-legend {
    margin: 0.06rem 0 0.54rem;
    gap: 0.48rem 1.2rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap {
    --roadmaps-axis-x: 14px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap::before {
    left: 14px;
    transform: none;
    top: 0.22rem;
    bottom: 0.55rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-header {
    justify-content: flex-start;
    padding-left: 1.72rem;
    margin-bottom: 0.4rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-header::before {
    left: 14px;
    transform: translate(-50%, -50%);
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-header h3 {
    background: transparent;
    padding: 0;
    font-size: 1.13rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-track {
    gap: 0.16rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-row {
    display: block;
    position: relative;
    padding-left: 1.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-row-cell {
    min-height: 1px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-row-cell:empty {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-row-junction {
    position: absolute;
    left: 14px;
    top: 0.95rem;
    transform: translate(-50%, -50%);
  }

  body.app-dashboard #section-roadmaps .roadmaps-node {
    width: 100%;
    margin: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node.is-left,
  body.app-dashboard #section-roadmaps .roadmaps-node.is-right {
    margin: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node::before {
    left: -0.86rem;
    right: auto;
    width: 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell {
    position: fixed;
    inset: 0;
    z-index: 1300;
    border: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    background: transparent;
    top: auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell.is-open {
    pointer-events: auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(12, 18, 33, 0.48);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell.is-open .roadmaps-item-detail-backdrop {
    opacity: 1;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(336px, 100%);
    max-height: none;
    border-left: 1px solid #e4eaf4;
    background: #fcfdff;
    border-radius: 0;
    transform: translateX(102%);
    transition: transform 0.24s ease;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell.is-open .roadmaps-item-detail-panel {
    transform: translateX(0);
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle {
    padding: 0 0.95rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node-title {
    font-size: 1.02rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-close {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-detail-heading h2 {
    font-size: 1.68rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle {
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-header h3 {
    font-size: 1.06rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node-title {
    font-size: 0.93rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node-meta {
    font-size: 0.68rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-legend {
    font-size: 0.78rem;
    gap: 0.42rem 0.95rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
    width: 100%;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(82vh, 640px);
    border-left: none;
    border-top: 1px solid #e4eaf4;
    border-radius: 16px 16px 0 0;
    transform: translateY(102%);
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell.is-open .roadmaps-item-detail-panel {
    transform: translateY(0);
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-header {
    padding: 0.82rem 0.88rem 0.68rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-body {
    padding: 0.8rem 0.88rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-footer {
    padding: 0.7rem 0.88rem 0.84rem;
  }
}

/* ROADMAPS MOBILE COMPATIBILITY PASS */
@media (max-width: 980px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-fullscreen-toggle {
    display: none;
  }

  body.app-dashboard:has(#section-roadmaps.is-active) .app-inner {
    padding: 0 0.8rem;
  }

  body.app-dashboard .roadmaps-page {
    padding: 0.95rem 0.82rem 1.16rem;
  }

  body.app-dashboard #section-roadmaps #roadmaps-list-view,
  body.app-dashboard #section-roadmaps .roadmaps-detail-view {
    border-radius: 16px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header {
    padding: 1.08rem 1rem 0.96rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header .card-subtitle {
    margin-top: 0.46rem;
    font-size: 0.9rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tabs {
    display: flex;
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    margin: 0 1rem 0.82rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tabs::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.app-dashboard #section-roadmaps .roadmaps-toolbar {
    padding: 0.88rem 1rem;
    gap: 0.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-filter-chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.04rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-filter-chips::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.04rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item {
    flex: 0 0 auto;
    min-width: 150px;
  }

  body.app-dashboard #section-roadmaps #roadmaps-year-back-current {
    width: 100%;
    justify-content: center;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-support-grid {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-actions {
    width: 100%;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body.app-dashboard #section-roadmaps .roadmaps-roadmap-layout {
    gap: 0.8rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
    width: min(380px, 100%);
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-view {
    gap: 0.78rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-roadmap-links .btn {
    flex: 1 1 220px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-panel--full {
    margin: 0.76rem 0.82rem;
  }
}

@media (max-width: 700px) {
  body.app-dashboard #section-roadmaps .roadmaps-page-header h2 {
    font-size: 1.62rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header .card-subtitle {
    font-size: 0.86rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-toolbar {
    padding: 0.82rem 0.9rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-body {
    padding: 0.62rem;
    gap: 0.56rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-row {
    border-radius: 12px;
    gap: 0.5rem;
    padding: 0.74rem 0.78rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-table-cell::before {
    font-size: 0.6rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-trait {
    font-size: 0.76rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-pane {
    padding: 0.8rem 0.9rem 0.9rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card {
    border-radius: 13px;
    padding: 0.74rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card--overview {
    padding: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-overview-shell {
    gap: 0.68rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card-head--timeline,
  body.app-dashboard #section-roadmaps .roadmaps-year-timeline,
  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    padding-left: 0.82rem;
    padding-right: 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline {
    padding-top: 0.86rem;
    padding-bottom: 0.7rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    padding-top: 0.84rem;
    padding-bottom: 0.88rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-header {
    gap: 0.45rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-meta {
    gap: 0.56rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface {
    --roadmaps-year-label-col: 74px;
    --roadmaps-year-lane-gap: 0.62rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-gridlines,
  body.app-dashboard #section-roadmaps .roadmaps-year-now,
  body.app-dashboard #section-roadmaps .roadmaps-year-axis,
  body.app-dashboard #section-roadmaps .roadmaps-year-lanes {
    min-width: 620px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-lane {
    grid-template-columns: var(--roadmaps-year-label-col) minmax(0, 1fr);
    gap: var(--roadmaps-year-lane-gap);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-item {
    padding: 0.5rem 0.62rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-item-summary {
    margin-top: 0.24rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-item-summary-pill {
    font-size: 0.68rem;
    padding: 0.16rem 0.4rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-list-item,
  body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
    border-radius: 10px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
    max-height: min(88vh, 680px);
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-section-header {
    padding: 0.66rem 0.76rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-two-col {
    padding: 0.66rem 0.76rem;
    gap: 0.6rem;
  }
}

@media (max-width: 540px) {
  body.app-dashboard:has(#section-roadmaps.is-active) .app-inner {
    padding: 0 0.64rem;
  }

  body.app-dashboard .roadmaps-page {
    padding: 0.88rem 0.68rem 1.02rem;
  }

  body.app-dashboard #section-roadmaps #roadmaps-list-view,
  body.app-dashboard #section-roadmaps .roadmaps-detail-view {
    border-radius: 14px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header {
    padding: 0.94rem 0.84rem 0.78rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header h2 {
    font-size: 1.48rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tabs {
    width: calc(100% - 1.68rem);
    max-width: calc(100% - 1.68rem);
    margin: 0 0.84rem 0.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tab {
    padding: 0.4rem 0.64rem;
    font-size: 0.84rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-toolbar {
    padding: 0.76rem 0.84rem;
    gap: 0.6rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-search {
    min-height: 44px;
    padding: 0.48rem 0.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-search input {
    font-size: 0.92rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-filter-chip {
    font-size: 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-pane {
    padding: 0.74rem 0.82rem 0.86rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item {
    min-width: 136px;
    padding: 0.4rem 0.52rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card-head--timeline {
    gap: 0.6rem;
    padding-top: 0.86rem;
    padding-bottom: 0.78rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface {
    --roadmaps-year-label-col: 82px;
    --roadmaps-year-lane-gap: 0.66rem;
    padding: 0.96rem 0.76rem 0.8rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-gridlines,
  body.app-dashboard #section-roadmaps .roadmaps-year-now,
  body.app-dashboard #section-roadmaps .roadmaps-year-axis,
  body.app-dashboard #section-roadmaps .roadmaps-year-lanes {
    min-width: 560px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-lane-track {
    min-height: 64px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-item {
    min-width: 92px;
    padding: 0.58rem 0.66rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-item-title {
    font-size: 0.84rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-item-meta {
    font-size: 0.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy h4 {
    font-size: 1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-heading {
    padding: 0.78rem 0.82rem 0.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-heading h2 {
    font-size: 1.44rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle {
    gap: 0.84rem;
    padding: 0 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab {
    font-size: 0.87rem;
    padding: 0.68rem 0.1rem 0.6rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-legend {
    font-size: 0.74rem;
    gap: 0.34rem 0.72rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap {
    --roadmaps-axis-x: 12px;
    padding: 0.1rem 0 0.66rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap::before {
    left: 12px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-header {
    padding-left: 1.48rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-header::before {
    left: 12px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-row {
    padding-left: 1.48rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-stage-row-junction {
    left: 12px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node::before {
    left: -0.72rem;
    width: 0.68rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node-trigger {
    border-radius: 9px;
    padding: 0.3rem 0.42rem;
    gap: 0.48rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node-title {
    font-size: 0.9rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-node-meta {
    font-size: 0.66rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
    max-height: min(90vh, 760px);
    border-radius: 14px 14px 0 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-header {
    padding: 0.72rem 0.76rem 0.62rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-body {
    padding: 0.7rem 0.76rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-footer {
    padding: 0.64rem 0.76rem 0.78rem;
  }
}

/* Roadmaps year workspace refinement */
body.app-dashboard:has(#section-roadmaps.is-active) .app-inner {
  max-width: none;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

body.app-dashboard .roadmaps-page {
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps.roadmaps-page {
  padding: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps #roadmaps-list-view {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

body.app-dashboard #section-roadmaps .roadmaps-page-header {
  padding: 0 0 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-page-header h2 {
  font-size: clamp(2.05rem, 2.6vw, 2.85rem);
}

body.app-dashboard #section-roadmaps .roadmaps-category-tabs {
  margin: 0;
  border-bottom-color: #dce3ee;
}

body.app-dashboard #section-roadmaps .roadmaps-year-pane {
  padding: 1rem 0 1.35rem;
  background: transparent;
  border-top: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-toolbar {
  margin-bottom: 0.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-layout {
  gap: 0.82rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card--overview {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card-head--timeline {
  padding: 0.42rem 0 0.78rem;
  border-bottom: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card-head h3 {
  font-size: 1.2rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-card-head p {
  max-width: 62rem;
  font-size: 0.9rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline {
  padding: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-meta {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
  padding: 1.08rem 0.95rem 0.88rem;
  box-shadow: 0 14px 28px rgba(20, 36, 66, 0.04);
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis {
  height: 1.32rem;
  margin-bottom: 0.92rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis .roadmaps-year-month {
  color: #071b4d;
  font-size: 0.82rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  min-height: 166px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-track-line {
  top: 66px;
  background: #bdc8da;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block {
  top: 30px;
  min-height: 70px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 8px 18px rgba(18, 35, 64, 0.04);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-block:focus-visible,
body.app-dashboard #section-roadmaps .roadmaps-year-break:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-break:focus-visible,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone:focus-visible {
  outline: none;
  border-color: #7ea4f7;
  box-shadow: 0 12px 24px rgba(7, 95, 240, 0.1);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-title {
  font-size: 0.9rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-window,
body.app-dashboard #section-roadmaps .roadmaps-year-block-current {
  font-size: 0.76rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break {
  top: 116px;
  padding: 0.32rem 0.54rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  top: calc(12px + (var(--roadmaps-year-milestone-row, 0) * 66px));
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail {
  margin: 0.78rem 0 0;
  padding: 0.82rem 0.92rem;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.84rem;
  align-items: center;
  box-shadow: 0 12px 24px rgba(20, 36, 66, 0.04);
}

body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #f4f8ff;
  color: #075ff0;
  display: grid;
  place-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon svg {
  width: 25px;
  height: 25px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.82rem;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-header {
  margin: 0 0 0.2rem;
  justify-content: flex-start;
  gap: 0.5rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-kicker {
  color: #075ff0;
  font-size: 0.68rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-window {
  color: #5d6f8b;
  font-size: 0.75rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy h4 {
  font-size: 1.05rem;
  line-height: 1.2;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy p {
  margin-top: 0.32rem;
  max-width: 48rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy .roadmaps-year-detail-meta-line {
  margin-top: 0.2rem;
  color: #334a6f;
  font-size: 0.8rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.46rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chip {
  border: 1px solid #dce5f3;
  border-radius: 6px;
  background: #f8fbff;
  color: #243d70;
  padding: 0.4rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chip.is-current,
body.app-dashboard #section-roadmaps .roadmaps-year-detail-chip.is-week {
  border-color: #d6e4ff;
  background: #eef5ff;
  color: #075ff0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chip.is-completed {
  border-color: #d5eadf;
  background: #effaf4;
  color: #137147;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chip.is-upcoming {
  background: #f8fafc;
  color: #52637d;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chip.is-progress {
  border-color: #ffe1bf;
  background: #fff7ed;
  color: #d45a00;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions {
  margin: 0;
  padding: 0;
  border-top: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions .btn {
  min-height: 40px;
  padding: 0.52rem 0.78rem;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-empty {
  grid-column: 1 / -1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 0.82rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card {
  padding: 0.82rem 0.88rem;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(20, 36, 66, 0.035);
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card-head h3 {
  font-size: 0.98rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card-head p {
  margin-top: 0.18rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list,
body.app-dashboard #section-roadmaps .roadmaps-year-focus {
  margin-top: 0.54rem;
  gap: 0.42rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
  border-color: #e2e9f4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 0.56rem 0.66rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head h4 {
  font-size: 0.86rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head span {
  font-size: 0.72rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item p {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-divider {
  margin: 0.68rem 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-wrap h4 {
  font-size: 0.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
  font-size: 0.8rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-item::before {
  top: 0.78rem;
}

@media (max-width: 1180px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions {
    grid-column: 2;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-main {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-chips {
    justify-content: flex-start;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body.app-dashboard:has(#section-roadmaps.is-active) .app-inner {
    padding: 0 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header {
    padding-top: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-pane {
    padding-top: 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    grid-template-columns: 1fr;
    gap: 0.68rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions {
    grid-column: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions .btn {
    flex: 1 1 180px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-support-grid {
    grid-template-columns: 1fr;
  }
}

body.app-dashboard .tips-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.2rem;
  align-items: start;
}

body.app-dashboard .tips-content-grid.tips-content-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

body.app-dashboard .tips-main {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

body.app-dashboard .tips-tricks-header {
  align-items: center;
}

body.app-dashboard .tips-tricks-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

body.app-dashboard .tips-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f6ef7;
}

body.app-dashboard .tips-collapse-btn {
  border: 1px solid #e2e8ff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  line-height: 1;
}

body.app-dashboard .tips-tricks-body.is-hidden {
  display: none;
}

body.app-dashboard .tips-accordion {
  border: 1px solid #e9edff;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

body.app-dashboard .tips-accordion + .tips-accordion {
  margin-top: 0.8rem;
}

body.app-dashboard .tips-accordion-header {
  width: 100%;
  border: none;
  background: #f7f9ff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

body.app-dashboard .tips-accordion-chevron {
  margin-left: auto;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

body.app-dashboard .tips-accordion.is-open .tips-accordion-chevron {
  transform: rotate(180deg);
}

body.app-dashboard .tips-accordion-body {
  display: none;
  padding: 0.9rem 1rem 1rem;
  background: #ffffff;
}

body.app-dashboard .tips-accordion.is-open .tips-accordion-body {
  display: block;
}

body.app-dashboard .tips-accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f6ef7;
}

body.app-dashboard .tips-accordion-icon--clinician {
  background: #ecfdf5;
  color: #16a34a;
}

body.app-dashboard .tips-accordion-icon--document {
  background: #eef2ff;
  color: #6366f1;
}

body.app-dashboard .tips-pill-list,
body.app-dashboard .tips-signoff-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.app-dashboard .tips-pill {
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  border: 1px solid #e9edff;
  background: #f8f9ff;
  font-size: 0.9rem;
  color: #1f2937;
}

body.app-dashboard .tips-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f6ef7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.app-dashboard .tips-pill-icon svg {
  width: 12px;
  height: 12px;
}

body.app-dashboard .tips-pill-icon--clinician {
  background: #ecfdf5;
  color: #16a34a;
}

body.app-dashboard .tips-signoff-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eef2ff;
  font-size: 0.9rem;
  color: #1f2937;
}

body.app-dashboard .tips-signoff-list li:last-child {
  border-bottom: none;
}

body.app-dashboard .tips-notes-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e2e8ff;
  padding: 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fbfcff;
}

body.app-dashboard .tips-notes-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

body.app-dashboard .tips-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.app-dashboard .tips-contact-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

body.app-dashboard .tips-contact-name {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .tips-contact-role {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.app-dashboard .tips-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.app-dashboard .tips-contact-item {
  font-size: 0.85rem;
  color: #4f6ef7;
  text-decoration: none;
}

@media (max-width: 1100px) {
  body.app-dashboard .tips-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Tips & advice redesign */
body.app-dashboard #section-tips .tips-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

body.app-dashboard #section-tips .tips-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

body.app-dashboard #section-tips .tips-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-tips .tips-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e2e8ff;
  background: #ffffff;
  min-width: 240px;
  max-width: 360px;
  width: 100%;
  color: #64748b;
}

body.app-dashboard #section-tips .tips-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  width: 100%;
  color: #111827;
}

body.app-dashboard #section-tips .tips-search-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

body.app-dashboard #section-tips .tips-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.8rem;
  align-items: start;
}

body.app-dashboard #section-tips .tips-saved-page {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

body.app-dashboard #section-tips .tips-saved-page.is-hidden {
  display: none;
}

body.app-dashboard #section-tips.is-saved-view .tips-layout {
  display: none;
}

body.app-dashboard #section-tips.is-saved-view .tips-actions-row {
  display: none;
}

body.app-dashboard #section-tips.is-saved-view .tips-saved-page {
  display: flex;
}


body.app-dashboard #section-tips .tips-saved-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

body.app-dashboard #section-tips .tips-saved-page-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

body.app-dashboard #section-tips .tips-saved-page-subtitle {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

body.app-dashboard #section-tips .tips-saved-page-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

body.app-dashboard #section-tips .tips-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.app-dashboard #section-tips .tips-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

body.app-dashboard #section-tips .tips-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

body.app-dashboard #section-tips .tips-section-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1f2937;
}

body.app-dashboard #section-tips .tips-featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  border: 1px solid #e7edff;
}

body.app-dashboard #section-tips .tips-featured-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f6ff;
  border-radius: 16px;
  padding: 0.6rem;
  min-height: 140px;
}

body.app-dashboard #section-tips .tips-featured-illustration svg {
  width: 100%;
  height: auto;
}

body.app-dashboard #section-tips .tips-featured-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.app-dashboard #section-tips .tips-featured-content h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}

body.app-dashboard #section-tips .tips-featured-content p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

body.app-dashboard #section-tips .tips-featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.app-dashboard #section-tips .tips-featured-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.app-dashboard #section-tips .tips-bookmark-btn {
  border: 1px solid #e2e8ff;
  background: #f8f9ff;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.app-dashboard #section-tips .tips-bookmark-btn svg {
  width: 16px;
  height: 16px;
}

body.app-dashboard #section-tips .tips-bookmark-btn.is-saved {
  color: #f59e0b;
  background: #fff4db;
  border-color: #fde68a;
}

body.app-dashboard #section-tips .tips-featured-card .tips-bookmark-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

body.app-dashboard #section-tips .tips-pill {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  border: 1px solid #e9edff;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  padding-right: 2.6rem;
}

body.app-dashboard #section-tips .tips-pill.is-hidden {
  display: none;
}

body.app-dashboard #section-tips .tips-pill--saved {
  padding: 1.05rem 1.1rem;
  align-items: flex-start;
}

body.app-dashboard #section-tips .tips-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f6ef7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.app-dashboard #section-tips .tips-pill-icon svg,
body.app-dashboard #section-tips .tips-topic-icon svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-tips .tips-pill-icon--clinician {
  background: #ecfdf5;
  color: #16a34a;
}

body.app-dashboard #section-tips .tips-pill-icon--signoff {
  background: #fef3c7;
  color: #b45309;
}

body.app-dashboard #section-tips .tips-pill-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

body.app-dashboard #section-tips .tips-pill-title {
  font-weight: 500;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.35;
}

body.app-dashboard #section-tips .tips-pill-preview {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

body.app-dashboard #section-tips .tips-pill-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}

body.app-dashboard #section-tips .tips-pill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.app-dashboard #section-tips .tips-pill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f6ef7;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard #section-tips .tips-pill .tips-bookmark-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

body.app-dashboard #section-tips .tips-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.app-dashboard #section-tips .tips-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

body.app-dashboard #section-tips .tips-latest-list {
  display: contents;
}

body.app-dashboard #section-tips .tips-saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

body.app-dashboard #section-tips .tips-empty {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px dashed #dbe3ff;
  background: #f8f9ff;
  color: #94a3b8;
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

body.app-dashboard #section-tips .tips-notes-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e2e8ff;
  padding: 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fbfcff;
}

body.app-dashboard #section-tips .tips-notes-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

body.app-dashboard #section-tips .tips-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

body.app-dashboard #section-tips .tips-saved-meta {
  margin: 0.5rem 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

body.app-dashboard #section-tips .tips-saved-pill,
body.app-dashboard #section-tips .tips-suggestion-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f6ef7;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard #section-tips .tips-saved-header .tips-bookmark-btn {
  position: static;
}

body.app-dashboard #section-tips .tips-topics {
  border: 1px solid #e7edff;
}

body.app-dashboard #section-tips .tips-topics-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.app-dashboard #section-tips .tips-topic-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e9edff;
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  background: #f8f9ff;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

body.app-dashboard #section-tips .tips-topic-item:hover {
  border-color: #dbe3ff;
  background: #f1f5ff;
}

body.app-dashboard #section-tips .tips-topic-item.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #1d4ed8;
}

body.app-dashboard #section-tips .tips-topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4f6ef7;
  background: #eef2ff;
}

body.app-dashboard #section-tips .tips-topic-icon--clinician {
  background: #ecfdf5;
  color: #16a34a;
}

body.app-dashboard #section-tips .tips-topic-icon--signoff {
  background: #fff7ed;
  color: #ea580c;
}

body.app-dashboard #section-tips .tips-topic-icon--skills {
  background: #fef3c7;
  color: #b45309;
}

body.app-dashboard #section-tips .tips-topic-icon--exam {
  background: #ffe4e6;
  color: #db2777;
}

body.app-dashboard #section-tips .tips-topic-chevron {
  margin-left: auto;
  color: #94a3b8;
}

body.app-dashboard #section-tips .tips-topics-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: #4f6ef7;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

body.app-dashboard #section-tips .tips-suggestion {
  border: 1px solid #e7edff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.app-dashboard #section-tips .tips-suggestion h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

body.app-dashboard #section-tips .tips-suggestion p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

@media (max-width: 1100px) {
  body.app-dashboard #section-tips .tips-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.app-dashboard #section-tips .tips-featured-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  body.app-dashboard #section-tips .tips-featured-action {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body.app-dashboard #section-tips .tips-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.app-dashboard #section-tips .tips-search {
    max-width: none;
  }

body.app-dashboard #section-tips .tips-latest-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-tips .tips-saved-page-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

}

body.app-dashboard .placement-details-page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.05rem 1.2rem 1.25rem;
}

body.app-dashboard:not(.pf-frame-v1):has(#section-placement-details.is-active) .app-inner {
  max-width: 1480px;
  padding: 0 1.25rem;
}

body.app-dashboard .placement-details-header {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  margin-bottom: 1rem;
}

body.app-dashboard .placement-details-header h2 {
  margin: 0;
  font-size: clamp(2.15rem, 3vw, 3rem);
  letter-spacing: -0.02em;
  color: #13253f;
}

body.app-dashboard .placement-details-header .card-subtitle {
  margin: 0;
  color: #4f5f78;
  font-size: 1.05rem;
}

body.app-dashboard .placement-details-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #7e8ea9;
}

body.app-dashboard .placement-breadcrumb-link {
  background: none;
  border: none;
  padding: 0;
  color: #3f5787;
  font-weight: 500;
  cursor: pointer;
}

body.app-dashboard .placement-details-meta-row {
  display: none;
}

body.app-dashboard .placement-details-supervisor-inline {
  margin: 0;
  color: rgba(233, 241, 255, 0.96);
  font-size: 1rem;
}

body.app-dashboard .placement-details-empty {
  margin: 0 0 1rem;
  color: #8090a9;
  font-size: 0.95rem;
}

body.app-dashboard .placement-details-main {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

body.app-dashboard .placement-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.15rem;
  align-items: start;
}

body.app-dashboard .placement-details-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #dde4f2;
  min-height: 320px;
  background: #1d2b45;
}

body.app-dashboard .placement-details-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-height: 320px;
}

body.app-dashboard .placement-details-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 23, 42, 0.78) 0%, rgba(12, 23, 42, 0.53) 44%, rgba(12, 23, 42, 0.2) 80%),
    linear-gradient(0deg, rgba(8, 15, 28, 0.4) 0%, rgba(8, 15, 28, 0.1) 100%);
}

body.app-dashboard .placement-details-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  padding: 1.2rem 1.35rem 1.25rem;
}

body.app-dashboard .placement-details-info h3 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.app-dashboard .placement-details-hero-site {
  margin: 0;
  color: rgba(239, 245, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 500;
}

body.app-dashboard .placement-details-row {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: rgba(236, 243, 255, 0.95);
}

body.app-dashboard .placement-details-dates {
  font-weight: 600;
}

body.app-dashboard .placement-details-progress-text {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: #5f6f8a;
}

body.app-dashboard .placement-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: 0.15rem;
}

body.app-dashboard .placement-details-actions .btn {
  min-height: 42px;
  padding: 0.6rem 1.18rem;
  border-radius: 999px;
  font-weight: 600;
}

body.app-dashboard .placement-details-actions .btn.secondary {
  border-color: rgba(193, 208, 242, 0.92);
  background: rgba(246, 249, 255, 0.92);
  color: #2a3d62;
}

body.app-dashboard .placement-task-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.app-dashboard .placement-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  border: 1px solid #e9edff;
  background: #fbfcff;
  font-size: 0.9rem;
  color: #1f2937;
}

body.app-dashboard .placement-task-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body.app-dashboard .placement-details-tabs-card {
  border: 1px solid #dde4f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  padding: 0.95rem 1.05rem 1.05rem;
}

body.app-dashboard .placement-details-tabs {
  margin-top: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e7edf8;
  gap: 1.6rem;
}

body.app-dashboard .placement-details-tab-panel {
  display: none;
  margin-top: 0.9rem;
}

body.app-dashboard .placement-details-tab-panel.is-active {
  display: block;
}

body.app-dashboard .placement-details-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

body.app-dashboard .placement-details-stat {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid #e4eaf5;
}

body.app-dashboard .placement-details-stat-label {
  margin: 0 0 0.22rem;
  color: #607089;
  font-size: 0.86rem;
  font-weight: 500;
}

body.app-dashboard .placement-details-stat-value {
  margin: 0;
  color: #1a2c48;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

body.app-dashboard .placement-details-progress {
  margin-bottom: 0.9rem;
}

body.app-dashboard .placement-details-overview-block {
  border-top: 1px solid #e7edf8;
  padding-top: 0.9rem;
  margin-top: 0.9rem;
}

body.app-dashboard .placement-details-overview-block h3 {
  margin: 0;
  color: #1a2c48;
  font-size: 1.1rem;
}

body.app-dashboard .placement-details-overview-text {
  margin: 0.55rem 0 0;
  color: #4f607c;
  line-height: 1.46;
}

body.app-dashboard .placement-details-overview-contact-list {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.app-dashboard .placement-details-goals-text {
  margin: 0 0 0.8rem;
  color: #4f607c;
}

body.app-dashboard .placement-details-goals-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dbe5f6;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
}

body.app-dashboard .placement-details-goals-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

body.app-dashboard .placement-student-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.app-dashboard .placement-student-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid #e9edff;
  background: #ffffff;
}

body.app-dashboard .placement-student-info {
  flex: 1;
}

body.app-dashboard .placement-student-name {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-student-meta {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.app-dashboard .placement-student-progress {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  font-size: 0.8rem;
  color: #64748b;
}

body.app-dashboard .placement-details-empty-state {
  margin: 0.9rem 0 0;
  color: #8090aa;
}

body.app-dashboard .placement-details-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard .placement-details-panel {
  border: 1px solid #dde4f2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  padding: 1rem 1.05rem 1.05rem;
}

body.app-dashboard .placement-details-contact h3,
body.app-dashboard .placement-details-hospital-panel h3 {
  margin: 0;
  color: #1a2c48;
  font-size: 1.95rem;
  letter-spacing: -0.015em;
}

body.app-dashboard .placement-details-contact-person,
body.app-dashboard .placement-details-supervisor-block {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  margin-top: 0.88rem;
}

body.app-dashboard .placement-details-contact-name,
body.app-dashboard .placement-details-supervisor-name {
  margin: 0;
  font-weight: 600;
  color: #142640;
  text-decoration: none;
  font-size: 1.05rem;
}

body.app-dashboard .placement-details-contact-role,
body.app-dashboard .placement-details-supervisor-role {
  margin: 0.18rem 0 0;
  font-size: 0.93rem;
  color: #637390;
}

body.app-dashboard .placement-details-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  margin-top: 0.85rem;
}

body.app-dashboard .placement-details-contact-item {
  font-size: 0.96rem;
  color: #1f3f89;
  text-decoration: none;
}

body.app-dashboard .placement-details-contact-address {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: #60708d;
}

body.app-dashboard .placement-details-message-btn,
body.app-dashboard .placement-details-map-btn {
  margin-top: 0.95rem;
  width: 100%;
}

body.app-dashboard .placement-details-hospital-name {
  margin: 0.75rem 0 0;
  color: #142640;
  font-size: 1.15rem;
  font-weight: 600;
}

body.app-dashboard .placement-details-hospital-photo {
  margin-top: 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f4;
  background: #f2f5fc;
}

body.app-dashboard .placement-details-hospital-photo img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}

body.app-dashboard .placement-details-map-btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1100px) {
  body.app-dashboard .placement-details-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-dashboard .placement-details-info h3 {
    font-size: clamp(1.45rem, 5vw, 2.2rem);
  }

  body.app-dashboard .placement-details-tabs {
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  body.app-dashboard .placement-details-page {
    padding: 0.85rem 0.82rem 1rem;
  }

  body.app-dashboard .placement-details-header h2 {
    font-size: 1.85rem;
  }

  body.app-dashboard .placement-details-header .card-subtitle {
    font-size: 0.96rem;
  }

  body.app-dashboard .placement-details-hero {
    min-height: 286px;
  }

  body.app-dashboard .placement-details-photo img {
    min-height: 286px;
  }

  body.app-dashboard .placement-details-info {
    padding: 0.92rem 0.96rem 1.02rem;
  }

  body.app-dashboard .placement-details-hero-site,
  body.app-dashboard .placement-details-row,
  body.app-dashboard .placement-details-supervisor-inline {
    font-size: 0.92rem;
  }

  body.app-dashboard .placement-details-actions .btn {
    flex: 1 1 100%;
  }

  body.app-dashboard .placement-details-tabs-card {
    padding: 0.86rem 0.82rem 0.92rem;
  }

  body.app-dashboard .placement-details-tabs {
    flex-wrap: wrap;
    gap: 0.82rem 1rem;
  }

  body.app-dashboard .placement-details-side {
    display: flex;
    grid-template-columns: none;
  }

  body.app-dashboard .placement-details-contact h3,
  body.app-dashboard .placement-details-hospital-panel h3 {
    font-size: 1.55rem;
  }
}

body.app-dashboard .placement-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

body.app-dashboard .placement-page-header h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-search-row {
  margin-bottom: 1.6rem;
}

body.app-dashboard .placement-search {
  display: block;
}

body.app-dashboard .placement-search input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background-color: #f1f4ff;
  font-size: 0.95rem;
  color: #1f2937;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
  background-size: 1rem 1rem;
}

body.app-dashboard .placement-search input:focus {
  outline: none;
  border-color: #c7d2fe;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

body.app-dashboard .placement-tabs,
body.app-dashboard .placement-subtabs {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-bottom: 0.8rem;
}

body.app-dashboard .placement-tabs {
  border-bottom: 1px solid #e2e8f0;
}

body.app-dashboard .placement-subtabs {
  margin-top: 1.2rem;
  border-bottom: 1px solid #eef2ff;
}

body.app-dashboard .placement-details-tabs.placement-subtabs {
  margin-top: 0;
  gap: 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e7edf8;
}

body.app-dashboard .placement-tab,
body.app-dashboard .placement-subtab {
  background: transparent;
  border: none;
  padding: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

body.app-dashboard .placement-tab.is-active,
body.app-dashboard .placement-subtab.is-active {
  color: #1f2937;
  border-bottom-color: #4f6ef7;
}

body.app-dashboard .placement-view-panel {
  display: none;
  margin-top: 1.8rem;
}

body.app-dashboard .placement-view-panel.is-active {
  display: block;
}

body.app-dashboard .placement-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.2rem;
  align-items: start;
}

body.app-dashboard .placement-content-grid.placement-details-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.15rem;
}

body.app-dashboard .placement-content-grid.placement-content-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

body.app-dashboard .placement-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  padding: 0.2rem 0.1rem;
}

body.app-dashboard .placement-card {
  display: block;
  padding: 1.45rem 1.5rem 1.35rem;
  border-radius: 20px;
  border: 1px solid #e6ebf5;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.app-dashboard .placement-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-color: #dbe4f3;
}

body.app-dashboard .placement-card-main {
  min-width: 0;
}

body.app-dashboard .placement-card-main h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.2;
  color: #172554;
}

body.app-dashboard .placement-card-kicker {
  margin: 0 0 0.42rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b8aa5;
}

body.app-dashboard .placement-card-meta {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: #52627d;
}

body.app-dashboard .placement-card-dates {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.app-dashboard .placement-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

body.app-dashboard .placement-card-heading {
  min-width: 0;
}

body.app-dashboard .placement-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #dbe5f0;
  background: #f8fafc;
  color: #4b5d79;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard .placement-card-status--current {
  border-color: #d7e6c6;
  background: #f5fbef;
  color: #41633a;
}

body.app-dashboard .placement-card-status--upcoming {
  border-color: #dbe6f8;
  background: #f7faff;
  color: #35568b;
}

body.app-dashboard .placement-card-status--completed {
  border-color: #e6e9ef;
  background: #fafbfc;
  color: #67768d;
}

body.app-dashboard .placement-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

body.app-dashboard .placement-card-detail {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fbfcfe;
}

body.app-dashboard .placement-card-detail-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

body.app-dashboard .placement-card-detail-value {
  color: #24364f;
  font-size: 0.94rem;
  font-weight: 600;
}

body.app-dashboard .placement-card-focus-block {
  margin-top: 0.95rem;
  padding: 0.9rem 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

body.app-dashboard .placement-card-focus {
  margin: 0.4rem 0 0;
  color: #44566f;
  font-size: 0.96rem;
  line-height: 1.55;
}

body.app-dashboard .placement-card-journey {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  background: #fbfcfe;
}

body.app-dashboard .placement-card-journey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

body.app-dashboard .placement-card-journey-caption {
  font-size: 0.82rem;
  color: #3f62a5;
  font-weight: 500;
}

body.app-dashboard .placement-card-journey-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #e7edf7;
  overflow: visible;
}

body.app-dashboard .placement-card-journey-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8db6ff 0%, #4f6ef7 100%);
}

body.app-dashboard .placement-card-journey-marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #4f6ef7;
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.16);
  transform: translate(-50%, -50%);
}

body.app-dashboard .placement-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

body.app-dashboard .placement-card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #3357a4;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

body.app-dashboard .placement-card-action-link:hover {
  color: #1d4ed8;
}

body.app-dashboard .placement-card-action-link:focus-visible {
  outline: 2px solid rgba(79, 110, 247, 0.22);
  outline-offset: 4px;
}

body.app-dashboard .placement-side .card {
  padding: 1.5rem 1.6rem;
}

body.app-dashboard .placement-resources-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-resource-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

body.app-dashboard .placement-resource-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  border: 1px solid #e2e8ff;
  background: #f8f9ff;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

body.app-dashboard .placement-resource-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f6ef7;
  flex-shrink: 0;
}

body.app-dashboard .placement-resource-icon svg {
  width: 16px;
  height: 16px;
}

body.app-dashboard .placement-resource-more {
  display: inline-flex;
  margin-top: 1.15rem;
  color: #4f6ef7;
  font-weight: 600;
  text-decoration: none;
}

body.app-dashboard .placement-empty {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

body.app-dashboard .placement-placeholder-card {
  border-radius: 22px;
  border: 1px solid #e2e8ff;
  background: #f8f9ff;
}

body.app-dashboard .placement-map-card {
  padding: 1.6rem;
}

body.app-dashboard .placement-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

body.app-dashboard .placement-map-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-map-header .card-subtitle {
  margin-top: 0.3rem;
  color: #64748b;
}

body.app-dashboard .placement-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4f6ef7;
  text-decoration: none;
}

body.app-dashboard .placement-map-link.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

body.app-dashboard .placement-map-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8ff;
  background: #f8f9ff;
  min-height: 360px;
}

body.app-dashboard .placement-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
}

body.app-dashboard .placement-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #94a3b8;
  background: rgba(248, 249, 255, 0.92);
}

body.app-dashboard .placement-map-list-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-map-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

body.app-dashboard .placement-map-item {
  border: 1px solid #e2e8ff;
  background: #f8f9ff;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.app-dashboard .placement-map-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(79, 110, 247, 0.12);
}

body.app-dashboard .placement-map-item.is-active {
  border-color: #4f6ef7;
  background: #eef2ff;
}

body.app-dashboard .placement-map-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

body.app-dashboard .placement-map-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-map-item-meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

body.app-dashboard .placement-timeline {
  position: relative;
  padding-left: 2.6rem;
}

body.app-dashboard .placement-timeline::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: #dbe3ff;
  border-radius: 999px;
}

body.app-dashboard .placement-timeline.is-empty::before {
  display: none;
}

body.app-dashboard .placement-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

body.app-dashboard .placement-timeline-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard .placement-timeline-month {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

body.app-dashboard .placement-timeline-item {
  position: relative;
}

body.app-dashboard .placement-timeline-node {
  position: absolute;
  left: -1.95rem;
  top: 1.7rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #7c8cf8;
  box-shadow: 0 0 0 4px rgba(124, 140, 248, 0.2);
}

body.app-dashboard .placement-timeline-node.is-current {
  background: #4f6ef7;
  border-color: #4f6ef7;
  box-shadow: 0 0 0 5px rgba(79, 110, 247, 0.25);
}

body.app-dashboard .placement-timeline-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid #e9edff;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

body.app-dashboard .placement-timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body.app-dashboard .placement-timeline-title {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.85rem;
}

body.app-dashboard .placement-timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f6ef7;
}

body.app-dashboard .placement-timeline-icon svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard .placement-timeline-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-timeline-dates {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.app-dashboard .placement-pill {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #4f6ef7;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.app-dashboard .placement-timeline-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #64748b;
}

body.app-dashboard .placement-timeline-meta-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f6ef7;
}

body.app-dashboard .placement-timeline-meta-icon svg {
  width: 15px;
  height: 15px;
}

body.app-dashboard .placement-timeline-supervisor {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

body.app-dashboard .placement-timeline-supervisor-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

body.app-dashboard .placement-timeline-supervisor-meta {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

body.app-dashboard .placement-timeline-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 140px;
}

body.app-dashboard .placement-timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.app-dashboard .placement-timeline-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
}

body.app-dashboard .placement-manage {
  margin-top: 1.6rem;
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid #e2e8ff;
  background: #ffffff;
}

body.app-dashboard .placement-manage-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  body.app-dashboard .placement-content-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .placement-card-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .placement-card {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .placement-card-media {
    min-height: 200px;
  }

  body.app-dashboard .placement-timeline-card {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .placement-timeline-media {
    min-height: 180px;
  }

  body.app-dashboard .placement-details-overview-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .placement-details-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  body.app-dashboard .placement-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.app-dashboard .placement-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.app-dashboard .placement-card {
    padding: 1.2rem 1.15rem;
  }

  body.app-dashboard .placement-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.app-dashboard .placement-card-details {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .placement-tabs,
  body.app-dashboard .placement-subtabs {
    flex-wrap: wrap;
    gap: 1rem;
  }

  body.app-dashboard .placement-timeline {
    padding-left: 2.2rem;
  }

  body.app-dashboard .placement-timeline::before {
    left: 0.85rem;
  }

  body.app-dashboard .placement-timeline-node {
    left: -1.65rem;
  }
}

@media (max-width: 1320px) {
  body.app-dashboard .placement-content-grid.placement-details-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 1100px) {
  body.app-dashboard .placement-content-grid.placement-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Conditions progress bar */
.conditions-progress {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.conditions-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  border-radius: inherit;
  transition: width 0.25s ease-out;
}

/* Conditions logbook layout */
.conditions-logbook-page {
  padding: 2rem;
}

.conditions-logbook-header {
  margin-bottom: 1.5rem;
}

.conditions-logbook {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1.5rem;
}

.conditions-contents {
  padding: 1.25rem;
}

.conditions-contents-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.conditions-mobile-progress {
  display: none;
  margin-bottom: 0.35rem;
}

.conditions-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e8ff;
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  background: #f8f9ff;
  color: #64748b;
}

.conditions-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.9rem;
  color: #1f2937;
}

.conditions-search-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.conditions-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.conditions-filter-chip {
  border: 1px solid #e2e8ff;
  background: #f5f7ff;
  color: #475569;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.conditions-filter-chip.is-active {
  background: #4f46e5;
  color: #ffffff;
  border-color: transparent;
}

.conditions-contents-list {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.conditions-chapters-toggle {
  display: none;
}

.conditions-chapters-body.is-collapsed {
  display: none;
}

.conditions-contents-empty {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.conditions-category {
  border-top: 1px solid #eef1ff;
  padding-top: 0.75rem;
}

.conditions-category:first-child {
  border-top: none;
  padding-top: 0;
}

.conditions-category-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  padding: 0.25rem 0;
}

.conditions-category-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.conditions-category-chevron {
  font-size: 1rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.conditions-category.is-collapsed .conditions-category-chevron {
  transform: rotate(-90deg);
}

.conditions-category-list {
  list-style: none;
  padding: 0.4rem 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.conditions-category.is-collapsed .conditions-category-list {
  display: none;
}

.conditions-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #ffffff;
}

.conditions-item:hover {
  border-color: #e2e8ff;
  background: #f8f9ff;
}

.conditions-item.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.conditions-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5f5;
}

.conditions-status-dot.status-not-started {
  background: #cbd5f5;
}

.conditions-status-dot.status-in-progress {
  background: #f59e0b;
}

.conditions-status-dot.status-completed {
  background: #22c55e;
}

.conditions-item-title {
  flex: 1;
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 600;
}

.conditions-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.conditions-item-meta {
  display: none;
  font-size: 0.8rem;
  color: #94a3b8;
}

.conditions-item-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #d1d5f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #16a34a;
  opacity: 0;
  flex-shrink: 0;
}

.conditions-item.is-completed .conditions-item-check {
  opacity: 1;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.conditions-item-chevron {
  display: none;
  color: #94a3b8;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.conditions-page {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.conditions-mobile-header {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.conditions-mobile-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conditions-paper-title {
  display: none;
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  color: #1f2937;
}

.conditions-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.conditions-page-crumb {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.conditions-progress--compact {
  min-width: 170px;
}

.conditions-paper {
  background: #fffaf5;
  border: 1px solid #f1e8df;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.conditions-back-btn {
  display: none;
  border: none;
  background: none;
  color: #4f46e5;
  font-weight: 600;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.conditions-back-btn::before {
  content: "\2190";
  margin-right: 0.35rem;
}

.conditions-warning {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
}

.conditions-checklist {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.conditions-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.conditions-check input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

.conditions-textarea {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.conditions-textarea textarea {
  border-radius: 12px;
  border: 1px solid #e2e8ff;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fbfcff;
  resize: vertical;
  min-height: 70px;
}

.conditions-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.conditions-footer-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.conditions-save-message {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.conditions-toast {
  position: absolute;
  bottom: 1.4rem;
  right: 1.6rem;
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.conditions-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .conditions-logbook-page {
    padding: 1.5rem;
  }

  .conditions-logbook {
    grid-template-columns: 1fr;
  }

  .conditions-logbook .conditions-page {
    display: none;
  }

  .conditions-logbook.is-detail-open .conditions-contents {
    display: none;
  }

  .conditions-logbook.is-detail-open .conditions-page {
    display: block;
  }

  .conditions-back-btn {
    display: inline-flex;
  }

  .conditions-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .conditions-progress--compact {
    width: 100%;
  }

  .conditions-page-footer {
    position: sticky;
    bottom: 1rem;
    background: #ffffff;
    padding: 0.75rem 0;
  }
}

@media (max-width: 768px) {
  .conditions-logbook-page {
    padding: 1.1rem;
  }

  .conditions-contents {
    padding: 1.1rem;
  }

  .conditions-contents-header h3 {
    display: none;
  }

  .conditions-mobile-progress {
    display: block;
  }

  .conditions-progress--compact {
    display: none;
  }

  .conditions-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .conditions-filter-row::-webkit-scrollbar {
    display: none;
  }

  .conditions-filter-chip {
    white-space: nowrap;
  }

  .conditions-chapters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #e2e8ff;
    background: #f8f9ff;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.9rem;
  }

  .conditions-chapters-toggle.is-collapsed .conditions-category-chevron {
    transform: rotate(-90deg);
  }

  .conditions-item {
    border-color: #eef1ff;
    background: #ffffff;
    align-items: flex-start;
  }

  .conditions-item-meta {
    display: block;
  }

  .conditions-item-chevron {
    display: inline-flex;
  }

  .conditions-item-check {
    opacity: 0;
  }

  .conditions-item.is-completed .conditions-item-check {
    opacity: 1;
  }

  .conditions-page {
    padding: 1.2rem;
    padding-bottom: 5rem;
  }

  .conditions-mobile-header {
    display: flex;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #eef1ff;
  }

  .conditions-back-btn {
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .conditions-page-header h3 {
    display: none;
  }

  .conditions-page-header {
    gap: 0.4rem;
  }

  .conditions-page-crumb {
    font-size: 0.95rem;
    color: #64748b;
  }

  .conditions-paper {
    padding: 1.1rem;
  }

  .conditions-paper-title {
    display: block;
  }

  .conditions-checklist {
    gap: 0;
    border: 1px solid #eef1ff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .conditions-check {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #eef1ff;
    background: #ffffff;
  }

  .conditions-check:last-child {
    border-bottom: none;
  }

  .conditions-page-footer {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
    background: #ffffff;
    padding: 0.6rem 0;
    gap: 0.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .conditions-footer-actions {
    display: contents;
  }

  #condition-prev {
    grid-column: 1;
  }

  #condition-mark-complete {
    grid-column: 2;
    justify-self: center;
    min-width: 140px;
  }

  #condition-next {
    grid-column: 3;
    justify-self: end;
  }

  .conditions-status-btn.is-complete {
    background: #e2e8f0;
    color: #475569;
    border-color: #e2e8f0;
    cursor: default;
  }
}

/* Conditions & skills handbook redesign */
body.app-dashboard .conditions-redesign-page {
  background: #ffffff;
  border: 0;
  box-shadow: none;
  padding: 1.75rem 2rem 2.25rem;
  color: #061942;
  overflow: visible;
}

.conditions-redesign-page *,
.conditions-redesign-page *::before,
.conditions-redesign-page *::after {
  box-sizing: border-box;
}

.conditions-redesign-header {
  margin-bottom: 1.1rem;
}

.conditions-redesign-header h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.9rem, 2.5vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: #061942;
}

.conditions-redesign-page .conditions-logbook {
  display: block;
  min-width: 0;
}

.conditions-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 1rem;
}

.conditions-overview-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  min-height: 92px;
  padding: 0.8rem 1rem;
  border-right: 1px solid #dce6f8;
}

.conditions-overview-stat:last-child {
  border-right: 0;
}

.conditions-overview-stat div {
  min-width: 0;
}

.conditions-overview-stat strong {
  display: block;
  color: #061942;
  font-size: 1.18rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.conditions-overview-stat span,
.conditions-overview-stat small {
  display: block;
  color: #415276;
  font-size: 0.82rem;
  line-height: 1.25;
}

.conditions-stat-icon,
.conditions-item-icon,
.conditions-continue-icon,
.conditions-skill-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0;
  line-height: 0;
}

.conditions-icon--svg::before,
.conditions-icon--svg::after {
  display: none;
}

.conditions-icon--svg svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: visible;
  transform: translate(
    calc(-50% + var(--condition-icon-x, 0px)),
    calc(-50% + var(--condition-icon-y, 0px))
  );
  transform-origin: center;
}

.conditions-redesign-page .conditions-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.conditions-redesign-page .conditions-item-icon svg {
  width: 19px;
  height: 19px;
}

.conditions-icon-svg--venus {
  --condition-icon-y: 1px;
}

.conditions-icon-svg--droplet,
.conditions-icon-svg--pelvis {
  --condition-icon-y: 0.5px;
}

.conditions-icon-svg--clipboard,
.conditions-icon-svg--alert {
  --condition-icon-y: -0.5px;
}

.conditions-icon-svg--stethoscope {
  --condition-icon-x: -0.5px;
}

.conditions-redesign-page .conditions-continue-icon,
.conditions-redesign-page .conditions-skill-icon {
  width: 46px;
  height: 46px;
}

.conditions-stat-icon::before,
.conditions-stat-icon::after,
.conditions-item-icon::before,
.conditions-item-icon::after,
.conditions-continue-icon::before,
.conditions-continue-icon::after,
.conditions-skill-icon::before,
.conditions-skill-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.conditions-stat-icon--blue::before,
.conditions-item-icon--blue::before,
.conditions-skill-icon--history::before,
.conditions-skill-icon--documentation::before {
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.conditions-stat-icon--blue::after,
.conditions-item-icon--blue::after,
.conditions-skill-icon--history::after,
.conditions-skill-icon--documentation::after {
  width: 2px;
  height: 16px;
  background: currentColor;
}

.conditions-stat-icon--green::before,
.conditions-item-icon--green::before,
.conditions-skill-icon--examination::before {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.conditions-stat-icon--green::after,
.conditions-item-icon--green::after,
.conditions-skill-icon--examination::after {
  width: 11px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -62%) rotate(-45deg);
}

.conditions-stat-icon--orange::before,
.conditions-item-icon--orange::before,
.conditions-skill-icon--escalation::before {
  width: 20px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.conditions-stat-icon--orange::after,
.conditions-item-icon--orange::after,
.conditions-skill-icon--escalation::after {
  width: 10px;
  height: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  top: 10px;
  transform: translateX(-50%);
}

.conditions-stat-icon--purple::before,
.conditions-item-icon--purple::before,
.conditions-skill-icon--communication::before {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 999px;
  top: 10px;
  transform: translateX(-50%);
}

.conditions-stat-icon--purple::after,
.conditions-item-icon--purple::after,
.conditions-skill-icon--communication::after {
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  top: 27px;
  transform: translateX(-50%);
}

.conditions-item-icon--teal::before {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.conditions-item-icon--teal::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-38deg);
}

.conditions-stat-icon--blue,
.conditions-item-icon--blue,
.conditions-skill-icon--history,
.conditions-skill-icon--documentation {
  color: #0b66f6;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
}

.conditions-stat-icon--green,
.conditions-item-icon--green,
.conditions-skill-icon--examination {
  color: #0c8f63;
  background: #eafaf3;
  border: 1px solid #bdebd8;
}

.conditions-stat-icon--orange,
.conditions-item-icon--orange,
.conditions-skill-icon--escalation {
  color: #f97316;
  background: #fff4e8;
  border: 1px solid #fed7aa;
}

.conditions-stat-icon--purple,
.conditions-item-icon--purple,
.conditions-skill-icon--communication {
  color: #7c3aed;
  background: #f4ecff;
  border: 1px solid #ddd0ff;
}

.conditions-item-icon--teal {
  color: #0f9ca9;
  background: #e8fbfd;
  border: 1px solid #bceff4;
}

.conditions-stat-progress {
  height: 5px;
  margin-top: 0.32rem;
  min-width: 96px;
}

.conditions-section-tabs,
.conditions-detail-tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #dce6f8;
  margin: 0 0 0.85rem;
}

.conditions-section-tab,
.conditions-detail-tab,
.conditions-detail-back,
.conditions-bookmark-btn {
  border: 0;
  background: transparent;
  color: #21365d;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0;
}

.conditions-section-tab,
.conditions-detail-tab {
  padding: 0.8rem 0;
  border-bottom: 3px solid transparent;
}

.conditions-section-tab.is-active,
.conditions-detail-tab.is-active {
  color: #0b66f6;
  border-bottom-color: #0b66f6;
}

.conditions-logbook.is-condition-open .conditions-section-tabs {
  display: none;
}

.conditions-mode-panel,
.conditions-detail-panel {
  display: none;
}

.conditions-mode-panel.is-active,
.conditions-detail-panel.is-active {
  display: block;
}

.conditions-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  gap: 1rem;
  align-items: start;
}

.conditions-library-card,
.conditions-continue-card,
.conditions-textbook-page,
.conditions-study-card,
.conditions-exposure-card,
.conditions-signoff-guidance,
.conditions-reflection-card,
.conditions-evidence-card,
.conditions-skill-detail,
.conditions-current-placement-skills,
.conditions-signoff-page {
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(11, 31, 77, 0.04);
}

.conditions-library-card {
  padding: 0.9rem;
}

.conditions-library-card h3,
.conditions-continue-card h3,
.conditions-skills-header h3,
.conditions-signoff-page h3 {
  margin: 0;
  color: #061942;
  font-size: 1.1rem;
}

.conditions-redesign-page .conditions-search {
  border-color: #dce6f8;
  border-radius: 8px;
  background: #ffffff;
}

.conditions-redesign-page .conditions-filter-chip {
  border-color: #dce6f8;
  background: #ffffff;
  color: #061942;
  border-radius: 8px;
  font-weight: 500;
}

.conditions-redesign-page .conditions-filter-chip.is-active {
  background: #0b66f6;
  border-color: #0b66f6;
  color: #ffffff;
}

.conditions-redesign-page .conditions-contents-list {
  gap: 0;
  margin-top: 0.75rem;
}

.conditions-redesign-page .conditions-category {
  border-top: 1px solid #e7edf8;
  padding: 0.7rem 0 0.2rem;
}

.conditions-redesign-page .conditions-category-toggle {
  color: #061942;
  font-size: 0.94rem;
  padding: 0.25rem 0 0.5rem;
}

.conditions-category-toggle small {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #425577;
  background: #eef3fb;
  font-size: 0.78rem;
}

.conditions-redesign-page .conditions-category-list {
  gap: 0;
  padding: 0;
}

.conditions-redesign-page .conditions-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-bottom-color: #e7edf8;
  border-radius: 0;
  padding: 0.5rem 0.55rem;
}

.conditions-redesign-page .conditions-skill-library-item {
  background: #ffffff;
}

.conditions-redesign-page .conditions-item-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #173b78;
  font-size: 1.25rem;
  line-height: 1;
}

.conditions-redesign-page .conditions-item:hover,
.conditions-redesign-page .conditions-item.is-active {
  border-color: #b8cdfd;
  background: #f7faff;
  border-radius: 8px;
}

.conditions-redesign-page .conditions-item-title,
.conditions-skill-card strong,
.conditions-signoff-row strong {
  color: #061942;
  font-weight: 700;
  font-size: 0.94rem;
}

.conditions-redesign-page .conditions-item-meta {
  display: block;
  color: #526489;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.conditions-status-pill,
.conditions-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  border: 1px solid #dce6f8;
  color: #425577;
  background: #f6f8fc;
}

.conditions-status-pill.status-seen,
.conditions-status-pill.status-completed,
.conditions-status-pill.status-signed,
.conditions-status-pill.status-practised,
.conditions-status-pill.status-verified,
.conditions-tag--green,
.conditions-tag--completed,
.conditions-tag--seen {
  color: #08704d;
  border-color: #bdebd8;
  background: #eafaf3;
}

.conditions-status-pill.status-in-progress,
.conditions-tag--in-progress,
.conditions-tag--blue {
  color: #0b66f6;
  border-color: #bcd3ff;
  background: #eef5ff;
}

.conditions-status-pill.status-ready,
.conditions-status-pill.status-needs-signoff,
.conditions-status-pill.status-needs-evidence,
.conditions-status-pill.status-partial,
.conditions-tag--ready,
.conditions-tag--orange {
  color: #df5c00;
  border-color: #fed7aa;
  background: #fff4e8;
}

.conditions-status-pill.status-pending,
.conditions-tag--pending {
  color: #7c3aed;
  border-color: #ddd0ff;
  background: #f4ecff;
}

.conditions-status-pill.status-not-started,
.conditions-status-pill.status-to-do {
  color: #526489;
  border-color: #dce6f8;
  background: #f6f8fc;
}

.conditions-tag--red {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff1f2;
}

.conditions-continue-card {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.conditions-continue-topic {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.conditions-continue-topic strong,
.conditions-continue-topic span {
  display: block;
}

.conditions-continue-topic strong {
  color: #061942;
  font-size: 0.98rem;
}

.conditions-continue-topic span,
.conditions-continue-progress,
.conditions-next-action small,
.conditions-supervisor-tip p {
  color: #526489;
}

.conditions-continue-progress {
  display: grid;
  gap: 0.35rem;
}

.conditions-continue-progress > span,
.conditions-continue-progress > strong {
  display: inline-flex;
  justify-content: space-between;
}

.conditions-next-actions {
  display: grid;
  gap: 0.55rem;
}

.conditions-next-action {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce6f8;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.68rem 0.75rem;
  text-align: left;
  cursor: pointer;
}

.conditions-next-action span,
.conditions-next-action small {
  display: block;
}

.conditions-next-action span {
  color: #061942;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
}

.conditions-next-action small {
  margin-top: 0.12rem;
  font-size: 0.78rem;
}

.conditions-open-condition-btn {
  width: 100%;
  min-height: 44px;
  padding-block: 0.7rem;
}

.conditions-supervisor-tip {
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #f8fbff;
  padding: 0.85rem;
}

.conditions-supervisor-tip strong {
  color: #0b66f6;
}

.conditions-detail-header {
  margin-bottom: 1rem;
}

.conditions-detail-back {
  color: #0b66f6;
  padding: 0 0 0.75rem;
}

.conditions-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.conditions-detail-title-row h3 {
  margin: 0 0 0.3rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: #061942;
}

.conditions-detail-title-row p {
  margin: 0;
  color: #526489;
}

.conditions-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.conditions-bookmark-btn {
  color: #0b66f6;
  padding: 0.55rem 0.75rem;
  border: 1px solid #dce6f8;
  border-radius: 8px;
}

.conditions-learn-layout,
.conditions-logbook-detail-layout,
.conditions-skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 1rem;
  align-items: start;
}

.conditions-textbook-page {
  padding: 0.4rem 0.75rem 0.8rem;
  border: 0;
  box-shadow: none;
}

.conditions-chapter-section {
  border-bottom: 1px solid #dce6f8;
  padding: 1rem 0;
}

.conditions-chapter-section h4,
.conditions-red-flags h4,
.conditions-study-card h4,
.conditions-exposure-card h4,
.conditions-signoff-guidance h4,
.conditions-reflection-card h4,
.conditions-evidence-card h4 {
  margin: 0 0 0.65rem;
  color: #061942;
  font-size: 1.05rem;
}

.conditions-chapter-section p,
.conditions-chapter-section li,
.conditions-red-flags li,
.conditions-study-card p,
.conditions-reflection-card p,
.conditions-evidence-card p {
  color: #21365d;
  line-height: 1.55;
}

.conditions-two-col-list,
.conditions-question-grid,
.conditions-red-flags ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 2rem;
}

.conditions-question-grid {
  list-style: none;
  padding-left: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.conditions-question-item {
  position: relative;
  padding-left: 1.45rem;
}

.conditions-question-item::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 18px;
  height: 18px;
  border: 1px solid #0b66f6;
  color: #0b66f6;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.conditions-red-flags {
  margin: 1rem 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  padding: 1rem;
}

.conditions-red-flags h4 {
  color: #dc2626;
}

.conditions-study-rail,
.conditions-signoff-guidance {
  display: grid;
  gap: 1rem;
}

.conditions-study-card,
.conditions-signoff-guidance,
.conditions-exposure-card,
.conditions-reflection-card,
.conditions-evidence-card,
.conditions-skill-detail,
.conditions-signoff-page {
  padding: 1rem;
}

.conditions-outcomes-list,
.conditions-guidance-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.conditions-outcomes-list li,
.conditions-guidance-box li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #21365d;
}

.conditions-outcomes-list span,
.conditions-guidance-box span {
  width: 22px;
  height: 22px;
  border: 2px solid #b9c7dc;
  border-radius: 999px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.conditions-outcomes-list .is-complete span,
.conditions-guidance-box .is-complete span {
  background: #0c8f63;
  border-color: #0c8f63;
}

.conditions-exposure-progress {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #526489;
}

.conditions-exposure-list {
  border: 1px solid #dce6f8;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 1rem;
}

.conditions-exposure-list .conditions-check {
  padding: 0.8rem;
  border-bottom: 1px solid #e7edf8;
  background: #ffffff;
}

.conditions-exposure-list .conditions-check:last-child {
  border-bottom: 0;
}

.conditions-check span strong,
.conditions-check span small {
  display: block;
}

.conditions-check span small {
  color: #526489;
  margin-top: 0.15rem;
}

.conditions-guidance-box {
  border: 1px solid #dce6f8;
  border-radius: 8px;
  padding: 1rem;
  background: #f8fbff;
}

.conditions-people-row {
  display: grid;
  gap: 0.6rem;
}

.conditions-people-row > span {
  color: #061942;
  font-weight: 600;
}

.conditions-people-row div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.conditions-people-row button {
  border: 1px solid #dce6f8;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.65rem;
  color: #061942;
  font-weight: 600;
}

.conditions-reflection-card {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
}

.conditions-reflection-title {
  grid-column: 1 / -1;
}

.conditions-reflection-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.conditions-textarea input,
.conditions-redesign-page .conditions-textarea textarea {
  width: 100%;
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #ffffff;
  color: #061942;
}

.conditions-evidence-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.conditions-evidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #dce6f8;
  border-radius: 8px;
  padding: 0.8rem;
}

.conditions-evidence-row strong,
.conditions-evidence-row span {
  display: block;
}

.conditions-evidence-row span {
  color: #526489;
}

.conditions-related-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.conditions-related-skill {
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.conditions-related-skill strong,
.conditions-related-skill span,
.conditions-related-skill small {
  display: block;
}

.conditions-related-skill strong {
  color: #061942;
}

.conditions-related-skill span,
.conditions-related-skill small {
  color: #526489;
  margin-top: 0.3rem;
}

.conditions-skills-page,
.conditions-signoff-page {
  display: grid;
  gap: 1rem;
}

.conditions-skills-header p,
.conditions-signoff-page p {
  margin: 0.25rem 0 0;
  color: #526489;
}

.conditions-skills-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.conditions-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.conditions-skill-card {
  min-width: 0;
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.conditions-skill-card.is-active {
  border-color: #0b66f6;
  box-shadow: inset 3px 0 0 #0b66f6;
}

.conditions-skill-index {
  color: #526489;
  font-weight: 600;
}

.conditions-skill-card-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.conditions-skill-card-main small {
  color: #526489;
}

.conditions-skill-progress-row {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  color: #526489;
}

.conditions-skill-progress-row .progress-bar {
  height: 5px;
}

.conditions-skill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.conditions-skill-links em {
  border: 1px solid #bcd3ff;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  color: #0b66f6;
  background: #eef5ff;
  font-style: normal;
  font-weight: 600;
  font-size: 0.76rem;
}

.conditions-skill-open {
  color: #0b66f6;
  font-weight: 600;
}

.conditions-skill-detail {
  display: grid;
  gap: 1rem;
}

.conditions-skill-detail-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.conditions-skill-detail-header h4,
.conditions-skill-detail h5 {
  margin: 0;
  color: #061942;
}

.conditions-skill-detail-header p {
  margin: 0.2rem 0 0;
  color: #526489;
}

.conditions-next-action-box {
  border: 1px solid #dce6f8;
  border-radius: 8px;
  padding: 0.85rem;
  background: #f8fbff;
}

.conditions-next-action-box p {
  margin: 0.35rem 0 0;
  color: #526489;
}

.conditions-current-placement-skills {
  padding: 1rem;
}

.conditions-current-placement-skills h4,
.conditions-current-placement-skills p {
  margin: 0;
}

.conditions-current-placement-skills p {
  color: #526489;
  margin-top: 0.25rem;
}

.conditions-current-skills-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.conditions-current-skills-row button {
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.5rem;
  text-align: left;
}

.conditions-current-skills-row strong {
  color: #061942;
}

.conditions-current-skills-row span:nth-child(2) {
  color: #526489;
  grid-column: 1;
}

.conditions-current-skills-row span:last-child {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #0b66f6;
  font-size: 1.2rem;
}

.conditions-signoff-table {
  display: grid;
  gap: 0.75rem;
}

.conditions-signoff-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(120px, 180px) auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #dce6f8;
  border-radius: 8px;
  padding: 0.85rem;
  background: #ffffff;
}

.conditions-signoff-row > div span {
  display: block;
  color: #526489;
}

.conditions-signoff-progress {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.conditions-signoff-progress .progress-bar {
  height: 6px;
}

.conditions-empty-panel {
  border: 1px dashed #b9c7dc;
  border-radius: 8px;
  padding: 1.2rem;
  color: #526489;
}

@media (max-width: 1180px) {
  .conditions-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conditions-overview-stat:nth-child(2) {
    border-right: 0;
  }

  .conditions-overview-stat:nth-child(-n + 2) {
    border-bottom: 1px solid #dce6f8;
  }

  .conditions-library-layout,
  .conditions-learn-layout,
  .conditions-logbook-detail-layout,
  .conditions-skills-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  body.app-dashboard .conditions-redesign-page {
    padding: 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .conditions-redesign-header h2,
  .conditions-detail-title-row h3 {
    font-size: 1.9rem;
  }

  .conditions-overview-strip,
  .conditions-skills-summary {
    grid-template-columns: 1fr;
  }

  .conditions-overview-stat,
  .conditions-overview-stat:nth-child(2),
  .conditions-overview-stat:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #dce6f8;
  }

  .conditions-overview-stat:last-child {
    border-bottom: 0;
  }

  .conditions-section-tabs,
  .conditions-detail-tabs {
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .conditions-section-tabs::-webkit-scrollbar,
  .conditions-detail-tabs::-webkit-scrollbar,
  .conditions-filter-row::-webkit-scrollbar {
    display: none;
  }

  .conditions-redesign-page .conditions-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .conditions-redesign-page .conditions-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .conditions-redesign-page .conditions-item .conditions-status-pill,
  .conditions-redesign-page .conditions-item-check {
    display: none;
  }

  .conditions-detail-title-row {
    display: grid;
  }

  .conditions-bookmark-btn {
    justify-self: start;
  }

  .conditions-two-col-list,
  .conditions-question-grid,
  .conditions-red-flags ul,
  .conditions-reflection-grid,
  .conditions-related-skills-grid,
  .conditions-skills-toolbar,
  .conditions-skills-grid,
  .conditions-current-skills-row {
    grid-template-columns: 1fr;
  }

  .conditions-reflection-card {
    grid-template-columns: 1fr;
  }

  .conditions-page-footer {
    position: static;
    display: flex;
  }

  .conditions-signoff-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .conditions-signoff-row .conditions-status-pill,
  .conditions-signoff-progress,
  .conditions-signoff-row .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .conditions-redesign-page .conditions-item-icon,
  .conditions-continue-icon,
  .conditions-skill-icon,
  .conditions-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .conditions-overview-stat {
    padding: 0.9rem;
  }

  .conditions-library-card,
  .conditions-continue-card,
  .conditions-study-card,
  .conditions-exposure-card,
  .conditions-signoff-guidance,
  .conditions-reflection-card,
  .conditions-evidence-card,
  .conditions-skill-detail,
  .conditions-signoff-page {
    padding: 0.85rem;
  }
}

/* Forms list */
#forms-list {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

#forms-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

#forms-list li:first-child {
  border-top: none;
}

/* Forms tab */
.forms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .forms-layout {
    grid-template-columns: 1fr;
  }
}

.forms-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.forms-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.06s ease;
}

.forms-list li:last-child {
  border-bottom: none;
}

.forms-list li:hover {
  background: #f3f6ff;
  transform: translateY(-1px);
}

/* Status circle on the right */
.form-status-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.form-status-circle.completed {
  border-color: #16a34a;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.form-status-circle.completed::after {
  content: "✓";
  font-size: 12px;
  color: #fff;
}

/* Detail panel */
.form-detail-section {
  margin-top: 1rem;
}

.form-detail-section h3 {
  margin-bottom: 0.25rem;
}

#form-detail-student-tips,
#form-detail-clinician-tips,
#form-detail-docs {
  padding-left: 1.25rem;
}

#form-detail-docs a {
  text-decoration: underline;
}

/* ==== Student forms workflow (Sign-offs → Forms) ==== */
body.forms-page .forms-page-meta {
  align-items: flex-start;
}

body.forms-page .forms-title-block h1 {
  margin: 0.35rem 0 0.25rem;
}

body.forms-page .forms-subtitle {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 1rem;
}

body.forms-page .forms-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.forms-page .forms-welcome {
  display: none;
}

body.forms-page .forms-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.forms-page .forms-breadcrumb-current {
  color: #1f2937;
  font-weight: 500;
}

body.forms-page .forms-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  background: #eef2ff;
  border-radius: 999px;
  border: 1px solid #dbe3ff;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

body.forms-page .forms-subtab {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.forms-page .forms-subtab.is-active {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(59, 96, 246, 0.15);
}

body.forms-page .forms-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5ff;
  color: #4f6ef7;
}

body.forms-page .forms-subtab[data-forms-subtab="outbox"] .forms-count {
  background: #fee2e2;
  color: #b91c1c;
}

body.forms-page .forms-subtab[data-forms-subtab="signed"] .forms-count {
  background: #dcfce7;
  color: #15803d;
}

body.forms-page .forms-subtab[data-forms-subtab="drafts"] .forms-count {
  background: #ffedd5;
  color: #c2410c;
}

body.forms-page .forms-count.is-zero {
  opacity: 0.6;
}

body.forms-page .forms-filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

body.forms-page .forms-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  font-weight: 500;
}

body.forms-page .forms-placement-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.forms-page .forms-placement-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.45rem 2.2rem 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: #1f2937;
  min-width: 220px;
  cursor: pointer;
}

body.forms-page .forms-placement-select:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

body.forms-page .forms-placement-chevron {
  color: #94a3b8;
  pointer-events: none;
  position: absolute;
  right: 0.9rem;
}

body.forms-page .forms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.6rem;
}

body.forms-page .forms-main {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

body.forms-page .forms-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

body.forms-page .forms-template-grid.is-slide-left {
  animation: formsGridSlideLeft 220ms ease;
}

body.forms-page .forms-template-grid.is-slide-right {
  animation: formsGridSlideRight 220ms ease;
}

body.forms-page .forms-template-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dde6f5;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.forms-page .forms-template-card:hover {
  border-color: #cad8f0;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

body.forms-page .forms-template-card.is-route-highlighted {
  border-color: #0b63f6;
  box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.14), 0 18px 34px rgba(11, 99, 246, 0.16);
}

body.forms-page .forms-template-card--draft {
  border-color: #d8e4ff;
}

body.forms-page .forms-template-card--completed {
  border-color: #cfe8da;
}

@keyframes formsGridSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes formsGridSlideRight {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.forms-page .forms-template-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

body.forms-page .forms-template-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  color: #4f6ef7;
  flex-shrink: 0;
}

body.forms-page .forms-template-icon svg {
  width: 22px;
  height: 22px;
}

body.forms-page .forms-icon--dops {
  background: #dcfce7;
  color: #16a34a;
}

body.forms-page .forms-template-text h4 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

body.forms-page .forms-template-text p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

body.forms-page .forms-template-placement {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

body.forms-page .forms-template-progress {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.forms-page .forms-template-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
}

body.forms-page .forms-template-tag--required {
  background: #f7ecd9;
  color: #7f5a21;
}

body.forms-page .forms-template-tag--theatre {
  background: #e3f0ff;
  color: #25568f;
}

body.forms-page .forms-template-tag--info {
  background: #eaf0ff;
  color: #2f53a8;
}

body.forms-page .forms-template-tag--success {
  background: #e4f5ea;
  color: #256446;
}

body.forms-page .forms-template-progress-label {
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 500;
}

body.forms-page .forms-template-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

body.forms-page .forms-template-progress-bar span {
  display: block;
  height: 100%;
  background: #4f6ef7;
  border-radius: 999px;
}

body.forms-page .forms-template-progress-bar--dops span {
  background: #6f9988;
}

body.forms-page .forms-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

body.forms-page .forms-template-note {
  font-size: 0.8rem;
  color: #6f819f;
}

body.forms-page .forms-legacy-lists.is-hidden {
  display: none;
}

body.forms-page .forms-progress-card h3,
body.forms-page .forms-activity-card h3 {
  margin: 0 0 1rem;
}

body.forms-page .forms-progress-body {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

body.forms-page .forms-progress-ring {
  --progress: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#4f6ef7 calc(var(--progress) * 1%), #e2e8f0 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.forms-page .forms-progress-ring::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffffff;
}

body.forms-page .forms-progress-ring {
  position: relative;
}

body.forms-page .forms-progress-value,
body.forms-page .forms-progress-label {
  position: relative;
  z-index: 1;
}

body.forms-page .forms-progress-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f2937;
}

body.forms-page .forms-progress-label {
  font-size: 0.85rem;
  color: #64748b;
}

body.forms-page .forms-progress-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

body.forms-page .forms-next-milestone {
  margin: 0 0 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e7edf8;
}

body.forms-page .forms-next-milestone h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #1f355f;
}

body.forms-page .forms-next-milestone p {
  margin: 0;
  color: #566b8f;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.forms-page .forms-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #64748b;
}

body.forms-page .forms-progress-row strong {
  color: #1f2937;
}

body.forms-page .forms-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  margin-right: 0.5rem;
}

body.forms-page .forms-progress-dot--required {
  background: #4f6ef7;
}

body.forms-page .forms-progress-dot--completed {
  background: #22c55e;
}

body.forms-page .forms-progress-dot--remaining {
  background: #f59e0b;
}

body.forms-page .forms-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

body.forms-page .forms-activity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

body.forms-page .forms-activity-copy {
  flex: 1;
  min-width: 0;
}

body.forms-page .forms-activity-chevron {
  color: #9cadc7;
  font-size: 1rem;
  line-height: 1;
}

body.forms-page .forms-activity-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.forms-page .forms-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e2e8f0;
  flex-shrink: 0;
}

body.forms-page .forms-activity-icon--signed {
  background: #dcfce7;
}

body.forms-page .forms-activity-icon--submitted {
  background: #fee2e2;
}

body.forms-page .forms-activity-icon--draft {
  background: #ffedd5;
}

body.forms-page .forms-activity-title {
  font-weight: 600;
  color: #1f2937;
}

body.forms-page .forms-activity-time {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

@media (max-width: 1024px) {
  body.forms-page .forms-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.forms-page .forms-tabs {
    overflow-x: auto;
    width: 100%;
  }

  body.forms-page .forms-template-grid {
    grid-template-columns: 1fr;
  }

  body.forms-page .forms-progress-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.forms-page .forms-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.5rem;
}

body.forms-page .forms-dashboard.forms-dashboard--single {
  grid-template-columns: 1fr;
}

body.forms-page .forms-section {
  padding: 1.35rem 1.4rem;
}

body.forms-page .forms-section-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

body.forms-page .forms-section-count {
  color: #94a3b8;
  font-size: 0.9rem;
}

body.forms-page .forms-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.forms-page .forms-card-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

body.forms-page .forms-card-row:last-child {
  border-bottom: none;
}

body.forms-page .forms-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

body.forms-page .forms-row-icon--docs {
  background: #e0e7ff;
  color: #4f6ef7;
}

body.forms-page .forms-row-icon--dops {
  background: #dcfce7;
  color: #16a34a;
}

body.forms-page .forms-row-body {
  min-width: 0;
}

body.forms-page .forms-row-title {
  font-weight: 600;
  color: #0f172a;
}

body.forms-page .forms-row-meta {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.forms-page .forms-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.forms-page .forms-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

body.forms-page .forms-status-pill--draft {
  background: #e0e7ff;
  color: #4338ca;
}

body.forms-page .forms-status-pill--awaiting {
  background: #ffedd5;
  color: #c2410c;
}

body.forms-page .forms-status-pill--completed {
  background: #dcfce7;
  color: #15803d;
}

body.forms-page .forms-empty {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px dashed #dbe3ff;
  background: #f8fafc;
  color: #94a3b8;
  text-align: center;
}

body.forms-page .forms-resource-actions {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.forms-page .forms-resource-actions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

body.forms-page .forms-resource-actions li:last-child {
  border-bottom: none;
}

body.forms-page .forms-resource-title {
  margin: 0;
  font-weight: 600;
}

body.forms-page .forms-resource-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

body.forms-page .forms-resource-actions-buttons {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

body.forms-page .forms-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
  z-index: 3000;
  padding: 1.5rem;
}

body.forms-page .forms-modal {
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.2);
}

body.forms-page .forms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

body.forms-page .forms-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

body.forms-page .forms-modal-form input,
body.forms-page .forms-modal-form textarea,
body.forms-page .forms-modal-form select {
  border-radius: 12px;
  border: 1px solid #dbe3ff;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
}

body.forms-page .forms-modal-form textarea {
  min-height: 120px;
}

body.forms-page .forms-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

body.forms-page .forms-modal-status {
  margin-left: auto;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.forms-page .forms-modal-status.is-error {
  color: #b91c1c;
}

body.forms-page .forms-modal-status.is-success {
  color: #15803d;
}

body.forms-page .forms-modal-footnote {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

body.forms-page .forms-continue-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  z-index: 3100;
  padding: 1rem;
  overflow-y: auto;
}

body.forms-page .forms-continue-modal {
  width: min(1380px, 99vw);
  height: calc(100dvh - 2rem);
  min-height: calc(100vh - 2rem);
  max-height: calc(100vh - 2rem);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e0e7f3;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  overflow: hidden;
  overscroll-behavior: contain;
}

body.forms-page .forms-continue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 1.35rem 1.9rem 0.45rem;
}

body.forms-page #forms-continue-close.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d9e2f2;
  background: #f7f9ff;
  color: #5f7398;
}

body.forms-page #forms-continue-close.icon-button:hover {
  background: #edf2ff;
  color: #2f4f8f;
}

body.forms-page .forms-continue-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #7d8ca8;
}

body.forms-page .forms-continue-current {
  font-weight: 600;
  color: #1f2937;
}

body.forms-page .forms-continue-heading {
  padding: 0.2rem 1.9rem 0.35rem;
}

body.forms-page .forms-continue-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.75vw, 3.05rem);
  letter-spacing: -0.02em;
  color: #14274d;
  line-height: 1.08;
}

body.forms-page .forms-continue-heading .note {
  margin: 0.5rem 0 0;
  color: #4f6287;
  font-size: 1.04rem;
  line-height: 1.45;
}

body.forms-page .forms-continue-meta {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin: 0;
  padding: 0.25rem 1.9rem 0.95rem;
  border-bottom: 1px solid #e6ebf5;
  flex-wrap: wrap;
}

body.forms-page .forms-continue-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.82rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: #edf2ff;
  color: #3152a8;
}

body.forms-page .forms-continue-updated {
  font-size: 0.86rem;
  color: #6f80a1;
}

body.forms-page .forms-continue-linked-session {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e1f2;
  background: #f8faff;
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  font-size: 0.84rem;
  color: #4d618a;
}

body.forms-page #forms-continue-new {
  margin-left: auto;
}

body.forms-page .forms-continue-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  border-bottom: 1px solid #e6ebf5;
  padding: 0.88rem 1.9rem 1.22rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  position: relative;
  z-index: 3;
  isolation: isolate;
  align-items: stretch;
}

body.forms-page .forms-continue-step {
  background: #ffffff;
  border: 1px solid #dce4f2;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  color: #536785;
  padding: 0.72rem 0.94rem;
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 44px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease,
    box-shadow 0.18s ease;
}

body.forms-page .forms-continue-step-status {
  font-size: 0.9rem;
  line-height: 1;
  color: #99a8c1;
}

body.forms-page .forms-continue-step.is-active {
  color: #ffffff;
  border-color: #3f6fd2;
  background: linear-gradient(90deg, #4e80df, #3f6fd2);
  box-shadow: 0 6px 16px rgba(70, 108, 197, 0.18);
}

body.forms-page .forms-continue-step.is-done {
  border-color: #d5e0ef;
  color: #456282;
  background: #f7faff;
}

body.forms-page .forms-continue-step.is-done .forms-continue-step-status {
  color: #4f9872;
}

body.forms-page .forms-continue-step.is-active .forms-continue-step-status,
body.forms-page .forms-continue-step.is-active.is-done .forms-continue-step-status {
  color: #ffffff;
}

body.forms-page .forms-continue-step.is-active.is-done {
  color: #ffffff;
  border-color: #3f6fd2;
  background: linear-gradient(90deg, #4e80df, #3f6fd2);
  box-shadow: 0 6px 16px rgba(70, 108, 197, 0.18);
}

body.forms-page .forms-continue-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.05rem;
  padding: 1.95rem 1.9rem 1rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

body.forms-page .forms-continue-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-top: 0.15rem;
  overflow: hidden;
}

body.forms-page .forms-continue-body {
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  margin-top: 0;
  border: 1px solid #e1e8f4;
  border-radius: 18px;
  background: #fbfcff;
  padding: 1.82rem 1.35rem clamp(5rem, 8vh, 6.1rem);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-padding-bottom: 5rem;
}

body.forms-page .forms-continue-panel {
  padding-top: 0;
  min-width: 0;
}

body.forms-page .forms-continue-panel h3 {
  margin: 0 0 0.62rem;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: #172c53;
  line-height: 1.08;
}

body.forms-page .forms-continue-panel .note {
  margin: 0 0 1.18rem;
  font-size: 0.98rem;
  color: #566b90;
  line-height: 1.55;
}

body.forms-page .forms-continue-group {
  border: 1px solid #e0e7f4;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.95rem 1rem 0.2rem;
  margin-bottom: 0.95rem;
  min-width: 0;
}

body.forms-page .forms-continue-group-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a3566;
}

body.forms-page .forms-continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.82rem 0.9rem;
  min-width: 0;
}

body.forms-page .forms-continue-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
  min-width: 0;
}

body.forms-page .forms-continue-field label {
  font-weight: 500;
  color: #1f3766;
  font-size: 0.98rem;
}

body.forms-page .forms-continue-field input,
body.forms-page .forms-continue-field textarea,
body.forms-page .forms-continue-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #d4deef;
  padding: 0.7rem 0.82rem;
  font-size: 1.03rem;
  font-family: inherit;
  color: #152a4c;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.forms-page .forms-continue-field textarea {
  min-height: 112px;
  resize: vertical;
}

body.forms-page .forms-schema-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.82rem 0.9rem;
  margin-top: 0.05rem;
  min-width: 0;
}

body.forms-page .forms-continue-group .forms-schema-fields {
  margin-top: 0.12rem;
}

body.forms-page .forms-schema-field {
  margin-bottom: 0.5rem;
}

body.forms-page .forms-schema-field--checkbox {
  grid-column: 1 / -1;
}

body.forms-page .forms-schema-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #1f3663;
  font-size: 0.95rem;
}

body.forms-page .forms-schema-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

body.forms-page .forms-schema-field--assessor label {
  color: #5a6f93;
}

body.forms-page .forms-continue-field input:focus,
body.forms-page .forms-continue-field textarea:focus,
body.forms-page .forms-continue-field select:focus {
  outline: none;
  border-color: #83a2e8;
  box-shadow: 0 0 0 3px rgba(86, 127, 231, 0.14);
  background: #ffffff;
}

body.forms-page .forms-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: -0.05rem;
}

body.forms-page .forms-field-hint {
  color: #7a8ba8;
  font-size: 0.82rem;
}

body.forms-page .forms-char-count {
  color: #6f819f;
  font-size: 0.83rem;
}

body.forms-page .forms-continue-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

body.forms-page .forms-continue-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #213b68;
}

body.forms-page .forms-continue-footnote {
  font-size: 0.87rem;
  color: #617595;
  margin: 0.1rem 0 0.7rem;
}

body.forms-page .forms-assessor-routing-grid--in-person {
  grid-template-columns: minmax(0, 1fr);
}

body.forms-page .forms-confirm-summary {
  border-radius: 12px;
  border: 1px solid #dce5f3;
  background: #f8fbff;
  padding: 0.86rem 0.92rem;
  color: #435f84;
  font-size: 0.89rem;
}

body.sign-page .forms-continue-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.sign-page .forms-continue-panel .forms-continue-group h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

body.sign-page .sign-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.8rem;
}

body.sign-page .sign-review-item {
  min-width: 0;
  border: 1px solid #e1e8f4;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.72rem 0.78rem;
}

body.sign-page .sign-review-item dt {
  color: #667a9b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.sign-page .sign-review-item dd {
  margin: 0.28rem 0 0;
  color: #172c53;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

body.sign-page .sign-rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.82rem 0.9rem;
}

body.sign-page .forms-continue-body {
  padding-bottom: 2rem;
}

body.forms-page .forms-continue-side {
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 0.2rem;
  align-self: start;
  overscroll-behavior: contain;
}

body.forms-page .forms-continue-side-card {
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.95rem 0.95rem 1rem;
  min-width: 0;
}

body.forms-page .forms-continue-side-card h4 {
  margin: 0 0 0.72rem;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  color: #1a315a;
}

body.forms-page .forms-continue-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

body.forms-page .forms-continue-checkitem {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.48rem 0.52rem;
  font-size: 0.92rem;
  color: #4f648a;
}

body.forms-page .forms-continue-checkitem.is-current {
  border-color: #7f9fe9;
  background: linear-gradient(90deg, #4e80df, #3f6fd2);
  color: #ffffff;
}

body.forms-page .forms-continue-checkitem.is-done {
  color: #275246;
}

body.forms-page .forms-continue-checkitem-icon {
  width: 19px;
  display: inline-flex;
  justify-content: center;
}

body.forms-page .forms-continue-side-divider {
  border-top: 1px solid #e7edf8;
  margin: 0.72rem 0 0.78rem;
}

body.forms-page .forms-autosave-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.94rem;
}

body.forms-page .forms-autosave-label {
  font-weight: 500;
  color: #253e69;
}

body.forms-page .forms-autosave-indicator {
  color: #9aacbf;
  font-size: 0.72rem;
}

body.forms-page .forms-autosave-indicator.is-saving {
  color: #4f77d8;
}

body.forms-page .forms-autosave-indicator.is-saved {
  color: #2f8a60;
}

body.forms-page .forms-autosave-indicator.is-error {
  color: #b4233c;
}

body.forms-page .forms-autosave-indicator.is-disabled {
  color: #9aa5ba;
}

body.forms-page .forms-autosave-text {
  margin: 0.36rem 0 0;
  color: #617596;
  font-size: 0.86rem;
}

body.forms-page .forms-continue-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.forms-page .forms-continue-resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.44rem 0;
  color: #274a8b;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid #eef3fb;
}

body.forms-page .forms-continue-resource-list a::after {
  content: "›";
  color: #8a9dbf;
  font-size: 1rem;
}

body.forms-page .forms-continue-resource-list li:last-child a {
  border-bottom: none;
}

body.forms-page .forms-continue-resource-list a:hover {
  color: #1f3f79;
}

body.forms-page .forms-continue-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
  border-top: 1px solid #e5ebf6;
  padding: 0.92rem 1.9rem max(0.92rem, env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  position: static;
}

body.forms-page .forms-continue-footer .btn {
  min-height: 44px;
  border-radius: 13px;
  padding-inline: 1.15rem;
}

body.forms-page .forms-continue-footer #forms-continue-next,
body.forms-page .forms-continue-footer #forms-continue-send {
  background: linear-gradient(90deg, #4b79de, #3d68cf);
  border-color: #3d68cf;
  color: #ffffff;
}

body.forms-page .forms-continue-footer #forms-continue-next:hover,
body.forms-page .forms-continue-footer #forms-continue-send:hover {
  filter: brightness(1.03);
}

body.forms-page .forms-continue-status-text {
  margin-right: auto;
  font-size: 0.88rem;
  color: #607392;
}

body.forms-page .forms-continue-status-text.is-error {
  color: #b91c1c;
}

body.forms-page .forms-continue-status-text.is-success {
  color: #15803d;
}

body.forms-page #forms-continue-next.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  body.forms-page .forms-continue-modal {
    width: min(1120px, 98vw);
  }

  body.forms-page .forms-continue-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.18rem;
  }

  body.forms-page .forms-continue-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body.forms-page .forms-continue-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 0.9rem;
  }
}

@media (max-width: 780px) {
  body.forms-page .forms-continue-overlay {
    padding: 0;
  }

  body.forms-page .forms-continue-modal {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  body.forms-page .forms-continue-header,
  body.forms-page .forms-continue-heading,
  body.forms-page .forms-continue-meta,
  body.forms-page .forms-continue-steps,
  body.forms-page .forms-continue-layout,
  body.forms-page .forms-continue-footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  body.forms-page .forms-continue-meta {
    gap: 0.5rem;
  }

  body.forms-page .forms-continue-header {
    padding-top: max(0.92rem, env(safe-area-inset-top, 0px));
  }

  body.forms-page #forms-continue-new {
    margin-left: 0;
  }

  body.forms-page .forms-continue-steps {
    display: flex;
    grid-template-columns: none;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
    padding-top: 0.72rem;
    padding-bottom: 0.82rem;
  }

  body.forms-page .forms-continue-steps::-webkit-scrollbar {
    display: none;
  }

  body.forms-page .forms-continue-step {
    flex: 0 0 auto;
    min-width: 152px;
    padding: 0.68rem 0.82rem;
  }

  body.forms-page .forms-continue-layout {
    gap: 0.9rem;
    padding-top: 0.96rem;
  }

  body.forms-page .forms-continue-body {
    padding: 1.08rem 0.96rem 1rem;
    border-radius: 16px;
  }

  body.forms-page .forms-continue-group {
    padding: 0.82rem 0.88rem 0.12rem;
    margin-bottom: 0.82rem;
    border-radius: 13px;
  }

  body.forms-page .forms-continue-group-title {
    margin-bottom: 0.72rem;
    font-size: 1.02rem;
  }

  body.forms-page .forms-continue-grid,
  body.forms-page .forms-schema-fields {
    grid-template-columns: 1fr;
    gap: 0.74rem;
  }

  body.forms-page .forms-continue-side {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body.forms-page .forms-continue-side-card {
    padding: 0.88rem 0.9rem 0.94rem;
    border-radius: 13px;
  }

  body.forms-page .forms-continue-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    position: sticky;
    bottom: 0;
  }

  body.forms-page .forms-continue-status-text {
    width: 100%;
    order: 6;
  }

  body.forms-page .forms-continue-panel h3 {
    font-size: 1.56rem;
  }

  body.forms-page .forms-continue-footer .btn {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
  }
}

@media (max-width: 560px) {
  body.forms-page .forms-continue-heading h2 {
    font-size: 1.7rem;
    line-height: 1.08;
  }

  body.forms-page .forms-continue-heading .note {
    font-size: 0.92rem;
  }

  body.forms-page .forms-continue-step {
    min-width: 140px;
    min-height: 42px;
    font-size: 0.92rem;
  }

  body.forms-page .forms-continue-body {
    padding: 0.94rem 0.88rem 0.92rem;
  }

  body.forms-page .forms-continue-field label {
    font-size: 0.92rem;
  }

  body.forms-page .forms-continue-field input,
  body.forms-page .forms-continue-field textarea,
  body.forms-page .forms-continue-field select {
    padding: 0.64rem 0.74rem;
    font-size: 1rem;
  }

  body.forms-page .forms-field-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
  }

  body.forms-page .forms-continue-footer .btn {
    flex: 1 1 100%;
  }

  body.forms-page .forms-continue-side-card h4 {
    font-size: 1.08rem;
  }
}

@media (max-width: 980px) {
  body.forms-page .forms-dashboard {
    grid-template-columns: 1fr;
  }
}

/* Clinician message box */
.textarea-large {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea-large::placeholder {
  color: #9ca3af; /* softer grey */
}

.textarea-large:focus {
  outline: none;
  border-color: #2563eb; /* blue border on focus */
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}


/* Inline checkboxes for clinician notice options */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Notice list styling (students & clinicians) */
.notice-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.3rem;
}

.notice-pill--important {
  background: #fee2e2;
  color: #b91c1c;
}

.notice-pill--pinned {
  background: #e0f2fe;
  color: #0369a1;
}

/* Clinician / student notice styling */
.notice-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.notice-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-pinned {
  background: #fef3c7;
  color: #92400e;
}

.badge-important {
  background: #fee2e2;
  color: #b91c1c;
}

.notice-meta {
  margin-top: 0.15rem;
}

.notice-body {
  margin-top: 0.3rem;
}

/* student styling*/
#students-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

#students-list li:last-child {
  border-bottom: none;
}

/* inline checkbox labels in clinician form */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-inline input {
  margin: 0;
}

.notice-actions {
  margin-top: 0.35rem;
}

.notice-actions .link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  margin-right: 0.75rem;
}

.notice-actions .link-button:hover {
  text-decoration: underline;
}
/* Conditions table */
#conditions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
}

#conditions-table thead {
  background: #f3f4ff;
}

#conditions-table th,
#conditions-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #edf0f7;
  text-align: center;
}

#conditions-table th:first-child,
#conditions-table td:first-child {
  text-align: left;
}

#conditions-table tbody tr:nth-child(odd) {
  background: #fcfcff;
}

#conditions-table tbody tr:hover {
  background: #eef2ff;
}

#conditions-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Save message */
#save-message {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.table-scroll table {
  min-width: 520px;
}


/* Tips lists */
#tips-students,
#tips-clinicians {
  list-style: none;
  padding-left: 0;
  margin-top: 0.4rem;
}

#tips-students li,
#tips-clinicians li {
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  margin-bottom: 0.35rem;
  background: #f9fafb;
  border-left: 4px solid #e5e7eb;
  font-size: 0.9rem;
}

#tips-students li {
  border-left-color: #a5b4fc;
}

#tips-clinicians li {
  border-left-color: #6ee7b7;
}


/* Placement notices list */
#student-notice-list {
  list-style: none;
  padding-left: 0;
  margin: 0.25rem 0 0;
}

.notice-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.notice-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-pinned {
  background: #fef3c7;
  color: #92400e;
}

.badge-important {
  background: #fee2e2;
  color: #b91c1c;
}

.notice-meta {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.notice-body {
  margin-top: 0.3rem;
}

/* Small button for “Show all notices” */
.btn.small {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.is-hidden {
  display: none !important;
}

/* Notice replies */
.notice-thread {
  margin-top: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.notice-replies {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notice-reply {
  padding: 0.4rem 0.5rem;
  border-radius: 0.6rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.notice-reply-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.notice-reply-form {
  display: flex;
  gap: 0.4rem;
}

.notice-reply-form input {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.notice-reply-form .btn.small {
  height: auto;
  padding: 0.35rem 0.75rem;
}

.clinician-notice-list + h3 {
  margin-top: 1rem;
}

/* Student notices layout (PNG) */
body.app-dashboard #section-notices.student-notices {
  padding: 1.6rem 1.7rem;
}

body.app-dashboard #section-notices.student-notices .notice-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body.app-dashboard #section-notices.student-notices .notice-page-title {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2a44;
}

/* legacy notice filter pills removed 2026-07-30 — the Day Sheet segmented
   control in styles/notices-board.css owns .notice-filter-row/.notice-filter-chip
   (this ID-scoped block was silently out-specifying it) */

body.app-dashboard #section-notices.student-notices .notice-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

body.app-dashboard #section-notices.student-notices .notice-inbox {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.app-dashboard #section-notices.student-notices .notice-inbox-empty {
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px dashed #d7dfea;
  color: var(--text-muted);
  text-align: center;
}

body.app-dashboard #section-notices.student-notices .notice-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard #section-notices.student-notices .notice-item {
  padding: 0;
  border: none;
}

body.app-dashboard #section-notices.student-notices .notice-item--highlight .notice-card,
body.clinician-shell .notice-item--highlight,
body.clinician-shell .notice-card.notice-item--highlight {
  box-shadow: 0 0 0 2px rgba(79, 98, 219, 0.28), 0 18px 34px rgba(79, 98, 219, 0.18);
  transition: box-shadow 0.2s ease;
}

body.app-dashboard #section-notices.student-notices .notice-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

body.app-dashboard #section-notices.student-notices .notice-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

body.app-dashboard #section-notices.student-notices .notice-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f62db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.app-dashboard #section-notices.student-notices .notice-title-group {
  flex: 1;
}

body.app-dashboard #section-notices.student-notices .notice-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-notices.student-notices .notice-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2a44;
}

body.app-dashboard #section-notices.student-notices .notice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.app-dashboard #section-notices.student-notices .notice-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}

body.app-dashboard #section-notices.student-notices .notice-tag--pinned {
  background: #fef3c7;
  color: #92400e;
}

body.app-dashboard #section-notices.student-notices .notice-tag--important {
  background: #fee2e2;
  color: #b91c1c;
}

body.app-dashboard #section-notices.student-notices .notice-meta {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #7b8196;
}

body.app-dashboard #section-notices.student-notices .notice-menu-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

body.app-dashboard #section-notices.student-notices .notice-menu-btn svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-notices.student-notices .notice-menu-btn:hover {
  background: #eef2ff;
  color: #5b6fd6;
}

body.app-dashboard #section-notices.student-notices .notice-body {
  margin-top: 0.65rem;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.app-dashboard #section-notices.student-notices .notice-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef1f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-notices.student-notices .notice-replies-toggle {
  background: none;
  border: none;
  color: #2f66d5;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0;
  cursor: pointer;
}

body.app-dashboard #section-notices.student-notices .notice-replies-toggle.is-hidden {
  display: none;
}

body.app-dashboard #section-notices.student-notices .notice-footer-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

body.app-dashboard #section-notices.student-notices .notice-footer-actions .btn {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

body.app-dashboard #section-notices.student-notices .notice-action-btn--reply {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #1d4ed8;
}

body.app-dashboard #section-notices.student-notices .notice-action-btn--bin {
  background: #f8fafc;
  border: 1px solid #d7dee9;
  color: #6b7280;
}

body.app-dashboard #section-notices.student-notices .notice-thread {
  margin-top: 0.8rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.app-dashboard #section-notices.student-notices .notice-thread.is-collapsed {
  display: none;
}

body.app-dashboard #section-notices.student-notices .notice-reply-form input {
  border-radius: 999px;
  border-color: #d7dee9;
}

body.app-dashboard #section-notices.student-notices .notice-reply-form .btn.small {
  border-radius: 999px;
}

body.app-dashboard #section-notices.student-notices .notice-reply-actions,
body.app-dashboard #section-notices.student-notices .notice-reply-edit-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

body.app-dashboard #section-notices.student-notices .notice-reply-action {
  border: none;
  background: none;
  color: #4f6ad8;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

body.app-dashboard #section-notices.student-notices .notice-reply-action.is-danger {
  color: #b91c1c;
}

body.app-dashboard #section-notices.student-notices .notice-reply-edit-btn {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1d4ed8;
  cursor: pointer;
}

body.app-dashboard #section-notices.student-notices .notice-reply-edit-btn.is-cancel {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #6b7280;
}

body.app-dashboard #section-notices.student-notices .notice-reply-edit {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 0.8rem;
  border: 1px solid #d1d5db;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

body.app-dashboard #section-notices.student-notices .notice-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: #2f66d5;
  font-weight: 600;
  padding: 0.2rem 0;
}

body.app-dashboard #section-notices.student-notices .notice-more-btn:hover {
  text-decoration: underline;
}

/* legacy notices bin block removed 2026-07-30 — the Day Sheet bin card in
   styles/notices-board.css owns .notice-bin-* now (the old block pinned a
   420px min-height panel and tinted pill buttons over the new text actions) */


/* ===== FULL HEIGHT SIDEBAR LAYOUT ===== */

.app-shell {
  display: flex;
  min-height: calc(100vh - 66px); /* subtract navbar height */
  width: 100%;
}

body.app-dashboard.role-gate-pending {
  background: #f8fafc;
}

body.app-dashboard.role-gate-pending .navbar,
body.app-dashboard.role-gate-pending .app-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.app-dashboard.app-auth-redirecting {
  background: var(--pf-canvas, #fff);
}

body.app-dashboard.app-auth-redirecting .app-auth-redirect-card {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2000;
  width: min(calc(100vw - 2rem), 380px);
  padding: 1.25rem;
  border: 1px solid #d8e3f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 35, 72, 0.12);
  color: #0b1f49;
  text-align: center;
  transform: translate(-50%, -50%);
}

body.app-dashboard.app-auth-redirecting .app-auth-redirect-card strong {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 1rem;
}

body.app-dashboard.app-auth-redirecting .app-auth-redirect-card span {
  color: #526582;
  font-size: 0.9rem;
}

.is-capacitor .app-shell {
  padding-top: var(--safe-top);
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  min-height: 100vh;
}

@media (max-width: 768px) {
  .is-capacitor .app-shell {
    padding-top: max(var(--safe-top), 16px);
  }
}


/* Fixed sidebar */
.app-sidebar {
  position: fixed;
  left: 0;
  top: var(--navbar-height);   /* sits right below the navbar */
  bottom: 0;
  width: 230px;

  background: #111827;        /* slightly darker */
  color: white;

  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  border-right: 1px solid #1f2937;
}

.is-capacitor .app-sidebar {
  top: calc(var(--navbar-height) + var(--safe-top));
}

/* Push main content to the right of the fixed sidebar */
.app-content {
  margin-left: 230px;                     /* same as sidebar width */
  padding: 2rem 2.25rem 3rem;
  width: calc(100% - 230px);
  min-width: 0;
}

/* Center the content within the remaining width */
.app-content .section-inner {
  max-width: 1100px;
  margin: 0 auto;                         /* <— key change */
}



/* Sidebar header */
.app-sidebar-header {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Navigation links */
.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.app-sidebar-link {
  background: transparent;
  border: none;
  color: #d1d5db;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
}

.app-sidebar-link:hover {
  background: #1f2937;
  color: white;
}

.app-sidebar-link--active {
  background: #2563eb;
  color: white;
}

/* Default dot (inactive) */
.app-sidebar-dot {
  width: 6px;
  height: 6px;
  background: #2563eb; /* grey */
  border-radius: 999px;
  margin-right: 0.5rem;
  display: inline-block;
}

/* When the link is active */
.app-sidebar-link--active .app-sidebar-dot {
  background: #16a34a !important; /* green */
}

/* Groups with dropdowns */
.app-sidebar-group {
  margin-top: 0.25rem;
}

/* Show dropdown when group has .open */
.app-sidebar-group.open > .app-sidebar-subnav {
  display: flex;
}

/* Chevron icon on items with children (matches your HTML) */
.app-sidebar-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

/* Rotate chevron when open */
.app-sidebar-group.open .app-sidebar-chevron {
  transform: rotate(180deg);
}





/* Sub-items */
.app-sidebar-subitem {
  background: transparent;
  border: none;
  color: #9ca3af;
  text-align: left;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  cursor: pointer;
  text-decoration: none;
}

.app-sidebar-subitem:hover {
  background: #111827;
  color: #e5e7eb;
}


/* Content column */
.app-content {
  min-width: 0;
}

/* Smooth scrolling for section jumps */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============= FOOTER ============= */
.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 1rem 1.25rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer a {
  color: #c7d2fe;
}

/* ============= SCROLL ANIMATIONS ============= */

/* Start slightly faded + moved down */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
  will-change: opacity, transform;
}

/* When JS adds this class, element fades in & slides up */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============= CONDITION EXPLORER OVERLAY ============= */
.condition-explorer.hidden {
  display: none;
}

.condition-explorer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.condition-explorer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

.condition-explorer-inner {
  position: relative;
  max-width: 1000px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 4rem);
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.condition-explorer-header {
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.icon-button {
  border: none;
  background: #f3f4f6;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.icon-button:hover {
  background: #e5e7eb;
}

.condition-explorer-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 320px;
  height: 100%;
}

/* Notes box inside condition explorer */
#ce-notes {
  width: 100%;
  min-height: 80px;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

#ce-notes:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

#ce-notes-status {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

/* LEFT LIST */
.condition-list {
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  padding: 0.5rem 0;
  background: #f9fafb;
}

.condition-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.condition-list li {
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  margin: 0.1rem 0.4rem;
}

.condition-list li:hover {
  background: #e0edff;
}

.condition-list li.active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

/* RIGHT DETAIL PANE */
.condition-detail {
  padding: 0.9rem 1.25rem 1.1rem;
  overflow-y: auto;
}

.condition-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
}

.condition-ticks span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.condition-section {
  margin-top: 0.7rem;
}

.condition-section h4 {
  margin: 0.2rem 0 0.3rem;
}

/* Symptoms: key ones get a red arrow */
#ce-symptoms {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0.3rem;
  font-size: 0.9rem;
}

#ce-symptoms li {
  margin-bottom: 0.25rem;
}

#ce-symptoms li.key-symptom::before {
  content: "➜ ";
  color: #ef4444;
  font-weight: 600;
}

#ce-symptoms li.key-symptom {
  color: #b91c1c;
  font-weight: 500;
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
  .condition-explorer-body {
    grid-template-columns: 1fr;
  }

  .condition-list {
    max-height: 160px;
  }
}

/* Allow per-element delay via data-delay attribute (set from JS) */

/* ---- Schedule editor ---- */
.card-schedule-editor {
  margin-bottom: 1.5rem;
}

.schedule-header h2 {
  margin-bottom: 0.2rem;
}

.schedule-form {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.9rem;
}

.schedule-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

.schedule-field {
  flex: 1 1 0;
  min-width: 160px;
}

.schedule-field-full {
  flex-basis: 100%;
}

.schedule-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: #374151;
}

.schedule-field input,
.schedule-field select,
.schedule-field textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.schedule-field textarea {
  resize: vertical;
}

/* ---- Schedule: student multi-assign ---- */
.student-multi-select {
  position: relative;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.45rem 0.6rem 0.55rem;
}

.student-multi-select:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.student-multi-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.student-multi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.student-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e0ecff;
  color: #1f3a8a;
  font-size: 0.85rem;
  font-weight: 500;
}

.student-chip.is-all {
  background: #e7f6ee;
  color: #166534;
}

.student-chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
}

.student-chip-placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
}

.student-multi-control input {
  border: none;
  outline: none;
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
  flex: 1 1 160px;
  min-width: 140px;
  background: transparent;
}

.student-multi-control input:disabled {
  color: #94a3b8;
}

.student-multi-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
}

.student-multi-option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  color: #1f2937;
  cursor: pointer;
}

.student-multi-option:hover,
.student-multi-option:focus-visible {
  background: #f1f5ff;
}

.student-multi-empty {
  padding: 0.55rem 0.7rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.student-multi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: #475569;
}

.student-multi-toggle input {
  margin: 0;
}

.schedule-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.schedule-form-modal {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  width: min(640px, 90vw);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.schedule-form-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.schedule-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.75rem;
}

.schedule-status-text.is-error {
  color: #b91c1c;
}

.schedule-status-text.is-success {
  color: #15803d;
}

.schedule-table-wrapper {
  margin-top: 0.7rem;
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* Global bug reporter */
.bug-report-fab {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.bug-report-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.3);
}

.bug-report-fab:active {
  transform: translateY(1px);
}

.bug-report-overlay {
  z-index: 400;
}

.bug-report-modal h3 {
  margin: 0 0 0.35rem 0;
}

.bug-report-modal p {
  margin: 0 0 0.75rem 0;
  color: #4b5563;
}

@media (max-width: 720px) {
  .bug-report-fab {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Onboarding tour */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 320;
}

.tour-card {
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.35);
  padding: 1.2rem 1.4rem;
}

.tour-card h3 {
  margin: 0 0 0.35rem 0;
}

.tour-card p {
  margin: 0 0 0.75rem 0;
  color: #4b5563;
}

.tour-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tour-steps li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
}

.tour-dot {
  font-weight: 600;
  color: #2563eb;
  min-width: 1.1rem;
}

.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Guided tour with spotlight */
.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 330;
  pointer-events: auto;
  overflow: hidden;
}

.tour-spotlight {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55), 0 14px 40px rgba(15, 23, 42, 0.3);
  transition: all 0.18s ease;
  pointer-events: none;
}

.tour-tooltip {
  position: absolute;
  min-width: 240px;
  max-width: min(360px, 90vw);
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  pointer-events: auto;
}

.tour-tooltip h4 {
  margin: 0 0 0.25rem 0;
}

.tour-tooltip p {
  margin: 0 0 0.6rem 0;
  color: #4b5563;
}

.tour-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.tour-nav-left {
  display: flex;
  gap: 0.4rem;
}

.tour-nav .btn {
  pointer-events: auto;
}

.schedule-table th,
.schedule-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #edf0f7;
  vertical-align: top;
}

.schedule-table thead {
  background: #f3f4ff;
}

.schedule-table tbody tr:nth-child(odd) {
  background: #fcfcff;
}

.schedule-table tbody tr:hover {
  background: #eef2ff;
}

.schedule-actions-cell {
  text-align: right;
}

/* type tags */
.schedule-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.schedule-tag-teaching {
  background: #eef2ff;
  color: #1d4ed8;
}
.schedule-tag-clinic {
  background: #dcfce7;
  color: #15803d;
}
.schedule-tag-theatre {
  background: #fef3c7;
  color: #92400e;
}
.schedule-tag-ward {
  background: #e0f2fe;
  color: #0369a1;
}
.schedule-tag-other {
  background: #e5e7eb;
  color: #374151;
}

/* ---- Clinician timetable layout ---- */
/* Clinician timetable block removed (2026-07): the clinician timetable is
   standalone on styles/clinician-app.css, and the student schedule page now
   owns these rules in styles/timetable.css (scoped body.student-schedule-page). */

/* ---- Clinician sign-offs ---- */
body.clinician-page--signoffs .clinician-header {
  margin-bottom: 1.4rem;
}

body.clinician-page--signoffs .signoffs-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

body.clinician-page--signoffs .signoffs-context {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-page--signoffs .signoffs-context-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 500;
}

body.clinician-page--signoffs .signoffs-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

body.clinician-page--signoffs .signoffs-panel {
  padding: 1.35rem 1.4rem;
}

body.clinician-page--signoffs .signoffs-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body.clinician-page--signoffs .signoffs-tabs {
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  padding: 0.3rem;
  gap: 0.35rem;
}

body.clinician-page--signoffs .signoffs-tabs .roster-toggle-btn {
  padding: 0.35rem 0.95rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

body.clinician-page--signoffs .signoffs-tabs .roster-toggle-btn.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(59, 96, 246, 0.2);
}

body.clinician-page--signoffs .signoffs-summary {
  margin: 0.8rem 0 1.2rem;
  color: #64748b;
  font-size: 0.9rem;
}

body.clinician-page--signoffs .signoffs-list {
  gap: 1.2rem;
}

body.clinician-page--signoffs .signoffs-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid #edf1ff;
  background: linear-gradient(135deg, #ffffff 0%, #f6f7ff 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body.clinician-page--signoffs .signoffs-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

body.clinician-page--signoffs .signoffs-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.clinician-page--signoffs .signoffs-student-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-page--signoffs .signoffs-student-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

body.clinician-page--signoffs .signoffs-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

body.clinician-page--signoffs .signoffs-review-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 12px 22px rgba(91, 141, 255, 0.22);
}

body.clinician-page--signoffs .signoffs-view-link {
  font-size: 0.85rem;
  color: #64748b;
}

body.clinician-page--signoffs .signoffs-card-body {
  grid-column: 1 / -1;
  border-top: 1px solid #e5e7ff;
  margin-top: 0.4rem;
  padding-top: 0.85rem;
}

body.clinician-page--signoffs .signoffs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: #475569;
  font-size: 0.92rem;
}

body.clinician-page--signoffs .signoffs-row-label {
  font-weight: 500;
  color: #1f2937;
}

body.clinician-page--signoffs .signoffs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.clinician-page--signoffs .signoff-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

body.clinician-page--signoffs .signoff-pill--complete {
  background: #dcfce7;
  color: #15803d;
}

body.clinician-page--signoffs .signoff-pill--awaiting {
  background: #ffedd5;
  color: #c2410c;
}

body.clinician-page--signoffs .signoff-pill--overdue {
  background: #fee2e2;
  color: #b91c1c;
}

body.clinician-page--signoffs .signoffs-row-helper {
  color: #94a3b8;
  font-size: 0.85rem;
}

body.clinician-page--signoffs .signoffs-empty {
  margin-top: 0.8rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px dashed #dbe3ff;
  background: #f8f9ff;
  text-align: center;
  color: #94a3b8;
}

body.clinician-page--signoffs .signoffs-empty.is-hidden {
  display: none;
}

body.clinician-page--signoffs .signoff-form-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
  z-index: 3200;
}

body.clinician-page--signoffs .signoff-form-modal {
  width: min(720px, 94vw);
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.2);
}

body.clinician-page--signoffs .signoff-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

body.clinician-page--signoffs .signoff-form-breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

body.clinician-page--signoffs .signoff-form-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.clinician-page--signoffs .signoff-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

body.clinician-page--signoffs .signoff-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-page--signoffs .signoff-form-field input,
body.clinician-page--signoffs .signoff-form-field textarea {
  border-radius: 12px;
  border: 1px solid #dbe3ff;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f8fafc;
}

body.clinician-page--signoffs .signoff-form-field textarea {
  min-height: 120px;
}

body.clinician-page--signoffs .signoff-form-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.6rem 0;
}

body.clinician-page--signoffs .signoff-form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-page--signoffs .signoff-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

body.clinician-page--signoffs .signoff-form-status {
  margin-right: auto;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.clinician-page--signoffs .signoff-form-status.is-error {
  color: #b91c1c;
}

body.clinician-page--signoffs .signoff-form-status.is-success {
  color: #15803d;
}

@media (max-width: 840px) {
  body.clinician-page--signoffs .signoffs-card {
    grid-template-columns: 1fr;
  }

  body.clinician-page--signoffs .signoffs-card-actions {
    align-items: flex-start;
  }
}

/* ---- Clinician notices ---- */
body.clinician-page--notices .notices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

body.clinician-page--notices .notice-toolbar {
  padding: 1.1rem 1.3rem;
  border-radius: 20px;
  border: 1px solid #e4e9ff;
  background: linear-gradient(135deg, #f7f8ff 0%, #ffffff 70%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.2rem;
}

body.clinician-page--notices .notice-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  flex-wrap: wrap;
}

body.clinician-page--notices .notice-toolbar-left,
body.clinician-page--notices .notice-toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

body.clinician-page--notices .notice-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #475569;
}

body.clinician-page--notices .notice-filter label,
body.clinician-page--notices .notice-filter-label {
  font-weight: 500;
  color: #64748b;
}

body.clinician-page--notices .notice-cohort-pill {
  border: 1px solid #dbe3ff;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
}

body.clinician-page--notices .notice-cohort-pill:hover {
  border-color: #c7d2fe;
  background: #f8faff;
}

body.clinician-page--notices .notice-toolbar select {
  border: 1px solid #dbe3ff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  background: #ffffff;
  color: #1f2937;
}

body.clinician-page--notices .notice-stats {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #94a3b8;
  gap: 1.2rem;
  flex-wrap: wrap;
}

body.clinician-page--notices .notice-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  padding: 0.35rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}

body.clinician-page--notices .notice-tab {
  border: none;
  background: transparent;
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
}

body.clinician-page--notices .notice-tab.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(59, 96, 246, 0.18);
}

body.clinician-page--notices .notice-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.clinician-page--notices .notice-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.clinician-page--notices .notice-card {
  border-radius: 20px;
  border: 1px solid #e4e9ff;
  background: linear-gradient(135deg, #ffffff 0%, #f6f7ff 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  padding: 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

body.clinician-page--notices .notice-card.is-archived {
  opacity: 0.75;
}

body.clinician-page--notices .notice-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

body.clinician-page--notices .notice-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-page--notices .notice-card-message {
  margin: 0.6rem 0 0.8rem;
  color: #475569;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.clinician-page--notices .notice-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 0.82rem;
}

body.clinician-page--notices .notice-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  height: 100%;
}

body.clinician-page--notices .notice-card-actions-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.clinician-page--notices .notice-view-btn {
  margin-top: auto;
}

body.clinician-page--notices .notice-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

body.clinician-page--notices .notice-action-icon {
  display: inline-flex;
  align-items: center;
}

body.clinician-page--notices .notice-action-icon svg {
  width: 14px;
  height: 14px;
}

body.clinician-page--notices .notice-action-link:hover {
  color: #1d4ed8;
}

body.clinician-page--notices .notice-pin-btn {
  padding: 0.15rem;
  border-radius: 999px;
  color: #94a3b8;
}

body.clinician-page--notices .notice-pin-btn:hover {
  color: #64748b;
}

body.clinician-page--notices .notice-pin-btn[aria-pressed="true"] {
  color: #dc2626;
}

body.clinician-page--notices .notice-pin-btn[aria-pressed="true"]:hover {
  color: #b91c1c;
}

body.clinician-page--notices .notice-type-pill,
body.clinician-page--notices .notice-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

body.clinician-page--notices .notice-type--notice {
  background: #e0f2fe;
  color: #0369a1;
}

body.clinician-page--notices .notice-type--reminder {
  background: #fef3c7;
  color: #b45309;
}

body.clinician-page--notices .notice-type--urgent {
  background: #fee2e2;
  color: #b91c1c;
}

body.clinician-page--notices .notice-status--published {
  background: #dcfce7;
  color: #15803d;
}

body.clinician-page--notices .notice-status--draft {
  background: #e2e8f0;
  color: #475569;
}

body.clinician-page--notices .notice-status--scheduled {
  background: #e0e7ff;
  color: #4338ca;
}

body.clinician-page--notices .notice-status--archived {
  background: #f1f5f9;
  color: #64748b;
}

body.clinician-page--notices .notice-empty {
  padding: 1rem;
  border-radius: 16px;
  border: 1px dashed #dbe3ff;
  background: #f8f9ff;
  color: #94a3b8;
  text-align: center;
}

body.clinician-page--notices .notice-empty.is-hidden {
  display: none;
}

body.clinician-page--notices .notice-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

body.clinician-page--notices .notice-modal-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.35rem;
}

body.clinician-page--notices .notice-modal-field input,
body.clinician-page--notices .notice-modal-field textarea,
body.clinician-page--notices .notice-modal-field select,
body.clinician-page--notices #notice-modal-publish-at {
  width: 100%;
  border: 1px solid #dbe3ff;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

body.clinician-page--notices .notice-modal-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

body.clinician-page--notices .notice-modal-field {
  flex: 1 1 240px;
}

body.clinician-page--notices .notice-visibility-pill {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  color: #475569;
  background: #f8fafc;
}

body.clinician-page--notices .notice-modal-options {
  align-items: center;
}

body.clinician-page--notices .notice-modal-options input[type="datetime-local"] {
  max-width: 260px;
}

body.clinician-page--notices .notice-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.clinician-page--notices .notice-modal-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.clinician-page--notices .notice-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.clinician-page--notices .notice-detail-badges {
  display: flex;
  gap: 0.5rem;
}

body.clinician-page--notices .notice-detail-meta {
  color: #94a3b8;
  font-size: 0.85rem;
}

body.clinician-page--notices .notice-detail-message {
  color: #475569;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  body.clinician-page--notices .notice-card {
    grid-template-columns: 1fr;
  }

  body.clinician-page--notices .notice-card-actions {
    align-items: flex-start;
  }
}

/* ---- Clinician notices ---- */
.notice-form {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.8rem;
}

.notice-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.notice-field {
  flex: 1 1 0;
  min-width: 180px;
}

.notice-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: #374151;
}

.notice-field input,
.notice-field textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.notice-flags-row {
  align-items: center;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.checkbox-inline input {
  transform: translateY(1px);
}

.clinician-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-item-editable {
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.55rem;
  background: #f9fafb;
}

.notice-meta-small {
  font-size: 0.75rem;
  color: #6b7280;
}

.notice-actions-row {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.profile-link {
  color: inherit;
  text-decoration: none;
}

.profile-link:hover {
  text-decoration: underline;
}

.profile-link.is-disabled {
  pointer-events: none;
  text-decoration: none;
}

/* Dashboard: today's timetable list */
.dash-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.dash-event-empty {
  color: #6b7280;
}

.dash-event-item + .dash-event-item {
  margin-top: 0.4rem;
}

.dash-event-main {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
}

.dash-event-time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.dash-event-title {
  font-weight: 500;
}

.dash-event-meta {
  margin-top: 0.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #6b7280;
}

.dash-event-type {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: capitalize;
  background: #e5e7eb;
  color: #374151;
}

.dash-event-clinician {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #eef2ff;
  color: #1d4ed8;
}

/* ============= RESPONSIVE (mobile) ============= */
@media (max-width: 768px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 3.5rem; /* more space between left + right */
    padding-top: 1rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
    min-height: auto;
    align-items: flex-start;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .selectors-row {
    flex-direction: column;
  }

  .card {
    padding: 1.1rem 1.15rem;
  }

}

@media (max-width: 768px) {
  .auth-page {
    padding: 4rem 1.25rem 3rem;
  }

  .auth-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .auth-card {
    max-width: 100%;
    padding: 1.5rem 1.3rem 1.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

  .auth-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
}

/* === Today on placement layout tweak === */

/* Make the content inside the card feel like one cohesive panel */
.card-dashboard {
  margin-bottom: 1.7rem;
  padding: 1.5rem 1.6rem 1.4rem;
}

/* Two-row grid:
   - left column: progress (top) + focus/notice row (bottom)
   - right column: timetable spanning both rows  */
.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "progress timetable"
    "focus   timetable";
  gap: 1.25rem;
}

/* Let children participate directly in the grid */
.dashboard-progress {
  grid-area: progress;
}

.dashboard-side {
  display: contents; /* timetable + mini row become direct grid items */
}

.dashboard-timetable-card {
  grid-area: timetable;
}

.dashboard-mini-row {
  grid-area: focus;
}

/* Make the timetable look like the main secondary panel, a bit more “hero” */
.dashboard-timetable-card {
  padding: 0.9rem 1.1rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #f9fafb, #eef2ff);
  border: 1px solid rgba(199, 210, 254, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Focus + notice row: softer, chip-like cards so they don’t fight the timetable */
.dashboard-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.7rem;
}

.dashboard-mini-card {
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 255, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
}

/* Keep the “View full week” button tucked nicely under the events */
.dashboard-timetable-card .dashboard-timetable-button {
  align-self: flex-start;
  margin-top: 0.45rem;
}

/* Mobile: fall back to a simple vertical stack */
@media (max-width: 900px) {
  .dashboard-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "progress"
      "timetable"
      "focus";
    gap: 1rem;
  }

  .dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .dashboard-mini-row {
    grid-template-columns: 1fr;
  }
}


#tips-signoff-locations li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* Tips & advice page: reset legacy list spacing. */
body.app-dashboard #section-tips #tips-students,
body.app-dashboard #section-tips #tips-clinicians,
body.app-dashboard #section-tips #tips-signoff-locations {
  margin-top: 0;
  padding-left: 0;
  list-style: none;
}

/* ==== SIDEBAR DROPDOWN: DESKTOP (>= 901px) ==== */
@media (min-width: 901px) {
  /* let dropdown spill outside if needed */
  .app-sidebar {
    overflow: visible;
  }

  .app-sidebar-group {
    position: static;
  }

  /* desktop: subnav sits inline under the parent link */
  .app-sidebar-subnav {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding-left: 1.4rem;
  }

  .app-sidebar-group.open > .app-sidebar-subnav {
    display: flex;
  }
}

/* ============= MINIMAL APP LAYOUT ============= */
body.app-minimal {
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-application-ui);
  --bg: #ffffff;
  --bg-gradient: #ffffff;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e5e7eb;
  --primary: #2563eb;
}

body.app-minimal .navbar {
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid var(--border-subtle);
}

body.app-minimal .nav-container {
  padding: 0.65rem 1.5rem;
  gap: 1.5rem;
}

body.app-minimal .nav-logo {
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.app-minimal .nav-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

body.app-minimal .nav-search input {
  width: min(520px, 100%);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-size: 0.95rem;
  color: inherit;
}

body.app-minimal .nav-search input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body.app-minimal .navbar-app .nav-links {
  border-left: none;
  padding-left: 0;
}

body.app-minimal .nav-links li a {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

body.app-minimal .nav-links li a:hover {
  background: #f8fafc;
  transform: none;
}

body.app-minimal .nav-button {
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

body.app-minimal .nav-toggle {
  background: #f8fafc;
}

body.app-minimal .app-shell {
  flex-direction: column;
  min-height: calc(100vh - var(--navbar-height));
}

body.app-minimal .app-sidebar {
  position: sticky;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  background: #ffffff;
  color: inherit;
  border-right: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1.5rem;
  gap: 0.5rem;
  z-index: 10;
}

body.app-minimal .app-sidebar-header {
  display: none;
}

body.app-minimal .app-sidebar-nav {
  flex-direction: row;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

body.app-minimal .app-sidebar-link {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.4rem 0;
  border-radius: 0;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

body.app-minimal .app-sidebar-link:hover {
  background: transparent;
  color: #0f172a;
}

body.app-minimal .app-sidebar-link--active {
  background: transparent;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

body.app-minimal .app-sidebar-dot {
  display: none;
}

body.app-minimal .app-sidebar-chevron {
  display: none;
}

body.app-minimal .app-sidebar-group {
  margin-top: 0;
  position: relative;
}

body.app-minimal .app-sidebar-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 200px;
  padding: 0.4rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

body.app-minimal .app-sidebar-group.open > .app-sidebar-subnav {
  display: flex;
}

body.app-minimal .app-sidebar-subitem {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.85rem;
}

body.app-minimal .app-sidebar-subitem:hover {
  background: #f8fafc;
  color: #0f172a;
}

body.app-minimal .app-content {
  margin-left: 0;
  width: 100%;
  padding: 1.75rem 3rem 3.5rem;
}

body.app-minimal .app-inner {
  max-width: 1080px;
  margin: 0 auto;
}

body.app-minimal .app-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin: 1.5rem 0 1rem;
}

body.app-minimal .app-page-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: #94a3b8;
}

body.app-minimal .app-page-title h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 600;
}

body.app-minimal .app-page-subtitle {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

body.app-minimal .app-welcome {
  margin: 0 0 1.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

body.app-minimal .dashboard-date-chip {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

body.app-minimal .dashboard-date-label {
  font-size: 0.7rem;
  color: #94a3b8;
}

body.app-minimal .card,
body.app-minimal .card-dashboard,
body.app-minimal .card-placements {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: none;
  padding: 1.75rem 0;
  margin: 0;
}

body.app-minimal .card {
  border-bottom: 1px solid var(--border-subtle);
}

body.app-minimal #section-tips {
  border-bottom: none;
}

body.app-minimal .card-placements {
  border-bottom: 1px solid var(--border-subtle);
}

body.app-minimal .card-subtitle {
  color: #64748b;
}

body.app-minimal .selectors-row {
  gap: 1.25rem;
}

body.app-minimal .selector select {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-image: none;
  padding: 0.5rem 0.75rem;
}

body.app-minimal .selector select:focus {
  border-color: #93c5fd;
  box-shadow: none;
}

body.app-minimal .btn,
body.app-minimal button.nav-button {
  border-radius: 10px;
  box-shadow: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #2563eb;
  padding: 0.5rem 0.95rem;
}

body.app-minimal .btn.primary,
body.app-minimal button.nav-button.nav-button-primary,
body.app-minimal .nav-button {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

body.app-minimal .btn:hover,
body.app-minimal button.nav-button:hover {
  transform: none;
  box-shadow: none;
  background: #f8fafc;
}

body.app-minimal .dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.app-minimal .dashboard-main > * + * {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

body.app-minimal .dashboard-progress-heading {
  color: #94a3b8;
}

body.app-minimal .dashboard-progress-bar,
body.app-minimal .progress-bar {
  height: 4px;
  background: #e5e7eb;
}

body.app-minimal .dashboard-progress-fill,
body.app-minimal .progress-bar-fill {
  background: var(--primary);
}

body.app-minimal .dashboard-timetable-card,
body.app-minimal .dashboard-mini-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.app-minimal .dashboard-mini-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

body.app-minimal .dashboard-mini-card {
  padding: 0;
}

body.app-minimal .dashboard-mini-row > .dashboard-mini-card + .dashboard-mini-card {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

body.app-minimal .dashboard-side-label,
body.app-minimal .dashboard-mini-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

body.app-minimal .dashboard-timetable-card .dashboard-timetable-button {
  margin-top: 0.75rem;
}

body.app-minimal .dash-event-type,
body.app-minimal .dash-event-clinician {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #475569;
}

body.app-minimal #forms-list li {
  border-top: 1px solid var(--border-subtle);
}

body.app-minimal #conditions-table {
  border-radius: 0;
}

body.app-minimal #conditions-table thead {
  background: transparent;
}

body.app-minimal #conditions-table th,
body.app-minimal #conditions-table td {
  border-bottom: 1px solid var(--border-subtle);
}

body.app-minimal #conditions-table tbody tr:nth-child(odd),
body.app-minimal #conditions-table tbody tr:hover {
  background: transparent;
}

body.app-minimal #tips-students li,
body.app-minimal #tips-clinicians li,
body.app-minimal #tips-signoff-locations li {
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 0;
}

body.app-minimal #tips-signoff-locations li:last-child,
body.app-minimal #tips-clinicians li:last-child,
body.app-minimal #tips-students li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  body.app-minimal .app-sidebar {
    padding: 0.5rem 1rem;
  }

  body.app-minimal .app-sidebar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  body.app-minimal .app-sidebar-subnav {
    position: fixed;
    top: var(--mobile-subnav-top, calc(var(--navbar-height) + 52px));
    left: var(--mobile-subnav-left, 50%);
    transform: translateX(-50%);
    max-width: min(260px, 92vw);
    max-height: var(--mobile-subnav-max-height, 70vh);
    overflow-y: auto;
    z-index: 999;
  }

  body.app-minimal .app-content {
    padding: 1.5rem 1.25rem 2.5rem;
  }
}

@media (max-width: 768px) {
  body.app-minimal .app-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.app-minimal .dashboard-date-chip {
    align-self: flex-start;
  }
}

/* ============= APP DASHBOARD THEME ============= */
body.app-dashboard {
  background: radial-gradient(circle at top left, #eef2ff 0, #f6f7ff 45%, #fdfdff 100%);
  color: #0f172a;
  font-family: var(--font-application-ui);
}

body.app-dashboard .navbar {
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.app-dashboard .navbar-app .nav-container {
  padding: 0.7rem 1.5rem;
  gap: 1.25rem;
}

body.app-dashboard .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.05rem;
}

body.app-dashboard .nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #075ff0, #0454d8);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(7, 95, 240, 0.28);
}

body.app-dashboard .nav-logo-mark::before,
body.app-dashboard .nav-logo-mark::after {
  content: none !important;
}



body.app-dashboard .nav-search {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
}

body.app-dashboard .nav-search input {
  width: min(540px, 100%);
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background-color: #f1f4ff;
  font-size: 0.95rem;
  color: #1f2937;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
  background-size: 1rem 1rem;
}

body.app-dashboard .nav-search input:focus {
  outline: none;
  border-color: #c7d2fe;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

body.app-dashboard .nav-search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, calc(100vw - 2rem));
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 0.4rem;
  z-index: 2000;
}

body.app-dashboard .nav-search-results[hidden] {
  display: none;
}

body.app-dashboard .student-year-switcher {
  position: relative;
  flex: 0 0 auto;
}

body.app-dashboard .student-year-switcher-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 170px;
  padding: 0.48rem 0.85rem 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

body.app-dashboard .student-year-switcher-trigger:hover {
  border-color: #c7d2fe;
  background: #ffffff;
}

body.app-dashboard .student-year-switcher-trigger:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

body.app-dashboard .student-year-switcher-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

body.app-dashboard .student-year-switcher-kicker {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

body.app-dashboard .student-year-switcher-label {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 500;
}

body.app-dashboard .student-year-switcher-chevron {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1;
}

body.app-dashboard .student-year-switcher-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 0.45rem;
  display: none;
  z-index: 2100;
}

body.app-dashboard .student-year-switcher-menu.is-open {
  display: block;
}

body.app-dashboard .student-year-switcher-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  text-align: left;
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  color: #0f172a;
  cursor: pointer;
}

body.app-dashboard .student-year-switcher-item:hover,
body.app-dashboard .student-year-switcher-item.is-active {
  background: #eef4ff;
}

body.app-dashboard .student-year-switcher-back-item {
  width: 100%;
  border: 0;
  background: #f8fbff;
  border-radius: 12px;
  text-align: left;
  padding: 0.58rem 0.7rem;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.25rem;
}

body.app-dashboard .student-year-switcher-back-item:hover {
  background: #edf3ff;
}

body.app-dashboard .student-year-switcher-item strong {
  font-size: 0.92rem;
  font-weight: 700;
}

body.app-dashboard .student-year-switcher-item span {
  font-size: 0.78rem;
  color: #64748b;
}

body.app-dashboard .student-year-switcher-empty {
  padding: 0.8rem;
  color: #64748b;
  font-size: 0.86rem;
}

body.app-dashboard .student-year-transition {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.92), rgba(241, 245, 255, 0.84) 42%, rgba(236, 242, 252, 0.96) 100%);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 2200ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.app-dashboard .student-year-transition.is-visible {
  opacity: 1;
  pointer-events: all;
}

body.app-dashboard .student-year-transition-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 460px);
}

body.app-dashboard .student-year-transition-panel {
  width: 100%;
  padding: 2rem 2rem 1.9rem;
  border-radius: 28px;
  border: 1px solid rgba(191, 206, 230, 0.64);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: center;
}

body.app-dashboard .student-year-transition-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

body.app-dashboard .student-year-transition-mark {
  width: 74px !important;
  height: 74px !important;
  flex: 0 0 74px;
  border-radius: 18px !important;
  font-size: 25px;
  box-shadow: 0 18px 36px rgba(7, 95, 240, 0.26) !important;
  animation: placementpalPulse 1.5s ease-in-out infinite;
}

body.app-dashboard .student-year-transition-mark::before,
body.app-dashboard .student-year-transition-mark::after {
  content: none !important;
}

body.app-dashboard .student-year-transition-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  animation: placementpalWordmarkPulse 1.5s ease-in-out infinite;
}

body.app-dashboard .student-year-transition-wordmark strong {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.app-dashboard .student-year-transition-wordmark > span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

body.app-dashboard .student-year-transition-copy {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

body.app-dashboard .student-year-transition-copy strong {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

body.app-dashboard .student-year-transition-copy span {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
}

@keyframes placementpalPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 36px rgba(76, 111, 255, 0.24);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 24px 44px rgba(76, 111, 255, 0.34);
  }
}

@keyframes placementpalWordmarkPulse {
  0%,
  100% {
    opacity: 0.92;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (max-width: 640px) {
  body.app-dashboard .student-year-transition {
    padding: 1.25rem;
  }

  body.app-dashboard .student-year-transition-panel {
    padding: 1.6rem 1.25rem 1.45rem;
    border-radius: 24px;
  }

  body.app-dashboard .student-year-transition-mark {
    width: 66px !important;
    height: 66px !important;
    flex-basis: 66px;
  }

  body.app-dashboard .student-year-transition-wordmark strong {
    font-size: 1.34rem;
  }

  body.app-dashboard .student-year-transition-copy strong {
    font-size: 1rem;
  }

  body.app-dashboard .student-year-transition-copy span {
    font-size: 0.86rem;
  }
}

body.app-dashboard .nav-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 320px;
  overflow: auto;
}

body.app-dashboard .nav-search-result {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  color: #0f172a;
  font-size: 0.9rem;
}

body.app-dashboard .nav-search-result:hover,
body.app-dashboard .nav-search-result:focus {
  border-color: #c7d2fe;
  background: #eef2ff;
  outline: none;
}

body.app-dashboard .nav-search-result--placement {
  border-color: #99f6e4;
  background: #f0fdfa;
}

body.app-dashboard .nav-search-result--placement:hover,
body.app-dashboard .nav-search-result--placement:focus {
  border-color: #5eead4;
  background: #ccfbf1;
}

body.app-dashboard .nav-search-result-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

body.app-dashboard .nav-search-result-title {
  font-weight: 500;
  color: #0f172a;
}

body.app-dashboard .nav-search-result-meta {
  font-size: 0.82rem;
  color: #64748b;
}

body.app-dashboard .nav-search-result-tag {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
}

body.app-dashboard .nav-search-result-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.app-dashboard .nav-search-result-tag--placement {
  color: #0f766e;
  background: #ccfbf1;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

body.app-dashboard .nav-search-empty {
  padding: 0.6rem 0.8rem 0.8rem;
  font-size: 0.9rem;
  color: #64748b;
}

body.app-dashboard .search-highlight {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  transition: box-shadow 0.4s ease;
}

body.app-dashboard .navbar-app .nav-links {
  border-left: none;
  padding-left: 0;
  gap: 0.25rem;
}

body.app-dashboard .nav-links li a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

body.app-dashboard .nav-button {
  background: transparent;
  color: #0f172a !important;
  border: 1px solid transparent;
  box-shadow: none;
}

body.app-dashboard .nav-button:hover {
  background: #eef2ff;
  border-color: #e2e8f0;
}

body.app-dashboard .app-shell {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
}

body.app-dashboard .app-sidebar {
  position: fixed;
  left: 0;
  top: var(--navbar-height);
  bottom: 0;
  width: 240px;
  padding: 1.4rem 1rem;
  background: #ffffff;
  color: #1f2937;
  border-right: 1px solid #e2e8f0;
  box-shadow: inset -1px 0 0 rgba(226, 232, 240, 0.9);
}

body.app-dashboard .app-sidebar-header {
  display: none;
}

body.app-dashboard .app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

body.app-dashboard .app-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.app-dashboard .app-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.app-dashboard .app-sidebar-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.75rem 0 0.6rem;
  border-radius: 999px;
}

body.app-dashboard .app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

body.app-dashboard .app-sidebar-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

body.app-dashboard .app-sidebar-icon svg {
  width: 100%;
  height: 100%;
}

body.app-dashboard .app-sidebar-link:hover {
  background: #eef2ff;
  color: #1f2937;
}

body.app-dashboard .app-sidebar-link--active {
  background: linear-gradient(135deg, #5b8dff, #3b6df4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(59, 96, 246, 0.25);
  font-weight: 600;
}

body.app-dashboard .app-sidebar-dot {
  display: none;
}

body.app-dashboard .app-sidebar-chevron {
  display: none;
  margin-left: auto;
  opacity: 0.6;
  font-size: 0.95rem;
  transform: rotate(0deg);
  transform-origin: center;
}

body.app-dashboard .app-sidebar-link[data-has-children="true"] .app-sidebar-chevron {
  display: none;
}

body.app-dashboard .app-sidebar-group.open .app-sidebar-chevron {
  transform: rotate(-90deg);
}

body.app-dashboard .app-sidebar-group {
  margin-top: 0;
}

body.app-dashboard .app-sidebar-subnav {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.35rem 0 0.4rem 2.2rem;
  padding-left: 0.8rem;
  border-left: 1px solid #e2e8f0;
}

body.app-dashboard .app-sidebar-group.open > .app-sidebar-subnav {
  display: none;
}

body.app-dashboard .app-sidebar-subitem {
  padding: 0.2rem 0;
  border-radius: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.app-dashboard .app-sidebar-subitem:hover {
  background: transparent;
  color: #1f2937;
}

body.app-dashboard .app-sidebar-subitem.is-active {
  color: #1f2937;
  font-weight: 600;
}

body.app-dashboard .app-content {
  margin-left: 240px;
  padding: 2.1rem 2.75rem 3rem;
  width: calc(100% - 240px);
  min-width: 0;
}

body.app-dashboard .app-inner {
  max-width: 1100px;
  margin: 0 auto;
}

body.app-dashboard .page-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

body.app-dashboard .page-welcome-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

body.app-dashboard .page-placement {
  margin: 0;
  font-size: 1rem;
  color: #475569;
}

body.app-dashboard .page-week {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

body.app-dashboard .page-welcome {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.app-dashboard .dm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
}

body.app-dashboard .dm-trigger:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

body.app-dashboard .nav-links .dm-trigger,
body.clinician-shell .nav-links .dm-trigger {
  padding: 0.35rem;
  gap: 0.25rem;
}

body.app-dashboard .nav-links .dm-trigger-text,
body.clinician-shell .nav-links .dm-trigger-text {
  display: none;
}

body.app-dashboard .dm-trigger-icon svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard .dm-unread-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.dm-overlay-open {
  overflow: hidden;
}

body.app-dashboard .dm-header-copy,
body.clinician-shell .dm-header-copy,
body.app-dashboard .dm-header-actions,
body.clinician-shell .dm-header-actions,
body.app-dashboard .dm-list-copy,
body.clinician-shell .dm-list-copy,
body.app-dashboard .dm-chat-header-copy,
body.clinician-shell .dm-chat-header-copy {
  display: flex;
  flex-direction: column;
}

body.app-dashboard .dm-header-actions,
body.clinician-shell .dm-header-actions {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

body.app-dashboard .dm-icon-button,
body.clinician-shell .dm-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

body.app-dashboard .dm-icon-button svg,
body.clinician-shell .dm-icon-button svg,
body.app-dashboard .dm-list-chevron svg,
body.clinician-shell .dm-list-chevron svg,
body.app-dashboard .dm-send-button svg,
body.clinician-shell .dm-send-button svg,
body.app-dashboard .dm-compose-fab svg,
body.clinician-shell .dm-compose-fab svg,
body.app-dashboard .dm-search-icon svg,
body.clinician-shell .dm-search-icon svg {
  width: 20px;
  height: 20px;
}

body.app-dashboard .dm-search,
body.clinician-shell .dm-search {
  position: relative;
}

body.app-dashboard .dm-search-icon,
body.clinician-shell .dm-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: inline-flex;
  pointer-events: none;
}

body.app-dashboard .dm-search input,
body.clinician-shell .dm-search input {
  padding-left: 2.8rem;
  appearance: none;
  -webkit-appearance: none;
}

body.app-dashboard .dm-search input::-webkit-search-decoration,
body.app-dashboard .dm-search input::-webkit-search-cancel-button,
body.app-dashboard .dm-search input::-webkit-search-results-button,
body.app-dashboard .dm-search input::-webkit-search-results-decoration,
body.clinician-shell .dm-search input::-webkit-search-decoration,
body.clinician-shell .dm-search input::-webkit-search-cancel-button,
body.clinician-shell .dm-search input::-webkit-search-results-button,
body.clinician-shell .dm-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

body.app-dashboard .dm-list-item,
body.clinician-shell .dm-list-item {
  align-items: center;
  gap: 0.8rem;
}

body.app-dashboard .dm-profile-link,
body.clinician-shell .dm-profile-link {
  display: flex;
  align-items: inherit;
  gap: inherit;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

body.app-dashboard .dm-profile-link:hover,
body.app-dashboard .dm-profile-link:focus,
body.clinician-shell .dm-profile-link:hover,
body.clinician-shell .dm-profile-link:focus {
  text-decoration: none;
}

body.app-dashboard .dm-avatar,
body.clinician-shell .dm-avatar,
body.app-dashboard .dm-avatar-badge,
body.clinician-shell .dm-avatar-badge,
body.app-dashboard .dm-message-avatar,
body.clinician-shell .dm-message-avatar,
body.app-dashboard .dm-chat-avatar,
body.clinician-shell .dm-chat-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #bfd0ff 0%, #8eaefb 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.app-dashboard .dm-avatar img,
body.clinician-shell .dm-avatar img,
body.app-dashboard .dm-avatar-badge img,
body.clinician-shell .dm-avatar-badge img,
body.app-dashboard .dm-message-avatar img,
body.clinician-shell .dm-message-avatar img,
body.app-dashboard .dm-chat-avatar img,
body.clinician-shell .dm-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.app-dashboard .dm-list-copy,
body.clinician-shell .dm-list-copy {
  min-width: 0;
  flex: 1;
  gap: 0.2rem;
}

body.app-dashboard .dm-list-heading,
body.clinician-shell .dm-list-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

body.app-dashboard .dm-list-item-title,
body.clinician-shell .dm-list-item-title,
body.app-dashboard #dm-chat-title,
body.clinician-shell #dm-chat-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-dashboard .dm-list-item-meta,
body.clinician-shell .dm-list-item-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-dashboard .dm-chat-avatar,
body.clinician-shell .dm-chat-avatar,
body.app-dashboard .dm-message-avatar,
body.clinician-shell .dm-message-avatar,
body.app-dashboard #dm-chat-title,
body.clinician-shell #dm-chat-title,
body.app-dashboard .dm-chat-subtitle,
body.clinician-shell .dm-chat-subtitle {
  cursor: pointer;
}

body.app-dashboard #dm-chat-title:focus,
body.app-dashboard .dm-chat-subtitle:focus,
body.app-dashboard .dm-chat-avatar:focus,
body.app-dashboard .dm-message-avatar:focus,
body.clinician-shell #dm-chat-title:focus,
body.clinician-shell .dm-chat-subtitle:focus,
body.clinician-shell .dm-chat-avatar:focus,
body.clinician-shell .dm-message-avatar:focus {
  outline: 2px solid rgba(79, 110, 247, 0.32);
  outline-offset: 2px;
}

body.app-dashboard .dm-chat-header,
body.clinician-shell .dm-chat-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

body.app-dashboard .dm-chat-header-copy,
body.clinician-shell .dm-chat-header-copy {
  min-width: 0;
  flex: 1;
  gap: 0.15rem;
}

body.app-dashboard .dm-back-button,
body.clinician-shell .dm-back-button,
body.app-dashboard .dm-thread-info,
body.clinician-shell .dm-thread-info,
body.app-dashboard .dm-compose-fab,
body.clinician-shell .dm-compose-fab {
  display: none;
}

body.app-dashboard .dm-mobile-cta-wrap,
body.clinician-shell .dm-mobile-cta-wrap {
  display: none;
}

body.app-dashboard .dm-new-message,
body.clinician-shell .dm-new-message {
  font: inherit;
}

body.app-dashboard .dm-message-row,
body.clinician-shell .dm-message-row {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

body.app-dashboard .dm-message-row--me,
body.clinician-shell .dm-message-row--me {
  justify-content: flex-end;
}

body.app-dashboard .dm-message-avatar,
body.clinician-shell .dm-message-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
}

body.app-dashboard .dm-message-text,
body.clinician-shell .dm-message-text {
  white-space: pre-wrap;
}

body.app-dashboard .dm-day-divider,
body.clinician-shell .dm-day-divider {
  align-self: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

body.app-dashboard .dm-empty,
body.clinician-shell .dm-empty {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.app-dashboard .dm-empty strong,
body.clinician-shell .dm-empty strong {
  font-size: 0.96rem;
  color: #334155;
}

body.app-dashboard .dm-empty span,
body.clinician-shell .dm-empty span {
  color: #94a3b8;
}

body.app-dashboard .dm-send-button,
body.clinician-shell .dm-send-button {
  border: none;
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5f86ff 0%, #2755ee 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 26px rgba(79, 110, 247, 0.22);
  cursor: pointer;
}

body.app-dashboard .dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-dashboard .dm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

body.app-dashboard .dm-panel {
  position: relative;
  width: min(980px, 94vw);
  height: min(680px, 86vh);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

body.app-dashboard .dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e2e8f0;
}

body.app-dashboard .dm-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

body.app-dashboard .dm-body {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 0;
}

body.app-dashboard .dm-sidebar {
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.app-dashboard .dm-search {
  padding: 0.9rem 1rem 0.5rem;
}

body.app-dashboard .dm-search input {
  width: 100%;
  padding: 0.5rem 0.9rem 0.5rem 2.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  background: #ffffff;
  box-sizing: border-box;
}

body.app-dashboard .dm-section {
  padding: 0 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

body.app-dashboard .dm-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0 0.25rem;
}

body.app-dashboard .dm-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 200px;
  overflow: auto;
  padding: 0 0.15rem;
}

body.app-dashboard .dm-list-item {
  border: 1px solid transparent;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.65rem 0.75rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
}

body.app-dashboard .dm-list-item:hover,
body.app-dashboard .dm-list-item:focus {
  border-color: #c7d2fe;
  background: #eef2ff;
  outline: none;
}

body.app-dashboard .dm-list-item.is-active {
  border-color: #4f6ef7;
  background: #eef2ff;
}

body.app-dashboard .dm-list-item-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
}

body.app-dashboard .dm-list-item-meta {
  color: #64748b;
  font-size: 0.78rem;
}

body.app-dashboard .dm-list-item.unread .dm-list-item-title::after {
  content: none;
}

body.app-dashboard .dm-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.app-dashboard .dm-chat-header {
  padding: 1rem 1.2rem 0.6rem;
  border-bottom: 1px solid #e2e8f0;
}

body.app-dashboard .dm-chat-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

body.app-dashboard .dm-messages {
  flex: 1;
  padding: 1rem 1.2rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #f9fafb;
}

body.app-dashboard .dm-message {
  max-width: 70%;
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.9rem;
  align-self: flex-start;
}

body.app-dashboard .dm-message--me {
  align-self: flex-end;
  background: #eef2ff;
  border-color: #c7d2fe;
}

body.app-dashboard .dm-message--pending {
  opacity: 0.78;
}

body.app-dashboard .dm-message-time {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

body.app-dashboard .dm-empty {
  color: #94a3b8;
  font-size: 0.9rem;
}

body.app-dashboard .dm-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

body.app-dashboard .dm-form input {
  flex: 1;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

body.app-dashboard .dm-form input:disabled {
  background: #f1f5f9;
}

body.app-dashboard .dm-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  body.app-dashboard .dm-panel {
    width: 94vw;
    height: 90vh;
  }

  body.app-dashboard .dm-body {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .dm-sidebar {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  body.app-dashboard .dm-list {
    max-height: 160px;
  }
}

body.app-dashboard .page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e2e8f0;
}

body.app-dashboard .app-page-section {
  display: none;
}

body.app-dashboard .app-page-section.is-active {
  display: block;
}

body.app-dashboard .app-shell-view-page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.app-dashboard .student-shell-view-host {
  position: relative;
  width: 100%;
}

body.app-dashboard .student-shell-view-surface {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

body.app-dashboard .student-shell-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem 0;
}

body.app-dashboard .student-shell-view-head-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

body.app-dashboard .student-shell-view-kicker {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.app-dashboard .student-shell-view-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

body.app-dashboard .student-shell-view-subtitle {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 56ch;
}

body.app-dashboard .student-shell-view-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.app-dashboard .student-shell-view-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.2rem 1.2rem;
}

body.app-dashboard .student-shell-view-panel {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.app-dashboard .student-shell-view-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0;
}

body.app-dashboard .student-shell-view-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

body.app-dashboard .student-shell-view-panel-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.app-dashboard .student-shell-view-panel-note {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.app-dashboard .student-shell-view-panel-body {
  padding: 1rem;
}

body.app-dashboard .student-shell-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

body.app-dashboard .student-shell-summary-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #fff);
  padding: 0.85rem 0.9rem;
}

body.app-dashboard .student-shell-summary-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.app-dashboard .student-shell-summary-value {
  display: block;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.app-dashboard .student-shell-summary-meta {
  display: block;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.82rem;
}

body.app-dashboard .student-shell-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.app-dashboard .student-shell-week-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

body.app-dashboard .student-shell-week-label {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body.app-dashboard .student-shell-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: #f8fafc;
  padding: 1rem;
  color: #64748b;
  text-align: center;
}

body.app-dashboard .student-shell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.app-dashboard .student-shell-chip-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

body.app-dashboard .student-shell-chip {
  border: 1px solid #dbe4f2;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
}

body.app-dashboard .student-shell-chip.is-active {
  border-color: #5b72f2;
  background: rgba(91, 114, 242, 0.12);
  color: #3752d8;
}

body.app-dashboard .student-shell-view-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.94), rgba(238, 242, 255, 0.9));
  color: #475569;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}

body.app-dashboard .student-shell-view-host.is-loading .student-shell-view-loading {
  opacity: 1;
}

body.app-dashboard .student-shell-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  display: none;
}

body.app-dashboard .student-shell-frame.is-active {
  display: block;
}

body.app-dashboard.has-external-shell-view .today-header {
  display: none;
}

body.app-dashboard.has-external-shell-view .app-content {
  padding-top: 1.35rem;
  overflow: visible;
}

body.app-dashboard.has-external-shell-view .app-inner {
  max-width: 100%;
  margin: 0;
}

body.app-dashboard.has-external-shell-view .student-shell-view-host {
  height: auto;
  min-height: calc(100dvh - var(--navbar-height) - var(--safe-top) - 2.2rem);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.app-dashboard.has-external-shell-view .student-shell-view-head {
  display: none;
}

body.app-dashboard.has-external-shell-view .student-shell-view-body {
  padding: 0;
}

body.app-dashboard.has-external-shell-view .student-shell-page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

body.app-dashboard.has-external-shell-view .student-shell-page-shell .app-inner {
  max-width: 1200px;
  margin: 0 auto;
}

body.app-dashboard.has-external-shell-view.forms-page .student-shell-page-shell--forms {
  gap: 1rem;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-panel {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card {
  border: 1px solid rgba(224, 230, 244, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 255, 0.98));
  border-radius: 1.1rem;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(31, 41, 74, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card:hover,
body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(31, 41, 74, 0.08);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card.is-active {
  border-color: rgba(163, 181, 255, 0.98);
  box-shadow: 0 16px 32px rgba(79, 110, 247, 0.12);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card--draft.is-active {
  border-color: rgba(253, 188, 116, 0.98);
  box-shadow: 0 16px 32px rgba(234, 124, 35, 0.12);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card--submitted.is-active {
  border-color: rgba(253, 174, 174, 0.98);
  box-shadow: 0 16px 32px rgba(211, 77, 77, 0.1);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card--success.is-active {
  border-color: rgba(156, 223, 177, 0.98);
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.1);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-card--required.is-active {
  border-color: rgba(163, 181, 255, 0.98);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8090ac;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-value {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #17254a;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview-copy {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #62718d;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-sync-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.88rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(225, 232, 244, 0.98);
  background: rgba(249, 251, 255, 0.98);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-sync-note.is-offline {
  border-color: rgba(194, 208, 255, 0.98);
  background: linear-gradient(180deg, rgba(242, 246, 255, 0.98), rgba(250, 252, 255, 0.98));
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-sync-copy {
  min-width: 0;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-sync-copy strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a66d3;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-sync-copy p {
  margin: 0.22rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5c6c88;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-sync-meta {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8090ac;
}

body.app-dashboard.forms-page .forms-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard.forms-page .forms-activity-row {
  cursor: pointer;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-queue-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(224, 230, 244, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 255, 0.98));
  box-shadow: 0 14px 28px rgba(31, 41, 74, 0.05);
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-queue-label {
  margin: 0 0 0.26rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8391aa;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-queue-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #162449;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-queue-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #eef3ff;
  color: #4a66d3;
  font-size: 0.9rem;
  font-weight: 600;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-queue-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5f6f8d;
}

body.app-dashboard.has-external-shell-view.forms-page .shell-forms-next-action {
  margin: 0.78rem 0 0;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(231, 237, 246, 0.92);
  font-size: 0.92rem;
  line-height: 1.5;
  color: #24365d;
  font-weight: 600;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-card {
  gap: 0.78rem;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-pill--draft {
  background: #ffedd5;
  color: #c55b14;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-pill--submitted {
  background: #fee2e2;
  color: #b42323;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-pill--success {
  background: #dcfce7;
  color: #1c7f42;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-pill--required {
  background: #eef2ff;
  color: #4864d1;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: #8090ac;
}

body.app-dashboard.has-external-shell-view.forms-page .forms-template-status-summary {
  margin: -0.1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #61708d;
}

body.app-dashboard.teaching-page .student-shell-teaching-search-trigger {
  border: none;
  width: min(220px, 100%);
  justify-content: flex-start;
  cursor: pointer;
  color: #64748b;
  font: inherit;
}

body.app-dashboard.teaching-page .student-shell-teaching-search-trigger span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .student-shell-page-shell--timetable {
  gap: 0.9rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page.schedule-detail-open {
  overflow: hidden;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-header {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page #schedule-page-title {
  margin: 0;
  font-size: clamp(1.82rem, 7vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: #17254a;
}

body.app-dashboard.has-external-shell-view.student-schedule-page #schedule-placement-label {
  margin: 0;
  color: #667591;
  font-size: 0.98rem;
  line-height: 1.42;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-surface {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 1rem;
  align-items: start;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.12rem 0 0.8rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-month-control {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-month-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid #e1e7f5;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.82rem 2.5rem 0.82rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #223055;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-month-select:focus {
  outline: none;
  border-color: #bfd0ff;
  box-shadow: 0 0 0 3px rgba(123, 146, 255, 0.16);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-month-chevron {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7b88a5;
  font-size: 0.9rem;
  pointer-events: none;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 0.16rem;
  border-radius: 999px;
  border: 1px solid #e1e7f5;
  background: #f7f9fe;
  flex: 0 0 auto;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-btn {
  border: none;
  background: transparent;
  color: #6a7793;
  min-width: 76px;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-btn.is-active {
  background: #ffffff;
  color: #4468df;
  box-shadow: 0 6px 16px rgba(84, 106, 198, 0.14);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid #edf1f8;
  touch-action: pan-y;
  user-select: none;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-button {
  border: none;
  background: transparent;
  padding: 0.1rem 0.1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  color: #6f7d97;
  font: inherit;
  cursor: pointer;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-weekday {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-number {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  color: #243459;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-button.is-selected .shell-timetable-date-number {
  background: linear-gradient(135deg, #eef2ff 0%, #dee6ff 100%);
  color: #4264d8;
  box-shadow: inset 0 0 0 1px rgba(126, 145, 244, 0.22);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-button.is-today:not(.is-selected) .shell-timetable-date-number {
  color: #4d68d2;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: transparent;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-dot.has-event {
  background: #7b8cff;
  opacity: 0.7;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-button.is-selected .shell-timetable-date-dot.has-event {
  opacity: 1;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-shell {
  display: flex;
  flex-direction: column;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 0 0.55rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-copy {
  min-width: 0;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a97ae;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  color: #1c294c;
  letter-spacing: -0.02em;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-count {
  margin: 0;
  font-size: 0.92rem;
  color: #7b879d;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-action {
  border: 1px solid #e1e7f5;
  background: #ffffff;
  color: #425ed0;
  min-height: 36px;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(96, 115, 189, 0.08);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: #f7f9fe;
  color: #60708f;
  border: 1px solid rgba(225, 231, 245, 0.96);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-pill--live {
  background: rgba(230, 246, 241, 0.95);
  border-color: rgba(165, 220, 207, 0.98);
  color: #1f7a68;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-pill--warning {
  background: #f8eedb;
  border-color: rgba(234, 204, 136, 0.92);
  color: #946d28;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-pill--muted {
  color: #76839e;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.35rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item {
  --shell-timetable-accent: #8da4ff;
  width: 100%;
  display: grid;
  grid-template-columns: 3.15rem 0.95rem minmax(0, 1fr) 0.85rem;
  gap: 0.6rem;
  align-items: start;
  border: none;
  border-top: 1px solid #edf1f7;
  background: transparent;
  text-align: left;
  padding: 0.95rem 0 0.95rem 0;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item:first-child {
  border-top: none;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item:hover,
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item:focus-visible {
  background: #fbfcff;
  transform: translateY(-1px);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item.is-selected {
  background: linear-gradient(180deg, rgba(247, 249, 255, 0.96), rgba(252, 253, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(196, 207, 241, 0.75);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item--state-live {
  background: linear-gradient(180deg, rgba(244, 252, 249, 0.96), rgba(252, 255, 254, 0.98));
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item--state-past {
  opacity: 0.82;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item--blue {
  --shell-timetable-accent: #7cb1ff;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item--amber {
  --shell-timetable-accent: #e8c66e;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item--violet {
  --shell-timetable-accent: #b7a5ff;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item--teal {
  --shell-timetable-accent: #74d1c5;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item--lavender {
  --shell-timetable-accent: #c8c1ef;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-time {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  align-items: flex-start;
  min-width: 0;
  padding-top: 0.08rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-time-start {
  font-size: 0.94rem;
  font-weight: 500;
  color: #4e5e81;
  line-height: 1.2;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-time-end {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #96a1b5;
  line-height: 1.1;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-marker {
  position: relative;
  display: block;
  min-height: 100%;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.05rem;
  bottom: 0.05rem;
  width: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(210, 218, 236, 0.96);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--shell-timetable-accent);
  box-shadow: 0 0 0 4px rgba(245, 247, 255, 0.98);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding-left: 0.75rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  bottom: 0.1rem;
  width: 3px;
  border-radius: 999px;
  background: var(--shell-timetable-accent);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-inline-time {
  font-size: 0.88rem;
  font-weight: 500;
  color: #7b88a3;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #eef3ff;
  color: #4a66d3;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-pill--live {
  background: rgba(230, 246, 241, 0.98);
  color: #1f7a68;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-pill--past {
  background: #f4f6fb;
  color: #7a879e;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #f6ead2;
  color: #9a7330;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-title {
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 600;
  color: #1d294b;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-location,
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-clinician {
  font-size: 0.92rem;
  line-height: 1.35;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-meta-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-location {
  color: #495a7d;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-clinician {
  color: #72809a;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-meta-dot {
  color: #b0bbcf;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-type {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6f7d97;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-note {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #7a86a0;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-chevron {
  color: #a4b0c4;
  font-size: 1.3rem;
  line-height: 1;
  padding-top: 0.2rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0 0 1.05rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-axis {
  display: grid;
  grid-template-rows: repeat(var(--shell-timetable-hour-count), var(--shell-timetable-hour-height));
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-axis-label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.05rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8b97ac;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-track {
  position: relative;
  height: calc(var(--shell-timetable-hour-count) * var(--shell-timetable-hour-height));
  border-top: 1px solid #eef2f8;
  border-left: 1px solid #edf1f8;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--shell-timetable-hour-height) - 1px),
      #eef2f8 calc(var(--shell-timetable-hour-height) - 1px),
      #eef2f8 var(--shell-timetable-hour-height)
    );
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-now {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px solid #4f6ae0;
  z-index: 2;
  pointer-events: none;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-now::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: -0.33rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #4f6ae0;
  box-shadow: 0 0 0 4px rgba(79, 106, 224, 0.14);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-now-label {
  position: absolute;
  right: 0.5rem;
  top: -0.9rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: #4f6ae0;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event {
  --shell-timetable-accent: #8da4ff;
  position: absolute;
  left: 0.55rem;
  right: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  border: 1px solid rgba(224, 231, 245, 0.98);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 3px 0 0 var(--shell-timetable-accent),
    0 12px 24px rgba(15, 23, 42, 0.06);
  padding: 0.55rem 0.7rem 0.55rem 0.8rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event.is-selected {
  border-color: rgba(160, 179, 255, 0.96);
  background: #f9fbff;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event--state-live {
  background: rgba(245, 253, 250, 0.98);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event--state-past {
  opacity: 0.88;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event--blue {
  --shell-timetable-accent: #7cb1ff;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event--amber {
  --shell-timetable-accent: #e8c66e;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event--violet {
  --shell-timetable-accent: #b7a5ff;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event--teal {
  --shell-timetable-accent: #74d1c5;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event--lavender {
  --shell-timetable-accent: #c8c1ef;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-time {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6f7c96;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-title {
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 600;
  color: #1c294b;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-meta {
  font-size: 0.82rem;
  color: #6f7d97;
  line-height: 1.3;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: auto;
  padding-top: 0.08rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #eef3ff;
  color: #4a66d3;
  font-size: 0.68rem;
  font-weight: 500;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-pill--live {
  background: rgba(230, 246, 241, 0.98);
  color: #1f7a68;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-pill--past {
  background: #f4f6fb;
  color: #75829b;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f6ead2;
  color: #9a7330;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-empty {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 1.2rem 1rem 1.25rem;
  color: #667591;
  border-radius: 1.1rem;
  border: 1px solid rgba(230, 235, 246, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98));
  box-shadow: 0 12px 26px rgba(115, 132, 180, 0.06);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-empty-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8e99ad;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-empty-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2b4c;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-empty-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel {
  position: sticky;
  top: 1rem;
  align-self: start;
  border-radius: 1.35rem;
  border: 1px solid rgba(226, 232, 243, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 255, 0.99));
  box-shadow: 0 18px 34px rgba(31, 41, 74, 0.08);
  overflow: hidden;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel.is-hidden {
  display: none;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(231, 237, 246, 0.92);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-label {
  margin: 0 0 0.24rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7387a1;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-header h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.28;
  color: #1b2a4d;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-body {
  padding: 0.95rem 1rem 1rem;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero {
  position: relative;
  margin-bottom: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f8faff 100%);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 4px;
  border-radius: 999px;
  background: #7c8eff;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero--amber::before {
  background: #e6be62;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero--violet::before {
  background: #b7a5ff;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero--teal::before {
  background: #74d1c5;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero--lavender::before {
  background: #c8c1ef;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a88a3;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero-time {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1b2a4d;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-hero-subtitle {
  margin: 0.28rem 0 0;
  font-size: 0.94rem;
  line-height: 1.4;
  color: #5c6c88;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-badge--live {
  background: rgba(230, 246, 241, 0.98);
  color: #1f7a68;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-badge--past {
  background: #f4f6fb;
  color: #74829b;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-section {
  margin-bottom: 0.9rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-section-title {
  margin: 0 0 0.48rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #607690;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-meta {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(233, 238, 246, 0.92);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-row:last-child {
  border-bottom: none;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-key {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #70849e;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-value {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2f4f;
  text-align: right;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-signals {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-signals li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #516780;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-signals li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #8ca4c3;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-notes {
  margin-top: 0.15rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(229, 235, 244, 0.96);
  background: #f8fafd;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-notes h3 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5e728c;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-notes p {
  margin: 0;
  color: #445b75;
  font-size: 0.84rem;
  line-height: 1.48;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-empty {
  margin: 0.3rem 0 0;
  color: #6e839f;
  font-size: 0.86rem;
  line-height: 1.45;
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(231, 237, 246, 0.92);
}

body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 820px) {
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-controls {
    gap: 0.55rem;
    padding: 0.08rem 0 0.72rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-btn {
    min-width: 66px;
    padding-inline: 0.75rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-strip {
    padding: 0 0 0.85rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary {
    padding-inline: 0;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-summary-head {
    gap: 0.6rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item {
    grid-template-columns: 2.85rem 0.9rem minmax(0, 1fr) 0.75rem;
    gap: 0.5rem;
    padding: 0.9rem 0 0.9rem 0;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar {
    grid-template-columns: 2.7rem minmax(0, 1fr);
    padding: 0 0 1rem;
  }

  body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-dashboard.has-external-shell-view.forms-page .shell-forms-sync-note {
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (max-width: 820px) {
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 2200;
    width: 100%;
    max-width: none;
    height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding:
      calc(env(safe-area-inset-top, 0px) + 0.9rem)
      1rem
      calc(env(safe-area-inset-bottom, 0px) + 1rem);
    border-radius: 0;
    border: none;
    background:
      linear-gradient(180deg, rgba(243, 246, 255, 0.985) 0%, rgba(255, 255, 255, 0.985) 26%, rgba(248, 250, 255, 0.99) 100%);
    box-shadow: none;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity 0.24s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(241, 244, 255, 0.9) 0%, rgba(255, 255, 255, 0.97) 100%);
    pointer-events: none;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel.is-hidden {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.22s ease,
      visibility 0s linear 0.22s;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-header,
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-body {
    position: relative;
    z-index: 1;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-header {
    align-items: center;
    margin-bottom: 0.95rem;
    padding: 0 0 1rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-header h2 {
    font-size: 1.5rem;
    line-height: 1.12;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-close {
    width: 44px;
    height: 44px;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-body {
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
    padding: 0 0 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-bottom: 0.7rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-value {
    text-align: left;
    font-size: 1rem;
    line-height: 1.42;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-notes {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
  }

  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-empty,
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-notes p,
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-signals li {
    font-size: 0.96rem;
    line-height: 1.54;
  }

  body.app-dashboard.has-external-shell-view.forms-page .shell-forms-overview {
    grid-template-columns: 1fr;
  }

  body.app-dashboard.has-external-shell-view.forms-page .shell-forms-queue-head {
    align-items: center;
  }
}

body.clinician-shell .clinician-shell-view-section {
  display: none;
}

body.clinician-shell .clinician-shell-view-host {
  position: relative;
  width: 100%;
}

body.clinician-shell .clinician-shell-view-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.94), rgba(238, 242, 255, 0.9));
  color: #475569;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}

body.clinician-shell .clinician-shell-view-host.is-loading .clinician-shell-view-loading {
  opacity: 1;
}

body.clinician-shell .clinician-shell-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  display: none;
}

body.clinician-shell .clinician-shell-frame.is-active {
  display: block;
}

body.clinician-shell.has-external-clinician-shell-view .clinician-shell-default-view {
  display: none;
}

body.clinician-shell.has-external-clinician-shell-view .clinician-shell-view-section {
  display: block;
}

body.clinician-shell.has-external-clinician-shell-view .app-content {
  padding-top: 1.35rem;
  overflow: hidden;
}

body.clinician-shell.has-external-clinician-shell-view .clinician-shell-view-host {
  height: calc(100dvh - var(--navbar-height) - var(--safe-top) - 2.2rem);
  min-height: 680px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html.is-embedded-shell,
html.is-embedded-shell body.embedded-shell {
  background: transparent;
}

body.embedded-shell .navbar,
body.embedded-shell .app-sidebar,
body.embedded-shell .bug-report-fab,
body.embedded-shell .page-welcome-block {
  display: none !important;
}

body.embedded-shell.embedded-shell-frame .mobile-nav,
body.embedded-shell.embedded-shell-frame .mobile-more-panel,
body.embedded-shell.embedded-shell-frame .dm-overlay {
  display: none !important;
}

body.embedded-shell .app-shell {
  display: block !important;
  min-height: 100dvh;
  padding: 0 !important;
}

body.embedded-shell .app-content {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 1.25rem 1rem 1.25rem !important;
}

body.embedded-shell.embedded-shell-top-level .app-content {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem) !important;
}

body.embedded-shell .app-inner {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.app-dashboard .page-tab {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
}

body.app-dashboard .page-tab.notice-unread {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.app-dashboard .notice-unread::after {
  content: attr(data-unread-count);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
}

body.app-dashboard .today-card--notice .notice-view-all {
  position: relative;
}

body.app-dashboard .today-card--notice .notice-view-all.notice-unread::after {
  position: absolute;
  top: -6px;
  right: -6px;
  margin-left: 0;
  transform: none;
  pointer-events: none;
}

body.app-dashboard .app-sidebar-link.notice-unread::after {
  margin-left: auto;
}

body.app-dashboard #dm-trigger.notice-unread {
  position: relative;
}

body.app-dashboard #dm-trigger.notice-unread::after {
  position: absolute;
  top: -7px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: 0 5px 10px rgba(255, 79, 66, 0.22);
}

body.app-dashboard .page-tab.is-active {
  color: #1f2937;
  border-bottom-color: #4f6ef7;
}

body.app-dashboard .page-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.4rem 0 1rem;
}

body.app-dashboard .page-title-row h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
}

body.app-dashboard .page-date {
  color: #94a3b8;
  font-size: 0.95rem;
}

body.app-dashboard .card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1ff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.6rem;
}

body.app-dashboard .card-dashboard {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2rem;
}

body.app-dashboard .dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
}

body.app-dashboard .dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard .dashboard-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1ff;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.app-dashboard .dashboard-card--clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.app-dashboard .dashboard-card--clickable:hover {
  transform: translateY(-2px);
  border-color: #d6e1ff;
  box-shadow: 0 18px 36px rgba(59, 96, 246, 0.18);
}

body.app-dashboard .dashboard-card--clickable:active {
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(59, 96, 246, 0.12);
}

body.app-dashboard .dashboard-card-label {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
}

body.app-dashboard .dashboard-card-text {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---- Profile pages ---- */
body.profile-page .profile-intro {
  margin: 0 0 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
}

body.profile-page .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

body.profile-page .profile-card,
body.profile-page .profile-side-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1ff;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

body.profile-page .profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

body.profile-page .profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-weight: 600;
  font-size: 1.4rem;
  overflow: hidden;
}

body.profile-page .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.profile-page .profile-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
}

body.profile-page .profile-email {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

body.profile-page .profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.profile-page .profile-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

body.profile-page .profile-field {
  flex: 1 1 0;
  min-width: 220px;
}

body.profile-page .profile-field-full {
  flex-basis: 100%;
}

body.profile-page .profile-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #374151;
}

body.profile-page .profile-field input,
body.profile-page .profile-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  background: #ffffff;
}

body.profile-page .profile-field textarea {
  resize: vertical;
}

body.profile-page .profile-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.profile-page .profile-status {
  font-size: 0.85rem;
  color: #64748b;
}

body.profile-page .profile-status.is-error {
  color: #b91c1c;
}

body.profile-page .profile-status.is-success {
  color: #15803d;
}

body.profile-page .profile-details {
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.85rem;
}

body.profile-page .profile-details div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.profile-page .profile-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

body.profile-page .profile-details dd {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
}

body.profile-page .profile-side-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

body.student-profile-page .profile-hero {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

body.student-profile-page .profile-hero-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.student-profile-page .profile-hero-title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #111827;
}

body.student-profile-page .profile-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.85rem;
  font-weight: 500;
}

body.student-profile-page .profile-intro {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

body.student-profile-page .profile-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
}

body.student-profile-page .profile-card,
body.student-profile-page .profile-side-card {
  border-radius: 22px;
  border: 1px solid #e7edff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

body.student-profile-page .profile-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid #eef2ff;
}

body.student-profile-page .profile-avatar-row {
  margin-bottom: 0;
  gap: 0.9rem;
}

body.student-profile-page .profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.2rem;
}

body.student-profile-page .profile-name {
  font-size: 1.1rem;
}

body.student-profile-page .profile-email {
  font-size: 0.9rem;
}

body.student-profile-page .profile-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

body.student-profile-page .profile-upload-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.student-profile-page .profile-upload-icon svg {
  width: 100%;
  height: 100%;
}

body.student-profile-page .profile-form {
  gap: 0.85rem;
}

body.student-profile-page .profile-form-row {
  flex-direction: column;
  gap: 0.75rem;
}

body.student-profile-page .profile-field input,
body.student-profile-page .profile-field textarea {
  border-radius: 0.85rem;
  border-color: #e2e8f0;
  background: #ffffff;
}

body.student-profile-page .profile-form-actions {
  gap: 1rem;
  margin-top: 0.4rem;
}

body.student-profile-page .profile-details {
  margin-top: 1rem;
  gap: 1rem;
}

body.student-profile-page .profile-details dt {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

body.student-profile-page .profile-details dd {
  font-size: 0.95rem;
  color: #1f2937;
}

body.student-profile-page .profile-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.8rem;
  font-weight: 500;
}

body.student-profile-page #profile-placement {
  white-space: pre-line;
  line-height: 1.4;
}

body.student-profile-page .profile-side-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1.2rem 0 0.9rem;
}

body.student-profile-page .profile-deactivate {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #fee2e2;
  background: #fff1f2;
  color: #b91c1c;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

body.student-profile-page .profile-deactivate-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.student-profile-page .profile-deactivate-icon svg {
  width: 100%;
  height: 100%;
}

/* ---- Student profile page (clinical profile redesign) ---- */
body.student-profile-page {
  background: var(--pf-canvas, #fff);
}

body.student-profile-page .app-content {
  background: var(--pf-canvas, #fff);
}

body.student-profile-page .student-profile-status {
  max-width: 1260px;
  margin: 0 auto 14px;
  font-size: 14px;
  color: #7d8aa3;
}

body.student-profile-page .student-profile-status.is-error {
  color: #b91c1c;
}

body.student-profile-page .student-profile-status.is-success {
  color: #047857;
}

body.student-profile-page .student-profile-status.is-hidden {
  display: none;
}

body.student-profile-page .student-profile-view {
  width: min(100%, 1260px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Frame v1 exposes this shared page heading above the preserved profile hero.
   The phone masthead still owns its separate mobile heading in student-shell.css. */
body.student-profile-page:not(.pf-frame-v1) .student-profile-page-head {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.student-profile-page .student-profile-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  grid-template-areas:
    "label actions"
    "identity placement";
  gap: 20px 34px;
  min-height: 0;
  padding: 24px 28px 24px 34px;
  overflow: hidden;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(12, 31, 63, 0.04),
    0 18px 42px rgba(12, 31, 63, 0.07);
}

body.student-profile-page .student-profile-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #075ff0;
}

body.student-profile-page .student-profile-hero-label {
  grid-area: label;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #071637;
  font-size: 17px;
  font-weight: 500;
}

body.student-profile-page .student-profile-hero-label-icon,
body.student-profile-page .student-profile-card-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d7e5fb;
  border-radius: 8px;
  background: #f4f8ff;
  color: #075ff0;
}

body.student-profile-page .student-profile-hero-label-icon svg,
body.student-profile-page .student-profile-card-icon svg {
  width: 20px;
  height: 20px;
}

body.student-profile-page .student-profile-hero-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.student-profile-page .student-profile-hero-actions .btn {
  min-height: 40px;
  min-width: 136px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

body.student-profile-page .student-profile-hero-actions .btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #bcd1ff;
  color: #075ff0;
}

body.student-profile-page .student-profile-hero-actions .btn.secondary svg {
  width: 18px;
  height: 18px;
}

body.student-profile-page .student-profile-identity {
  grid-area: identity;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-width: 0;
  padding: 2px 0 0 2px;
}

body.student-profile-page .student-profile-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e9eff8;
  color: #071637;
  border: 1px solid #dbe6f7;
  box-shadow: 0 14px 28px rgba(12, 31, 63, 0.1);
  font-size: 30px;
  font-weight: 600;
}

body.student-profile-page .student-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.student-profile-page .student-profile-identity-copy {
  min-width: 0;
}

body.student-profile-page .student-profile-identity-copy h2 {
  margin: 0;
  color: #071637;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

body.student-profile-page .student-profile-subtitle {
  margin: 7px 0 0;
  color: #526584;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

body.student-profile-page .student-profile-name-rule {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px 0;
  border-radius: 999px;
  background: #075ff0;
}

body.student-profile-page .student-profile-bio {
  max-width: 430px;
  margin: 0;
  color: #395176;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

body.student-profile-page .student-profile-chip-row {
  display: none;
}

body.student-profile-page .student-profile-completion {
  display: grid;
  grid-template-columns: auto max-content minmax(150px, 260px);
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: #4f6385;
  font-size: 13px;
  font-weight: 600;
}

body.student-profile-page .student-profile-completion-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bcd1ff;
  border-radius: 50%;
  color: #075ff0;
}

body.student-profile-page .student-profile-completion-icon svg {
  width: 14px;
  height: 14px;
}

body.student-profile-page .student-profile-completion > span:nth-child(2) {
  white-space: nowrap;
}

body.student-profile-page .student-profile-completion-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eefb;
}

body.student-profile-page .student-profile-completion-track span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: #075ff0;
}

body.student-profile-page .student-profile-placement-card {
  position: relative;
  grid-area: placement;
  min-width: 0;
  padding: 12px 0 0 34px;
  border-left: 1px solid #dbe6f7;
  overflow: hidden;
}

body.student-profile-page .student-profile-placement-card::before {
  content: "";
  position: absolute;
  inset: 0 -32px -24px 18px;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(28deg, transparent 0 28px, rgba(7, 95, 240, 0.055) 29px 30px),
    repeating-linear-gradient(118deg, transparent 0 34px, rgba(7, 95, 240, 0.04) 35px 36px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34%, #000 100%);
}

body.student-profile-page .student-profile-placement-card > * {
  position: relative;
  z-index: 1;
}

body.student-profile-page .student-profile-placement-kicker {
  margin-bottom: 10px;
  color: #526584;
  font-size: 13px;
  font-weight: 500;
}

body.student-profile-page .student-profile-placement-card h3 {
  max-width: 480px;
  margin: 0 0 16px;
  color: #071637;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
}

body.student-profile-page .student-profile-placement-meta {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-right: 142px;
}

body.student-profile-page .student-profile-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #4d6388;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

body.student-profile-page .student-profile-meta-row strong {
  color: #395176;
  font-weight: 700;
}

body.student-profile-page .student-profile-meta-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #687c9d;
}

body.student-profile-page .student-profile-meta-icon svg {
  width: 20px;
  height: 20px;
}

body.student-profile-page .student-profile-status-chip {
  position: absolute;
  top: 86px;
  right: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #bce4d2;
  border-radius: 8px;
  background: #effbf5;
  color: #08723e;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

body.student-profile-page .student-profile-status-chip span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #19a563;
}

body.student-profile-page .student-profile-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 44px);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #dbe6f7;
  color: #075ff0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.student-profile-page .student-profile-message:hover {
  color: #064fca;
}

body.student-profile-page .student-profile-message svg {
  width: 20px;
  height: 20px;
}

body.student-profile-page .student-profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(12, 31, 63, 0.04),
    0 8px 24px rgba(12, 31, 63, 0.04);
}

body.student-profile-page .student-profile-tab {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #e5edf8;
  background: #ffffff;
  color: #536785;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

body.student-profile-page .student-profile-tab:last-child {
  border-right: 0;
}

body.student-profile-page .student-profile-tab svg {
  width: 21px;
  height: 21px;
}

body.student-profile-page .student-profile-tab.is-active {
  color: #075ff0;
}

body.student-profile-page .student-profile-tab.is-active::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #075ff0;
}

body.student-profile-page .student-profile-panel {
  display: block;
}

body.student-profile-page .student-profile-panel[hidden] {
  display: none;
}

body.student-profile-page .student-profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

body.student-profile-page .student-profile-card {
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(12, 31, 63, 0.04),
    0 12px 30px rgba(12, 31, 63, 0.05);
}

body.student-profile-page .student-profile-about-card,
body.student-profile-page .student-profile-highlights-card {
  min-height: 238px;
  padding: 28px;
}

body.student-profile-page .student-profile-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

body.student-profile-page .student-profile-card-heading h2 {
  margin: 0;
  color: #071637;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

body.student-profile-page .student-profile-card p,
body.student-profile-page .student-profile-muted {
  margin: 0;
  color: #395176;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

body.student-profile-page .student-profile-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.student-profile-page .student-profile-highlight-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #fbfdff;
}

body.student-profile-page .student-profile-highlight-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: #075ff0;
}

body.student-profile-page .student-profile-highlight-icon.is-verified {
  background: #eaf8f1;
  color: #159657;
}

body.student-profile-page .student-profile-highlight-icon svg {
  width: 22px;
  height: 22px;
}

body.student-profile-page .student-profile-highlight-item strong {
  display: block;
  color: #071637;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

body.student-profile-page .student-profile-highlight-item span {
  display: block;
  margin-top: 3px;
  color: #5b6e8d;
  font-size: 13px;
  font-weight: 600;
}

body.student-profile-page .student-profile-highlight-item em {
  color: #08723e;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

body.student-profile-page .student-profile-panel > .student-profile-card {
  padding: 28px;
}

body.student-profile-page .student-profile-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
}

body.student-profile-page .student-profile-preferences div {
  min-width: 0;
}

body.student-profile-page .student-profile-preferences dt {
  margin: 0 0 4px;
  color: #8a98ad;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.student-profile-page .student-profile-preferences dd {
  margin: 0;
  color: #071637;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.student-profile-page .student-profile-placements {
  display: grid;
  gap: 12px;
}

body.student-profile-page .student-profile-placement-item {
  padding: 16px;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #fbfdff;
}

body.student-profile-page .student-profile-placement-item-top {
  display: flex;
  justify-content: flex-end;
}

body.student-profile-page .student-profile-placement-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf8f1;
  color: #08723e;
  font-size: 12px;
  font-weight: 500;
}

body.student-profile-page .student-profile-placement-item-title {
  margin-top: 2px;
  color: #071637;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

body.student-profile-page .student-profile-placement-item-range {
  margin-top: 5px;
  color: #5b6e8d;
  font-size: 14px;
  font-weight: 600;
}

body.student-profile-page .student-profile-placement-subtitle {
  margin: 10px 0 2px;
  color: #8a98ad;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.student-profile-page .student-profile-empty {
  color: #7b8aa5;
  font-size: 15px;
  font-weight: 600;
}

body.student-profile-page .student-profile-logout {
  display: inline-flex;
  margin-top: 24px;
  color: #075ff0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.student-profile-page .student-profile-logout:hover {
  color: #064fca;
}

/* Safety for browsers that still hold the old profile.html while loading this CSS. */
body.student-profile-page
  .student-profile-view:has(.student-profile-hero-card:not(:has(.student-profile-hero-label)))
  .student-profile-stats,
body.student-profile-page
  .student-profile-view:has(.student-profile-hero-card:not(:has(.student-profile-hero-label)))
  .student-profile-grid {
  display: none !important;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 0;
  padding: 34px 34px 34px 42px;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-hero-main {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  min-width: 0;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-avatar {
  width: 132px;
  height: 132px;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-hero-details h2 {
  margin: 0;
  color: #071637;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-subtitle {
  margin-top: 12px;
  color: #526584;
  font-size: 22px;
  font-weight: 500;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-bio:empty,
body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-chip-row {
  display: none;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-hero-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

body.student-profile-page
  .student-profile-hero-card:not(:has(.student-profile-hero-label))
  .student-profile-hero-actions .btn {
  min-height: 44px;
  min-width: 150px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

@media (max-width: 1180px) {
  body.student-profile-page .student-profile-hero-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "actions"
      "identity"
      "placement";
    gap: 24px;
  }

  body.student-profile-page .student-profile-hero-actions {
    justify-content: flex-start;
  }

  body.student-profile-page .student-profile-placement-card {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid #dbe6f7;
  }

  body.student-profile-page .student-profile-status-chip {
    top: 28px;
    right: 0;
  }
}

@media (max-width: 860px) {
  body.student-profile-page .student-profile-hero-card {
    padding: 24px 22px 24px 28px;
  }

  body.student-profile-page .student-profile-identity {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.student-profile-page .student-profile-identity-copy h2 {
    font-size: 34px;
  }

  body.student-profile-page .student-profile-tabs {
    grid-template-columns: 1fr;
  }

  body.student-profile-page .student-profile-tab {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #e5edf8;
  }

  body.student-profile-page .student-profile-tab:last-child {
    border-bottom: 0;
  }

  body.student-profile-page .student-profile-overview-grid,
  body.student-profile-page .student-profile-preferences {
    grid-template-columns: 1fr;
  }

  body.student-profile-page .student-profile-placement-meta {
    padding-right: 0;
  }

  body.student-profile-page .student-profile-status-chip {
    position: static;
    width: max-content;
    margin: 6px 0 0;
  }

  body.student-profile-page .student-profile-message {
    width: 100%;
  }

  body.student-profile-page
    .student-profile-hero-card:not(:has(.student-profile-hero-label)) {
    grid-template-columns: 1fr;
  }

  body.student-profile-page
    .student-profile-hero-card:not(:has(.student-profile-hero-label))
    .student-profile-hero-main {
    grid-template-columns: 1fr;
  }

  body.student-profile-page
    .student-profile-hero-card:not(:has(.student-profile-hero-label))
    .student-profile-hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

body.student-profile-page .student-edit-profile {
  width: min(100%, 1260px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.student-profile-page .student-edit-profile-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

body.student-profile-page .student-edit-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #075ff0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.student-profile-page .student-edit-back svg {
  width: 16px;
  height: 16px;
}

body.student-profile-page .student-edit-profile-head h1 {
  margin: 0;
  color: #071637;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

body.student-profile-page .student-edit-profile-head p {
  margin: 8px 0 0;
  color: #526584;
  font-size: 15px;
  font-weight: 400;
}

body.student-profile-page .student-edit-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

body.student-profile-page .student-edit-actions .btn {
  min-width: 126px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

body.student-profile-page .student-edit-actions .btn.secondary {
  border: 1px solid #bcd1ff;
  background: #ffffff;
  color: #075ff0;
}

body.student-profile-page .student-edit-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: start;
}

body.student-profile-page .student-edit-card {
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(12, 31, 63, 0.04),
    0 12px 30px rgba(12, 31, 63, 0.05);
}

body.student-profile-page .student-edit-card h2 {
  margin: 0;
  color: #071637;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

body.student-profile-page .student-edit-form {
  padding: 22px 24px 26px;
}

body.student-profile-page .student-edit-photo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  min-width: 0;
}

body.student-profile-page .student-edit-avatar,
body.student-profile-page .student-edit-preview-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dbe6f7;
  border-radius: 50%;
  background: #e9eff8;
  color: #071637;
  font-weight: 600;
}

body.student-profile-page .student-edit-avatar {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  font-size: 24px;
  box-shadow: 0 12px 26px rgba(12, 31, 63, 0.09);
}

body.student-profile-page .student-edit-avatar img,
body.student-profile-page .student-edit-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.student-profile-page .student-edit-photo-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}

body.student-profile-page .student-edit-photo-copy > span,
body.student-profile-page .student-edit-label,
body.student-profile-page .student-edit-field label {
  color: #526584;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

body.student-profile-page .student-edit-photo-copy .btn {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #bcd1ff;
  background: #ffffff;
  color: #075ff0;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

body.student-profile-page .student-edit-photo-copy .btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

body.student-profile-page .student-edit-photo-copy p {
  grid-column: 2;
  margin: -2px 0 0;
  color: #526584;
  font-size: 13px;
  font-weight: 400;
}

body.student-profile-page .student-edit-divider {
  height: 1px;
  margin: 24px 0 18px;
  background: #e5edf8;
}

body.student-profile-page .student-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

body.student-profile-page .student-edit-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

body.student-profile-page .student-edit-field-full {
  grid-column: 1 / -1;
}

body.student-profile-page .student-edit-field input,
body.student-profile-page .student-edit-field textarea {
  width: 100%;
  border: 1px solid #cddbf0;
  border-radius: 8px;
  background: #ffffff;
  color: #071637;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.student-profile-page .student-edit-field input {
  min-height: 44px;
  padding: 0 12px;
}

body.student-profile-page .student-edit-field textarea {
  min-height: 94px;
  padding: 12px;
  resize: vertical;
}

body.student-profile-page .student-edit-field input:focus,
body.student-profile-page .student-edit-field textarea:focus {
  border-color: #075ff0;
  box-shadow: 0 0 0 3px rgba(7, 95, 240, 0.13);
}

body.student-profile-page .student-edit-warning {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 14px 0 20px;
  padding: 8px 11px;
  border: 1px solid #bcd1ff;
  border-radius: 8px;
  background: #f6f9ff;
  color: #075ff0;
  font-size: 13px;
  font-weight: 600;
}

body.student-profile-page .student-edit-warning svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

body.student-profile-page .student-edit-interest-chips,
body.student-profile-page .student-edit-interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.student-profile-page .student-edit-interest-empty {
  color: #6a7c98;
  font-size: 13px;
  font-weight: 600;
}

body.student-profile-page .student-edit-interest-chip,
body.student-profile-page .student-edit-interest-options button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.student-profile-page .student-edit-interest-chip {
  padding: 0 11px;
  border: 1px solid #cbdcf8;
  background: #eef5ff;
  color: #0b4fc5;
}

body.student-profile-page .student-edit-interest-options {
  margin-top: 10px;
}

body.student-profile-page .student-edit-interest-options button {
  padding: 0 12px;
  border: 1px dashed #bcd1ff;
  background: #ffffff;
  color: #395176;
}

body.student-profile-page .student-edit-interest-options button.is-selected {
  border-style: solid;
  border-color: #075ff0;
  background: #f1f6ff;
  color: #075ff0;
}

body.student-profile-page .student-edit-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #cddbf0;
  border-radius: 8px;
  background: #ffffff;
}

body.student-profile-page .student-edit-segmented button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-right: 1px solid #e5edf8;
  background: #ffffff;
  color: #526584;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.student-profile-page .student-edit-segmented button:last-child {
  border-right: 0;
}

body.student-profile-page .student-edit-segmented button.is-active {
  background: #f1f6ff;
  color: #075ff0;
  box-shadow: inset 0 0 0 1px #075ff0;
}

body.student-profile-page .student-edit-segmented svg {
  width: 17px;
  height: 17px;
}

body.student-profile-page .student-edit-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

body.student-profile-page .student-edit-preview-card,
body.student-profile-page .student-edit-visibility-card,
body.student-profile-page .student-edit-placement-card {
  padding: 22px;
}

body.student-profile-page .student-edit-preview-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

body.student-profile-page .student-edit-preview-avatar {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

body.student-profile-page .student-edit-preview-head h3 {
  margin: 0;
  color: #071637;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

body.student-profile-page .student-edit-preview-head p {
  margin: 4px 0 0;
  color: #526584;
  font-size: 14px;
  font-weight: 400;
}

body.student-profile-page .student-edit-preview-head span {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: #075ff0;
}

body.student-profile-page .student-edit-preview-headline {
  margin: 16px 0 0;
  color: #395176;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

body.student-profile-page .student-edit-preview-placement {
  position: relative;
  margin-top: 24px;
  padding-top: 20px;
  overflow: hidden;
  border-top: 1px solid #e5edf8;
}

body.student-profile-page .student-edit-preview-placement::before {
  content: "";
  position: absolute;
  inset: 0 -18px -20px 34%;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(28deg, transparent 0 28px, rgba(7, 95, 240, 0.055) 29px 30px),
    repeating-linear-gradient(118deg, transparent 0 34px, rgba(7, 95, 240, 0.04) 35px 36px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28%, #000 100%);
}

body.student-profile-page .student-edit-preview-placement > * {
  position: relative;
  z-index: 1;
}

body.student-profile-page .student-edit-preview-kicker {
  color: #526584;
  font-size: 13px;
  font-weight: 500;
}

body.student-profile-page .student-edit-preview-title {
  margin-top: 8px;
  color: #071637;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

body.student-profile-page .student-edit-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-right: 132px;
}

body.student-profile-page .student-edit-preview-meta span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #4d6388;
  font-size: 14px;
  font-weight: 500;
}

body.student-profile-page .student-edit-preview-meta svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #687c9d;
}

body.student-profile-page .student-edit-preview-meta strong {
  min-width: 0;
  color: #395176;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.student-profile-page .student-edit-status-chip {
  position: absolute;
  top: 70px;
  right: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #bce4d2;
  border-radius: 8px;
  background: #effbf5;
  color: #08723e;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

body.student-profile-page .student-edit-status-chip span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #19a563;
}

body.student-profile-page .student-edit-message-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 15px;
  width: 100%;
  border-top: 1px solid #e5edf8;
  color: #075ff0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.student-profile-page .student-edit-message-link svg {
  width: 19px;
  height: 19px;
}

body.student-profile-page .student-edit-visibility-card {
  display: flex;
  flex-direction: column;
}

body.student-profile-page .student-edit-toggle-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5edf8;
  cursor: pointer;
}

body.student-profile-page .student-edit-visibility-card h2 + .student-edit-toggle-row {
  border-top: 0;
  padding-top: 8px;
}

body.student-profile-page .student-edit-toggle-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: #075ff0;
}

body.student-profile-page .student-edit-toggle-icon svg {
  width: 21px;
  height: 21px;
}

body.student-profile-page .student-edit-toggle-row strong {
  display: block;
  color: #071637;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

body.student-profile-page .student-edit-toggle-row small {
  display: block;
  margin-top: 3px;
  color: #526584;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.student-profile-page .student-edit-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.student-profile-page .student-edit-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c7d4e8;
  transition: background-color 0.15s ease;
}

body.student-profile-page .student-edit-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(12, 31, 63, 0.22);
  transition: transform 0.15s ease;
}

body.student-profile-page .student-edit-toggle-row input:checked + .student-edit-switch {
  background: #075ff0;
}

body.student-profile-page .student-edit-toggle-row input:checked + .student-edit-switch::after {
  transform: translateX(18px);
}

body.student-profile-page .student-edit-placement-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

body.student-profile-page .student-edit-placement-card p {
  margin: 7px 0 0;
  color: #526584;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

body.student-profile-page .student-edit-placement-card > a {
  color: #075ff0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

body.student-profile-page .student-edit-placement-summary {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #fbfdff;
}

body.student-profile-page .student-edit-placement-summary strong,
body.student-profile-page .student-edit-placement-summary span {
  display: block;
}

body.student-profile-page .student-edit-placement-summary strong {
  color: #071637;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body.student-profile-page .student-edit-placement-summary span,
body.student-profile-page .student-edit-updated {
  color: #526584;
  font-size: 13px;
  font-weight: 600;
}

body.student-profile-page .student-edit-updated {
  grid-column: 1 / -1;
  margin: -4px 0 0;
}

@media (max-width: 1100px) {
  body.student-profile-page .student-edit-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.student-profile-page .student-edit-profile-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.student-profile-page .student-edit-actions {
    width: 100%;
  }

  body.student-profile-page .student-edit-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  body.student-profile-page .student-edit-form,
  body.student-profile-page .student-edit-preview-card,
  body.student-profile-page .student-edit-visibility-card,
  body.student-profile-page .student-edit-placement-card {
    padding: 18px;
  }

  body.student-profile-page .student-edit-photo-row,
  body.student-profile-page .student-edit-photo-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  body.student-profile-page .student-edit-photo-copy p {
    margin: 0;
  }

  body.student-profile-page .student-edit-fields,
  body.student-profile-page .student-edit-segmented {
    grid-template-columns: 1fr;
  }

  body.student-profile-page .student-edit-preview-meta {
    padding-right: 0;
  }

  body.student-profile-page .student-edit-status-chip {
    position: static;
    width: max-content;
    margin-top: 14px;
  }

  body.student-profile-page .student-edit-toggle-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 11px;
  }

  body.student-profile-page .student-edit-placement-card {
    grid-template-columns: 1fr;
  }
}

body.clinician-shell.profile-page .profile-card,
body.clinician-shell.profile-page .profile-side-card {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

/* ---- Clinician profile page ---- */
body.clinician-profile-page .clinician-profile-header h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-profile-page .clinician-profile-status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

body.clinician-profile-page .clinician-profile-status.is-error {
  color: #b91c1c;
}

body.clinician-profile-page .clinician-profile-status.is-hidden {
  display: none;
}

body.clinician-profile-page.clinician-profile-viewonly #clinician-profile-edit,
body.clinician-profile-page.clinician-profile-viewonly #clinician-about-edit,
body.clinician-profile-page.clinician-profile-viewonly [data-photo-trigger],
body.clinician-profile-page.clinician-profile-viewonly #clinician-edit-view {
  display: none !important;
}

body.clinician-profile-page .panel-card {
  border-radius: 20px;
  border-color: #e4e9ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.clinician-profile-page .clinician-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, #f4f6ff 0%, #ffffff 100%);
  padding: 1.3rem 1.5rem;
}

body.clinician-profile-page .clinician-profile-hero-main {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

body.clinician-profile-page .clinician-profile-avatar,
body.clinician-profile-page .clinician-picture-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: #e0e7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
}

body.clinician-profile-page .clinician-picture-avatar {
  width: 120px;
  height: 120px;
  background: #eef2ff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.12);
}

body.clinician-profile-page .clinician-profile-avatar img,
body.clinician-profile-page .clinician-picture-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.clinician-profile-page .clinician-profile-avatar span,
body.clinician-profile-page .clinician-picture-avatar span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-profile-page .clinician-profile-meta h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-profile-page .clinician-profile-role {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

body.clinician-profile-page .clinician-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

body.clinician-profile-page .clinician-profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 500;
}

body.clinician-profile-page .clinician-profile-tag.is-empty {
  background: #eef2f7;
  color: #94a3b8;
  font-weight: 500;
}

body.clinician-profile-page .clinician-profile-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

body.clinician-profile-page .clinician-profile-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

body.clinician-profile-page .clinician-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.clinician-profile-page .clinician-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-profile-page .clinician-about-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.clinician-profile-page .clinician-about-row,
body.clinician-profile-page .clinician-contact-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  background: #f5f7ff;
  border: 1px solid #e7ecff;
}

body.clinician-profile-page .clinician-contact-item {
  align-items: flex-start;
}

body.clinician-profile-page .clinician-about-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e0e7ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.clinician-profile-page .clinician-about-icon svg {
  width: 18px;
  height: 18px;
}

body.clinician-profile-page .clinician-about-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

body.clinician-profile-page .clinician-about-value {
  font-size: 0.95rem;
  color: #1f2937;
  margin-top: 0.15rem;
}

body.clinician-profile-page .clinician-about-text {
  margin: 0.6rem 0 0;
  color: #64748b;
  line-height: 1.6;
}

/* ---- Student view clinician profile (user-profile) ---- */
body.user-profile-page .clinician-profile-header {
  display: none;
}

body.user-profile-page .clinician-profile-view {
  max-width: 1120px;
  margin: 0 auto;
}

body.user-profile-page .clinician-profile-hero {
  padding: 1.8rem 2rem;
  gap: 2rem;
  background: linear-gradient(135deg, #f1f4ff 0%, #f8f9ff 45%, #ffffff 100%);
}

body.user-profile-page .clinician-profile-hero-main {
  align-items: center;
  flex: 1;
}

body.user-profile-page .clinician-profile-avatar {
  width: 120px;
  height: 120px;
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.18);
}

body.user-profile-page .clinician-profile-meta h2 {
  font-size: 1.6rem;
}

body.user-profile-page .clinician-profile-role {
  font-size: 1rem;
}

body.user-profile-page .user-profile-headline {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

body.user-profile-page .clinician-profile-bio {
  margin: 0.6rem 0 0;
  color: #64748b;
  line-height: 1.6;
  max-width: 32rem;
}

body.user-profile-page .clinician-profile-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.user-profile-page .clinician-profile-actions .btn {
  min-width: 120px;
}

body.user-profile-page .profile-icon-btn {
  border: 1px solid #e2e8ff;
  background: #f8f9ff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  color: #64748b;
}

body.user-profile-page .profile-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

body.user-profile-page .profile-icon-btn svg {
  width: 18px;
  height: 18px;
}

body.user-profile-page .clinician-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

@media (max-width: 980px) {
  body.user-profile-page .clinician-profile-hero {
    padding: 1.5rem;
  }

  body.user-profile-page .clinician-profile-actions {
    width: 100%;
    margin-top: 0.8rem;
  }
}

body.clinician-profile-page .clinician-about-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.clinician-profile-page .clinician-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

body.clinician-profile-page .clinician-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-profile-page .clinician-form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
}

body.clinician-profile-page .clinician-form-field input,
body.clinician-profile-page .clinician-form-field select,
body.clinician-profile-page .clinician-form-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #d6e0f5;
  background: #f9fbff;
  font-size: 0.95rem;
  color: #1f2937;
}

body.clinician-profile-page .clinician-form-field textarea {
  resize: vertical;
}

body.clinician-profile-page .clinician-form-field-full {
  grid-column: 1 / -1;
}

body.clinician-profile-page .clinician-about-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.clinician-profile-page .clinician-about-action-buttons {
  display: inline-flex;
  gap: 0.6rem;
}

body.clinician-profile-page .clinician-picture-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0.1rem 0.2rem;
}

body.clinician-profile-page .clinician-contact-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
}

body.clinician-profile-page .clinician-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.clinician-profile-page .clinician-profile-edit {
  margin-top: 0.75rem;
}

body.clinician-profile-page .clinician-edit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

body.clinician-profile-page .clinician-edit-topbar h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-profile-page .clinician-edit-actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.clinician-profile-page .clinician-edit-card {
  padding: 0;
  overflow: hidden;
}

body.clinician-profile-page .clinician-edit-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f4f6ff 0%, #ffffff 100%);
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #e7ecff;
}

body.clinician-profile-page .clinician-edit-section {
  padding: 1.25rem 1.5rem 1.5rem;
}

body.clinician-profile-page .clinician-edit-section h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-profile-page .clinician-chip-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid #d6e0f5;
  background: #f9fbff;
  min-height: 44px;
}

body.clinician-profile-page .clinician-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.clinician-profile-page .clinician-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 500;
}

body.clinician-profile-page .clinician-chip-remove {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-size: 0.8rem;
}

body.clinician-profile-page .clinician-chip-input input {
  border: none;
  background: transparent;
  padding: 0.2rem 0.2rem;
  font-size: 0.95rem;
  color: #1f2937;
  flex: 1 1 160px;
  min-width: 140px;
}

body.clinician-profile-page .clinician-chip-input input:focus {
  outline: none;
}

body.clinician-profile-page .clinician-edit-hours {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.clinician-profile-page .clinician-edit-hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.clinician-profile-page .clinician-edit-hours-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.clinician-profile-page .clinician-edit-hours-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

body.clinician-profile-page .clinician-edit-hours-row select,
body.clinician-profile-page .clinician-edit-hours-row input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #d6e0f5;
  background: #f9fbff;
  font-size: 0.95rem;
  color: #1f2937;
}

body.clinician-profile-page .clinician-edit-status-row {
  margin-top: 0.8rem;
}

/* ---- Clinician settings page ---- */
body.student-settings-page .settings-header {
  margin-bottom: 1.4rem;
}

body.student-settings-page .settings-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  font-weight: 600;
  color: #1f2937;
}

body.student-settings-page .settings-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
}

body.student-settings-page .panel-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1ff;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
body.clinician-settings-page .settings-grid , body.student-settings-page .settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

body.clinician-settings-page .settings-card , body.student-settings-page .settings-card {
  border-radius: 20px;
  border-color: #e4e9ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.clinician-settings-page .settings-card-header , body.student-settings-page .settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.clinician-settings-page .settings-card-title , body.student-settings-page .settings-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.clinician-settings-page .settings-card-title h3 , body.student-settings-page .settings-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-settings-page .settings-card-icon , body.student-settings-page .settings-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.clinician-settings-page .settings-card-icon svg , body.student-settings-page .settings-card-icon svg {
  width: 18px;
  height: 18px;
}

body.clinician-settings-page .settings-row, body.student-settings-page .settings-row,
body.clinician-settings-page .settings-toggle-row , body.student-settings-page .settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

body.clinician-settings-page .settings-row + .settings-row, body.student-settings-page .settings-row + .settings-row,
body.clinician-settings-page .settings-toggle-row + .settings-toggle-row , body.student-settings-page .settings-toggle-row + .settings-toggle-row {
  border-top: 1px solid #edf1ff;
}

body.clinician-settings-page .settings-row-main , body.student-settings-page .settings-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.clinician-settings-page .settings-row-title , body.student-settings-page .settings-row-title {
  font-weight: 600;
  color: #1f2937;
}

body.clinician-settings-page .settings-row-subtitle , body.student-settings-page .settings-row-subtitle {
  font-size: 0.85rem;
  color: #64748b;
}

body.clinician-settings-page .settings-row--actions , body.student-settings-page .settings-row--actions {
  justify-content: flex-end;
  gap: 0.6rem;
}

body.clinician-settings-page .settings-row--two , body.student-settings-page .settings-row--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

body.clinician-settings-page .settings-row--field , body.student-settings-page .settings-row--field {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
}

body.clinician-settings-page .settings-row--split , body.student-settings-page .settings-row--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.clinician-settings-page .settings-row--device-notifications ,
body.student-settings-page .settings-row--device-notifications {
  align-items: flex-start;
}

body.clinician-settings-page .settings-row--device-notifications .btn ,
body.student-settings-page .settings-row--device-notifications .btn {
  flex-shrink: 0;
}

body.clinician-settings-page .settings-field label, body.student-settings-page .settings-field label,
body.clinician-settings-page .settings-row--field label , body.student-settings-page .settings-row--field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

body.clinician-settings-page .settings-field , body.student-settings-page .settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-settings-page .settings-field input, body.student-settings-page .settings-field input,
body.clinician-settings-page .settings-field select, body.student-settings-page .settings-field select,
body.clinician-settings-page .settings-row--field input, body.student-settings-page .settings-row--field input,
body.clinician-settings-page .settings-row--field select , body.student-settings-page .settings-row--field select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #d6e0f5;
  background: #f9fbff;
  font-size: 0.95rem;
  color: #1f2937;
}

body.clinician-settings-page .settings-field-inline , body.student-settings-page .settings-field-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body.clinician-settings-page .settings-inline-actions , body.student-settings-page .settings-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.clinician-settings-page .settings-field-inline input , body.student-settings-page .settings-field-inline input {
  flex: 1;
}

body.clinician-settings-page .settings-input-row , body.student-settings-page .settings-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body.clinician-settings-page .settings-input-sep , body.student-settings-page .settings-input-sep {
  color: #94a3b8;
  font-size: 0.85rem;
}

body.clinician-settings-page .settings-switch , body.student-settings-page .settings-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
}

body.clinician-settings-page .settings-switch input , body.student-settings-page .settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

body.clinician-settings-page .settings-switch-slider , body.student-settings-page .settings-switch-slider {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border-radius: 999px;
  transition: background 0.2s ease;
  cursor: pointer;
}

body.clinician-settings-page .settings-switch-slider::before , body.student-settings-page .settings-switch-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease;
}

body.clinician-settings-page .settings-switch input:checked + .settings-switch-slider , body.student-settings-page .settings-switch input:checked + .settings-switch-slider {
  background: #2563eb;
}

body.clinician-settings-page .settings-switch input:checked + .settings-switch-slider::before , body.student-settings-page .settings-switch input:checked + .settings-switch-slider::before {
  transform: translateX(20px);
}

body.clinician-settings-page .settings-cohort-list , body.student-settings-page .settings-cohort-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.clinician-settings-page .settings-cohort-row , body.student-settings-page .settings-cohort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid #e7ecff;
  background: #f7f9ff;
}

body.clinician-settings-page .settings-cohort-row.is-active , body.student-settings-page .settings-cohort-row.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
}

body.clinician-settings-page .settings-cohort-main , body.student-settings-page .settings-cohort-main {
  flex: 1;
  min-width: 0;
}

body.clinician-settings-page .settings-cohort-title , body.student-settings-page .settings-cohort-title {
  font-weight: 600;
  color: #1f2937;
}

body.clinician-settings-page .settings-cohort-meta , body.student-settings-page .settings-cohort-meta {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

body.clinician-settings-page .settings-cohort-actions , body.student-settings-page .settings-cohort-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

body.clinician-settings-page .settings-toggle-list , body.student-settings-page .settings-toggle-list {
  display: flex;
  flex-direction: column;
}

body.clinician-settings-page .settings-empty , body.student-settings-page .settings-empty {
  padding: 0.9rem;
  border-radius: 14px;
  background: #f7f9ff;
  border: 1px dashed #d7e2ff;
  color: #64748b;
  font-size: 0.9rem;
}

body.clinician-settings-page .settings-status , body.student-settings-page .settings-status {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

body.clinician-settings-page .settings-status.is-error , body.student-settings-page .settings-status.is-error {
  color: #b91c1c;
}

body.clinician-settings-page .settings-status.is-success , body.student-settings-page .settings-status.is-success {
  color: #0f766e;
}

body.clinician-settings-page .settings-status.is-hidden , body.student-settings-page .settings-status.is-hidden {
  display: none;
}

body.clinician-settings-page .settings-modal , body.student-settings-page .settings-modal {
  max-width: 560px;
  width: 90%;
}

body.clinician-settings-page .settings-security-note ,
body.student-settings-page .settings-security-note {
  align-items: flex-start;
}

body.clinician-settings-page .settings-reauth-overlay ,
body.student-settings-page .settings-reauth-overlay {
  z-index: 260;
}

body.clinician-settings-page .settings-reauth-modal ,
body.student-settings-page .settings-reauth-modal {
  border-radius: 16px;
  border: 1px solid #dbe6ff;
}

body.clinician-settings-page .settings-reauth-header ,
body.student-settings-page .settings-reauth-header {
  align-items: flex-start;
  gap: 1rem;
}

body.clinician-settings-page .settings-reauth-header h3 ,
body.student-settings-page .settings-reauth-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f1f44;
}

body.clinician-settings-page .settings-reauth-header p ,
body.student-settings-page .settings-reauth-header p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.clinician-settings-page .settings-reauth-form ,
body.student-settings-page .settings-reauth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.4rem;
}

body.clinician-settings-page .settings-reauth-actions ,
body.student-settings-page .settings-reauth-actions {
  justify-content: flex-end;
}

body.clinician-settings-page .schedule-form , body.student-settings-page .schedule-form {
  border-bottom: none;
  margin: 0;
  padding-bottom: 0;
}

body.clinician-settings-page .schedule-form-actions , body.student-settings-page .schedule-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

body.clinician-settings-page .notice-modal-buttons , body.student-settings-page .notice-modal-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---- Clinician help page ---- */
body.clinician-help-page .help-panel {
  border-radius: 20px;
  border-color: #e4e9ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 1.4rem 1.5rem;
}

body.clinician-help-page .help-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  border: 1px solid #e1e7ff;
  background: #f5f7ff;
  color: #94a3b8;
  margin-bottom: 1.4rem;
}

body.clinician-help-page .help-search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  color: #1f2937;
}

body.clinician-help-page .help-search input:focus {
  outline: none;
}

body.clinician-help-page .help-search-icon {
  width: 18px;
  height: 18px;
  color: #8b99c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.clinician-help-page .help-search-icon svg {
  width: 18px;
  height: 18px;
}

body.clinician-help-page .help-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 1.6rem;
  align-items: start;
}

body.clinician-help-page .help-main {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

body.clinician-help-page .help-section-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
}

body.clinician-help-page .help-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.clinician-help-page .help-topic-card {
  background: #ffffff;
  border: 1px solid #edf1ff;
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.clinician-help-page .help-topic-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

body.clinician-help-page .help-topic-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

body.clinician-help-page .help-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.9rem;
}

body.clinician-help-page .help-topic-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

body.clinician-help-page .help-topic-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8aa2ff;
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

body.clinician-help-page .help-core-article {
  flex: 1 1 auto;
  min-width: 0;
}

body.clinician-help-page .help-core-article summary {
  cursor: pointer;
  color: #334155;
  font-weight: 600;
  line-height: 1.4;
}

body.clinician-help-page .help-core-article[open] summary {
  color: #3152a8;
}

body.clinician-help-page .help-core-article p {
  margin: 0.55rem 0 0;
  color: #58677d;
  font-size: 0.86rem;
  line-height: 1.55;
}

body.clinician-help-page .help-topic-link {
  margin-top: auto;
  align-self: flex-end;
  font-size: 0.85rem;
  color: #4f6ef7;
}

body.clinician-help-page .help-topic-link:hover {
  text-decoration: underline;
}

body.clinician-help-page .help-topic-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d6ce8;
  background: #eef1ff;
}

body.clinician-help-page .help-topic-icon svg {
  width: 24px;
  height: 24px;
}

body.clinician-help-page .help-icon-book {
  color: #7c83f7;
  background: #eef0ff;
}

body.clinician-help-page .help-icon-people {
  color: #7b6fd9;
  background: #efeafe;
}

body.clinician-help-page .help-icon-tools {
  color: #d07aa8;
  background: #fdeef7;
}

body.clinician-help-page .help-support-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: #f4f6ff;
  border: 1px solid #e7ecff;
}

body.clinician-help-page .help-support-copy h2 {
  margin: 0.2rem 0 0.65rem;
  color: #1e293b;
  font-size: 1.15rem;
}

body.clinician-help-page .help-support-copy p {
  margin: 0;
  color: #56657b;
  font-size: 0.88rem;
  line-height: 1.55;
}

body.clinician-help-page .help-support-kicker {
  color: #4f6ef7 !important;
  font-size: 0.75rem !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.clinician-help-page .help-support-safety {
  margin-top: 0.8rem !important;
  padding: 0.75rem;
  border-radius: 12px;
  background: #fff8e8;
  color: #76551d !important;
}

body.clinician-help-page .help-support-form {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid #e4e9f5;
  border-radius: 14px;
  background: #fff;
}

body.clinician-help-page .help-support-form label {
  margin-top: 0.25rem;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 500;
}

body.clinician-help-page .help-support-form input,
body.clinician-help-page .help-support-form select,
body.clinician-help-page .help-support-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7deec;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 0.75rem;
}

body.clinician-help-page .help-support-form textarea {
  min-height: 112px;
  resize: vertical;
}

body.clinician-help-page .help-support-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.45rem;
}

body.clinician-help-page .help-support-status {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

body.clinician-help-page .help-support-status[data-tone="success"] {
  color: #18704a;
}

body.clinician-help-page .help-support-status[data-tone="error"] {
  color: #b42318;
}

@media (max-width: 760px) {
  body.clinician-help-page .help-support-card {
    grid-template-columns: 1fr;
  }

  body.clinician-help-page .help-support-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

body.clinician-help-page .help-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

body.clinician-help-page .help-side-card {
  padding: 1.1rem 1.1rem 1rem;
}

body.clinician-help-page .help-side-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 600;
}

body.clinician-help-page .help-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.clinician-help-page .help-link-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: #f7f9ff;
  border: 1px solid #e7ecff;
}

body.clinician-help-page .help-link-list a {
  color: #475569;
  font-size: 0.9rem;
}

body.clinician-help-page .help-link-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
}

body.clinician-help-page .help-link-icon--blue {
  background: #dbeafe;
}

body.clinician-help-page .help-link-icon--purple {
  background: #ede9fe;
}

body.clinician-help-page .help-link-icon--pink {
  background: #fce7f3;
}

body.clinician-help-page .help-link-icon--orange {
  background: #ffedd5;
}

body.clinician-help-page .help-link-icon--teal {
  background: #ccfbf1;
}

body.clinician-help-page .help-link-icon--peach {
  background: #ffe4e6;
}

@media (max-width: 1100px) {
  body.clinician-help-page .help-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.clinician-help-page .help-body {
    grid-template-columns: 1fr;
  }
}

body.clinician-settings-page .btn:disabled , body.student-settings-page .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn.danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.15);
}

.btn.danger:hover {
  box-shadow: 0 12px 24px rgba(185, 28, 28, 0.2);
}

.btn.danger-outline {
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

@media (max-width: 900px) {
  body.clinician-settings-page .settings-row--two, body.student-settings-page .settings-row--two,
  body.clinician-settings-page .settings-row--field , body.student-settings-page .settings-row--field {
    grid-template-columns: 1fr;
  }

  body.clinician-settings-page .settings-row, body.student-settings-page .settings-row,
  body.clinician-settings-page .settings-toggle-row , body.student-settings-page .settings-toggle-row {
    align-items: flex-start;
  }

  body.clinician-settings-page .settings-cohort-row , body.student-settings-page .settings-cohort-row {
    flex-direction: column;
    align-items: flex-start;
  }

  body.clinician-settings-page .settings-cohort-actions , body.student-settings-page .settings-cohort-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.clinician-settings-page .settings-inline-actions , body.student-settings-page .settings-inline-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.clinician-settings-page .settings-inline-actions .btn , body.student-settings-page .settings-inline-actions .btn {
    flex: 1 1 160px;
  }
}

@media (max-width: 980px) {
  body.clinician-profile-page .clinician-profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  body.clinician-profile-page .clinician-profile-grid {
    grid-template-columns: 1fr;
  }

  body.clinician-profile-page .clinician-form-grid {
    grid-template-columns: 1fr;
  }

  body.clinician-profile-page .clinician-edit-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  body.clinician-profile-page .clinician-edit-hours-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.profile-page .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Research pages ---- */
body.research-page .app-inner {
  max-width: 1200px;
}

body.research-page .research-workspace-card {
  margin-bottom: 1.7rem;
  padding: 1.45rem 1.5rem 1.15rem;
  border-radius: 26px;
  border: 1px solid #e6ebf7;
  background:
    radial-gradient(circle at top right, rgba(79, 110, 247, 0.05), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

body.research-page .research-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

body.research-page .research-header-copy {
  min-width: 0;
}

body.research-page .research-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

body.research-page .research-header h1 {
  margin: 0;
  font-size: 2.15rem;
  letter-spacing: -0.03em;
}

body.research-page .research-subtitle {
  margin: 0.5rem 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 58rem;
}

body.research-page .research-context {
  margin: 0.55rem 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

body.research-page .research-post-btn {
  align-self: flex-start;
  box-shadow: none;
  border-color: #dbe4f5;
  background: #ffffff;
  color: #2850c7;
}

body.research-page .research-post-btn:hover {
  background: #f8fbff;
  border-color: #cfe0ff;
}

body.research-page .research-controls {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid #edf2fb;
}

body.research-page .research-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.22rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  border: 1px solid #e6ebf7;
  background: rgba(255, 255, 255, 0.92);
}

body.research-page .research-view-tab {
  border: none;
  background: transparent;
  color: #55657f;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.research-page .research-view-tab.is-active {
  background: #eef4ff;
  color: #2850c7;
  box-shadow: inset 0 0 0 1px #d7e3ff;
}

body.research-page .research-overview-strip {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

body.research-page .research-overview-stat {
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  border: 1px solid #edf2fb;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.research-page .research-overview-stat span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

body.research-page .research-overview-stat strong {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1e293b;
}

body.research-page .research-search {
  position: relative;
  display: block;
}

body.research-page .research-search::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>")
      center / contain no-repeat;
  opacity: 0.55;
}

body.research-page .research-search input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #dfe6f5;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.research-page .research-search input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body.research-page .research-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

body.research-page .research-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
}

body.research-page .research-filter-field span {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

body.research-page .research-filter-select {
  appearance: none;
  min-width: 0;
  border: 1px solid #dfe6f5;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M5 7.5l5 5 5-5'/></svg>") no-repeat right 0.9rem center / 16px 16px;
  color: #334155;
  padding: 0.72rem 2.4rem 0.72rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.research-page .research-filter-select:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

body.research-page .research-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid #e6ebf7;
  background: rgba(255, 255, 255, 0.92);
}

body.research-page .research-chip {
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

body.research-page .research-chip.is-active {
  background: #eef4ff;
  color: #2d55c7;
  box-shadow: inset 0 0 0 1px #d7e3ff;
}

body.research-page .research-chip-count {
  font-size: 0.75rem;
  color: #94a3b8;
}

body.research-page .research-chip.is-active .research-chip-count {
  color: #5b74c8;
}

body.research-page .research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.8rem;
  align-items: start;
}

body.research-page .research-view-section {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

body.research-page .research-view-section[hidden] {
  display: none;
}

body.research-page .research-view-intro {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 0.15rem;
}

body.research-page .research-view-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #1e293b;
}

body.research-page .research-view-note {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 60rem;
}

body.research-page .research-main {
  min-width: 0;
}

body.research-page #research-discover-view {
  gap: 1rem;
}

body.research-page .research-my-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

body.research-page .research-personal-panel {
  min-width: 0;
}

body.research-page .research-personal-panel .research-application-list,
body.research-page #student-submissions .research-application-list {
  min-height: 100%;
}

body.research-page .research-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

body.research-page .research-opportunity-section {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

body.research-page .research-opportunity-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.15rem;
}

body.research-page .research-opportunity-section-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: #1e293b;
}

body.research-page .research-opportunity-section-description {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

body.research-page .research-opportunity-section-count {
  flex-shrink: 0;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
}

body.research-page .research-opportunity-section-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.research-page .research-empty {
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed #dbe3ff;
  background: #f8fafc;
  color: #94a3b8;
  text-align: center;
}

body.research-page .research-application-list .research-empty,
body.research-page .research-recommendation-list .research-empty {
  padding: 0.1rem 0;
  border: none;
  background: transparent;
  text-align: left;
}

body.research-page .research-opportunity-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e7edf8;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  align-items: stretch;
}

body.research-page .research-opportunity-card.is-highlighted {
  box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.35), var(--shadow-card);
}

body.research-page .research-opportunity-card:hover {
  border-color: #d6e0f1;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

body.research-page .research-opportunity-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

body.research-page .research-opportunity-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid #dbe6fb;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.94)),
    linear-gradient(135deg, #f5f8ff 0%, #e8f0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

body.research-page .research-opportunity-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.research-page .research-opportunity-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.research-page .research-opportunity-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

body.research-page .research-opportunity-media {
  width: 100%;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
}

body.research-page .research-opportunity-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.research-page .research-opportunity-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

body.research-page .research-opportunity-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

body.research-page .research-opportunity-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

body.research-page .research-opportunity-header h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.research-page .research-opportunity-date {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
}

body.research-page .research-opportunity-submeta,
body.research-page .research-opportunity-source-line {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

body.research-page .research-opportunity-source-line {
  color: #7b8ba4;
}

body.research-page .research-opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

body.research-page .research-opportunity-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

body.research-page .research-opportunity-badge {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 500;
}

body.research-page .research-opportunity-badge--clinician {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.research-page .research-opportunity-badge--faculty {
  border-color: #d1fae5;
  background: #ecfdf5;
  color: #047857;
}

body.research-page .research-opportunity-badge--society {
  border-color: #e9d5ff;
  background: #f5f3ff;
  color: #7c3aed;
}

body.research-page .research-opportunity-badge--student {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

body.research-page .research-pill {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

body.research-page .research-pill--status-open {
  background: #eff6ff;
  color: #1d4ed8;
}

body.research-page .research-pill--status-upcoming {
  background: #f8fafc;
  color: #475569;
}

body.research-page .research-pill--status-ongoing {
  background: #ecfdf5;
  color: #047857;
}

body.research-page .research-pill--status-deadline {
  background: #fff7ed;
  color: #b45309;
}

body.research-page .research-pill--status-closed {
  background: #fef2f2;
  color: #b91c1c;
}

body.research-page .research-opportunity-supervisor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #475569;
}

body.research-page .research-opportunity-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0edff;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

body.research-page .research-opportunity-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

body.research-page .research-opportunity-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

body.research-page .research-opportunity-info {
  min-width: 0;
  padding: 0.78rem 0.85rem;
  border-radius: 16px;
  border: 1px solid #edf2fb;
  background: #f8fafc;
}

body.research-page .research-opportunity-info-label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

body.research-page .research-opportunity-info strong {
  display: block;
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.research-page .research-opportunity-provider,
body.research-page .research-opportunity-audience {
  color: #64748b;
}

body.research-page .research-opportunity-type {
  color: #334155;
  font-weight: 600;
}

body.research-page .research-opportunity-source {
  color: #64748b;
}

body.research-page .research-opportunity-description {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.research-page .research-opportunity-deadline {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
}

body.research-page .research-opportunity-support {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f4fa;
}

body.research-page .research-opportunity-urgency {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9a6700;
}

body.research-page .research-opportunity-urgency--deadline {
  color: #b45309;
}

body.research-page .research-opportunity-urgency--closed {
  color: #9f1239;
}

body.research-page .research-opportunity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  border-top: 1px solid #f0f4fa;
}

body.research-page .research-save-btn {
  border: 1px solid #e1e8f4;
  background: #f8fafc;
  color: #50627f;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

body.research-page .research-save-btn.is-saved {
  background: #eef4ff;
  border-color: #cfe0ff;
  color: #2850c7;
}

body.research-page .research-tracker-control {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

body.research-page .research-tracker-select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe4f5;
  border-radius: 12px;
  background: #f8fbff;
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.58rem 0.7rem;
}

body.research-page .research-opportunity-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

body.research-page .research-card-link {
  border: none;
  background: transparent;
  color: #2d55c7;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

body.research-page .research-card-link:hover {
  color: #1d4ed8;
}

body.research-page .research-card-link[disabled] {
  color: #94a3b8;
  cursor: not-allowed;
}

body.research-page .research-card-link--primary {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #1d4ed8;
}

body.research-page .research-card-link--primary:hover {
  background: transparent;
}

body.research-page .research-card-link--primary[disabled] {
  background: transparent;
  border: none;
  color: #94a3b8;
}

body.research-page .research-opportunity-action-links .btn,
body.research-page .research-opportunity-action-links .research-card-link {
  width: auto;
}

body.research-page .research-opportunity-action-links .research-external-link {
  text-decoration: none;
}

body.research-page .research-opportunity-card--clinician {
  grid-template-columns: 112px minmax(0, 1fr) 180px;
  align-items: start;
}

body.research-page .research-opportunity-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.9)),
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #dbeafe;
}

body.research-page .research-opportunity-media--submission {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(224, 231, 255, 0.88)),
    linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

body.research-page .research-opportunity-avatar--large {
  width: 40px;
  height: 40px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.86);
  color: #1e3a8a;
  box-shadow: none;
}

body.research-page .research-opportunity-admin-panel {
  grid-column: 1 / -1;
  display: none;
  padding-top: 1rem;
  border-top: 1px solid #eef2ff;
}

body.research-page .research-opportunity-admin-panel.is-open {
  display: block;
}

body.research-page .research-interest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.research-page .research-interest-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid #eef2ff;
  background: #f8fafc;
  border-radius: 14px;
  padding: 0.9rem;
}

body.research-page .research-interest-main {
  min-width: 0;
}

body.research-page .research-interest-name,
body.research-page .research-interest-meta,
body.research-page .research-interest-message {
  margin: 0;
}

body.research-page .research-interest-name {
  font-weight: 600;
  color: #1f2937;
}

body.research-page .research-interest-meta {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.82rem;
}

body.research-page .research-interest-message {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.research-page .research-interest-actions {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

body.research-page .research-interest-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.74rem;
  font-weight: 500;
}

body.research-page .research-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

body.research-page .research-status-pill--submitted {
  background: #e0edff;
  color: #1d4ed8;
}

body.research-page .research-status-pill--saved {
  background: #eef4ff;
  color: #3159d2;
}

body.research-page .research-status-pill--review {
  background: #fff4e6;
  color: #b45309;
}

body.research-page .research-status-pill--deadline {
  background: #fff7ed;
  color: #b45309;
}

body.research-page .research-status-pill--accepted {
  background: #dcfce7;
  color: #15803d;
}

body.research-page .research-status-pill--rejected {
  background: #fee2e2;
  color: #b91c1c;
}

body.research-page .research-status-pill--closed {
  background: #fef2f2;
  color: #b91c1c;
}

body.research-page .research-status-pill--portfolio {
  background: #ede9fe;
  color: #6d28d9;
}

body.research-page .research-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

body.research-page .research-side-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e6ebf7;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body.research-page .research-side-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

body.research-page .research-side-card--recommendations {
  background:
    radial-gradient(circle at top right, rgba(79, 110, 247, 0.07), transparent 36%),
    #ffffff;
}

body.research-page .research-focus-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: -0.15rem 0 0.85rem;
}

body.research-page .research-focus-stat {
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  border: 1px solid #edf2fb;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

body.research-page .research-focus-stat span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7080a5;
}

body.research-page .research-focus-stat strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #1e293b;
}

body.research-page .research-side-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

body.research-page .research-side-card-head h3 {
  margin-bottom: 0.25rem;
}

body.research-page .research-side-note {
  margin: -0.15rem 0 0.75rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.research-page .research-side-card-head .research-side-note {
  margin: 0.2rem 0 0;
}

body.research-page .research-personal-group + .research-personal-group {
  margin-top: 0.85rem;
}

body.research-page .research-personal-group[hidden] {
  display: none;
}

body.research-page .research-personal-heading {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

body.research-page .research-personal-list .research-application-item {
  padding: 0.7rem 0;
}

body.research-page .research-side-card--summary h3 {
  margin-bottom: 0.6rem;
}

body.research-page .research-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

body.research-page .research-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  border-top: 1px solid #eef2ff;
  border-radius: 0;
  background: transparent;
  padding: 0.7rem 0;
  font-size: 0.86rem;
  color: #475569;
}

body.research-page .research-summary-list li:first-child {
  border-top: none;
  padding-top: 0;
}

body.research-page .research-summary-list strong {
  color: #1e293b;
  font-size: 0.92rem;
}

body.research-page .research-summary-list--funnel {
  grid-template-columns: 1fr;
}

body.research-page .research-link-list,
body.research-page .research-application-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.research-page .research-recommendation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.research-page .research-recommendation-item {
  border: none;
  border-top: 1px solid #eef2ff;
  border-radius: 0;
  background: transparent;
}

body.research-page .research-recommendation-button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.8rem 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.research-page .research-recommendation-item:first-child {
  border-top: none;
}

body.research-page .research-recommendation-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

body.research-page .research-recommendation-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.92rem;
}

body.research-page .research-recommendation-meta {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.78rem;
}

body.research-page .research-recommendation-reason {
  margin: 0;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.45;
}

body.research-page .research-opportunity-recommendation {
  margin: 0;
  width: auto;
  color: #2850c7;
  font-size: 0.82rem;
  font-weight: 600;
}

body.research-page .research-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2ff;
  color: #475569;
  font-size: 0.9rem;
}

body.research-page .research-link:hover {
  border-color: #c7d2fe;
  color: #1f2937;
}

body.research-page .research-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.research-page .research-link-icon svg {
  width: 16px;
  height: 16px;
}

body.research-page .research-link-more {
  margin-top: 0.7rem;
  display: inline-flex;
  font-size: 0.85rem;
  color: #4f46e5;
}

body.research-page .research-side-card-head .research-link-more {
  margin-top: 0;
}

body.research-page .research-application-item {
  background: transparent;
  border: none;
  border-top: 1px solid #eef2ff;
  border-radius: 0;
  padding: 0.7rem 0;
}

body.research-page .research-application-item:first-child {
  border-top: none;
  padding-top: 0;
}

body.research-page .research-application-button {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

body.research-page .research-application-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1f2937;
}

body.research-page .research-application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

body.research-page .research-application-note {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

body.research-page .research-application-date {
  color: #94a3b8;
}

body.research-page .research-apply-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
  z-index: 40;
  padding: 1.5rem;
  overflow-y: auto;
}

body.research-page .research-apply-overlay.is-hidden {
  display: none;
}

body.research-page .research-apply-modal {
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid #e6ebf7;
}

body.research-page .research-apply-modal--detail {
  width: min(820px, 94vw);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(79, 110, 247, 0.05), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

body.research-page .research-apply-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

body.research-page .research-apply-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

body.research-page .research-apply-modal--detail .research-apply-header {
  flex-shrink: 0;
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid #edf2fb;
}

body.research-page .research-apply-modal--detail .research-apply-header h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1e293b;
}

body.research-page .research-apply-subtitle {
  margin: 0.25rem 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

body.research-page .research-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 0.1rem 0 0;
}

body.research-page .research-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

body.research-page .research-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.research-page .research-detail-meta .research-pill {
  font-size: 0.76rem;
  padding: 0.3rem 0.72rem;
  background: #f8fafc;
  color: #475569;
}

body.research-page .research-pill--neutral {
  background: #f8fafc;
  color: #475569;
}

body.research-page .research-pill--trusted-clinician {
  background: #eff6ff;
  color: #1d4ed8;
}

body.research-page .research-pill--trusted-faculty {
  background: #ecfdf5;
  color: #047857;
}

body.research-page .research-pill--trusted-society {
  background: #f5f3ff;
  color: #7c3aed;
}

body.research-page .research-pill--trusted-student {
  background: #f8fafc;
  color: #475569;
}

body.research-page .research-pill--review {
  background: #fff7ed;
  color: #b45309;
}

body.research-page .research-pill--deadline {
  background: #fff7ed;
  color: #b45309;
}

body.research-page .research-pill--closed {
  background: #fef2f2;
  color: #b91c1c;
}

body.research-page .research-detail-description {
  margin: 0;
  color: #475569;
  line-height: 1.6;
  font-size: 0.96rem;
}

body.research-page .research-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #edf2fb;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

body.research-page .research-detail-funnel {
  border: 1px solid #e7eefb;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff 0%, #f8fbff 100%);
  padding: 1rem;
}

body.research-page .research-detail-funnel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

body.research-page .research-detail-funnel-head h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #1e293b;
}

body.research-page .research-detail-funnel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.research-page .research-detail-funnel-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid #e9eefb;
  background: rgba(255, 255, 255, 0.9);
}

body.research-page .research-detail-funnel-item.is-complete {
  border-color: #d8e3ff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.research-page .research-detail-funnel-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3159d2;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.research-page .research-detail-funnel-item.is-pending .research-detail-funnel-index {
  background: #f8fafc;
  color: #94a3b8;
}

body.research-page .research-detail-funnel-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

body.research-page .research-detail-funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

body.research-page .research-detail-funnel-row strong {
  font-size: 0.93rem;
  color: #1e293b;
}

body.research-page .research-detail-funnel-copy p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #64748b;
}

body.research-page .research-detail-funnel-date {
  font-size: 0.78rem;
  color: #94a3b8;
}

body.research-page .research-detail-evidence {
  border: 1px solid #e7eefb;
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
}

body.research-page .research-detail-evidence-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

body.research-page .research-detail-evidence-head h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #1e293b;
}

body.research-page .research-detail-evidence-head p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
}

body.research-page .research-detail-evidence-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

body.research-page .research-detail-evidence-actions .btn {
  width: 100%;
  justify-content: center;
}

body.research-page .research-apply-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.research-page .research-apply-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

body.research-page .research-apply-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

body.research-page .research-submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.research-page .research-submit-row--wide {
  grid-column: 1 / -1;
}

body.research-page .research-submit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.research-page .research-submit-row input,
body.research-page .research-submit-row select,
body.research-page .research-submit-row textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 0.68rem 0.74rem;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
  min-width: 0;
}

body.research-page .research-submit-row input:focus,
body.research-page .research-submit-row select:focus,
body.research-page .research-submit-row textarea:focus {
  outline: none;
  border-color: #4f6ef7;
  box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.16);
}

body.research-page .research-inline-note {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

body.research-page .research-apply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.research-page .research-apply-actions--detail {
  flex-shrink: 0;
  margin-top: 0;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #edf2fb;
  background: rgba(255, 255, 255, 0.92);
}

body.research-page .research-detail-actions-left,
body.research-page .research-detail-actions-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.research-page .research-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #92400e;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

body.research-page .research-warning--subtle {
  background: #f8fafc;
  border-color: #e7eefb;
  color: #64748b;
}

body.research-page .research-status {
  font-size: 0.85rem;
  color: #64748b;
}

body.research-page .research-status.is-error {
  color: #b91c1c;
}

body.research-page .research-status.is-success {
  color: #15803d;
}

@media (max-width: 1100px) {
  body.research-page .research-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  body.research-page .research-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body.research-page .research-my-grid {
    grid-template-columns: 1fr;
  }

  body.research-page .research-layout {
    grid-template-columns: 1fr;
  }

  body.research-page .research-side {
    position: static;
  }

  body.research-page .research-opportunity-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.research-page .research-opportunity-card {
    gap: 0.9rem;
  }

  body.research-page .research-opportunity-card--clinician {
    grid-template-columns: 1fr;
  }

  body.research-page .research-opportunity-head {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  body.research-page .research-opportunity-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  body.research-page .research-opportunity-action-links {
    justify-content: flex-start;
  }

  body.research-page .research-interest-row {
    flex-direction: column;
  }

  body.research-page .research-interest-actions {
    min-width: 0;
    width: 100%;
    align-items: stretch;
  }

  body.research-page .research-submit-grid {
    grid-template-columns: 1fr;
  }

  body.research-page .research-detail-grid {
    grid-template-columns: 1fr;
  }

  body.research-page .research-summary-list--funnel {
    grid-template-columns: 1fr;
  }

  body.research-page .research-detail-evidence-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.research-page .research-workspace-card {
    padding: 1.15rem;
    border-radius: 22px;
  }

  body.research-page .research-overview-strip {
    grid-template-columns: 1fr;
  }

  body.research-page .research-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.research-page .research-header h1 {
    font-size: 1.85rem;
  }

  body.research-page .research-view-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  body.research-page .research-opportunity-head {
    grid-template-columns: 1fr;
  }

  body.research-page .research-opportunity-mark {
    width: 52px;
    height: 52px;
  }

  body.research-page .research-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.research-page .research-filter-field {
    min-width: 0;
  }

  body.research-page .research-focus-stats {
    grid-template-columns: 1fr;
  }

  body.research-page .research-side-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.research-page .research-apply-overlay {
    padding: 0.8rem;
  }

  body.research-page .research-apply-modal {
    padding: 1rem;
    border-radius: 18px;
  }

  body.research-page .research-apply-modal--detail {
    width: 100%;
    max-height: calc(100vh - 1.6rem);
  }

  body.research-page .research-detail-scroll {
    padding-right: 0;
  }

  body.research-page .research-detail-funnel-head,
  body.research-page .research-apply-actions--detail,
  body.research-page .research-detail-actions-left,
  body.research-page .research-detail-actions-right {
    flex-direction: column;
    align-items: stretch;
  }

  body.research-page .research-detail-actions-left .btn,
  body.research-page .research-detail-actions-right .btn {
    width: 100%;
    justify-content: center;
  }

  body.research-page .research-opportunity-topline,
  body.research-page .research-opportunity-header,
  body.research-page .research-opportunity-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.app-dashboard .dashboard-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

body.app-dashboard .dashboard-progress-main {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

body.app-dashboard .dashboard-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body.app-dashboard .status-indicator {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  box-shadow: inset 0 0 0 6px #eff6ff;
  flex-shrink: 0;
}

body.app-dashboard .dashboard-progress-bar {
  width: 100%;
  height: 8px;
  background: #e8ecf9;
  border-radius: 999px;
}

body.app-dashboard .dashboard-progress-fill {
  background: linear-gradient(90deg, #4f6ef7, #7aa8ff);
}

body.app-dashboard .dashboard-timetable-card .dash-event-list {
  margin-top: 0;
}

body.app-dashboard .dashboard-timetable-card .dashboard-timetable-button {
  align-self: flex-start;
  margin-top: 0.6rem;
}

body.app-dashboard .dashboard-notice-title {
  margin: 0 0 0.3rem;
  font-weight: 600;
}

body.app-dashboard .dashboard-notice-body {
  margin: 0;
  color: #6b7280;
  font-size: 0.88rem;
}

body.app-dashboard .dashboard-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ---- Teaching page ---- */
body.teaching-page .teaching-header,
body.clinician-page--teaching .teaching-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

body.clinician-page--teaching .app-inner {
  max-width: 1100px;
  margin: 0 auto;
}

body.teaching-page .teaching-header h1,
body.clinician-page--teaching .teaching-header h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: 2rem;
}

body.teaching-page .teaching-breadcrumb,
body.clinician-page--teaching .teaching-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.teaching-breadcrumb-current {
  color: #64748b;
  font-weight: 500;
}

.teaching-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #4f6ef7;
  text-decoration: none;
}

.teaching-back-link:hover {
  text-decoration: underline;
}

.teaching-breadcrumb-link {
  border: none;
  background: none;
  padding: 0;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}

.teaching-breadcrumb-link:hover {
  color: #4f6ef7;
}

.teaching-breadcrumb-sep {
  color: #cbd5f5;
}

.teaching-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---- Teaching home ---- */
body.teaching-home-page {
  --blue-bg: #eef3ff;
  --blue-icon: #3b6cff;
  --purple-bg: #f3eeff;
  --purple-icon: #6b4eff;
  --pink-bg: #fdeef6;
  --pink-icon: #d84c8b;
  --peach-bg: #fff1e8;
  --peach-icon: #e07a3f;
  --mint-bg: #e9f7f1;
  --mint-icon: #25a773;
  --neutral-bg: #f1f5f9;
  --neutral-icon: #64748b;
}

body.teaching-home-page .bg-blue {
  background-color: var(--blue-bg);
}

body.teaching-home-page .text-blue {
  color: var(--blue-icon);
}

body.teaching-home-page .bg-purple {
  background-color: var(--purple-bg);
}

body.teaching-home-page .text-purple {
  color: var(--purple-icon);
}

body.teaching-home-page .bg-pink {
  background-color: var(--pink-bg);
}

body.teaching-home-page .text-pink {
  color: var(--pink-icon);
}

body.teaching-home-page .bg-peach {
  background-color: var(--peach-bg);
}

body.teaching-home-page .text-orange {
  color: var(--peach-icon);
}

body.teaching-home-page .bg-mint {
  background-color: var(--mint-bg);
}

body.teaching-home-page .text-mint {
  color: var(--mint-icon);
}

body.teaching-home-page .bg-neutral {
  background-color: var(--neutral-bg);
}

body.teaching-home-page .text-neutral {
  color: var(--neutral-icon);
}

body.teaching-home-page .app-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.teaching-home-header {
  margin-bottom: 1.5rem;
}

.teaching-home-header h1 {
  margin: 0.25rem 0 0.35rem;
  font-size: 2rem;
}

.teaching-home-subtitle {
  margin: 0;
  color: #64748b;
}

body.teaching-home-page .teaching-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

body.teaching-home-page .teaching-category-tile {
  border: 1px solid transparent;
}

body.teaching-home-page .teaching-category-tile.is-active {
  border-color: #c7d2fe;
  box-shadow: 0 16px 28px rgba(79, 110, 247, 0.16);
}

body.teaching-home-page .teaching-category-tile.is-active .teaching-home-tile-title {
  color: #1d4ed8;
}

.teaching-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  margin-bottom: 1.6rem;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.view-toggle__btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.view-toggle__btn svg {
  width: 16px;
  height: 16px;
}

.view-toggle__btn.is-active {
  background: #ffffff;
  color: #4f6ef7;
  box-shadow: 0 4px 10px rgba(79, 110, 247, 0.18);
}

.teaching-home-search {
  width: min(320px, 100%);
}

.teaching-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.6rem;
}

.teaching-home-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teaching-home-list-item {
  border: none;
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaching-home-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(79, 110, 247, 0.14);
}

.teaching-home-list-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.teaching-home-list-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.teaching-home-list-title {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

.teaching-home-list-meta {
  margin: 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.teaching-home-list-chevron {
  color: #94a3b8;
}

.teaching-home-tile {
  border: none;
  text-align: center;
  padding: 1.7rem 1.2rem;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaching-home-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(79, 110, 247, 0.14);
}

.teaching-home-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-bg);
  color: var(--neutral-icon);
}

.teaching-home-icon svg {
  width: 24px;
  height: 24px;
}

.teaching-home-tile-title {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

.teaching-home-empty {
  margin-top: 1rem;
  color: #94a3b8;
}

.teaching-home-tile.is-skeleton {
  position: relative;
  overflow: hidden;
  color: transparent;
}

.teaching-home-tile.is-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(241, 245, 249, 0.2) 30%,
    rgba(226, 232, 240, 0.6) 45%,
    rgba(241, 245, 249, 0.2) 60%
  );
  animation: teaching-skeleton 1.4s ease infinite;
}

@keyframes teaching-skeleton {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.teaching-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.teaching-main {
  min-width: 0;
}

.teaching-folder-panel {
  padding: 1rem 1rem 1.2rem;
  min-height: 320px;
}

.teaching-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.teaching-panel-toggle {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.teaching-folder-panel.is-collapsed .teaching-folder-tree,
.teaching-folder-panel.is-collapsed .teaching-empty {
  display: none;
}

.teaching-folder-panel.is-collapsed .teaching-panel-toggle {
  transform: rotate(-90deg);
}

.teaching-folder-tree {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.teaching-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.teaching-tree-item {
  margin: 0;
}

.teaching-tree-link {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  padding-left: calc(0.6rem + (var(--teaching-depth, 0) * 0.85rem));
  text-align: left;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.teaching-tree-link:hover {
  background: #eef2ff;
  color: #1d4ed8;
}

.teaching-tree-link.is-active {
  background: #e0e7ff;
  color: #1d4ed8;
}

.teaching-tree-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: #64748b;
}

.teaching-tree-link.is-active .teaching-tree-icon {
  color: #1d4ed8;
}

.teaching-content-card {
  padding: 1.2rem 1.3rem 1.4rem;
}

.teaching-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.teaching-current-folder {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.teaching-folder-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  color: #4f6ef7;
}

.teaching-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.4rem 0.8rem;
  min-width: 220px;
}

.teaching-search input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  outline: none;
}

.teaching-search-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: #94a3b8;
}

body.teaching-page .teaching-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

body.teaching-page .teaching-category-tab {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.teaching-page .teaching-category-tab:hover {
  border-color: #c7d2fe;
  color: #1d4ed8;
  background: #eef2ff;
}

body.teaching-page .teaching-category-tab.is-active {
  border-color: #c7d2fe;
  background: #e0e7ff;
  color: #1d4ed8;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

body.clinician-page--teaching .teaching-category-tabs {
  display: none;
}

.teaching-content-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.teaching-content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.teaching-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f6ef7;
  background: #eef2ff;
  flex-shrink: 0;
}

.teaching-item-icon--pdf {
  color: #db2777;
  background: #fce7f3;
}

.teaching-item-icon--link {
  color: #0891b2;
  background: #ecfeff;
}

.teaching-item-icon--video {
  color: #10b981;
  background: #ecfdf5;
}

.teaching-item-icon--text {
  color: #ca8a04;
  background: #fef9c3;
}

.teaching-item-icon--spotter {
  color: #0f766e;
  background: #ecfeff;
}

.teaching-item-icon--folder {
  color: #4f6ef7;
  background: #eef2ff;
}

.teaching-item-main {
  flex: 1;
  min-width: 0;
}

.teaching-item-title {
  font-weight: 600;
  margin: 0;
}

.teaching-item-desc {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.teaching-item-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.teaching-item-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.teaching-item-chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.teaching-item-menu {
  position: relative;
}

.teaching-item-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16);
  padding: 0.35rem;
  display: none;
  min-width: 140px;
  z-index: 10;
}

.teaching-item-menu.is-open .teaching-item-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.teaching-item-menu-list button {
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  color: #334155;
  font-size: 0.9rem;
}

.teaching-item-menu-list button:hover {
  background: #f1f5ff;
  color: #1d4ed8;
}

.teaching-empty {
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  padding: 1rem 0;
}

.teaching-empty-state {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.teaching-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(6px);
  z-index: 3200;
  padding: 1.5rem;
}

.teaching-modal {
  width: min(560px, 94vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.2);
}

.teaching-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.teaching-form {
  gap: 1rem;
}

.teaching-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.teaching-status {
  margin-left: auto;
  font-size: 0.85rem;
  color: #94a3b8;
}

.teaching-status.is-error {
  color: #b91c1c;
}

.teaching-status.is-success {
  color: #15803d;
}

.teaching-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.teaching-preview-modal {
  width: min(720px, 96vw);
}

.teaching-preview-body {
  max-height: 60vh;
  overflow-y: auto;
  color: #475569;
  line-height: 1.5;
  font-size: 0.95rem;
}

.teaching-preview-modal--spotter {
  width: min(1180px, 96vw);
  padding: 1.2rem 1.2rem 1.15rem;
}

.teaching-preview-modal--spotter .teaching-modal-header {
  margin-bottom: 0.85rem;
}

.teaching-preview-modal--spotter .teaching-preview-body {
  max-height: calc(88vh - 5rem);
  overflow-y: auto;
}

/* Consultation Studio — full interactive experience embedded via iframe */
.teaching-preview-modal--consultation {
  width: min(1180px, 96vw);
  padding: 1.2rem 1.2rem 1.15rem;
}
.teaching-preview-modal--consultation .teaching-modal-header {
  margin-bottom: 0.85rem;
}
.teaching-preview-modal--consultation .teaching-preview-body {
  max-height: none;
  overflow: hidden;
  padding: 0;
}
.teaching-consultation-frame {
  display: block;
  width: 100%;
  height: calc(88vh - 5.5rem);
  min-height: 520px;
  border: 0;
  border-radius: 12px;
  background: #eef1f6;
}

.teaching-spotter-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teaching-spotter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teaching-spotter-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4f6ef7;
  box-shadow: 0 0 0 5px rgba(79, 110, 247, 0.12);
}

.teaching-spotter-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.teaching-spotter-intro-copy,
.teaching-spotter-intro-card,
.teaching-spotter-panel-card,
.teaching-spotter-summary-hero,
.teaching-spotter-summary-panel {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.teaching-spotter-intro-copy {
  padding: 1.5rem;
}

.teaching-spotter-intro-copy h4,
.teaching-spotter-summary-hero h4 {
  margin: 0.55rem 0 0.55rem;
  font-size: 2rem;
  line-height: 1.05;
  color: #0f172a;
}

.teaching-spotter-intro-copy p,
.teaching-spotter-summary-hero p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

.teaching-spotter-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.teaching-spotter-intro-meta span,
.teaching-spotter-summary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 500;
}

.teaching-spotter-intro-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.35rem;
}

.teaching-spotter-intro-card-title,
.teaching-spotter-panel-title,
.teaching-spotter-summary-panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.teaching-spotter-intro-list,
.teaching-spotter-clue-list,
.teaching-spotter-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teaching-spotter-intro-list li,
.teaching-spotter-clue-list li,
.teaching-spotter-summary-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #475569;
  line-height: 1.55;
}

.teaching-spotter-intro-list li::before,
.teaching-spotter-clue-list li::before,
.teaching-spotter-summary-list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4f6ef7;
}

.teaching-spotter-clue-list li strong,
.teaching-spotter-summary-list li strong {
  display: block;
  color: #0f172a;
  font-weight: 700;
}

.teaching-spotter-clue-list li span,
.teaching-spotter-summary-list li span {
  display: block;
  color: #475569;
}

.teaching-spotter-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.teaching-spotter-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.teaching-spotter-progress-label {
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
}

.teaching-spotter-progress-bar {
  position: relative;
  width: min(360px, 100%);
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.teaching-spotter-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d7cff 0%, #315eea 100%);
}

.teaching-spotter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.teaching-spotter-stage {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.teaching-spotter-stage-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.teaching-spotter-stage-header h4 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  color: #0f172a;
}

.teaching-spotter-stage-header p {
  margin: 0;
  color: #64748b;
}

.teaching-spotter-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 24px;
  border: 1px solid #dbeafe;
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.42), transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.teaching-spotter-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.teaching-spotter-hotspot {
  position: absolute;
  border: 2px solid rgba(37, 99, 235, 0.9);
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.08);
}

.teaching-spotter-hotspot-label {
  position: absolute;
  top: -0.7rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.teaching-spotter-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.teaching-spotter-panel-card {
  padding: 1.1rem 1.15rem;
}

.teaching-spotter-answer-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.teaching-spotter-answer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.teaching-spotter-answer:hover:not(:disabled) {
  border-color: #bcd0ff;
  box-shadow: 0 12px 20px rgba(79, 110, 247, 0.1);
  transform: translateY(-1px);
}

.teaching-spotter-answer:disabled {
  cursor: default;
}

.teaching-spotter-answer-marker {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  flex-shrink: 0;
}

.teaching-spotter-answer.is-selected {
  border-color: #5d7cff;
  background: #eef3ff;
}

.teaching-spotter-answer.is-selected .teaching-spotter-answer-marker {
  border-color: #4f6ef7;
  background: radial-gradient(circle, #4f6ef7 0 45%, transparent 50%);
}

.teaching-spotter-answer.is-correct {
  border-color: #16a34a;
  background: #f0fdf4;
}

.teaching-spotter-answer.is-correct .teaching-spotter-answer-marker {
  border-color: #16a34a;
  background: radial-gradient(circle, #16a34a 0 45%, transparent 50%);
}

.teaching-spotter-answer.is-incorrect {
  border-color: #dc2626;
  background: #fef2f2;
}

.teaching-spotter-answer.is-incorrect .teaching-spotter-answer-marker {
  border-color: #dc2626;
  background: radial-gradient(circle, #dc2626 0 45%, transparent 50%);
}

.teaching-spotter-actions,
.teaching-spotter-summary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.95rem;
}

.teaching-spotter-panel-card--reveal.correct {
  border-color: #bbf7d0;
}

.teaching-spotter-panel-card--reveal.incorrect {
  border-color: #fecaca;
}

.teaching-spotter-reveal-heading {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.teaching-spotter-reveal-heading h5 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #0f172a;
}

.teaching-spotter-reveal-state {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teaching-spotter-reveal-state.is-correct {
  background: #dcfce7;
  color: #166534;
}

.teaching-spotter-reveal-state.is-incorrect {
  background: #fee2e2;
  color: #991b1b;
}

.teaching-spotter-reveal-copy {
  margin: 0;
  color: #475569;
}

.teaching-spotter-confusers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.teaching-spotter-confuser {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.teaching-spotter-confuser strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.teaching-spotter-confuser p,
.teaching-spotter-summary-empty {
  margin: 0;
  color: #475569;
}

.teaching-spotter-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 1rem;
}

.teaching-spotter-summary-hero,
.teaching-spotter-summary-panel {
  padding: 1.5rem;
}

.teaching-spotter-summary-badge--strong {
  background: #dcfce7;
  color: #166534;
}

.teaching-spotter-summary-badge--steady {
  background: #e0e7ff;
  color: #3730a3;
}

.teaching-spotter-summary-badge--focus {
  background: #fef3c7;
  color: #92400e;
}

/* Shell teaching items are whole-card <button>s now (design review
   2026-07-13): reset button chrome and keep the flex card look. */
button.teaching-content-item {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
}
.teaching-item-chevron {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  flex-shrink: 0;
}
.student-shell-page-shell--teaching .teaching-tree-link {
  min-height: 44px;
}

@media (max-width: 960px) {
  .teaching-header {
    flex-direction: column;
  }

  .teaching-grid {
    grid-template-columns: 1fr;
  }

  /* keep the item text column readable: clamp the description and let the
     chip/chevron column stay narrow (was squeezing text to ~92px) */
  .teaching-content-item {
    gap: 0.7rem;
    padding: 0.8rem 0.8rem;
  }
  .teaching-item-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .teaching-item-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
  }

  .teaching-search {
    width: 100%;
  }

  .teaching-content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .teaching-preview-modal--spotter {
    width: min(96vw, 920px);
  }

  .teaching-spotter-intro,
  .teaching-spotter-layout,
  .teaching-spotter-summary {
    grid-template-columns: 1fr;
  }

  .teaching-spotter-progress-bar {
    width: 100%;
  }

  .teaching-spotter-image-wrap,
  .teaching-spotter-image {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .teaching-preview-modal--spotter {
    padding: 1rem;
  }

  .teaching-spotter-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .teaching-spotter-intro-copy,
  .teaching-spotter-intro-card,
  .teaching-spotter-panel-card,
  .teaching-spotter-summary-hero,
  .teaching-spotter-summary-panel {
    border-radius: 18px;
  }

  .teaching-spotter-stage-header h4,
  .teaching-spotter-intro-copy h4,
  .teaching-spotter-summary-hero h4 {
    font-size: 1.55rem;
  }

  .teaching-spotter-image-wrap,
  .teaching-spotter-image {
    min-height: 280px;
  }

  .teaching-spotter-hotspot-label {
    max-width: 160px;
    white-space: normal;
  }

  .teaching-spotter-actions,
  .teaching-spotter-summary-actions {
    justify-content: stretch;
  }

  .teaching-spotter-actions .btn,
  .teaching-spotter-summary-actions .btn,
  .teaching-spotter-intro-card .btn {
    width: 100%;
  }
}

body.app-dashboard .dashboard-links-list a {
  text-decoration: none;
  color: #2563eb;
  background: #f5f7ff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

body.app-dashboard .dashboard-links-list a:hover {
  background: #eaf0ff;
}

body.app-dashboard .btn.secondary {
  background: #f5f7ff;
  color: #2563eb;
  border: 1px solid #c7d2fe;
  box-shadow: none;
}

body.app-dashboard .btn.secondary:hover {
  background: #eaf0ff;
  transform: none;
  box-shadow: none;
}

body.app-dashboard .selector select {
  border-radius: 14px;
  background-color: #f8faff;
  border: 1px solid #dbe3ff;
}

body.app-dashboard .selector select:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

body.app-dashboard .bug-report-fab {
  right: 1.5rem;
  left: auto;
  bottom: 1.5rem;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

body.app-dashboard .bug-report-fab:hover {
  background: #f8fafc;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

/* ============= CLINICIAN SHELL ============= */
body.clinician-shell {
  background: radial-gradient(circle at top left, #eef2ff 0, #f6f7ff 45%, #fdfdff 100%);
  color: #0f172a;
  font-family: var(--font-application-ui);
}

body.clinician-shell .navbar {
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.clinician-shell .nav-container {
  padding: 0.7rem 1.5rem;
  gap: 1.25rem;
}

body.clinician-shell .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.05rem;
}

body.clinician-shell .nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #075ff0, #0454d8);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(7, 95, 240, 0.28);
}

body.clinician-shell .nav-logo-mark::before,
body.clinician-shell .nav-logo-mark::after {
  content: none !important;
}



body.clinician-shell .nav-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

body.clinician-shell .nav-search input {
  width: min(540px, 100%);
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background-color: #f1f4ff;
  font-size: 0.95rem;
  color: #1f2937;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
  background-size: 1rem 1rem;
}

body.clinician-shell .nav-search input:focus {
  outline: none;
  border-color: #c7d2fe;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

body.clinician-shell .nav-links {
  gap: 0.25rem;
}

body.clinician-shell .nav-links li a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

/* Clinician messages (reuse DM overlay styles). */
body.clinician-shell .dm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
}

body.clinician-shell .dm-trigger--floating {
  position: fixed;
  top: calc(var(--navbar-height) + 1rem);
  right: 2.25rem;
  z-index: 15;
}

body.clinician-shell .dm-trigger:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

body.clinician-shell .dm-trigger-icon svg {
  width: 18px;
  height: 18px;
}

body.clinician-shell .dm-unread-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.clinician-shell .dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.clinician-shell .dm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

body.clinician-shell .dm-panel {
  position: relative;
  width: min(980px, 94vw);
  height: min(720px, 86vh);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.clinician-shell .dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #e2e8f0;
}

body.clinician-shell .dm-title {
  font-size: 1rem;
  font-weight: 600;
}

body.clinician-shell .dm-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  flex: 1;
  min-height: 0;
}

body.clinician-shell .dm-sidebar {
  border-right: 1px solid #e2e8f0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

body.clinician-shell .dm-search {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: #ffffff;
}

body.clinician-shell .dm-search input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #475569;
  padding: 0.2rem 0.25rem 0.2rem 2.15rem;
  box-sizing: border-box;
}

body.clinician-shell .dm-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.clinician-shell .dm-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

body.clinician-shell .dm-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.clinician-shell .dm-list-item {
  border: none;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  color: #1f2937;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
}

body.clinician-shell .dm-list-item:hover,
body.clinician-shell .dm-list-item:focus {
  background: #eef2ff;
}

body.clinician-shell .dm-list-item.is-active {
  background: #e0e7ff;
}

body.clinician-shell .dm-list-item-title {
  font-weight: 600;
}

body.clinician-shell .dm-list-item-meta {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

body.clinician-shell .dm-list-item.unread .dm-list-item-title::after {
  content: none;
}

body.clinician-shell .dm-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.clinician-shell .dm-chat-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #e2e8f0;
}

body.clinician-shell .dm-chat-subtitle {
  color: #94a3b8;
  font-size: 0.8rem;
}

body.clinician-shell .dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.clinician-shell .dm-message {
  max-width: 70%;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: #f1f5f9;
  color: #1f2937;
}

body.clinician-shell .dm-message--me {
  align-self: flex-end;
  background: #dbeafe;
}

body.clinician-shell .dm-message--pending {
  opacity: 0.78;
}

body.clinician-shell .dm-message-time {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

body.clinician-shell .dm-empty {
  color: #94a3b8;
  font-size: 0.85rem;
}

body.clinician-shell .dm-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid #e2e8f0;
}

body.clinician-shell .dm-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

body.clinician-shell .dm-form input:disabled {
  background: #f8fafc;
}

body.clinician-shell .dm-form button:disabled {
  opacity: 0.6;
}

body.app-dashboard .dm-group-tools,
body.clinician-shell .dm-group-tools {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.app-dashboard .dm-group-tools.is-hidden,
body.clinician-shell .dm-group-tools.is-hidden,
body.app-dashboard .dm-group-shortcuts.is-hidden,
body.clinician-shell .dm-group-shortcuts.is-hidden,
body.app-dashboard .dm-group-builder.is-hidden,
body.clinician-shell .dm-group-builder.is-hidden {
  display: none;
}

body.app-dashboard .dm-group-shortcuts,
body.clinician-shell .dm-group-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.app-dashboard .dm-group-chip,
body.clinician-shell .dm-group-chip {
  border: 1px solid rgba(199, 210, 254, 0.95);
  background: rgba(238, 242, 255, 0.92);
  color: #3f5ee8;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.app-dashboard .dm-group-chip:hover,
body.app-dashboard .dm-group-chip:focus,
body.clinician-shell .dm-group-chip:hover,
body.clinician-shell .dm-group-chip:focus {
  outline: none;
  background: rgba(224, 231, 255, 0.98);
  border-color: rgba(129, 140, 248, 0.98);
  color: #2740c7;
  box-shadow: 0 12px 20px rgba(79, 110, 247, 0.12);
}

body.app-dashboard .dm-group-builder,
body.clinician-shell .dm-group-builder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(224, 231, 255, 0.92);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1);
}

body.app-dashboard .dm-group-builder-copy,
body.clinician-shell .dm-group-builder-copy {
  color: #5a6484;
  font-size: 0.82rem;
  font-weight: 400;
}

body.app-dashboard .dm-group-builder-actions,
body.clinician-shell .dm-group-builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
}

body.app-dashboard .dm-group-text-btn,
body.clinician-shell .dm-group-text-btn,
body.app-dashboard .dm-group-create-btn,
body.clinician-shell .dm-group-create-btn {
  border: none;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard .dm-group-text-btn,
body.clinician-shell .dm-group-text-btn {
  background: transparent;
  color: #64748b;
}

body.app-dashboard .dm-group-text-btn:hover,
body.app-dashboard .dm-group-text-btn:focus,
body.clinician-shell .dm-group-text-btn:hover,
body.clinician-shell .dm-group-text-btn:focus {
  outline: none;
  color: #334155;
  background: rgba(241, 245, 255, 0.92);
}

body.app-dashboard .dm-group-create-btn,
body.clinician-shell .dm-group-create-btn {
  background: linear-gradient(135deg, #7a9cff 0%, #4a70f4 100%);
  color: #ffffff;
  box-shadow: 0 14px 22px rgba(74, 112, 244, 0.2);
}

body.app-dashboard .dm-group-create-btn:disabled,
body.clinician-shell .dm-group-create-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

body.app-dashboard .dm-list-item.is-selected,
body.clinician-shell .dm-list-item.is-selected {
  background: rgba(236, 241, 255, 0.94);
}

body.app-dashboard .dm-list-item.is-selected .dm-list-chevron,
body.clinician-shell .dm-list-item.is-selected .dm-list-chevron,
body.app-dashboard .dm-list-item.is-selected .dm-list-chevron svg,
body.clinician-shell .dm-list-item.is-selected .dm-list-chevron svg {
  color: #4f6ef7;
}

body.app-dashboard .dm-message-sender,
body.clinician-shell .dm-message-sender {
  margin-bottom: 0.28rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #6d7694;
}

@media (max-width: 900px) {
  body.clinician-shell .dm-panel {
    width: 94vw;
    height: 90vh;
  }

  body.clinician-shell .dm-body {
    grid-template-columns: 1fr;
  }

  body.clinician-shell .dm-sidebar {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  body.clinician-shell .dm-list {
    max-height: 160px;
  }
}

@media (min-width: 821px) {
  body.app-dashboard .dm-overlay,
  body.clinician-shell .dm-overlay {
    background:
      radial-gradient(circle at top left, rgba(216, 221, 255, 0.42), transparent 30%),
      radial-gradient(circle at bottom right, rgba(208, 219, 255, 0.34), transparent 28%),
      rgba(15, 23, 42, 0.22);
  }

  body.app-dashboard .dm-backdrop,
  body.clinician-shell .dm-backdrop {
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
  }

  body.app-dashboard .dm-panel,
  body.clinician-shell .dm-panel {
    width: min(1120px, 92vw);
    height: min(760px, 88vh);
    border-radius: 28px;
    border: 1px solid rgba(224, 231, 255, 0.94);
    background:
      radial-gradient(circle at bottom right, rgba(216, 226, 255, 0.34), transparent 28%),
      linear-gradient(180deg, rgba(251, 250, 255, 0.98) 0%, rgba(247, 248, 253, 0.98) 100%);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
  }

  body.app-dashboard .dm-header,
  body.clinician-shell .dm-header {
    padding: 1.35rem 1.45rem 1rem;
    border-bottom: 1px solid rgba(228, 233, 245, 0.92);
    background: transparent;
  }

  body.app-dashboard .dm-title,
  body.clinician-shell .dm-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #1e254b;
  }

  body.app-dashboard .dm-icon-button,
  body.clinician-shell .dm-icon-button {
    width: 46px;
    height: 46px;
    border-color: rgba(226, 232, 246, 0.92);
    background: rgba(255, 255, 255, 0.9);
    color: #647091;
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12);
  }

  body.app-dashboard .dm-body,
  body.clinician-shell .dm-body {
    grid-template-columns: minmax(320px, 360px) 1fr;
    min-height: 0;
  }

  body.app-dashboard .dm-sidebar,
  body.clinician-shell .dm-sidebar {
    padding: 1.1rem 1rem 1.1rem 1.1rem;
    gap: 1rem;
    background: transparent;
    border-right: 1px solid rgba(228, 233, 245, 0.92);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.app-dashboard .dm-search,
  body.clinician-shell .dm-search {
    padding: 0;
  }

  body.app-dashboard .dm-search input,
  body.clinician-shell .dm-search input {
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(224, 230, 244, 0.94);
    background: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
    color: #4a5473;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  body.app-dashboard .dm-section,
  body.clinician-shell .dm-section {
    padding: 0;
    gap: 0.8rem;
    min-height: 0;
  }

  body.app-dashboard .dm-section-title,
  body.clinician-shell .dm-section-title {
    padding: 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #5b6482;
  }

  body.app-dashboard .dm-list,
  body.clinician-shell .dm-list {
    gap: 0;
    max-height: none;
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(224, 231, 255, 0.88);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.12);
  }

  body.app-dashboard .dm-list-item,
  body.clinician-shell .dm-list-item {
    width: 100%;
    min-height: 90px;
    padding: 1rem 1.05rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    align-items: flex-start;
  }

  body.app-dashboard .dm-list-item + .dm-list-item,
  body.clinician-shell .dm-list-item + .dm-list-item {
    border-top: 1px solid rgba(228, 233, 245, 0.92);
  }

  body.app-dashboard .dm-list-item:hover,
  body.app-dashboard .dm-list-item:focus,
  body.clinician-shell .dm-list-item:hover,
  body.clinician-shell .dm-list-item:focus {
    border-color: transparent;
    background: rgba(246, 248, 255, 0.92);
    outline: none;
  }

  body.app-dashboard .dm-list-item.is-active,
  body.clinician-shell .dm-list-item.is-active {
    background: rgba(236, 241, 255, 0.94);
  }

  body.app-dashboard .dm-avatar,
  body.clinician-shell .dm-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
  }

  body.app-dashboard .dm-list-copy,
  body.clinician-shell .dm-list-copy {
    gap: 0.12rem;
    padding-top: 0.15rem;
  }

  body.app-dashboard .dm-list-item-title,
  body.clinician-shell .dm-list-item-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1f2648;
  }

  body.app-dashboard .dm-list-item-meta,
  body.clinician-shell .dm-list-item-meta {
    font-size: 0.94rem;
    color: #737b96;
  }

  body.app-dashboard .dm-list-side,
  body.clinician-shell .dm-list-side {
    align-self: flex-start;
    padding-top: 0.15rem;
    font-size: 0.88rem;
    color: #8b93ae;
  }

  body.app-dashboard .dm-thread-actions,
  body.clinician-shell .dm-thread-actions {
    gap: 0.5rem;
    padding-top: 0.15rem;
  }

  body.app-dashboard .dm-chat,
  body.clinician-shell .dm-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background:
      radial-gradient(circle at 78% 88%, rgba(216, 226, 255, 0.56), transparent 24%),
      linear-gradient(180deg, #faf9ff 0%, #f8f8fd 62%, #eef3ff 100%);
  }

  body.app-dashboard .dm-chat-header,
  body.clinician-shell .dm-chat-header {
    padding: 1.15rem 1.35rem 1rem;
    border-bottom: 1px solid rgba(229, 233, 246, 0.92);
    background: rgba(249, 248, 253, 0.82);
    backdrop-filter: blur(16px);
  }

  body.app-dashboard .dm-chat-avatar,
  body.clinician-shell .dm-chat-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  body.app-dashboard #dm-chat-title,
  body.clinician-shell #dm-chat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2648;
    letter-spacing: -0.02em;
  }

  body.app-dashboard .dm-chat-subtitle,
  body.clinician-shell .dm-chat-subtitle {
    margin-top: 0;
    font-size: 0.92rem;
    color: #7d86a3;
  }

  body.app-dashboard .dm-thread-info,
  body.clinician-shell .dm-thread-info {
    display: inline-flex;
  }

  body.app-dashboard .dm-messages,
  body.clinician-shell .dm-messages {
    padding: 1.2rem 1.35rem 1.5rem;
    gap: 0.95rem;
    background: transparent;
    -webkit-overflow-scrolling: touch;
  }

  body.app-dashboard .dm-day-divider,
  body.clinician-shell .dm-day-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(235, 236, 248, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 500;
    color: #717a98;
  }

  body.app-dashboard .dm-message-row,
  body.clinician-shell .dm-message-row {
    gap: 0.55rem;
  }

  body.app-dashboard .dm-message,
  body.clinician-shell .dm-message {
    position: relative;
    max-width: min(74%, 520px);
    padding: 0.9rem 1rem 0.78rem;
    border-radius: 22px;
    border: 1px solid rgba(230, 233, 245, 0.96);
    background: rgba(246, 244, 251, 0.92);
    color: #27304f;
    font-size: 0.98rem;
    line-height: 1.4;
  }

  body.app-dashboard .dm-message::after,
  body.clinician-shell .dm-message::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -7px;
    width: 16px;
    height: 16px;
    border-bottom-right-radius: 14px;
    background: inherit;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
  }

  body.app-dashboard .dm-message--me,
  body.clinician-shell .dm-message--me {
    background: linear-gradient(135deg, rgba(223, 228, 255, 0.96) 0%, rgba(198, 210, 255, 0.95) 100%);
    border-color: rgba(198, 208, 252, 0.96);
  }

  body.app-dashboard .dm-message--me::after,
  body.clinician-shell .dm-message--me::after {
    left: auto;
    right: -7px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 14px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }

  body.app-dashboard .dm-message-time,
  body.clinician-shell .dm-message-time {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #7c84a3;
  }

  body.app-dashboard .dm-form,
  body.clinician-shell .dm-form {
    gap: 0.7rem;
    padding: 1rem 1.25rem 1.15rem;
    border-top: 1px solid rgba(229, 233, 246, 0.92);
    background: rgba(249, 248, 253, 0.84);
    backdrop-filter: blur(14px);
  }

  body.app-dashboard .dm-composer-emoji,
  body.clinician-shell .dm-composer-emoji {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-color: rgba(226, 232, 246, 0.92);
    background: rgba(255, 255, 255, 0.88);
    color: #7b83a2;
  }

  body.app-dashboard .dm-form input,
  body.clinician-shell .dm-form input {
    height: 54px;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 229, 243, 0.98);
    background: rgba(255, 255, 255, 0.92);
    color: #30385b;
    font-size: 0.98rem;
  }

  body.app-dashboard .dm-send-button,
  body.clinician-shell .dm-send-button {
    width: 64px;
    min-width: 64px;
    height: 54px;
    border-radius: 20px;
    box-shadow: 0 18px 28px rgba(74, 112, 244, 0.22);
  }
}

@media (max-width: 820px) {
  body.app-dashboard .dm-overlay,
  body.clinician-shell .dm-overlay {
    align-items: stretch;
    justify-content: stretch;
    background:
      radial-gradient(circle at top left, rgba(216, 221, 255, 0.58), transparent 42%),
      radial-gradient(circle at top right, rgba(201, 214, 255, 0.52), transparent 38%),
      radial-gradient(circle at bottom center, rgba(205, 218, 255, 0.52), transparent 34%),
      linear-gradient(180deg, #f8f7ff 0%, #f5f7fb 68%, #eef4ff 100%);
  }

  body.app-dashboard .dm-overlay.dm-mobile-list,
  body.clinician-shell .dm-overlay.dm-mobile-list {
    inset: 0;
    z-index: 40;
  }

  body.app-dashboard .dm-overlay.dm-mobile-list .dm-body,
  body.clinician-shell .dm-overlay.dm-mobile-list .dm-body {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  body.app-dashboard .dm-overlay.dm-mobile-thread,
  body.clinician-shell .dm-overlay.dm-mobile-thread {
    inset: 0;
  }

  body.app-dashboard .dm-backdrop,
  body.clinician-shell .dm-backdrop {
    display: none;
  }

  body.app-dashboard .dm-panel,
  body.clinician-shell .dm-panel {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.app-dashboard .dm-header,
  body.clinician-shell .dm-header {
    flex-shrink: 0;
    padding: calc(var(--safe-top) + 1.45rem) 1.35rem 1rem;
    border-bottom: none;
    background: transparent;
  }

  body.app-dashboard .dm-title,
  body.clinician-shell .dm-title {
    font-size: clamp(2.35rem, 6.8vw, 3rem);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.05em;
    color: #1e254b;
  }

  body.app-dashboard .dm-close-button,
  body.clinician-shell .dm-close-button {
    display: inline-flex;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-color: rgba(227, 232, 246, 0.92);
    background: rgba(255, 255, 255, 0.84);
    color: #556089;
    box-shadow: 0 14px 26px rgba(148, 163, 184, 0.12);
  }

  body.app-dashboard .dm-compose-button,
  body.clinician-shell .dm-compose-button {
    width: 60px;
    height: 60px;
    border-color: rgba(225, 231, 246, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #7696ef;
  }

  body.app-dashboard .dm-body,
  body.clinician-shell .dm-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.app-dashboard .dm-sidebar,
  body.clinician-shell .dm-sidebar {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.15rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 3.3rem);
    border: none;
    background: transparent;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.app-dashboard .dm-overlay.dm-mobile-list .dm-sidebar,
  body.clinician-shell .dm-overlay.dm-mobile-list .dm-sidebar {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  body.app-dashboard .dm-search,
  body.clinician-shell .dm-search {
    padding: 0;
  }

  body.app-dashboard .dm-search input,
  body.clinician-shell .dm-search input {
    height: 61px;
    width: 100%;
    padding: 0.85rem 1.1rem 0.85rem 3.55rem;
    border-radius: 999px;
    border: 1px solid rgba(223, 229, 244, 0.96);
    background: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    line-height: 1.2;
    color: #4b556f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
  }

  body.app-dashboard .dm-search-icon,
  body.clinician-shell .dm-search-icon {
    left: 1.2rem;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #a1aac2;
  }

  body.app-dashboard .dm-section,
  body.clinician-shell .dm-section {
    padding: 0;
    gap: 0.85rem;
  }

  body.app-dashboard .dm-section-title,
  body.clinician-shell .dm-section-title {
    font-size: 1.02rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #5a6383;
    padding: 0 0.35rem;
  }

  body.app-dashboard .dm-list,
  body.clinician-shell .dm-list {
    max-height: none;
    overflow: hidden;
    gap: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(224, 231, 255, 0.88);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.14);
  }

  body.app-dashboard .dm-list-item,
  body.clinician-shell .dm-list-item {
    width: 100%;
    padding: 1.15rem 1.2rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.app-dashboard .dm-list-item--thread,
  body.clinician-shell .dm-list-item--thread {
    align-items: flex-start;
    gap: 0.95rem;
    min-height: 110px;
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled:hover,
  body.app-dashboard .dm-list-item--thread.is-swipe-enabled:focus,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled:hover,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled:focus {
    background: transparent;
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-thread-swipe-content,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-thread-swipe-content {
    align-items: flex-start;
    gap: 0.95rem;
    min-height: 110px;
    padding: 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.82);
    position: relative;
    z-index: 2;
    touch-action: pan-y;
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-profile-link,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-profile-link {
    align-items: flex-start;
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-thread-swipe-action,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-thread-swipe-action {
    position: absolute;
    inset: 0 0 0 auto;
    width: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: linear-gradient(180deg, #fb7185 0%, #ef4444 100%);
    z-index: 1;
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-thread-delete,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-thread-delete {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(8px);
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-thread-delete:hover,
  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-thread-delete:focus,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-thread-delete:hover,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-thread-delete:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: transparent;
    color: #ffffff;
    transform: none;
  }

  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-thread-actions,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-thread-actions {
    display: none;
  }

  body.app-dashboard .dm-list-item--person,
  body.clinician-shell .dm-list-item--person {
    align-items: center;
  }

  body.app-dashboard .dm-list-item + .dm-list-item,
  body.clinician-shell .dm-list-item + .dm-list-item {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
  }

  body.app-dashboard .dm-list-item:hover,
  body.app-dashboard .dm-list-item:focus,
  body.clinician-shell .dm-list-item:hover,
  body.clinician-shell .dm-list-item:focus {
    background: rgba(248, 250, 255, 0.92);
  }

  body.app-dashboard .dm-avatar,
  body.clinician-shell .dm-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.25rem;
  }

  body.app-dashboard .dm-list-copy,
  body.clinician-shell .dm-list-copy {
    gap: 0.1rem;
    padding-top: 0.05rem;
  }

  body.app-dashboard .dm-list-heading,
  body.clinician-shell .dm-list-heading {
    gap: 0.52rem;
  }

  body.app-dashboard .dm-list-item-title,
  body.clinician-shell .dm-list-item-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1f2648;
  }

  body.app-dashboard .dm-list-item-meta,
  body.clinician-shell .dm-list-item-meta,
  body.app-dashboard .dm-list-side,
  body.clinician-shell .dm-list-side {
    font-size: 0.98rem;
    color: #737b96;
  }

  body.app-dashboard .dm-list-item-meta,
  body.clinician-shell .dm-list-item-meta {
    line-height: 1.2;
  }

  body.app-dashboard .dm-row-unread-dot,
  body.clinician-shell .dm-row-unread-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.16);
  }

  body.app-dashboard .dm-list-side,
  body.clinician-shell .dm-list-side {
    align-self: flex-start;
    padding-top: 0.15rem;
    font-size: 0.95rem;
    color: #868eab;
  }

  body.app-dashboard .dm-thread-actions,
  body.clinician-shell .dm-thread-actions {
    gap: 0.65rem;
    padding-top: 0.1rem;
  }

  body.app-dashboard .dm-thread-delete,
  body.clinician-shell .dm-thread-delete {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.92);
  }

  body.app-dashboard .dm-group-tools,
  body.clinician-shell .dm-group-tools {
    gap: 0.8rem;
    padding: 0 0.1rem;
  }

  body.app-dashboard .dm-group-shortcuts,
  body.clinician-shell .dm-group-shortcuts {
    gap: 0.65rem;
  }

  body.app-dashboard .dm-group-chip,
  body.clinician-shell .dm-group-chip {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  body.app-dashboard .dm-group-builder,
  body.clinician-shell .dm-group-builder {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
  }

  body.app-dashboard .dm-group-builder-copy,
  body.clinician-shell .dm-group-builder-copy {
    font-size: 0.92rem;
  }

  body.app-dashboard .dm-group-builder-actions,
  body.clinician-shell .dm-group-builder-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  body.app-dashboard .dm-group-text-btn,
  body.clinician-shell .dm-group-text-btn,
  body.app-dashboard .dm-group-create-btn,
  body.clinician-shell .dm-group-create-btn {
    min-height: 46px;
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
  }

  body.app-dashboard .dm-list-chevron,
  body.clinician-shell .dm-list-chevron {
    color: #d2d8ea;
  }

  body.app-dashboard .dm-mobile-cta-wrap,
  body.clinician-shell .dm-mobile-cta-wrap,
  body.app-dashboard .dm-section--people,
  body.clinician-shell .dm-section--people {
    display: none;
  }

  body.app-dashboard .dm-overlay.dm-mobile-compose .dm-section--threads,
  body.clinician-shell .dm-overlay.dm-mobile-compose .dm-section--threads {
    display: none;
  }

  body.app-dashboard .dm-overlay.dm-mobile-compose .dm-section--people,
  body.clinician-shell .dm-overlay.dm-mobile-compose .dm-section--people {
    display: flex;
  }

  body.app-dashboard .dm-compose-fab,
  body.clinician-shell .dm-compose-fab {
    display: none;
    position: fixed;
    right: 1.4rem;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1.25rem);
    width: 82px;
    height: 82px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #7a9cff 0%, #4a70f4 100%);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 36px rgba(74, 112, 244, 0.28);
    z-index: 6;
  }

  body.app-dashboard .dm-overlay.dm-mobile-compose .dm-compose-fab,
  body.clinician-shell .dm-overlay.dm-mobile-compose .dm-compose-fab {
    display: none;
  }

  body.app-dashboard .dm-chat,
  body.clinician-shell .dm-chat {
    display: none;
    flex: 1;
    min-height: 0;
    height: auto;
    background: transparent;
  }

  body.app-dashboard .dm-overlay.dm-mobile-thread .dm-header,
  body.app-dashboard .dm-overlay.dm-mobile-thread .dm-sidebar,
  body.app-dashboard .dm-overlay.dm-mobile-thread .dm-compose-fab,
  body.clinician-shell .dm-overlay.dm-mobile-thread .dm-header,
  body.clinician-shell .dm-overlay.dm-mobile-thread .dm-sidebar,
  body.clinician-shell .dm-overlay.dm-mobile-thread .dm-compose-fab {
    display: none;
  }

  body.app-dashboard .dm-overlay.dm-mobile-thread .dm-chat,
  body.clinician-shell .dm-overlay.dm-mobile-thread .dm-chat {
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(circle at 70% 88%, rgba(214, 225, 255, 0.72), transparent 26%),
      linear-gradient(180deg, #faf9ff 0%, #f7f7fd 62%, #eef3ff 100%);
  }

  body.app-dashboard .dm-chat-header,
  body.clinician-shell .dm-chat-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: calc(var(--safe-top) + 0.95rem) 1rem 0.9rem;
    border-bottom: 1px solid rgba(229, 233, 246, 0.92);
    background: rgba(249, 248, 253, 0.96);
    backdrop-filter: blur(18px);
    gap: 0.8rem;
  }

  body.app-dashboard .dm-back-button,
  body.clinician-shell .dm-back-button,
  body.app-dashboard .dm-thread-info,
  body.clinician-shell .dm-thread-info {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-color: rgba(227, 232, 246, 0.92);
    background: rgba(255, 255, 255, 0.84);
    color: #556089;
    box-shadow: 0 14px 26px rgba(148, 163, 184, 0.12);
  }

  body.app-dashboard .dm-back-button,
  body.clinician-shell .dm-back-button,
  body.app-dashboard .dm-thread-info,
  body.clinician-shell .dm-thread-info {
    display: inline-flex;
  }

  body.app-dashboard .dm-chat-avatar,
  body.clinician-shell .dm-chat-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    font-size: 1.25rem;
  }

  body.app-dashboard #dm-chat-title,
  body.clinician-shell #dm-chat-title {
    font-size: 1.16rem;
    font-weight: 600;
    color: #1f2648;
    letter-spacing: -0.02em;
  }

  body.app-dashboard .dm-chat-subtitle,
  body.clinician-shell .dm-chat-subtitle {
    margin-top: 0;
    font-size: 0.95rem;
    color: #7d86a3;
  }

  body.app-dashboard .dm-messages,
  body.clinician-shell .dm-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 0.95rem 1.6rem;
    padding-bottom: 1.8rem;
    background: transparent;
    gap: 0.9rem;
    -webkit-overflow-scrolling: touch;
  }

  body.app-dashboard .dm-day-divider,
  body.clinician-shell .dm-day-divider {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(235, 236, 248, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
    color: #737b96;
  }

  body.app-dashboard .dm-message-row,
  body.clinician-shell .dm-message-row {
    align-items: flex-end;
    gap: 0.5rem;
  }

  body.app-dashboard .dm-message-avatar,
  body.clinician-shell .dm-message-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  body.app-dashboard .dm-message,
  body.clinician-shell .dm-message {
    position: relative;
    max-width: min(76%, 420px);
    padding: 0.95rem 1.1rem 0.8rem;
    border-radius: 24px;
    border: 1px solid rgba(230, 233, 245, 0.95);
    background: rgba(246, 244, 251, 0.92);
    font-size: 1rem;
    line-height: 1.38;
    color: #27304f;
    box-shadow: none;
  }

  body.app-dashboard .dm-message::after,
  body.clinician-shell .dm-message::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -7px;
    width: 16px;
    height: 16px;
    border-bottom-right-radius: 14px;
    background: inherit;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
  }

  body.app-dashboard .dm-message--me,
  body.clinician-shell .dm-message--me {
    background: linear-gradient(135deg, rgba(223, 228, 255, 0.96) 0%, rgba(198, 210, 255, 0.95) 100%);
    border-color: rgba(198, 208, 252, 0.96);
  }

  body.app-dashboard .dm-message--me::after,
  body.clinician-shell .dm-message--me::after {
    left: auto;
    right: -7px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 14px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }

  body.app-dashboard .dm-message-time,
  body.clinician-shell .dm-message-time {
    text-align: right;
    margin-top: 0.38rem;
    font-size: 0.82rem;
    color: #7c84a3;
  }

  body.app-dashboard .dm-message-time--outside,
  body.clinician-shell .dm-message-time--outside {
    align-self: flex-end;
    margin: 0 0.15rem 0.45rem 0;
    white-space: nowrap;
  }

  body.app-dashboard .dm-form,
  body.clinician-shell .dm-form {
    position: sticky;
    bottom: 0;
    gap: 0.6rem;
    padding: 0.9rem 1rem calc(var(--safe-bottom) + 0.95rem);
    background: rgba(248, 248, 252, 0.98);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(229, 233, 246, 0.92);
  }

  body.app-dashboard .dm-composer-emoji,
  body.clinician-shell .dm-composer-emoji {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-color: rgba(227, 232, 246, 0.9);
    background: rgba(255, 255, 255, 0.88);
    color: #7b83a2;
  }

  body.app-dashboard .dm-form input,
  body.clinician-shell .dm-form input {
    height: 56px;
    padding: 0.85rem 1.05rem;
    font-size: 1rem;
    color: #30385b;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(224, 229, 243, 0.98);
  }

  body.app-dashboard .dm-send-button,
  body.clinician-shell .dm-send-button {
    width: 68px;
    min-width: 68px;
    height: 56px;
    border-radius: 22px;
    box-shadow: 0 18px 28px rgba(74, 112, 244, 0.24);
  }

  body.app-dashboard .dm-send-button svg,
  body.clinician-shell .dm-send-button svg {
    width: 22px;
    height: 22px;
  }

  body.app-dashboard .dm-empty,
  body.clinician-shell .dm-empty {
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
  }
}

body.clinician-shell .nav-button {
  background: transparent;
  color: #0f172a !important;
  border: 1px solid transparent;
  box-shadow: none;
}

body.clinician-shell .nav-button:hover {
  background: #eef2ff;
  border-color: #e2e8f0;
}

/* ============= Messaging Refinement ============= */
body.app-dashboard .dm-subtitle,
body.clinician-shell .dm-subtitle {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #73809a;
}

body.app-dashboard .dm-thread-filters,
body.clinician-shell .dm-thread-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0.1rem;
}

body.app-dashboard .dm-thread-filter,
body.clinician-shell .dm-thread-filter {
  border: 1px solid rgba(221, 228, 243, 0.94);
  background: rgba(255, 255, 255, 0.9);
  color: #5d6881;
  border-radius: 999px;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body.app-dashboard .dm-thread-filter:hover,
body.app-dashboard .dm-thread-filter:focus-visible,
body.clinician-shell .dm-thread-filter:hover,
body.clinician-shell .dm-thread-filter:focus-visible {
  outline: none;
  border-color: rgba(174, 190, 232, 0.96);
  color: #243b72;
  background: #f7f9ff;
}

body.app-dashboard .dm-thread-filter.is-active,
body.clinician-shell .dm-thread-filter.is-active {
  border-color: rgba(142, 165, 228, 0.98);
  background: linear-gradient(180deg, #f7faff 0%, #edf3ff 100%);
  color: #244898;
  box-shadow: 0 10px 20px rgba(54, 86, 164, 0.08);
}

body.app-dashboard .dm-thread-filter-count,
body.clinician-shell .dm-thread-filter-count {
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  background: rgba(227, 233, 248, 0.96);
  color: #53617c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard .dm-thread-filter.is-active .dm-thread-filter-count,
body.clinician-shell .dm-thread-filter.is-active .dm-thread-filter-count {
  background: rgba(79, 110, 247, 0.14);
  color: #2d57b8;
}

body.app-dashboard .dm-thread-filter-label,
body.clinician-shell .dm-thread-filter-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

body.app-dashboard .dm-list--mobile-sections,
body.clinician-shell .dm-list--mobile-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.app-dashboard .dm-mobile-thread-section,
body.clinician-shell .dm-mobile-thread-section {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

body.app-dashboard .dm-mobile-thread-section-title,
body.clinician-shell .dm-mobile-thread-section-title {
  margin: 0;
  padding: 0 0.35rem;
  color: #56627d;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.app-dashboard .dm-mobile-thread-list,
body.clinician-shell .dm-mobile-thread-list {
  width: 100%;
}

body.app-dashboard .dm-list-item--thread .dm-profile-link,
body.clinician-shell .dm-list-item--thread .dm-profile-link {
  align-items: flex-start;
}

body.app-dashboard .dm-avatar--topic,
body.clinician-shell .dm-avatar--topic {
  background: linear-gradient(180deg, #f6f8fe 0%, #eaf0ff 100%);
  border: 1px solid rgba(214, 223, 246, 0.98);
  color: #3f5cab;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.app-dashboard .dm-avatar--topic svg,
body.clinician-shell .dm-avatar--topic svg {
  width: 22px;
  height: 22px;
}

body.app-dashboard .dm-avatar--topic-announcement,
body.clinician-shell .dm-avatar--topic-announcement {
  color: #2461b0;
  background: linear-gradient(180deg, #f4f8ff 0%, #e7f0ff 100%);
}

body.app-dashboard .dm-avatar--topic-placement,
body.clinician-shell .dm-avatar--topic-placement {
  color: #4155a7;
  background: linear-gradient(180deg, #f6f7fd 0%, #eceffd 100%);
}

body.app-dashboard .dm-list-heading,
body.clinician-shell .dm-list-heading {
  justify-content: space-between;
}

body.app-dashboard .dm-row-unread-dot,
body.clinician-shell .dm-row-unread-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 999px;
  background: #4f6ef7;
  box-shadow: 0 0 0 5px rgba(79, 110, 247, 0.12);
}

body.app-dashboard .dm-row-unread-dot.is-hidden,
body.clinician-shell .dm-row-unread-dot.is-hidden {
  display: none;
}

body.app-dashboard .dm-row-unread-count,
body.clinician-shell .dm-row-unread-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.14);
  color: #3155ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
}

body.app-dashboard .dm-thread-chip-row,
body.clinician-shell .dm-thread-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.45rem;
}

body.app-dashboard .dm-thread-chip,
body.clinician-shell .dm-thread-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #dde4f2;
  background: #f8fafc;
  color: #596882;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.app-dashboard .dm-thread-chip--info,
body.clinician-shell .dm-thread-chip--info {
  background: #eef4ff;
  border-color: #d5e1fb;
  color: #2f5aac;
}

body.app-dashboard .dm-thread-chip--muted,
body.clinician-shell .dm-thread-chip--muted {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #66768d;
}

body.app-dashboard .dm-thread-chip--neutral,
body.clinician-shell .dm-thread-chip--neutral {
  background: #f6f7fb;
  border-color: #e4e8f1;
  color: #62718a;
}

body.app-dashboard .dm-list-item-meta--chipline,
body.clinician-shell .dm-list-item-meta--chipline {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  white-space: normal;
}

body.app-dashboard .dm-list-item-meta-text,
body.clinician-shell .dm-list-item-meta-text {
  color: inherit;
  line-height: 1.35;
}

body.app-dashboard .dm-thread-actions,
body.clinician-shell .dm-thread-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

body.app-dashboard .dm-thread-controls,
body.clinician-shell .dm-thread-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

body.app-dashboard .dm-thread-delete,
body.clinician-shell .dm-thread-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid rgba(222, 228, 241, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #7c87a0;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.app-dashboard .dm-thread-delete svg,
body.clinician-shell .dm-thread-delete svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard .dm-thread-delete:hover,
body.app-dashboard .dm-thread-delete:focus-visible,
body.clinician-shell .dm-thread-delete:hover,
body.clinician-shell .dm-thread-delete:focus-visible {
  outline: none;
  background: #f7f9ff;
  border-color: #cfd9ec;
  color: #4d5f85;
  transform: translateY(-1px);
}

body.app-dashboard .dm-thread-delete.is-active,
body.clinician-shell .dm-thread-delete.is-active {
  border-color: rgba(141, 165, 231, 0.96);
  background: #eef4ff;
  color: #2f58ab;
}

body.app-dashboard .dm-thread-swipe-label,
body.clinician-shell .dm-thread-swipe-label {
  display: block;
  margin-top: 0.4rem;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.app-dashboard .dm-list-chevron,
body.clinician-shell .dm-list-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b5bfd2;
}

body.app-dashboard .dm-list-side,
body.clinician-shell .dm-list-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
}

body.app-dashboard .dm-list-side--now,
body.clinician-shell .dm-list-side--now {
  color: #3155ab;
  font-weight: 600;
}

body.app-dashboard .dm-list-side-now-dot,
body.clinician-shell .dm-list-side-now-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
  background: #4f6ef7;
  box-shadow: 0 0 0 5px rgba(79, 110, 247, 0.12);
}

body.app-dashboard .dm-load-older-wrap,
body.clinician-shell .dm-load-older-wrap {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

body.app-dashboard .dm-load-older,
body.clinician-shell .dm-load-older,
body.app-dashboard .dm-load-older-end,
body.clinician-shell .dm-load-older-end,
body.app-dashboard .dm-load-older-status,
body.clinician-shell .dm-load-older-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard .dm-load-older,
body.clinician-shell .dm-load-older {
  border: 1px solid #d9e2f1;
  background: rgba(255, 255, 255, 0.94);
  color: #56657f;
  cursor: pointer;
}

body.app-dashboard .dm-load-older:hover,
body.app-dashboard .dm-load-older:focus-visible,
body.clinician-shell .dm-load-older:hover,
body.clinician-shell .dm-load-older:focus-visible {
  outline: none;
  border-color: #c6d4ec;
  background: #f8faff;
}

body.app-dashboard .dm-load-older-end,
body.clinician-shell .dm-load-older-end {
  background: rgba(239, 243, 250, 0.92);
  color: #66748e;
}

body.app-dashboard .dm-load-older-status,
body.clinician-shell .dm-load-older-status {
  background: #fff1f2;
  color: #b42318;
}

body.app-dashboard .dm-sheet-backdrop,
body.clinician-shell .dm-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.16);
  z-index: 2;
}

body.app-dashboard .dm-sheet,
body.clinician-shell .dm-sheet {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

body.app-dashboard .dm-sheet:not(.is-hidden),
body.clinician-shell .dm-sheet:not(.is-hidden) {
  pointer-events: auto;
}

body.app-dashboard .dm-sheet-card,
body.clinician-shell .dm-sheet-card {
  width: min(420px, 100%);
  height: 100%;
  margin-left: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-left: 1px solid rgba(225, 232, 244, 0.96);
  box-shadow: -20px 0 44px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.app-dashboard .dm-sheet-header,
body.clinician-shell .dm-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(229, 233, 246, 0.92);
}

body.app-dashboard .dm-sheet-copy,
body.clinician-shell .dm-sheet-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

body.app-dashboard .dm-sheet-title,
body.clinician-shell .dm-sheet-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #172744;
}

body.app-dashboard .dm-sheet-subtitle,
body.clinician-shell .dm-sheet-subtitle {
  color: #6e7d96;
  font-size: 0.83rem;
  line-height: 1.35;
}

body.app-dashboard .dm-sheet-body,
body.clinician-shell .dm-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard .dm-sheet-status,
body.clinician-shell .dm-sheet-status {
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: #eff6ff;
  color: #2452a3;
  font-size: 0.82rem;
  font-weight: 500;
}

body.app-dashboard .dm-sheet-status.is-error,
body.clinician-shell .dm-sheet-status.is-error {
  background: #fff1f2;
  color: #b42318;
}

body.app-dashboard .dm-sheet-status.is-neutral,
body.clinician-shell .dm-sheet-status.is-neutral {
  background: #f8fafc;
  color: #55657f;
}

body.app-dashboard .dm-sheet-summary,
body.clinician-shell .dm-sheet-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

body.app-dashboard .dm-sheet-summary-card,
body.clinician-shell .dm-sheet-summary-card {
  padding: 0.85rem 0.9rem;
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

body.app-dashboard .dm-sheet-summary-label,
body.clinician-shell .dm-sheet-summary-label {
  color: #7b88a1;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.app-dashboard .dm-sheet-summary-value,
body.clinician-shell .dm-sheet-summary-value {
  color: #1d2f4d;
  font-size: 0.9rem;
  font-weight: 600;
}

body.app-dashboard .dm-sheet-section,
body.clinician-shell .dm-sheet-section,
body.app-dashboard .dm-group-manager-section,
body.clinician-shell .dm-group-manager-section {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

body.app-dashboard .dm-sheet-section-label,
body.clinician-shell .dm-sheet-section-label,
body.app-dashboard .dm-group-manager-label,
body.clinician-shell .dm-group-manager-label {
  color: #62718b;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.app-dashboard .dm-sheet-members,
body.clinician-shell .dm-sheet-members,
body.app-dashboard .dm-group-member-list,
body.clinician-shell .dm-group-member-list,
body.app-dashboard .dm-group-available-list,
body.clinician-shell .dm-group-available-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.app-dashboard .dm-sheet-member,
body.clinician-shell .dm-sheet-member,
body.app-dashboard .dm-group-member-chip,
body.clinician-shell .dm-group-member-chip,
body.app-dashboard .dm-group-available-row,
body.clinician-shell .dm-group-available-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid #e4eaf4;
  background: #ffffff;
  text-align: left;
}

body.app-dashboard .dm-sheet-member-avatar,
body.clinician-shell .dm-sheet-member-avatar,
body.app-dashboard .dm-group-member-avatar,
body.clinician-shell .dm-group-member-avatar,
body.app-dashboard .dm-group-available-avatar,
body.clinician-shell .dm-group-available-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 999px;
  overflow: hidden;
}

body.app-dashboard .dm-sheet-member-copy,
body.clinician-shell .dm-sheet-member-copy,
body.app-dashboard .dm-group-member-copy,
body.clinician-shell .dm-group-member-copy,
body.app-dashboard .dm-group-available-copy,
body.clinician-shell .dm-group-available-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  flex: 1;
}

body.app-dashboard .dm-sheet-member-copy strong,
body.clinician-shell .dm-sheet-member-copy strong,
body.app-dashboard .dm-group-member-name,
body.clinician-shell .dm-group-member-name,
body.app-dashboard .dm-group-available-copy strong,
body.clinician-shell .dm-group-available-copy strong {
  color: #1d2f4d;
  font-size: 0.88rem;
  font-weight: 700;
}

body.app-dashboard .dm-sheet-member-copy span,
body.clinician-shell .dm-sheet-member-copy span,
body.app-dashboard .dm-group-member-meta,
body.clinician-shell .dm-group-member-meta,
body.app-dashboard .dm-group-available-copy span,
body.clinician-shell .dm-group-available-copy span {
  color: #6f7f97;
  font-size: 0.78rem;
  line-height: 1.35;
}

body.app-dashboard .dm-sheet-actions,
body.clinician-shell .dm-sheet-actions,
body.app-dashboard .dm-group-manager-actions,
body.clinician-shell .dm-group-manager-actions {
  display: grid;
  gap: 0.55rem;
}

body.app-dashboard .dm-sheet-action,
body.clinician-shell .dm-sheet-action,
body.app-dashboard .dm-sheet-profile-link,
body.clinician-shell .dm-sheet-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #d8e1f1;
  background: #ffffff;
  color: #2c4d90;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

body.app-dashboard .dm-sheet-action:hover,
body.app-dashboard .dm-sheet-action:focus-visible,
body.app-dashboard .dm-sheet-profile-link:hover,
body.app-dashboard .dm-sheet-profile-link:focus-visible,
body.clinician-shell .dm-sheet-action:hover,
body.clinician-shell .dm-sheet-action:focus-visible,
body.clinician-shell .dm-sheet-profile-link:hover,
body.clinician-shell .dm-sheet-profile-link:focus-visible {
  outline: none;
  background: #f7faff;
  border-color: #bfd0ee;
}

body.app-dashboard .dm-field,
body.clinician-shell .dm-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

body.app-dashboard .dm-field-label,
body.clinician-shell .dm-field-label {
  color: #5e6d87;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

body.app-dashboard .dm-field-input,
body.clinician-shell .dm-field-input {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid #dce4f1;
  background: #ffffff;
  font: inherit;
  color: #24344f;
  box-sizing: border-box;
}

body.app-dashboard .dm-group-member-remove,
body.clinician-shell .dm-group-member-remove,
body.app-dashboard .dm-group-available-add,
body.clinician-shell .dm-group-available-add {
  color: #2f58ab;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

body.app-dashboard .dm-group-member-remove,
body.clinician-shell .dm-group-member-remove {
  border: none;
  background: transparent;
  cursor: pointer;
}

body.app-dashboard .dm-group-manager-empty,
body.clinician-shell .dm-group-manager-empty {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px dashed #dbe3f0;
  color: #71819b;
  font-size: 0.82rem;
  background: #fbfdff;
}

@media (min-width: 821px) {
  body.app-dashboard .dm-panel,
  body.clinician-shell .dm-panel {
    width: min(1140px, 92vw);
    height: min(780px, 88vh);
  }

  body.app-dashboard .dm-header,
  body.clinician-shell .dm-header {
    padding: 1.25rem 1.35rem 1rem;
  }

  body.app-dashboard .dm-title,
  body.clinician-shell .dm-title {
    font-size: 1.38rem;
  }

  body.app-dashboard .dm-body,
  body.clinician-shell .dm-body {
    grid-template-columns: minmax(320px, 368px) 1fr;
  }

  body.app-dashboard .dm-sidebar,
  body.clinician-shell .dm-sidebar {
    padding: 1rem;
    gap: 0.9rem;
  }

  body.app-dashboard .dm-list,
  body.clinician-shell .dm-list {
    border-radius: 22px;
  }

  body.app-dashboard .dm-list-item,
  body.clinician-shell .dm-list-item {
    min-height: 84px;
    padding: 0.9rem 0.95rem;
  }

  body.app-dashboard .dm-list-item--thread,
  body.clinician-shell .dm-list-item--thread {
    align-items: flex-start;
    gap: 0.95rem;
  }

  body.app-dashboard .dm-list-item--thread .dm-profile-link,
  body.clinician-shell .dm-list-item--thread .dm-profile-link {
    align-items: flex-start;
  }

  body.app-dashboard .dm-thread-chip-row,
  body.clinician-shell .dm-thread-chip-row {
    margin-top: 0.38rem;
  }

  body.app-dashboard .dm-thread-chip,
  body.clinician-shell .dm-thread-chip {
    min-height: 22px;
    padding: 0.08rem 0.45rem;
    font-size: 0.66rem;
  }

  body.app-dashboard .dm-thread-actions,
  body.clinician-shell .dm-thread-actions {
    margin-left: auto;
    flex: 0 0 auto;
    align-self: flex-start;
    justify-content: flex-end;
    min-width: 68px;
  }

  body.app-dashboard .dm-list-side,
  body.clinician-shell .dm-list-side {
    min-width: 56px;
    justify-content: flex-end;
    text-align: right;
  }

  body.app-dashboard .dm-messages,
  body.clinician-shell .dm-messages {
    padding: 1.1rem 1.25rem 1.35rem;
  }

  body.app-dashboard .dm-message,
  body.clinician-shell .dm-message {
    max-width: min(70%, 500px);
    padding: 0.82rem 0.95rem 0.72rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(218, 226, 239, 0.96);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  }

  body.app-dashboard .dm-message--me,
  body.clinician-shell .dm-message--me {
    background: #eef4ff;
    border-color: #cadbff;
  }
}

@media (max-width: 820px) {
  body.app-dashboard .dm-title,
  body.clinician-shell .dm-title {
    font-size: clamp(1.95rem, 7vw, 2.45rem);
    font-weight: 600;
  }

  body.app-dashboard .dm-subtitle,
  body.clinician-shell .dm-subtitle {
    font-size: 0.88rem;
    margin-top: 0.28rem;
    max-width: 24rem;
  }

  body.app-dashboard .dm-header,
  body.clinician-shell .dm-header {
    padding: calc(var(--safe-top) + 1.05rem) 1.1rem 0.82rem;
  }

  body.app-dashboard .dm-close-button,
  body.clinician-shell .dm-close-button {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  body.app-dashboard .dm-compose-button,
  body.clinician-shell .dm-compose-button {
    width: 54px;
    height: 54px;
  }

  body.app-dashboard .dm-sidebar,
  body.clinician-shell .dm-sidebar {
    gap: 1rem;
    padding: 0 1rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 2.7rem);
  }

  body.app-dashboard .dm-thread-filters,
  body.clinician-shell .dm-thread-filters {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.1rem 0 0.2rem;
    background: transparent;
  }

  body.app-dashboard .dm-thread-filter,
  body.clinician-shell .dm-thread-filter {
    min-height: 34px;
    padding: 0.28rem 0.62rem;
    font-size: 0.78rem;
  }

  body.app-dashboard .dm-thread-filter-count,
  body.clinician-shell .dm-thread-filter-count {
    min-width: 1.42rem;
    height: 1.42rem;
    font-size: 0.66rem;
  }

  body.app-dashboard .dm-list,
  body.clinician-shell .dm-list {
    border-radius: 24px;
  }

  body.app-dashboard .dm-list--mobile-sections,
  body.clinician-shell .dm-list--mobile-sections {
    gap: 1.15rem;
  }

  body.app-dashboard .dm-mobile-thread-section-title,
  body.clinician-shell .dm-mobile-thread-section-title {
    padding: 0 0.15rem;
    font-size: 1rem;
  }

  body.app-dashboard .dm-list-item--thread,
  body.clinician-shell .dm-list-item--thread,
  body.app-dashboard .dm-list-item--thread.is-swipe-enabled .dm-thread-swipe-content,
  body.clinician-shell .dm-list-item--thread.is-swipe-enabled .dm-thread-swipe-content {
    min-height: 96px;
    padding: 0.95rem 1rem;
  }

  body.app-dashboard .dm-avatar,
  body.clinician-shell .dm-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
    font-size: 1.1rem;
  }

  body.app-dashboard .dm-list-item-title,
  body.clinician-shell .dm-list-item-title {
    font-size: 1rem;
  }

  body.app-dashboard .dm-list-item-meta,
  body.clinician-shell .dm-list-item-meta,
  body.app-dashboard .dm-list-side,
  body.clinician-shell .dm-list-side {
    font-size: 0.9rem;
  }

  body.app-dashboard .dm-mobile-cta-wrap,
  body.clinician-shell .dm-mobile-cta-wrap {
    display: none;
  }

  body.app-dashboard .dm-overlay.dm-mobile-list .dm-compose-fab,
  body.clinician-shell .dm-overlay.dm-mobile-list .dm-compose-fab {
    display: inline-flex;
  }

  body.app-dashboard .dm-compose-fab,
  body.clinician-shell .dm-compose-fab {
    right: 1rem;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
    width: 64px;
    height: 64px;
    box-shadow: 0 18px 30px rgba(74, 112, 244, 0.24);
  }

  body.app-dashboard .dm-chat-header,
  body.clinician-shell .dm-chat-header {
    padding: calc(var(--safe-top) + 0.75rem) 0.9rem 0.8rem;
  }

  body.app-dashboard .dm-chat-avatar,
  body.clinician-shell .dm-chat-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  body.app-dashboard #dm-chat-title,
  body.clinician-shell #dm-chat-title {
    font-size: 1.06rem;
  }

  body.app-dashboard .dm-chat-subtitle,
  body.clinician-shell .dm-chat-subtitle {
    font-size: 0.84rem;
  }

  body.app-dashboard .dm-messages,
  body.clinician-shell .dm-messages {
    padding: 0.85rem 0.85rem 1.15rem;
    gap: 0.75rem;
  }

  body.app-dashboard .dm-message,
  body.clinician-shell .dm-message {
    max-width: min(82%, 360px);
    padding: 0.82rem 0.95rem 0.72rem;
    font-size: 0.94rem;
    border-radius: 20px;
  }

  body.app-dashboard .dm-form,
  body.clinician-shell .dm-form {
    padding: 0.85rem 0.85rem calc(var(--safe-bottom) + 0.85rem);
  }

  body.app-dashboard .dm-composer-emoji,
  body.clinician-shell .dm-composer-emoji {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  body.app-dashboard .dm-form input,
  body.clinician-shell .dm-form input {
    height: 50px;
    font-size: 0.94rem;
  }

  body.app-dashboard .dm-send-button,
  body.clinician-shell .dm-send-button {
    width: 58px;
    min-width: 58px;
    height: 50px;
    border-radius: 18px;
  }

  body.app-dashboard .dm-sheet,
  body.clinician-shell .dm-sheet {
    align-items: flex-end;
  }

  body.app-dashboard .dm-sheet-card,
  body.clinician-shell .dm-sheet-card {
    width: 100%;
    max-height: min(82vh, 720px);
    height: auto;
    border-left: none;
    border-top: 1px solid rgba(225, 232, 244, 0.96);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.18);
  }

  body.app-dashboard .dm-sheet-summary,
  body.clinician-shell .dm-sheet-summary {
    grid-template-columns: 1fr 1fr;
  }
}

body.clinician-shell .app-shell {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
}

body.clinician-shell .app-sidebar {
  position: fixed;
  left: 0;
  top: var(--navbar-height);
  bottom: 0;
  width: 240px;
  padding: 1.4rem 1rem;
  background: linear-gradient(180deg, #f9faff 0%, #f3f4ff 55%, #f9faff 100%);
  color: #1f2937;
  border-right: 1px solid #e2e8f0;
  box-shadow: inset -1px 0 0 rgba(226, 232, 240, 0.9);
}

body.clinician-shell .app-sidebar-header {
  display: none;
}

body.clinician-shell .app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

body.clinician-shell .app-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-shell .app-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-shell .app-sidebar-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.75rem 0 0.6rem;
  border-radius: 999px;
}

body.clinician-shell .app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 600;
}

body.clinician-shell .app-sidebar-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

body.clinician-shell .app-sidebar-icon svg {
  width: 20px;
  height: 20px;
}

body.clinician-shell .app-sidebar-link:hover {
  background: #eef2ff;
  color: #1f2937;
}

body.clinician-shell .app-sidebar-link--active {
  background: linear-gradient(135deg, #5b8dff, #3b6df4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(59, 96, 246, 0.25);
}

body.clinician-shell .app-sidebar-dot {
  display: none;
}

body.clinician-shell .app-sidebar-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.clinician-shell .app-sidebar-badge.is-hidden {
  display: none;
}

body.clinician-shell .app-content {
  margin-left: 240px;
  padding: 2.1rem 2.75rem 3rem;
  width: calc(100% - 240px);
  min-width: 0;
}

body.clinician-cohort-page .app-sidebar {
  display: none;
}

body.clinician-cohort-page .app-content {
  margin-left: 0;
  width: 100%;
}

body.clinician-cohort-page .clinician-placement-card {
  max-width: 720px;
  margin: 1.5rem auto 0;
}

body.clinician-shell .clinician-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

body.clinician-shell .clinician-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #94a3b8;
}

body.clinician-shell .clinician-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 1.4rem 0 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e2e8f0;
}

body.clinician-shell .clinician-placement-card {
  margin: 1rem 0 1.6rem;
}

body.clinician-shell .clinician-placement-card .selectors-row {
  margin-top: 0.6rem;
}

body.clinician-shell .placement-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

body.clinician-shell .placement-actions .schedule-status-text {
  margin-left: 0;
}

body.clinician-shell .clinician-tab {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}

body.clinician-shell .clinician-tab.is-active {
  color: #1f2937;
  border-bottom-color: #4f6ef7;
}

body.clinician-shell .clinician-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 1.6rem;
  align-items: start;
}

body.clinician-shell .clinician-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

body.clinician-shell .toolbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.95rem;
}

body.clinician-shell .toolbar-search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  color: #475569;
}

body.clinician-shell .toolbar-search input:focus {
  outline: none;
}

body.clinician-shell .toolbar-actions {
  display: flex;
  gap: 0.6rem;
}

body.clinician-shell .cohort-switcher {
  position: relative;
  margin-left: 0.9rem;
}

body.clinician-shell .cohort-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #dbe3ff;
  background: #f8fafc;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

body.clinician-shell .cohort-switcher-label {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.clinician-shell .cohort-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8ff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 0.4rem;
  display: none;
  z-index: 200;
}

body.clinician-shell .cohort-switcher-menu.is-open {
  display: block;
}

body.clinician-shell .cohort-switcher-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  color: #1f2937;
  font-size: 0.85rem;
}

body.clinician-shell .cohort-switcher-item:hover,
body.clinician-shell .cohort-switcher-item.is-active {
  background: #eef2ff;
}

body.clinician-shell .cohort-switcher-item span {
  color: #64748b;
  font-size: 0.75rem;
}

body.clinician-shell .cohort-switcher-empty {
  padding: 0.6rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.clinician-shell .cohort-switcher-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.35rem 0.4rem;
}

body.clinician-shell .cohort-switcher-action {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
}

body.clinician-shell .cohort-switcher-action:hover {
  background: #eef2ff;
}

body.clinician-shell.context-empty .clinician-context-content {
  display: none;
}

body.clinician-shell .cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

body.clinician-shell .cohort-card {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid #e2e8ff;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.clinician-shell .cohort-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

body.clinician-shell .cohort-card .selectors-row {
  gap: 0.75rem;
}

body.clinician-shell .cohort-card input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

body.clinician-shell .cohort-status-row {
  margin-top: 0.6rem;
}

body.clinician-shell .cohort-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.clinician-shell .cohort-list-item {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8ff;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.clinician-shell .cohort-list-item.is-active {
  border-color: #93c5fd;
  background: #f0f7ff;
}

body.clinician-shell .cohort-list-item-title {
  font-weight: 600;
}

body.clinician-shell .cohort-list-item-meta {
  font-size: 0.8rem;
  color: #64748b;
}

body.clinician-shell .cohort-list-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

body.clinician-shell .cohort-join-code {
  font-size: 0.75rem;
  color: #64748b;
}

body.clinician-shell .cohort-list-empty {
  color: #94a3b8;
  font-size: 0.85rem;
}

body.clinician-shell .roster-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

body.clinician-shell .roster-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

body.clinician-shell .roster-toggle-btn.is-active {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

body.clinician-shell .panel-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1ff;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.clinician-shell .panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

body.clinician-shell .panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

body.clinician-shell .panel-subtitle {
  margin: 0.3rem 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

body.clinician-shell .panel-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

body.clinician-shell .panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.clinician-shell .panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
}

body.clinician-shell .panel-link:hover {
  text-decoration: underline;
}

body.clinician-shell .panel-button {
  margin-top: 0.5rem;
}

body.clinician-shell .pending-actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: #64748b;
  font-size: 0.9rem;
}

body.clinician-shell .pending-actions-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.clinician-shell .pending-actions-count {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #eef2ff;
  color: #1d4ed8;
}

body.clinician-shell .student-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.clinician-shell .student-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid #edf1ff;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.clinician-shell .student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 600;
}

body.clinician-shell .student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.clinician-shell .student-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.clinician-shell .student-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

body.clinician-shell .student-email {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

body.clinician-shell .student-details {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

body.clinician-shell .student-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

body.clinician-shell .student-statuses {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

body.clinician-shell .student-supervisor-control {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

body.clinician-shell .student-supervisor-control label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #94a3b8;
}

body.clinician-shell .student-supervisor-select {
  min-width: 190px;
  padding: 0.35rem 2rem 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background-color: #ffffff;
  font-size: 0.85rem;
  color: #1f2937;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    right 0.9rem center,
    right 0.5rem center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

body.clinician-shell .student-supervisor-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f8fafc;
}

body.clinician-shell .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

body.clinician-shell .status-pill--ok {
  background: #dcfce7;
  color: #15803d;
}

body.clinician-shell .status-pill--warn {
  background: #ffedd5;
  color: #c2410c;
}

body.clinician-shell .status-pill--neutral {
  background: #e2e8f0;
  color: #475569;
}

body.clinician-shell .status-pill--archived {
  background: #f1f5f9;
  color: #64748b;
}

body.clinician-shell .student-action {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  background: #f5f7ff;
  border: 1px solid #c7d2fe;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

body.clinician-shell .student-action:hover {
  background: #eaf0ff;
}

body.clinician-shell .dash-event-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.clinician-shell .notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

body.clinician-shell .notice-item {
  border-bottom: none;
  padding: 0;
}

body.clinician-shell .notice-header {
  align-items: flex-start;
}

body.clinician-shell .notice-meta-small {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

body.clinician-shell .notice-body {
  color: #475569;
  font-size: 0.9rem;
}

body.clinician-shell .notice-actions-row {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

body.clinician-shell .notice-actions-row .link-button {
  font-size: 0.85rem;
}

body.clinician-page--students .notice-actions-row {
  display: none;
}

body.clinician-shell .clinician-hidden-controls {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============= CLINICIAN STUDENTS REFRESH ============= */
body.clinician-page--students .clinician-tabs {
  display: none;
}

body.clinician-page--students .clinician-header {
  margin-bottom: 1.4rem;
}

body.clinician-page--students .clinician-header h1 {
  font-size: 1.9rem;
  font-weight: 600;
}

body.clinician-page--students .clinician-subtitle {
  color: #8b95b2;
}

body.clinician-page--students .clinician-grid {
  grid-template-columns: 1fr;
}

body.clinician-page--students .clinician-main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}

body.clinician-page--students .clinician-digest-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: 26px;
  border: 1px solid #dfe6fb;
  background:
    radial-gradient(circle at top right, rgba(91, 141, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7ff 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

body.clinician-page--students .clinician-digest-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 109, 244, 0.28), rgba(59, 109, 244, 0));
}

body.clinician-page--students .clinician-digest-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}

body.clinician-page--students .clinician-digest-kicker {
  margin: 0 0 0.28rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6b96;
}

body.clinician-page--students .clinician-digest-header h3 {
  margin: 0;
  font-size: 1.52rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #14213d;
}

body.clinician-page--students .clinician-digest-range {
  margin: 0.38rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5f6f95;
}

body.clinician-page--students .clinician-digest-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.7rem;
}

body.clinician-page--students .clinician-digest-actions .btn {
  min-width: 0;
  box-shadow: none;
}

body.clinician-page--students .clinician-digest-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

body.clinician-page--students .clinician-digest-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-height: 124px;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(224, 231, 255, 0.95);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

body.clinician-page--students .clinician-digest-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 22px 0 0 22px;
  background: #9db7ff;
}

body.clinician-page--students .clinician-digest-metric--forms::before {
  background: linear-gradient(180deg, #4f7ef7 0%, #85a6ff 100%);
}

body.clinician-page--students .clinician-digest-metric--absence::before {
  background: linear-gradient(180deg, #f59e0b 0%, #f8c56a 100%);
}

body.clinician-page--students .clinician-digest-metric--missed::before {
  background: linear-gradient(180deg, #ef4444 0%, #f79a9a 100%);
}

body.clinician-page--students .clinician-digest-metric-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7080a5;
}

body.clinician-page--students .clinician-digest-metric-value {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #172554;
}

body.clinician-page--students .clinician-digest-metric-meta {
  font-size: 0.94rem;
  line-height: 1.45;
  color: #5f6f95;
}

body.clinician-page--students .clinician-digest-stream {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

body.clinician-page--students .clinician-digest-column {
  min-width: 0;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(224, 231, 255, 0.95);
  background: rgba(255, 255, 255, 0.9);
}

body.clinician-page--students .clinician-digest-column-head {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-bottom: 0.8rem;
}

body.clinician-page--students .clinician-digest-column-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e2b4d;
}

body.clinician-page--students .clinician-digest-column-hint {
  font-size: 0.84rem;
  color: #7c8aab;
}

body.clinician-page--students .clinician-digest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.clinician-page--students .clinician-digest-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.82rem 0.9rem;
  border-radius: 18px;
  border: 1px solid #e5eafc;
  background: #ffffff;
}

body.clinician-page--students .clinician-digest-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-decoration: none;
  color: inherit;
}

body.clinician-page--students a.clinician-digest-item-main:hover .clinician-digest-item-title {
  color: #2557d6;
}

body.clinician-page--students .clinician-digest-item-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: #1f2d52;
}

body.clinician-page--students .clinician-digest-item-meta {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #6d7b9c;
}

body.clinician-page--students .clinician-digest-item-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.clinician-page--students .clinician-digest-item-badge--forms {
  background: #e9f0ff;
  color: #2f63de;
}

body.clinician-page--students .clinician-digest-item-badge--absence {
  background: #fff2de;
  color: #c76d0a;
}

body.clinician-page--students .clinician-digest-item-badge--missed {
  background: #fde7e7;
  color: #cf3636;
}

body.clinician-page--students .clinician-digest-empty {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px dashed #d8e1ff;
  background: rgba(255, 255, 255, 0.72);
  color: #8a95b1;
  font-size: 0.9rem;
}

/* Failed-fetch state — must read as an error, never as an empty list. */
.clinician-load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid #f3c6c6;
  background: #fdf1f1;
  color: #9f1f1f;
  font-size: 0.92rem;
  list-style: none;
}

.clinician-load-error-text {
  flex: 1;
  min-width: 0;
}

.clinician-load-error-retry {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid #cf3636;
  border-radius: 12px;
  background: #ffffff;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.clinician-load-error-retry:hover {
  background: #fde7e7;
}

.clinician-load-error-retry:focus-visible {
  outline: 2px solid #b42318;
  outline-offset: 2px;
}

body.clinician-page--students .clinician-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  border: 1px solid #e4e9ff;
  background: linear-gradient(135deg, #f6f7ff 0%, #ffffff 70%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body.clinician-page--students .toolbar-search {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #dbe3ff;
  padding: 0.65rem 0.95rem;
}

body.clinician-page--students .toolbar-search span {
  color: #94a3b8;
}

body.clinician-page--students .toolbar-actions {
  justify-content: flex-start;
}

body.clinician-page--students .roster-toggle {
  background: transparent;
  border: none;
  padding: 0;
  gap: 1.6rem;
}

body.clinician-page--students .roster-toggle-btn {
  padding: 0.2rem 0;
  border-radius: 0;
  font-size: 0.95rem;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
}

body.clinician-page--students .roster-toggle-btn.is-active {
  background: transparent;
  color: #1f2937;
  border-bottom-color: #3b6df4;
  box-shadow: none;
}

body.clinician-page--students .student-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.3rem;
  align-items: stretch;
}

body.clinician-page--students .student-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f7ff 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid #edf1ff;
  min-width: 0;
  height: 100%;
}

body.clinician-page--students .student-card.is-archived {
  opacity: 0.7;
  background: #f8fafc;
}

body.clinician-page--students .student-avatar {
  width: 54px;
  height: 54px;
  background: #eef2ff;
  color: #4f6ef7;
}

body.clinician-page--students .student-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  min-width: 0;
}

body.clinician-page--students .student-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

body.clinician-page--students .student-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  word-break: break-word;
}

body.clinician-page--students .student-status-badge {
  margin-left: auto;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

body.clinician-page--students .student-status-badge--active {
  background: #dcfce7;
  color: #15803d;
}

body.clinician-page--students .student-status-badge--ending {
  background: #ffedd5;
  color: #c2410c;
}

body.clinician-page--students .student-status-badge--archived {
  background: #e2e8f0;
  color: #64748b;
}

body.clinician-page--students .student-card-body {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e5e7ff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

body.clinician-page--students .student-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  color: #475569;
  font-size: 0.92rem;
  min-width: 0;
}

body.clinician-page--students .student-label {
  font-weight: 500;
  color: #1f2937;
}

body.clinician-page--students .student-preview {
  flex: 1;
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.clinician-page--students .student-induction-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

body.clinician-page--students .student-induction-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

body.clinician-page--students .student-induction-status.is-pending {
  color: #b91c1c;
}

body.clinician-page--students .student-induction-status.is-optional {
  color: #64748b;
}

body.clinician-page--students .student-induction-status.is-optional::before {
  background: #94a3b8;
}

body.clinician-page--students .student-induction-status.is-complete::before {
  background: #22c55e;
}

body.clinician-page--students .student-induction-status.is-complete {
  color: #15803d;
}

body.clinician-page--students .student-card-actions {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.clinician-page--students .student-supervisor-control {
  width: 100%;
  align-items: flex-start;
}

body.clinician-page--students .student-supervisor-select {
  width: 100%;
  min-width: 0;
}

body.clinician-page--students .student-action {
  background: #5b8dff;
  border: none;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(91, 141, 255, 0.25);
}

body.clinician-page--students .student-action:hover {
  background: #4c7df4;
}

body.clinician-page--students .student-list > li:not(.student-card) {
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px dashed #d8def7;
  background: rgba(255, 255, 255, 0.7);
  color: #94a3b8;
  text-align: center;
}

body.clinician-page--students .clinician-side,
body.clinician-page--students .induction-panel {
  display: none;
}

body.clinician-page--students .student-empty-card {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  body.clinician-page--students .clinician-digest-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.clinician-page--students .clinician-digest-stream {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.clinician-shell .app-shell {
    display: block;
  }

  body.clinician-shell .app-sidebar {
    position: sticky;
    top: var(--navbar-height);
    width: auto;
    padding: 0.7rem 1rem;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  body.clinician-shell .app-sidebar-nav {
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
  }

  body.clinician-shell .app-sidebar-link {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
  }

  body.clinician-shell .app-content {
    margin-left: 0;
    width: 100%;
    padding: 1.6rem 1.25rem 2.5rem;
  }

  body.clinician-shell .clinician-grid {
    grid-template-columns: 1fr;
  }

  body.clinician-shell .student-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  body.clinician-shell .student-actions {
    align-items: flex-start;
  }

  body.clinician-page--students .clinician-digest-header {
    flex-direction: column;
    align-items: stretch;
  }

  body.clinician-page--students .clinician-digest-actions {
    justify-content: flex-start;
  }

  body.clinician-page--students .clinician-digest-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.clinician-shell .app-sidebar {
    display: none;
  }

  body.clinician-shell .app-content {
    margin-left: 0;
    width: 100%;
    padding: 1.35rem 1rem 6.5rem;
  }

  body.clinician-shell .mobile-nav,
  body.clinician-shell .mobile-more-panel {
    display: flex;
  }

  body.clinician-shell .bug-report-fab {
    display: none;
  }

  body.clinician-page--students .clinician-digest-card {
    padding: 1.1rem;
    border-radius: 22px;
  }

  body.clinician-page--students .clinician-digest-header h3 {
    font-size: 1.32rem;
  }

  body.clinician-page--students .clinician-digest-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.clinician-page--students .clinician-digest-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.app-dashboard .navbar,
  body.clinician-shell .navbar {
    height: auto;
    min-height: var(--navbar-height);
  }

  body.app-dashboard .navbar-app .nav-container,
  body.clinician-shell .nav-container {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem 0.9rem;
  }

  body.app-dashboard .nav-logo,
  body.clinician-shell .nav-logo {
    margin-left: 0;
    gap: 0;
    min-width: auto;
    flex: 0 0 auto;
    order: 1;
  }

  body.app-dashboard .nav-logo-text,
  body.clinician-shell .nav-logo-text {
    display: none;
  }

  body.app-dashboard .nav-logo-mark,
  body.clinician-shell .nav-logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  body.app-dashboard .nav-links,
  body.clinician-shell .nav-links {
    order: 2;
    margin-left: auto;
    margin-right: 0;
    padding-left: 0;
    border-left: none;
    gap: 0.35rem;
    align-items: center;
    flex: 0 0 auto;
    max-width: calc(100vw - 5.4rem);
    min-width: 0;
  }

  body.app-dashboard .nav-toggle,
  body.clinician-shell .nav-toggle {
    display: none !important;
  }

  body.app-dashboard .nav-profile-avatar,
  body.clinician-shell .nav-profile-avatar {
    width: 36px;
    height: 36px;
  }

  body.app-dashboard .nav-search,
  body.clinician-shell .nav-search {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: stretch;
    position: relative;
  }

  body.app-dashboard .navbar-app .nav-links .nav-messages .dm-trigger {
    min-width: 54px;
    max-width: 58px;
    overflow: hidden;
  }

  body.app-dashboard .navbar-app .nav-links .dm-trigger-text {
    max-width: 54px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  body.app-dashboard .nav-search input,
  body.clinician-shell .nav-search input {
    width: 100%;
    min-width: 0;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    font-size: 0.95rem;
  }

  body.app-dashboard .nav-search-results {
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    top: calc(100% + 0.5rem);
  }

  body.app-dashboard .student-year-switcher {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
  }

  body.app-dashboard .student-year-switcher-status,
  body.app-dashboard .student-year-switcher-back {
    min-height: 32px;
  }

  body.app-dashboard .student-year-switcher-trigger {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
  }

  body.app-dashboard .student-year-switcher-label {
    max-width: none;
  }

  body.app-dashboard .student-year-switcher-menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }

  body.clinician-shell .cohort-switcher {
    order: 4;
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
  }

  body.clinician-shell .cohort-switcher-trigger {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
    padding: 0.65rem 0.9rem;
  }

  body.clinician-shell .cohort-switcher-label {
    max-width: none;
  }

  body.clinician-shell .cohort-switcher-menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }
}

/* Clinician review page */
body.clinician-review-page .review-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

body.clinician-review-page .review-breadcrumb-sep {
  color: #cbd5f5;
}

body.clinician-review-page .review-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

body.clinician-review-page .review-breadcrumb a:hover {
  color: #1d4ed8;
}

body.clinician-review-page .review-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  padding: 1.4rem 1.6rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
  border: 1px solid #edf1ff;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
}

body.clinician-review-page .review-hero-main {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

body.clinician-review-page .review-avatar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

body.clinician-review-page .review-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.clinician-review-page .review-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #64748b;
  overflow: hidden;
}

body.clinician-review-page .review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.clinician-review-page .review-year-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  font-weight: 500;
  font-size: 0.75rem;
  border: 1px solid #dbe3ff;
}

body.clinician-review-page .review-title-block h1 {
  margin-bottom: 0.25rem;
}

body.clinician-review-page .review-student-subtitle {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-weight: 500;
}

body.clinician-review-page .review-student-placement {
  margin: 0.3rem 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

body.clinician-review-page .review-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

body.clinician-review-page .review-hero-actions .btn.secondary.small {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid #dbe3ff;
  color: #2563eb;
}

body.clinician-review-page .review-hero-actions .icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f5f7ff;
  border: 1px solid #e2e8f0;
  font-size: 1.1rem;
}

body.clinician-review-page .review-overflow-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.4rem;
  min-width: 180px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  z-index: 5;
}

body.clinician-review-page .review-overflow-menu.is-open {
  display: flex;
}

body.clinician-review-page .review-overflow-menu .link-button {
  text-align: left;
}

body.clinician-review-page .review-panel {
  display: none;
}

body.clinician-review-page .review-panel.is-active {
  display: block;
}

body.clinician-review-page .review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 1.6rem;
}

body.clinician-review-page .review-column {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

body.clinician-review-page .review-tabs {
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.35rem;
  background: #eef2ff;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.4rem;
  margin-top: 1.2rem;
}

body.clinician-review-page .review-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  border-bottom: none;
  cursor: pointer;
}

body.clinician-review-page .review-tab.is-active {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #dbe3ff;
  box-shadow: 0 10px 18px rgba(59, 96, 246, 0.12);
}

body.clinician-review-page .review-summary-card .panel-header h3 {
  font-size: 1.1rem;
}

body.clinician-review-page .review-summary-grid {
  display: grid;
  gap: 1.2rem;
}

body.clinician-review-page .review-summary-section {
  padding-top: 1rem;
  border-top: 1px solid #eef2ff;
}

body.clinician-review-page .review-summary-section:first-child {
  padding-top: 0;
  border-top: none;
}

body.clinician-review-page .review-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.clinician-review-page .review-summary-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
}

body.clinician-review-page .review-summary-value {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

body.clinician-review-page .review-summary-value--accent {
  color: #1d4ed8;
}

body.clinician-review-page .review-summary-meta {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

body.clinician-review-page .review-progress {
  margin-top: 0.45rem;
}

body.clinician-review-page .review-progress .progress-bar {
  height: 10px;
}

body.clinician-review-page .review-progress-fill--success {
  background: linear-gradient(90deg, #34d399, #facc15);
}

body.clinician-review-page .review-condition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

body.clinician-review-page .review-condition-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #f1f5ff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

body.clinician-review-page .review-condition-pill--more {
  color: #2563eb;
  background: #eef2ff;
  border-color: #dbe3ff;
}

body.clinician-review-page .review-goals-card .panel-header {
  align-items: flex-start;
}

body.clinician-review-page .review-goals-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

body.clinician-review-page .review-goals-section {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

body.clinician-review-page .review-goals-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.clinician-review-page .review-goals-icon svg {
  width: 18px;
  height: 18px;
}

body.clinician-review-page .review-goals-icon--concern {
  background: #fef3c7;
  color: #d97706;
}

body.clinician-review-page .review-goals-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

body.clinician-review-page .review-goals-text {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.clinician-review-page .review-detail-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
}

body.clinician-review-page .review-detail-list div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem 0;
}

body.clinician-review-page .review-detail-list div:nth-child(n + 3) {
  border-top: 1px solid #eef2ff;
  padding-top: 0.6rem;
}

body.clinician-review-page .review-detail-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

body.clinician-review-page .review-detail-list dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.98rem;
}

body.clinician-review-page .review-week-label {
  margin-bottom: 0.8rem;
  color: #64748b;
  font-size: 0.9rem;
}

body.clinician-review-page .review-signoff-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.clinician-review-page .review-signoff-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.9rem 1.05rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.clinician-review-page .review-signoff-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body.clinician-review-page .review-signoff-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

body.clinician-review-page .review-signoff-desc {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

body.clinician-review-page .review-signoff-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

body.clinician-review-page .review-signoff-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-review-page .review-signoff-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

body.clinician-review-page .review-signoff-note {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

body.clinician-review-page .review-comment-input {
  flex: 1;
  min-width: 220px;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #0f172a;
}

body.clinician-review-page .review-comment-input:focus {
  outline: none;
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

body.clinician-review-page .review-research-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.clinician-review-page .review-research-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.clinician-review-page .review-research-item h4 {
  margin: 0;
  font-size: 1rem;
}

body.clinician-review-page .review-research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.82rem;
}

body.clinician-review-page .review-research-desc {
  margin: 0.35rem 0 0;
  color: #475569;
  font-size: 0.88rem;
}

body.clinician-review-page .review-research-status {
  margin-top: 0.3rem;
}

body.clinician-review-page .review-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

body.clinician-review-page .review-error {
  max-width: 520px;
}

@media (max-width: 900px) {
  body.clinician-review-page .review-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  body.clinician-review-page .review-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.clinician-review-page .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.clinician-review-page .review-signoff-info {
    flex-direction: column;
    align-items: flex-start;
  }

  body.clinician-review-page .review-detail-list {
    grid-template-columns: 1fr;
  }

  body.clinician-review-page .review-signoff-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.clinician-review-page .review-comment-input {
    width: 100%;
  }

  body.clinician-review-page .review-overflow-menu {
    left: 0;
    right: auto;
  }
}

/* ============= LANDING PAGE REDESIGN ============= */
body.landing-page {
  position: relative;
  background: linear-gradient(180deg, #f9fbff 0%, #eef2ff 100%);
  color: #0f172a;
}

body.landing-page .navbar-landing {
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

body.landing-page .navbar-landing .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

body.landing-page .nav-logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
}

body.landing-page .navbar-landing .nav-links {
  gap: 1.35rem;
  align-items: center;
}

body.landing-page .navbar-landing .nav-links li a {
  font-weight: 500;
  color: #334155;
}

body.landing-page .navbar-landing .nav-links li a:hover {
  background: #e8edff;
  color: #1d4ed8;
}

body.landing-page .navbar-landing .nav-links .nav-button {
  padding: 0.5rem 1.35rem;
}

.nav-mobile {
  display: none;
}

@media (max-width: 820px) {
  body.landing-page .navbar,
  body.auth-body .navbar {
    overflow: visible;
  }

  body.landing-page .navbar .nav-container,
  body.auth-body .navbar .nav-container {
    position: relative;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
  }

  body.landing-page .nav-logo,
  body.auth-body .nav-logo {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1rem;
  }

  body.landing-page .nav-links,
  body.auth-body .nav-links {
    display: none;
  }

  body.landing-page .marketing-nav-toggle,
  body.auth-body .marketing-nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
  }

  body.landing-page .marketing-nav-toggle span,
  body.auth-body .marketing-nav-toggle span {
    width: 22px;
    height: 2.5px;
    background: #334155;
  }

  body.landing-page .marketing-nav-toggle.nav-open span:nth-child(1),
  body.auth-body .marketing-nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.landing-page .marketing-nav-toggle.nav-open span:nth-child(2),
  body.auth-body .marketing-nav-toggle.nav-open span:nth-child(2) {
    opacity: 0;
  }

  body.landing-page .marketing-nav-toggle.nav-open span:nth-child(3),
  body.auth-body .marketing-nav-toggle.nav-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.landing-page .nav-mobile,
  body.auth-body .nav-mobile {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: calc(var(--safe-top) + 5.1rem) 0.75rem calc(var(--safe-bottom) + 0.75rem) 0.75rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    background: rgba(236, 242, 255, 0.46);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.landing-page .nav-mobile.is-open,
  body.auth-body .nav-mobile.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.landing-page .nav-mobile-panel,
  body.auth-body .nav-mobile-panel {
    display: flex;
    flex-direction: column;
    width: min(calc(100vw - 1.5rem), 390px);
    max-width: calc(100vw - 1.5rem);
    min-height: min(560px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 6.5rem));
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(226, 232, 255, 0.95);
    box-shadow: 0 30px 54px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    transform: translateX(18px);
    transition: transform 0.18s ease;
  }

  body.landing-page .nav-mobile.is-open .nav-mobile-panel,
  body.auth-body .nav-mobile.is-open .nav-mobile-panel {
    transform: translateX(0);
  }

  body.landing-page .nav-mobile-panel a,
  body.auth-body .nav-mobile-panel a {
    padding: 1rem 0.95rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid rgba(226, 232, 255, 0.9);
  }

  body.landing-page .nav-mobile-panel a:last-child,
  body.auth-body .nav-mobile-panel a:last-child {
    border-bottom: none;
  }

  body.landing-page .nav-mobile-button,
  body.auth-body .nav-mobile-button {
    margin-top: auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    padding: 1rem 1.25rem;
    border-bottom: none !important;
    background: linear-gradient(135deg, #7aa6ff, #3d63ff);
    color: #ffffff !important;
    box-shadow: 0 18px 30px rgba(61, 99, 255, 0.28);
    font-weight: 600;
  }

  body.landing-page,
  body.auth-body {
    overflow-x: hidden;
  }

  body.landing-page.marketing-nav-open,
  body.auth-body.marketing-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  body.landing-page .nav-mobile,
  body.auth-body .nav-mobile {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  body.landing-page .nav-mobile-panel,
  body.auth-body .nav-mobile-panel {
    width: calc(100vw - 0.8rem);
    max-width: calc(100vw - 0.8rem);
    border-radius: 28px;
  }
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(3rem, 6vh, 4.5rem) 1.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* NEW: Hero wave background */
.landing-hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.landing-hero::before {
  content: "";
  position: absolute;
  right: -200px;
  top: 12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.landing-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.landing-hero-content h1 {
  font-size: clamp(2.7rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.landing-hero-lead {
  font-size: 1.05rem;
  color: #475569;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.landing-hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.65rem;
  color: #475569;
}

.landing-hero-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.landing-hero-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2563eb;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.landing-hero-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #475569;
}

.landing-hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* NEW: Outline icon styling */
.icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  color: #2563eb;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-hero-checks .icon {
  color: #2563eb;
}

.landing-hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* NEW: Laptop mockup frame */
.laptop-frame {
  position: relative;
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
}

.laptop-frame::after {
  content: "";
  position: absolute;
  width: 85%;
  height: 28px;
  bottom: -34px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.laptop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 12px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  position: relative;
  z-index: 2;
}

.laptop-screen::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.laptop-screen .mockup-window {
  width: 100%;
  height: 100%;
  max-width: none;
  box-shadow: none;
  border-radius: 18px;
}

.laptop-base {
  position: relative;
  width: 92%;
  height: 18px;
  margin-top: -6px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-top: none;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
  z-index: 1;
}

.laptop-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: #dbe3ff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.mockup-window {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  background: #f6f8ff;
  border-radius: 26px;
  border: 1px solid #e2e8ff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
  border-bottom: 1px solid #e2e8ff;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7d2fe;
}

.mockup-address {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-left: 0.55rem;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.7rem;
  color: #64748b;
}

.mockup-brand {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.75rem;
}

.mockup-tabs {
  display: flex;
  gap: 0.65rem;
  flex: 1;
  justify-content: center;
}

.mockup-pill {
  background: #2563eb;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.6rem;
  font-weight: 500;
}

.mockup-panel {
  margin: 0 0.9rem 1rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7ff;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.mockup-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.mockup-title {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

.mockup-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.mockup-chip {
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.mockup-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.mockup-row-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.mockup-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.mockup-bar-fill {
  display: block;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: inherit;
}

.mockup-bar-fill.is-mid {
  width: 45%;
}

.mockup-bar-fill.is-low {
  width: 30%;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.mockup-tile {
  padding: 0.7rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #e5e7ff;
  border-radius: 14px;
}

.mockup-tile-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.2rem;
}

.mockup-tile-note {
  font-size: 0.68rem;
  color: #94a3b8;
}

.landing-section {
  padding: clamp(3rem, 7vh, 4.75rem) 1.5rem;
}

body.landing-page .section.full-height {
  min-height: auto;
  padding: clamp(3rem, 7vh, 4.5rem) 1.5rem;
  display: block;
}

.landing-section-alt {
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96) 0%, rgba(236, 242, 255, 0.96) 100%);
  border-top: 1px solid #e2e8ff;
  border-bottom: 1px solid #e2e8ff;
}

.real-problem-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.95) 0%, rgba(241, 245, 255, 0.95) 100%);
}

.real-problem-section::before,
.real-problem-section::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 220px;
  background: radial-gradient(circle at 10% 20%, rgba(203, 214, 255, 0.55), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.real-problem-section::before {
  top: -70px;
}

.real-problem-section::after {
  bottom: -90px;
  transform: scaleX(-1);
}

.real-problem-inner {
  position: relative;
  z-index: 1;
}

.real-problem-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.real-problem-header h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
}

.real-problem-header p {
  margin: 0;
  color: #475569;
  font-size: 1.05rem;
}

.real-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.real-problem-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #e2e8ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.real-problem-card-visual {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f1f5ff;
  border: 1px solid #e2e8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.real-problem-card-visual .icon {
  width: 28px;
  height: 28px;
}

.real-problem-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.real-problem-card p {
  margin: 0;
  color: #64748b;
}

.real-problem-transition {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: #475569;
}

.real-problem-transition strong {
  color: #1f2937;
}

.real-problem-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.real-problem-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.real-problem-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #f7f9ff;
  border: 1px solid #e2e8ff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.real-problem-feature-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.real-problem-feature-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.real-problem-preview {
  display: flex;
  justify-content: flex-end;
}

.real-problem-mockup {
  max-width: 620px;
  margin: 0;
  background: #f7f9ff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.real-problem-mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.9rem;
  font-size: 0.7rem;
  color: #64748b;
  border-bottom: 1px solid #e2e8ff;
  background: #f8faff;
}

.real-problem-mockup-tabs {
  color: #64748b;
}

.real-problem-mockup-search {
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.62rem;
  color: #64748b;
  white-space: nowrap;
  margin-left: auto;
}

.real-problem-mockup-body {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.real-problem-mockup-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8ff;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.real-problem-mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c7d2fe, #93c5fd);
}

.real-problem-mockup-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2937;
}

.real-problem-mockup-meta {
  font-size: 0.65rem;
  color: #64748b;
}

.real-problem-mockup-chip {
  background: #e0e7ff;
  color: #1d4ed8;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.real-problem-mockup-list {
  display: grid;
  gap: 0.5rem;
}

.real-problem-mockup-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8ff;
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
}

.real-problem-mockup-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7d2fe;
}

.real-problem-mockup-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
}

.real-problem-mockup-pill {
  height: 16px;
  width: 36px;
  border-radius: 999px;
  background: #e0e7ff;
}

.landing-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section-lead {
  color: #475569;
  margin: 0.6rem 0 1.75rem;
  max-width: 38rem;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.landing-feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.landing-feature-pill {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #f5f7ff;
  border: 1px solid #e2e8ff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.landing-feature-pill h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.landing-feature-pill p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}

.pill-icon::after {
  content: none;
}

.pill-icon .icon {
  width: 18px;
  height: 18px;
}

.mockup-secondary {
  max-width: 520px;
}

.mockup-list {
  display: grid;
  gap: 0.5rem;
}

.mockup-list-item {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
}

.mockup-list-item.short {
  width: 60%;
}

.mockup-panel-slim {
  padding: 0.85rem 1rem;
}

.landing-clinician {
  background: linear-gradient(180deg, #f5f7ff 0%, #eef2ff 100%);
  border-top: 1px solid #e2e8ff;
  border-bottom: 1px solid #e2e8ff;
}

.landing-section-header {
  max-width: 640px;
}

.landing-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.landing-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid #e2e8ff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.landing-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  color: #2563eb;
  margin-bottom: 0.8rem;
}

.landing-card-icon::after {
  content: none;
}

.landing-card-icon .icon {
  width: 20px;
  height: 20px;
}

.landing-card h3 {
  margin-top: 0;
}

.landing-card p {
  margin-bottom: 0;
  color: #64748b;
}

.landing-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.landing-pricing {
  padding-bottom: 5rem;
}

.landing-pricing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
  gap: 2.5rem;
  align-items: center;
}

.landing-pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid #e2e8ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.landing-pricing-card h3 {
  margin-top: 0;
}

.landing-pricing-card p {
  color: #64748b;
}

@media (max-width: 960px) {
  .landing-hero-inner,
  .landing-split,
  .landing-pricing-inner {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding-top: 5rem;
  }

  .landing-hero-visual {
    justify-content: flex-start;
  }

  .landing-cta {
    justify-content: flex-start;
  }

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

  .real-problem-card:last-child {
    grid-column: 1 / -1;
  }

  .real-problem-feature {
    grid-template-columns: 1fr;
  }

  .real-problem-preview {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .mockup-tabs {
    display: none;
  }

  .real-problem-grid {
    grid-template-columns: 1fr;
  }

  .real-problem-card:last-child {
    grid-column: auto;
  }

  .real-problem-feature {
    gap: 1.5rem;
  }

  .real-problem-mockup {
    max-width: 100%;
  }

  .landing-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Induction workflow */
.badge-neutral {
  background: #e2e8f0;
  color: #475569;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #ffedd5;
  color: #c2410c;
}

.badge-archived {
  background: #f1f5f9;
  color: #64748b;
}

body.app-dashboard .placement-induction {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

body.app-dashboard .placement-induction-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.app-dashboard .placement-induction-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

body.app-dashboard .placement-induction-copy {
  margin: 0.2rem 0 0;
  color: #475569;
  font-size: 0.9rem;
}

body.app-dashboard .placement-induction-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.app-dashboard .placement-induction-block {
  margin-top: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.85rem;
}

body.app-dashboard .induction-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-dashboard .induction-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

body.app-dashboard .induction-modal {
  position: relative;
  width: min(860px, 92vw);
  height: min(720px, 90vh);
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

body.app-dashboard .induction-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.app-dashboard .induction-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

body.app-dashboard .induction-header p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

body.app-dashboard .induction-step {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
  transition: opacity 240ms ease, transform 240ms ease;
  opacity: 1;
  transform: translateY(0);
}

body.app-dashboard .induction-step.is-transitioning {
  opacity: 0;
  transform: translateY(8px);
}

body.app-dashboard .induction-step h3 {
  margin-top: 0;
}

body.app-dashboard .induction-helper {
  margin: 0.35rem 0 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

body.app-dashboard .induction-options {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

body.app-dashboard .induction-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  color: #1f2937;
}

body.app-dashboard .induction-option input {
  accent-color: #3b82f6;
}

body.app-dashboard .induction-option.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.app-dashboard .induction-checklist {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.app-dashboard .induction-checklist li {
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
}

body.app-dashboard .induction-ack {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #1f2937;
}

body.app-dashboard .induction-input,
body.app-dashboard .induction-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.95rem;
  color: #1f2937;
}

body.app-dashboard .induction-textarea {
  min-height: 140px;
  resize: vertical;
}

body.app-dashboard .induction-field-error {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #b91c1c;
  display: none;
}

body.app-dashboard .induction-field-error.is-visible {
  display: block;
}

body.app-dashboard .induction-status {
  padding: 0 1.4rem 0.4rem;
  min-height: 1.2rem;
  color: #b91c1c;
  font-size: 0.85rem;
}

body.app-dashboard .induction-status.is-success {
  color: #15803d;
}

body.app-dashboard .induction-nav {
  padding: 0.8rem 1.4rem 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.app-dashboard .induction-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

body.app-dashboard .induction-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

body.app-dashboard .induction-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 240ms ease;
}

@media (max-width: 720px) {
  body.app-dashboard .placement-induction-main {
    flex-direction: column;
    align-items: flex-start;
  }

  body.app-dashboard .induction-modal {
    height: 92vh;
  }

  body.app-dashboard .induction-nav {
    flex-direction: column;
    align-items: stretch;
  }

  body.app-dashboard .induction-progress {
    align-items: flex-start;
  }
}

/* Clinician induction responses */
body.clinician-shell .induction-panel {
  margin-top: 1.6rem;
}

body.clinician-shell .induction-panel .panel-header {
  align-items: center;
}

body.clinician-shell .induction-search {
  max-width: 260px;
}

body.clinician-shell .induction-table tbody tr {
  cursor: pointer;
}

body.clinician-shell .induction-table tbody tr:hover {
  background: #eef2ff;
}

body.clinician-shell .induction-student {
  font-weight: 600;
  color: #0f172a;
}

body.clinician-shell .induction-email {
  font-size: 0.85rem;
  color: #94a3b8;
}

body.clinician-shell .induction-empty {
  text-align: center;
  color: #94a3b8;
}

body.clinician-shell .induction-drawer {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  justify-content: flex-end;
}

body.clinician-shell .induction-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

body.clinician-shell .induction-drawer-panel {
  position: relative;
  width: min(520px, 92vw);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -16px 0 36px rgba(15, 23, 42, 0.2);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

body.clinician-shell .induction-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e2e8f0;
}

body.clinician-shell .induction-drawer-body {
  padding-top: 0.9rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.clinician-shell .induction-detail h4 {
  margin: 0 0 0.35rem 0;
  font-size: 0.9rem;
  color: #0f172a;
}

body.clinician-shell .induction-detail p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

body.clinician-shell .induction-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Student Today page refresh */
body.app-dashboard {
  --today-bg: #f3f6fb;
  --today-surface: #ffffff;
  --today-border: #dbe3ee;
  --today-text: #111b2f;
  --today-muted: #5c697f;
  --today-primary: #315fcf;
  --today-radius: 12px;
  --today-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.04);
}

body.app-dashboard .nav-user-meta {
  display: none;
}

body.app-dashboard .nav-user-email {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  color: #64748b;
  white-space: nowrap;
}

body.app-dashboard .nav-links .nav-messages {
  display: inline-flex;
}

body.app-dashboard .nav-links .nav-messages .dm-trigger {
  width: auto;
  height: auto;
  padding: 0.2rem;
  justify-content: center;
  border-radius: 0;
  color: #64748b;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.app-dashboard .nav-links .nav-messages .dm-trigger:hover {
  background: transparent;
  color: #475569;
}

body.app-dashboard .today-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 0.8rem;
}

body.app-dashboard .today-header-left {
  min-width: 0;
}

body.app-dashboard .student-year-switcher-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid transparent;
}

body.app-dashboard .student-year-switcher-status--current {
  background: #eef6ff;
  border-color: #c7dbff;
  color: #1d4ed8;
}

body.app-dashboard .student-year-switcher-status--archived {
  background: #f8fafc;
  border-color: #dbe2ea;
  color: #475569;
}

body.app-dashboard .student-year-switcher-status--upcoming {
  background: #f6f8ff;
  border-color: #d9e2ff;
  color: #4338ca;
}

body.app-dashboard .student-year-switcher-back {
  min-height: 34px;
  padding-inline: 0.9rem;
  border-radius: 999px;
}

body.app-dashboard .student-year-switcher-note {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

body.app-dashboard .student-year-switcher-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.app-dashboard .student-year-switcher-item-row .student-year-switcher-status {
  min-height: 26px;
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
}

body.app-dashboard .today-header .page-title-row {
  margin: 0;
}

body.app-dashboard .today-header .page-title-row h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.9vw, 2.7rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.024em;
  color: var(--today-text);
}

body.app-dashboard .today-header .page-placement {
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
  color: var(--today-muted);
  font-weight: 500;
}

body.app-dashboard .today-focus-standalone {
  margin-bottom: 0.88rem;
}

body.app-dashboard .today-session-standalone {
  margin-bottom: 0.88rem;
}

body.app-dashboard .today-assistant-standalone {
  margin-bottom: 0.88rem;
}

body.app-dashboard .today-card--year-empty {
  margin-bottom: 0.88rem;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

body.app-dashboard.dashboard-year-is-upcoming .today-focus-standalone,
body.app-dashboard.dashboard-year-is-upcoming .today-assistant-standalone,
body.app-dashboard.dashboard-year-is-upcoming .today-grid {
  display: none;
}

body.app-dashboard .today-mobile-header,
body.app-dashboard .today-overview-shell {
  display: none;
}

body.app-dashboard .today-hero {
  position: relative;
  border-radius: var(--today-radius);
  overflow: hidden;
  border: 1px solid var(--today-border);
  box-shadow: var(--today-shadow);
  margin: 0 0 0.88rem;
  background: var(--today-surface);
}

body.app-dashboard .today-hero-image {
  width: 100%;
  height: 248px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

body.app-dashboard .today-hero-image.today-hero-image--st-marys {
  height: 248px;
  object-position: center 24%;
}

body.app-dashboard .today-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(
    90deg,
    rgba(16, 24, 40, 0.8) 0%,
    rgba(16, 24, 40, 0.68) 55%,
    rgba(16, 24, 40, 0.54) 100%
  );
  color: #ffffff;
  backdrop-filter: blur(2px);
}

body.app-dashboard .today-hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  background: rgba(95, 126, 255, 0.78);
  color: #f8fbff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.app-dashboard .today-hero-overlay-copy h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.55vw, 1.62rem);
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.2;
}

body.app-dashboard .today-hero-overlay-copy p {
  margin: 0.18rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

body.app-dashboard .today-hero-site {
  font-weight: 600;
}

body.app-dashboard .today-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.92rem;
  min-height: 36px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.98);
  color: #1f2937;
  box-shadow: none;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

body.app-dashboard .today-hero-cta-arrow {
  font-size: 1rem;
  line-height: 1;
}

body.app-dashboard .today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(312px, 0.9fr);
  grid-template-areas:
    "status schedule"
    "notice schedule"
    "requirements requirements";
  gap: 0.88rem;
  align-items: stretch;
  border-top: 1px solid #e8edf4;
  padding-top: 0.9rem;
}

body.app-dashboard .today-card {
  border-radius: var(--today-radius);
  padding: 1rem;
  border: 1px solid var(--today-border);
  box-shadow: var(--today-shadow);
  background: var(--today-surface);
  height: 100%;
}

body.app-dashboard .today-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.56rem;
  border-bottom: 1px solid #ecf0f6;
}

body.app-dashboard .today-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

body.app-dashboard .today-card-title h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  color: var(--today-text);
}

body.app-dashboard .today-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf2fb;
  color: #3f5fa7;
  flex-shrink: 0;
}

body.app-dashboard .today-card-icon svg {
  width: 17px;
  height: 17px;
}

body.app-dashboard .today-card-icon--status {
  background: #e9f0ff;
  color: #2f62c6;
}

body.app-dashboard .today-card-icon--schedule {
  background: #edf2fb;
  color: #375baf;
}

body.app-dashboard .today-card-icon--focus {
  background: #f6f1df;
  color: #8b6b28;
}

body.app-dashboard .today-card-icon--notice {
  background: #eef3ff;
  color: #2b5fbb;
}

body.app-dashboard .today-card-icon--requirements {
  background: #edf6ef;
  color: #2e7d44;
}

body.app-dashboard .today-card-icon--assistant {
  background: #f6f1df;
  color: #8b6b28;
}

body.app-dashboard .today-card-icon--session {
  background: #edf3fb;
  color: #355aa8;
}

body.app-dashboard .today-card--focus {
  background: #fcfdfc;
  border-left: 3px solid #e3e8f3;
}

body.app-dashboard .today-card--assistant {
  border-left: 3px solid #e3cf95;
  background: linear-gradient(180deg, #fffdf7 0%, #fff9ee 100%);
}

body.app-dashboard .today-card--session {
  border-left: 3px solid #d6e0f3;
  background: #ffffff;
}

body.app-dashboard .today-card--session.is-upcoming {
  border-left-color: #c6d7f6;
}

body.app-dashboard .today-card--session.is-live {
  border-left-color: #86b6d8;
}

body.app-dashboard .today-card--session.is-recent {
  border-left-color: #cfd6e4;
}

body.app-dashboard .today-session-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d8e3f7;
  background: #f7faff;
  color: #284d8e;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.app-dashboard .today-session-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

body.app-dashboard .today-session-state--live {
  border-color: #c7dff1;
  background: #eef7fd;
  color: #1f6288;
}

body.app-dashboard .today-session-state--recent {
  border-color: #dde4ef;
  background: #f8fafc;
  color: #4f6178;
}

body.app-dashboard .today-session-heading {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-bottom: 0.48rem;
}

body.app-dashboard .today-session-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.22;
  color: #13233c;
}

body.app-dashboard .today-session-meta {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #66768c;
}

body.app-dashboard .today-session-timing {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6b7d96;
}

body.app-dashboard .today-session-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d8e3f7;
  border-radius: 999px;
  background: #ffffff;
  color: #6f829e;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

body.app-dashboard .today-session-dismiss:hover,
body.app-dashboard .today-session-dismiss:focus-visible {
  border-color: #b8caea;
  color: #284d8e;
  background: #f7faff;
  outline: none;
}

body.app-dashboard .today-assistant-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1f2d44;
  font-weight: 500;
}

body.app-dashboard .today-assistant-priority {
  margin: 0.46rem 0 0;
  padding: 0.5rem 0.62rem;
  border-radius: 10px;
  border: 1px solid #dce6f7;
  background: #f8fbff;
  color: #173a78;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

body.app-dashboard .today-card--assistant .today-assistant-priority {
  border-color: #eadbb7;
  background: #fff6e2;
  color: #7c5818;
}

body.app-dashboard .today-assistant-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #eadbb7;
  background: #fff7e7;
  color: #8a6522;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard .today-assistant-sections {
  margin-top: 0.66rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.7rem;
}

body.app-dashboard .today-assistant-section {
  min-width: 0;
}

body.app-dashboard .today-assistant-section-title {
  margin: 0 0 0.34rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7d95;
}

body.app-dashboard .today-card--assistant .today-assistant-section-title {
  color: #8a7854;
}

body.app-dashboard .today-assistant-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

body.app-dashboard .today-assistant-list li {
  position: relative;
  margin: 0;
  padding-left: 0.74rem;
  color: #334155;
  font-size: 0.87rem;
  line-height: 1.36;
}

body.app-dashboard .today-assistant-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #6b84b8;
}

body.app-dashboard .today-card--assistant .today-assistant-list li::before {
  background: #b38a3a;
}

body.app-dashboard .today-assistant-list--alerts li {
  color: #7a4b17;
}

body.app-dashboard .today-assistant-list--alerts li::before {
  background: #b87921;
}

body.app-dashboard .today-assistant-actions {
  margin-top: 0.72rem;
  padding-top: 0.58rem;
  border-top: 1px solid #ecf0f6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

body.app-dashboard .today-card--assistant .today-assistant-actions {
  border-top-color: #efe5d0;
}

body.app-dashboard .today-assistant-actions .btn {
  min-height: 32px;
  padding: 0.3rem 0.72rem;
  border-radius: 9px;
  font-size: 0.78rem;
  box-shadow: none;
}

body.app-dashboard .today-card--status { grid-area: status; }
body.app-dashboard .today-card--notice { grid-area: notice; }
body.app-dashboard .today-card--schedule { grid-area: schedule; }
body.app-dashboard .today-card--requirements { grid-area: requirements; }

body.app-dashboard .today-progress-group + .today-progress-group {
  margin-top: 0.88rem;
  padding-top: 0.72rem;
  border-top: 1px solid #edf1f6;
}

body.app-dashboard .today-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.72rem;
  margin-bottom: 0.34rem;
}

body.app-dashboard .today-progress-label {
  font-size: 0.99rem;
  font-weight: 500;
  color: #1f2937;
}

body.app-dashboard .today-progress-value {
  font-size: 0.88rem;
  color: #5f6c80;
  font-weight: 500;
  text-align: right;
}

body.app-dashboard .today-card--status .dashboard-forms-progress {
  margin-top: 0.2rem;
}

body.app-dashboard .today-card--status .dashboard-progress-sub {
  display: none;
}

body.app-dashboard .today-card--status .placement-induction {
  margin-top: 0.88rem;
  padding: 0.68rem 0.82rem;
  border-radius: 10px;
  border: 1px solid #e4e9f3;
  border-left: 3px solid #94a3b8;
  background: #f8fafd;
}

body.app-dashboard .today-card--status .placement-induction:has(#induction-status-badge.badge-success) {
  background: #f3fbf5;
  border-color: #cfe8d5;
  border-left-color: #4b9b69;
}

body.app-dashboard .today-card--status .badge-neutral {
  background: #e9edf3;
  color: #4a5a72;
}

body.app-dashboard .today-card--status .badge-warning {
  background: #f6ebd8;
  color: #8a5b16;
}

body.app-dashboard .today-card--status .badge-success {
  background: #deefe3;
  color: #2f6f43;
}

body.app-dashboard .today-notice-body {
  display: block;
}

body.app-dashboard .today-notice-time {
  display: inline-flex;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #7a879c;
  font-weight: 500;
}

body.app-dashboard .today-card--notice .dashboard-notice-title {
  font-size: 1.06rem;
  line-height: 1.28;
}

body.app-dashboard .today-card--notice .dashboard-notice-body {
  font-size: 0.93rem;
  line-height: 1.45;
  color: #4f5f77;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.app-dashboard .today-card--schedule .today-schedule-header {
  margin-bottom: 0.5rem;
}

body.app-dashboard .today-card--schedule .today-schedule-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.15;
}

body.app-dashboard .today-card--schedule .today-schedule-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: #607086;
}

body.app-dashboard .today-card--schedule .dash-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  margin-top: 0.22rem;
}

body.app-dashboard .today-card--schedule .dash-event-item {
  margin: 0;
}

body.app-dashboard .today-card--schedule .dash-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0.74rem;
  padding: 0.62rem 0.74rem 0.62rem 0.9rem;
  border-radius: 10px;
  background: #fbfcff;
  border: 1px solid #e3e9f2;
}

body.app-dashboard .today-card--schedule .dash-event-card::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.56rem;
  bottom: 0.56rem;
  width: 2px;
  border-radius: 999px;
  background: #a6bddf;
}

body.app-dashboard .today-card--schedule .dash-event-time {
  font-size: 0.92rem;
  font-weight: 500;
  color: #1b2b46;
  letter-spacing: 0;
}

body.app-dashboard .today-card--schedule .dash-event-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

body.app-dashboard .today-card--schedule .dash-event-meta {
  margin-top: 0.16rem;
  font-size: 0.85rem;
  color: #64748b;
}

body.app-dashboard .today-card--schedule .dash-event-chips {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

body.app-dashboard .today-card--schedule .dash-event-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.44rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 500;
  background: #ebf1ff;
  color: #2e56a2;
  border: 1px solid #d7e2f5;
}

body.app-dashboard .today-card--schedule .dash-event-chip--type {
  background: #f2f4f8;
  color: #4f607a;
  border-color: #e3e8f0;
  font-weight: 500;
  text-transform: capitalize;
}

body.app-dashboard .today-card--schedule .today-schedule-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.62rem;
  padding-top: 0.55rem;
  border-top: 1px solid #ecf0f6;
}

body.app-dashboard .today-card--schedule .today-schedule-link {
  padding: 0.3rem 0.78rem;
  font-size: 0.76rem;
  box-shadow: none;
}

body.app-dashboard .today-card--schedule .dash-event-empty {
  padding: 0.64rem 0.72rem;
  border-radius: 10px;
  border: 1px solid #e3e9f2;
  background: #f8fafd;
}

body.app-dashboard .today-card--schedule .dash-event-empty-title {
  font-weight: 600;
}

body.app-dashboard .today-card--schedule .dash-event-empty-subtitle {
  font-size: 0.84rem;
  color: #94a3b8;
}

body.app-dashboard .today-card--requirements .requirements-list {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.app-dashboard .today-card--requirements .requirements-item {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  font-size: 0.9rem;
  color: #4f5f76;
  line-height: 1.35;
}

body.app-dashboard .today-card--requirements .requirements-item--interactive {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.app-dashboard .today-card--requirements .requirements-item--interactive.is-completing {
  opacity: 0;
  transform: translateY(5px);
}

body.app-dashboard .today-card--requirements .requirements-item input {
  width: 16px;
  height: 16px;
  accent-color: #4f6ef7;
}

@media (max-width: 1240px) {
  body.app-dashboard .nav-user-email {
    display: none;
  }
}

@media (max-width: 1100px) {
  body.app-dashboard .today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "status schedule"
      "notice notice"
      "requirements requirements";
  }
}

@media (max-width: 960px) {
  body.app-dashboard .today-hero-image,
  body.app-dashboard .today-hero-image.today-hero-image--st-marys {
    height: 240px;
  }

  body.app-dashboard .today-hero-overlay {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  body.app-dashboard .today-assistant-sections {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-dashboard .today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "status notice"
      "schedule schedule"
      "requirements requirements";
  }

  body.app-dashboard .today-card--status { grid-column: auto; }
  body.app-dashboard .today-card--notice { grid-column: auto; }
  body.app-dashboard .today-card--schedule,
  body.app-dashboard .today-card--requirements { grid-column: 1 / -1; }

  body.app-dashboard .today-card-title h3,
  body.app-dashboard .today-card--schedule .today-schedule-title {
    font-size: 1rem;
  }

  body.app-dashboard .today-progress-label {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  body.app-dashboard .app-shell {
    display: block;
  }

  body.app-dashboard .app-sidebar {
    display: none;
  }

  body.app-dashboard .app-content {
    margin-left: 0;
    width: 100%;
    padding: 1.25rem 1.1rem 6.5rem;
  }

  body.app-dashboard .app-inner {
    max-width: 100%;
  }

  body.app-dashboard .nav-search {
    display: flex;
  }

  body.app-dashboard .mobile-nav,
  body.app-dashboard .mobile-more-panel {
    display: flex;
  }

  body.app-dashboard .bug-report-fab {
    display: none;
  }

  body.app-dashboard.has-external-shell-view .app-content {
    padding: 1rem 1rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.85rem);
  }

  body.app-dashboard.has-external-shell-view .student-shell-view-host {
    min-height: calc(
      100dvh - var(--navbar-height) - var(--safe-top) - var(--bottom-nav-h) - var(--safe-bottom) - 1.9rem
    );
    height: auto;
    border-radius: 0;
  }

  body.app-dashboard .student-shell-view-head {
    padding: 1rem 1rem 0;
  }

  body.app-dashboard .student-shell-view-body {
    padding: 0;
  }

  body.clinician-shell.has-external-clinician-shell-view .app-content {
    padding: 1rem 1rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.85rem);
  }

  body.clinician-shell.has-external-clinician-shell-view .clinician-shell-view-host {
    height: calc(
      100dvh - var(--navbar-height) - var(--safe-top) - var(--bottom-nav-h) - var(--safe-bottom) - 1.9rem
    );
    min-height: calc(
      100dvh - var(--navbar-height) - var(--safe-top) - var(--bottom-nav-h) - var(--safe-bottom) - 1.9rem
    );
    border-radius: 22px;
  }

  body.embedded-shell .app-content {
    padding: 1rem 0.95rem 1rem !important;
  }
}

@media (max-width: 768px) {
  body.app-dashboard.today-mobile-mock .app-content {
    padding: 0.72rem 0.85rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.9rem);
  }

  body.app-dashboard.today-mobile-mock .app-inner {
    max-width: 100%;
  }

  body.app-dashboard.today-mobile-mock .today-header {
    margin-bottom: 0.62rem;
  }

  body.app-dashboard.today-mobile-mock .today-header .page-title-row h1 {
    font-size: clamp(2rem, 8.3vw, 2.34rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  body.app-dashboard.today-mobile-mock .today-header .page-placement {
    margin-top: 0.26rem;
    font-size: 0.81rem;
    color: #5f6b83;
  }

  body.app-dashboard.today-mobile-mock .today-hero {
    margin-bottom: 0.66rem;
    border-radius: 12px;
  }

  body.app-dashboard.today-mobile-mock .today-hero-image,
  body.app-dashboard.today-mobile-mock .today-hero-image.today-hero-image--st-marys {
    height: 186px;
  }

  body.app-dashboard.today-mobile-mock .today-hero-overlay {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.72rem;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.78) 0%, rgba(17, 24, 39, 0.66) 56%, rgba(17, 24, 39, 0.46) 100%);
  }

  body.app-dashboard.today-mobile-mock .today-hero-overlay-copy h3 {
    font-size: 0.83rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  body.app-dashboard.today-mobile-mock .today-hero-overlay-copy p {
    margin-top: 0.14rem;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  body.app-dashboard.today-mobile-mock .today-hero-cta {
    margin-left: auto;
    flex-shrink: 0;
    min-height: 32px;
    padding: 0.32rem 0.72rem;
    font-size: 0.73rem;
  }

  body.app-dashboard.today-mobile-mock .today-card {
    border-radius: 12px;
    padding: 0.78rem;
    box-shadow: var(--today-shadow);
  }

  body.app-dashboard.today-mobile-mock .today-focus-standalone .today-card-title h3 {
    font-size: 0.9rem;
  }

  body.app-dashboard.today-mobile-mock .today-focus-standalone .dashboard-card-text {
    font-size: 0.78rem;
    line-height: 1.34;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-standalone {
    margin-bottom: 0.58rem;
  }

  body.app-dashboard.today-mobile-mock .today-session-standalone {
    margin-bottom: 0.58rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session {
    padding: 0.74rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-card-header {
    margin-bottom: 0.3rem;
    padding-bottom: 0.34rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-card-title h3 {
    font-size: 0.88rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-session-state {
    min-height: 24px;
    padding: 0.18rem 0.5rem;
    font-size: 0.66rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-session-heading {
    margin-bottom: 0.34rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-session-title {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-session-meta {
    font-size: 0.7rem;
    line-height: 1.28;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-session-timing {
    font-size: 0.62rem;
    line-height: 1.18;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-session-dismiss {
    width: 24px;
    height: 24px;
    font-size: 0.88rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-summary {
    font-size: 0.77rem;
    line-height: 1.28;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-priority {
    margin-top: 0.28rem;
    padding: 0.34rem 0.46rem;
    border-radius: 9px;
    font-size: 0.73rem;
    line-height: 1.22;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-sections {
    margin-top: 0.42rem;
    gap: 0.38rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-section-title {
    font-size: 0.62rem;
    margin-bottom: 0.22rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-list {
    gap: 0.2rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-list li {
    font-size: 0.71rem;
    line-height: 1.2;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-actions {
    margin-top: 0.4rem;
    padding-top: 0.38rem;
    gap: 0.3rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--session .today-assistant-actions .btn {
    min-height: 28px;
    padding: 0.22rem 0.52rem;
    font-size: 0.68rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--assistant {
    padding: 0.74rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--assistant .today-card-title h3 {
    font-size: 0.88rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-summary {
    font-size: 0.77rem;
    line-height: 1.3;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-priority {
    margin-top: 0.34rem;
    padding: 0.34rem 0.46rem;
    border-radius: 9px;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-sections {
    margin-top: 0.48rem;
    gap: 0.44rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-section-title {
    font-size: 0.64rem;
    margin-bottom: 0.24rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-list {
    gap: 0.22rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-list li {
    font-size: 0.72rem;
    line-height: 1.22;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-actions {
    margin-top: 0.44rem;
    padding-top: 0.42rem;
    gap: 0.34rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-actions .btn {
    min-height: 28px;
    padding: 0.22rem 0.52rem;
    font-size: 0.68rem;
  }

  body.app-dashboard.today-mobile-mock .today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "status notice"
      "schedule schedule";
    gap: 0.58rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--requirements {
    display: none;
  }

  body.app-dashboard.today-mobile-mock .today-card--status,
  body.app-dashboard.today-mobile-mock .today-card--notice {
    min-height: 178px;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule {
    min-height: 126px;
  }

  body.app-dashboard.today-mobile-mock .today-card--status .today-card-icon,
  body.app-dashboard.today-mobile-mock .today-card--notice .today-card-icon,
  body.app-dashboard.today-mobile-mock .today-card--schedule .today-card-icon {
    display: none;
  }

  body.app-dashboard.today-mobile-mock .today-card--status .today-card-header,
  body.app-dashboard.today-mobile-mock .today-card--notice .today-card-header,
  body.app-dashboard.today-mobile-mock .today-card--schedule .today-card-header {
    margin-bottom: 0.42rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--status .today-card-title h3,
  body.app-dashboard.today-mobile-mock .today-card--notice .today-card-title h3,
  body.app-dashboard.today-mobile-mock .today-card--schedule .today-card-title h3 {
    font-size: 0.9rem;
  }

  body.app-dashboard.today-mobile-mock .today-progress-label {
    font-size: 0.8rem;
  }

  body.app-dashboard.today-mobile-mock .today-progress-value {
    font-size: 0.72rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--status .today-progress-group + .today-progress-group {
    margin-top: 0.58rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--status .dashboard-progress-bar {
    height: 7px;
  }

  body.app-dashboard.today-mobile-mock .today-card--notice {
    display: flex;
    flex-direction: column;
  }

  body.app-dashboard.today-mobile-mock .today-card--notice .dashboard-notice-title {
    font-size: 0.85rem;
    line-height: 1.28;
    margin-bottom: 0.35rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--notice .dashboard-notice-body {
    font-size: 0.78rem;
    line-height: 1.33;
    margin: 0;
  }

  body.app-dashboard.today-mobile-mock .today-card--notice .today-notice-time {
    margin-top: 0.34rem;
    font-size: 0.71rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--notice .notice-view-all {
    margin-top: 0.46rem;
    margin-left: auto;
    padding: 0.31rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    border-color: #d5def8;
    color: #2f62f5;
    background: #eef3ff;
    box-shadow: none;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .today-card-header {
    margin-bottom: 0.12rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .today-schedule-date {
    display: none;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-list {
    gap: 0;
    margin-top: 0;
    border-top: 1px solid #e6ebf5;
    border-bottom: 1px solid #e6ebf5;
    padding: 0.2rem 0;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-item {
    position: relative;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-item::before {
    content: "";
    position: absolute;
    left: 0.06rem;
    top: 0.66rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f6ef7;
    box-shadow: 0 0 0 2px #f5f7ff;
    z-index: 2;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.44rem 0 0.44rem 1rem;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0.34rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-card::before {
    left: 0.2rem;
    top: 0.12rem;
    bottom: 0.12rem;
    width: 2px;
    background: #d7dff0;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-time {
    font-size: 0.74rem;
    line-height: 1.25;
    font-weight: 500;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-title {
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 600;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-meta {
    margin-top: 0.12rem;
    font-size: 0.69rem;
    line-height: 1.3;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-chips {
    display: none;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .today-schedule-footer {
    margin-top: 0.25rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--schedule .today-schedule-link {
    border: none;
    background: transparent;
    color: #3e67e9;
    padding: 0;
    min-height: auto;
    font-size: 0.74rem;
    font-weight: 600;
  }

}

@media (max-width: 768px) {
  body.is-native.app-dashboard.today-mobile-mock {
    --bottom-nav-h: 56px;
  }

  body.is-native.app-dashboard.today-mobile-mock .app-shell {
    padding-top: 0 !important;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  }

  body.is-native.app-dashboard.today-mobile-mock .app-content {
    height: calc(100dvh - var(--navbar-height) - var(--safe-top));
    overflow: hidden;
    padding: 0.42rem 0.82rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.5rem);
  }

  body.is-native.app-dashboard.today-mobile-mock .app-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
  }

  body.is-native.app-dashboard.today-mobile-mock #section-dashboard {
    margin: 0;
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone,
  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone.today-card {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    padding: 0.56rem 0.6rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-header {
    margin-bottom: 0.12rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-header .page-title-row h1 {
    font-size: clamp(1.78rem, 7.8vw, 2.08rem);
    line-height: 1.02;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-header .page-placement {
    display: none;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero {
    margin-bottom: 0;
    border-radius: 12px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero-image,
  body.is-native.app-dashboard.today-mobile-mock .today-hero-image.today-hero-image--st-marys {
    height: clamp(112px, 18vh, 144px);
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero-overlay {
    padding: 0.44rem 0.58rem;
    gap: 0.45rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero-overlay-copy h3 {
    font-size: 0.76rem;
    line-height: 1.16;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero-overlay-copy p {
    margin-top: 0.08rem;
    font-size: 0.64rem;
    line-height: 1.22;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero-cta {
    min-height: 27px;
    padding: 0.2rem 0.54rem;
    font-size: 0.66rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card {
    border-radius: 12px;
    padding: 0.62rem;
    box-shadow: var(--today-shadow);
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero {
    order: 1;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-session-standalone {
    order: 2;
    flex: 0 0 auto;
    margin-bottom: 0;
    padding: 0.54rem 0.58rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone,
  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone.today-card {
    order: 3;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-standalone {
    order: 4;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-grid {
    order: 5;
  }

  body.is-native.app-dashboard.today-mobile-mock.today-has-session-context .today-assistant-standalone {
    display: none;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-card-header {
    margin-bottom: 0.18rem;
    padding-bottom: 0.24rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-card-icon svg {
    width: 15px;
    height: 15px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-card-title h3 {
    font-size: 0.76rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-session-state {
    min-height: 20px;
    padding: 0.1rem 0.42rem;
    font-size: 0.58rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-session-heading {
    gap: 0.08rem;
    margin-bottom: 0.22rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-session-title {
    font-size: 0.74rem;
    line-height: 1.14;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-session-meta {
    font-size: 0.61rem;
    line-height: 1.18;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-session-timing {
    font-size: 0.54rem;
    line-height: 1.1;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-session-dismiss {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-summary {
    font-size: 0.64rem;
    line-height: 1.16;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-priority {
    margin-top: 0.2rem;
    padding: 0.22rem 0.34rem;
    font-size: 0.61rem;
    line-height: 1.14;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-sections {
    margin-top: 0.24rem;
    gap: 0.24rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-section-title {
    font-size: 0.54rem;
    margin-bottom: 0.14rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-list {
    gap: 0.12rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-list li {
    font-size: 0.6rem;
    line-height: 1.14;
    padding-left: 0.5rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-list li::before {
    width: 4px;
    height: 4px;
    top: 0.5em;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-actions {
    margin-top: 0.26rem;
    padding-top: 0.24rem;
    gap: 0.24rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--session .today-assistant-actions .btn {
    min-height: 26px;
    width: 100%;
    padding: 0.16rem 0.34rem;
    font-size: 0.58rem;
    justify-content: center;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone .today-card-header {
    margin-bottom: 0.16rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone .today-card-icon {
    width: 34px;
    height: 34px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone .today-card-title h3 {
    font-size: 0.8rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-focus-standalone .dashboard-card-text {
    font-size: 0.68rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-standalone {
    margin-bottom: 0;
    padding: 0.52rem 0.58rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--assistant .today-card-header {
    margin-bottom: 0.18rem;
    padding-bottom: 0.28rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--assistant .today-card-title h3 {
    font-size: 0.76rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-summary {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-priority {
    margin-top: 0.22rem;
    padding: 0.24rem 0.36rem;
    font-size: 0.64rem;
    line-height: 1.16;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-sections {
    margin-top: 0.3rem;
    gap: 0.3rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-section-title {
    font-size: 0.58rem;
    margin-bottom: 0.16rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-list {
    gap: 0.16rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-list li {
    font-size: 0.62rem;
    line-height: 1.16;
    padding-left: 0.54rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-list li::before {
    width: 4px;
    height: 4px;
    top: 0.5em;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-actions {
    margin-top: 0.3rem;
    padding-top: 0.24rem;
    gap: 0.24rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-assistant-actions .btn {
    min-height: 24px;
    padding: 0.16rem 0.38rem;
    font-size: 0.6rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-grid {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "status notice"
      "schedule schedule";
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status,
  body.is-native.app-dashboard.today-mobile-mock .today-card--notice {
    min-height: 146px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule {
    min-height: clamp(160px, 23vh, 228px);
    display: flex;
    flex-direction: column;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .today-card-header,
  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .today-card-header {
    margin-bottom: 0.3rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .today-card-header {
    padding-bottom: 0.28rem;
    border-bottom: 1px solid #e8edf4;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .today-notice-body > div {
    border-top: 1px solid #e6ebf5;
    margin-top: 0.02rem;
    padding-top: 0.32rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .today-progress-group:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .today-card-title h3,
  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .today-card-title h3,
  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .today-card-title h3 {
    font-size: 0.84rem;
    line-height: 1.18;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-progress-label {
    font-size: 0.74rem;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-progress-value {
    max-width: 54%;
    font-size: 0.64rem;
    line-height: 1.12;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    text-align: right;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .today-progress-group + .today-progress-group {
    margin-top: 0.72rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .today-progress-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .dashboard-progress-bar {
    height: 6px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .dashboard-notice-title {
    font-size: 0.79rem;
    line-height: 1.18;
    margin-bottom: 0.16rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .dashboard-notice-body {
    font-size: 0.68rem;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .today-notice-time {
    margin-top: 0.18rem;
    font-size: 0.62rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .notice-view-all {
    margin-top: 0.2rem;
    padding: 0.18rem 0.42rem;
    font-size: 0.64rem;
    min-height: 0;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .today-card-header {
    margin-bottom: 0.06rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-list {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    margin-top: 0;
    padding: 0.12rem 0 0.06rem;
    gap: 0;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-item::before {
    top: 0.58rem;
    width: 7px;
    height: 7px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-card {
    padding: 0.34rem 0 0.34rem 0.92rem;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.3rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-card::before {
    left: 0.16rem;
    top: 0.08rem;
    bottom: 0.08rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-time {
    font-size: 0.67rem;
    line-height: 1.2;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-title {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-meta {
    margin-top: 0.08rem;
    font-size: 0.64rem;
    line-height: 1.2;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .today-schedule-footer {
    margin-top: 0.06rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .today-schedule-link {
    font-size: 0.68rem;
  }

}

@media (max-width: 768px) and (max-height: 760px) {
  body.is-native.app-dashboard.today-mobile-mock .today-header .page-title-row h1 {
    font-size: clamp(1.62rem, 7vw, 1.92rem);
  }

  body.is-native.app-dashboard.today-mobile-mock .today-hero-image,
  body.is-native.app-dashboard.today-mobile-mock .today-hero-image.today-hero-image--st-marys {
    height: clamp(88px, 15vh, 112px);
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card {
    padding: 0.56rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status,
  body.is-native.app-dashboard.today-mobile-mock .today-card--notice {
    min-height: 132px;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--status .today-progress-group:first-of-type,
  body.is-native.app-dashboard.today-mobile-mock .today-card--notice .today-notice-body > div {
    padding-top: 0.26rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .today-card--schedule .dash-event-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body.is-native.app-dashboard,
  body.is-native.clinician-shell {
    --bottom-nav-h: 56px;
  }

  body.is-native.app-dashboard .app-content,
  body.is-native.clinician-shell .app-content {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.45rem);
  }

  body.is-native.app-dashboard .mobile-nav,
  body.is-native.clinician-shell .mobile-nav {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-color: rgba(203, 213, 225, 0.62);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.22rem 0.45rem calc(var(--safe-bottom) + 0.3rem);
    min-height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
  }

  body.is-native.app-dashboard .mobile-nav-item,
  body.is-native.clinician-shell .mobile-nav-item {
    min-height: 44px;
    border-radius: 12px;
    padding: 0.3rem 0.2rem;
    gap: 0.12rem;
  }

  body.is-native.app-dashboard .mobile-nav-item svg,
  body.is-native.clinician-shell .mobile-nav-item svg {
    width: 19px;
    height: 19px;
  }

  body.is-native.app-dashboard .mobile-nav-item .mobile-nav-label,
  body.is-native.clinician-shell .mobile-nav-item .mobile-nav-label {
    font-size: 0.64rem;
    line-height: 1;
  }
}

/* ===== STUDENT FEEDBACK ===== */
body.feedback-page .feedback-header {
  margin-bottom: 1.5rem;
}

body.feedback-page .page-eyebrow {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.feedback-page .page-subtitle {
  color: #64748b;
  margin-top: 0.35rem;
}

body.feedback-page .feedback-section {
  margin-bottom: 2rem;
}

body.feedback-page .feedback-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

body.feedback-page .feedback-section-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

body.feedback-page .feedback-section-meta {
  color: #94a3b8;
  font-weight: 500;
}

body.feedback-page .feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.feedback-page .feedback-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
}

body.feedback-page .feedback-card.is-mandatory {
  border-color: rgba(59, 108, 255, 0.35);
  box-shadow: 0 18px 40px rgba(59, 108, 255, 0.08);
}

body.feedback-page .feedback-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

body.feedback-page .feedback-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

body.feedback-page .feedback-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 500;
}

body.feedback-page .feedback-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

body.feedback-page .feedback-card-due {
  color: #475569;
  font-weight: 600;
  margin-top: 0.5rem;
}

body.feedback-page .feedback-card-actions .btn {
  white-space: nowrap;
}

body.feedback-page .feedback-empty {
  color: #94a3b8;
  font-size: 0.95rem;
}

body.feedback-page .feedback-completed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: transparent;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

body.feedback-flow-page .feedback-flow {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

body.feedback-flow-page .feedback-progress {
  width: min(640px, 90%);
}

body.feedback-flow-page .feedback-progress-dots {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.35rem;
}

body.feedback-flow-page .feedback-progress-dots::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

body.feedback-flow-page .feedback-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5f5;
  border: 2px solid #cbd5f5;
  position: relative;
  z-index: 1;
}

body.feedback-flow-page .feedback-progress-dot.is-active {
  background: #3b6cff;
  border-color: #3b6cff;
}

body.feedback-flow-page .feedback-flow-card {
  width: min(760px, 100%);
  padding: 2rem 2.4rem;
}

body.feedback-flow-page .feedback-flow-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.9rem;
}

body.feedback-flow-page .feedback-flow-card h1 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

body.feedback-flow-page .feedback-flow-subtitle {
  color: #64748b;
  margin-bottom: 1.6rem;
}

body.feedback-flow-page .feedback-question h2 {
  margin-bottom: 0.4rem;
}

body.feedback-flow-page .feedback-question-hint {
  color: #94a3b8;
  margin-bottom: 1rem;
}

body.feedback-flow-page .feedback-answer-area {
  margin-bottom: 1.6rem;
}

body.feedback-flow-page .feedback-option {
  border: 1px solid #d4dbe8;
  background: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  min-width: 56px;
  text-align: center;
}

body.feedback-flow-page .feedback-option.is-selected {
  background: #eef3ff;
  border-color: #3b6cff;
  color: #2f5eea;
}

body.feedback-flow-page .feedback-option.is-disabled {
  opacity: 0.6;
  cursor: default;
}

body.feedback-flow-page .feedback-rating {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

body.feedback-flow-page .feedback-rating-labels {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

body.feedback-flow-page .feedback-choices {
  display: flex;
  gap: 0.8rem;
}

body.feedback-flow-page .feedback-textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid #d4dbe8;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1f2937;
}

body.feedback-flow-page .feedback-textarea:disabled {
  background: #f8fafc;
  color: #94a3b8;
}

body.feedback-flow-page .feedback-flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.feedback-flow-page .feedback-step-label {
  color: #64748b;
  font-weight: 500;
}

body.feedback-flow-page .feedback-review {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

body.feedback-flow-page .feedback-review-item {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #f8fafc;
}

body.feedback-flow-page .feedback-review-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

body.feedback-flow-page .feedback-review-value {
  color: #64748b;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

body.feedback-flow-page .feedback-flow-status {
  margin-top: 1rem;
  color: #64748b;
  font-weight: 500;
}

body.feedback-flow-page .feedback-flow-status.is-error {
  color: #dc2626;
}

body.feedback-flow-page .feedback-flow-status.is-success {
  color: #16a34a;
}

body.feedback-flow-page .feedback-confidential {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* Feedback lock overlay */
.feedback-lock-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  z-index: 80;
}

.feedback-lock-overlay.is-hidden {
  display: none;
}

.feedback-lock-card {
  width: min(520px, 92%);
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.feedback-lock-card h2 {
  margin-top: 0;
}

.feedback-lock-card p {
  color: #64748b;
}

.feedback-lock-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ===== CLINICIAN MOBILE SHELL POLISH ===== */
body.clinician-shell .clinician-shell-view-host {
  min-height: 560px;
  transition:
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.clinician-shell .clinician-shell-view-host.is-switching {
  opacity: 0.74;
  transform: translate3d(0, 8px, 0);
}

body.clinician-shell .clinician-shell-frame {
  opacity: 0;
  transition: opacity 200ms ease;
}

body.clinician-shell .clinician-shell-frame.is-active {
  opacity: 1;
}

body.clinician-shell .clinician-shell-view-host.is-loading .clinician-shell-frame.is-active {
  opacity: 0.45;
}

@media (max-width: 768px) {
  body.clinician-shell .app-content {
    padding: 1.35rem 1rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.9rem);
    overflow-x: hidden;
  }

  body.clinician-shell .clinician-shell-default-view,
  body.clinician-shell .clinician-shell-view-section,
  body.clinician-shell .clinician-shell-view-host {
    min-height: max(
      460px,
      calc(
        100dvh - var(--navbar-height) - var(--safe-top) - var(--bottom-nav-h) - var(--safe-bottom) - 1.9rem
      )
    );
  }
}

@media (max-width: 420px) {
  body.clinician-shell .app-content {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

@media (max-width: 768px) {
  body.app-dashboard.today-mobile-mock .today-header {
    display: none;
  }

  body.app-dashboard.today-mobile-mock .app-content {
    padding: 0.95rem 1rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
    overflow-x: hidden;
  }

  body.app-dashboard.today-mobile-mock .app-inner {
    max-width: 100%;
  }

  body.app-dashboard.today-mobile-mock #section-dashboard {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 1rem;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-user {
    display: flex;
    align-items: center;
    gap: 0.82rem;
    min-width: 0;
    color: #0f172a;
    text-decoration: none;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid #d6e2ff;
    background: linear-gradient(180deg, #eef3ff 0%, #dfe9ff 100%);
    color: #375baf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-kicker {
    font-size: 0.76rem;
    font-weight: 500;
    color: #7b879c;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-name {
    font-size: 1.46rem;
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #10213a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-messages {
    position: relative;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid #e6ecf7;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
    color: #4a5f87;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-messages-icon svg {
    width: 22px;
    height: 22px;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-messages-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #4f6ef7;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(79, 110, 247, 0.28);
  }

  body.app-dashboard.today-mobile-mock .today-hero {
    margin-bottom: 1rem;
    border-radius: 24px;
    border-color: #dde6f3;
  }

  body.app-dashboard.today-mobile-mock .today-hero-image,
  body.app-dashboard.today-mobile-mock .today-hero-image.today-hero-image--st-marys {
    height: 194px;
  }

  body.app-dashboard.today-mobile-mock .today-hero-overlay {
    align-items: flex-end;
    gap: 0.9rem;
    padding: 1rem;
    background:
      linear-gradient(180deg, rgba(13, 22, 39, 0.08) 0%, rgba(13, 22, 39, 0.72) 54%, rgba(13, 22, 39, 0.92) 100%),
      linear-gradient(90deg, rgba(19, 28, 48, 0.9) 0%, rgba(19, 28, 48, 0.72) 56%, rgba(19, 28, 48, 0.44) 100%);
  }

  body.app-dashboard.today-mobile-mock .today-hero-overlay-copy {
    min-width: 0;
    flex: 1;
  }

  body.app-dashboard.today-mobile-mock .today-hero-kicker {
    min-height: 22px;
    margin-bottom: 0.58rem;
    padding: 0.18rem 0.54rem;
    border-radius: 999px;
    font-size: 0.7rem;
  }

  body.app-dashboard.today-mobile-mock .today-hero-overlay-copy h3 {
    font-size: 1.32rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  body.app-dashboard.today-mobile-mock .today-hero-site {
    margin-top: 0.28rem;
    font-size: 0.9rem;
    line-height: 1.26;
  }

  body.app-dashboard.today-mobile-mock #dash-hero-week {
    margin-top: 0.18rem;
    font-size: 0.8rem;
    line-height: 1.24;
    color: rgba(255, 255, 255, 0.82);
  }

  body.app-dashboard.today-mobile-mock .today-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.72rem;
  }

  body.app-dashboard.today-mobile-mock .today-hero-meta-pill {
    min-height: 26px;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.01em;
    backdrop-filter: blur(10px);
  }

  body.app-dashboard.today-mobile-mock .today-hero-meta-pill--accent {
    background: rgba(122, 151, 255, 0.24);
    border-color: rgba(147, 173, 255, 0.3);
  }

  body.app-dashboard.today-mobile-mock .today-hero-meta-pill--warning {
    background: rgba(248, 199, 90, 0.22);
    border-color: rgba(248, 199, 90, 0.34);
  }

  body.app-dashboard.today-mobile-mock .today-hero-meta-pill--muted {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
  }

  body.app-dashboard.today-mobile-mock .today-hero-cta {
    min-height: 40px;
    padding: 0.42rem 0.92rem;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.96);
    color: #3458c9;
    font-size: 0.8rem;
    font-weight: 600;
  }

  body.app-dashboard.today-mobile-mock .today-quick-actions-shell {
    display: block;
    margin-bottom: 1rem;
  }

  body.app-dashboard.today-mobile-mock .today-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action {
    width: 100%;
    min-height: 84px;
    padding: 0.88rem 0.92rem;
    border: 1px solid #dde6f4;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    text-align: left;
    color: #12223b;
    font: inherit;
    cursor: pointer;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #edf2ff;
    color: #466def;
    box-shadow: inset 0 0 0 1px rgba(79, 110, 247, 0.08);
  }

  body.app-dashboard.today-mobile-mock .today-quick-action-icon svg {
    width: 20px;
    height: 20px;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action-label {
    font-size: 0.88rem;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #12223b;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action-hint {
    font-size: 0.75rem;
    line-height: 1.28;
    font-weight: 600;
    color: #5f7189;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action-arrow {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #e4e9f4;
    background: #ffffff;
    color: #6b7d96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action--timetable .today-quick-action-icon {
    background: #f0edff;
    color: #6858c4;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action--signoffs .today-quick-action-icon {
    background: #edf2ff;
    color: #466def;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action--conditions .today-quick-action-icon {
    background: #fff4e1;
    color: #b1761c;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action--messages .today-quick-action-icon {
    background: #eef3ff;
    color: #4a5f87;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action--notices .today-quick-action-icon {
    background: #e9f7f1;
    color: #2e8d68;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action--placement .today-quick-action-icon {
    background: #eef3ff;
    color: #4567df;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action--warning .today-quick-action-icon {
    background: #fff4df;
    color: #b1761c;
  }

  body.app-dashboard.today-mobile-mock .today-overview-shell {
    display: block;
    margin-bottom: 1rem;
  }

  body.app-dashboard.today-mobile-mock .today-overview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.72rem;
  }

  body.app-dashboard.today-mobile-mock .today-overview-header h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #10213a;
  }

  body.app-dashboard.today-mobile-mock .today-overview-hint {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #5b6fe5;
    white-space: nowrap;
  }

  body.app-dashboard.today-mobile-mock .today-overview-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 82%);
    gap: 0.78rem;
    overflow-x: auto;
    padding: 0 18% 0.35rem 0;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.app-dashboard.today-mobile-mock .today-overview-carousel::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card {
    scroll-snap-align: start;
    min-height: 188px;
    padding: 0.92rem 0.95rem 0.88rem;
    border-radius: 22px;
    border: 1px solid #dde6f4;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf2ff;
    color: #4567df;
    box-shadow: inset 0 0 0 1px rgba(79, 110, 247, 0.08);
  }

  body.app-dashboard.today-mobile-mock .today-overview-card-icon svg {
    width: 20px;
    height: 20px;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card-chevron {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #e4e9f4;
    background: #ffffff;
    color: #6b7d96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.14;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #12223b;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card-primary {
    margin: 0.84rem 0 0;
    font-size: 1.34rem;
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #12223b;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card-secondary {
    margin: 0.22rem 0 0;
    font-size: 0.88rem;
    line-height: 1.28;
    color: #5f7189;
    font-weight: 500;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card-footer {
    margin: auto 0 0;
    padding-top: 0.82rem;
    border-top: 1px solid #eef2f7;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #4567df;
    font-weight: 600;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card--signoffs .today-overview-card-icon {
    background: #edf2ff;
    color: #466def;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card--conditions .today-overview-card-icon {
    background: #fff4e1;
    color: #b1761c;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card--timetable .today-overview-card-icon {
    background: #f0edff;
    color: #6858c4;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card--notices .today-overview-card-icon {
    background: #e9f7f1;
    color: #2e8d68;
  }

  body.app-dashboard.today-mobile-mock .today-overview-dots {
    display: flex;
    justify-content: center;
    gap: 0.38rem;
    margin-top: 0.65rem;
  }

  body.app-dashboard.today-mobile-mock .today-overview-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #d6dceb;
    transition: width 180ms ease, background 180ms ease;
  }

  body.app-dashboard.today-mobile-mock .today-overview-dot.is-active {
    width: 20px;
    background: #4f6ef7;
  }

  body.app-dashboard.today-mobile-mock .today-session-standalone,
  body.app-dashboard.today-mobile-mock .today-grid {
    display: none !important;
  }

  body.app-dashboard.today-mobile-mock.today-has-session-context .today-assistant-standalone {
    display: block;
  }

  body.app-dashboard.today-mobile-mock .today-card--year-empty {
    margin-bottom: 1rem;
    border-radius: 22px;
    padding: 0.92rem 0.98rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-standalone {
    margin-bottom: 0;
    padding: 0.95rem 0.98rem 0.9rem;
    border-radius: 22px;
    border: 1px solid #dde6f4;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  }

  body.app-dashboard.today-mobile-mock .today-card--assistant .today-card-header {
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.58rem;
    padding-bottom: 0.56rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--assistant .today-card-title h3 {
    font-size: 0.98rem;
  }

  body.app-dashboard.today-mobile-mock .today-card--assistant .today-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff4df;
    color: #b1761c;
    box-shadow: inset 0 0 0 1px rgba(177, 118, 28, 0.1);
  }

  body.app-dashboard.today-mobile-mock .today-card--assistant .today-card-icon svg {
    width: 20px;
    height: 20px;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-status-pill {
    min-height: 26px;
    padding: 0.2rem 0.62rem;
    font-size: 0.7rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-summary {
    font-size: 0.86rem;
    line-height: 1.34;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-priority {
    margin-top: 0.56rem;
    padding: 0.56rem 0.72rem;
    border-radius: 14px;
    font-size: 0.83rem;
    line-height: 1.3;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-sections {
    margin-top: 0.72rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.82rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-section-title {
    margin-bottom: 0.3rem;
    font-size: 0.66rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-list {
    gap: 0.28rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-list li {
    padding-left: 0.74rem;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-list li::before {
    top: 0.52em;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-actions {
    margin-top: 0.82rem;
    padding-top: 0.66rem;
    gap: 0.52rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-actions .btn {
    min-height: 36px;
    padding: 0.42rem 0.92rem;
    border-radius: 999px;
    font-size: 0.79rem;
  }

  body.is-native.app-dashboard.today-mobile-mock .app-shell {
    padding-top: 0;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  }

  body.is-native.app-dashboard.today-mobile-mock .app-content {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.is-native.app-dashboard.today-mobile-mock .app-inner {
    height: auto;
    display: block;
  }

  body.is-native.app-dashboard.today-mobile-mock #section-dashboard {
    min-height: 0;
    display: block;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  body.app-dashboard.today-mobile-mock .today-mobile-name {
    font-size: 1.3rem;
  }

  body.app-dashboard.today-mobile-mock .today-hero-image,
  body.app-dashboard.today-mobile-mock .today-hero-image.today-hero-image--st-marys {
    height: 182px;
  }

  body.app-dashboard.today-mobile-mock .today-overview-carousel {
    grid-auto-columns: minmax(220px, 85%);
    padding-right: 14%;
  }

  body.app-dashboard.today-mobile-mock .today-quick-actions-grid {
    gap: 0.64rem;
  }

  body.app-dashboard.today-mobile-mock .today-quick-action {
    min-height: 78px;
    padding: 0.82rem 0.84rem;
  }

  body.app-dashboard.today-mobile-mock .today-overview-card {
    min-height: 178px;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-sections {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.64rem;
  }

  body.app-dashboard.today-mobile-mock .today-assistant-actions .btn {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
  }
}

.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;
}

.pp-sync-banner {
  display: none !important;
}

.pp-connection-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%;
  z-index: 12000;
  width: min(calc(100vw - 2rem), 360px);
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: rgba(255, 251, 235, 0.96);
  color: #8a5a00;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pp-connection-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pp-connection-toast.is-online {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .pp-connection-toast {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    width: min(calc(100vw - 1.25rem), 340px);
    padding: 0.82rem 0.95rem;
    border-radius: 16px;
    font-size: 0.88rem;
  }
}

body.mobile-app-search-open {
  overflow: hidden;
}

.mobile-app-search[hidden] {
  display: none;
}

@media (min-width: 769px) {
  .mobile-app-search {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.app-dashboard.today-mobile-mock .navbar-app {
    display: none;
  }

  body.app-dashboard.today-mobile-mock .app-shell {
    min-height: auto;
  }

  body.app-dashboard.today-mobile-mock .app-content {
    padding: calc(var(--safe-top) + 0.95rem) 1rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
  }

  body.app-dashboard.today-mobile-mock .today-mobile-header {
    align-items: flex-start;
    margin-bottom: 0.72rem;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-messages,
  body.app-dashboard.today-mobile-mock .today-mobile-search {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #e2e8f3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
    color: #4a5f87;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-messages-icon,
  body.app-dashboard.today-mobile-mock .today-mobile-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  body.app-dashboard.today-mobile-mock .today-mobile-messages-icon svg,
  body.app-dashboard.today-mobile-mock .today-mobile-search-icon svg {
    width: 20px;
    height: 20px;
  }

  body.is-native.app-dashboard.today-mobile-mock .app-shell {
    padding-top: 0 !important;
  }

  body.is-native.app-dashboard.today-mobile-mock .app-content {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: calc(var(--safe-top) + 0.9rem);
  }

  .mobile-app-search {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(244, 247, 252, 0.98);
    backdrop-filter: blur(18px);
  }

  .mobile-app-search-dialog {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--safe-top) + 0.95rem) 1rem calc(var(--safe-bottom) + 1rem);
  }

  .mobile-app-search-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.95rem;
  }

  .mobile-app-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.82rem 0.92rem;
    border-radius: 22px;
    border: 1px solid #d9e3f2;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  .mobile-app-search-field-icon {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-app-search-field-icon svg {
    width: 19px;
    height: 19px;
  }

  .mobile-app-search-field input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 1rem;
    outline: none;
  }

  .mobile-app-search-field input::placeholder {
    color: #94a3b8;
  }

  .mobile-app-search-close {
    border: none;
    background: transparent;
    color: #4667dd;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0.15rem;
    cursor: pointer;
  }

  .mobile-app-search-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 1rem;
  }

  .mobile-app-search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
  }

  .mobile-app-search-section-header h2 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #10213a;
  }

  .mobile-app-search-clear {
    border: none;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
  }

  .mobile-app-search-recent {
    margin-bottom: 1rem;
  }

  .mobile-app-search-chip-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .mobile-app-search-chip {
    border: 1px solid #d7e2f0;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
  }

  .mobile-app-search-empty {
    padding: 1.2rem 0.1rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .mobile-app-search-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-app-search-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .mobile-app-search-group-title {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #10213a;
  }

  .mobile-app-search-group-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .mobile-app-search-result {
    width: 100%;
    border: 1px solid #dce5f2;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    padding: 0.82rem 0.9rem;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
  }

  .mobile-app-search-result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .mobile-app-search-result-title {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #10213a;
  }

  .mobile-app-search-result-tags {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .mobile-app-search-result-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #eef3ff;
    color: #4567df;
    font-size: 0.68rem;
    font-weight: 500;
  }

  .mobile-app-search-result-tag--placement {
    background: #edf7ef;
    color: #2f8b62;
  }

  .mobile-app-search-result-meta {
    margin: 0.38rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #64748b;
  }
}

/* Roadmaps final white-page and support-card polish */
body.app-dashboard:has(#section-roadmaps.is-active),
body.app-dashboard:has(#section-roadmaps.is-active) .app-shell,
body.app-dashboard:has(#section-roadmaps.is-active) .app-content,
body.app-dashboard:has(#section-roadmaps.is-active) .app-inner,
body.app-dashboard:has(#section-roadmaps.is-active) .section-inner {
  background: #ffffff;
}

body.app-dashboard:has(#section-roadmaps.is-active) .app-sidebar {
  background: #ffffff;
  border-right-color: #e2e8f0;
  box-shadow: none;
}

body.app-dashboard:has(#section-roadmaps.is-active) #section-roadmaps,
body.app-dashboard:has(#section-roadmaps.is-active) #section-roadmaps.roadmaps-page,
body.app-dashboard:has(#section-roadmaps.is-active) #roadmaps-list-view,
body.app-dashboard:has(#section-roadmaps.is-active) .roadmaps-year-pane,
body.app-dashboard:has(#section-roadmaps.is-active) .roadmaps-year-card--overview {
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid {
  gap: 1rem;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card {
  padding: 0;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card-head {
  padding: 0.92rem 1.06rem 0.62rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: #071b4d;
  font-size: 0.96rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card-head p {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-icon {
  width: 18px;
  height: 18px;
  color: #075ff0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-icon svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list,
body.app-dashboard #section-roadmaps .roadmaps-year-focus {
  margin: 0;
  display: grid;
  gap: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-divider,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-wrap h4 {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-focus-wrap {
  display: contents;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
  position: relative;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #edf1f7;
  border-radius: 0;
  background: #ffffff;
  padding: 0.64rem 2.45rem 0.64rem 2.04rem;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item::before,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-item::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  transform: translateY(-50%);
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item::after,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-item::after {
  content: "";
  position: absolute;
  right: 1.08rem;
  top: 50%;
  width: 0.44rem;
  height: 0.44rem;
  border-right: 1.5px solid #2a4575;
  border-bottom: 1.5px solid #2a4575;
  transform: translateY(-50%) rotate(-45deg);
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card:first-child .roadmaps-year-list-item::before {
  border: 1.5px solid #6d87c9;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card:nth-child(2) .roadmaps-year-list-item::before,
body.app-dashboard #section-roadmaps .roadmaps-year-support-grid .roadmaps-year-card:nth-child(2) .roadmaps-year-focus-item::before {
  border: 1.5px solid #00969a;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head h4 {
  margin: 0;
  min-width: 0;
  color: #20375f;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head span {
  color: #2d4470;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-item p {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-empty,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-empty {
  margin: 0.72rem 1.05rem 1rem;
  border-radius: 8px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-list-empty::before,
body.app-dashboard #section-roadmaps .roadmaps-year-list-empty::after,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-empty::before,
body.app-dashboard #section-roadmaps .roadmaps-year-focus-empty::after {
  content: none;
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-list-item,
  body.app-dashboard #section-roadmaps .roadmaps-year-focus-item {
    padding-right: 2.1rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head {
    gap: 0.62rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-list-item-head h4 {
    white-space: normal;
  }
}

/* Roadmaps timeline collision and alignment polish */
body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
  overflow-x: auto;
  overflow-y: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis,
body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  width: max(100%, var(--roadmaps-year-layout-width, 1280px));
  min-width: var(--roadmaps-year-layout-width, 1280px);
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  --roadmaps-year-line-y: 116px;
  min-height: 244px;
  overflow: visible;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-track-line {
  top: var(--roadmaps-year-line-y);
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines--month {
  bottom: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block {
  top: calc(var(--roadmaps-year-line-y) - 44px);
  height: 88px;
  min-width: 0;
  min-height: 0;
  transform: translateX(-50%);
  align-content: center;
  overflow: hidden;
  padding: 0.72rem 2.45rem 0.72rem 0.9rem;
  z-index: 8;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  padding-right: 0;
  line-height: 1.16;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-window,
body.app-dashboard #section-roadmaps .roadmaps-year-block-current {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break {
  top: calc(var(--roadmaps-year-line-y) + 60px);
  height: 44px;
  min-width: 0;
  transform: translateX(-50%);
  align-content: center;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break span,
body.app-dashboard #section-roadmaps .roadmaps-year-break small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  top: var(--roadmaps-year-line-y);
  width: 132px;
  min-width: 0;
  max-width: 132px;
  height: 0;
  transform: translateX(-50%);
  overflow: visible;
  z-index: 6;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin::after {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.36rem);
  height: 1.8rem;
  margin: 0;
  transform: translateX(-50%);
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  position: absolute;
  left: 50%;
  width: 124px;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.76rem;
  line-height: 1.16;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  font-size: 0.72rem;
  line-height: 1.1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-below .roadmaps-year-milestone-title {
  top: 2.55rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-below .roadmaps-year-milestone-date {
  top: 5rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-above .roadmaps-year-milestone-pin::after {
  top: auto;
  bottom: calc(100% + 0.36rem);
  height: 1.35rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-above .roadmaps-year-milestone-title {
  bottom: 4.35rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-above .roadmaps-year-milestone-date {
  bottom: 2.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-line {
  top: 0;
  bottom: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-pill {
  top: calc(var(--roadmaps-year-line-y) - 5.35rem);
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
    --roadmaps-year-line-y: 104px;
    min-height: 228px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-block {
    height: 82px;
    top: calc(var(--roadmaps-year-line-y) - 41px);
    padding: 0.6rem 2.2rem 0.6rem 0.72rem;
  }
}

/* Roadmaps selected event preview and fullscreen control polish */
body.app-dashboard #section-roadmaps .roadmaps-year-fullscreen-toggle {
  min-height: 42px;
  border: 1px solid #dfe6f2 !important;
  border-radius: 6px;
  background: #ffffff !important;
  color: #243a63 !important;
  box-shadow: none !important;
  padding: 0.58rem 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-year-fullscreen-toggle:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-fullscreen-toggle:focus-visible {
  border-color: #c6d2e5 !important;
  background: #f9fbff !important;
  color: #12306a !important;
}

body.app-dashboard #section-roadmaps .roadmaps-year-fullscreen-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail {
  margin: 0.82rem 0 0;
  padding: 1rem 1.04rem;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(320px, auto);
  gap: 1rem;
  align-items: center;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #f4f8ff;
  color: #075ff0;
  display: grid;
  place-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon.is-holiday {
  border-color: #f2dfb9;
  background: #fffaf0;
  color: #9a6614;
}

body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon.is-milestone {
  border-color: #ffd1c9;
  background: #fff7f5;
  color: #ff5a45;
}

body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon svg {
  width: 30px;
  height: 30px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-main {
  min-width: 0;
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy h4 {
  margin: 0;
  color: #071b4d;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.18;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta-line {
  margin-top: 0.44rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.68rem;
  color: #29426f;
  font-size: 0.82rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta-pill {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  line-height: 1.25;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-meta-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #243f70;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-copy p {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  color: #31486f;
  font-size: 0.84rem;
  line-height: 1.48;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-side {
  justify-self: end;
  min-width: 0;
  display: grid;
  gap: 0.72rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chips {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.48rem;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-chip {
  min-height: 34px;
  border-radius: 6px;
  padding: 0.42rem 0.64rem;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions {
  margin: 0;
  padding: 0;
  border-top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.62rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-roadmaps .roadmaps-year-shortcut {
  min-height: 44px;
  border-radius: 6px;
  padding: 0.62rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.54rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-shortcut svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.app-dashboard #section-roadmaps .roadmaps-year-shortcut--primary {
  background: #075ff0;
  color: #ffffff;
  border-color: #075ff0;
  min-width: 188px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-shortcut--primary:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-shortcut--primary:focus-visible {
  background: #0454d8;
  border-color: #0454d8;
}

body.app-dashboard #section-roadmaps .roadmaps-year-shortcut--secondary {
  background: #ffffff !important;
  color: #243a63 !important;
  border: 1px solid #dfe6f2 !important;
  min-width: 142px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-shortcut--secondary:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-shortcut--secondary:focus-visible {
  background: #f9fbff !important;
  border-color: #c6d2e5 !important;
}

@media (max-width: 1180px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-side {
    grid-column: 2;
    justify-self: stretch;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-chips,
  body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-preview-icon {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-side {
    grid-column: 1;
  }

body.app-dashboard #section-roadmaps .roadmaps-year-shortcut {
    flex: 1 1 180px;
  }
}

/* Roadmaps milestone rail: keep deadlines off placement cards */
body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  --roadmaps-year-line-y: 196px;
  min-height: var(--roadmaps-year-canvas-height, 368px);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block {
  left: var(--roadmaps-year-block-left, 0);
  top: var(--roadmaps-year-block-top, calc(var(--roadmaps-year-line-y) + 24px));
  width: var(--roadmaps-year-block-width, 220px);
  transform: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break {
  top: var(--roadmaps-year-break-top, calc(var(--roadmaps-year-line-y) + 126px));
  z-index: 5;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  --roadmaps-year-milestone-top: calc(8px + (var(--roadmaps-year-milestone-row, 0) * 58px));
  top: var(--roadmaps-year-milestone-top);
  width: 150px;
  max-width: 150px;
  min-height: 48px;
  height: auto;
  border: 1px solid #ffd5cf;
  border-radius: 8px;
  background: #ffffff;
  color: #071b4d;
  padding: 0.5rem 0.62rem 0.48rem 1.42rem;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  text-align: left;
  box-shadow: 0 10px 18px rgba(255, 90, 69, 0.08);
  transform: translateX(-50%);
  overflow: visible;
  z-index: 6;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-below {
  --roadmaps-year-milestone-top: calc(8px + (var(--roadmaps-year-milestone-row, 0) * 58px));
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: max(14px, calc(var(--roadmaps-year-line-y) - var(--roadmaps-year-milestone-top) - 62px));
  background: #ff5a45;
  transform: translateX(-50%);
  pointer-events: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-below::after {
  height: max(14px, calc(var(--roadmaps-year-line-y) - var(--roadmaps-year-milestone-top) - 62px));
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin {
  position: absolute;
  left: 0.58rem;
  top: 0.72rem;
  width: 0.56rem;
  height: 0.56rem;
  border: 2px solid #ff5a45;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 90, 69, 0.1);
  transform: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin::after {
  content: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  position: relative;
  width: auto;
  margin: 0;
  transform: none;
  text-align: left;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.14;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  color: #ff5a45;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-above .roadmaps-year-milestone-title,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-below .roadmaps-year-milestone-title,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-above .roadmaps-year-milestone-date,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-below .roadmaps-year-milestone-date {
  top: auto;
  bottom: auto;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-selected {
  border-color: #ff8a78;
  background: #fff8f6;
  box-shadow: 0 12px 22px rgba(255, 90, 69, 0.12);
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month {
  z-index: auto;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-line {
  z-index: 2;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-pill {
  z-index: 12;
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
    --roadmaps-year-line-y: 184px;
    min-height: var(--roadmaps-year-canvas-height, 348px);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
    width: 138px;
    max-width: 138px;
    padding-right: 0.52rem;
  }
}

/* Roadmaps interaction tightening: zoom, focus, and collision-free timeline rails */
body.app-dashboard #section-roadmaps .roadmaps-year-focus-current,
body.app-dashboard #section-roadmaps .roadmaps-year-fullscreen-toggle {
  min-height: 42px;
}

body.app-dashboard #section-roadmaps .roadmaps-year-zoom-controls {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem;
  gap: 0.16rem;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #f8fbff;
}

body.app-dashboard #section-roadmaps .roadmaps-year-zoom-controls button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2b426a;
  padding: 0.36rem 0.62rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-year-zoom-controls button:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-zoom-controls button:focus-visible {
  background: #edf4ff;
  color: #075ff0;
  outline: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-zoom-controls button.is-active {
  background: #075ff0;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 95, 240, 0.16);
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
  border-radius: 10px;
  background: #ffffff;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  --roadmaps-year-line-y: 214px;
  isolation: isolate;
  min-height: var(--roadmaps-year-canvas-height, 430px);
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines--month {
  z-index: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-track-line {
  top: var(--roadmaps-year-line-y);
  z-index: 1;
  background: #b8c6dd;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month {
  z-index: 4;
  pointer-events: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-line {
  top: 0;
  bottom: 0;
  border-left: 3px solid #075ff0;
  z-index: 2;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-pill {
  top: calc(var(--roadmaps-year-line-y) - 2.85rem);
  z-index: 18;
  border: 0;
  border-radius: 5px;
  background: #075ff0;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 95, 240, 0.18);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block {
  left: var(--roadmaps-year-block-left, 0);
  top: var(--roadmaps-year-block-top, calc(var(--roadmaps-year-line-y) + 30px));
  width: var(--roadmaps-year-block-width, 276px);
  min-width: 0;
  height: 104px;
  min-height: 104px;
  box-sizing: border-box;
  transform: none;
  overflow: hidden;
  align-content: center;
  gap: 0.26rem;
  padding: 0.78rem 2.75rem 0.76rem 1rem;
  z-index: 10;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-block:focus-visible {
  z-index: 14;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-selected {
  z-index: 16;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-title {
  display: -webkit-box;
  min-width: 0;
  padding-right: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #071b4d;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.16;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-window,
body.app-dashboard #section-roadmaps .roadmaps-year-block-current {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.18;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-completed::after {
  z-index: 2;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break {
  top: var(--roadmaps-year-break-top, calc(var(--roadmaps-year-line-y) + 150px));
  min-height: 46px;
  height: 46px;
  z-index: 8;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  --roadmaps-year-milestone-top: calc(14px + (var(--roadmaps-year-milestone-row, 0) * 62px));
  top: var(--roadmaps-year-milestone-top);
  width: var(--roadmaps-year-milestone-width, 166px);
  max-width: var(--roadmaps-year-milestone-width, 166px);
  min-height: 54px;
  padding: 0.52rem 0.66rem 0.5rem 1.52rem;
  z-index: 12;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone::after {
  top: calc(100% + 2px);
  height: max(12px, calc(var(--roadmaps-year-line-y) - var(--roadmaps-year-milestone-top) - 64px));
  z-index: -1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title {
  font-size: 0.74rem;
  line-height: 1.12;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  margin-top: 0.05rem;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-zoom-controls {
    order: 4;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
    padding: 0.85rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
    --roadmaps-year-line-y: 204px;
    min-height: var(--roadmaps-year-canvas-height, 410px);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-block {
    height: 100px;
    min-height: 100px;
    padding: 0.7rem 2.35rem 0.68rem 0.78rem;
  }

body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  width: var(--roadmaps-year-milestone-width, 156px);
  max-width: var(--roadmaps-year-milestone-width, 156px);
  }
}

/* Year roadmap layout hardening */
body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
  border: 1px solid #dbe4f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(21, 37, 64, 0.035);
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-axis,
body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  width: max(100%, var(--roadmaps-year-layout-width, 1720px));
  min-width: var(--roadmaps-year-layout-width, 1720px);
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
  min-height: var(--roadmaps-year-canvas-height, 430px);
  isolation: isolate;
}

body.app-dashboard #section-roadmaps .roadmaps-year-month-track-line {
  top: var(--roadmaps-year-line-y);
  z-index: 2;
  background: #b9c5d8;
}

body.app-dashboard #section-roadmaps .roadmaps-year-gridlines--month {
  z-index: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month {
  z-index: auto;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-line {
  top: 0;
  bottom: 0;
  border-left: 3px solid #075ff0;
  z-index: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-now--month .roadmaps-year-now-pill {
  top: var(--roadmaps-year-now-pill-top, calc(var(--roadmaps-year-line-y) - 2.9rem));
  z-index: 20;
  border: 0;
  border-radius: 5px;
  background: #075ff0;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 95, 240, 0.18);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block {
  left: var(--roadmaps-year-block-left, 0);
  top: var(--roadmaps-year-block-top, calc(var(--roadmaps-year-line-y) - 54px));
  width: var(--roadmaps-year-block-width, 286px);
  height: var(--roadmaps-year-block-height, 108px);
  min-height: var(--roadmaps-year-block-height, 108px);
  min-width: 0;
  box-sizing: border-box;
  transform: none;
  overflow: hidden;
  align-content: center;
  gap: 0.28rem;
  padding: 0.78rem 2.7rem 0.76rem 1rem;
  background: linear-gradient(180deg, #fdfffe 0%, #f7fcfa 100%);
  z-index: 12;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-current {
  border-color: #075ff0;
  background: #eef5ff;
  box-shadow: inset 5px 0 0 #075ff0, 0 16px 28px rgba(7, 95, 240, 0.12);
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-upcoming {
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-block:focus-visible {
  z-index: 18;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block.is-selected {
  z-index: 19;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-title {
  display: -webkit-box;
  min-width: 0;
  padding-right: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #071b4d;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.16;
  white-space: normal;
}

body.app-dashboard #section-roadmaps .roadmaps-year-block-window,
body.app-dashboard #section-roadmaps .roadmaps-year-block-current {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.18;
}

body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month.is-zoom-fit .roadmaps-year-block-current {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-break {
  top: var(--roadmaps-year-break-top, calc(var(--roadmaps-year-line-y) + 150px));
  min-height: 46px;
  height: 46px;
  z-index: 9;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
  --roadmaps-year-milestone-top: calc(
    var(--roadmaps-year-milestone-rail-top, 18px) +
    (var(--roadmaps-year-milestone-row, 0) * var(--roadmaps-year-milestone-row-height, 72px))
  );
  top: var(--roadmaps-year-milestone-top);
  width: var(--roadmaps-year-milestone-width, 184px);
  max-width: var(--roadmaps-year-milestone-width, 184px);
  min-height: 58px;
  border: 1px solid #ffd9d4;
  border-radius: 8px;
  background: #ffffff;
  color: #071b4d;
  padding: 0.54rem 0.7rem 0.52rem 1.56rem;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  text-align: left;
  box-shadow: 0 10px 18px rgba(255, 90, 69, 0.08);
  transform: translateX(-50%);
  overflow: visible;
  z-index: 7;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone:hover,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone:focus-visible,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone.is-selected {
  z-index: 11;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 2px;
  height: max(10px, calc(var(--roadmaps-year-line-y) - var(--roadmaps-year-milestone-top) - 68px));
  background: #ff5a45;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin {
  position: absolute;
  left: 0.62rem;
  top: 0.76rem;
  width: 0.54rem;
  height: 0.54rem;
  border: 2px solid #ff5a45;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 90, 69, 0.1);
  transform: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin::after {
  content: none;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title,
body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  position: static;
  width: auto;
  margin: 0;
  transform: none;
  text-align: left;
  z-index: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-pin {
  z-index: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.12;
  white-space: normal;
}

body.app-dashboard #section-roadmaps .roadmaps-year-milestone-date {
  color: #ff5a45;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail {
  grid-template-columns: 50px minmax(0, 1fr) minmax(260px, auto);
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-side {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-year-detail-actions {
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-side {
    grid-column: 2;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
    padding: 0.84rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-block {
    padding: 0.72rem 2.25rem 0.7rem 0.82rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
    width: var(--roadmaps-year-milestone-width, 160px);
    max-width: var(--roadmaps-year-milestone-width, 160px);
    min-height: 56px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail-side {
    grid-column: 1;
  }
}

/* Current identity is text in the source HTML; CSS never draws a logo. */
.nav-logo,
.onboarding-brand,
.signup-onboarding__brand,
.feedback-flow-brand,
.student-year-transition-brand {
  --pf-logo-blue: #075ff0;
  --pf-logo-blue-dark: #0454d8;
  --pf-logo-ink: #071b4d;
}

.nav-logo {
  gap: 0.58rem;
}

.nav-logo-mark {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, var(--pf-logo-blue, #075ff0), var(--pf-logo-blue-dark, #0454d8)) !important;
  flex: 0 0 32px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(7, 95, 240, 0.28) !important;
}

.nav-logo-mark::before,
.nav-logo-mark::after {
  content: none !important;
}



.nav-logo-text,
.onboarding-brand-text,
.signup-onboarding__brand-text {
  --pf-logo-font-size: 1.08rem;
  display: inline-flex;
  align-items: baseline;
  color: var(--pf-logo-ink);
  font-size: var(--pf-logo-font-size) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em;
  line-height: 1;
}

.nav-logo-text::before,
.onboarding-brand-text::before,
.signup-onboarding__brand-text::before {
  content: none !important;
}

.nav-logo-text::after,
.onboarding-brand-text::after,
.signup-onboarding__brand-text::after {
  content: none !important;
}

.nav-logo-flow {
  color: var(--pf-logo-blue, #075ff0);
  font-weight: 600;
}

@media (max-width: 768px) {
  body.app-dashboard .nav-logo-text,
  body.clinician-shell .nav-logo-text {
    display: none !important;
  }
}

/* Shared student top nav: keep Messages and profile pill consistent everywhere. */
body.app-dashboard .navbar-app .nav-links {
  align-items: center;
  gap: 0.78rem;
}

body.app-dashboard .navbar-app .nav-links .nav-messages {
  display: inline-flex;
  align-items: center;
}

body.app-dashboard .navbar-app .nav-links .nav-messages .dm-trigger {
  width: auto;
  height: auto;
  min-width: 58px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #075ee8;
  box-shadow: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 500;
  line-height: 1;
}

body.app-dashboard .navbar-app .nav-links .nav-messages .dm-trigger:hover,
body.app-dashboard .navbar-app .nav-links .nav-messages .dm-trigger.is-active {
  background: #eef5ff;
  color: #075ee8;
}

body.app-dashboard .navbar-app .nav-links .dm-trigger-text {
  display: block;
  color: #075ee8;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

body.app-dashboard .navbar-app .dm-trigger-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

body.app-dashboard .navbar-app .nav-profile-trigger {
  width: auto;
  height: auto;
  padding: 3px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #071637;
}

body.app-dashboard .navbar-app .nav-profile-trigger:hover {
  background: transparent;
}

body.app-dashboard .navbar-app .nav-profile-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid #e6edf8;
  border-radius: 50%;
  background: #eef5ff;
  color: #075ee8;
  box-shadow: 0 8px 18px rgba(7, 22, 55, 0.08);
}

body.app-dashboard .navbar-app .nav-profile-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.08;
}

body.app-dashboard .navbar-app .nav-profile-id-name {
  color: #071637;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

body.app-dashboard .navbar-app .nav-profile-id-role {
  margin-top: 2px;
  color: #6b7c98;
  font-size: 12px;
  font-weight: 500;
}

body.app-dashboard .navbar-app .nav-profile-caret {
  color: #70819e;
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 720px) {
  body.app-dashboard .navbar-app .nav-profile-id,
  body.app-dashboard .navbar-app .nav-profile-caret {
    display: none;
  }

  body.app-dashboard .navbar-app .nav-links {
    gap: 0.48rem;
  }
}

/* Shared student shell: consistent chrome and gutters across student pages.
   Premium V1 (approved 2026-09-02): white canvas, hairline rules, one 36px
   control metric, search dead-centred in a 3-column app bar. */
body.app-dashboard.student-shell-unified {
  background: #ffffff;
}

body.app-dashboard.student-shell-unified .navbar-app {
  background: #ffffff;
  border-bottom: 1px solid #e7ecf3;
  box-shadow: none;
  transition: box-shadow 140ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

body.app-dashboard.student-shell-unified .navbar-app.is-scrolled {
  box-shadow: 0 1px 0 #d8e0ec, 0 4px 14px -8px rgba(16, 26, 46, 0.12);
}

/* The 3-column app-bar grid (brand · search · actions) is desktop/tablet
   chrome only — its column minimums would force a ~700px floor on phones,
   where the compact one-row flex navbar (or a mobhead) owns the header. */
@media (min-width: 769px) {
  body.app-dashboard.student-shell-unified .navbar-app .nav-container {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(300px, 560px) minmax(200px, 1fr);
    align-items: center;
    min-height: 60px;
    padding: 0 1.25rem 0 1rem;
    gap: 1rem;
  }
}

body.app-dashboard.student-shell-unified .pf-nav-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  min-width: 0;
  flex: 0 1 auto;
}

body.app-dashboard.student-shell-unified .navbar-app .nav-logo {
  flex: 0 1 auto;
  min-width: 0;
  gap: 0.62rem;
}

body.app-dashboard.student-shell-unified .navbar-app .nav-logo-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #075ff0, #0454d8);
  box-shadow: 0 4px 12px rgba(7, 95, 240, 0.28);
}

body.app-dashboard.student-shell-unified .navbar-app .nav-logo-mark::before,
body.app-dashboard.student-shell-unified .navbar-app .nav-logo-mark::after {
  content: none !important;
}

body.app-dashboard.student-shell-unified .navbar-app .nav-logo-text {
  color: #071637;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0;
}

body.app-dashboard.student-shell-unified .nav-search {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

body.app-dashboard.student-shell-unified .nav-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background-color: #ffffff;
  color: #101a2e;
  box-shadow: none;
  transition: border-color 140ms cubic-bezier(0.3, 0.7, 0.4, 1), box-shadow 140ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

body.app-dashboard.student-shell-unified .nav-search input:hover {
  border-color: #c5d0e2;
}

body.app-dashboard.student-shell-unified .nav-search input:focus {
  outline: none;
  border-color: #1f6fd6;
  box-shadow: 0 0 0 3px rgba(31, 111, 214, 0.16);
}

body.app-dashboard.student-shell-unified .navbar-app .nav-links {
  flex: 0 0 auto;
  justify-self: end;
  margin-left: 0;
  border-left: 0;
  padding-left: 0;
  align-items: center;
  gap: 0.62rem;
}

body.app-dashboard.student-shell-unified .app-sidebar {
  width: 264px;
  background: #ffffff;
  border-right: 1px solid #e7ecf3;
  box-shadow: none;
  padding: 14px 12px 10px;
}

body.app-dashboard.student-shell-unified .app-content {
  width: calc(100% - 264px);
  margin-left: 264px;
  padding: 2.25rem 2.5rem 4.5rem;
  background: #ffffff;
}

body.app-dashboard.student-shell-unified .app-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

body.app-dashboard.student-shell-unified .app-sidebar-link {
  min-height: 36px;
  border-radius: 8px;
}

body.app-dashboard.student-shell-unified .app-sidebar-link--active {
  background: #eaf2fd;
  color: #1559b0;
  box-shadow: none;
}

/* Collapsed icon rail (user choice, desktop only, default expanded).
   Labels are hidden visually but stay in the accessibility tree; tooltips
   carry each label for pointer users (set by shared/student-sidebar.js). */
@media (min-width: 1024px) {
  body.app-dashboard.student-shell-unified.pf-nav-collapsed .app-sidebar {
    width: 68px;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.app-dashboard.student-shell-unified.pf-nav-collapsed .app-content {
    width: calc(100% - 68px);
    margin-left: 68px;
  }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  body.app-dashboard.student-shell-unified .app-sidebar {
    width: 248px;
  }

  body.app-dashboard.student-shell-unified .app-content {
    width: calc(100% - 248px);
    margin-left: 248px;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

/* Tablet / narrow desktop: the sidebar becomes a drawer behind the top-bar
   menu button, with scrim, Escape and click-outside (shared/student-sidebar.js).
   Below 769px the drawer retires in favour of the bottom tab bar. */
@media (max-width: 1023px) and (min-width: 769px) {
  body.app-dashboard.student-shell-unified .navbar-app .nav-container {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.62rem;
  }

  body.app-dashboard.student-shell-unified .pf-drawer-btn {
    display: grid;
  }

  body.app-dashboard.student-shell-unified .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: auto;
    z-index: 1300;
    height: 100vh;
    height: 100dvh;
    padding-top: 20px !important;
    transform: translateX(-102%);
    transition: transform 210ms cubic-bezier(0.32, 0.72, 0.28, 1);
  }

  body.app-dashboard.student-shell-unified .app-sidebar.pf-drawer-open {
    transform: none;
    box-shadow: 0 12px 32px -12px rgba(16, 26, 46, 0.18), 0 2px 8px rgba(16, 26, 46, 0.06);
  }

  body.app-dashboard.student-shell-unified .app-content {
    width: 100%;
    margin-left: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-profile-id,
  body.app-dashboard.student-shell-unified .navbar-app .nav-profile-caret {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-dashboard.student-shell-unified .app-sidebar {
    transition: none;
  }
}

@media (max-width: 768px) {
  body.app-dashboard.student-shell-unified .navbar-app .nav-container {
    min-height: 58px;
    padding: 0.55rem 0.85rem;
    gap: 0.62rem;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-logo {
    flex: 0 1 auto;
  }

  body.app-dashboard.student-shell-unified .nav-search {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.app-dashboard.student-shell-unified .nav-search input {
    height: 36px;
    font-size: 0.86rem;
  }

  body.app-dashboard.student-shell-unified .app-sidebar {
    display: none;
  }

  body.app-dashboard.student-shell-unified .app-content {
    width: 100%;
    margin-left: 0;
    padding: 1rem 0.9rem calc(5.8rem + env(safe-area-inset-bottom, 0px));
  }

  body.app-dashboard.student-shell-unified .app-inner {
    max-width: none;
  }
}

/* Placements overview mockup redesign */
body.app-dashboard:has(#section-placement.is-active) .app-content {
  background: #ffffff !important;
}

body.app-dashboard:not(.pf-frame-v1):has(#section-placement.is-active) .app-inner {
  max-width: none !important;
  padding: 0 clamp(1.25rem, 2.2vw, 2rem) 2.4rem !important;
}

body.app-dashboard:has(#section-placement.is-active) .today-header {
  margin-bottom: 1.35rem;
}

body.app-dashboard #section-placement.placement-page {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.app-dashboard #section-placement svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.app-dashboard #section-placement .placement-overview-toolbar {
  min-height: 64px;
  margin-bottom: 1rem;
  padding: 0.72rem 1rem;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.app-dashboard #section-placement .placement-tabs {
  min-width: 0;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 1.28rem;
}

body.app-dashboard #section-placement .placement-tab {
  min-height: 38px;
  padding: 0.4rem 0.12rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #24375f;
  font-size: 0.88rem;
  font-weight: 500;
}

body.app-dashboard #section-placement .placement-tab.is-active {
  color: #075ff0;
  border-bottom-color: #075ff0;
}

body.app-dashboard #section-placement .placement-overview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.72rem;
  min-width: min(100%, 470px);
}

body.app-dashboard #section-placement .placement-change-request-open {
  white-space: nowrap;
}

body.app-dashboard #section-placement .placement-change-request-open--mobile {
  display: none;
}

body.app-dashboard #section-placement .placement-change-request-panel {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  background: #f8fbff;
}

body.app-dashboard #section-placement .placement-change-request-panel-head,
body.app-dashboard #section-placement .placement-change-request-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.app-dashboard #section-placement .placement-change-request-panel h3,
body.app-dashboard #section-placement .placement-change-request-card p {
  margin: 0;
}

body.app-dashboard #section-placement .placement-change-request-panel h3 {
  margin-top: 0.14rem;
  color: #10203d;
  font-size: 1rem;
}

body.app-dashboard #placement-change-request-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

body.app-dashboard .placement-change-request-feedback {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #efc8c8;
  border-radius: 8px;
  background: #fff3f3;
  color: #8f2929;
  font-size: 0.86rem;
  line-height: 1.4;
}

body.app-dashboard #section-placement .placement-change-request-open[aria-busy="true"] {
  cursor: wait;
}

body.app-dashboard .placement-change-request-card {
  padding: 0.85rem 0.9rem;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fff;
}

body.app-dashboard .placement-change-request-route {
  color: #172b4d;
  font-weight: 600;
}

body.app-dashboard .placement-change-request-meta,
body.app-dashboard .placement-change-request-decision {
  margin-top: 0.35rem !important;
  color: #63708a;
  font-size: 0.84rem;
}

body.app-dashboard .placement-change-request-status {
  flex: none;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #46546c;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: capitalize;
}

body.app-dashboard .placement-change-request-status.is-pending {
  background: #fff4d8;
  color: #895b00;
}

body.app-dashboard .placement-change-request-status.is-approved {
  background: #e7f8ef;
  color: #14633a;
}

body.app-dashboard .placement-change-request-status.is-rejected {
  background: #ffeded;
  color: #9e2e2e;
}

body.app-dashboard .placement-change-request-card-actions {
  margin-top: 0.65rem;
}

body.app-dashboard .placement-change-request-empty {
  margin: 0;
  color: #66748c;
  font-size: 0.88rem;
}

body.app-dashboard .placement-change-modal {
  width: min(620px, 92vw);
  height: auto;
  max-height: 90vh;
  min-width: 0;
}

body.app-dashboard .placement-change-form {
  padding: 1.2rem 1.4rem 0;
  overflow-y: auto;
  min-width: 0;
}

body.app-dashboard .placement-change-form > label {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 1rem;
  min-width: 0;
  color: #172b4d;
  font-size: 0.88rem;
  font-weight: 500;
}

body.app-dashboard .placement-change-form select,
body.app-dashboard .placement-change-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #fff;
  color: #162640;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

body.app-dashboard .placement-change-form textarea {
  resize: vertical;
  min-height: 118px;
}

body.app-dashboard .placement-change-form small {
  color: #6c7990;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

body.app-dashboard .placement-change-form-status {
  min-height: 1.25rem;
  color: #aa2d2d;
  font-size: 0.84rem;
}

body.app-dashboard .placement-change-form-status.is-success {
  color: #14633a;
}

body.app-dashboard .placement-change-form-actions {
  justify-content: flex-end;
  margin: 0 -1.4rem;
}

body.app-dashboard #section-placement .placement-search {
  flex: 1 1 240px;
  max-width: 310px;
}

body.app-dashboard #section-placement .placement-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #dfe6f2;
  border-radius: 6px;
  background-color: #ffffff;
  color: #10203d;
  padding: 0.55rem 0.82rem 0.55rem 2.42rem;
  font-size: 0.86rem;
  box-shadow: none;
}

body.app-dashboard #section-placement .placement-search input:focus {
  border-color: #b9cdfc;
  box-shadow: 0 0 0 3px rgba(7, 95, 240, 0.1);
}

body.app-dashboard #section-placement .placement-year-select {
  height: 40px;
  border: 1px solid #dfe6f2;
  border-radius: 6px;
  background: #ffffff;
  color: #243a63;
  padding: 0 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

body.app-dashboard #section-placement .placement-year-select svg {
  width: 17px;
  height: 17px;
  color: #294d91;
}

body.app-dashboard #section-placement .placement-year-select select {
  min-width: 118px;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  outline: none;
  cursor: pointer;
}

body.app-dashboard #section-placement .placement-year-select-caret {
  color: #466087;
  font-size: 0.95rem;
  pointer-events: none;
}

body.app-dashboard #section-placement .placement-view-panel {
  margin-top: 0;
}

body.app-dashboard #section-placement .placement-card-grid {
  display: block;
  padding: 0;
}

body.app-dashboard #section-placement .placement-overview-layout {
  display: grid;
  gap: 1rem;
}

body.app-dashboard #section-placement .placement-current-overview,
body.app-dashboard #section-placement .placement-history-card,
body.app-dashboard #section-placement .placement-glance-card {
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

body.app-dashboard #section-placement .placement-current-overview {
  padding: 1.2rem 1.45rem 1.32rem;
}

body.app-dashboard #section-placement .placement-current-overview[data-placement-id],
body.app-dashboard #section-placement .placement-history-row[data-placement-id] {
  cursor: pointer;
}

body.app-dashboard #section-placement .placement-current-overview[data-placement-id]:hover {
  border-color: #c9d7ee;
  box-shadow: 0 12px 26px rgba(20, 36, 66, 0.05);
}

body.app-dashboard #section-placement .placement-current-overview[data-placement-id]:focus-visible,
body.app-dashboard #section-placement .placement-history-row[data-placement-id]:focus-visible {
  outline: 3px solid rgba(7, 95, 240, 0.16);
  outline-offset: 3px;
}

body.app-dashboard #section-placement .placement-current-overview--empty {
  min-height: 148px;
  display: grid;
  align-items: center;
}

body.app-dashboard #section-placement .placement-overview-section-label {
  margin: 0;
  color: #071b4d;
  font-size: 0.9rem;
  font-weight: 500;
}

body.app-dashboard #section-placement .placement-current-topline,
body.app-dashboard #section-placement .placement-current-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body.app-dashboard #section-placement .placement-current-actions {
  display: flex;
  align-items: center;
  gap: 0.64rem;
}

body.app-dashboard #section-placement .placement-current-action {
  min-height: 42px;
  min-width: 168px;
  border-radius: 6px;
  padding: 0.62rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

body.app-dashboard #section-placement .placement-current-action svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-placement .placement-current-summary {
  margin-top: 0.62rem;
  align-items: center;
}

body.app-dashboard #section-placement .placement-current-copy {
  flex: 1 1 auto;
  min-width: 0;
}

body.app-dashboard #section-placement .placement-current-copy h3,
body.app-dashboard #section-placement .placement-current-overview--empty h3 {
  margin: 0;
  color: #071b4d;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

body.app-dashboard #section-placement .placement-current-empty-copy {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: #566b91;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.app-dashboard #section-placement .placement-current-meta {
  margin-top: 0.56rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.44rem 1rem;
  color: #344b76;
  font-size: 0.82rem;
  font-weight: 500;
}

body.app-dashboard #section-placement .placement-current-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

body.app-dashboard #section-placement .placement-current-meta svg {
  width: 16px;
  height: 16px;
  color: #294d91;
}

body.app-dashboard #section-placement .placement-current-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.58rem;
}

body.app-dashboard #section-placement .placement-card-status {
  min-height: 32px;
  border-radius: 6px;
  padding: 0.34rem 0.72rem;
  border: 1px solid #dbe4f1;
  background: #f7faff;
  color: #23406e;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.app-dashboard #section-placement .placement-card-status--current,
body.app-dashboard #section-placement .placement-card-status--week {
  border-color: #cadcff;
  background: #f2f7ff;
  color: #075ff0;
}

body.app-dashboard #section-placement .placement-card-status--completed {
  border-color: #bee8d4;
  background: #effaf5;
  color: #147844;
}

body.app-dashboard #section-placement .placement-card-status--upcoming {
  border-color: #dfe6f2;
  background: #ffffff;
  color: #425676;
}

body.app-dashboard #section-placement .placement-card-status--warning {
  border-color: #ffd9ab;
  background: #fff7ec;
  color: #e66c00;
}

body.app-dashboard #section-placement .placement-overview-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #d9e7ff;
  border-radius: 999px;
  background: #f3f8ff;
  color: #075ff0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.app-dashboard #section-placement .placement-overview-icon svg {
  width: 19px;
  height: 19px;
}

body.app-dashboard #section-placement .placement-overview-icon--large {
  width: 58px;
  height: 58px;
  margin-right: 1rem;
}

body.app-dashboard #section-placement .placement-overview-icon--large svg {
  width: 30px;
  height: 30px;
}

body.app-dashboard #section-placement .placement-overview-icon--surgery {
  border-color: #cfe0ff;
  background: #f2f7ff;
  color: #075ff0;
}

body.app-dashboard #section-placement .placement-overview-icon--paediatrics {
  border-color: #ffd9ab;
  background: #fff7ec;
  color: #f97316;
}

body.app-dashboard #section-placement .placement-overview-icon--gp,
body.app-dashboard #section-placement .placement-overview-icon--community {
  border-color: #cbeee8;
  background: #f0fdfa;
  color: #0f9488;
}

body.app-dashboard #section-placement .placement-overview-icon--women {
  border-color: #f5d0fe;
  background: #fdf4ff;
  color: #a21caf;
}

body.app-dashboard #section-placement .placement-overview-icon--medicine {
  border-color: #d9e7ff;
  background: #f3f8ff;
  color: #075ff0;
}

body.app-dashboard #section-placement .placement-overview-icon--emergency {
  border-color: #fecaca;
  background: #fff1f2;
  color: #e11d48;
}

body.app-dashboard #section-placement .placement-overview-icon--psychiatry {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

body.app-dashboard #section-placement .placement-overview-icon--oncology {
  border-color: #e9d5ff;
  background: #faf5ff;
  color: #7e22ce;
}

body.app-dashboard #section-placement .placement-overview-icon--academic {
  border-color: #fde68a;
  background: #fef9c3;
  color: #ca8a04;
}

body.app-dashboard #section-placement .placement-overview-week-rail {
  position: relative;
  margin-top: 1.42rem;
  padding-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 0.72rem;
}

body.app-dashboard #section-placement .placement-overview-week-rail::before {
  content: "";
  position: absolute;
  left: 4.2%;
  right: 4.2%;
  top: 18px;
  height: 1px;
  background: #c8d3e5;
}

body.app-dashboard #section-placement .placement-overview-week {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  text-align: center;
  color: #243a63;
}

body.app-dashboard #section-placement .placement-overview-week-dot {
  width: 26px;
  height: 26px;
  border: 1px solid #cbd7ea;
  border-radius: 999px;
  background: #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

body.app-dashboard #section-placement .placement-overview-week.is-completed .placement-overview-week-dot {
  border-color: #1c9b5a;
  background: #ffffff;
  color: #1c9b5a;
  box-shadow: 0 0 0 2px rgba(28, 155, 90, 0.08);
}

body.app-dashboard #section-placement .placement-overview-week.is-current .placement-overview-week-dot {
  border: 4px solid #075ff0;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(7, 95, 240, 0.13);
}

body.app-dashboard #section-placement .placement-overview-week strong {
  margin-top: 0.08rem;
  color: #071b4d;
  font-size: 0.8rem;
  font-weight: 700;
}

body.app-dashboard #section-placement .placement-overview-week small {
  color: #486089;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
}

body.app-dashboard #section-placement .placement-overview-week.is-current strong,
body.app-dashboard #section-placement .placement-overview-week.is-current small {
  color: #075ff0;
}

body.app-dashboard #section-placement .placement-overview-progress-track {
  height: 7px;
  margin-top: 1.35rem;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}

body.app-dashboard #section-placement .placement-overview-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #075ff0;
}

body.app-dashboard #section-placement .placement-overview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 1.25rem;
  align-items: start;
}

body.app-dashboard #section-placement .placement-history-card {
  min-width: 0;
  overflow: hidden;
}

body.app-dashboard #section-placement .placement-history-card h3,
body.app-dashboard #section-placement .placement-glance-card h3 {
  margin: 0;
  color: #071b4d;
  font-size: 1rem;
  font-weight: 600;
}

body.app-dashboard #section-placement .placement-history-card > h3 {
  padding: 1rem 1.08rem 0.7rem;
}

body.app-dashboard #section-placement .placement-history-table {
  border-top: 0;
}

body.app-dashboard #section-placement .placement-history-head,
body.app-dashboard #section-placement .placement-history-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 1fr) minmax(150px, 1fr) 120px 108px 34px;
  align-items: center;
  gap: 0.7rem;
}

body.app-dashboard #section-placement .placement-history-head {
  min-height: 40px;
  padding: 0 1.08rem;
  border-bottom: 1px solid #e7edf6;
  color: #071b4d;
  font-size: 0.74rem;
  font-weight: 600;
}

body.app-dashboard #section-placement .placement-history-group h4 {
  margin: 0;
  padding: 0.72rem 1.08rem;
  border-bottom: 1px solid #e7edf6;
  color: #405982;
  font-size: 0.86rem;
  font-weight: 600;
  background: #fbfdff;
}

body.app-dashboard #section-placement .placement-history-row {
  width: 100%;
  min-height: 58px;
  padding: 0 1.08rem;
  border-bottom: 1px solid #e7edf6;
  background: #ffffff;
}

body.app-dashboard #section-placement .placement-history-row:hover {
  background: #fbfdff;
}

body.app-dashboard #section-placement .placement-history-row[data-placement-id]:hover {
  background: #f8fbff;
}

body.app-dashboard #section-placement:not(.is-showing-older) .placement-history-row.is-older-placement {
  display: none;
}

body.app-dashboard #section-placement .placement-history-cell {
  min-width: 0;
  color: #40547c;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard #section-placement .placement-history-cell--placement {
  display: flex;
  align-items: center;
  gap: 0.76rem;
  color: #071b4d;
}

body.app-dashboard #section-placement .placement-history-cell--placement strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.82rem;
  line-height: 1.18;
}

body.app-dashboard #section-placement .placement-history-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #294b80;
  font-weight: 600;
}

body.app-dashboard #section-placement .placement-history-progress-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #1c9b5a;
  border-radius: 999px;
  color: #1c9b5a;
  display: inline-grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
}

body.app-dashboard #section-placement .placement-history-progress-icon.is-upcoming {
  border-color: #075ff0;
  box-shadow: inset 0 0 0 4px #ffffff, 0 0 0 2px rgba(7, 95, 240, 0.09);
}

body.app-dashboard #section-placement .placement-history-row-action {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #294b80;
  display: grid;
  place-items: center;
  font-size: 1.34rem;
  line-height: 1;
  cursor: pointer;
}

body.app-dashboard #section-placement .placement-history-row-action:hover,
body.app-dashboard #section-placement .placement-history-row-action:focus-visible {
  background: #eef5ff;
  outline: none;
}

body.app-dashboard #section-placement .placement-history-empty--overview {
  padding: 1.2rem 1.08rem;
  border-top: 1px solid #e7edf6;
  color: #667796;
  font-size: 0.88rem;
}

body.app-dashboard #section-placement .placement-older-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: #ffffff;
  color: #075ff0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-placement .placement-older-button:hover {
  background: #f8fbff;
}

body.app-dashboard #section-placement .placement-glance-card {
  padding: 1rem 1.05rem;
}

body.app-dashboard #section-placement .placement-glance-stats {
  margin-top: 1rem;
  display: grid;
  gap: 0.92rem;
}

body.app-dashboard #section-placement .placement-glance-stat {
  display: grid;
  grid-template-columns: 42px auto 1fr;
  align-items: center;
  gap: 0.72rem;
}

body.app-dashboard #section-placement .placement-glance-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef5ff;
  position: relative;
}

body.app-dashboard #section-placement .placement-glance-icon::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid #075ff0;
  border-radius: 5px;
}

body.app-dashboard #section-placement .placement-glance-icon--green {
  background: #eefaf4;
}

body.app-dashboard #section-placement .placement-glance-icon--green::before {
  border-color: #1c9b5a;
  border-radius: 999px;
}

body.app-dashboard #section-placement .placement-glance-icon--blue-ring::before {
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px #ffffff;
}

body.app-dashboard #section-placement .placement-glance-icon--orange {
  background: #fff4e5;
}

body.app-dashboard #section-placement .placement-glance-icon--orange::before {
  border-color: #f97316;
  border-radius: 999px;
}

body.app-dashboard #section-placement .placement-glance-stat strong {
  color: #071b4d;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
}

body.app-dashboard #section-placement .placement-glance-stat span:last-child {
  color: #486089;
  font-size: 0.82rem;
  font-weight: 500;
}

body.app-dashboard #section-placement .placement-next-up {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e7edf6;
}

body.app-dashboard #section-placement .placement-next-up h4 {
  margin: 0 0 0.7rem;
  color: #071b4d;
  font-size: 0.92rem;
  font-weight: 600;
}

body.app-dashboard #section-placement .placement-next-card {
  width: 100%;
  min-height: 72px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #ffffff;
  color: #243a63;
  padding: 0.72rem;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 0.65rem;
  align-items: center;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

body.app-dashboard #section-placement .placement-next-card.is-disabled {
  cursor: default;
  opacity: 0.72;
}

body.app-dashboard #section-placement .placement-next-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #eef5ff;
  color: #075ff0;
  display: grid;
  place-items: center;
}

body.app-dashboard #section-placement .placement-next-icon svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-placement .placement-next-card strong,
body.app-dashboard #section-placement .placement-next-card small {
  display: block;
}

body.app-dashboard #section-placement .placement-next-card strong {
  color: #071b4d;
  font-size: 0.84rem;
  font-weight: 700;
}

body.app-dashboard #section-placement .placement-next-card small {
  margin-top: 0.12rem;
  color: #52678d;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard #section-placement .placement-full-timetable-link {
  margin-top: 0.82rem;
  padding-top: 0.82rem;
  border-top: 1px solid #e7edf6;
  color: #075ff0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}

body.app-dashboard #section-placement .placement-full-timetable-link svg {
  width: 17px;
  height: 17px;
}

body.app-dashboard #section-placement .placement-empty {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #fbfdff;
  color: #52678d;
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  body.app-dashboard #section-placement .placement-overview-main {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-placement .placement-overview-side {
    order: -1;
  }

  body.app-dashboard #section-placement .placement-glance-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.app-dashboard #section-placement .placement-overview-toolbar,
  body.app-dashboard #section-placement .placement-current-topline,
  body.app-dashboard #section-placement .placement-current-summary {
    flex-direction: column;
    align-items: stretch;
  }

  body.app-dashboard #section-placement .placement-overview-actions,
  body.app-dashboard #section-placement .placement-current-actions,
  body.app-dashboard #section-placement .placement-current-chips {
    justify-content: flex-start;
  }

  body.app-dashboard #section-placement .placement-overview-actions {
    min-width: 0;
    width: 100%;
  }

  body.app-dashboard #section-placement .placement-search {
    max-width: none;
    /* full-width row of its own — flex-grow left a ~200px dead gap between
       the search and the year select on 390px screens */
    flex: 0 0 auto;
    width: 100%;
  }

  body.app-dashboard #section-placement .placement-overview-week-rail {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    row-gap: 1rem;
  }

  body.app-dashboard #section-placement .placement-overview-week-rail::before {
    display: none;
  }

  body.app-dashboard #section-placement .placement-history-head {
    display: none;
  }

  body.app-dashboard #section-placement .placement-history-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 0.3rem 0.72rem;
    padding: 0.85rem 1rem;
  }

  body.app-dashboard #section-placement .placement-history-cell:not(.placement-history-cell--placement):not(.placement-history-progress) {
    grid-column: 1;
    padding-left: 2.65rem;
  }

  body.app-dashboard #section-placement .placement-history-progress {
    grid-column: 1;
    padding-left: 2.65rem;
  }

  body.app-dashboard #section-placement .placement-history-row-action {
    grid-column: 2;
    grid-row: 1;
  }

  body.app-dashboard #section-placement .placement-glance-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.app-dashboard #section-placement .placement-change-request-open--mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin: 0 0 0.85rem;
  }
}

@media (max-width: 620px) {
  body.app-dashboard #section-placement .placement-change-request-open--mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin: 0 0 0.85rem;
  }

  body.app-dashboard #section-placement .placement-change-request-panel-head,
  body.app-dashboard #section-placement .placement-change-request-card-head {
    align-items: flex-start;
  }

  body.app-dashboard .placement-change-modal {
    width: 100%;
    max-width: 100vw;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    align-self: flex-end;
  }

  body.app-dashboard .placement-change-overlay {
    align-items: flex-end;
  }

  body.app-dashboard .placement-change-modal .induction-header > div {
    min-width: 0;
  }

  body.app-dashboard #section-placement .placement-tabs {
    width: 100%;
    overflow-x: auto;
    gap: 1rem;
  }

  body.app-dashboard #section-placement .placement-overview-actions,
  body.app-dashboard #section-placement .placement-current-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.app-dashboard #section-placement .placement-year-select,
  body.app-dashboard #section-placement .placement-current-action {
    width: 100%;
  }

  body.app-dashboard #section-placement .placement-overview-week-rail {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

body.app-dashboard #section-placement .placement-glance-stats {
    grid-template-columns: 1fr;
  }
}

/* Placement detail contrast redesign */
body.app-dashboard:has(#section-placement-details.is-active) .app-content {
  background: var(--pf-canvas, #fff) !important;
}

body.app-dashboard:not(.pf-frame-v1):has(#section-placement-details.is-active) .app-inner {
  max-width: none !important;
  padding: 0 clamp(1.25rem, 2.2vw, 2rem) 2.4rem !important;
}

body.app-dashboard #section-placement-details.placement-details-page {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.app-dashboard #section-placement-details svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.app-dashboard #section-placement-details .placement-details-header {
  margin: 0 0 1.15rem;
}

body.app-dashboard #section-placement-details .placement-details-header h2 {
  color: #071b4d;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0;
}

body.app-dashboard #section-placement-details .placement-details-header .card-subtitle {
  color: #4e6388;
  font-size: 0.98rem;
}

body.app-dashboard #section-placement-details .placement-details-breadcrumb {
  color: #65799d;
  font-size: 0.82rem;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-breadcrumb-link {
  color: #075ff0;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

body.app-dashboard #section-placement-details .placement-details-main,
body.app-dashboard #section-placement-details .placement-details-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-dashboard #section-placement-details .placement-details-hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid #d8e1f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(20, 36, 66, 0.06);
}

body.app-dashboard #section-placement-details .placement-details-hero-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #075ff0;
}

body.app-dashboard #section-placement-details .placement-details-info {
  position: static;
  inset: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  min-width: 0;
  padding: 0 0 0 0.2rem;
}

body.app-dashboard #section-placement-details .placement-details-title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

body.app-dashboard #section-placement-details .placement-details-info h3 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

body.app-dashboard #section-placement-details .placement-details-hero-site {
  margin: 0.2rem 0 0;
  color: #4b638b;
  font-size: 0.9rem;
  font-weight: 600;
}

body.app-dashboard #section-placement-details .placement-details-specialty-icon .placement-overview-icon,
body.app-dashboard #section-placement-details .placement-overview-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #d9e7ff;
  border-radius: 999px;
  background: #f3f8ff;
  color: #075ff0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.app-dashboard #section-placement-details .placement-details-specialty-icon .placement-overview-icon--large {
  width: 58px;
  height: 58px;
  margin: 0;
}

body.app-dashboard #section-placement-details .placement-overview-icon svg {
  width: 21px;
  height: 21px;
}

body.app-dashboard #section-placement-details .placement-details-specialty-icon .placement-overview-icon--large svg {
  width: 30px;
  height: 30px;
}

body.app-dashboard #section-placement-details .placement-overview-icon--surgery {
  border-color: #cfe0ff;
  background: #f2f7ff;
  color: #075ff0;
}

body.app-dashboard #section-placement-details .placement-overview-icon--paediatrics {
  border-color: #ffd9ab;
  background: #fff7ec;
  color: #f97316;
}

body.app-dashboard #section-placement-details .placement-overview-icon--gp,
body.app-dashboard #section-placement-details .placement-overview-icon--community {
  border-color: #cbeee8;
  background: #f0fdfa;
  color: #0f9488;
}

body.app-dashboard #section-placement-details .placement-overview-icon--women {
  border-color: #f5d0fe;
  background: #fdf4ff;
  color: #a21caf;
}

body.app-dashboard #section-placement-details .placement-overview-icon--medicine {
  border-color: #d9e7ff;
  background: #f3f8ff;
  color: #075ff0;
}

body.app-dashboard #section-placement-details .placement-overview-icon--emergency {
  border-color: #fecaca;
  background: #fff1f2;
  color: #e11d48;
}

body.app-dashboard #section-placement-details .placement-overview-icon--psychiatry {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

body.app-dashboard #section-placement-details .placement-overview-icon--oncology {
  border-color: #e9d5ff;
  background: #faf5ff;
  color: #7e22ce;
}

body.app-dashboard #section-placement-details .placement-overview-icon--academic {
  border-color: #fde68a;
  background: #fef9c3;
  color: #ca8a04;
}

body.app-dashboard #section-placement-details .placement-details-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem 0.95rem;
  color: #2e456f;
  font-size: 0.84rem;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-details-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

body.app-dashboard #section-placement-details .placement-details-meta-icon {
  min-width: 34px;
  min-height: 22px;
  border: 1px solid #d8e5f8;
  border-radius: 6px;
  background: #f3f7ff;
  color: #31558f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-details-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.app-dashboard #section-placement-details .placement-details-chip {
  min-height: 32px;
  border-radius: 6px;
  padding: 0.36rem 0.72rem;
  border: 1px solid #dbe4f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #23406e;
  background: #f7faff;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-details-chip--blue {
  border-color: #cadcff;
  background: #f2f7ff;
  color: #075ff0;
}

body.app-dashboard #section-placement-details .placement-details-chip--orange {
  border-color: #ffd9ab;
  background: #fff7ec;
  color: #e66c00;
}

body.app-dashboard #section-placement-details .placement-details-chip--green {
  border-color: #bee8d4;
  background: #effaf5;
  color: #147844;
}

body.app-dashboard #section-placement-details .placement-details-actions {
  z-index: 1;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
  align-content: start;
  gap: 0.62rem;
  min-width: 210px;
}

body.app-dashboard #section-placement-details .placement-details-actions .btn {
  min-height: 42px;
  border-radius: 6px;
  padding: 0.62rem 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  font-size: 0.86rem;
  font-weight: 600;
}

body.app-dashboard #section-placement-details .placement-details-actions .btn.secondary {
  border-color: #d8e1f0;
  background: #ffffff;
  color: #243a63;
}

body.app-dashboard #section-placement-details .placement-details-action-icon {
  width: 17px;
  height: 17px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  position: relative;
}

body.app-dashboard #section-placement-details .placement-details-action-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  border-top: 1.8px solid currentColor;
}

body.app-dashboard #section-placement-details .placement-details-action-icon--check {
  border-radius: 999px;
}

body.app-dashboard #section-placement-details .placement-details-action-icon--check::before {
  left: 4px;
  top: 3px;
  width: 6px;
  height: 9px;
  border-top: 0;
  border-left: 0;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(38deg);
}

body.app-dashboard #section-placement-details .placement-details-week-host {
  grid-column: 1 / -1;
  padding-top: 0.75rem;
  border-top: 1px solid #e6edf8;
}

body.app-dashboard #section-placement-details .placement-overview-week-rail {
  position: relative;
  margin: 0;
  padding-top: 0.48rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 0.72rem;
}

body.app-dashboard #section-placement-details .placement-overview-week-rail::before {
  content: "";
  position: absolute;
  left: 4.2%;
  right: 4.2%;
  top: 18px;
  height: 1px;
  background: #c8d3e5;
}

body.app-dashboard #section-placement-details .placement-overview-week {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  text-align: center;
  color: #243a63;
}

body.app-dashboard #section-placement-details .placement-overview-week-dot {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd7ea;
  border-radius: 999px;
  background: #ffffff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
}

body.app-dashboard #section-placement-details .placement-overview-week strong {
  color: #071b4d;
  font-size: 0.79rem;
  font-weight: 700;
}

body.app-dashboard #section-placement-details .placement-overview-week small {
  color: #52678d;
  font-size: 0.72rem;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-overview-week.is-completed .placement-overview-week-dot {
  border-color: #1c9b58;
  background: #ffffff;
  color: #1c9b58;
}

body.app-dashboard #section-placement-details .placement-overview-week.is-current .placement-overview-week-dot {
  border-color: #075ff0;
  background: #075ff0;
  box-shadow: 0 0 0 5px rgba(7, 95, 240, 0.12);
}

body.app-dashboard #section-placement-details .placement-details-tabs-card,
body.app-dashboard #section-placement-details .placement-details-card,
body.app-dashboard #section-placement-details .placement-details-panel {
  border: 1px solid #d8e1f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 36, 66, 0.04);
}

body.app-dashboard #section-placement-details .placement-details-tabs-card {
  padding: 0;
  overflow: hidden;
}

body.app-dashboard #section-placement-details .placement-details-tabs {
  margin: 0;
  padding: 0 1.1rem;
  min-height: 58px;
  border-bottom: 1px solid #d8e1f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

body.app-dashboard #section-placement-details .placement-subtab {
  min-height: 58px;
  padding: 0.1rem 0;
  border-bottom: 3px solid transparent;
  color: #24375f;
  font-size: 0.88rem;
  font-weight: 600;
}

body.app-dashboard #section-placement-details .placement-subtab.is-active {
  border-bottom-color: #075ff0;
  color: #075ff0;
}

body.app-dashboard #section-placement-details .placement-details-tab-panel {
  margin: 0;
  padding: 1rem;
}

body.app-dashboard #section-placement-details .placement-details-overview-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.app-dashboard #section-placement-details .placement-details-card {
  padding: 0;
  overflow: hidden;
}

body.app-dashboard #section-placement-details .placement-details-card--wide {
  grid-column: 1 / -1;
}

body.app-dashboard #section-placement-details .placement-details-card-heading,
body.app-dashboard #section-placement-details .placement-details-panel-heading {
  min-height: 62px;
  padding: 0.86rem 1rem;
  border-bottom: 1px solid #e3eaf6;
  background: #f7faff;
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

body.app-dashboard #section-placement-details .placement-details-card-heading h3,
body.app-dashboard #section-placement-details .placement-details-panel-heading h3 {
  margin: 0;
  color: #071b4d;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
}

body.app-dashboard #section-placement-details .placement-details-card-heading p {
  margin: 0.18rem 0 0;
  color: #516890;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

body.app-dashboard #section-placement-details .placement-details-card-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #cfe0ff;
  border-radius: 7px;
  background: #eef5ff;
  color: #075ff0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
}

body.app-dashboard #section-placement-details .placement-details-card-icon::before,
body.app-dashboard #section-placement-details .placement-details-card-icon::after {
  content: "";
  position: absolute;
  border-color: currentColor;
  border-style: solid;
}

body.app-dashboard #section-placement-details .placement-details-card-icon::before {
  width: 14px;
  height: 12px;
  border-width: 1.7px;
  border-radius: 3px;
}

body.app-dashboard #section-placement-details .placement-details-card-icon::after {
  width: 8px;
  height: 1px;
  border-width: 1.7px 0 0;
  transform: translateY(-2px);
}

body.app-dashboard #section-placement-details .placement-details-card-icon--check {
  border-color: #bee8d4;
  background: #effaf5;
  color: #147844;
}

body.app-dashboard #section-placement-details .placement-details-card-icon--check::before {
  width: 13px;
  height: 13px;
  border-radius: 999px;
}

body.app-dashboard #section-placement-details .placement-details-card-icon--check::after {
  width: 6px;
  height: 9px;
  border-width: 0 1.8px 1.8px 0;
  transform: translateY(-1px) rotate(38deg);
}

body.app-dashboard #section-placement-details .placement-details-card-icon--progress {
  border-color: #ffd9ab;
  background: #fff7ec;
  color: #e66c00;
}

body.app-dashboard #section-placement-details .placement-details-card-icon--progress::before {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border-width: 1.8px;
}

body.app-dashboard #section-placement-details .placement-details-card-icon--progress::after {
  width: 7px;
  height: 1px;
  border-width: 1.8px 0 0;
  transform: translate(3px, -4px) rotate(40deg);
}

body.app-dashboard #section-placement-details .placement-details-card-icon--info::before,
body.app-dashboard #section-placement-details .placement-details-card-icon--people::before,
body.app-dashboard #section-placement-details .placement-details-card-icon--site::before,
body.app-dashboard #section-placement-details .placement-details-card-icon--links::before,
body.app-dashboard #section-placement-details .placement-details-card-icon--note::before {
  width: 14px;
  height: 14px;
  border-width: 1.8px;
  border-radius: 999px;
}

body.app-dashboard #section-placement-details .placement-details-card-icon--info::after {
  width: 2px;
  height: 7px;
  border-width: 0 0 0 2px;
  transform: translateY(2px);
}

body.app-dashboard #section-placement-details .placement-details-card-icon--people::after {
  width: 14px;
  height: 6px;
  border-width: 1.7px 0 0;
  border-radius: 999px;
  transform: translateY(8px);
}

body.app-dashboard #section-placement-details .placement-details-card-icon--site::after,
body.app-dashboard #section-placement-details .placement-details-card-icon--links::after,
body.app-dashboard #section-placement-details .placement-details-card-icon--note::after {
  display: none;
}

body.app-dashboard #section-placement-details .placement-details-schedule-list,
body.app-dashboard #section-placement-details .placement-task-list {
  margin: 0;
  padding: 0.72rem 1rem 1rem;
  list-style: none;
  display: grid;
  gap: 0.54rem;
}

body.app-dashboard #section-placement-details .placement-details-schedule-row,
body.app-dashboard #section-placement-details .placement-task-item {
  min-height: 58px;
  padding: 0.68rem 0.72rem;
  border: 1px solid #e3eaf6;
  border-radius: 7px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

body.app-dashboard #section-placement-details .placement-details-schedule-row:nth-child(odd),
body.app-dashboard #section-placement-details .placement-task-item:nth-child(odd) {
  background: #fbfdff;
}

body.app-dashboard #section-placement-details .placement-details-schedule-row strong,
body.app-dashboard #section-placement-details .placement-task-meta strong {
  display: block;
  color: #071b4d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

body.app-dashboard #section-placement-details .placement-details-schedule-row p,
body.app-dashboard #section-placement-details .placement-task-meta small {
  display: block;
  margin: 0.18rem 0 0;
  color: #52678d;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.32;
}

body.app-dashboard #section-placement-details .placement-details-schedule-row > span {
  border: 1px solid #dbe7fb;
  border-radius: 999px;
  background: #f3f7ff;
  color: #31558f;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

body.app-dashboard #section-placement-details .placement-task-meta {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
}

body.app-dashboard #section-placement-details .placement-details-task-dot {
  width: 10px;
  height: 10px;
  border: 1.8px solid #8aa0c4;
  border-radius: 999px;
  background: #ffffff;
  flex: 0 0 auto;
}

body.app-dashboard #section-placement-details .placement-details-task-state {
  color: #52678d;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

body.app-dashboard #section-placement-details .placement-details-task-state.is-complete {
  color: #147844;
}

body.app-dashboard #section-placement-details .placement-details-task-state.is-progress {
  color: #e66c00;
}

body.app-dashboard #section-placement-details .placement-details-stats {
  margin: 0;
  padding: 0.82rem 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

body.app-dashboard #section-placement-details .placement-details-stat {
  padding: 0.72rem;
  border: 1px solid #e3eaf6;
  border-radius: 7px;
  background: #fbfdff;
}

body.app-dashboard #section-placement-details .placement-details-stat-label {
  margin: 0 0 0.2rem;
  color: #52678d;
  font-size: 0.74rem;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-details-stat-value {
  margin: 0;
  color: #071b4d;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
}

body.app-dashboard #section-placement-details .placement-details-progress {
  margin: 0;
  padding: 0.78rem 1rem 1rem;
}

body.app-dashboard #section-placement-details .dashboard-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e7edf8;
  overflow: hidden;
}

body.app-dashboard #section-placement-details .dashboard-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #075ff0;
}

body.app-dashboard #section-placement-details .placement-details-overview-text,
body.app-dashboard #section-placement-details .placement-details-goals {
  margin: 0;
  padding: 0.82rem 1rem 1rem;
  color: #364c73;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.app-dashboard #section-placement-details .placement-details-goals-text {
  margin: 0 0 0.8rem;
  color: #364c73;
}

body.app-dashboard #section-placement-details .placement-details-goals-input {
  width: 100%;
  border: 1px solid #d8e1f0;
  border-radius: 7px;
  padding: 0.72rem;
  background: #ffffff;
  color: #10203d;
  font: inherit;
}

body.app-dashboard #section-placement-details .placement-details-goals-actions {
  margin-top: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  align-items: center;
}

body.app-dashboard #section-placement-details .placement-details-panel {
  overflow: hidden;
  padding: 0;
}

body.app-dashboard #section-placement-details .placement-details-contact-person {
  margin: 0;
  padding: 0.9rem 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

body.app-dashboard #section-placement-details .placement-details-contact-name {
  color: #071b4d;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

body.app-dashboard #section-placement-details .placement-details-contact-role {
  margin: 0.16rem 0 0;
  color: #52678d;
  font-size: 0.78rem;
  font-weight: 500;
}

body.app-dashboard #section-placement-details .placement-details-contact-list {
  margin: 0;
  padding: 0.82rem 1rem 1rem;
  display: grid;
  gap: 0.52rem;
}

body.app-dashboard #section-placement-details .placement-details-contact-item {
  min-height: 38px;
  padding: 0.56rem 0.62rem;
  border: 1px solid #e3eaf6;
  border-radius: 7px;
  background: #ffffff;
  color: #075ff0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

body.app-dashboard #section-placement-details .placement-details-contact-item::after {
  content: ">";
  color: #31558f;
  font-size: 0.9rem;
}

body.app-dashboard #section-placement-details .placement-details-message-btn,
body.app-dashboard #section-placement-details .placement-details-map-btn {
  width: calc(100% - 2rem);
  min-height: 40px;
  margin: 0 1rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

body.app-dashboard #section-placement-details .placement-details-hospital-name {
  margin: 0;
  padding: 0.88rem 1rem 0;
  color: #071b4d;
  font-size: 0.96rem;
  font-weight: 600;
}

body.app-dashboard #section-placement-details .placement-details-contact-address {
  margin: 0;
  padding: 0.18rem 1rem 0.85rem;
  color: #52678d;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.42;
}

body.app-dashboard #section-placement-details .placement-student-list {
  margin: 0;
  padding: 0.82rem 1rem 1rem;
  display: grid;
  gap: 0.58rem;
}

body.app-dashboard #section-placement-details .placement-student-item {
  border: 1px solid #e3eaf6;
  border-radius: 7px;
  background: #ffffff;
}

body.app-dashboard #section-placement-details .placement-details-empty-state {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #52678d;
  font-size: 0.86rem;
}

@media (max-width: 1180px) {
  body.app-dashboard #section-placement-details .placement-details-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-placement-details .placement-details-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.app-dashboard #section-placement-details .placement-details-hero {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-placement-details .placement-details-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-dashboard #section-placement-details .placement-overview-week-rail {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    row-gap: 1rem;
  }

  body.app-dashboard #section-placement-details .placement-overview-week-rail::before {
    display: none;
  }

  body.app-dashboard #section-placement-details .placement-details-overview-layout,
  body.app-dashboard #section-placement-details .placement-details-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.app-dashboard #section-placement-details .placement-details-title-row {
    align-items: flex-start;
  }

  body.app-dashboard #section-placement-details .placement-details-actions {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-placement-details .placement-overview-week-rail {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

body.app-dashboard #section-placement-details .placement-details-tabs {
    overflow-x: auto;
    gap: 1rem;
  }
}

/* Sign-offs form library redesign */
body.forms-page .app-content {
  background: var(--pf-canvas, #fff);
}

body.forms-page .app-inner {
  max-width: none;
  padding: 1.35rem clamp(1.2rem, 2vw, 2rem) 2.4rem;
}

body.forms-page .forms-page-meta {
  margin: 0 0 1.05rem;
  align-items: flex-start;
}

body.forms-page .forms-title-block h1 {
  margin: 0.35rem 0 0.22rem;
  color: #071b4d;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0;
}

body.forms-page .forms-subtitle {
  color: #243a63;
  font-size: 1rem;
  font-weight: 500;
}

body.forms-page .forms-breadcrumb {
  color: #667b9d;
  font-weight: 500;
}

body.forms-page .forms-breadcrumb-current {
  color: #075ff0;
  font-weight: 500;
}

body.forms-page .forms-panel {
  display: grid;
  gap: 1rem;
}

body.forms-page .forms-progress-strip,
body.forms-page .forms-library-toolbar,
body.forms-page .forms-filter-row,
body.forms-page .forms-template-grid,
body.forms-page .forms-detail-drawer {
  border: 1px solid #d8e1f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 36, 66, 0.04);
}

body.forms-page .forms-progress-strip {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.72fr 0.72fr;
  align-items: stretch;
}

body.forms-page .forms-progress-tile {
  min-width: 0;
  padding: 1rem 1.28rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid #d8e1f0;
}

body.forms-page .forms-progress-tile:last-child {
  border-right: 0;
}

body.forms-page .forms-progress-tile--year {
  justify-content: center;
}

body.forms-page .forms-progress-tile--year > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.86rem;
}

body.forms-page .forms-progress-tile--placement {
  display: grid;
  align-content: center;
  gap: 0.62rem;
}

body.forms-page .forms-progress-tile-label {
  display: block;
  color: #071b4d;
  font-size: 0.84rem;
  font-weight: 500;
}

body.forms-page .forms-progress-tile strong {
  display: block;
  color: #071b4d;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
}

body.forms-page .forms-progress-tile span:not(.forms-progress-dot):not(.forms-progress-tile-label) {
  color: #243a63;
  font-size: 0.84rem;
  font-weight: 500;
}

body.forms-page .forms-progress-ring {
  --progress: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(#075ff0 calc(var(--progress) * 1%), #e8eef8 0);
  display: grid;
  place-items: center;
  position: relative;
}

body.forms-page .forms-progress-ring::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
}

body.forms-page .forms-progress-value {
  position: relative;
  z-index: 1;
  color: #071b4d;
  font-size: 1.02rem;
  font-weight: 600;
}

body.forms-page .forms-progress-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.forms-page .forms-progress-tile-head strong {
  font-size: 1rem;
}

body.forms-page .forms-placement-progress-bar {
  height: 9px;
  border-radius: 999px;
  background: #dfe6f2;
  overflow: hidden;
}

body.forms-page .forms-placement-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #075ff0;
}

body.forms-page .forms-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0;
  flex: 0 0 auto;
}

body.forms-page .forms-progress-dot--draft {
  background: #f59e0b;
}

body.forms-page .forms-progress-dot--pending {
  background: #075ff0;
}

body.forms-page .forms-library-toolbar {
  min-height: 64px;
  padding: 0.72rem;
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
}

body.forms-page .forms-search {
  position: relative;
  min-width: 0;
  display: block;
}

body.forms-page .forms-search span {
  position: absolute;
  left: 0.84rem;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1.8px solid #31558f;
  border-radius: 50%;
  transform: translateY(-50%);
}

body.forms-page .forms-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  border-top: 1.8px solid #31558f;
  transform: rotate(45deg);
}

body.forms-page .forms-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #d8e1f0;
  border-radius: 6px;
  background: #ffffff;
  color: #10203d;
  padding: 0.55rem 0.82rem 0.55rem 2.42rem;
  font: inherit;
  font-size: 0.88rem;
}

body.forms-page .forms-search input:focus {
  border-color: #b9cdfc;
  box-shadow: 0 0 0 3px rgba(7, 95, 240, 0.1);
  outline: none;
}

body.forms-page .forms-tabs {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

body.forms-page .forms-subtab {
  min-height: 42px;
  border: 1px solid #d8e1f0;
  border-radius: 6px;
  background: #ffffff;
  color: #071b4d;
  padding: 0.5rem 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.86rem;
  font-weight: 600;
}

body.forms-page .forms-subtab.is-active {
  border-color: #075ff0;
  background: #075ff0;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(7, 95, 240, 0.16);
}

body.forms-page .forms-count {
  min-width: 18px;
  height: 18px;
  padding: 0 0.32rem;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 0.7rem;
}

body.forms-page .forms-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.58rem;
}

body.forms-page .forms-toolbar-actions .btn {
  min-height: 42px;
  border-radius: 6px;
  border-color: #d8e1f0;
  background: #ffffff;
  color: #243a63;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-weight: 600;
}

body.forms-page .forms-toolbar-actions .btn.is-active {
  border-color: #b9cdfc;
  color: #075ff0;
  background: #f2f7ff;
}

body.forms-page .forms-filter-icon,
body.forms-page .forms-sort-icon {
  width: 15px;
  height: 15px;
  position: relative;
  display: inline-block;
}

body.forms-page .forms-filter-icon::before {
  content: "";
  position: absolute;
  inset: 1px 2px auto;
  height: 12px;
  border: 1.8px solid currentColor;
  border-top-width: 2px;
  clip-path: polygon(0 0, 100% 0, 62% 46%, 62% 100%, 38% 100%, 38% 46%);
}

body.forms-page .forms-sort-icon::before,
body.forms-page .forms-sort-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  border-top: 1.8px solid currentColor;
}

body.forms-page .forms-sort-icon::before {
  top: 4px;
}

body.forms-page .forms-sort-icon::after {
  bottom: 4px;
}

body.forms-page .forms-filter-row {
  margin: 0;
  padding: 0.75rem;
  align-items: center;
  gap: 0.7rem;
}

body.forms-page .forms-filter-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

body.forms-page .forms-filter-pill {
  border: 1px solid #d8e1f0;
  border-radius: 6px;
  background: #f3f7ff;
  color: #31558f;
  padding: 0.42rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 500;
}

body.forms-page .forms-placement-select {
  height: 38px;
  border-radius: 6px;
  min-width: 220px;
  color: #243a63;
}

body.forms-page .forms-layout {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

body.forms-page .forms-main {
  min-width: 0;
}

body.forms-page .forms-template-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body.forms-page .forms-template-card {
  min-height: 96px;
  border: 0;
  border-bottom: 1px solid #e3eaf6;
  border-left: 4px solid transparent;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 168px 110px;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transform: none;
}

body.forms-page .forms-template-card:nth-child(odd) {
  background: #fbfdff;
}

body.forms-page .forms-template-card:hover {
  border-color: #e3eaf6;
  border-left-color: #b9cdfc;
  box-shadow: none;
  transform: none;
}

body.forms-page .forms-template-card.is-selected {
  border-left-color: #075ff0;
  background: #ffffff;
}

body.forms-page .forms-template-card.is-route-highlighted {
  border-left-color: #0b63f6;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(11, 99, 246, 0.18);
}

body.forms-page .forms-template-card:last-child {
  border-bottom: 0;
}

body.forms-page .forms-template-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.84rem;
}

body.forms-page .forms-template-icon {
  width: 48px;
  height: 48px;
  border: 1px solid #d8e1f0;
  border-radius: 8px;
  background: #f3f7ff;
  color: #075ff0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
}

body.forms-page .forms-template-icon span,
body.forms-page .forms-template-icon span::before,
body.forms-page .forms-template-icon span::after {
  position: absolute;
  content: "";
  border-color: currentColor;
  border-style: solid;
}

body.forms-page .forms-template-icon span {
  width: 17px;
  height: 21px;
  border-width: 1.9px;
  border-radius: 3px;
}

body.forms-page .forms-template-icon span::before {
  left: 3px;
  right: 3px;
  top: 7px;
  border-width: 1.8px 0 0;
}

body.forms-page .forms-template-icon span::after {
  left: 3px;
  right: 5px;
  top: 12px;
  border-width: 1.8px 0 0;
}

body.forms-page .forms-icon--skills {
  background: #effaf5;
  color: #147844;
  border-color: #bee8d4;
}

body.forms-page .forms-icon--reflection {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

body.forms-page .forms-icon--procedure {
  background: #fff7ec;
  color: #f97316;
  border-color: #ffd9ab;
}

body.forms-page .forms-icon--teaching {
  background: #f0fdfa;
  color: #0f9488;
  border-color: #cbeee8;
}

body.forms-page .forms-template-text {
  min-width: 0;
}

body.forms-page .forms-template-text h4 {
  margin: 0;
  color: #071b4d;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}

body.forms-page .forms-template-text p {
  margin: 0.26rem 0 0;
  color: #243a63;
  font-size: 0.83rem;
  font-weight: 400;
}

body.forms-page .forms-template-text .forms-template-submeta {
  color: #667b9d;
  font-size: 0.76rem;
  line-height: 1.34;
}

body.forms-page .forms-template-tag {
  justify-self: start;
  min-height: 28px;
  border: 1px solid #dbe4f1;
  border-radius: 6px;
  padding: 0.28rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
}

body.forms-page .forms-template-tag--draft,
body.forms-page .forms-template-tag--info {
  border-color: #ffd9ab;
  background: #fff7ec;
  color: #b45309;
}

body.forms-page .forms-template-tag--pending {
  border-color: #cadcff;
  background: #f2f7ff;
  color: #075ff0;
}

body.forms-page .forms-template-tag--success {
  border-color: #bee8d4;
  background: #effaf5;
  color: #147844;
}

body.forms-page .forms-template-tag--overdue {
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc2626;
}

body.forms-page .forms-template-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(70px, 1fr);
  gap: 0.6rem;
  align-items: center;
}

body.forms-page .forms-template-progress-label {
  color: #243a63;
  font-size: 0.84rem;
  font-weight: 500;
}

body.forms-page .forms-template-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: #dfe6f2;
  overflow: hidden;
}

body.forms-page .forms-template-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #075ff0;
}

body.forms-page .forms-template-progress-bar--draft span {
  background: #f59e0b;
}

body.forms-page .forms-template-progress-bar--success span {
  background: #147844;
}

body.forms-page .forms-template-progress-bar--overdue span {
  background: #dc2626;
}

body.forms-page .forms-template-action {
  border: 0;
  background: transparent;
  color: #075ff0;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
}

body.forms-page .forms-template-action:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

body.forms-page .forms-empty {
  padding: 1.1rem;
  color: #52678d;
  font-size: 0.9rem;
}

body.forms-page .forms-detail-drawer {
  position: sticky;
  top: 1rem;
  padding: 0;
  overflow: hidden;
}

body.forms-page .forms-detail-close {
  position: absolute;
  top: 0.88rem;
  right: 0.88rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667b9d;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

body.forms-page .forms-detail-head {
  padding: 1.2rem 1.25rem 0.78rem;
  border-bottom: 1px solid #e3eaf6;
}

body.forms-page .forms-detail-head h3 {
  margin: 0 2rem 0.65rem 0;
  color: #071b4d;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

body.forms-page .forms-detail-meta {
  margin: 0;
  padding: 0.82rem 1.25rem;
  color: #52678d;
  font-size: 0.84rem;
  line-height: 1.42;
}

body.forms-page .forms-detail-section {
  margin: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e3eaf6;
}

body.forms-page .forms-detail-section h4 {
  margin: 0 0 0.72rem;
  color: #071b4d;
  font-size: 0.92rem;
  font-weight: 600;
}

body.forms-page .forms-detail-section--steps {
  padding-top: 0.9rem;
}

body.forms-page .forms-detail-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.68rem;
}

body.forms-page .forms-detail-step {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.6rem;
  color: #243a63;
}

body.forms-page .forms-detail-step-marker {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border: 1.5px solid #b8c6dc;
  border-radius: 999px;
  background: #ffffff;
  display: inline-block;
  position: relative;
}

body.forms-page .forms-detail-step:not(:last-child) .forms-detail-step-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 17px;
  width: 1px;
  height: 22px;
  background: #d8e1f0;
  transform: translateX(-50%);
}

body.forms-page .forms-detail-step strong {
  display: block;
  color: #071b4d;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

body.forms-page .forms-detail-step p {
  margin: 0.12rem 0 0;
  color: #52678d;
  font-size: 0.78rem;
  line-height: 1.36;
}

body.forms-page .forms-detail-step--done .forms-detail-step-marker {
  border-color: #147844;
  background: #effaf5;
}

body.forms-page .forms-detail-step--done .forms-detail-step-marker::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #147844;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.forms-page .forms-detail-step--current .forms-detail-step-marker {
  border-color: #075ff0;
  background: #075ff0;
  box-shadow: 0 0 0 4px rgba(7, 95, 240, 0.1);
}

body.forms-page .forms-detail-step--pending .forms-detail-step-marker {
  border-color: #f59e0b;
  background: #fff7ec;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

body.forms-page .forms-detail-step--locked .forms-detail-step-marker {
  background: #f3f6fb;
}

body.forms-page .forms-detail-checklist,
body.forms-page .forms-detail-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.54rem;
}

body.forms-page .forms-detail-checklist li,
body.forms-page .forms-detail-tips li {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  color: #243a63;
  font-size: 0.84rem;
  line-height: 1.35;
}

body.forms-page .forms-detail-checklist li span {
  width: 11px;
  height: 11px;
  border: 1.5px solid #8aa0c4;
  border-radius: 50%;
  flex: 0 0 auto;
}

body.forms-page .forms-detail-tips li span {
  width: 18px;
  height: 18px;
  border: 1.5px solid #075ff0;
  border-radius: 50%;
  background: #f2f7ff;
  flex: 0 0 auto;
}

body.forms-page .forms-detail-people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

body.forms-page .forms-detail-people span {
  min-height: 30px;
  border: 1px solid #d8e1f0;
  border-radius: 6px;
  background: #ffffff;
  color: #243a63;
  padding: 0.36rem 0.6rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
}

body.forms-page .forms-detail-actions {
  padding: 1rem 1.25rem 1.2rem;
  display: grid;
  gap: 0.58rem;
}

body.forms-page .forms-detail-actions .btn {
  min-height: 42px;
  border-radius: 6px;
  font-weight: 600;
}

body.forms-page .forms-legacy-lists {
  display: none;
}

@media (max-width: 1180px) {
  body.forms-page .forms-progress-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.forms-page .forms-progress-tile:nth-child(2) {
    border-right: 0;
  }

  body.forms-page .forms-progress-tile:nth-child(1),
  body.forms-page .forms-progress-tile:nth-child(2) {
    border-bottom: 1px solid #d8e1f0;
  }

  body.forms-page .forms-library-toolbar {
    grid-template-columns: 1fr;
  }

  body.forms-page .forms-toolbar-actions {
    justify-content: flex-start;
  }

  body.forms-page .forms-layout {
    grid-template-columns: 1fr;
  }

  body.forms-page .forms-detail-drawer {
    position: static;
  }
}

@media (max-width: 760px) {
  body.forms-page,
  body.forms-page .app-shell,
  body.forms-page .app-content,
  body.forms-page .app-inner,
  body.forms-page .forms-panel,
  body.forms-page .forms-page-meta,
  body.forms-page .forms-title-block,
  body.forms-page .forms-progress-strip,
  body.forms-page .forms-library-toolbar,
  body.forms-page .forms-filter-row,
  body.forms-page .forms-layout,
  body.forms-page .forms-template-list,
  body.forms-page .forms-detail-drawer {
    max-width: 100%;
    min-width: 0;
  }

  body.forms-page {
    overflow-x: hidden;
  }

  body.forms-page .app-shell,
  body.forms-page .app-content,
  body.forms-page .app-inner,
  body.forms-page .forms-panel {
    overflow-x: clip;
  }

  body.forms-page .app-inner {
    padding-inline: 0.82rem;
  }

  body.forms-page .forms-page-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.forms-page .forms-title-block h1,
  body.forms-page .forms-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.forms-page .forms-progress-strip {
    grid-template-columns: 1fr;
    width: 100%;
    overflow-x: hidden;
  }

  body.forms-page .forms-progress-tile {
    border-right: 0;
    border-bottom: 1px solid #d8e1f0;
  }

  body.forms-page .forms-progress-tile:last-child {
    border-bottom: 0;
  }

  body.forms-page .forms-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
  }

  body.forms-page .forms-library-toolbar,
  body.forms-page .forms-toolbar-actions {
    max-width: 100%;
    min-width: 0;
  }

  body.forms-page .forms-toolbar-actions {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  body.forms-page .forms-template-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  body.forms-page .forms-template-tag,
body.forms-page .forms-template-action {
    justify-self: start;
  }
}

/* ---- Opportunities hub redesign ---- */
body.research-page {
  background: #f5f7fb;
}

body.research-page .app-inner {
  max-width: 1320px;
  padding-top: 2rem;
}

body.research-page .research-workspace-card {
  margin-bottom: 1.35rem;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  box-shadow: none;
}

body.research-page .research-header {
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

body.research-page .research-header h1 {
  color: #071536;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

body.research-page .research-subtitle {
  margin-top: 0.45rem;
  color: #23406f;
  font-size: 0.98rem;
  max-width: 50rem;
}

body.research-page .research-context {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #d9e2f1;
  color: #37527d;
  background: #ffffff;
  font-size: 0.84rem;
}

body.research-page .research-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

body.research-page .research-overview-stat {
  min-width: 0;
  padding: 1.35rem 1.55rem;
  border: 0;
  border-right: 1px solid #d9e2f1;
  border-radius: 0;
  background: #ffffff;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

body.research-page .research-overview-stat:last-child {
  border-right: 0;
}

body.research-page .research-overview-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #0b63f6;
}

body.research-page .research-overview-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.research-page .research-overview-stat--saved .research-overview-icon {
  background: #eaf8f0;
  color: #0f8b5f;
}

body.research-page .research-overview-stat--applied .research-overview-icon {
  background: #f2eafd;
  color: #5f29c9;
}

body.research-page .research-overview-stat--closing .research-overview-icon {
  background: #fff3e6;
  color: #f08200;
}

body.research-page .research-overview-stat span:not(.research-overview-icon) {
  color: #071536;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.research-page .research-overview-stat strong {
  display: block;
  margin-top: 0.25rem;
  color: #075ff1;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: 0;
}

body.research-page .research-overview-stat--saved strong {
  color: #0c8a57;
}

body.research-page .research-overview-stat--applied strong {
  color: #5f29c9;
}

body.research-page .research-overview-stat--closing strong {
  color: #e67600;
}

body.research-page .research-overview-stat p {
  margin: 0.35rem 0 0;
  color: #516991;
  font-size: 0.84rem;
}

body.research-page .research-controls {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
}

body.research-page .research-search input {
  min-height: 44px;
  border-radius: 6px;
  border-color: #d8e1ef;
  background: #ffffff;
  color: #071536;
  box-shadow: none;
}

body.research-page .research-search input:focus {
  border-color: #0b63f6;
  box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.12);
}

body.research-page .research-filter-row {
  min-width: 0;
  gap: 0.55rem;
  align-items: center;
}

body.research-page .research-chip {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 6px;
  border: 1px solid #d8e1ef;
  background: #ffffff;
  color: #102349;
  font-size: 0.9rem;
  font-weight: 500;
}

body.research-page .research-chip.is-active {
  background: #0b63f6;
  color: #ffffff;
  border-color: #0b63f6;
  box-shadow: 0 8px 18px rgba(11, 99, 246, 0.18);
}

body.research-page .research-toolbar-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

body.research-page .research-tool-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid #d8e1ef;
  border-radius: 6px;
  background: #ffffff;
  color: #102349;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

body.research-page .research-tool-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.research-page .research-advanced-filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #d8e1ef;
  border-radius: 8px;
  background: #ffffff;
}

body.research-page .research-advanced-filters[hidden] {
  display: none;
}

body.research-page .research-filter-select {
  border-radius: 6px;
  background-color: #ffffff;
}

body.research-page .research-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 0.8rem;
  align-items: start;
}

body.research-page .research-list {
  gap: 0;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

body.research-page .research-opportunity-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(220px, 1fr) minmax(220px, 0.76fr) 72px 18px;
  gap: 1.05rem;
  align-items: center;
  min-height: 96px;
  padding: 1.2rem 1.25rem;
  border: 0;
  border-bottom: 1px solid #d9e2f1;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

body.research-page .research-opportunity-card:last-child {
  border-bottom: 0;
}

body.research-page .research-opportunity-card:hover {
  border-color: #d9e2f1;
  background: #f8fbff;
  box-shadow: none;
}

body.research-page .research-opportunity-card.is-selected {
  background: linear-gradient(90deg, #f2f7ff 0%, #ffffff 76%);
}

body.research-page .research-opportunity-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
}

body.research-page .research-opportunity-card.is-selected .research-opportunity-accent {
  background: #0b63f6;
}

body.research-page .research-opportunity-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #d8e6ff;
  background: #eef4ff;
  color: #0b63f6;
}

body.research-page .research-opportunity-mark svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.research-page .research-opportunity-mark--clinical {
  border-color: #cdeee0;
  background: #eaf8f0;
  color: #0f8b5f;
}

body.research-page .research-opportunity-mark--teaching {
  border-color: #eadcff;
  background: #f2eafd;
  color: #6f2bd2;
}

body.research-page .research-opportunity-mark--research {
  border-color: #f7dfa9;
  background: #fff7df;
  color: #d39100;
}

body.research-page .research-opportunity-mark--safety {
  border-color: #ffd7c5;
  background: #fff0e9;
  color: #f06423;
}

body.research-page .research-opportunity-row-main {
  min-width: 0;
}

body.research-page .research-opportunity-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

body.research-page .research-opportunity-title-row h3 {
  margin: 0;
  color: #071536;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: 0;
}

body.research-page .research-opportunity-row-main p {
  margin: 0.45rem 0 0;
  color: #45608c;
  font-size: 0.86rem;
  line-height: 1.35;
}

body.research-page .research-opportunity-row-main p span {
  color: #8ba0c0;
  margin: 0 0.35rem;
}

body.research-page .research-opportunity-state {
  margin-top: 0.48rem;
}

body.research-page .research-type-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 6px;
  border: 1px solid #cfe0ff;
  background: #eef4ff;
  color: #075ff1;
  font-size: 0.76rem;
  font-weight: 500;
}

body.research-page .research-type-chip--audit_qi {
  background: #eef4ff;
  color: #075ff1;
  border-color: #cfe0ff;
}

body.research-page .research-type-chip--teaching {
  background: #f2eafd;
  color: #5f29c9;
  border-color: #e3d2fb;
}

body.research-page .research-type-chip--research {
  background: #fff6df;
  color: #a86400;
  border-color: #f3dca9;
}

body.research-page .research-opportunity-row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  color: #37527d;
  font-size: 0.84rem;
}

body.research-page .research-opportunity-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  line-height: 1.2;
}

body.research-page .research-opportunity-row-meta svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: #23406f;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.research-page .research-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #37527d;
  font-size: 0.76rem;
}

body.research-page .research-match-ring {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#0f9f6e calc(var(--match) * 1%), #dbe5f3 0);
}

body.research-page .research-match-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #ffffff;
}

body.research-page .research-match-ring span {
  position: relative;
  z-index: 1;
  color: #0f8b5f;
  font-size: 0.74rem;
  font-weight: 600;
}

body.research-page .research-row-chevron {
  color: #23406f;
  font-size: 1.6rem;
  line-height: 1;
}

body.research-page .research-detail-panel {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

body.research-page .research-detail-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid #d9e2f1;
}

body.research-page .research-detail-panel-head h2 {
  margin: 0;
  color: #071536;
  font-size: 1.06rem;
  line-height: 1.3;
  letter-spacing: 0;
}

body.research-page .research-detail-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7082a3;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

body.research-page .research-detail-close:hover {
  background: #eef4ff;
  color: #075ff1;
}

body.research-page .research-detail-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

body.research-page .research-detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 0.62rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  border: 1px solid #d8e1ef;
  background: #f8fbff;
  color: #23406f;
}

body.research-page .research-detail-tag--type {
  border-color: #cfe0ff;
  background: #eef4ff;
  color: #075ff1;
}

body.research-page .research-detail-tag--match {
  border-color: #bfe7d4;
  background: #eaf8f0;
  color: #0f8b5f;
}

body.research-page .research-detail-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body.research-page .research-detail-block {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid #d9e2f1;
}

body.research-page .research-detail-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  color: #071536;
  font-size: 0.92rem;
  line-height: 1.25;
  letter-spacing: 0;
}

body.research-page .research-detail-block h3 svg {
  width: 18px;
  height: 18px;
  color: #075ff1;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.research-page .research-detail-block p {
  margin: 0;
  color: #45608c;
  font-size: 0.88rem;
  line-height: 1.55;
}

body.research-page .research-detail-block ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #37527d;
  font-size: 0.86rem;
  line-height: 1.7;
}

body.research-page .research-detail-deadline p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

body.research-page .research-detail-deadline p span {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: #fff3e6;
  color: #e67600;
  font-size: 0.74rem;
  font-weight: 600;
}

body.research-page .research-detail-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

body.research-page .research-detail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #075ff1;
  font-size: 0.78rem;
  font-weight: 600;
}

body.research-page .research-detail-person strong {
  display: block;
  color: #071536;
  font-size: 0.9rem;
}

body.research-page .research-detail-person p {
  margin-top: 0.18rem;
  font-size: 0.78rem;
}

body.research-page .research-message-button {
  border: 0;
  background: transparent;
  color: #075ff1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

body.research-page .research-message-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.research-page .research-detail-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding: 1rem 1.35rem 1.35rem;
}

body.research-page .research-detail-panel-actions .btn {
  min-height: 42px;
  border-radius: 6px;
  font-weight: 600;
  justify-content: center;
}

body.research-page .research-detail-panel-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.research-page .research-detail-panel-actions .research-detail-save {
  grid-column: 1 / -1;
}

body.research-page .research-detail-save.is-saved {
  background: #0f8b5f;
  border-color: #0f8b5f;
}

@media (max-width: 1220px) {
  body.research-page .research-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.research-page .research-overview-stat:nth-child(2) {
    border-right: 0;
  }

  body.research-page .research-overview-stat:nth-child(1),
  body.research-page .research-overview-stat:nth-child(2) {
    border-bottom: 1px solid #d9e2f1;
  }

  body.research-page .research-controls {
    grid-template-columns: 1fr;
  }

  body.research-page .research-toolbar-actions {
    justify-content: flex-start;
  }

  body.research-page .research-hub {
    grid-template-columns: 1fr;
  }

  body.research-page .research-detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body.research-page .app-inner {
    padding-inline: 0.85rem;
  }

  body.research-page .research-header {
    flex-direction: column;
  }

  body.research-page .research-overview-strip {
    grid-template-columns: 1fr;
  }

  body.research-page .research-overview-stat,
  body.research-page .research-overview-stat:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #d9e2f1;
  }

  body.research-page .research-overview-stat:last-child {
    border-bottom: 0;
  }

  body.research-page .research-filter-row,
  body.research-page .research-toolbar-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body.research-page .research-opportunity-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0.8rem;
  }

  body.research-page .research-opportunity-row-meta,
  body.research-page .research-match,
  body.research-page .research-row-chevron {
    grid-column: 2;
    align-items: flex-start;
  }

  body.research-page .research-match {
    flex-direction: row;
  }

  body.research-page .research-detail-person {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body.research-page .research-message-button {
    grid-column: 2;
    justify-self: start;
  }

body.research-page .research-detail-panel-actions {
  grid-template-columns: 1fr;
}
}

/* Specialty roadmaps explorer */
body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.18rem 1.1rem 1rem;
  border: 0;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-search {
  width: 100%;
  min-height: 44px;
  flex: none;
  border-radius: 8px;
  border-color: #d9e2f1;
  background: #ffffff;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-search input {
  font-size: 0.93rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  flex-wrap: wrap;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chip {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #d9e2f1;
  background: #ffffff;
  color: #0f2348;
  padding: 0.52rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chip + .roadmaps-filter-chip::before {
  content: none;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chip:hover {
  border-color: #9fb7e4;
  background: #f7faff;
  color: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chip.is-active {
  border-color: #075ee8;
  background: #075ee8;
  color: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-compare {
  min-height: 42px;
  border-radius: 8px;
  gap: 0.5rem;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-compare svg,
body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-actions svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-content.roadmaps-specialty-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 1rem;
  padding: 0 1.1rem 1.1rem;
  overflow: visible;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-directory,
body.app-dashboard #section-roadmaps .roadmaps-specialty-detail,
body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot {
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-directory {
  min-width: 0;
  padding: 0.78rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-count {
  margin: 0 0 0.8rem;
  color: #183158;
  font-size: 0.86rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card {
  min-width: 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.74rem;
  padding: 0.92rem;
  border: 1px solid #dbe4f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card:hover,
body.app-dashboard #section-roadmaps .roadmaps-specialty-card:focus-visible {
  border-color: #8fb1ed;
  box-shadow: 0 16px 30px rgba(15, 35, 72, 0.1);
  transform: translateY(-1px);
  outline: none;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card.is-selected {
  border-color: #075ee8;
  box-shadow: inset 0 0 0 1px #075ee8, 0 16px 34px rgba(7, 94, 232, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #075ee8;
  background: #edf4ff;
  border: 1px solid #d9e8ff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon svg {
  width: 27px;
  height: 27px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-community,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-community,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-community {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-surgical,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-surgical,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-surgical {
  color: #078891;
  background: #e8fbfd;
  border-color: #c3edf2;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-medical,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-medical,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-medical {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-medical-purple,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-medical-purple,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-medical-purple {
  color: #7d31d9;
  background: #f5edff;
  border-color: #dfc8ff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-purple,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-purple,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-purple {
  color: #7a22d8;
  background: #f6edff;
  border-color: #dec5ff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-red,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-red,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-red {
  color: #e22b2b;
  background: #fff0f0;
  border-color: #ffc8c8;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-blue,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-blue,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-blue {
  color: #075ee8;
  background: #edf4ff;
  border-color: #cfe0ff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon.is-pink,
body.app-dashboard #section-roadmaps .roadmaps-specialty-category.is-pink,
body.app-dashboard #section-roadmaps .roadmaps-trait.is-pink {
  color: #d92976;
  background: #fff0f7;
  border-color: #ffc6df;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-copy {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card h4 {
  margin: 0 0 0.42rem;
  color: #071637;
  font-size: 1rem;
  line-height: 1.22;
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  border: 1px solid #d8e1ef;
  padding: 0.18rem 0.48rem;
  color: #075ee8;
  background: #edf4ff;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.15;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats {
  width: 100%;
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, auto);
  gap: 0.54rem;
  align-items: baseline;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dt,
body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.25;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dt {
  color: #405375;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dd {
  color: #061a43;
  font-weight: 600;
  text-align: right;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-top: auto;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-trait {
  border-radius: 6px;
  padding: 0.22rem 0.44rem;
  font-size: 0.72rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card .roadmaps-view-link {
  opacity: 1;
  transform: none;
  margin-top: 0.18rem;
  color: #075ee8;
  font-size: 0.9rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card .roadmaps-view-link:disabled {
  color: #7b8aa3;
  cursor: default;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail {
  align-self: start;
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.82rem;
  align-items: start;
  padding-bottom: 0.88rem;
  border-bottom: 1px solid #dce5f2;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-head h3 {
  margin: 0 0 0.34rem;
  color: #071637;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f6f89;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-close:hover {
  background: #f0f5ff;
  color: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-close svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-section {
  padding: 0.92rem 0;
  border-bottom: 1px solid #e1e8f3;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-section h4 {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0 0 0.7rem;
  color: #071637;
  font-size: 0.91rem;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-section-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-section-icon svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-glance {
  display: grid;
  gap: 0.58rem;
  margin: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-glance div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0.7rem;
  align-items: baseline;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-glance dt,
body.app-dashboard #section-roadmaps .roadmaps-specialty-glance dd {
  margin: 0;
  color: #23375f;
  font-size: 0.82rem;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-glance dt {
  color: #506382;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-glance dd {
  color: #071637;
  font-weight: 600;
  text-align: right;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-section p {
  margin: 0;
  color: #31466c;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.56rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-section ul {
  margin: 0;
  padding-left: 1.08rem;
  color: #21375e;
  font-size: 0.82rem;
  line-height: 1.55;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-actions {
  display: grid;
  gap: 0.52rem;
  padding-top: 0.9rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-actions .btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  border-radius: 8px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-open:disabled {
  background: #eef2f7;
  color: #6a7890;
  border-color: #d9e2ef;
  cursor: default;
}

body.app-dashboard #section-roadmaps .roadmaps-empty {
  margin: 1rem 0 0;
  color: #667795;
  font-size: 0.88rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0.82rem;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-right: 1px solid #dbe4f2;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article:last-child {
  border-right: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  background: #edf4ff;
  border: 1px solid #d5e4ff;
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot-icon::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid currentColor;
  position: absolute;
  inset: 0;
  margin: auto;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot-icon.is-community {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot-icon.is-blue {
  color: #075ee8;
  background: #edf4ff;
  border-color: #cfe0ff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot-icon.is-purple {
  color: #7a22d8;
  background: #f6edff;
  border-color: #dec5ff;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot-icon.is-orange {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot h4,
body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot strong,
body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot p {
  margin: 0;
  line-height: 1.24;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot h4 {
  color: #071637;
  font-size: 0.86rem;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot strong {
  display: block;
  margin-top: 0.14rem;
  color: #075ee8;
  font-size: 0.9rem;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot p {
  margin-top: 0.08rem;
  color: #697997;
  font-size: 0.72rem;
  font-weight: 400;
}

@media (max-width: 1360px) {
  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.app-dashboard #section-roadmaps .roadmaps-content.roadmaps-specialty-explorer {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-detail {
    position: static;
  }
}

@media (max-width: 980px) {
  body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-toolbar {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.08rem;
    scrollbar-width: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chips::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chip {
    flex: 0 0 auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-compare {
    width: 100%;
    justify-content: center;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article:nth-child(2) {
    border-right: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article:nth-child(1),
  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article:nth-child(2) {
    border-bottom: 1px solid #dbe4f2;
  }
}

@media (max-width: 640px) {
  body.app-dashboard #section-roadmaps .roadmaps-content.roadmaps-specialty-explorer {
    padding: 0 0.84rem 0.92rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #dbe4f2;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot article:last-child {
    border-bottom: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-card {
    min-height: 0;
  }
}

/* Specialty roadmap spacing refinements */
body.app-dashboard:has(#section-roadmaps.is-active) .app-content {
  padding: 1.35rem 1.35rem 2rem;
}

body.app-dashboard:has(#section-roadmaps.is-active) .app-inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane {
  font-size: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-toolbar {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 18px 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chips {
  gap: 10px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-filter-chip,
body.app-dashboard #section-roadmaps .roadmaps-specialty-compare {
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
  line-height: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-content.roadmaps-specialty-explorer {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 0 18px 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane.is-detail-collapsed .roadmaps-content.roadmaps-specialty-explorer {
  grid-template-columns: 1fr;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane.is-detail-collapsed .roadmaps-specialty-detail {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-directory {
  padding: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-count {
  margin-bottom: 12px;
  font-size: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card {
  min-height: 252px;
  padding: 14px;
  gap: 11px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon {
  width: 46px;
  height: 46px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-icon svg {
  width: 26px;
  height: 26px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card h4 {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.22;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-category {
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.15;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats {
  gap: 7px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats div {
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 12px;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dt,
body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dd {
  font-size: 12px;
  line-height: 1.25;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dt {
  min-width: 0;
  overflow-wrap: normal;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dd {
  min-width: max-content;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane .roadmaps-trait {
  padding: 3px 7px;
  font-size: 11px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card .roadmaps-view-link {
  font-size: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail {
  width: 360px;
  max-width: 360px;
  padding: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-head h3 {
  font-size: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-section h4 {
  font-size: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-glance dt,
body.app-dashboard #section-roadmaps .roadmaps-specialty-glance dd,
body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-section p,
body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-section ul {
  font-size: 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-snapshot {
  padding: 12px;
}

@media (max-width: 1500px) {
  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 1180px) {
  body.app-dashboard #section-roadmaps .roadmaps-content.roadmaps-specialty-explorer {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-detail {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  body.app-dashboard:has(#section-roadmaps.is-active) .app-content {
    padding: 0.9rem 0.8rem 1.25rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the specialty preview in its own rail, never over the cards. */
body.app-dashboard #section-roadmaps .roadmaps-content.roadmaps-specialty-explorer {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 25vw, 390px);
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-directory {
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-pane.is-detail-collapsed .roadmaps-specialty-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card {
  min-width: 0;
  min-height: 270px;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats div {
  grid-template-columns: minmax(0, 1fr) max-content;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dt {
  overflow-wrap: break-word;
  hyphens: none;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-card-stats dd {
  justify-self: end;
}

body.app-dashboard #section-roadmaps .roadmaps-specialty-detail {
  width: auto;
  max-width: none;
  z-index: 1;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 1780px) {
  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-pane.is-detail-collapsed .roadmaps-specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.app-dashboard #section-roadmaps .roadmaps-content.roadmaps-specialty-explorer {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-detail {
    position: static;
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-pane.is-detail-collapsed .roadmaps-specialty-grid {
    grid-template-columns: 1fr;
  }
}

/* Compare specialties redesign */
body.app-dashboard #section-roadmaps .roadmaps-compare-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-view.is-hidden {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-header h2 {
  margin: 0;
  color: #071637;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-header .card-subtitle {
  margin: 8px 0 0;
  color: #304668;
  font-size: 14px;
  line-height: 1.4;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-back {
  min-height: 36px;
  border: 1px solid #d8e2f2;
  border-radius: 8px;
  padding: 0 13px;
  color: #075ee8;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #dbe4f1;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-tab {
  position: relative;
  min-height: 36px;
  border: 0;
  padding: 0 0 12px;
  color: #243654;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-tab.is-active {
  color: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-main,
body.app-dashboard #section-roadmaps .roadmaps-compare-selector-title-row > div {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-title-row h3 {
  margin: 0 0 6px;
  color: #071637;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector {
  position: relative;
  flex: 0 0 auto;
  flex-direction: row;
  gap: 0;
  min-width: 86px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e1f1;
  border-radius: 8px;
  padding: 0 28px 0 12px;
  color: #075ee8;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector:focus-within {
  border-color: #075ee8;
  box-shadow: 0 0 0 3px rgba(7, 94, 232, 0.12);
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector span {
  color: inherit;
  font: inherit;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics div {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics div:first-child {
  border-left: 0;
  padding-left: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics dt,
body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics dd {
  margin: 0;
  line-height: 1.2;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics dt {
  color: #50627f;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics dd {
  margin-top: 5px;
  color: #071637;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-swap {
  align-self: center;
  min-width: 52px;
  min-height: 52px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  color: #25456f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-swap svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-swap:hover,
body.app-dashboard #section-roadmaps .roadmaps-compare-swap:focus-visible {
  border-color: #9db8ee;
  color: #075ee8;
  outline: none;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card:last-child {
  border-right: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-head h3,
body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-head p {
  margin: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-head h3 {
  color: #071637;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-head p {
  margin-top: 3px;
  color: #63728e;
  font-size: 11px;
  line-height: 1.3;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-values span,
body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-values strong {
  display: block;
  line-height: 1.15;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-values span {
  color: #304668;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-values strong {
  margin-top: 5px;
  color: #071637;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-bars {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-bars span {
  display: block;
  height: 5px;
  border-radius: 999px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-bars .is-left {
  background: #0f8a4d;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-bars .is-right {
  background: #078891;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-sections {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 16px;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-board > .roadmaps-compare-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-column,
body.app-dashboard #section-roadmaps .roadmaps-compare-decision {
  min-width: 0;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
}

body.app-dashboard #section-roadmaps .roadmaps-compare-column {
  display: grid;
  gap: 8px;
  padding: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-column.is-community {
  border-color: #9edfc8;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-column.is-surgical {
  border-color: #a3dfe5;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-column-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 6px 10px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-column-head h3 {
  margin: 0 0 5px;
  color: #071637;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic h4 {
  margin: 0 0 7px;
  color: #071637;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic p {
  margin: 0;
  color: #2f466d;
  font-size: 12px;
  line-height: 1.4;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #2f466d;
  font-size: 12px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic li {
  min-width: 0;
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 7px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic li > span {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border: 1.5px solid #0e9367;
  border-radius: 999px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 150px);
  gap: 12px;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-meter span,
body.app-dashboard #section-roadmaps .roadmaps-compare-working span {
  display: block;
  color: #647591;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-meter strong,
body.app-dashboard #section-roadmaps .roadmaps-compare-working strong {
  display: block;
  margin-top: 5px;
  color: #071637;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: #dfe5ef;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter.is-community span {
  background: #0f8a4d;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter.is-surgical span {
  background: #078891;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter.is-medical span {
  background: #e56b12;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter.is-medical-purple span,
body.app-dashboard #section-roadmaps .roadmaps-compare-meter.is-purple span {
  background: #7a22d8;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter.is-red span {
  background: #e22b2b;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-meter.is-pink span {
  background: #d92976;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-working {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
  gap: 12px;
  align-items: start;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-working strong.is-low {
  color: #0f8a4d;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-working strong.is-moderate {
  color: #d9630b;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-working strong.is-high {
  color: #d92d20;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #d4e2ff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
  background: #edf4ff;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon svg {
  width: 19px;
  height: 19px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon.is-community {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon.is-surgical {
  color: #078891;
  background: #e8fbfd;
  border-color: #c3edf2;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon.is-medical {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon.is-medical-purple,
body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon.is-purple {
  color: #7a22d8;
  background: #f6edff;
  border-color: #dec5ff;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon.is-red {
  color: #e22b2b;
  background: #fff0f0;
  border-color: #ffc8c8;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-topic-icon.is-pink {
  color: #d92976;
  background: #fff0f7;
  border-color: #ffc6df;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision {
  position: sticky;
  top: 96px;
  padding: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-head {
  padding: 4px 4px 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-head h3,
body.app-dashboard #section-roadmaps .roadmaps-compare-decision-head p {
  margin: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-head h3 {
  color: #071637;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-head p {
  margin-top: 7px;
  color: #50627f;
  font-size: 12px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps #roadmaps-compare-decision-cards {
  display: grid;
  gap: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-card h4,
body.app-dashboard #section-roadmaps .roadmaps-compare-decision-card p,
body.app-dashboard #section-roadmaps .roadmaps-compare-decision-note p {
  margin: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-card h4 {
  color: #071637;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-card p,
body.app-dashboard #section-roadmaps .roadmaps-compare-decision-note p {
  margin-top: 5px;
  color: #304668;
  font-size: 12px;
  line-height: 1.4;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-decision-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 13px;
  color: #075ee8;
  background: #f2f7ff;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-roadmap-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-roadmap-links .btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  border-radius: 8px;
}

body.app-dashboard #section-roadmaps .roadmaps-compare-hidden-targets {
  display: none;
}

@media (max-width: 1280px) {
  body.app-dashboard #section-roadmaps .roadmaps-compare-board {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-decision {
    position: static;
  }
}

@media (max-width: 1080px) {
  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card:nth-child(2) {
    border-right: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card:nth-child(1),
  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card:nth-child(2) {
    border-bottom: 1px solid #dce5f1;
  }
}

@media (max-width: 920px) {
  body.app-dashboard #section-roadmaps .roadmaps-compare-header,
  body.app-dashboard #section-roadmaps .roadmaps-compare-selector-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-controls {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-swap {
    justify-self: center;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-board > .roadmaps-compare-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot,
  body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics,
  body.app-dashboard #section-roadmaps .roadmaps-compare-topic-main,
  body.app-dashboard #section-roadmaps .roadmaps-compare-working {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card,
  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #dce5f1;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-snapshot-card:last-child {
    border-bottom: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-selector-card {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics div {
    border-left: 0;
    border-top: 1px solid #e1e8f3;
    padding: 10px 0 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-compare-selector-metrics div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* Specialty pathway selected-view redesign */
body.app-dashboard #section-roadmaps .roadmaps-detail-view {
  --roadmaps-detail-gutter: 18px;
  --roadmaps-inspector-width: 420px;
  --roadmaps-pathway-axis: calc(45% + 22px);
  gap: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-hidden {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-heading {
  gap: 12px;
  padding: 0 var(--roadmaps-detail-gutter) 14px;
  border-top: 1px solid #dbe4f1;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-back {
  margin-top: 8px;
  color: #526684;
  font-size: 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-hero {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(360px, auto) auto;
  gap: 16px;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-hero .roadmaps-specialty-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-hero .roadmaps-specialty-icon svg {
  width: 34px;
  height: 34px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-hero-copy {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-title-row h2 {
  margin: 0;
  color: #071637;
  font-size: 24px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-hero .card-subtitle {
  margin-top: 8px;
  color: #304668;
  font-size: 14px;
  line-height: 1.4;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-stats {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 0;
  margin: 0;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-stats div {
  min-width: 92px;
  padding: 0 16px;
  border-left: 1px solid #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-stats dt,
body.app-dashboard #section-roadmaps .roadmaps-pathway-stats dd {
  margin: 0;
  line-height: 1.2;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-stats dt {
  color: #50627f;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-stats dd {
  margin-top: 6px;
  color: #071637;
  font-size: 13px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-actions {
  margin: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-actions .btn {
  min-height: 42px;
  border-radius: 8px;
  padding-inline: 16px;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-actions svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-progress {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle {
  gap: 28px;
  border-top: 0;
  border-bottom: 1px solid #dbe4f1;
  padding: 0 var(--roadmaps-detail-gutter);
  background: #ffffff;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0 0 12px;
  color: #223653;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab.is-active {
  border-color: #075ee8;
  color: #075ee8;
  background: transparent;
  box-shadow: none;
}

body.app-dashboard #section-roadmaps .roadmaps-roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--roadmaps-inspector-width);
  gap: 18px;
  padding: 0 var(--roadmaps-detail-gutter) 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-roadmap-canvas {
  min-width: 0;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
  padding: 16px 20px;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-legend {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap {
  --roadmaps-pathway-row-gap: 14px;
  display: grid;
  gap: var(--roadmaps-pathway-row-gap);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: var(--roadmaps-pathway-axis);
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cdd8ec, #8fa3c6);
  transform: none;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(300px, 45%) 44px minmax(240px, 1fr);
  gap: 0;
  align-items: center;
  min-height: 86px;
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-row.has-branch::after {
  content: "";
  position: absolute;
  left: calc(var(--roadmaps-pathway-axis) + 18px);
  right: calc(50% - 26px);
  top: 50%;
  border-top: 2px dashed #cad6ea;
  transform: translateY(-50%);
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-main,
body.app-dashboard #section-roadmaps .roadmaps-pathway-branch {
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-main {
  padding-right: 10px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-branch {
  padding-left: 28px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-step-marker {
  z-index: 2;
  justify-self: center;
  width: 24px;
  height: 24px;
  border: 3px solid #dbe9ff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #075ee8;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(7, 94, 232, 0.16);
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-row:nth-child(2) .roadmaps-pathway-step-marker,
body.app-dashboard #section-roadmaps .roadmaps-pathway-row:nth-child(4) .roadmaps-pathway-step-marker {
  background: #0f8a4d;
  border-color: #daf6e9;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-row:nth-child(5) .roadmaps-pathway-step-marker {
  background: #ff8a00;
  border-color: #fff0d9;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-row:nth-child(6) .roadmaps-pathway-step-marker {
  background: #5d2ed1;
  border-color: #ece5ff;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  padding: 10px 12px;
  color: #071637;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 35, 72, 0.04);
}

button.roadmaps-pathway-node {
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node:hover,
body.app-dashboard #section-roadmaps .roadmaps-pathway-node:focus-visible {
  border-color: #8fb1ed;
  outline: none;
  box-shadow: 0 14px 28px rgba(7, 94, 232, 0.1);
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-active {
  border-color: #075ee8;
  box-shadow: inset 0 0 0 1px #075ee8, 0 16px 30px rgba(7, 94, 232, 0.12);
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #087b62;
  background: #e9fbf4;
  border: 1px solid #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-icon svg {
  width: 25px;
  height: 25px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-blue .roadmaps-pathway-node-icon,
body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-active .roadmaps-pathway-node-icon {
  color: #075ee8;
  background: #edf4ff;
  border-color: #cfe0ff;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-orange .roadmaps-pathway-node-icon {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-purple .roadmaps-pathway-node-icon {
  color: #6c2bd9;
  background: #f4edff;
  border-color: #dcc8ff;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-head strong {
  color: #071637;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-chip {
  flex: 0 0 auto;
  border: 1px solid #c8efe1;
  border-radius: 5px;
  padding: 2px 7px;
  color: #087b62;
  background: #e9fbf4;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-orange .roadmaps-pathway-chip {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-purple .roadmaps-pathway-chip {
  color: #6c2bd9;
  background: #f4edff;
  border-color: #dcc8ff;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-description {
  color: #425678;
  font-size: 12px;
  line-height: 1.32;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #183158;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-track {
  height: 5px;
  border-radius: 999px;
  background: #dfe5ef;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f8a4d;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-active .roadmaps-pathway-node-track span,
body.app-dashboard #section-roadmaps .roadmaps-pathway-node.is-blue .roadmaps-pathway-node-track span {
  background: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  width: 100%;
  max-width: none;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
  max-height: calc(100dvh - var(--navbar-height) - 32px);
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-header {
  padding: 16px;
  border-bottom: 1px solid #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-kicker {
  color: #071637;
  font-size: 16px;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-header h3 {
  margin-top: 18px;
  color: #071637;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-subtitle {
  color: #50627f;
  font-size: 12px;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-metadata span {
  border: 1px solid #cfe0ff;
  border-radius: 5px;
  padding: 4px 8px;
  color: #075ee8;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-metadata span:first-child {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps #roadmaps-item-detail-metadata span:nth-child(2) {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-body {
  padding: 16px;
  gap: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-body section h4 {
  color: #071637;
  font-size: 14px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-body section p {
  margin-top: 8px;
  color: #304668;
  font-size: 13px;
  line-height: 1.48;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-more {
  border-top: 1px solid #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-more summary {
  color: #071637;
  font-size: 14px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list {
  padding: 0;
  list-style: none;
  gap: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dfe7f2;
  border-bottom: 0;
  padding: 10px 12px;
  color: #183158;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list li:first-child {
  border-radius: 6px 6px 0 0;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list li:last-child {
  border-bottom: 1px solid #dfe7f2;
  border-radius: 0 0 6px 6px;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-list li::after {
  content: "›";
  color: #24416d;
  font-size: 18px;
  line-height: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-footer {
  padding: 12px 16px 16px;
  background: #ffffff;
  gap: 10px;
}

body.app-dashboard #section-roadmaps .roadmaps-item-detail-footer .btn {
  min-height: 40px;
  border-radius: 6px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 0;
  margin: 0 var(--roadmaps-detail-gutter) 18px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-intro,
body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-stat {
  min-width: 0;
  display: grid;
  align-items: center;
  padding: 18px 20px;
  border-right: 1px solid #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-intro {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-stat:last-child {
  border-right: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-ring {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(#0f8a4d var(--roadmaps-pathway-progress), #e3eaf5 0);
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-ring span {
  position: relative;
  z-index: 1;
  color: #071637;
  font-size: 17px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress h3,
body.app-dashboard #section-roadmaps .roadmaps-pathway-progress p {
  margin: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress h3 {
  color: #071637;
  font-size: 14px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress p {
  margin-top: 5px;
  color: #071637;
  font-size: 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress span:not(.roadmaps-pathway-progress-icon) {
  color: #50627f;
  font-size: 12px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-stat {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-icon {
  grid-row: span 3;
  width: 48px;
  height: 48px;
  border: 1px solid #c8efe1;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #087b62;
  background: #e9fbf4;
  font-size: 22px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-icon.is-star {
  color: #087b62;
  background: #e9fbf4;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-icon.is-dashed {
  color: #395a91;
  background: #ffffff;
  border-style: dashed;
  border-color: #9fb3d4;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-stat strong {
  color: #071637;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-stat small {
  color: #087b62;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-panel {
  margin: 0 var(--roadmaps-detail-gutter) 18px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.06);
  padding: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-panel-head h3 {
  margin: 0;
  color: #071637;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-panel-head p {
  margin: 6px 0 0;
  color: #50627f;
  font-size: 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-card-grid,
body.app-dashboard #section-roadmaps .roadmaps-application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-card {
  min-width: 0;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-card > span {
  color: #075ee8;
  font-size: 11px;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-card h4 {
  margin: 6px 0 0;
  color: #071637;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-card p,
body.app-dashboard #section-roadmaps .roadmaps-tab-card li {
  color: #304668;
  font-size: 13px;
  line-height: 1.45;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-card p {
  margin: 8px 0 0;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-tab-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 1320px) {
  body.app-dashboard #section-roadmaps .roadmaps-pathway-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-stats,
  body.app-dashboard #section-roadmaps .roadmaps-detail-actions {
    grid-column: 2;
  }
}

@media (max-width: 1100px) {
  body.app-dashboard #section-roadmaps .roadmaps-roadmap-layout {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell {
    position: static;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.app-dashboard #section-roadmaps .roadmaps-pathway-hero,
  body.app-dashboard #section-roadmaps .roadmaps-pathway-stats,
  body.app-dashboard #section-roadmaps .roadmaps-pathway-progress,
  body.app-dashboard #section-roadmaps .roadmaps-tab-card-grid,
  body.app-dashboard #section-roadmaps .roadmaps-application-grid {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-stats,
  body.app-dashboard #section-roadmaps .roadmaps-detail-actions {
    grid-column: auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-stats div,
  body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-intro,
  body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-stat {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #dce5f1;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-stats div:first-child,
  body.app-dashboard #section-roadmaps .roadmaps-pathway-progress-intro {
    border-top: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle {
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab {
    flex: 0 0 auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-vertical-roadmap::before {
    left: 14px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-step-marker {
    grid-column: 1;
    grid-row: 1;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-main,
  body.app-dashboard #section-roadmaps .roadmaps-pathway-branch {
    grid-column: 2;
    padding: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-branch {
    margin-top: 10px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-pathway-row.has-branch::after {
    display: none;
  }
}

/* Specialty pathway tab rail refinement */
body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px var(--roadmaps-detail-gutter);
  border: 0;
  border-top: 1px solid #dbe4f1;
  border-bottom: 1px solid #dbe4f1;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: none;
  overflow-x: auto;
  scrollbar-width: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle::-webkit-scrollbar {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle .roadmaps-detail-view-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e4f5;
  border-radius: 999px;
  padding: 0 15px 0 30px;
  color: #425574;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 35, 72, 0.03);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle .roadmaps-detail-view-tab::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9cafc9;
  box-shadow: 0 0 0 3px #eef3fa;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle .roadmaps-detail-view-tab:hover {
  border-color: #b9cbeb;
  color: #0b2554;
  background: #fbfdff;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle .roadmaps-detail-view-tab.is-active {
  border-color: #9fc4ff;
  color: #075ee8;
  background: #f2f7ff;
  box-shadow: 0 8px 18px rgba(7, 94, 232, 0.12);
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view > .roadmaps-detail-view-toggle .roadmaps-detail-view-tab.is-active::before {
  background: #075ee8;
  box-shadow: 0 0 0 3px #dceaff;
}

/* Specialty route and selection view */
body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-route-view .roadmaps-pathway-hero {
  grid-template-columns: minmax(320px, 1fr) minmax(560px, 1.22fr);
  gap: 24px;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-route-view .roadmaps-pathway-hero > .roadmaps-specialty-icon,
body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-route-view .roadmaps-detail-actions {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-route-view .roadmaps-pathway-title-row h2 {
  font-size: 24px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: stretch !important;
  margin: 0;
  border: 1px solid #d8e4f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 35, 72, 0.04);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-left: 1px solid #dce5f1;
  padding: 16px 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip > div:first-child {
  border-left: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip dt,
body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip dd {
  margin: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip dt {
  color: #49617f;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip dd {
  margin-top: 4px;
  color: #071637;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-route-fact-icon svg {
  width: 22px;
  height: 22px;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-pane--training {
  padding: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-training-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: 14px;
  align-items: start;
  padding: 14px var(--roadmaps-detail-gutter) 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-training-main {
  display: contents;
}

body.app-dashboard #section-roadmaps .roadmaps-training-sidebar {
  min-width: 0;
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-route-card {
  min-width: 0;
  border: 1px solid #d8e4f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 72, 0.04);
}

body.app-dashboard #section-roadmaps .roadmaps-route-card h3 {
  margin: 0;
  color: #071637;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-route-overview,
body.app-dashboard #section-roadmaps .roadmaps-route-prepare {
  grid-column: 1 / -1;
  padding: 18px 20px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 20px 24px 0;
  padding: 0;
  list-style: none;
}

body.app-dashboard #section-roadmaps .roadmaps-route-strip li {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  position: relative;
  color: #071637;
  text-align: center;
}

body.app-dashboard #section-roadmaps .roadmaps-route-strip li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  right: calc(-50% + 36px);
  height: 2px;
  background: #cfd9e8;
}

body.app-dashboard #section-roadmaps .roadmaps-route-strip li.is-done:not(:last-child)::after,
body.app-dashboard #section-roadmaps .roadmaps-route-strip li.is-next:not(:last-child)::after {
  background: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-route-step-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #dce5f1;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #536985;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-route-step-icon svg {
  width: 27px;
  height: 27px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-strip li.is-blue .roadmaps-route-step-icon {
  border-color: #075ee8;
  color: #075ee8;
  background: #edf4ff;
  box-shadow: 0 0 0 4px #f5f9ff;
}

body.app-dashboard #section-roadmaps .roadmaps-route-strip li.is-green .roadmaps-route-step-icon {
  border-color: #c8efe1;
  color: #087b62;
  background: #e9fbf4;
}

body.app-dashboard #section-roadmaps .roadmaps-route-strip strong {
  color: #071637;
  font-size: 13px;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-route-chip {
  min-height: 22px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  color: #075ee8;
  background: #edf4ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-route-chip.is-green {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-route-chip.is-amber {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-route-selection,
body.app-dashboard #section-roadmaps .roadmaps-route-stages {
  padding: 18px 20px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stepper {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stepper li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 45px;
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: -11px;
  width: 1px;
  background: #cfd9e8;
}

body.app-dashboard #section-roadmaps .roadmaps-route-step-number {
  width: 32px;
  height: 32px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stepper strong {
  color: #071637;
  font-size: 14px;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stage-list {
  display: grid;
  margin-top: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stage-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid #e1e8f3;
  padding: 14px 0;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stage-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stage-list article:last-child {
  padding-bottom: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stage-badge {
  width: 56px;
  height: 56px;
  border: 1px solid #bdd2ff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
  background: #edf4ff;
  font-size: 17px;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stage-list h4 {
  margin: 0;
  color: #071637;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-route-stage-list p {
  margin: 5px 0 0;
  color: #304668;
  font-size: 12px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-route-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #304668;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-route-duration svg {
  width: 17px;
  height: 17px;
  color: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  border-left: 1px solid #dce5f1;
  padding: 0 20px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid article:first-child {
  border-left: 0;
  padding-left: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid h4 {
  margin: 0;
  color: #071637;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid p {
  margin: 8px 0 0;
  color: #304668;
  font-size: 12px;
  line-height: 1.42;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
  background: #edf4ff;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-icon svg {
  width: 28px;
  height: 28px;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid article.is-green .roadmaps-route-prepare-icon {
  border-color: #c8efe1;
  color: #087b62;
  background: #e9fbf4;
}

body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid article.is-amber .roadmaps-route-prepare-icon {
  border-color: #ffd9b4;
  color: #d9630b;
  background: #fff4e8;
}

body.app-dashboard #section-roadmaps .roadmaps-route-arrow {
  display: inline-block;
  margin-top: 8px;
  color: #075ee8;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 1320px) {
  body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-route-view .roadmaps-pathway-hero,
  body.app-dashboard #section-roadmaps .roadmaps-training-layout {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-route-view .roadmaps-pathway-stats {
    grid-column: auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid article:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  body.app-dashboard #section-roadmaps .roadmaps-route-fact-strip,
  body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid,
  body.app-dashboard #section-roadmaps .roadmaps-route-stage-list article,
  body.app-dashboard #section-roadmaps .roadmaps-route-stepper li {
    grid-template-columns: 1fr !important;
  }

  body.app-dashboard #section-roadmaps .roadmaps-route-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-inline: 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-route-strip li:not(:last-child)::after,
  body.app-dashboard #section-roadmaps .roadmaps-route-stepper li:not(:last-child)::after {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-route-prepare-grid article {
    border-left: 0;
    padding: 0;
  }
}

/* Specialty portfolio scoring view */
body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-portfolio-view .roadmaps-pathway-hero {
  grid-template-columns: minmax(320px, 0.95fr) minmax(620px, 1.7fr);
  gap: 22px;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-portfolio-view .roadmaps-pathway-hero > .roadmaps-specialty-icon,
body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-portfolio-view .roadmaps-detail-actions {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-portfolio-view .roadmaps-pathway-title-row h2 {
  font-size: 25px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip {
  --roadmaps-portfolio-score: 56%;
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(170px, 1.2fr) repeat(3, minmax(120px, 0.8fr)) minmax(130px, 0.75fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  margin: 0;
  border: 1px solid #d8e4f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 35, 72, 0.04);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip > div {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 13px 16px;
  border-left: 1px solid #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip > div:first-child {
  border-left: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip dt {
  color: #395174;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip dd {
  margin-top: 6px;
  color: #071637;
  font-size: 13px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip dd strong {
  color: #075ee8;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip dd strong.is-green {
  color: #0f8a4d;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip dd strong.is-orange {
  color: #f26a0a;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip dd small {
  color: #223653;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-ring-cell {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-ring {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-block;
  background: conic-gradient(#075ee8 var(--roadmaps-portfolio-score), #e6edf8 0);
  position: relative;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-estimate-note dd {
  margin-top: 4px;
  color: #50627f;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-detail-pane--portfolio {
  padding: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 14px;
  align-items: start;
  padding: 14px var(--roadmaps-detail-gutter) 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-main,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-sidebar,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-vault {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-main {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-sidebar {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-vault {
  grid-column: 1 / -1;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-layout.is-sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-layout.is-sidebar-collapsed .roadmaps-portfolio-sidebar {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-scoring-panel,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-vault-panel {
  border: 1px solid #d8e4f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 72, 0.04);
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-panel-head,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-panel-head h3,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-head h3 {
  margin: 0;
  color: #071637;
  font-size: 14px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-panel-head > span {
  width: 16px;
  height: 16px;
  border: 1px solid #9fb6db;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4d6385;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-table,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-evidence-table {
  display: grid;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-head,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row {
  display: grid;
  grid-template-columns: minmax(155px, 1.34fr) 104px 78px minmax(92px, 0.72fr) 62px;
  gap: 8px;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-head {
  padding: 0 18px 8px;
  color: #071637;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 1px solid #e1e8f3;
  padding: 8px 14px;
  color: #183158;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row > span,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-head > span {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row.is-active {
  border-top-color: #9fc4ff;
  border-left: 3px solid #075ee8;
  padding-left: 11px;
  background: #f4f8ff;
  box-shadow: inset 0 0 0 1px #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row:hover {
  background: #f8fbff;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row strong {
  color: #071637;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #071637;
  font-size: 13px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-name > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-icon,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
  background: #edf4ff;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-icon svg,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-icon svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-icon.is-green,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-icon.is-green {
  color: #0f8a4d;
  background: #eaf8f0;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-icon.is-amber,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-icon.is-amber {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-icon.is-slate,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-icon.is-slate {
  color: #526684;
  background: #f3f6fb;
  border-color: #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-pill,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #cfe0ff;
  border-radius: 5px;
  max-width: 100%;
  padding: 2px 6px;
  color: #075ee8;
  background: #edf4ff;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-pill.is-green,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-status.is-green {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-pill.is-amber,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-status.is-amber {
  color: #d9630b;
  background: #fff4e8;
  border-color: #ffd9b4;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-pill.is-red {
  color: #b42318;
  background: #fff0ee;
  border-color: #ffc9c1;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-pill.is-slate {
  color: #526684;
  background: #f3f6fb;
  border-color: #dce5f1;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-row-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(28px, 1fr);
  gap: 0;
  align-items: center;
  color: #51688d;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-row-progress > span:last-child {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-track {
  min-width: 0;
  height: 5px;
  border-radius: 999px;
  display: block;
  background: #dfe6f1;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row:nth-of-type(3n) .roadmaps-portfolio-track span,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row:nth-of-type(6n) .roadmaps-portfolio-track span {
  background: #0f8a4d;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-row-chevron {
  display: none;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-panel-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e1e8f3;
  padding: 10px 18px;
  color: #526684;
  font-size: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-help,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-view-all {
  border: 0;
  color: #075ee8;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-close {
  border: 0;
  color: #365175;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-top: 1px solid #e1e8f3;
  border-bottom: 1px solid #e1e8f3;
  padding: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-title h4 {
  margin: 0;
  color: #071637;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-title p {
  margin: 5px 0 0;
  color: #526684;
  font-size: 12px;
  font-weight: 400;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-score {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 14px 18px;
  border: 1px solid #dce5f1;
  border-radius: 7px;
  padding: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-score strong {
  color: #071637;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-score span,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-score small {
  color: #526684;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-score .roadmaps-portfolio-track {
  height: 6px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e1e8f3;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-grid section {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid #e1e8f3;
  border-bottom: 1px solid #e1e8f3;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-grid section:nth-child(2n) {
  border-right: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-grid h5 {
  margin: 0 0 10px;
  color: #071637;
  font-size: 13px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-check-list,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-warning-list,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-linked-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-check-list li,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-warning-list li {
  position: relative;
  padding-left: 18px;
  color: #304668;
  font-size: 12px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-check-list li::before,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-warning-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 1.5px solid #0f8a4d;
  border-radius: 999px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-warning-list li::before {
  border-color: #f26a0a;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-linked-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #304668;
  font-size: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-next-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #ffd9b4;
  border-radius: 7px;
  padding: 12px;
  color: #9a4b07;
  background: #fff8ef;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-next-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-actions {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 10px;
  padding: 12px 18px 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-actions .btn {
  min-height: 38px;
  border-radius: 6px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-evidence-head,
body.app-dashboard #section-roadmaps .roadmaps-portfolio-evidence-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) minmax(140px, 0.8fr) minmax(130px, 0.7fr) minmax(190px, 1fr) minmax(120px, 0.7fr) minmax(110px, 0.65fr) 28px;
  gap: 12px;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-evidence-head {
  padding: 0 18px 8px;
  color: #071637;
  font-size: 11px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-evidence-row {
  min-height: 40px;
  border-top: 1px solid #e1e8f3;
  padding: 7px 18px;
  color: #304668;
  font-size: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-kebab {
  border: 0;
  color: #365175;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-portfolio-view-all {
  width: 100%;
  min-height: 40px;
  border-top: 1px solid #e1e8f3;
}

@media (max-width: 1320px) {
  body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-portfolio-view .roadmaps-pathway-hero,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-layout {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-view.is-portfolio-view .roadmaps-pathway-stats {
    grid-column: auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector {
    position: static;
  }
}

@media (max-width: 820px) {
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-head,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-evidence-head {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-portfolio-domain-row,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-evidence-row,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-selected-score,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-grid,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-actions,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip {
    grid-template-columns: 1fr !important;
  }

  body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip > div,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-inspector-grid section {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #e1e8f3;
  }

  body.app-dashboard #section-roadmaps .roadmaps-portfolio-score-strip > div:first-child {
    border-top: 0;
  }
}

/* Specialty pathway opportunities tab */
body.app-dashboard #section-roadmaps .roadmaps-opportunities-pathway {
  display: grid;
  gap: 18px;
  padding: 20px 22px 22px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-head h3,
body.app-dashboard #section-roadmaps .roadmaps-opportunities-list-section h4,
body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap-strip h4 {
  margin: 0;
  color: #071637;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-head p {
  margin: 6px 0 0;
  color: #50627f;
  font-size: 13px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-recommended {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(210px, 260px);
  gap: 18px;
  align-items: center;
  min-height: 136px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  padding: 32px 20px 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-recommended-label {
  position: absolute;
  top: 13px;
  left: 20px;
  color: #075ee8;
  font-size: 12px;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunity-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #d7e3f2;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
  background: #eef5ff;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunity-icon svg {
  width: 30px;
  height: 30px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunity-icon.is-blue {
  color: #075ee8;
  background: #eef5ff;
  border-color: #d7e6ff;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunity-icon.is-green {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunity-icon.is-amber {
  color: #d95d00;
  background: #fff5e8;
  border-color: #ffd9ae;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunity-icon.is-purple {
  color: #7a2ee8;
  background: #f5edff;
  border-color: #dec8ff;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-recommended-copy {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-title-row h4 {
  margin: 0;
  color: #071637;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-recommended-copy p {
  margin: 9px 0 0;
  color: #304668;
  font-size: 13px;
  line-height: 1.45;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  padding: 4px 10px;
  color: #075ee8;
  background: #eef5ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-chip.is-green {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-chip.is-amber {
  color: #d95d00;
  background: #fff5e8;
  border-color: #ffd7aa;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-chip.is-purple {
  color: #7a2ee8;
  background: #f5edff;
  border-color: #dec8ff;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-actions {
  display: grid;
  gap: 10px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-button {
  min-height: 42px;
  border: 1px solid #c9d8ee;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  color: #075ee8;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-button svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-button.is-primary {
  border-color: #075ee8;
  color: #ffffff;
  background: #075ee8;
  box-shadow: 0 12px 24px rgba(7, 94, 232, 0.16);
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-button.is-primary.is-added,
body.app-dashboard #section-roadmaps .roadmaps-opportunities-button.is-primary:disabled {
  border-color: #0f8a4d;
  color: #ffffff;
  background: #0f8a4d;
  box-shadow: none;
  cursor: default;
  opacity: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-button.is-secondary:hover,
body.app-dashboard #section-roadmaps .roadmaps-opportunities-row:hover {
  border-color: #8fb5ff;
  background: #f8fbff;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-list-section {
  display: grid;
  gap: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-list-section h4,
body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap-strip h4 {
  font-size: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-list {
  border: 1px solid #dce5f1;
  border-radius: 8px;
  overflow: hidden;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-row {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid #e1e8f3;
  display: grid;
  grid-template-columns: auto minmax(170px, 1.4fr) auto minmax(180px, auto) minmax(104px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  background: #ffffff;
  color: #071637;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-row:last-child {
  border-bottom: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-row .roadmaps-opportunity-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-row .roadmaps-opportunity-icon svg {
  width: 24px;
  height: 24px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-row strong {
  min-width: 0;
  color: #071637;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-support-label {
  color: #50627f;
  font-size: 12px;
  font-weight: 500;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-chevron {
  color: #1d3c6f;
  font-size: 24px;
  line-height: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap-strip {
  display: grid;
  gap: 12px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  padding: 15px 16px;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gaps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, auto);
  gap: 0;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-right: 1px solid #dce5f1;
  padding: 0 22px 0 6px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap + .roadmaps-opportunities-gap {
  padding-left: 22px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap .roadmaps-opportunity-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap .roadmaps-opportunity-icon svg {
  width: 24px;
  height: 24px;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap strong,
body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap span {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap strong {
  color: #071637;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap div > span {
  margin-top: 4px;
  color: #075ee8;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-opportunities-view-all {
  justify-self: end;
  min-width: 190px;
}

@media (max-width: 1200px) {
  body.app-dashboard #section-roadmaps .roadmaps-opportunities-recommended {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-support-label {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-row .roadmaps-opportunities-chip {
    justify-self: start;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-gaps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 14px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-view-all {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-opportunities-pathway {
    padding: 16px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-recommended,
  body.app-dashboard #section-roadmaps .roadmaps-opportunities-actions,
  body.app-dashboard #section-roadmaps .roadmaps-opportunities-gaps {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-recommended {
    padding-top: 40px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-row .roadmaps-opportunities-chip,
  body.app-dashboard #section-roadmaps .roadmaps-opportunities-chevron {
    grid-column: 2;
    justify-self: start;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap,
  body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap + .roadmaps-opportunities-gap {
    border-right: 0;
    border-top: 1px solid #dce5f1;
    padding: 12px 0 0;
  }

  body.app-dashboard #section-roadmaps .roadmaps-opportunities-gap:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* Specialty pathway application pack tab */
body.app-dashboard #section-roadmaps .roadmaps-application-pack {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-readiness {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(430px, 1.7fr) minmax(210px, auto);
  gap: 18px;
  align-items: center;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  padding: 16px 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

body.app-dashboard #section-roadmaps .roadmaps-application-ring {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(#075ee8 var(--roadmaps-application-ready), #e2e8f2 0);
}

body.app-dashboard #section-roadmaps .roadmaps-application-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ring strong,
body.app-dashboard #section-roadmaps .roadmaps-application-ring span {
  position: relative;
  display: block;
  text-align: center;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ring strong {
  color: #071637;
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ring span {
  margin-top: 4px;
  color: #50627f;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-application-readiness-copy h3,
body.app-dashboard #section-roadmaps .roadmaps-application-section-head h3,
body.app-dashboard #section-roadmaps .roadmaps-application-blockers h3,
body.app-dashboard #section-roadmaps .roadmaps-application-timeline h3 {
  margin: 0;
  color: #071637;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-application-readiness-copy p,
body.app-dashboard #section-roadmaps .roadmaps-application-section-head p,
body.app-dashboard #section-roadmaps .roadmaps-application-timeline p {
  margin: 7px 0 0;
  color: #50627f;
  font-size: 13px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-application-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-facts article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid #dce5f1;
  border-radius: 7px;
  padding: 10px 12px;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-application-fact-icon,
body.app-dashboard #section-roadmaps .roadmaps-application-row-icon,
body.app-dashboard #section-roadmaps .roadmaps-application-timeline-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
  background: #eef5ff;
}

body.app-dashboard #section-roadmaps .roadmaps-application-fact-icon svg,
body.app-dashboard #section-roadmaps .roadmaps-application-row-icon svg,
body.app-dashboard #section-roadmaps .roadmaps-application-timeline-icon svg {
  width: 21px;
  height: 21px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-fact-icon.is-green,
body.app-dashboard #section-roadmaps .roadmaps-application-section-row.is-green .roadmaps-application-row-icon,
body.app-dashboard #section-roadmaps .roadmaps-application-timeline li.is-green .roadmaps-application-timeline-icon {
  color: #087b62;
  border-color: #c8efe1;
  background: #e9fbf4;
}

body.app-dashboard #section-roadmaps .roadmaps-application-fact-icon.is-amber,
body.app-dashboard #section-roadmaps .roadmaps-application-section-row.is-amber .roadmaps-application-row-icon {
  color: #f26a0a;
  border-color: #ffd7aa;
  background: #fff5e8;
}

body.app-dashboard #section-roadmaps .roadmaps-application-fact-icon.is-red,
body.app-dashboard #section-roadmaps .roadmaps-application-section-row.is-red .roadmaps-application-row-icon {
  color: #ff4f42;
  border-color: #ffd0ca;
  background: #fff1ef;
}

body.app-dashboard #section-roadmaps .roadmaps-application-section-row.is-slate .roadmaps-application-row-icon {
  color: #64748b;
  border-color: #d8e0ec;
  background: #f5f7fb;
}

body.app-dashboard #section-roadmaps .roadmaps-application-facts span,
body.app-dashboard #section-roadmaps .roadmaps-application-facts strong {
  display: block;
}

body.app-dashboard #section-roadmaps .roadmaps-application-facts span {
  color: #50627f;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-application-facts strong {
  margin-top: 3px;
  color: #071637;
  font-size: 13px;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-application-primary {
  min-height: 46px;
  border: 1px solid #075ee8;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #ffffff;
  background: #075ee8;
  box-shadow: 0 12px 24px rgba(7, 94, 232, 0.16);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-application-primary svg {
  width: 19px;
  height: 19px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(330px, 0.95fr);
  gap: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-sections,
body.app-dashboard #section-roadmaps .roadmaps-application-blockers,
body.app-dashboard #section-roadmaps .roadmaps-application-timeline {
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 72, 0.04);
}

body.app-dashboard #section-roadmaps .roadmaps-application-sections,
body.app-dashboard #section-roadmaps .roadmaps-application-blockers {
  padding: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-section-head button {
  border: 0;
  color: #071637;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-application-section-list {
  display: grid;
  gap: 6px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-section-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.35fr) auto minmax(150px, 0.58fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid #dce5f1;
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
}

body.app-dashboard #section-roadmaps .roadmaps-application-row-copy {
  min-width: 0;
}

body.app-dashboard #section-roadmaps .roadmaps-application-row-copy h4 {
  margin: 0;
  color: #071637;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-application-row-copy p {
  margin: 5px 0 0;
  color: #50627f;
  font-size: 11.5px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-application-status {
  min-height: 24px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  color: #075ee8;
  background: #eef5ff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

body.app-dashboard #section-roadmaps .roadmaps-application-status.is-green {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard #section-roadmaps .roadmaps-application-status.is-amber {
  color: #d95d00;
  background: #fff5e8;
  border-color: #ffd7aa;
}

body.app-dashboard #section-roadmaps .roadmaps-application-status.is-red {
  color: #e3352b;
  background: #fff1ef;
  border-color: #ffc8c0;
}

body.app-dashboard #section-roadmaps .roadmaps-application-status.is-slate {
  color: #526684;
  background: #f3f6fb;
  border-color: #d8e0ec;
}

body.app-dashboard #section-roadmaps .roadmaps-application-row-progress {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body.app-dashboard #section-roadmaps .roadmaps-application-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfe6f0;
}

body.app-dashboard #section-roadmaps .roadmaps-application-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #075ee8;
}

body.app-dashboard #section-roadmaps .roadmaps-application-section-row.is-green .roadmaps-application-track span {
  background: #087b62;
}

body.app-dashboard #section-roadmaps .roadmaps-application-section-row.is-amber .roadmaps-application-track span,
body.app-dashboard #section-roadmaps .roadmaps-application-section-row.is-red .roadmaps-application-track span {
  background: #f26a0a;
}

body.app-dashboard #section-roadmaps .roadmaps-application-row-progress strong {
  color: #304668;
  font-size: 12px;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-application-row-action {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #075ee8;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-application-row-action svg {
  width: 13px;
  height: 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-chevron {
  color: #1d3c6f;
  font-size: 22px;
  line-height: 1;
}

body.app-dashboard #section-roadmaps .roadmaps-application-blocker-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-blocker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid #ffc8c0;
  border-radius: 7px;
  padding: 9px 12px;
  color: #071637;
  background: #fff6f5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.app-dashboard #section-roadmaps .roadmaps-application-blocker svg {
  width: 20px;
  height: 20px;
  color: #ff4f42;
}

body.app-dashboard #section-roadmaps .roadmaps-application-blocker strong {
  font-size: 12px;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ready-list {
  border-top: 1px solid #e1e8f3;
  margin-top: 16px;
  padding-top: 15px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ready-list h4 {
  margin: 0 0 10px;
  color: #071637;
  font-size: 13px;
  font-weight: 600;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ready-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ready-list li {
  position: relative;
  padding-left: 22px;
  color: #50627f;
  font-size: 12px;
  line-height: 1.35;
}

body.app-dashboard #section-roadmaps .roadmaps-application-ready-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 1.5px solid #0f8a4d;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 42%, #0f8a4d 43% 56%, transparent 57%) 3px 6px / 5px 5px no-repeat,
    linear-gradient(-45deg, transparent 42%, #0f8a4d 43% 56%, transparent 57%) 6px 4px / 6px 7px no-repeat;
}

body.app-dashboard #section-roadmaps .roadmaps-application-resolve {
  width: 100%;
  margin-top: 16px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-timeline {
  padding: 16px 18px 20px;
}

body.app-dashboard #section-roadmaps .roadmaps-application-timeline ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

body.app-dashboard #section-roadmaps .roadmaps-application-timeline ol::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 21px;
  height: 2px;
  background: #cfe0ff;
}

body.app-dashboard #section-roadmaps .roadmaps-application-timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

body.app-dashboard #section-roadmaps .roadmaps-application-timeline-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #eef5ff;
}

body.app-dashboard #section-roadmaps .roadmaps-application-timeline li strong {
  color: #071637;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

body.app-dashboard #section-roadmaps .roadmaps-application-timeline li small {
  color: #395a91;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 600;
}

@media (max-width: 1320px) {
  body.app-dashboard #section-roadmaps .roadmaps-application-readiness {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.app-dashboard #section-roadmaps .roadmaps-application-facts,
  body.app-dashboard #section-roadmaps .roadmaps-application-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  body.app-dashboard #section-roadmaps .roadmaps-application-workspace {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-application-section-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-application-row-progress,
  body.app-dashboard #section-roadmaps .roadmaps-application-row-action,
  body.app-dashboard #section-roadmaps .roadmaps-application-chevron {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body.app-dashboard #section-roadmaps .roadmaps-application-pack {
    padding: 14px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-application-readiness,
  body.app-dashboard #section-roadmaps .roadmaps-application-facts,
  body.app-dashboard #section-roadmaps .roadmaps-application-timeline ol {
    grid-template-columns: 1fr;
  }

  body.app-dashboard #section-roadmaps .roadmaps-application-ring {
    justify-self: center;
  }

  body.app-dashboard #section-roadmaps .roadmaps-application-timeline ol::before {
    display: none;
  }
}

/* Student messages + notices page */
body.app-dashboard .messages-page {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.app-dashboard .messages-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

body.app-dashboard .messages-page-header h2 {
  margin: 0;
  color: #071637;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

body.app-dashboard .messages-page-header p {
  margin: 10px 0 0;
  color: #304668;
  font-size: 15px;
}

body.app-dashboard .messages-page-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.app-dashboard .messages-search-field,
body.app-dashboard .messages-list-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #d9e2f1;
  border-radius: 7px;
  background: #ffffff;
  color: #395a91;
}

body.app-dashboard .messages-search-field {
  width: 260px;
  min-height: 44px;
  padding: 0 13px;
}

body.app-dashboard .messages-list-search {
  min-height: 44px;
  padding: 0 12px;
  margin: 16px 14px 14px;
}

body.app-dashboard .messages-search-field svg,
body.app-dashboard .messages-list-search svg {
  width: 20px;
  height: 20px;
}

body.app-dashboard .messages-search-field input,
body.app-dashboard .messages-list-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071637;
  font: inherit;
  font-size: 14px;
}

body.app-dashboard .messages-filter-button,
body.app-dashboard .messages-sort-button {
  min-height: 44px;
  border: 1px solid #d9e2f1;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #071637;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard .messages-filter-button svg {
  width: 19px;
  height: 19px;
  color: #395a91;
}

body.app-dashboard .messages-filter-button.is-active {
  border-color: #075ee8;
  color: #075ee8;
  background: #eef5ff;
}

body.app-dashboard .messages-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.24fr) minmax(300px, 0.95fr);
  min-height: 640px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 35, 72, 0.06);
}

body.app-dashboard .messages-shell--inbox {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.65fr);
}

body.app-dashboard .messages-conversation-list,
body.app-dashboard .messages-chat-panel,
body.app-dashboard .messages-action-panel {
  min-width: 0;
}

body.app-dashboard .messages-conversation-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d9e2f1;
  background: #ffffff;
}

body.app-dashboard .messages-inbox-heading {
  padding: 18px 18px 0;
}

body.app-dashboard .messages-inbox-heading h3 {
  margin: 0;
  color: #071637;
  font-size: 19px;
  font-weight: 600;
}

body.app-dashboard .messages-inbox-heading p {
  margin: 5px 0 0;
  color: #60708a;
  font-size: 12px;
  font-weight: 400;
}

body.app-dashboard .messages-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 14px;
  border: 1px solid #d9e2f1;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

body.app-dashboard .messages-segmented button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid #d9e2f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #304668;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard .messages-segmented button:last-child {
  border-right: 0;
}

body.app-dashboard .messages-segmented button svg {
  width: 18px;
  height: 18px;
}

body.app-dashboard .messages-segmented button.is-active {
  color: #ffffff;
  background: #075ee8;
}

body.app-dashboard .messages-tab-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #ffffff;
  background: #ff5b4f;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
}

body.app-dashboard .messages-segmented button.is-active .messages-tab-count {
  color: #075ee8;
  background: #ffffff;
}

body.app-dashboard .messages-thread-list {
  display: grid;
  gap: 0;
  padding: 0 8px;
}

body.app-dashboard .messages-thread {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  border: 1px solid transparent;
  border-bottom-color: #e5ebf4;
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
  color: #071637;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.app-dashboard .messages-thread.is-active {
  border-color: #075ee8;
  background: #f6f9ff;
}

body.app-dashboard .messages-avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #075ee8;
  background: #eef5ff;
  font-weight: 600;
}

body.app-dashboard .messages-avatar svg {
  width: 26px;
  height: 26px;
}

body.app-dashboard .messages-avatar--photo {
  position: relative;
  color: #ffffff;
  border: 2px solid #e6edf8;
  box-shadow: 0 8px 18px rgba(7, 22, 55, 0.08);
}

body.app-dashboard .messages-avatar--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, #ffe0bd 0 17%, transparent 18%),
    radial-gradient(circle at 50% 78%, #075ee8 0 29%, transparent 30%),
    linear-gradient(135deg, #1f2937, #6b7280);
}

body.app-dashboard .messages-avatar--maya::before {
  background:
    radial-gradient(circle at 50% 32%, #f2c4a5 0 17%, transparent 18%),
    radial-gradient(circle at 50% 78%, #075ee8 0 29%, transparent 30%),
    linear-gradient(135deg, #2b1a16, #a36a4f);
}

body.app-dashboard .messages-avatar--singh::before {
  background:
    radial-gradient(circle at 50% 32%, #d4a06f 0 17%, transparent 18%),
    radial-gradient(circle at 50% 78%, #0f8a4d 0 29%, transparent 30%),
    linear-gradient(135deg, #1e293b, #64748b);
}

body.app-dashboard .messages-avatar--notice {
  color: #075ee8;
  background: #eef5ff;
}

body.app-dashboard .messages-avatar--request {
  color: #f26a0a;
  background: #fff5e8;
}

body.app-dashboard .messages-avatar--teaching {
  color: #7a2ee8;
  background: #f5edff;
}

body.app-dashboard .messages-thread-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.app-dashboard .messages-thread-title {
  color: #071637;
  font-size: 14px;
  font-weight: 600;
}

body.app-dashboard .messages-thread-preview {
  overflow: hidden;
  color: #395a91;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.app-dashboard .messages-thread-meta {
  align-self: start;
  color: #395a91;
  font-size: 12px;
  font-weight: 500;
}

body.app-dashboard .messages-thread-count {
  position: absolute;
  right: 14px;
  bottom: 19px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #075ee8;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard .messages-thread-empty {
  border: 1px dashed #d9e2f1;
  border-radius: 8px;
  margin: 12px;
  padding: 22px 16px;
  color: #60708a;
  background: #f8fbff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

body.app-dashboard .messages-chip {
  width: fit-content;
  min-height: 22px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: #075ee8;
  background: #eef5ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
}

body.app-dashboard .messages-chip.is-orange {
  color: #d95d00;
  background: #fff5e8;
  border-color: #ffd7aa;
}

body.app-dashboard .messages-chip.is-green {
  color: #087b62;
  background: #e9fbf4;
  border-color: #c8efe1;
}

body.app-dashboard .messages-view-all,
body.app-dashboard .messages-action-footer {
  margin-top: auto;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  color: #075ee8;
  background: transparent;
  text-decoration: none;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard .messages-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fbf8f3;
}

body.app-dashboard .messages-chat-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  border-bottom: 1px solid #d9e2f1;
  padding: 14px 24px;
  background: #ffffff;
}

body.app-dashboard .messages-chat-header h3 {
  margin: 0;
  color: #071637;
  font-size: 17px;
  font-weight: 600;
}

body.app-dashboard .messages-chat-header p {
  margin: 4px 0 0;
  color: #304668;
  font-size: 12px;
  font-weight: 400;
}

body.app-dashboard .messages-chat-header span:not(.messages-avatar) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #6b7c98;
  font-size: 12px;
}

body.app-dashboard .messages-chat-header i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f8a4d;
}

body.app-dashboard .messages-chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.app-dashboard .messages-chat-actions button,
body.app-dashboard .messages-composer button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d3c6f;
  background: transparent;
  cursor: pointer;
}

body.app-dashboard .messages-chat-actions button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

body.app-dashboard .messages-chat-actions button:hover {
  background: #f3f6fb;
}

body.app-dashboard .messages-chat-actions svg,
body.app-dashboard .messages-composer svg {
  width: 22px;
  height: 22px;
}

body.app-dashboard .messages-chat-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 20px 28px 28px;
  background:
    radial-gradient(circle at 20px 20px, rgba(7, 94, 232, 0.035) 0 2px, transparent 2.5px) 0 0 / 36px 36px,
    linear-gradient(180deg, #fbf8f3, #fcfaf6);
}

body.app-dashboard .messages-day-pill {
  align-self: center;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  padding: 7px 14px;
  color: #304668;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(15, 35, 72, 0.05);
}

body.app-dashboard .messages-bubble {
  max-width: min(70%, 360px);
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  padding: 12px 14px 10px;
  color: #172747;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 35, 72, 0.05);
}

body.app-dashboard .messages-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
}

body.app-dashboard .messages-bubble time {
  display: block;
  margin-top: 4px;
  color: #60708a;
  font-size: 11px;
  text-align: right;
}

body.app-dashboard .messages-bubble.is-outgoing {
  align-self: flex-end;
  border-color: #cfe0ff;
  background: #eaf3ff;
}

body.app-dashboard .messages-bubble.is-short {
  max-width: 240px;
}

body.app-dashboard .messages-bubble.is-notice {
  width: min(86%, 460px);
  max-width: 460px;
  cursor: pointer;
}

body.app-dashboard .messages-bubble.is-notice.is-selected {
  border-color: #075ee8;
  box-shadow: 0 0 0 3px rgba(7, 94, 232, 0.12), 0 14px 28px rgba(15, 35, 72, 0.08);
}

body.app-dashboard .messages-bubble.is-notice.is-acknowledged {
  border-color: #c8efe1;
  background: #f9fffc;
}

body.app-dashboard .messages-bubble.is-notice.is-unread:not(.is-selected) {
  border-color: #cfe0ff;
  background: #f7fbff;
}

body.app-dashboard .messages-notice-bubble-head,
body.app-dashboard .messages-notice-bubble-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.app-dashboard .messages-notice-bubble-head {
  justify-content: flex-start;
  margin-bottom: 10px;
}

body.app-dashboard .messages-bubble.is-notice h4 {
  margin: 0 0 7px;
  color: #071637;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

body.app-dashboard .messages-notice-bubble-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5ebf4;
}

body.app-dashboard .messages-notice-bubble-foot time {
  margin: 0;
  text-align: left;
}

body.app-dashboard .messages-notice-bubble-foot a {
  color: #075ee8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

body.app-dashboard .messages-bubble.has-attachment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 280px;
}

body.app-dashboard .messages-attachment-icon {
  width: 38px;
  height: 44px;
  border-radius: 6px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 7px;
  color: #ffffff;
  background: #ff665a;
  font-size: 10px;
  font-weight: 600;
}

body.app-dashboard .messages-bubble strong,
body.app-dashboard .messages-bubble small {
  display: block;
}

body.app-dashboard .messages-bubble strong {
  color: #071637;
  font-size: 14px;
}

body.app-dashboard .messages-bubble small {
  margin-top: 4px;
  color: #304668;
  font-size: 12px;
}

body.app-dashboard .messages-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #d9e2f1;
  padding: 14px 16px;
  background: #ffffff;
}

body.app-dashboard .messages-shell--inbox .messages-composer {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.app-dashboard .messages-composer button {
  width: 44px;
  height: 44px;
  border: 1px solid #d9e2f1;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  background: #ffffff;
}

body.app-dashboard .messages-composer button[type="submit"] {
  border-color: #075ee8;
  color: #ffffff;
  background: #075ee8;
  box-shadow: 0 12px 24px rgba(7, 94, 232, 0.18);
}

body.app-dashboard .messages-composer.is-disabled {
  background: #f8fbff;
}

body.app-dashboard .messages-composer.is-disabled input,
body.app-dashboard .messages-composer.is-disabled button {
  opacity: 0.58;
  cursor: not-allowed;
}

body.app-dashboard .messages-composer input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  padding: 0 16px;
  color: #071637;
  background: #ffffff;
  font: inherit;
}

body.app-dashboard .messages-action-panel {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #d9e2f1;
  padding: 18px;
  background: #ffffff;
}

body.app-dashboard .messages-action-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

body.app-dashboard .messages-action-panel > header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.app-dashboard .messages-action-panel h3 {
  margin: 0;
  color: #071637;
  font-size: 17px;
  font-weight: 600;
}

body.app-dashboard .messages-action-heading-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075ee8;
}

body.app-dashboard .messages-action-heading-icon svg {
  width: 24px;
  height: 24px;
}

body.app-dashboard .messages-action-panel > header button {
  border: 0;
  color: #1d3c6f;
  background: transparent;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

body.app-dashboard .messages-action-card {
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  padding: 16px 18px;
  background: #ffffff;
}

body.app-dashboard .messages-action-card + .messages-action-card {
  margin-top: 16px;
}

body.app-dashboard .messages-notice-action-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

body.app-dashboard .messages-notice-action-list[hidden] {
  display: none;
}

body.app-dashboard .messages-action-card.is-official {
  border-color: #075ee8;
  box-shadow: 0 12px 24px rgba(7, 94, 232, 0.08);
}

body.app-dashboard .messages-action-card--notice-mini {
  background: #ffffff;
}

body.app-dashboard .messages-action-card.is-route-highlighted {
  border-color: #0b63f6;
  box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.14), 0 18px 34px rgba(11, 99, 246, 0.16);
}

body.app-dashboard .messages-action-card.is-request {
  border-color: #ffd7aa;
  background: #fffaf4;
}

body.app-dashboard .messages-action-card.is-update {
  border-color: #c8efe1;
  background: #f9fffc;
}

body.app-dashboard .messages-action-card.is-complete {
  border-color: #c8efe1;
  background: #f9fffc;
}

body.app-dashboard .messages-action-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

body.app-dashboard .messages-action-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #075ee8;
}

body.app-dashboard .messages-action-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #071637;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

body.app-dashboard .messages-action-card p {
  margin: 10px 0 0;
  color: #304668;
  font-size: 13px;
  line-height: 1.45;
}

body.app-dashboard .messages-action-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #304668;
  font-size: 13px;
  font-weight: 600;
}

body.app-dashboard .messages-action-meta svg {
  width: 22px;
  height: 22px;
  color: #395a91;
}

body.app-dashboard .messages-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.app-dashboard .messages-action-buttons button,
body.app-dashboard .messages-action-buttons a {
  min-height: 42px;
  border: 1px solid #075ee8;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  padding: 0 16px;
  color: #075ee8;
  background: #ffffff;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.app-dashboard .messages-action-buttons .is-primary,
body.app-dashboard .messages-action-buttons button.is-primary {
  color: #ffffff;
  background: #075ee8;
}

body.app-dashboard .messages-action-buttons button:disabled {
  border-color: #c8efe1;
  color: #087b62;
  background: #e9fbf4;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 1280px) {
  body.app-dashboard .messages-shell {
    grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.3fr);
  }

  body.app-dashboard .messages-action-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #d9e2f1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  body.app-dashboard .messages-action-panel > header,
  body.app-dashboard .messages-action-footer {
    grid-column: 1 / -1;
  }

  body.app-dashboard .messages-action-card + .messages-action-card {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  body.app-dashboard .messages-page-header,
  body.app-dashboard .messages-page-controls {
    align-items: stretch;
    flex-direction: column;
  }

  body.app-dashboard .messages-search-field {
    width: 100%;
  }

  body.app-dashboard .messages-shell,
  body.app-dashboard .messages-action-panel {
    grid-template-columns: 1fr;
  }

  body.app-dashboard .messages-conversation-list,
  body.app-dashboard .messages-action-panel {
    border-left: 0;
    border-right: 0;
  }

  body.app-dashboard .messages-bubble {
    max-width: 88%;
  }
}

/* =========================================================================
   Student mobile pass: shared shell, sign-offs, roadmaps, and messages
   ========================================================================= */
.student-mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  html,
  body.app-dashboard.student-shell-unified {
    max-width: 100vw;
    /* Clip sideways paint without creating a second vertical scroll container. */
    overflow-x: clip;
  }

  body.app-dashboard.student-shell-unified {
    --student-mobile-nav-height: 76px;
  }

  body.app-dashboard.student-shell-unified .navbar-app {
    position: sticky;
    top: 0;
    z-index: 1080;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-container {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.52rem 0.82rem 0.62rem !important;
    gap: 0.54rem 0.7rem !important;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-logo {
    order: 1;
    flex: 1 1 auto !important;
    min-width: 0;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-links {
    order: 2;
    margin-left: auto;
    gap: 0.55rem;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-search {
    order: 3;
    flex: 0 0 100% !important;
    width: 100%;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-search input {
    width: 100% !important;
    max-width: none;
    height: 40px !important;
    /* 16px: below it iOS zooms the page on focus (mobile web and native) */
    font-size: 16px !important;
  }

  /* icon + badge only on phones — the text label collides with the avatar */
  body.app-dashboard.student-shell-unified .navbar-app .dm-trigger-text {
    display: none;
  }

  body.app-dashboard.student-shell-unified .student-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    display: grid;
    /* Count-proof columns: the JS owns how many tabs exist (it changed 6 → 5
       once already and left this grid stale). auto-flow lays out exactly as
       many equal columns as there are items, so CSS can never desync again. */
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.16rem;
    min-height: var(--student-mobile-nav-height);
    padding: 0.42rem 0.42rem calc(0.42rem + env(safe-area-inset-bottom, 0px));
    /* the approved profile-mockup grammar: a quiet hairline bar, no shadow slab */
    border-top: 1px solid #e5e5ea;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  body.app-dashboard.student-shell-unified .student-mobile-nav-item {
    position: relative;
    min-width: 0;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    /* full reset — Today/Learn/More render as <button> (UA padding) while
       Timetable/Sign-offs are <a>; without this the pills sit unevenly */
    padding: 0;
    color: #9aa0ab;
    background: transparent;
    text-decoration: none;
    font: inherit;
    /* five tabs on a 390pt phone — labels fit comfortably */
    font-size: 10px;
    letter-spacing: 0;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Active state = ink, colour only — no pill, no slab (the approved
     profile-mockup grammar). The icon padding exists in both states so tab
     content never shifts when the selection moves. */
  body.app-dashboard.student-shell-unified .student-mobile-nav-item.is-active {
    color: #16233f;
    background: transparent;
  }

  body.app-dashboard.student-shell-unified .student-mobile-nav-item.is-active .student-mobile-nav-icon {
    background: transparent;
  }

  body.app-dashboard.student-shell-unified .student-mobile-nav-icon {
    width: auto;
    height: auto;
    padding: 3px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.app-dashboard.student-shell-unified .student-mobile-nav-icon svg {
    width: 22px;
    height: 22px;
  }

  body.app-dashboard.student-shell-unified .student-mobile-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app-dashboard.student-shell-unified .student-mobile-nav-badge {
    position: absolute;
    top: 0.38rem;
    right: calc(50% - 1.38rem);
    min-width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
    color: #ffffff;
    background: #ff5145;
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1;
  }

  body.app-dashboard.student-shell-unified:not(.pf-frame-v1) .app-content {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    padding: 0.82rem 0.7rem calc(var(--student-mobile-nav-height) + 1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.app-dashboard.student-shell-unified:not(.pf-frame-v1) .app-inner {
    max-width: none !important;
    min-width: 0;
  }

  body.app-dashboard.student-shell-unified .bug-report-fab {
    right: 0.7rem;
    bottom: calc(var(--student-mobile-nav-height) + 0.8rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 460px) {
  body.app-dashboard.student-shell-unified .navbar-app .nav-logo-text {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app-dashboard.student-shell-unified .navbar-app .nav-link-text,
  body.app-dashboard.student-shell-unified .navbar-app .profile-role {
    display: none;
  }

  body.app-dashboard.student-shell-unified .navbar-app .profile-pill {
    padding: 0.24rem;
  }
}

@media (max-width: 760px) {
  body.forms-page,
  body.forms-page .app-shell,
  body.forms-page .app-content,
  body.forms-page .app-inner,
  body.forms-page .forms-panel,
  body.forms-page .forms-page-meta,
  body.forms-page .forms-title-block,
  body.forms-page .forms-progress-strip,
  body.forms-page .forms-library-toolbar,
  body.forms-page .forms-filter-row,
  body.forms-page .forms-layout,
  body.forms-page .forms-template-list,
  body.forms-page .forms-detail-drawer {
    max-width: 100%;
    min-width: 0;
  }

  body.forms-page {
    overflow-x: hidden;
  }

  body.forms-page .app-shell,
  body.forms-page .app-content,
  body.forms-page .app-inner,
  body.forms-page .forms-panel {
    overflow-x: clip;
  }

  body.forms-page .app-inner {
    padding: 0.9rem 0.72rem calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.forms-page .forms-page-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 0.85rem;
  }

  body.forms-page .forms-title-block h1 {
    font-size: 2rem;
  }

  body.forms-page .forms-title-block h1,
  body.forms-page .forms-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.forms-page .forms-progress-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.68rem;
    overflow-x: hidden;
    padding: 0.68rem;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  body.forms-page .forms-progress-strip::-webkit-scrollbar {
    display: none;
  }

  body.forms-page .forms-progress-tile {
    width: 100%;
    flex: 1 1 auto;
    min-height: 104px;
    border: 1px solid #e2e9f5 !important;
    border-radius: 8px;
    scroll-snap-align: none;
  }

  body.forms-page .forms-library-toolbar {
    position: sticky;
    top: 106px;
    z-index: 20;
    grid-template-columns: 1fr;
    padding: 0.62rem;
    overflow: hidden;
  }

  body.forms-page .forms-tabs,
  body.forms-page .forms-toolbar-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    overflow-x: hidden;
    padding-bottom: 0.08rem;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  body.forms-page .forms-tabs::-webkit-scrollbar,
  body.forms-page .forms-toolbar-actions::-webkit-scrollbar {
    display: none;
  }

  body.forms-page .forms-subtab,
  body.forms-page .forms-toolbar-actions .btn {
    flex: 0 0 auto;
  }

  body.forms-page .forms-filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.forms-page .forms-filter-group,
  body.forms-page .forms-placement-select-wrap {
    width: 100%;
  }

  body.forms-page .forms-placement-select {
    min-width: 0;
    width: 100%;
  }

  body.forms-page .forms-template-card {
    min-height: 0;
    grid-template-columns: 1fr !important;
    gap: 0.76rem;
    padding: 0.86rem;
  }

  body.forms-page .forms-template-head {
    align-items: flex-start;
  }

  body.forms-page .forms-template-progress {
    width: 100%;
  }

  body.forms-page .forms-template-action {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    border: 1px solid #d8e1f0;
    border-radius: 6px;
    background: #ffffff;
  }

  body.forms-page .forms-detail-drawer {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  body.app-dashboard #section-roadmaps.roadmaps-page {
    overflow: visible;
  }

  body.app-dashboard:not(.pf-frame-v1):has(#section-roadmaps.is-active) .app-inner {
    padding: 0.76rem 0.7rem calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header {
    display: grid;
    gap: 0.45rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-page-header h2 {
    font-size: 2rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tabs,
  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-filter-row,
  body.app-dashboard #section-roadmaps .roadmaps-year-switcher,
  body.app-dashboard #section-roadmaps .roadmaps-year-toolbar-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tabs::-webkit-scrollbar,
  body.app-dashboard #section-roadmaps .roadmaps-detail-view-toggle::-webkit-scrollbar,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-filter-row::-webkit-scrollbar,
  body.app-dashboard #section-roadmaps .roadmaps-year-switcher::-webkit-scrollbar,
  body.app-dashboard #section-roadmaps .roadmaps-year-toolbar-actions::-webkit-scrollbar {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-category-tab,
  body.app-dashboard #section-roadmaps .roadmaps-detail-view-tab,
  body.app-dashboard #section-roadmaps .roadmaps-year-switcher-item,
  body.app-dashboard #section-roadmaps .roadmaps-year-toolbar-actions .btn {
    flex: 0 0 auto;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-toolbar {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-card-head--timeline {
    display: grid;
    gap: 0.7rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-timeline-surface--month {
    --roadmaps-year-layout-width: 1120px;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-month-axis,
  body.app-dashboard #section-roadmaps .roadmaps-year-month-canvas {
    min-width: var(--roadmaps-year-layout-width, 1120px);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-block {
    min-width: 172px;
    max-width: 260px;
    min-height: 64px;
    padding: 0.72rem 0.8rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-milestone {
    min-width: 132px;
    max-width: 172px;
    padding: 0.46rem 0.58rem;
    transform: translate(-50%, 0);
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-block-title,
  body.app-dashboard #section-roadmaps .roadmaps-year-milestone-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
  }

  body.app-dashboard #section-roadmaps .roadmaps-year-detail,
  body.app-dashboard #section-roadmaps .roadmaps-support-card,
  body.app-dashboard #section-roadmaps .roadmaps-specialty-detail-panel,
  body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-sidebar,
  body.app-dashboard #section-roadmaps .roadmaps-training-sidebar {
    position: static;
    width: 100%;
    max-width: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-specialty-grid,
  body.app-dashboard #section-roadmaps .roadmaps-portfolio-layout,
  body.app-dashboard #section-roadmaps .roadmaps-training-layout,
  body.app-dashboard #section-roadmaps .roadmaps-roadmap-layout,
  body.app-dashboard #section-roadmaps .roadmaps-compare-controls,
  body.app-dashboard #section-roadmaps .roadmaps-compare-two-col {
    grid-template-columns: 1fr !important;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-shell {
    display: block;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-backdrop {
    display: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-item-detail-panel {
    max-height: none;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-header,
  body.app-dashboard #section-roadmaps .roadmaps-compare-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.app-dashboard #section-roadmaps .roadmaps-detail-actions,
  body.app-dashboard #section-roadmaps .roadmaps-compare-roadmap-links {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.app-dashboard .messages-page-header {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
  }

  body.app-dashboard .messages-page-header h2 {
    font-size: 2rem;
  }

  body.app-dashboard .messages-page-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  body.app-dashboard .messages-page-controls .messages-search-field {
    grid-column: 1 / -1;
  }

  body.app-dashboard .messages-page-controls .messages-start-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.app-dashboard .messages-filter-button,
  body.app-dashboard .messages-sort-button {
    width: 100%;
    min-height: 40px;
    padding-inline: 0.8rem;
  }

  body.app-dashboard .messages-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 10px;
    overflow: visible;
    box-shadow: none;
  }

  body.app-dashboard .messages-conversation-list {
    border-right: 0;
    border-bottom: 1px solid #d9e2f1;
    border-radius: 10px 10px 0 0;
  }

  body.app-dashboard .messages-segmented {
    margin: 10px;
  }

  body.app-dashboard .messages-list-search {
    margin: 0 10px 10px;
  }

  body.app-dashboard .messages-thread-list {
    max-height: 315px;
    overflow: auto;
    padding: 0 8px 10px;
  }

  body.app-dashboard .messages-thread {
    min-height: 76px;
    gap: 10px;
    padding: 10px;
  }

  body.app-dashboard .messages-avatar {
    width: 44px;
    height: 44px;
  }

  body.app-dashboard .messages-chat-panel {
    min-height: 560px;
    border-top: 1px solid #d9e2f1;
  }

  body.app-dashboard .messages-chat-header {
    min-height: 76px;
    padding: 12px;
    gap: 10px;
  }

  body.app-dashboard .messages-chat-actions {
    gap: 4px;
  }

  body.app-dashboard .messages-chat-actions button {
    width: 32px;
    height: 32px;
  }

  body.app-dashboard .messages-chat-body {
    min-height: 350px;
    padding: 14px 12px 18px;
  }

  body.app-dashboard .messages-bubble {
    max-width: 92%;
    padding: 10px 12px 8px;
  }

  body.app-dashboard .messages-bubble.has-attachment {
    min-width: 0;
    width: min(92%, 320px);
  }

  body.app-dashboard .messages-composer {
    position: sticky;
    bottom: var(--student-mobile-nav-height, 76px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    z-index: 2;
  }

  body.app-dashboard .messages-composer button {
    width: 38px;
    height: 38px;
  }

  body.app-dashboard .messages-composer button[aria-label="Emoji"],
  body.app-dashboard .messages-composer button[aria-label="Attach file"] {
    display: none;
  }

  body.app-dashboard .messages-composer input {
    min-height: 38px;
    padding-inline: 12px;
  }

  body.app-dashboard .messages-action-panel {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    border-top: 1px solid #d9e2f1;
    padding: 12px;
  }

  body.app-dashboard .messages-action-panel > header {
    margin-bottom: 12px;
  }

  body.app-dashboard .messages-action-card {
    padding: 13px;
  }

  body.app-dashboard .messages-action-card + .messages-action-card {
    margin-top: 10px;
  }

  body.app-dashboard .messages-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.app-dashboard .messages-action-buttons button,
  body.app-dashboard .messages-action-buttons a {
    width: 100%;
  }
}

/* Assessor feedback on the student's form detail (written by the clinician
   sign-offs workbench); returned-note callout for bounced drafts. */
.forms-detail-feedback.is-hidden { display: none; }
.forms-detail-feedback h4 { margin: 0 0 10px; }
.forms-feedback-ratings {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.forms-feedback-ratings li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.forms-feedback-domain { font-size: 13px; color: #3c4a63; font-weight: 600; }
.forms-feedback-chip {
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.forms-feedback-chip--below { background: #fdecea; color: #b42318; }
.forms-feedback-chip--borderline { background: #fdf1df; color: #b96f0c; }
.forms-feedback-chip--meets { background: #eaf2fd; color: #1f6fd6; }
.forms-feedback-chip--above { background: #e4f5eb; color: #157a41; }
.forms-feedback-chip--na { background: #eef1f6; color: #5d6b84; }
.forms-feedback-sublabel {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a97ad;
  margin: 10px 0 4px;
}
.forms-feedback-note {
  background: #f6f8fc;
  border: 1px solid #e9edf4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #3c4a63;
  margin: 0;
}
.forms-feedback-note--returned { border-color: #f3d9b0; background: #fdf6ea; }
.forms-feedback-hint { font-size: 12px; color: #8a97ad; margin: 6px 0 0; }

/* ============ student mobile "More" sheet (companion to the tab bar) ============ */
.student-mobile-more {
  position: fixed;
  inset: 0;
  z-index: 1300;
}
.student-mobile-more[hidden] {
  display: none;
}
.student-mobile-more-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 44, 0.35);
}
.student-mobile-more-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--student-mobile-nav-height, 76px) + env(safe-area-inset-bottom, 0px) + 10px);
  background: #fff;
  border: 1px solid #e2e9f4;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 35, 72, 0.24);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.student-mobile-more-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #22314e;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.student-mobile-more-link:active {
  background: #f1f5fc;
}
.student-mobile-more-link.is-active {
  color: #075ee8;
  background: #eaf2fd;
}
.student-mobile-more-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  color: #5d6b84;
}
.student-mobile-more-icon svg {
  width: 100%;
  height: 100%;
}
.student-mobile-more-link.is-active .student-mobile-more-icon {
  color: #075ee8;
}
@media (min-width: 769px) {
  .student-mobile-more {
    display: none;
  }
}

/* Phones in the native app: let content breathe closer to the screen edge */
@media (max-width: 480px) {
  html.is-capacitor body.app-dashboard .app-content {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

/* ============ uniform mobile shell header + timetable redesign (2026-07) ============ */
@media (max-width: 768px) {
  /* The uniform header replaces the app navbar on shell views: context
     eyebrow + view title on the left, search + profile on the right. */
  body.app-dashboard.has-external-shell-view .navbar-app {
    display: none;
  }
  body.app-dashboard.has-external-shell-view .student-shell-view-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 4px 12px;
    border: 0;
    background: transparent;
  }
  body.app-dashboard.has-external-shell-view .student-shell-view-head-copy {
    min-width: 0;
  }
  body.app-dashboard.has-external-shell-view .student-shell-view-kicker {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8a97ad;
    margin: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }
  body.app-dashboard.has-external-shell-view .student-shell-view-title {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: #16233f;
  }
  body.app-dashboard.has-external-shell-view .student-shell-view-subtitle {
    display: none;
  }
  body.app-dashboard.has-external-shell-view .student-shell-view-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.app-dashboard.has-external-shell-view .student-shell-view-actions:empty {
    display: none;
  }
  .pp-mh-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
  }
  .pp-mh-search {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e3e9f3;
    background: #fff;
    color: #5d6b84;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }
  .pp-mh-search svg {
    width: 19px;
    height: 19px;
  }
  .pp-mh-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(160deg, #1f6fd6, #7c5cd6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(20, 33, 64, 0.18);
    flex: none;
  }

  /* one-line day label replacing the stacked summary banner */
  .shell-timetable-daylabel {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 2px 10px;
  }
  .shell-timetable-daylabel-copy h2 {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: #16233f;
  }
  .shell-timetable-daylabel-copy span {
    font-size: 11.5px;
    font-weight: 500;
    color: #8a97ad;
  }

  /* density dots on the week strip */
  .shell-timetable-date-dots {
    display: flex;
    gap: 2.5px;
    height: 4px;
    justify-content: center;
    margin-top: 2px;
  }
  .shell-timetable-date-dot-i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c3cfe2;
  }
  .shell-timetable-date-dot-i.tone-violet { background: #7c5cff; }
  .shell-timetable-date-dot-i.tone-teal { background: #0d9488; }
  .shell-timetable-date-dot-i.tone-blue { background: #1f6fd6; }
  .shell-timetable-date-dot-i.tone-amber { background: #e08a1e; }
  .shell-timetable-date-dot-i.tone-lavender { background: #8b7fd8; }

  /* session cards: stronger colour edge in the shared language */
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item {
    border-left: 4px solid var(--shell-timetable-accent, #9ec3f7);
  }

  /* calm empty state + next-session pointer + nudges */
  .shell-timetable-empty {
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
  }
  .shell-timetable-empty-glyph {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #eaf2fd;
    color: #075ff0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
  }
  .shell-timetable-empty-glyph svg {
    width: 22px;
    height: 22px;
  }
  .shell-timetable-empty-title {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: #16233f;
  }
  .shell-timetable-empty-text {
    font-size: 12.5px;
    color: #5d6b84;
    font-weight: 600;
    margin: 3px 0 0;
  }
  .shell-timetable-next {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 14px;
    padding: 11px 13px 11px 16px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font: inherit;
  }
  .shell-timetable-next::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #9ec3f7;
  }
  .shell-timetable-next.tone-violet::before { background: #7c5cff; }
  .shell-timetable-next.tone-teal::before { background: #0d9488; }
  .shell-timetable-next.tone-blue::before { background: #1f6fd6; }
  .shell-timetable-next.tone-amber::before { background: #e08a1e; }
  .shell-timetable-next.tone-lavender::before { background: #8b7fd8; }
  .shell-timetable-next-when {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a97ad;
  }
  .shell-timetable-next-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #16233f;
  }
  .shell-timetable-next-meta {
    font-size: 11.5px;
    font-weight: 500;
    color: #5d6b84;
  }
  .shell-timetable-empty-nudges {
    display: flex;
    gap: 8px;
    margin-top: 10px;
  }
  .shell-timetable-empty-nudges button {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 11px;
    padding: 10px 0;
    border: 1px solid #e3e9f3;
    color: #5d6b84;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
  }

  /* session detail becomes a bottom sheet on phones */
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel {
    /* !important: the standalone page styles this as a right-hand drawer
       with hard-pinned geometry; on phones it must be a bottom sheet. */
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: 76dvh !important;
    transform: none !important;
    z-index: 1400;
    margin: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    overflow-y: auto !important;
    box-shadow: 0 -18px 50px rgba(10, 22, 44, 0.3) !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: #dbe3f0;
    margin: 2px auto 12px;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel.is-hidden {
    display: none;
  }
}



@media (max-width: 768px) {
  /* shell views: collapse the desktop padding stack above the uniform
     header — the header's own safe-area padding is all the page needs */
  body.app-dashboard.has-external-shell-view .app-shell,
  body.app-dashboard.has-external-shell-view .app-content,
  body.app-dashboard.has-external-shell-view .app-inner {
    padding-top: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Shell views: full-width content — one 14px gutter, not a padding stack.
     px units throughout so the row survives the user text-size preference. */
  body.app-dashboard.has-external-shell-view .app-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.app-dashboard.has-external-shell-view .app-inner,
  body.app-dashboard.has-external-shell-view .student-shell-view-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* control row: month chip + view toggle share one stable row */
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-controls {
    gap: 8px;
    flex-wrap: nowrap;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-month-control {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 190px;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-month-select {
    padding: 10px 32px 10px 14px !important;
    font-size: 16px !important; /* also keeps iOS from zooming on focus */
    font-weight: 600;
    border-radius: 13px;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-month-chevron {
    right: 12px;
    font-size: 11px;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-toggle {
    flex: 0 1 auto;
    min-width: 0;
    border-radius: 13px;
    padding: 3px;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-btn {
    min-width: 0;
    min-height: 38px;
    padding: 8px 15px;
    font-size: 13.5px;
    border-radius: 10px;
  }
}

/* ============ sign-offs shell view (design board, 2026-07) ============ */
.student-shell-page-shell--forms .so-prog {
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 16px;
  padding: 13px 15px;
}
.student-shell-page-shell--forms .so-prog-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.student-shell-page-shell--forms .so-prog-top b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16233f;
}
.student-shell-page-shell--forms .so-prog-top b small {
  font-size: 13px;
  color: #5d6b84;
  font-weight: 700;
}
.student-shell-page-shell--forms .so-prog-chip {
  font-size: 11px;
  font-weight: 500;
  color: #b96f0c;
  background: #fdf1df;
  border-radius: 8px;
  padding: 3px 8px;
  white-space: nowrap;
}
.student-shell-page-shell--forms .so-prog-chip.is-done {
  color: #1a9e54;
  background: #e4f5eb;
}
.student-shell-page-shell--forms .so-bar {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 9px;
  background: #edf1f8;
}
.student-shell-page-shell--forms .so-bar i {
  height: 100%;
}
.student-shell-page-shell--forms .seg-signed { background: #1a9e54; }
.student-shell-page-shell--forms .seg-awaiting { background: #1f6fd6; }
.student-shell-page-shell--forms .seg-returned { background: #e08a1e; }
.student-shell-page-shell--forms .seg-todo { background: #c9d3e4; }
.student-shell-page-shell--forms .so-legend {
  display: flex;
  gap: 11px;
  margin-top: 8px;
  font-size: 9.5px;
  font-weight: 500;
  color: #8a97ad;
  letter-spacing: 0.03em;
  flex-wrap: wrap;
}
.student-shell-page-shell--forms .so-legend em {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 4px;
}
.student-shell-page-shell--forms .so-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  display: inline-block;
}

.student-shell-page-shell--forms .so-here {
  margin-top: 10px;
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 16px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.student-shell-page-shell--forms .so-here::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3fc1b4;
}
.student-shell-page-shell--forms .so-here-k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #0d8577;
}
.student-shell-page-shell--forms .so-here-k i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fc1b4;
}
.student-shell-page-shell--forms .so-here-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0 2px;
}
.student-shell-page-shell--forms .so-here-row + .so-here-row {
  border-top: 1px solid #f1f4f9;
}
.student-shell-page-shell--forms .so-here-copy h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: #16233f;
}
.student-shell-page-shell--forms .so-here-copy span {
  font-size: 11px;
  color: #5d6b84;
  font-weight: 600;
}
.student-shell-page-shell--forms .so-here-go {
  font-size: 11.5px;
  font-weight: 600;
  color: #075ff0;
  background: #eaf2fd;
  border-radius: 9px;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
}

.student-shell-page-shell--forms .so-chips {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.student-shell-page-shell--forms .so-chip {
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 10px;
  padding: 7px 11px;
  border: 1px solid #e3e9f3;
  background: #fff;
  color: #5d6b84;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.student-shell-page-shell--forms .so-chip.is-on {
  background: #16233f;
  border-color: #16233f;
  color: #fff;
}
.student-shell-page-shell--forms .so-chip b {
  font-weight: 700;
  opacity: 0.65;
  margin-left: 3px;
}

.student-shell-page-shell--forms .so-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.student-shell-page-shell--forms .so-card {
  position: relative;
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 14px;
  padding: 11px 30px 11px 15px;
  overflow: hidden;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: default;
  display: block;
}
button.so-card {
  cursor: pointer;
}
.student-shell-page-shell--forms .so-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #9ec3f7;
}
.student-shell-page-shell--forms .so-card--minicex::before { background: #0d9488; }
.student-shell-page-shell--forms .so-card--dops::before { background: #7c5cff; }
.student-shell-page-shell--forms .so-card--cbd::before { background: #1f6fd6; }
.student-shell-page-shell--forms .so-card--caseb::before { background: #e08a1e; }
.student-shell-page-shell--forms .so-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.student-shell-page-shell--forms .so-card-row h4 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: #16233f;
}
.student-shell-page-shell--forms .so-type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
  padding: 2.5px 7px;
  flex: none;
}
.student-shell-page-shell--forms .so-type--minicex { background: #e3f5f2; color: #0b7d70; }
.student-shell-page-shell--forms .so-type--dops { background: #efe9ff; color: #6a48e8; }
.student-shell-page-shell--forms .so-type--cbd { background: #eaf2fd; color: #1559b0; }
.student-shell-page-shell--forms .so-type--caseb { background: #fdf1df; color: #b96f0c; }
.student-shell-page-shell--forms .so-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #5d6b84;
  margin-top: 3px;
}
.student-shell-page-shell--forms .so-status.is-ok { color: #1a9e54; }
.student-shell-page-shell--forms .so-status.is-warn { color: #b96f0c; }
.student-shell-page-shell--forms .so-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.so-quote {
  margin-top: 7px;
  background: #fdf1df;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #7a5610;
  border-left: 3px solid #e08a1e;
  line-height: 1.45;
}
.so-quote b {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #b96f0c;
  margin-bottom: 1px;
}
.student-shell-page-shell--forms .so-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #075ff0;
  background: #eaf2fd;
  border-radius: 9px;
  padding: 6px 11px;
  cursor: pointer;
}
.student-shell-page-shell--forms .so-arrow {
  position: absolute;
  right: 11px;
  top: 14px;
  color: #c3cfe2;
  font-size: 15px;
  font-weight: 600;
}
.student-shell-page-shell--forms .so-empty {
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  color: #5d6b84;
  font-weight: 600;
  font-size: 13px;
}

/* ============ shared bottom sheet (sign-off detail; reusable) ============ */
.pp-sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 1390;
  background: rgba(10, 22, 44, 0.42);
}
.pp-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 50px rgba(10, 22, 44, 0.3);
  max-height: 78dvh;
  overflow-y: auto;
}
.pp-sheet-grab {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #dbe3f0;
  margin: 2px auto 13px;
}
.pp-sheet-close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: #8a97ad;
  font-size: 16px;
  cursor: pointer;
  border-radius: 12px;
}
.pp-sheet-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.pp-sheet-eyebrow.is-ok { color: #1a9e54; }
.pp-sheet-eyebrow.is-warn { color: #b96f0c; }
.pp-sheet-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pp-sheet h3 {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 5px 0 1px;
  color: #16233f;
}
.pp-sheet-meta {
  font-size: 12px;
  color: #5d6b84;
  font-weight: 500;
  margin: 0;
}
.pp-sheet-ratings {
  display: flex;
  gap: 6px;
  margin: 12px 0 2px;
  flex-wrap: wrap;
}
.pp-sheet-rating {
  background: #f6f8fc;
  border-radius: 10px;
  padding: 7px 10px;
}
.pp-sheet-rating em {
  font-style: normal;
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8a97ad;
}
.pp-sheet-rating b {
  font-size: 12px;
  font-weight: 700;
  color: #1a9e54;
}
.pp-sheet-fb {
  margin-top: 10px;
}
.pp-sheet-fb em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a97ad;
}
.pp-sheet-fb p {
  font-size: 12.5px;
  font-weight: 400;
  color: #33415e;
  margin: 2px 0 0;
  line-height: 1.5;
}
.pp-sheet-quote {
  margin-top: 12px;
}
.pp-sheet-btn {
  display: block;
  background: #075ff0;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 12px;
  padding: 12px 0;
  text-align: center;
  box-shadow: 0 6px 16px rgba(7, 95, 240, 0.28);
  margin-top: 13px;
  cursor: pointer;
}
.pp-sheet-ghost {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #5d6b84;
  padding: 9px 0 0;
  cursor: pointer;
}

/* ============ sign-off editor + scope + year view ============ */
.so-scope {
  display: flex;
  background: #e9eef7;
  border-radius: 13px;
  padding: 3px;
  margin-bottom: 10px;
}
.so-scope-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: #5d6b84;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 10px;
  cursor: pointer;
}
.so-scope-btn.is-on {
  background: #fff;
  color: #075ff0;
  box-shadow: 0 1px 4px rgba(13, 25, 52, 0.12);
}

.so-year-group {
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 10px;
}
.so-year-group.is-current {
  border-color: #b9d2f8;
  box-shadow: 0 0 0 1px #b9d2f8;
}
.so-year-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.so-year-head h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #16233f;
}
.so-year-now {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #075ff0;
}
.so-year-head b {
  font-size: 13.5px;
  font-weight: 700;
  color: #16233f;
  white-space: nowrap;
}
.so-year-bar {
  margin: 8px 0 6px;
}
.so-year-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #33415e;
}
.so-year-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.so-year-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.so-year-status {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a97ad;
  flex: none;
}

/* editor sheet */
.pp-editor {
  max-height: 88dvh;
}
.pp-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pp-editor-head h3 {
  margin-top: 4px;
}
.pp-editor-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e3e9f3;
  background: #fff;
  color: #5d6b84;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.pp-editor-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f8;
}
.pp-editor-section h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5d6b84;
  margin: 0 0 4px;
}
.pp-editor-note {
  font-size: 11.5px;
  color: #8a97ad;
  font-weight: 600;
  margin: 0 0 6px;
}
.pp-editor-field {
  display: block;
  margin-top: 9px;
}
.pp-editor-field span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #33415e;
  margin-bottom: 4px;
}
.pp-editor-field input,
.pp-editor-field textarea {
  width: 100%;
  border: 1px solid #dde5f1;
  border-radius: 11px;
  background: #f8fafd;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
  color: #16233f;
  resize: vertical;
}
.pp-editor-field input:focus,
.pp-editor-field textarea:focus {
  outline: none;
  border-color: #b9d2f8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 95, 240, 0.1);
}
.pp-editor-status {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 10px;
  padding: 9px 12px;
}
.pp-editor-status[data-tone="ok"] {
  background: #e4f5eb;
  color: #157a43;
}
.pp-editor-status[data-tone="warn"] {
  background: #fdf1df;
  color: #935d10;
}
.pp-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 6px;
}
.pp-editor-save {
  flex: 0 0 auto;
  border: 1px solid #dde5f1;
  background: #fff;
  color: #33415e;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}
.pp-editor-send-btn {
  flex: 1;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.pp-editor-send-btn:disabled {
  opacity: 0.6;
}

.pp-editor-inperson {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 1px dashed #b9d2f8;
  background: #f4f8fe;
  color: #33415e;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  text-align: center;
}
.pp-editor-inperson b {
  color: #075ff0;
  font-weight: 700;
}
.pp-editor-field select {
  width: 100%;
  border: 1px solid #dde5f1;
  border-radius: 11px;
  background: #f8fafd;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: #16233f;
}

/* placement chips + groups + attempt chips (web-aligned sign-offs) */
.student-shell-page-shell--forms .so-pchips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.student-shell-page-shell--forms .so-pchip {
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid #e3e9f3;
  background: #fff;
  color: #5d6b84;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.student-shell-page-shell--forms .so-pchip b {
  font-weight: 700;
  opacity: 0.65;
  margin-left: 3px;
}
.student-shell-page-shell--forms .so-pchip.is-on {
  background: #16233f;
  border-color: #16233f;
  color: #fff;
}
.student-shell-page-shell--forms .so-pchip.is-current:not(.is-on) {
  border-color: #b9d2f8;
}
.student-shell-page-shell--forms .so-chips--types {
  margin-top: 6px;
}
.student-shell-page-shell--forms .so-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 2px 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a97ad;
}
.student-shell-page-shell--forms .so-group-head:first-child {
  margin-top: 4px;
}
.student-shell-page-shell--forms .so-group-meta {
  letter-spacing: 0.03em;
}
.student-shell-page-shell--forms .so-group-current {
  color: #075ff0;
}
.so-attempt {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #5d6b84;
  background: #eef2f9;
  border-radius: 5px;
  padding: 2px 6px;
  vertical-align: 1px;
}
.student-shell-page-shell--forms .so-guidance {
  font-size: 11.5px;
  color: #5d6b84;
  font-weight: 600;
  margin: 4px 0 0;
  line-height: 1.45;
}

.pp-sign-pad {
  display: block;
  width: 100%;
  height: 120px;
  border: 1px dashed #b9c7dd;
  border-radius: 11px;
  background: #fff;
  touch-action: none;
}
.pp-sign-clear {
  margin-top: 6px;
  border: 0;
  background: none;
  color: #5d6b84;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}


/* ============================================================================
   Teaching design refresh (mockup 2, 2026-07-13) — shell view single column:
   segmented sources, prep hero, folder chips with read rings, read-state rows.
   ========================================================================= */
.teach-page { display: flex; flex-direction: column; gap: 12px; }
.teach-seg { display: flex; background: #e9eef7; border-radius: 12px; padding: 3px; gap: 3px; }
.teach-seg-btn {
  flex: 1; border: none; background: none; cursor: pointer;
  font: 600 11.5px var(--font-application-ui);
  padding: 9px 2px; border-radius: 9px; color: #5d6b84; white-space: nowrap;
}
.teach-seg-btn.is-active { background: #fff; color: #16233f; box-shadow: 0 2px 8px rgba(20, 33, 64, 0.12); }
.teach-seg-btn[aria-disabled="true"]:not(.is-active) { opacity: 0.45; }

.teach-hero {
  border: none; text-align: left; cursor: pointer; border-radius: 16px; padding: 15px 16px 14px;
  color: #fff; display: flex; flex-direction: column; gap: 6px;
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(124, 92, 214, 0.5), transparent 55%),
    linear-gradient(160deg, #312b7a, #4f46b8);
  box-shadow: 0 16px 36px -16px rgba(59, 52, 148, 0.55);
}
.teach-hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #c9c3f5; }
.teach-hero-title { font: 600 15.5px/1.25 var(--font-application-ui); letter-spacing: -0.015em; }
.teach-hero-sub { font-size: 11.5px; color: #d9d5f8; }
.teach-hero-cta {
  align-self: flex-start; margin-top: 6px; background: #fff; color: #3b3494;
  font: 600 11px var(--font-application-ui); padding: 7px 14px; border-radius: 999px;
}

.teach-chips { display: flex; gap: 7px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.teach-chips::-webkit-scrollbar { display: none; }
.teach-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer;
  font: 500 11px var(--font-application-ui); padding: 8px 13px;
  border-radius: 999px; border: 1px solid #e6e8f3; background: #fff; color: #5d6b84; white-space: nowrap;
}
.teach-chip.is-active { background: #16233f; border-color: #16233f; color: #fff; }
.teach-chip.is-done:not(.is-active) { color: #0b7f6d; border-color: #bfe6d8; background: #f2fbf8; }

.teach-complete { display: flex; align-items: center; gap: 12px; border-color: #bfe6d8 !important; background: linear-gradient(180deg, #f2fbf8, #fff) !important; }
.teach-complete-medal {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(160deg, #f4c545, #d9a514); color: #5d4703;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(217, 165, 20, 0.4);
}
.teach-complete-copy b { display: block; font-size: 14px; color: #16233f; }
.teach-complete-copy small { font-size: 11.5px; color: #8a97ad; }

.teach-list { display: flex; flex-direction: column; gap: 10px; }
.teach-list.card { padding: 6px 14px; gap: 0; }
.teach-list.card .teaching-content-item { border: none; border-bottom: 1px solid #f0f3f9; border-radius: 0; box-shadow: none; background: none; padding: 12px 0; }
.teach-list.card .teaching-content-item:last-child { border-bottom: 0; }
.teaching-content-item.is-read .teaching-item-title { color: #8a97ad; text-decoration: line-through; text-decoration-color: #c9d4e6; }
.teach-new {
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em; vertical-align: 2px;
  background: #eeedfb; color: #4f46b8; border-radius: 6px; padding: 2px 6px; margin-left: 7px;
}
.teach-av {
  display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px;
  border-radius: 50%; background: linear-gradient(160deg, #1f6fd6, #7c5cd6); color: #fff;
  font-size: 7.5px; font-weight: 600; margin-right: 4px; vertical-align: -4px;
}
.teach-tick {
  width: 22px; height: 22px; border-radius: 50%; background: #e9f8f3; color: #0e9f88;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

.teach-empty { text-align: center; padding: 22px 18px !important; }
.teach-empty-icon {
  width: 46px; height: 46px; border-radius: 15px; background: #eeedfb; color: #4f46b8;
  display: inline-flex; align-items: center; justify-content: center;
}
.teach-empty b { display: block; margin-top: 10px; font-size: 14.5px; color: #16233f; }
.teach-empty p { margin: 5px auto 0; max-width: 240px; font-size: 12px; color: #8a97ad; line-height: 1.5; }
.teach-empty-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

.teach-crosslink { display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; width: 100%; font: inherit; margin-top: 10px; }
.teach-crosslink-icon {
  width: 40px; height: 40px; border-radius: 13px; background: #eaf2fd; color: #0b4fb3;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.teach-crosslink-copy b { display: block; font-size: 13.5px; color: #16233f; }
.teach-crosslink-copy small { font-size: 11.5px; color: #8a97ad; }

.teach-readbar { height: 4px; border-radius: 3px; background: #e8ecf4; overflow: hidden; margin-top: 10px; }
.teach-readbar i { display: block; height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, #4f46b8, #7c5cd6); transition: width 160ms linear; }
.teach-reader-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #f0f3f9; flex-wrap: wrap; }
.teach-read-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 600 12px var(--font-application-ui); padding: 11px 16px;
  border-radius: 999px; border: none; background: #0e9f88; color: #fff;
}
.teach-read-btn.is-read { background: #e9f8f3; color: #0b7f6d; }
.teach-upnext { border: none; background: none; cursor: pointer; font: 600 12px var(--font-application-ui); color: #4f46b8; padding: 8px 0; }

/* Shell timetable declutter: the marker dot is the ONE tone device per row —
   the accent bar and the mobile 4px border repeated it. */
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-main::before {
  display: none;
}
@media (max-width: 768px) {
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-agenda-item {
    border-left: none;
  }
}
