/* =========================================================================
   PlacementFlow — full-page redesign reskin (desktop + mobile)
   Reskins the existing app shell (.navbar-app topbar, .app-sidebar, .app-content)
   and the #section-dashboard content to match the approved web-pro mockup.
   CSS-only (markup/JS untouched, data hooks preserved). Loaded after style.css;
   uses !important on key visual props to win against the legacy 737KB sheet.
   ========================================================================= */
:root{
  --pf-brand:#1f6fd6; --pf-brand-2:#1559b0; --pf-brand-tint:#eaf2fd; --pf-brand-ink:#16233f;
  --pf-teal:#0d9488; --pf-teal-tint:#e3f5f2;
  --pf-red:#e0493b; --pf-red-tint:#fdecea;
  --pf-amber:#e08a1e; --pf-amber-tint:#fdf1df;
  --pf-green:#1a9e54;
  --pf-ink:#1b2740; --pf-ink-2:#5d6b84; --pf-ink-3:#8a97ad;
  --pf-line:#e9edf4; --pf-bg:#f6f8fc; --pf-surface:#fff;
  --pf-r:14px; --pf-r-sm:10px; --pf-r-pill:999px;
  --pf-sh:0 1px 2px rgba(20,33,64,.04),0 2px 8px rgba(20,33,64,.05);
  --pf-font: var(--font-application-ui);
}

/* leftover mobile band no longer used (sidebar/topbar carry the brand) */
.pf-brandband{display:none !important}

/* ---------- canvas ---------- */
body.app-dashboard{background:var(--pf-canvas,#fff) !important;font-family: var(--pf-font);color:var(--pf-ink);letter-spacing:-0.011em}
body.app-dashboard .app-content{background:var(--pf-canvas,#fff) !important}
body.app-dashboard .app-inner{max-width:1280px;padding:24px 30px 56px !important}

/* ---------- TOPBAR (.navbar-app) ---------- */
body.app-dashboard .navbar-app{
  background:var(--pf-surface) !important;border-bottom:1px solid var(--pf-line) !important;box-shadow:none !important;
}
body.app-dashboard .navbar-app .nav-logo-text{font-weight:600;letter-spacing:-0.02em}
body.app-dashboard .navbar-app .nav-logo-mark{
  width:32px !important;height:32px !important;flex:0 0 32px !important;border-radius:8px !important;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#075ff0,#0454d8) !important;color:#fff;
  font-size:12.5px;font-weight:600;line-height:1;letter-spacing:0;
  box-shadow:0 4px 12px rgba(7,95,240,.28) !important;
}
body.app-dashboard .navbar-app .nav-logo-mark::before,
body.app-dashboard .navbar-app .nav-logo-mark::after{content:none !important}
body.app-dashboard .nav-search input{
  background:var(--pf-bg) !important;border:1px solid var(--pf-line) !important;border-radius:var(--pf-r-pill) !important;
  color:var(--pf-ink) !important;
}
body.app-dashboard .dm-trigger,
body.app-dashboard .nav-profile-trigger{border-radius:var(--pf-r-pill) !important}
body.app-dashboard .dm-unread-badge{background:var(--pf-red) !important}
body.app-dashboard .nav-profile-avatar{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}

/* ---------- SIDEBAR (.app-sidebar) ---------- */
body.app-dashboard .app-sidebar{
  background:var(--pf-surface) !important;border-right:1px solid var(--pf-line) !important;box-shadow:none !important;
  padding:18px 14px !important;
}
body.app-dashboard .app-sidebar-header{padding:4px 10px 14px !important}
body.app-dashboard .app-sidebar-title{color:var(--pf-brand-ink) !important;font-weight:600 !important;font-size:15px}
body.app-dashboard .app-sidebar-subtitle{color:var(--pf-ink-3) !important;font-size:12px}
body.app-dashboard .app-sidebar-link{
  color:var(--pf-ink-2) !important;font-weight:600 !important;font-size:14.5px !important;
  border-radius:var(--pf-r-sm) !important;padding:10px 12px !important;background:transparent !important;border:0 !important;
}
body.app-dashboard .app-sidebar-link:hover{background:var(--pf-bg) !important;color:var(--pf-ink) !important}
body.app-dashboard .app-sidebar-link--active{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.app-dashboard .app-sidebar-link--active .app-sidebar-icon{color:var(--pf-brand) !important}
body.app-dashboard .app-sidebar-icon{color:var(--pf-ink-3) !important}
body.app-dashboard .app-sidebar-dot{display:none !important}
body.app-dashboard .app-sidebar-chevron{color:var(--pf-ink-3) !important}
body.app-dashboard .app-sidebar-subitem{color:var(--pf-ink-3) !important;font-weight:600 !important}
body.app-dashboard .app-sidebar-divider{background:var(--pf-line) !important}

/* ---------- PAGE HEADER (.today-header) ---------- */
body.app-dashboard .today-header{margin-bottom:18px !important}
body.app-dashboard .page-title-row h1{color:var(--pf-brand-ink) !important;font-size:30px !important;font-weight:600 !important;letter-spacing:-0.03em}
body.app-dashboard .page-placement{color:var(--pf-ink-2) !important;font-size:15px !important;font-weight:500}

/* ---------- DASHBOARD container ---------- */
/* cosmetic reset is safe whether hidden or shown; ONLY force display when the
   router has activated the section, so Today no longer bleeds onto other pages */
body.app-dashboard #section-dashboard{background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important}
body.app-dashboard #section-dashboard.is-active{display:block !important}
body.app-dashboard #section-dashboard .today-mobile-header{display:none !important}

/* hero — show at all widths */
body.app-dashboard #section-dashboard .today-hero{
  display:block !important;position:relative;border-radius:var(--pf-r) !important;overflow:hidden !important;
  height:240px !important;margin:0 0 22px !important;box-shadow:var(--pf-sh) !important;background:var(--pf-brand-tint) !important;
}
body.app-dashboard #section-dashboard .today-hero-image{width:100% !important;height:100% !important;object-fit:cover !important;position:absolute !important;inset:0 !important;border-radius:0 !important}
body.app-dashboard #section-dashboard .today-hero-overlay{
  position:absolute !important;inset:0 !important;display:flex !important;flex-direction:column !important;justify-content:flex-end !important;
  align-items:flex-start !important;padding:24px 26px !important;
  background:linear-gradient(180deg,rgba(10,18,38,.05) 35%,rgba(10,18,38,0) 50%,rgba(10,18,38,.8) 100%) !important;
}
body.app-dashboard #section-dashboard .today-hero-kicker{color:#fff !important;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.07em;opacity:.92;text-shadow:0 1px 6px rgba(0,0,0,.5)}
body.app-dashboard #section-dashboard #dash-hero-placement-title{color:#fff !important;font-size:30px !important;font-weight:600 !important;margin:6px 0 3px !important;letter-spacing:-0.02em;text-shadow:0 2px 10px rgba(0,0,0,.45)}
body.app-dashboard #section-dashboard #dash-hero-site{color:#fff !important;font-size:15px !important;font-weight:600;opacity:.96;text-shadow:0 1px 8px rgba(0,0,0,.5)}
body.app-dashboard #section-dashboard #dash-hero-week{color:#fff !important;font-size:13.5px !important;opacity:.9;margin-top:3px;text-shadow:0 1px 8px rgba(0,0,0,.5)}
body.app-dashboard #section-dashboard .today-hero-cta{background:rgba(255,255,255,.16) !important;color:#fff !important;border:1px solid rgba(255,255,255,.3) !important;border-radius:var(--pf-r-pill) !important;margin-top:14px !important;padding:9px 16px !important;font-weight:600 !important}
body.app-dashboard #section-dashboard .today-hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
body.app-dashboard #section-dashboard .today-hero-meta-pill{background:rgba(255,255,255,.18) !important;color:#fff !important;border:1px solid rgba(255,255,255,.22) !important;border-radius:var(--pf-r-pill) !important;padding:6px 12px !important;font-size:12px !important;font-weight:500 !important}

/* overview cards → at-a-glance stat row */
body.app-dashboard #section-dashboard .today-overview-shell{margin:22px 0 !important}
body.app-dashboard #section-dashboard .today-overview-header h2{font-size:17px !important;font-weight:600 !important;color:var(--pf-brand-ink) !important}
body.app-dashboard #section-dashboard .today-overview-hint{color:var(--pf-ink-3) !important}
body.app-dashboard #section-dashboard .today-overview-carousel{display:grid !important;grid-template-columns:repeat(4,1fr) !important;gap:16px !important;overflow:visible !important;transform:none !important}
body.app-dashboard #section-dashboard .today-overview-card{
  background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;border-radius:var(--pf-r) !important;
  box-shadow:var(--pf-sh) !important;padding:18px !important;min-width:0 !important;width:auto !important;
  height:auto !important;overflow:visible !important;scroll-snap-align:none !important;
}
body.app-dashboard #section-dashboard .today-overview-card-icon{width:38px !important;height:38px !important;border-radius:var(--pf-r-sm) !important;background:var(--pf-bg) !important;color:var(--pf-ink-2) !important;display:grid;place-items:center}
body.app-dashboard #section-dashboard .today-overview-card-chevron{color:var(--pf-ink-3) !important}
body.app-dashboard #section-dashboard .today-overview-card h3{font-size:13.5px !important;font-weight:600 !important;color:var(--pf-ink-2) !important;margin-top:13px !important}
body.app-dashboard #section-dashboard .today-overview-card-primary{font-size:24px !important;font-weight:600 !important;color:var(--pf-brand-ink) !important;margin-top:4px !important;letter-spacing:-0.02em}
body.app-dashboard #section-dashboard .today-overview-card-secondary{font-size:12.5px !important;color:var(--pf-ink-3) !important}
body.app-dashboard #section-dashboard .today-overview-card-footer{font-size:12.5px !important;font-weight:600 !important;color:var(--pf-brand) !important;margin-top:11px !important}
body.app-dashboard #section-dashboard .today-overview-card--signoffs .today-overview-card-icon{background:var(--pf-teal-tint) !important;color:var(--pf-teal) !important}
body.app-dashboard #section-dashboard .today-overview-card--conditions .today-overview-card-icon{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.app-dashboard #section-dashboard .today-overview-card--timetable .today-overview-card-icon{background:var(--pf-amber-tint) !important;color:var(--pf-amber) !important}
body.app-dashboard #section-dashboard .today-overview-card--notices .today-overview-card-icon{background:var(--pf-red-tint) !important;color:var(--pf-red) !important}
body.app-dashboard #section-dashboard .today-overview-dots{display:none !important}

/* quick actions — base card */
body.app-dashboard #section-dashboard .today-quick-action{background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;border-radius:var(--pf-r) !important;box-shadow:var(--pf-sh) !important}
body.app-dashboard #section-dashboard .today-quick-action-label{color:var(--pf-brand-ink) !important;font-weight:600 !important}
body.app-dashboard #section-dashboard .today-quick-action-hint{color:var(--pf-ink-3) !important}

/* DESKTOP quick-actions layout (mobile already has its own styling).
   Without this the action SVGs render full-card-size. */
@media (min-width:769px){
  body.app-dashboard #section-dashboard .today-quick-actions-shell{margin:0 0 22px !important}
  body.app-dashboard #section-dashboard .today-quick-actions-grid{display:grid !important;grid-template-columns:1fr 1fr !important;gap:14px !important}
  body.app-dashboard #section-dashboard .today-quick-action{display:flex !important;flex-direction:row !important;align-items:center !important;gap:14px !important;padding:16px 18px !important;text-align:left !important;min-height:0 !important}
  body.app-dashboard #section-dashboard .today-quick-action-icon{width:46px !important;height:46px !important;border-radius:12px !important;background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important;display:grid !important;place-items:center !important;flex:0 0 auto !important;margin:0 !important}
  body.app-dashboard #section-dashboard .today-quick-action-icon svg{width:23px !important;height:23px !important}
  body.app-dashboard #section-dashboard .today-quick-action-copy{flex:1 1 auto !important;min-width:0 !important;display:flex !important;flex-direction:column !important;gap:2px !important}
  body.app-dashboard #section-dashboard .today-quick-action-label{font-size:15px !important}
  body.app-dashboard #section-dashboard .today-quick-action-hint{font-size:13px !important}
  body.app-dashboard #section-dashboard .today-quick-action-arrow{margin-left:auto !important;color:var(--pf-ink-3) !important;flex:0 0 auto !important}
  body.app-dashboard #section-dashboard .today-quick-action-arrow svg{width:18px !important;height:18px !important}
  /* tone tints */
  body.app-dashboard #section-dashboard .today-quick-action--timetable .today-quick-action-icon{background:#efeaff !important;color:#7c5cff !important}
  body.app-dashboard #section-dashboard .today-quick-action--conditions .today-quick-action-icon{background:var(--pf-amber-tint) !important;color:var(--pf-amber) !important}
  body.app-dashboard #section-dashboard .today-quick-action--notices .today-quick-action-icon{background:var(--pf-red-tint) !important;color:var(--pf-red) !important}
  body.app-dashboard #section-dashboard .today-quick-action--warning .today-quick-action-icon{background:var(--pf-red-tint) !important;color:var(--pf-red) !important}
}

/* today grid + generic cards */
body.app-dashboard #section-dashboard.is-active .today-grid{display:contents !important}
body.app-dashboard #section-dashboard .today-card,
body.app-dashboard #section-dashboard .dashboard-card{
  background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;border-radius:var(--pf-r) !important;
  box-shadow:var(--pf-sh) !important;
}
body.app-dashboard #section-dashboard .today-card-title h3{color:var(--pf-brand-ink) !important;font-weight:600 !important;font-size:15px !important}
body.app-dashboard #section-dashboard .today-card-icon{color:var(--pf-brand) !important;background:var(--pf-brand-tint) !important}
body.app-dashboard #section-dashboard .today-progress-label{color:var(--pf-ink-2) !important;font-weight:500}
body.app-dashboard #section-dashboard .today-progress-value{color:var(--pf-brand-ink) !important;font-weight:600}
body.app-dashboard #section-dashboard .dashboard-progress-bar{background:#eef1f6 !important;border-radius:var(--pf-r-pill) !important}
body.app-dashboard #section-dashboard .dashboard-progress-fill{background:var(--pf-brand) !important}
body.app-dashboard #section-dashboard .dashboard-progress-fill.is-forms{background:var(--pf-teal) !important}

/* schedule */
body.app-dashboard #section-dashboard .today-schedule-title{color:var(--pf-brand-ink) !important}
body.app-dashboard #section-dashboard .today-schedule-date{color:var(--pf-ink-3) !important;font-weight:500}
body.app-dashboard #section-dashboard .dash-event-time{color:var(--pf-brand) !important;font-weight:500 !important}
body.app-dashboard #section-dashboard .dash-event-title{color:var(--pf-brand-ink) !important;font-weight:600 !important}
body.app-dashboard #section-dashboard .dash-event-meta{color:var(--pf-ink-3) !important}
body.app-dashboard #section-dashboard .dash-event-chip{background:var(--pf-brand-tint) !important;color:var(--pf-brand-2) !important;border-radius:6px !important;font-weight:500 !important}

/* notice + conditions */
body.app-dashboard #section-dashboard .dashboard-notice-title{color:var(--pf-brand-ink) !important;font-weight:600}
body.app-dashboard #section-dashboard .dashboard-notice-body{color:var(--pf-ink-2) !important}
body.app-dashboard #section-dashboard .dashboard-progress-main{color:var(--pf-brand-ink) !important}

/* buttons + badges */
body.app-dashboard #section-dashboard .btn.primary{background:var(--pf-brand) !important;border-color:var(--pf-brand) !important;color:#fff !important}
body.app-dashboard #section-dashboard .btn.primary:hover{background:var(--pf-brand-2) !important;border-color:var(--pf-brand-2) !important}
body.app-dashboard #section-dashboard .btn.secondary{background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;color:var(--pf-brand) !important;font-weight:600 !important}
body.app-dashboard #section-dashboard .badge-neutral{background:var(--pf-bg) !important;color:var(--pf-ink-2) !important}

/* assistant cards — keep, de-emphasise (hybrid) */
body.app-dashboard #section-dashboard .today-card--assistant,
body.app-dashboard #section-dashboard .today-card--session{background:var(--pf-bg) !important;border:1px solid var(--pf-line) !important;box-shadow:none !important}
body.app-dashboard #section-dashboard .today-card--assistant .today-card-title h3,
body.app-dashboard #section-dashboard .today-card--session .today-card-title h3{font-size:14px !important;color:var(--pf-ink-2) !important}
body.app-dashboard #section-dashboard .today-assistant-status-pill,
body.app-dashboard #section-dashboard .today-session-state{background:var(--pf-surface) !important;color:var(--pf-ink-3) !important;border:1px solid var(--pf-line) !important}

/* ---------- responsive ---------- */
@media (max-width:900px){
  body.app-dashboard #section-dashboard .today-overview-carousel{grid-template-columns:1fr 1fr !important}
  body.app-dashboard #section-dashboard .today-grid{grid-template-columns:1fr !important}
}
@media (max-width:768px){
  body.app-dashboard .app-inner{padding:14px !important}

  /* hero: taller + smaller title + hide CTA so the long specialty name fits */
  body.app-dashboard #section-dashboard .today-hero{height:236px !important;margin-bottom:18px !important}
  body.app-dashboard #section-dashboard .today-hero-overlay{padding:16px !important}
  body.app-dashboard #section-dashboard #dash-hero-placement-title{font-size:21px !important;line-height:1.12 !important;margin-top:4px !important}
  body.app-dashboard #section-dashboard .today-hero-cta{display:none !important}

  /* overview: force a clean 2-up grid (no clipped horizontal carousel) */
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-carousel,
  body.app-dashboard #section-dashboard .today-overview-carousel{
    display:grid !important;grid-template-columns:1fr 1fr !important;gap:10px !important;
    overflow:visible !important;transform:none !important;scroll-snap-type:none !important;
  }
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-card,
  body.app-dashboard #section-dashboard .today-overview-card{
    width:auto !important;min-width:0 !important;height:auto !important;overflow:visible !important;
    flex:none !important;scroll-snap-align:none !important;padding:14px !important;
  }
  body.app-dashboard #section-dashboard .today-overview-card-primary{font-size:18px !important;white-space:normal !important;word-break:break-word}
  body.app-dashboard #section-dashboard .today-overview-card h3{margin-top:9px !important}

  /* quick actions stay 2-up on small screens */
  body.app-dashboard #section-dashboard .today-quick-actions-grid{grid-template-columns:1fr 1fr !important}
}
@media (max-width:520px){
  body.app-dashboard #section-dashboard .today-quick-actions-grid{grid-template-columns:1fr !important}
}

/* =========================================================================
   WEB-PRO TODAY LAYOUT (desktop). All rules scoped to #section-dashboard.is-active
   so nothing can leak to other sections. Wrap = .pf-today > .pf-main + .pf-rail.
   ========================================================================= */
#section-dashboard.is-active .pf-today{display:grid !important;grid-template-columns:1fr 320px;gap:24px;align-items:start}
#section-dashboard.is-active .pf-main{min-width:0;display:flex;flex-direction:column;gap:20px}
#section-dashboard.is-active .pf-rail{display:flex;flex-direction:column;gap:20px;position:sticky;top:88px}

/* dissolve the legacy grid so the schedule card joins the new flow */
#section-dashboard.is-active .today-grid{display:contents !important}

/* sequence kept blocks (mockup order): induction → hero → next-up/priorities → schedule → stats */
#section-dashboard.is-active #placement-induction{order:-1}
#section-dashboard.is-active .today-hero{order:0;margin:0 !important;height:256px !important}
#section-dashboard.is-active .pf-row2{order:1}
#section-dashboard.is-active .today-card--schedule{order:2}
body.app-dashboard #section-dashboard.is-active .today-overview-shell{display:block !important;order:3;margin:0 !important}
body.app-dashboard #section-dashboard.is-active .today-overview-carousel{display:grid !important;grid-template-columns:repeat(4,1fr) !important;gap:16px !important;overflow:visible !important;transform:none !important}
body.app-dashboard #section-dashboard.is-active .today-overview-header{display:none !important}
body.app-dashboard #section-dashboard.is-active .today-overview-card-primary{font-size:18px !important;line-height:1.25 !important}
body.app-dashboard #section-dashboard.is-active .today-overview-card-chevron{display:none !important}
body.app-dashboard #section-dashboard.is-active .today-overview-card-secondary{font-size:12.5px !important;color:var(--pf-ink-3) !important}

/* hide non-mockup blocks (kept in DOM so app.js data binding still works) */
#section-dashboard.is-active .today-mobile-header,
#section-dashboard.is-active .today-quick-actions-shell,
#section-dashboard.is-active #dashboard-future-empty-state,
#section-dashboard.is-active #session-aware-assistant,
#section-dashboard.is-active #daily-placement-assistant,
#section-dashboard.is-active .today-card--status,
#section-dashboard.is-active .today-card--notice,
#section-dashboard.is-active .today-card--requirements,
#section-dashboard.is-active .today-overview-hint,
#section-dashboard.is-active .today-overview-dots{display:none !important}

/* induction banner (kept functional, shown only when app.js removes .is-hidden) */
#section-dashboard.is-active #placement-induction{display:block;background:var(--pf-amber-tint);border:1px solid #f1d8a6;border-radius:var(--pf-r);padding:14px 18px}
#section-dashboard.is-active #placement-induction.is-hidden{display:none !important}

/* pf components (ported from docs/dashboard-web-pro.html) */
#section-dashboard.is-active .pf-card{background:var(--pf-surface);border:1px solid var(--pf-line);border-radius:var(--pf-r);padding:22px;box-shadow:var(--pf-sh)}
#section-dashboard.is-active .pf-lbl{font-size:13px;font-weight:600;color:var(--pf-brand);margin-bottom:14px}
#section-dashboard.is-active .pf-lbl--teal{color:var(--pf-teal)}
#section-dashboard.is-active .pf-row2{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}
#section-dashboard.is-active .pf-nu{display:flex;gap:16px;align-items:flex-start}
#section-dashboard.is-active .pf-nu-ic{width:52px;height:52px;border-radius:var(--pf-r-sm);background:var(--pf-brand-tint);display:grid;place-items:center;flex:0 0 auto;color:var(--pf-brand)}
#section-dashboard.is-active .pf-nu-ic svg{width:26px;height:26px}
#section-dashboard.is-active .pf-nu-tm{font-size:24px;font-weight:600;letter-spacing:-0.02em;color:var(--pf-brand-ink)}
#section-dashboard.is-active .pf-nu-ti{font-size:17px;font-weight:600;margin-top:1px;color:var(--pf-ink)}
#section-dashboard.is-active .pf-nu-lo{font-size:13.5px;color:var(--pf-ink-2);margin-top:6px}
#section-dashboard.is-active .pf-nu-foot{margin-top:18px}
#section-dashboard.is-active .pf-btn{display:inline-flex;align-items:center;gap:8px;background:var(--pf-brand);color:#fff;border:0;border-radius:var(--pf-r-sm);padding:11px 18px;font-weight:600;font-size:14.5px;text-decoration:none}
#section-dashboard.is-active .pf-btn:hover{background:var(--pf-brand-2)}
#section-dashboard.is-active .pf-task-list{list-style:none;margin:0;padding:0}
#section-dashboard.is-active .pf-task{display:flex;align-items:center;gap:12px;padding:11px 0;font-size:15px;color:var(--pf-ink)}
#section-dashboard.is-active .pf-task + .pf-task{border-top:1px solid var(--pf-line)}
#section-dashboard.is-active .pf-task::before{content:"";width:18px;height:18px;border-radius:50%;border:2px solid #c4ccd9;flex:0 0 auto}
#section-dashboard.is-active .pf-task--empty{color:var(--pf-ink-3)}
#section-dashboard.is-active .pf-task--empty::before{display:none}
#section-dashboard.is-active .pf-rail-h{font-size:15px;font-weight:600;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;color:var(--pf-brand-ink)}
#section-dashboard.is-active .pf-rail-h a{font-size:12.5px;font-weight:600;color:var(--pf-brand);text-decoration:none}
#section-dashboard.is-active .pf-ql{display:flex;align-items:center;gap:12px;padding:11px 0;text-decoration:none;color:var(--pf-ink)}
#section-dashboard.is-active .pf-ql + .pf-ql{border-top:1px solid var(--pf-line)}
#section-dashboard.is-active .pf-ql-i{width:34px;height:34px;border-radius:var(--pf-r-sm);background:var(--pf-bg);display:grid;place-items:center;color:var(--pf-brand);flex:0 0 auto}
#section-dashboard.is-active .pf-ql-i svg{width:17px;height:17px}
#section-dashboard.is-active .pf-ql-n{flex:1;font-size:14px;font-weight:600}
#section-dashboard.is-active .pf-ql-c{color:var(--pf-ink-3)}
#section-dashboard.is-active .pf-dl-list{list-style:none;margin:0;padding:0}
#section-dashboard.is-active .pf-dl{display:flex;gap:11px;padding:11px 0}
#section-dashboard.is-active .pf-dl + .pf-dl{border-top:1px solid var(--pf-line)}
#section-dashboard.is-active .pf-dl-dot{width:8px;height:8px;border-radius:50%;background:var(--pf-amber);margin-top:6px;flex:0 0 auto}
#section-dashboard.is-active .pf-dl-dot--muted{background:var(--pf-ink-3)}
#section-dashboard.is-active .pf-dl-nm{font-size:14px;font-weight:600;color:var(--pf-ink)}
#section-dashboard.is-active .pf-dl-dt{font-size:12.5px;color:var(--pf-ink-3);margin-top:1px}

@media (max-width:1080px){
  #section-dashboard.is-active .pf-today{grid-template-columns:1fr !important}
  #section-dashboard.is-active .pf-rail{position:static}
}

/* =========================================================================
   USER FEEDBACK: no right rail, mockup header, brighter/taller hero,
   elongated stat cards (compact numbers + progress bars).
   ========================================================================= */
/* full-width content, rail removed */
body.app-dashboard #section-dashboard.is-active .pf-today{grid-template-columns:1fr !important}
body.app-dashboard #section-dashboard.is-active .pf-rail{display:none !important}

/* page header: Today + greeting + date inline; drop placement-context line */
body.app-dashboard .today-header .page-title-row{display:flex !important;align-items:baseline;gap:14px;flex-wrap:wrap}
body.app-dashboard .today-header .page-title-row h1{margin:0 !important}
body.app-dashboard .pf-greet{font-size:18px;font-weight:600;color:var(--pf-brand);letter-spacing:-0.01em}
body.app-dashboard .pf-date{font-size:13.5px;font-weight:500;color:var(--pf-ink-3)}
/* Student page frame v1 restores this as the page SUBTITLE (the placement
   line on Today, the section subtitle elsewhere in app.html). It was hidden
   when .today-header was hidden wholesale; pages that have not adopted the
   frame keep it hidden. See styles/student-page-frame.css. */
body.app-dashboard:not(.pf-frame-v1) #dash-placement-label{display:none !important}

/* hero: taller, brighter, no kicker */
body.app-dashboard #section-dashboard.is-active .today-hero{height:300px !important}
body.app-dashboard #section-dashboard.is-active .today-hero-kicker{display:none !important}
body.app-dashboard #section-dashboard.is-active .today-hero-overlay{background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.14) 64%,rgba(0,0,0,.62) 100%) !important}
body.app-dashboard #section-dashboard.is-active #dash-hero-placement-title{font-size:34px !important}
body.app-dashboard #section-dashboard.is-active .pf-hero-progress{width:210px;max-width:60%;height:6px;border-radius:999px;background:rgba(255,255,255,.4);overflow:hidden;margin-top:11px}
body.app-dashboard #section-dashboard.is-active .pf-hero-progress i{display:block;height:100%;background:#4fd1c5;border-radius:999px}

/* elongated stat cards (icon → label → big number → progress bar → link) */
body.app-dashboard #section-dashboard.is-active .today-overview-card{min-height:190px !important;padding:18px !important;display:flex !important;flex-direction:column !important}
body.app-dashboard #section-dashboard.is-active .today-overview-card h3{margin-top:14px !important;order:1}
body.app-dashboard #section-dashboard.is-active .today-overview-card-primary{font-size:27px !important;font-weight:600 !important;letter-spacing:-0.02em;order:2}
body.app-dashboard #section-dashboard.is-active .today-overview-card-primary small{font-size:16px;color:var(--pf-ink-3);font-weight:600}
body.app-dashboard #section-dashboard.is-active .today-overview-card-secondary{display:none !important}
body.app-dashboard #section-dashboard.is-active .pf-statbar{height:6px;border-radius:999px;background:#eef1f6;overflow:hidden;margin:13px 0 2px;order:3}
body.app-dashboard #section-dashboard.is-active .pf-statbar i{display:block;height:100%;border-radius:999px;background:var(--pf-brand)}
body.app-dashboard #section-dashboard.is-active .today-overview-card--signoffs .pf-statbar i{background:var(--pf-teal)}
body.app-dashboard #section-dashboard.is-active .today-overview-card-footer{margin-top:auto !important;order:4}
body.app-dashboard #section-dashboard.is-active .today-overview-card-top{order:0}

/* ----- top-right profile pill (name + role + avatar) with year switcher in its dropdown ----- */
body.app-dashboard .nav-links{align-items:center !important;gap:14px !important}
/* Messages: a compact icon-only button (no stacked label), sized to sit
   quietly beside the profile avatar. Unread shows a small count badge. */
body.app-dashboard .nav-links .nav-messages .dm-trigger{position:relative !important;width:40px !important;height:40px !important;min-width:0 !important;padding:0 !important;display:inline-flex !important;flex-direction:row !important;align-items:center !important;justify-content:center !important;gap:0 !important;border-radius:11px !important;color:#5d6b84 !important;background:transparent !important;border:1px solid transparent !important;box-shadow:none !important;transition:background .15s,color .15s,border-color .15s}
body.app-dashboard .nav-links .nav-messages .dm-trigger:hover{background:#f3f6fb !important;color:#16233f !important;border-color:#e9edf4 !important}
body.app-dashboard .nav-links .nav-messages .dm-trigger.is-active{background:#eaf2fd !important;color:#1559b0 !important;border-color:#bcd6f5 !important}
body.app-dashboard .nav-links .dm-trigger-text{display:none !important}
body.app-dashboard .dm-trigger-icon{display:grid !important;place-items:center !important}
body.app-dashboard .dm-trigger-icon svg{width:19px !important;height:19px !important;stroke-width:1.7 !important}
body.app-dashboard .dm-unread-badge{top:2px !important;right:2px !important;min-width:16px !important;height:16px !important;border:2px solid #fff !important;border-radius:999px !important;padding:0 4px !important;color:#fff !important;background:#ff4f42 !important;font-size:9.5px !important;font-weight:500 !important;line-height:12px !important;box-shadow:none !important;transform:translate(30%,-30%)}
body.app-dashboard .nav-profile-trigger{display:flex !important;align-items:center;gap:10px;background:transparent !important;border:0 !important;border-radius:999px !important;padding:3px 0 !important;box-shadow:none !important;cursor:pointer;width:auto !important;height:auto !important}
body.app-dashboard .nav-profile-trigger:hover{background:transparent !important}
body.app-dashboard .nav-profile-avatar{width:38px !important;height:38px !important;border:2px solid #e6edf8 !important;border-radius:50% !important;flex:0 0 auto;box-shadow:0 8px 18px rgba(7,22,55,.08) !important}
body.app-dashboard .nav-profile-id{display:flex;flex-direction:column;line-height:1.08;text-align:left;min-width:0}
body.app-dashboard .nav-profile-id-name{font-size:15px;font-weight:500;color:#071637;letter-spacing:0}
body.app-dashboard .nav-profile-id-role{margin-top:2px;font-size:12px;font-weight:500;color:#6b7c98}
body.app-dashboard .nav-profile-caret{color:#395a91;font-size:12px;margin-left:2px}
/* year switcher rendered inside the profile dropdown */
body.app-dashboard #nav-profile-dropdown #student-year-switcher{display:block !important;position:static !important;margin:0 0 6px !important;padding:8px 8px 0 !important}
body.app-dashboard #nav-profile-dropdown .student-year-switcher-trigger{display:flex !important;align-items:center;justify-content:space-between;gap:10px;width:100%;background:var(--pf-bg) !important;border:1px solid var(--pf-line) !important;border-radius:10px !important;padding:9px 12px !important;cursor:pointer}
body.app-dashboard #nav-profile-dropdown .student-year-switcher-kicker{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--pf-ink-3);font-weight:500}
body.app-dashboard #nav-profile-dropdown .student-year-switcher-label{font-size:14px;font-weight:500;color:var(--pf-brand-ink)}
body.app-dashboard #nav-profile-dropdown .student-year-switcher-menu{position:static !important;box-shadow:none !important;border:0 !important;background:transparent !important;margin:6px 0 0 !important;padding:0 !important;min-width:0 !important}

/* ----- hero clean-up: no meta pills, no CTA, no blur ----- */
body.app-dashboard #section-dashboard.is-active .today-hero-meta{display:none !important}
body.app-dashboard #section-dashboard.is-active .today-hero-cta{display:none !important}
body.app-dashboard #section-dashboard.is-active .today-hero-image{filter:none !important;-webkit-filter:none !important}
body.app-dashboard #section-dashboard.is-active .today-hero,
body.app-dashboard #section-dashboard.is-active .today-hero-overlay{backdrop-filter:none !important;-webkit-backdrop-filter:none !important}
body.app-dashboard #section-dashboard.is-active .today-hero::before,
body.app-dashboard #section-dashboard.is-active .today-hero::after{filter:none !important;backdrop-filter:none !important}

/* ----- remove Today's schedule; the 4 stat boxes take its place ----- */
body.app-dashboard #section-dashboard.is-active .today-card--schedule{display:none !important}

/* =========================================================================
   MOBILE PASS — single column, in-page header restored, 2-up stats.
   Body-prefixed + appended last so it wins via source order at <=768px.
   ========================================================================= */
@media (max-width:768px){
  body.app-dashboard .app-inner{padding:0 14px calc(86px + env(safe-area-inset-bottom,0px)) !important;max-width:none !important}

  /* in-page mobile header (greeting + avatar + messages/search) */
  body.app-dashboard #section-dashboard.is-active .today-mobile-header{display:flex !important;align-items:center;gap:12px;padding:14px 2px 8px !important;background:transparent !important;border:0 !important;box-shadow:none !important;margin:0 !important}
  body.app-dashboard #section-dashboard.is-active .today-mobile-name{font-size:20px !important;font-weight:600 !important;color:var(--pf-brand-ink) !important}
  body.app-dashboard #section-dashboard.is-active .today-mobile-kicker{font-size:12px !important;color:var(--pf-ink-3) !important}
  body.app-dashboard #section-dashboard.is-active .today-mobile-avatar{width:42px !important;height:42px !important}

  /* single column */
  body.app-dashboard #section-dashboard.is-active .pf-today{display:block !important}
  body.app-dashboard #section-dashboard.is-active .pf-main{display:flex !important;flex-direction:column !important;gap:14px !important}
  body.app-dashboard #section-dashboard.is-active .pf-row2{grid-template-columns:1fr !important;gap:14px !important}
  body.app-dashboard #section-dashboard.is-active .pf-card{padding:16px !important}

  /* hero */
  body.app-dashboard #section-dashboard.is-active .today-hero{height:198px !important}
  body.app-dashboard #section-dashboard.is-active #dash-hero-placement-title{font-size:21px !important;line-height:1.13 !important}
  body.app-dashboard #section-dashboard.is-active .today-hero-overlay{padding:15px !important}

  /* stats: 2 across */
  body.app-dashboard #section-dashboard.is-active .today-overview-carousel{grid-template-columns:1fr 1fr !important;gap:10px !important}
  body.app-dashboard #section-dashboard.is-active .today-overview-card{min-height:150px !important;padding:14px !important}
  body.app-dashboard #section-dashboard.is-active .today-overview-card h3{margin-top:11px !important}
  body.app-dashboard #section-dashboard.is-active .today-overview-card-primary{font-size:21px !important}
}

/* MOBILE PASS v2 — out-specificity the legacy today-mobile-mock carousel + kill overflow */
@media (max-width:768px){
  body.app-dashboard.today-mobile-mock #section-dashboard{overflow-x:hidden !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .pf-today,
  body.app-dashboard.today-mobile-mock #section-dashboard .pf-main{display:block !important;width:100% !important;max-width:100% !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .pf-row2{display:grid !important;grid-template-columns:1fr !important;gap:14px !important;width:100% !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .pf-card{width:auto !important;max-width:100% !important}
  /* stats: a real 2-col grid (beat the flex carousel) */
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-shell{width:100% !important;max-width:100% !important;margin:0 !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-carousel{display:grid !important;grid-template-columns:1fr 1fr !important;gap:10px !important;overflow:visible !important;transform:none !important;width:100% !important;scroll-snap-type:none !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-card{width:auto !important;min-width:0 !important;max-width:100% !important;flex:none !important;scroll-snap-align:none !important;min-height:150px !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-dots{display:none !important}
  /* header actions on the right, not overflowing */
  body.app-dashboard.today-mobile-mock #section-dashboard .today-mobile-header{justify-content:space-between !important;flex-wrap:nowrap !important;width:100% !important;max-width:100% !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-mobile-user{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:10px}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-mobile-actions{flex:0 0 auto;display:flex;gap:8px}
}

/* MOBILE PASS v3 — carousel has an ID; match it to force the 2-col grid (fixes overflow) */
@media (max-width:768px){
  body.app-dashboard.today-mobile-mock #section-dashboard #today-overview-carousel{display:grid !important;grid-template-columns:1fr 1fr !important;gap:10px !important;overflow:visible !important;transform:none !important;width:100% !important;max-width:100% !important}
  body.app-dashboard.today-mobile-mock #section-dashboard #today-overview-carousel > .today-overview-card{width:auto !important;min-width:0 !important;max-width:100% !important;flex:none !important;scroll-snap-align:none !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-mobile-actions{position:static !important}
}

/* MOBILE PASS v4 — fully reset the legacy horizontal carousel to a 2-col row grid */
@media (max-width:768px){
  body.app-dashboard.today-mobile-mock #section-dashboard #today-overview-carousel{
    display:grid !important;grid-auto-flow:row !important;grid-template-columns:1fr 1fr !important;
    grid-auto-columns:auto !important;gap:10px !important;overflow:visible !important;overflow-x:visible !important;
    padding:0 !important;margin:0 !important;scroll-snap-type:none !important;transform:none !important;
    width:100% !important;max-width:100% !important;
  }
}

/* MOBILE PASS v5 — true full-width single column (no sidebar reservation / overflow) */
@media (max-width:768px){
  html, body.app-dashboard.today-mobile-mock{overflow-x:hidden !important;max-width:100vw}
  body.app-dashboard.today-mobile-mock .app-shell{display:block !important;grid-template-columns:none !important}
  body.app-dashboard.today-mobile-mock .app-sidebar{display:none !important}
  body.app-dashboard.today-mobile-mock .app-content{width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important}
  body.app-dashboard.today-mobile-mock .app-inner{width:100% !important;max-width:100% !important;margin:0 !important;padding:0 14px calc(86px + env(safe-area-inset-bottom,0px)) !important;overflow-x:hidden !important}
  body.app-dashboard.today-mobile-mock #section-dashboard{width:100% !important;max-width:100% !important;overflow-x:hidden !important}
}

/* MOBILE PASS v6 — box-sizing so width:100% + padding doesn't overflow */
@media (max-width:768px){
  body.app-dashboard.today-mobile-mock .app-content,
  body.app-dashboard.today-mobile-mock .app-inner,
  body.app-dashboard.today-mobile-mock #section-dashboard,
  body.app-dashboard.today-mobile-mock #section-dashboard *{box-sizing:border-box !important}
  body.app-dashboard.today-mobile-mock .app-inner{width:auto !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-mobile-header{width:auto !important}
}

/* MOBILE PASS v7 — minmax(0,1fr) so stat columns can shrink (kills the last overflow) */
@media (max-width:768px){
  body.app-dashboard.today-mobile-mock #section-dashboard #today-overview-carousel{grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-card{min-width:0 !important;overflow:hidden !important}
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-card-primary,
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-card-footer,
  body.app-dashboard.today-mobile-mock #section-dashboard .today-overview-card h3{min-width:0 !important;white-space:normal !important;overflow-wrap:anywhere}
}

/* a11y: visible keyboard focus for the now-focusable Today overview cards */
body.app-dashboard #section-dashboard.is-active .today-overview-card:focus-visible{outline:2px solid var(--pf-brand);outline-offset:2px;border-radius:var(--pf-r)}

/* =========================================================================
   STUDENT TODAY - placement hero command centre (mockup implementation)
   ========================================================================= */
body.app-dashboard .today-header{display:none !important}
body.app-dashboard #section-dashboard.is-active .pf-today{display:block !important}
body.app-dashboard #section-dashboard.is-active .pf-main{display:block !important;min-width:0}
body.app-dashboard #section-dashboard.is-active .pf-brandband,
body.app-dashboard #section-dashboard.is-active .pf-rail,
body.app-dashboard #section-dashboard.is-active .today-mobile-header,
body.app-dashboard #section-dashboard.is-active .today-hero,
body.app-dashboard #section-dashboard.is-active .pf-row2,
body.app-dashboard #section-dashboard.is-active .today-quick-actions-shell,
body.app-dashboard #section-dashboard.is-active .today-overview-shell,
body.app-dashboard #section-dashboard.is-active #dashboard-future-empty-state,
body.app-dashboard #section-dashboard.is-active #session-aware-assistant,
body.app-dashboard #section-dashboard.is-active #daily-placement-assistant,
body.app-dashboard #section-dashboard.is-active .today-grid,
body.app-dashboard #section-dashboard.is-active .today-card--schedule,
body.app-dashboard #section-dashboard.is-active .today-card--status,
body.app-dashboard #section-dashboard.is-active .today-card--notice,
body.app-dashboard #section-dashboard.is-active .today-card--requirements{display:none !important}
body.app-dashboard #section-dashboard.is-active .today-command-shell{display:flex !important;flex-direction:column;gap:14px}
.today-data-bridge{display:none !important}
/* Student page frame v1 supersedes the outer frame on adopting pages.
   These declarations use :has(#section-dashboard...) purely for specificity,
   which no class-level rule can beat — so rather than escalate the arms race,
   the frame OPTS OUT of them with :not(.pf-frame-v1). Non-adopting student
   views (Tips, Roadmaps, Site info, My progress, Clinical exposure) keep the
   old behaviour byte-for-byte until they adopt the frame too, at which point
   these blocks should be deleted outright.
   See styles/student-page-frame.css. */
body.app-dashboard:not(.pf-frame-v1):has(#section-dashboard.is-active) .app-inner{max-width:1320px !important;padding:8px 28px 38px !important}
body.app-dashboard #section-dashboard.is-active{background:#fff !important;padding:14px 16px 18px !important;border-radius:10px}

.today-command-shell,
.today-command-shell *{box-sizing:border-box;letter-spacing:0}
.today-command-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 8px}
.today-greeting-block{display:inline-flex;align-items:center;gap:12px;min-width:0}
.today-greeting-icon{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#edf5ff,#f8fbff);border:1px solid #d8e6fb;color:#075ff0;box-shadow:0 8px 18px rgba(7,95,240,.08);flex:0 0 auto}
.today-greeting-icon svg{width:21px;height:21px}
.today-greeting-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.today-command-greeting{margin:0;color:#344667;font-size:13px;font-weight:600;line-height:1.2}
.today-command-date{margin:0;color:#071637;font-size:20px;font-weight:500;line-height:1.1}

.today-location-hero{position:relative;min-height:348px;border:1px solid #dbe4f2;border-radius:8px;overflow:hidden;background:#071637;box-shadow:0 12px 30px rgba(20,33,64,.08)}
.today-location-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.today-location-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,12,26,.78) 0%,rgba(5,12,26,.54) 32%,rgba(5,12,26,.08) 68%,rgba(5,12,26,.18) 100%)}
.today-location-hero-content{position:relative;z-index:1;min-height:348px;padding:52px 30px 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;color:#fff}
.today-location-copy{max-width:650px}
.today-location-copy h2{margin:0 0 8px;color:#fff;font-size:50px;font-weight:600;line-height:1.02}
.today-location-subtitle{margin:0 0 14px;color:#fff;font-size:20px;font-weight:600;line-height:1.3}
.today-location-date{display:flex;align-items:center;gap:8px;margin:0 0 20px;color:#fff;font-size:16px;font-weight:500}
.today-inline-icon{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center}
.today-inline-icon svg{width:100%;height:100%}
.today-location-badges{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.today-status-chip{display:inline-flex;align-items:center;height:32px;padding:0 15px;border-radius:6px;font-size:13px;font-weight:500}
.today-status-chip--blue{background:#075ff0;color:#fff;border:1px solid rgba(255,255,255,.14)}
.today-status-chip--amber{background:rgba(224,138,30,.18);color:#ffb351;border:1px solid rgba(255,179,81,.7)}
.today-location-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.today-primary-action,
.today-secondary-action{min-height:46px;border-radius:6px;text-decoration:none;font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:12px}
.today-primary-action{min-width:192px;padding:0 22px;background:#075ff0;color:#fff;box-shadow:0 10px 22px rgba(7,95,240,.26)}
.today-primary-action:hover{background:#0454d8;color:#fff}
.today-secondary-action{min-width:206px;padding:0 20px;background:rgba(5,12,26,.32);color:#fff;border:1px solid rgba(255,255,255,.72);backdrop-filter:blur(3px)}
.today-secondary-action:hover{background:rgba(5,12,26,.44);color:#fff}
.today-secondary-action svg{width:20px;height:20px}
.today-timeline-card,
.today-actions-card,
.today-pulse-card{background:#fff;border:1px solid #dbe4f2;border-radius:8px;box-shadow:0 8px 24px rgba(20,33,64,.04)}
.today-timeline-card{padding:16px 18px 14px}
.today-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.today-section-heading h2,
.today-pulse-card h2{margin:0;color:#071637;font-size:17px;font-weight:600;line-height:1.2}
.today-section-heading h2 span{display:inline-flex;margin-left:8px;padding:3px 8px;border-radius:6px;background:#edf2f8;color:#344667;font-size:11px;font-weight:600;vertical-align:middle}
.today-section-heading a{color:#075ff0;text-decoration:none;font-size:13px;font-weight:600}
.today-timeline-strip{position:relative;display:grid;grid-template-columns:1fr 1.35fr 1fr;align-items:center;gap:14px}
.today-timeline-strip::before{content:"";position:absolute;left:16px;right:26px;top:50%;height:1px;background:#b9c7da;transform:translateY(-50%)}
.today-timeline-strip.is-empty::before{display:none}
.today-timeline-empty{grid-column:1 / -1;position:relative;z-index:1;padding:14px 16px;border:1px dashed #d5dfef;border-radius:8px;background:#f8fbff;color:#071637}
.today-timeline-empty h3{margin:0 0 4px;font-size:15px;font-weight:600;line-height:1.2}
.today-timeline-empty p{margin:0;color:#52617b;font-size:13px;font-weight:400;line-height:1.35}
.today-timeline-item{position:relative;z-index:1;display:grid;grid-template-columns:auto 12px minmax(0,1fr);align-items:center;gap:12px;color:#071637;min-width:0}
.today-timeline-item time{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 9px;border-radius:6px;background:#eef5ff;color:#075ff0;font-size:14px;font-weight:500}
.today-timeline-dot{width:12px;height:12px;border-radius:50%;background:#075ff0;border:2px solid #fff;box-shadow:0 0 0 2px rgba(7,95,240,.16)}
.today-timeline-item h3{margin:0 0 3px;color:#071637;font-size:15px;font-weight:600;line-height:1.15}
.today-timeline-item p{margin:0;color:#52617b;font-size:12px;font-weight:400;line-height:1.25}
.today-timeline-item--green time{background:#dff5eb;color:#058a4f}
.today-timeline-item--green .today-timeline-dot{background:#11945b;box-shadow:0 0 0 2px rgba(17,148,91,.16)}
.today-timeline-item--purple time{background:#f1e8ff;color:#6f22c6}
.today-timeline-item--purple .today-timeline-dot{background:#6f22c6;box-shadow:0 0 0 2px rgba(111,34,198,.16)}
.today-timeline-item--active{padding:10px 12px;border:1.5px solid #075ff0;border-radius:6px;background:#f9fbff;box-shadow:0 10px 20px rgba(7,95,240,.08)}
.today-qr-button{justify-self:end;display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 10px;border-radius:6px;background:#edf5ff;border:1px solid #cfe0fb;color:#075ff0;text-decoration:none;font-size:12px;font-weight:600}
.today-qr-button svg{width:18px;height:18px}
.today-timeline-chevron{justify-self:end;color:#254677;font-size:24px}

.today-command-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:14px}
.today-actions-card{padding:16px 12px 12px}
.today-action-list{display:flex;flex-direction:column}
.today-action-row{display:grid;grid-template-columns:28px 48px minmax(0,1fr) 100px 110px;align-items:center;gap:14px;padding:12px;border-radius:8px;border:1px solid transparent;color:#071637}
.today-action-row + .today-action-row{border-top:1px solid #edf1f7}
.today-action-row--selected{border-color:#1f6fd6;background:#fbfdff;box-shadow:0 8px 20px rgba(31,111,214,.06)}
.today-action-rank{width:25px;height:25px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#edf2f8;color:#071637;font-size:13px;font-weight:600}
.today-action-row--selected .today-action-rank{background:#075ff0;color:#fff}
.today-action-icon{width:48px;height:48px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid}
.today-action-icon svg{width:24px;height:24px}
.today-action-icon--blue{background:#edf5ff;border-color:#cfe0fb;color:#075ff0}
.today-action-icon--navy{background:#f5f7fb;border-color:#dbe4f2;color:#254677}
.today-action-icon--purple{background:#f6edff;border-color:#e2ccff;color:#8a26db}
.today-action-copy{min-width:0}
.today-mini-chip{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:5px;background:#edf2f8;color:#52617b;font-size:11px;font-weight:500}
.today-mini-chip--blue{background:#eaf2ff;color:#075ff0}
.today-mini-chip--purple{background:#f5eaff;color:#8027cf}
.today-action-copy h3{margin:6px 0 3px;color:#071637;font-size:14px;font-weight:600;line-height:1.22}
.today-action-copy p{margin:0;color:#53627c;font-size:11px;font-weight:600;line-height:1.35}
.today-action-meta{display:flex;flex-direction:column;gap:3px;color:#52617b;font-size:12px;font-weight:600}
.today-action-meta strong{color:#eb5e28;font-size:13px;font-weight:700}
.today-action-button{min-height:34px;border-radius:6px;border:1px solid #d5dfef;color:#16233f;background:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;font-size:12px;font-weight:600}
.today-action-button--primary{background:#075ff0;border-color:#075ff0;color:#fff}
.today-action-button:hover{border-color:#075ff0;color:#075ff0}
.today-action-button--primary:hover{background:#0454d8;color:#fff}
.today-card-footer-link{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;padding:9px;color:#075ff0;text-decoration:none;font-size:13px;font-weight:600}

.today-pulse-card{padding:18px}
.today-pulse-list{display:flex;flex-direction:column;margin-top:12px}
.today-pulse-row{display:grid;grid-template-columns:42px minmax(95px,1fr) 150px auto 10px;align-items:center;gap:12px;min-height:52px;padding:10px 0;color:#071637;text-decoration:none;border-bottom:1px solid #edf1f7}
.today-pulse-row:last-child{border-bottom:0}
.today-pulse-icon{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.today-pulse-icon svg{width:20px;height:20px}
.today-pulse-icon--green{background:#dcf5e9;color:#11945b}
.today-pulse-icon--purple{background:#f2e7ff;color:#7d20cf}
.today-pulse-icon--orange{background:#fff0e2;color:#f97316}
.today-pulse-icon--blue{background:#eaf2ff;color:#075ff0}
.today-pulse-copy{display:flex;align-items:center;justify-content:space-between;gap:12px}
.today-pulse-copy strong{color:#071637;font-size:14px;font-weight:700}
.today-pulse-copy small{color:#075ff0;font-size:13px;font-weight:600;white-space:nowrap}
.today-pulse-row:nth-child(3) .today-pulse-copy small{color:#eb5e28}
.today-pulse-meter{height:6px;border-radius:999px;background:#e4eaf2;overflow:hidden}
.today-pulse-meter i{display:block;height:100%;border-radius:999px}
.today-pulse-meter--green i{width:66%;background:#11945b}
.today-pulse-meter--purple i{width:56%;background:#7d20cf}
.today-pulse-link{justify-self:end;color:#075ff0;font-size:12px;font-weight:600;white-space:nowrap}

@media (max-width:1180px){
  .today-location-copy h2{font-size:42px}
  .today-location-hero-content{padding:38px 24px 24px}
  .today-command-grid{grid-template-columns:1fr}
  .today-pulse-row{grid-template-columns:42px minmax(95px,1fr) 150px auto 10px}
}

@media (max-width:900px){
  body.app-dashboard .app-inner{padding:16px 16px 96px !important}
  .today-location-hero,
  .today-location-hero-content{min-height:420px}
  .today-location-hero-content{align-items:flex-start;flex-direction:column;justify-content:flex-end}
  .today-timeline-strip{grid-template-columns:1fr}
  .today-timeline-strip::before{left:28px;right:auto;top:10px;bottom:10px;width:1px;height:auto;transform:none}
  .today-timeline-item,
  .today-timeline-item--active{grid-template-columns:60px 12px minmax(0,1fr);padding:10px 0;background:transparent;border:0;box-shadow:none}
  .today-qr-button{grid-column:3;justify-self:start;margin-top:8px}
  .today-action-row{grid-template-columns:28px 44px minmax(0,1fr);align-items:flex-start}
  .today-action-meta,
  .today-action-button{grid-column:3}
  .today-action-button{justify-self:start;min-width:120px}
  .today-pulse-row{grid-template-columns:42px minmax(0,1fr) 110px 10px}
  .today-pulse-link{display:none}
}

@media (max-width:640px){
  body.app-dashboard #section-dashboard.is-active .today-command-shell{gap:12px}
  .today-command-topline{margin-bottom:2px}
  .today-command-greeting{font-size:13px}
  .today-command-date{font-size:16px}
  .today-location-hero,
  .today-location-hero-content{min-height:390px}
  .today-location-hero-content{padding:28px 18px 18px}
  .today-location-hero-shade{background:linear-gradient(90deg,rgba(5,12,26,.82),rgba(5,12,26,.34)),linear-gradient(0deg,rgba(5,12,26,.72),rgba(5,12,26,0) 58%)}
  .today-location-copy h2{font-size:34px}
  .today-location-subtitle{font-size:16px}
  .today-location-date{font-size:14px}
  .today-location-actions{width:100%}
  .today-primary-action,
  .today-secondary-action{width:100%;min-width:0}
  .today-timeline-card,
  .today-actions-card,
  .today-pulse-card{border-radius:8px}
  .today-timeline-card{padding:14px}
  .today-section-heading{align-items:flex-start}
  .today-pulse-row{grid-template-columns:38px minmax(0,1fr) 10px;gap:10px}
  .today-pulse-meter{grid-column:2 / 3;width:100%}
}

/* Today pulse containment pass: keep values, meters, and links inside the card. */
body.app-dashboard #section-dashboard.is-active .today-location-date{margin-bottom:0}
body.app-dashboard #section-dashboard.is-active .today-pulse-card{overflow:hidden}
body.app-dashboard #section-dashboard.is-active .today-pulse-row{
  position:relative;
  grid-template-columns:42px minmax(0,1fr) !important;
  align-items:start;
  gap:4px 12px;
  min-height:68px;
  padding:12px 18px 12px 0;
}
body.app-dashboard #section-dashboard.is-active .today-pulse-icon{grid-column:1;grid-row:1 / span 3}
body.app-dashboard #section-dashboard.is-active .today-pulse-copy{
  grid-column:2;
  min-width:0;
  justify-content:flex-start;
  gap:6px 10px;
  flex-wrap:wrap;
}
body.app-dashboard #section-dashboard.is-active .today-pulse-copy strong,
body.app-dashboard #section-dashboard.is-active .today-pulse-copy small{min-width:0;line-height:1.2}
body.app-dashboard #section-dashboard.is-active .today-pulse-meter{
  grid-column:2;
  width:100%;
  max-width:190px;
  margin-top:5px;
}
body.app-dashboard #section-dashboard.is-active .today-pulse-link{
  grid-column:2;
  justify-self:start;
  margin-top:4px;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.2;
}
body.app-dashboard #section-dashboard.is-active .today-pulse-row > span:last-child{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  color:#254677;
}

/* Today mobile visual QA pass: reduce shell inset and prevent right-edge clipping. */
@media (max-width:768px){
  body.app-dashboard:not(.pf-frame-v1):has(#section-dashboard.is-active) .app-inner{
    box-sizing:border-box !important;
    width:auto !important;
    max-width:none !important;
    padding:8px 10px calc(86px + env(safe-area-inset-bottom,0px)) !important;
    overflow-x:hidden !important;
  }
  body.app-dashboard #section-dashboard.is-active{
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    padding:10px !important;
    overflow:hidden !important;
  }
  body.app-dashboard #section-dashboard.is-active .today-command-shell,
  body.app-dashboard #section-dashboard.is-active .today-location-hero,
  body.app-dashboard #section-dashboard.is-active .today-timeline-card,
  body.app-dashboard #section-dashboard.is-active .today-actions-card,
  body.app-dashboard #section-dashboard.is-active .today-pulse-card{
    box-sizing:border-box !important;
    width:100%;
    max-width:100%;
  }
  body.app-dashboard #section-dashboard.is-active .today-greeting-icon{
    width:38px;
    height:38px;
    border-radius:10px;
  }
  body.app-dashboard #section-dashboard.is-active .today-command-date{font-size:18px}
  body.app-dashboard #section-dashboard.is-active .today-location-hero,
  body.app-dashboard #section-dashboard.is-active .today-location-hero-content{min-height:370px}
  body.app-dashboard #section-dashboard.is-active .today-location-copy h2{font-size:31px}
  body.app-dashboard #section-dashboard.is-active .today-location-subtitle{font-size:15px}
  body.app-dashboard #section-dashboard.is-active .today-section-heading{
    align-items:center;
    gap:10px;
  }
  body.app-dashboard #section-dashboard.is-active .today-section-heading a{
    flex:0 0 auto;
    max-width:44%;
    white-space:normal;
    text-align:right;
    line-height:1.15;
  }
  body.app-dashboard #section-dashboard.is-active .today-action-row{
    grid-template-columns:28px 42px minmax(0,1fr) !important;
    gap:10px;
    padding:10px;
  }
  body.app-dashboard #section-dashboard.is-active .today-action-icon{
    width:42px;
    height:42px;
  }
  body.app-dashboard #section-dashboard.is-active .today-action-copy h3{font-size:13px}
  body.app-dashboard #section-dashboard.is-active .today-action-copy p{overflow-wrap:anywhere}
  body.app-dashboard #section-dashboard.is-active .today-action-button{min-width:120px}
}

/* Standalone student pages can still load this file for legacy shell polish.
   Keep their chrome aligned with the shared student shell rather than Today's
   page-specific spacing. */
body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .navbar-app .nav-container{
  min-height:64px !important;
  padding-block:.62rem !important;
  gap:1rem !important;
}
body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .navbar-app .nav-logo{
  flex:0 0 240px !important;
  gap:.62rem !important;
}
body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .nav-search{
  flex:1 1 540px !important;
  min-width:180px !important;
  justify-content:center !important;
}
body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .nav-search input{
  width:min(540px,100%) !important;
  height:38px !important;
}
/* The page surface keeps this selector at its ORIGINAL weight (1,3,1).
   ECG Studio's reading room deliberately out-specifies exactly this rule at
   (1,4,1) — scripts/ecg-studio-v6-production.test.js pins that relationship —
   so raising it here would silently eat ECG's margin of safety. Only the box
   metrics below are superseded by the student page frame. */
body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .app-content{
  background:var(--pf-canvas,#fff) !important;
}
body.app-dashboard.student-shell-unified:not(.pf-frame-v1):not(:has(#section-dashboard)) .app-content{
  width:calc(100% - 240px) !important;
  margin-left:240px !important;
  padding:1.45rem 1.75rem 3.2rem !important;
}
body.app-dashboard.student-shell-unified:not(.pf-frame-v1):not(:has(#section-dashboard)) .app-inner{
  width:100% !important;
  max-width:1320px !important;
  margin:0 auto !important;
  padding:0 !important;
}
@media (max-width:1100px){
  body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .navbar-app .nav-logo{
    flex-basis:auto !important;
  }
  body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .nav-search{
    flex-basis:360px !important;
  }
}
@media (max-width:768px){
  body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .navbar-app .nav-container{
    min-height:58px !important;
    padding:.55rem .85rem !important;
    gap:.62rem !important;
  }
  body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .navbar-app .nav-logo{
    flex:0 1 auto !important;
  }
  body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .nav-search{
    min-width:0 !important;
    flex:1 1 auto !important;
  }
  body.app-dashboard.student-shell-unified:not(:has(#section-dashboard)) .nav-search input{
    height:36px !important;
    font-size:.86rem !important;
  }
  body.app-dashboard.student-shell-unified:not(.pf-frame-v1):not(:has(#section-dashboard)) .app-content{
    width:100% !important;
    margin-left:0 !important;
    padding:1rem .9rem calc(5.8rem + env(safe-area-inset-bottom,0px)) !important;
  }
  body.app-dashboard.student-shell-unified:not(.pf-frame-v1):not(:has(#section-dashboard)) .app-inner{
    max-width:none !important;
  }
}

/* Today mobile pass: final loaded overrides for the command-centre layout. */
@media (max-width:768px){
  body.app-dashboard:not(.pf-frame-v1):has(#section-dashboard.is-active) .app-inner{
    padding:.65rem .62rem calc(var(--student-mobile-nav-height,76px) + 1rem + env(safe-area-inset-bottom,0px)) !important;
  }

  body.app-dashboard #section-dashboard.is-active{
    padding:.62rem !important;
    border-radius:0 !important;
  }

  body.app-dashboard #section-dashboard.is-active .today-command-topline{
    margin-bottom:0;
  }

  body.app-dashboard #section-dashboard.is-active .today-greeting-block{
    width:100%;
    align-items:center;
  }

  body.app-dashboard #section-dashboard.is-active .today-location-hero,
  body.app-dashboard #section-dashboard.is-active .today-location-hero-content{
    min-height:310px !important;
  }

  body.app-dashboard #section-dashboard.is-active .today-location-hero-content{
    padding:22px 16px 18px !important;
  }

  body.app-dashboard #section-dashboard.is-active .today-location-copy h2{
    max-width:11ch;
    font-size:2rem !important;
    line-height:1.02;
  }

  body.app-dashboard #section-dashboard.is-active .today-location-subtitle{
    max-width:100%;
    font-size:.98rem !important;
    line-height:1.28;
  }

  body.app-dashboard #section-dashboard.is-active .today-timeline-strip{
    gap:8px;
  }

  body.app-dashboard #section-dashboard.is-active .today-timeline-strip::before{
    left:28px;
    top:18px;
    bottom:18px;
  }

  body.app-dashboard #section-dashboard.is-active .today-timeline-item,
  body.app-dashboard #section-dashboard.is-active .today-timeline-item--active{
    grid-template-columns:58px 12px minmax(0,1fr) !important;
    min-height:58px;
    padding:8px 0 !important;
  }

  body.app-dashboard #section-dashboard.is-active .today-timeline-item time{
    height:30px;
    font-size:.82rem;
  }

  body.app-dashboard #section-dashboard.is-active .today-qr-button,
  body.app-dashboard #section-dashboard.is-active .today-timeline-chevron{
    grid-column:3;
    justify-self:start;
  }

  body.app-dashboard #section-dashboard.is-active .today-command-grid{
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px;
  }

  body.app-dashboard #section-dashboard.is-active .today-actions-card,
  body.app-dashboard #section-dashboard.is-active .today-pulse-card,
  body.app-dashboard #section-dashboard.is-active .today-timeline-card{
    padding:14px !important;
  }

  body.app-dashboard #section-dashboard.is-active .today-action-list{
    gap:10px;
  }

  body.app-dashboard #section-dashboard.is-active .today-action-row,
  body.app-dashboard #section-dashboard.is-active .today-action-row--selected{
    border:1px solid #dbe4f2;
    border-radius:8px;
    background:#fff;
    box-shadow:none;
  }

  body.app-dashboard #section-dashboard.is-active .today-action-row + .today-action-row{
    border-top:1px solid #dbe4f2;
  }

  body.app-dashboard #section-dashboard.is-active .today-action-meta{
    width:100%;
  }

  body.app-dashboard #section-dashboard.is-active .today-action-button{
    width:100%;
    min-width:0;
  }

  body.app-dashboard #section-dashboard.is-active .today-pulse-row{
    min-height:64px;
    padding:10px 18px 10px 0;
  }

  body.app-dashboard #section-dashboard.is-active .today-pulse-meter{
    max-width:100%;
  }
}

@media (max-width:420px){
  body.app-dashboard #section-dashboard.is-active .today-location-hero,
  body.app-dashboard #section-dashboard.is-active .today-location-hero-content{
    min-height:285px !important;
  }

  body.app-dashboard #section-dashboard.is-active .today-location-copy h2{
    font-size:1.76rem !important;
  }

  body.app-dashboard #section-dashboard.is-active .today-section-heading h2,
  body.app-dashboard #section-dashboard.is-active .today-pulse-card h2{
    font-size:1rem;
  }
}
