/* =================================================================
   Oasis 360 PMT Implementation Hub — PSI design system stylesheet
   Base layer: PSI tokens (design-system/colors_and_type.css), inlined.
   App layer:  full application styling (replaces prototype head.html).
   ================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Merriweather:ital,opsz,wght@1,18..144,300..900&display=swap");

/* =================================================================
   1. PSI TOKENS
   ================================================================= */
:root {
  /* Official PSI tokens */
  --carbon-black:     #1C2A36;
  --midnight-slate:   #314659;
  --harbor-steel:     #6D8899;
  --hs-lite:          #C0D6E3;
  --hs-pastel:        #E2ECF2;
  --hs-faded:         #F5FBFF;
  --impact-orange:    #E79124;
  --tinted-white:     #F5F5FA;

  /* Legacy aliases */
  --psi-navy:         var(--carbon-black);
  --psi-navy-900:     #0F1820;
  --psi-navy-800:     #141F29;
  --psi-navy-700:     var(--carbon-black);
  --psi-navy-600:     var(--midnight-slate);
  --psi-navy-500:     #3F5569;
  --psi-navy-400:     #556C7F;
  --psi-orange:       var(--impact-orange);

  /* Neutrals */
  --psi-white:        #FFFFFF;
  --psi-paper:        var(--tinted-white);
  --psi-stone-100:    var(--hs-pastel);
  --psi-stone-200:    #C7C7C7;
  --psi-stone-300:    #A0A0A0;
  --psi-stone-500:    #707070;
  --psi-stone-700:    #3E3B34;
  --psi-ink:          #2A2A2A;

  /* Semantic */
  --psi-success:      #3A8A58;
  --psi-warning:      #9A6B1F;
  --psi-danger:       #C24A3D;
  --psi-info:         #3B6E8F;

  /* Semantic washes (derived surfaces — never applied to Impact Orange) */
  --wash-success:     #E6F1EA;
  --wash-warning:     #FAF1E0;
  --wash-danger:      #F8E9E7;
  --wash-info:        var(--hs-pastel);
  --ink-success:      #2C6B44;
  --ink-warning:      #7A5418;
  --ink-danger:       #9E3A2F;
  --ink-info:         #2E5871;

  /* Foreground / background */
  --bg:               var(--psi-paper);
  --bg-raised:        #FFFFFF;
  --bg-sunken:        var(--psi-stone-100);
  --fg:               var(--psi-ink);
  --fg-muted:         var(--psi-stone-500);
  --fg-subtle:        var(--psi-stone-300);
  --border:           var(--psi-stone-200);
  --border-soft:      #E4E4E8;
  --accent:           var(--psi-orange);
  --accent-fg:        #FFFFFF;

  /* Type families */
  --font-display:     "Oswald", "Arial Narrow", "Impact", sans-serif;
  --font-body:        "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-serif:       "Merriweather", Georgia, "Times New Roman", serif;
  --font-mono:        "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale */
  --fs-12:  0.75rem;  --fs-14:  0.875rem; --fs-16:  1rem;
  --fs-18:  1.125rem; --fs-20:  1.25rem;  --fs-24:  1.5rem;
  --fs-32:  2rem;     --fs-40:  2.5rem;   --fs-56:  3.5rem;

  --lh-tight: 1.05; --lh-snug: 1.2; --lh-normal: 1.5; --lh-loose: 1.7;

  /* Spacing — 8px grid */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Radii */
  --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 16px; --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(20, 30, 40, 0.08);
  --shadow-sm: 0 2px 4px rgba(20, 30, 40, 0.08), 0 1px 2px rgba(20, 30, 40, 0.06);
  --shadow-md: 0 6px 16px -4px rgba(20, 30, 40, 0.14), 0 2px 4px rgba(20, 30, 40, 0.06);
  --shadow-lg: 0 20px 40px -12px rgba(20, 30, 40, 0.22), 0 4px 8px rgba(20, 30, 40, 0.06);

  /* Motion */
  --ease-out:    cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
  --dur-fast: 120ms; --dur-base: 220ms; --dur-slow: 420ms;

  /* Layout */
  --container-w: 1500px;
  --container-px: clamp(16px, 3vw, 40px);
  --conf-h: 22px;
  --bar-h: 64px;
  --chrome-h: 86px;   /* conf strip + app bar */
  --tabs-h: 46px;
}

/* Compatibility aliases — any prototype colour reference that survives
   in emitted markup resolves to its PSI equivalent instead of breaking. */
:root {
  --navy: var(--carbon-black);
  --navy-deep: var(--psi-navy-900);
  --navy-soft: var(--hs-pastel);
  --teal: var(--psi-success);
  --terra: var(--psi-info);
  --gold: var(--psi-warning);
  --red: var(--psi-danger);
  --grey: var(--fg-muted);
  --grey-lt: var(--fg-subtle);
  --line: var(--border);
  --card: var(--bg-raised);
  --ink: var(--fg);
  --def: var(--psi-stone-500);
}

/* =================================================================
   2. BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: var(--lh-normal);
  padding-top: var(--chrome-h);
}
button, input, select, textarea { font-family: var(--font-body); font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, .disp { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em; }
a { color: var(--psi-info); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--carbon-black); }
svg { display: inline-block; vertical-align: middle; }
::selection { background: var(--hs-lite); color: var(--carbon-black); }

/* Focus ring — 2px Impact Orange, offset 2px, everywhere. */
:focus-visible {
  outline: 2px solid var(--impact-orange);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.tl tr:focus-visible, td:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* =================================================================
   3. APP CHROME — confidential strip + fixed 64px navy header
   ================================================================= */
.app-chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--carbon-black);
  transition: box-shadow var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
}
.app-chrome.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(28, 42, 54, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.conf-strip {
  height: var(--conf-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--psi-navy-900);
  color: var(--impact-orange);
  font-family: var(--font-display);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0 var(--sp-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.appbar {
  height: var(--bar-h);
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex; align-items: center; gap: var(--sp-4);
}
.brand { flex: none; display: flex; align-items: center; }
.brand img { width: auto; height: 44px; display: block; }
.brand-rule { flex: none; width: 1px; height: 32px; background: var(--psi-navy-500); }

.hd-title { min-width: 0; flex: 1; }
.hd-title h1 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #FFFFFF; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-title .sub {
  font-size: 11px; color: #B8C3CD; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-title .sub b { color: var(--hs-lite); font-weight: 500; }

.hd-actions { flex: none; display: flex; align-items: center; gap: var(--sp-2); }
.hd-actions .meta {
  font-size: 10px; color: #B8C3CD; text-align: right;
  line-height: 1.3; white-space: nowrap; padding-right: var(--sp-1);
}
.hd-actions .meta b { color: #FFFFFF; font-weight: 500; }

/* Header overflow menu */
.hdr-menu-wrap { position: relative; }
.hdr-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 232px; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: var(--sp-1);
  display: none; z-index: 70;
}
.hdr-menu.open { display: block; }
.hdr-menu button, .hdr-menu a {
  display: flex; align-items: center; gap: var(--sp-2);
  width: 100%; text-align: left;
  padding: 9px var(--sp-3); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out);
}
/* The User guide is a real link (open in a tab, copy the address) but must
   read as one more item in the menu — no underline, no link colour. */
.hdr-menu a { border-bottom: 0; text-decoration: none; }
.hdr-menu button:hover, .hdr-menu a:hover { background: var(--hs-faded); color: var(--fg); }
.hdr-menu button svg { color: var(--fg-muted); flex: none; }
.hdr-menu .sep { height: 1px; background: var(--border-soft); margin: var(--sp-1) 0; }
.hdr-menu button.danger-item { color: var(--ink-danger); }
.hdr-menu button.danger-item svg { color: var(--psi-danger); }
.hdr-menu button.danger-item:hover { background: var(--wash-danger); }

/* =================================================================
   4. BUTTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--fg);
  border-radius: var(--r-md);
  padding: 7px var(--sp-3);
  font-size: 13px; font-weight: 500; line-height: 1.2;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform 80ms var(--ease-out);
}
.btn:hover { background: var(--hs-faded); border-color: var(--harbor-steel); }
.btn:active { transform: scale(0.98); }

.btn.primary { background: var(--carbon-black); border-color: var(--carbon-black); color: #FFFFFF; }
.btn.primary:hover { background: var(--psi-navy-900); border-color: var(--psi-navy-900); color: #FFFFFF; }

.btn.accent { background: var(--impact-orange); border-color: var(--impact-orange); color: var(--carbon-black); font-weight: 600; }
.btn.accent:hover { background: var(--carbon-black); border-color: var(--carbon-black); color: #FFFFFF; }

.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--psi-navy-500);
  color: #DCE5EE;
}
.btn.ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--harbor-steel); color: #FFFFFF; }

.btn.warn { background: var(--wash-warning); border-color: var(--psi-warning); color: var(--ink-warning); }
.btn.warn:hover { background: #F3E5CC; border-color: var(--psi-warning); }
.btn.danger { background: var(--wash-danger); border-color: var(--psi-danger); color: var(--ink-danger); }
.btn.danger:hover { background: var(--psi-danger); color: #FFFFFF; }

.btn.small { padding: 4px var(--sp-2); font-size: 12px; }
.btn.icon-only { padding: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header-scoped compact ghost buttons */
.hd-actions .btn { padding: 6px 10px; font-size: 12px; }

/* =================================================================
   5. TAB BAR
   ================================================================= */
nav.tabs {
  position: sticky; top: var(--chrome-h); z-index: 40;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.tabs-inner {
  max-width: var(--container-w); margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex; align-items: stretch; gap: var(--sp-1);
  overflow-x: auto; scrollbar-width: thin;
}
.tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px var(--sp-4) 12px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.tab:hover { color: var(--carbon-black); background: var(--hs-faded); }
.tab.active { color: var(--carbon-black); font-weight: 600; border-bottom-color: var(--impact-orange); }
.tab .n {
  display: inline-block; background: var(--hs-pastel); color: var(--ink-info);
  border-radius: var(--r-pill); font-family: var(--font-body);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0;
  padding: 1px 7px; margin-left: 2px;
}
.tab .x { margin-left: 6px; color: var(--fg-subtle); font-weight: 700; padding: 0 3px; border-radius: var(--r-sm); }
.tab .x:hover { color: var(--psi-danger); }
.tab .lock { display: inline-flex; color: var(--impact-orange); }
.tab .lock svg { width: 14px; height: 14px; }

/* Protected tabs — Impact Orange lock treatment */
.tab.pwtab {
  border: 1px solid var(--impact-orange);
  border-bottom: 3px solid transparent;
  border-radius: var(--r-md) var(--r-md) 0 0;
  color: var(--carbon-black);
}
.tab.pwtab:hover { background: var(--wash-warning); }
.tab.pwtab.active { border-bottom-color: var(--impact-orange); }

/* =================================================================
   6. LAYOUT
   ================================================================= */
main {
  max-width: var(--container-w); margin: 0 auto;
  padding: var(--sp-5) var(--container-px) var(--sp-9);
}
section.view { display: none; }
section.view.active { display: block; animation: viewIn var(--dur-slow) var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: var(--sp-4); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

/* =================================================================
   7. CARDS & TEXT UTILITIES
   ================================================================= */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card h2 {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--carbon-black); margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2); border-bottom: 2px solid var(--impact-orange);
  display: inline-block;
}
.card h3 {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--carbon-black); margin: var(--sp-4) 0 var(--sp-2);
}
.eyebrow {
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--impact-orange); margin-bottom: var(--sp-1);
}
.muted { color: var(--fg-muted); font-size: 12.5px; }
.small { font-size: 12px; }
.lede { font-weight: 300; font-size: var(--fs-20); line-height: var(--lh-loose); color: var(--fg-muted); }
.serif-note { font-family: var(--font-serif); font-style: italic; }

/* Empty states */
.empty {
  padding: var(--sp-7) var(--sp-5);
  text-align: center; color: var(--fg-muted);
  border: 1px dashed var(--border); border-radius: var(--r-md);
  background: var(--hs-faded);
}
.empty .empty-t {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--carbon-black); margin-bottom: var(--sp-1);
}
.empty p { font-size: 13px; margin: 0 auto; max-width: 46ch; }
td.empty-cell { padding: 0 !important; background: var(--bg-raised) !important; }
td.empty-cell .empty { border: 0; border-radius: 0; background: var(--bg-raised); }

/* =================================================================
   8. CHIPS / PILLS — semantic status mapping
   ================================================================= */
.pill {
  display: inline-block; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.01em;
  padding: 2px 10px; white-space: nowrap;
  border: 1px solid transparent;
}
.pill.ns { background: transparent; border-color: var(--psi-stone-300); color: var(--fg-muted); }   /* Not Started */
.pill.ip { background: var(--wash-info);    border-color: var(--hs-lite);     color: var(--ink-info); }    /* In Process */
.pill.rb { background: var(--wash-danger);  border-color: var(--psi-danger);  color: var(--ink-danger); }  /* With Roadblocks */
.pill.cp { background: var(--wash-success); border-color: var(--psi-success); color: var(--ink-success); } /* Completed */
.pill.df { background: #EDEDF0;             border-color: var(--psi-stone-300); color: var(--psi-stone-500); } /* Deferred */

/* Flag chip — warning amber, never Impact Orange */
.flagchip {
  display: inline-block;
  background: var(--wash-warning);
  border: 1px solid var(--psi-warning);
  color: var(--ink-warning);
  border-radius: var(--r-sm);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 1px 6px; white-space: nowrap;
}
.decchip {
  display: inline-block; background: var(--carbon-black); border: 1px solid var(--carbon-black);
  color: #FFFFFF; border-radius: var(--r-sm);
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; padding: 1px 6px;
}
.typechip {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; border-radius: var(--r-xs); padding: 1px 5px;
}
.typechip.A { background: var(--hs-pastel);   color: var(--ink-info); }
.typechip.M { background: var(--wash-success); color: var(--ink-success); }

/* =================================================================
   9. EXECUTIVE — KPI tiles, gate banner, roadmap
   ================================================================= */
.kpi {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--carbon-black);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  cursor: pointer;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.kpi:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kpi .v {
  font-family: var(--font-display); font-size: 34px; font-weight: 600;
  letter-spacing: 0.01em; line-height: 1.05; color: var(--carbon-black);
}
.kpi .l { font-size: 12px; font-weight: 600; color: var(--fg); margin-top: 2px; }
.kpi .d { font-size: 11px; color: var(--fg-muted); margin-top: var(--sp-1); line-height: 1.4; }

.kpi.success, .kpi.teal { border-left-color: var(--psi-success); }
.kpi.success .v, .kpi.teal .v { color: var(--ink-success); }
.kpi.danger, .kpi.red, .kpi.terra { border-left-color: var(--psi-danger); }
.kpi.danger .v, .kpi.red .v, .kpi.terra .v { color: var(--ink-danger); }
.kpi.warn, .kpi.gold { border-left-color: var(--psi-warning); }
.kpi.warn .v, .kpi.gold .v { color: var(--ink-warning); }
.kpi.info { border-left-color: var(--psi-info); }
.kpi.info .v { color: var(--ink-info); }

.progress { height: 8px; background: var(--hs-pastel); border-radius: var(--r-pill); overflow: hidden; margin-top: var(--sp-2); }
.progress i { display: block; height: 100%; background: var(--psi-success); border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease-out); }

/* Gate ribbon */
.gate-banner {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--wash-warning);
  border: 1px solid var(--psi-warning);
  border-left: 4px solid var(--psi-warning);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
}
.gate-banner .diamond {
  flex: none; width: 26px; height: 26px; transform: rotate(45deg);
  background: var(--psi-warning); border-radius: var(--r-xs);
  margin: 6px var(--sp-2) 0 var(--sp-1);
}
.gate-banner b { color: var(--ink-warning); }
.gate-banner p { font-size: 12.5px; color: var(--psi-stone-700); }

/* Roadmap */
.roadmap { display: flex; overflow-x: auto; padding: var(--sp-1) 0 var(--sp-3); }
.rm-ph {
  flex: 1; min-width: 156px; position: relative;
  padding: var(--sp-3); border: 1px solid var(--border); border-left: 0;
  background: var(--bg-raised); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.rm-ph:first-child { border-left: 1px solid var(--border); border-radius: var(--r-md) 0 0 var(--r-md); }
.rm-ph:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.rm-ph:hover { background: var(--hs-faded); }
.rm-ph.current { background: var(--carbon-black); color: #FFFFFF; border-color: var(--carbon-black); }
.rm-ph.current:hover { background: var(--psi-navy-800); }
.rm-ph.current .muted, .rm-ph.current .rm-dates { color: var(--hs-lite); }
.rm-ph .rm-name { font-family: var(--font-display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.03em; line-height: 1.3; }
.rm-ph .rm-dates { font-size: 10.5px; color: var(--fg-muted); margin-top: 3px; }
.rm-ph .rm-bar { height: 5px; border-radius: var(--r-pill); background: var(--hs-pastel); margin-top: var(--sp-2); overflow: hidden; }
.rm-ph .rm-bar i { display: block; height: 100%; background: var(--carbon-black); }
.rm-ph.current .rm-bar { background: var(--psi-navy-500); }
.rm-ph.current .rm-bar i { background: var(--impact-orange); }   /* orange marks the current phase only */
.rm-gate { flex: none; width: 24px; display: flex; align-items: center; justify-content: center; position: relative; }
.rm-gate span {
  width: 13px; height: 13px; transform: rotate(45deg);
  background: var(--psi-warning); border: 2px solid var(--bg); z-index: 2;
}
.rm-gate.chk span { background: var(--psi-danger); }
.rm-gate::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }

/* Plain lists */
ul.plain { list-style: none; }
ul.plain li {
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--border-soft);
  font-size: 12.8px; display: flex; gap: var(--sp-2); align-items: baseline; flex-wrap: wrap;
}
ul.plain li:last-child { border-bottom: 0; }
ul.plain .when { font-size: 11px; color: var(--fg-muted); font-weight: 600; min-width: 74px; }
ul.plain .who { font-size: 11px; color: var(--fg-muted); margin-left: auto; white-space: nowrap; }
ul.plain li.golink { cursor: pointer; border-radius: var(--r-sm); transition: background var(--dur-fast) var(--ease-out); }
ul.plain li.golink:hover { background: var(--hs-faded); }
.ov { color: var(--psi-danger); font-weight: 700; }

/* =================================================================
   10. TOOLBAR / FILTERS
   ================================================================= */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.toolbar input[type=text], .toolbar select, .fld input, .fld select, .fld textarea, .lockcard input {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 7px var(--sp-2);
  font-size: 12.5px;
  background: var(--bg-raised); color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.toolbar select:hover, .fld input:hover, .fld select:hover { border-color: var(--harbor-steel); }
.toolbar input[type=text]:focus-visible, .toolbar select:focus-visible,
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible {
  outline: 2px solid var(--impact-orange); outline-offset: 2px; border-color: var(--harbor-steel);
}

.search-wrap { position: relative; display: inline-flex; align-items: center; }
.search-wrap svg { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--fg-subtle); pointer-events: none; }
.search-wrap input[type=text] { padding-left: 30px; min-width: 232px; }

.filter-state { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 var(--sp-2); font-size: 11.5px; }
.filter-state .fs-label { font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); }
.fchip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--hs-pastel); border: 1px solid var(--hs-lite); color: var(--ink-info);
  border-radius: var(--r-pill); padding: 2px 9px; font-size: 11px; font-weight: 500;
}
.fchip b { font-weight: 600; }
.count-note { font-size: 11.5px; color: var(--fg-muted); margin: var(--sp-2) 2px; }
.legend-rows { font-size: 11.5px; color: var(--fg-muted); margin: var(--sp-2) 2px 0; display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.legend-rows .sw { border: 1px solid var(--border); }

/* =================================================================
   11. TABLES — hairline borders, sticky header, own scroll container
   ================================================================= */
/* The wrapper owns both scroll axes, so the page never scrolls sideways and
   the sticky header row has a scrollport to stick to. */
.tbl-wrap {
  overflow: auto;
  overscroll-behavior: contain;
  max-height: calc(100vh - var(--chrome-h) - var(--tabs-h) - 130px);
  min-height: 200px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  max-width: 100%;
}
table.tl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.3px; }
table.tl th {
  background: var(--carbon-black); color: #FFFFFF;
  text-align: left; padding: 10px var(--sp-2);
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 20;
}
table.tl th.sortable { cursor: pointer; }
table.tl th.sortable:hover { background: var(--psi-navy-600); }
table.tl td { padding: var(--sp-2); border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.tl tr:last-child td { border-bottom: 0; }
table.tl tbody tr:hover td { background: var(--hs-faded); }
table.tl tr.mat td { background: #F2F8F4; }
table.tl tr.mat:hover td { background: #E9F3ED; }
table.tl .actname { font-weight: 600; color: var(--fg); }
table.tl .desc { color: var(--fg-muted); font-size: 11.8px; margin-top: 2px; }
table.tl td.num { text-align: right; }

/* Phase group rows */
tr.ph-row td {
  background: var(--hs-pastel); color: var(--carbon-black);
  font-family: var(--font-display); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer; border-top: 2px solid var(--carbon-black);
  padding: 10px var(--sp-2);
  position: sticky; top: 33px; z-index: 10;
}
tr.ph-row:hover td { background: var(--hs-lite); }
tr.ph-row .ph-gate { font-family: var(--font-body); font-weight: 400; color: var(--fg-muted); font-size: 11px; letter-spacing: 0; }
tr.ph-row .arrow { display: inline-block; width: 14px; color: var(--fg-muted); }

.pctbar { width: 60px; height: 6px; background: var(--hs-pastel); border-radius: var(--r-pill); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 5px; }
.pctbar i { display: block; height: 100%; background: var(--carbon-black); }

.rowbtn {
  border: 1px solid var(--border); background: var(--bg-raised);
  border-radius: var(--r-sm); padding: 2px 8px; font-size: 11px; margin: 1px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.rowbtn:hover { background: var(--carbon-black); color: #FFFFFF; border-color: var(--carbon-black); }
.rowbtn.del:hover { background: var(--psi-danger); border-color: var(--psi-danger); color: #FFFFFF; }
.meta-line { font-size: 10.8px; color: var(--fg-subtle); margin-top: 3px; }
.mvsel {
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 10.5px; padding: 2px; max-width: 96px;
  background: var(--bg-raised); color: var(--fg);
}
.tl-flash { animation: flashrow 2.6s var(--ease-out); }
@keyframes flashrow { 0%,65% { background: var(--wash-warning); } 100% { background: transparent; } }
.dt-table td { cursor: pointer; }

/* KPI / stakeholder tables */
.kpi-tblwrap { overflow-x: auto; margin: var(--sp-2) 0; border: 1px solid var(--border); border-radius: var(--r-md); }
table.kpit { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 12px; }
table.kpit th {
  background: var(--midnight-slate); color: #FFFFFF; padding: 8px var(--sp-2); text-align: left;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
}
table.kpit td { border-bottom: 1px solid var(--border-soft); padding: 7px var(--sp-2); vertical-align: top; }
table.kpit tr:last-child td { border-bottom: 0; }
table.kpit tbody tr:hover td, table.kpit tr:hover td { background: var(--hs-faded); }

/* =================================================================
   12. MODALS
   ================================================================= */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(28, 42, 54, 0.80);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 100; padding: var(--sp-6) var(--sp-3); overflow: auto;
}
.modal-bg.open { display: flex; animation: fadeIn var(--dur-base) var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-raised); border-radius: var(--r-md);
  max-width: 760px; width: 100%; padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  animation: modalIn var(--dur-base) var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal h2 {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--carbon-black); margin-bottom: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-2);
}
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); }
.fgrid .full { grid-column: 1 / -1; }
.fld label {
  display: block; font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  color: var(--fg-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.12em;
}
.fld input, .fld select, .fld textarea { width: 100%; font-size: 13px; padding: 8px var(--sp-2); }
.fld textarea { min-height: 64px; resize: vertical; }
.fld input[disabled] { background: var(--hs-faded); color: var(--fg-muted); }
.modal .m-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-5); }
.err { color: var(--psi-danger); font-size: 12px; min-height: 16px; font-weight: 600; }

/* =================================================================
   13. GANTT
   ================================================================= */
.gantt-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-3) var(--sp-1); overflow: hidden;
}
.gantt-scroll { overflow-x: auto; overflow-y: hidden; }
.gantt-scroll svg { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); font-size: 11.5px; color: var(--fg-muted); margin: var(--sp-2) var(--sp-1) var(--sp-1); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 12px; height: 12px; border-radius: var(--r-xs); display: inline-block; }
.sw.dm { transform: rotate(45deg); border-radius: 1px; }
.gtt-row-label { font-size: 11.6px; }

/* =================================================================
   14. CHANGE MANAGEMENT
   ================================================================= */
.cm-exec {
  background: var(--carbon-black); color: #FFFFFF;
  border-radius: var(--r-md); border-left: 4px solid var(--impact-orange);
  padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-5);
}
.cm-exec h2 {
  color: #FFFFFF; font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--sp-2);
}
.cm-exec p { font-size: 13px; color: #C9D3DC; margin-bottom: var(--sp-2); }
.cm-exec p i { font-family: var(--font-serif); font-style: italic; color: var(--hs-lite); }
.cm-exec .eyebrow { color: var(--impact-orange); }
.cm-exec .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: var(--sp-3); }
.cm-exec .tags span {
  background: rgba(255,255,255,.08); border: 1px solid var(--psi-navy-500);
  border-radius: var(--r-pill); padding: 3px 11px; font-size: 11.5px; color: #DCE5EE;
}

.acc {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-raised); margin-bottom: var(--sp-2); overflow: hidden;
}
.acc-h {
  width: 100%; text-align: left; padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
  transition: background var(--dur-fast) var(--ease-out);
}
.acc-h:hover { background: var(--hs-faded); }
.acc-h .t {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--carbon-black); flex: 1;
}
.acc-h .s { font-size: 11.5px; color: var(--fg-muted); flex: 2; }
.acc-h .chev { color: var(--fg-subtle); transition: transform var(--dur-fast) var(--ease-out); display: inline-flex; }
.acc.open .chev { transform: rotate(90deg); }
.acc-b { display: none; padding: var(--sp-1) var(--sp-5) var(--sp-4); border-top: 1px solid var(--border-soft); }
.acc.open .acc-b { display: block; }
.acc-b .narr { font-size: 13.5px; line-height: 1.65; color: var(--fg); white-space: pre-wrap; }
.acc-b .narr h4 { font-family: var(--font-display); font-size: 13px; color: var(--carbon-black); margin: var(--sp-3) 0 var(--sp-1); }
.acc-b .narr[contenteditable=true] {
  outline: 2px solid var(--impact-orange); outline-offset: 2px;
  border-radius: var(--r-sm); padding: var(--sp-2); background: var(--hs-faded);
}
.acc-tools { display: flex; gap: 7px; justify-content: flex-end; align-items: center; margin: var(--sp-3) 0 2px; }

/* =================================================================
   15. HANDOVER
   ================================================================= */
.ho-hero {
  background: var(--carbon-black); color: #FFFFFF;
  border-radius: var(--r-md); border-left: 4px solid var(--impact-orange);
  padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-5);
}
.ho-hero h2 {
  color: #FFFFFF; font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ho-hero .eyebrow { color: var(--impact-orange); }
.ho-hero p { font-size: 12.8px; color: #C9D3DC; margin-top: 6px; }

.chk { list-style: none; }
.chk li { display: flex; gap: var(--sp-2); align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 12.8px; }
.chk li:last-child { border: 0; }
.chk input { margin-top: 3px; accent-color: var(--carbon-black); width: 15px; height: 15px; }
.chk li.done label { text-decoration: line-through; color: var(--fg-subtle); }
.chk label { cursor: pointer; }
.qlist { list-style: none; counter-reset: q; }
.qlist li { padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 12.8px; }
.qlist li:last-child { border: 0; }
.qlist li::before { counter-increment: q; content: counter(q) '. '; font-family: var(--font-display); font-weight: 600; color: var(--impact-orange); }

/* =================================================================
   16. LOCK SCREEN
   ================================================================= */
.lockcard { max-width: 480px; margin: var(--sp-8) auto; text-align: center; padding: var(--sp-7) var(--sp-6); }
.lockcard:hover { transform: none; box-shadow: none; }
.lockcard h2 { display: block; border-bottom: 0; padding-bottom: 0; }
.lockcard .lock-ico {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--wash-warning); color: var(--impact-orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-3); border: 1px solid var(--impact-orange);
}
.lockcard .lock-ico svg { width: 24px; height: 24px; }
.lockcard input { width: 100%; padding: 10px var(--sp-3); font-size: 14px; margin: var(--sp-3) 0 var(--sp-2); text-align: center; }
.lockcard .btn { min-width: 140px; justify-content: center; }

/* =================================================================
   17. NOTICES / FOOTER / TOAST
   ================================================================= */
.notice {
  border: 1px solid var(--border); border-left: 4px solid var(--carbon-black);
  background: var(--bg-raised); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); font-size: 12.3px; color: var(--fg-muted);
  margin-bottom: var(--sp-4);
}
.notice b { color: var(--fg); }
.notice.gold, .notice.warn { border-left-color: var(--psi-warning); background: var(--wash-warning); color: var(--psi-stone-700); }
.notice.gold b, .notice.warn b { color: var(--ink-warning); }
.notice.red, .notice.danger { border-left-color: var(--psi-danger); background: var(--wash-danger); color: var(--ink-danger); }
.notice.red b, .notice.danger b { color: var(--ink-danger); }
.notice.teal, .notice.success { border-left-color: var(--psi-success); }

footer.app { border-top: 1px solid var(--border); background: var(--bg-raised); padding: var(--sp-5) 0; font-size: 11.5px; color: var(--fg-muted); }
footer.app .inner { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--container-px); }
footer.app b { color: var(--fg); }
/* Build credit — one discreet line under the technical note. It never
   competes with the CONFIDENTIAL marking above it. */
footer.app .inner.credit { margin-top: var(--sp-3); font-size: 10.5px; }
footer.app .inner.credit a {
  color: var(--fg-subtle); text-decoration: none; letter-spacing: .02em;
  border-bottom: 1px solid transparent;
}
footer.app .inner.credit a:hover { color: var(--fg-muted); border-bottom-color: var(--border); }

.toast {
  position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--carbon-black); color: #FFFFFF;
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-5);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--impact-orange); color: var(--carbon-black);
  padding: var(--sp-2) var(--sp-4); border: 0; font-weight: 600;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-2); }

/* =================================================================
   17b. MVP ACCEPTANCE — module cards, drill-down panel, reference
   collapsibles. Everything else on this tab reuses the existing
   card / pill / kpi / table / modal vocabulary unchanged.
   ================================================================= */
.mvp-card { padding: var(--sp-4); margin-bottom: 0; cursor: pointer; }
.mvp-card:focus-visible { outline: 2px solid var(--impact-orange); outline-offset: 2px; }
.mvp-card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.mvp-num {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted);
}
.mvp-card-t { font-weight: 600; font-size: 13.5px; color: var(--fg); margin-top: var(--sp-2); line-height: 1.35; }
.mvp-card-m { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); color: var(--fg-muted); margin-top: 6px; }
.mvp-bad { color: var(--ink-danger); font-weight: 600; }

.mvp-modal { max-width: 1040px; }
.mvp-modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.mvp-modal .tbl-wrap { max-height: 46vh; min-height: 0; }
.mvp-reqs { margin: 0 0 var(--sp-2) 1.2em; }
.mvp-reqs li { padding: 3px 0; }

/* Criterion wording amendments (administrators, rule R5). The trail is shown
   to everyone — the amber chip is the same warning amber the flag chips use,
   never Impact Orange — and only an administrator is given the editor. */
.ca-amend { margin-top: 5px; }
.ca-amend > summary { cursor: pointer; font-size: 11px; color: var(--fg-muted); display: flex; align-items: center; gap: 5px; }
.ca-amend > summary::marker { color: var(--psi-warning); }
.ca-amend .ca-orig {
  border-left: 2px solid var(--psi-warning); background: var(--wash-warning);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 5px var(--sp-2); margin-top: 5px; color: var(--fg);
}
.ca-tools { margin-top: 5px; }
textarea.ca-edit {
  width: 100%; min-height: 76px; resize: vertical;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 6px var(--sp-2); font-size: 12px; line-height: 1.45;
  background: var(--bg-raised); color: var(--fg);
}
textarea.ca-edit:focus-visible { outline: 2px solid var(--impact-orange); outline-offset: 2px; }

.mvp-det > summary { cursor: pointer; font-size: 13px; padding: 2px 0; }
.mvp-det > summary::marker { color: var(--impact-orange); }
.mvp-wl { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--sp-2); }

/* =================================================================
   17c. SPECIFICATIONS — the downloadable requirements package
   ================================================================= */
.spec-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.spec-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  border: 1px solid var(--border); border-left: 3px solid var(--midnight-slate);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); background: var(--bg-raised);
}
.spec-name { font-weight: 600; font-size: 13.5px; color: var(--fg); }
.spec-item .btn { white-space: nowrap; }
.spec-item .btn svg { margin-right: 5px; vertical-align: -2px; }

/* =================================================================
   17d. USERS — accounts, roles, area grants, access matrix
   ================================================================= */
.rolechip {
  display: inline-block; font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px;
  border: 1px solid var(--border); color: var(--fg-muted); background: var(--bg-raised);
}
.rolechip.superadmin { border-color: var(--carbon-black); color: #FFFFFF; background: var(--carbon-black); }
.rolechip.admin  { border-color: var(--midnight-slate); color: var(--carbon-black); background: var(--hs-pastel); }
.rolechip.editor { border-color: var(--psi-info); color: var(--ink-info); background: var(--wash-info); }
.rolechip.viewer { border-color: var(--border); color: var(--fg-muted); }
.rolechip.vendor { border-color: var(--impact-orange); color: var(--ink-warning); background: var(--wash-warning); }

/* An account with nothing granted gets the explanation card and no tab bar. */
body.no-areas nav.tabs { display: none; }

.area-head { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-2); flex-wrap: wrap; }
.area-head b { font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.area-grid { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.area-grid.disabled { opacity: .5; }
.area-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 7px var(--sp-3); border-bottom: 1px solid var(--border-soft); font-size: 12.6px;
}
.area-row:last-child { border-bottom: 0; }
.area-row:nth-child(odd) { background: var(--hs-faded); }
.area-name { font-weight: 500; color: var(--fg); }
.area-opts { display: flex; gap: var(--sp-4); white-space: nowrap; }
.area-opt { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-muted); cursor: pointer; }
.area-opt input { accent-color: var(--carbon-black); }
.chkline { display: inline-flex; align-items: center; gap: 7px; font-size: 12.6px; color: var(--fg); text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--font-body); }
.chkline input { accent-color: var(--carbon-black); width: 15px; height: 15px; }

table.tl.matrix th { font-size: 10px; letter-spacing: .06em; }
table.tl.matrix td.mx { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
table.tl.matrix td.mx.none { color: var(--fg-subtle); }
table.tl.matrix td.mx.view { color: var(--ink-info); background: var(--wash-info); }
table.tl.matrix td.mx.edit { color: var(--ink-success); background: var(--wash-success); font-weight: 600; }
table.tl.matrix tbody tr { cursor: pointer; }

/* =================================================================
   18. RESPONSIVE (usable from 768px up)
   ================================================================= */
@media (max-width: 1180px) {
  .hd-title .sub { display: none; }
  .hd-actions .meta { display: none; }
}
@media (max-width: 900px) {
  :root { --chrome-h: 108px; }
  .appbar { height: auto; min-height: 86px; flex-wrap: wrap; padding-top: var(--sp-2); padding-bottom: var(--sp-2); gap: var(--sp-2) var(--sp-3); }
  .brand img { height: 36px; }
  .brand-rule { display: none; }
  .hd-title { flex: 1 1 100%; order: 3; }
  .hd-title h1 { font-size: 13px; white-space: normal; }
  .hd-actions { margin-left: auto; }
}
@media (max-width: 720px) {
  :root { --chrome-h: 120px; }
  .fgrid { grid-template-columns: 1fr; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .card { padding: var(--sp-4); }
  .search-wrap input[type=text] { min-width: 0; width: 100%; }
  .search-wrap { flex: 1 1 100%; }
  .cm-exec, .ho-hero { padding: var(--sp-4); }
}

/* =================================================================
   18b. CHANGE MANAGEMENT TASKS — PSI-internal coordination tracker.
   Same status semantics as the rollout table; visually quieter, so it
   never reads as phase progress.
   ================================================================= */
.ct-strip { border-left: 3px solid var(--harbor-steel); }
.ct-strip h2 { display: inline-block; }
.ct-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ct-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 4px 10px 4px 6px; border: 1px solid var(--border); background: var(--hs-faded);
  cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.ct-chip:hover { border-color: var(--harbor-steel); background: var(--hs-pastel); }
.ct-chip b { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--fg); }
.ct-notes { margin-top: 4px; }
.ct-note {
  display: flex; gap: var(--sp-2); align-items: baseline;
  font-size: 11.8px; line-height: 1.5; color: var(--fg); margin-top: 3px;
  border-left: 2px solid var(--hs-lite); padding-left: 8px;
}
.ct-week {
  flex: none; font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); min-width: 92px;
}
.ct-notes .rowbtn { margin-top: 4px; }

/* =================================================================
   19. PRINT — clean, light, CONFIDENTIAL header/footer, no chrome
   ================================================================= */
@media print {
  @page { margin: 14mm 12mm 16mm; }
  body { background: #FFFFFF; padding-top: 0; font-size: 10.5pt; }
  .app-chrome { position: static; background: #FFFFFF !important; box-shadow: none; backdrop-filter: none; }
  .conf-strip {
    background: #FFFFFF; color: #1C2A36; border-bottom: 1.5pt solid #1C2A36;
    height: auto; padding: 0 0 4pt; justify-content: flex-start;
  }
  .appbar { padding: 6pt 0; height: auto; }
  .hd-title h1 { color: #1C2A36; }
  .hd-title .sub { display: block; color: #555; }
  .brand img { content: url("../assets/psi-logo-primary.svg"); }

  nav.tabs, .hd-actions, .toolbar, .rowbtn, .mvsel, .acc-tools, .gantt-controls,
  .hdr-menu-wrap, .hdr-menu, .toast, .modal-bg, .skip-link, .filter-state,
  .dt-close, #btnLogCsv, .legend-rows { display: none !important; }

  section.view { display: block !important; page-break-after: always; }
  section.view:last-of-type { page-break-after: auto; }
  .card, .tbl-wrap, .kpi, .gantt-card, .acc, .kpi-tblwrap { border-color: #999; box-shadow: none !important; transform: none !important; break-inside: avoid; }
  .card:hover, .kpi:hover { box-shadow: none; transform: none; }
  .cm-exec, .ho-hero { background: #FFFFFF !important; color: #1C2A36 !important; border: 1pt solid #999; border-left: 3pt solid #1C2A36; }
  .cm-exec h2, .ho-hero h2 { color: #1C2A36 !important; }
  .cm-exec p, .ho-hero p { color: #333 !important; }
  .cm-exec .tags span { color: #333; border-color: #999; background: none; }
  .rm-ph.current { background: #FFFFFF !important; color: #1C2A36 !important; border: 1.5pt solid #1C2A36; }
  .rm-ph.current .rm-dates { color: #555; }
  table.tl th, table.kpit th { background: #FFFFFF !important; color: #1C2A36 !important; border-bottom: 1.5pt solid #1C2A36; position: static; }
  table.tl tr.mat td, tr.ph-row td { background: #F2F2F2 !important; position: static; }
  .acc-b { display: block !important; }
  .tbl-wrap, .kpi-tblwrap, .gantt-scroll { overflow: visible !important; max-height: none !important; min-height: 0 !important; }
  .flagchip, .pill, .typechip, .decchip { border: 0.75pt solid #666 !important; background: none !important; color: #1C2A36 !important; }
  a { color: #1C2A36; border-bottom: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* running confidential footer */
  footer.app::before {
    content: "CONFIDENTIAL — For PSI leadership, the Data Committee, and the PMT implementation team";
    display: block; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    font-size: 8pt; color: #1C2A36; border-top: 1pt solid #1C2A36; padding-top: 4pt; margin-bottom: 6pt;
  }
  /* Build credit — printed, but quietly, well under the CONFIDENTIAL line. */
  footer.app .inner.credit { margin-top: 4pt; font-size: 7pt; }
  footer.app .inner.credit a { color: #707070; border-bottom: 0; }
  .spec-item { break-inside: avoid; border-color: #999; }
  .spec-item .btn { display: none !important; }
  .area-grid, table.tl.matrix { border-color: #999; }
  table.tl.matrix td.mx { background: none !important; color: #1C2A36 !important; }
}
