  :root {
    --green-dark: #1a4731;
    --green-mid: #2d6a4f;
    --green-bright: #3a9c6b;
    --green-light: #e8f5ed;
    --green-accent: #52c17c;
    --orange: #e8772a;
    --orange-light: #fdf0e6;
    --cream: #f9f7f2;
    --ink: #1a1a18;
    --ink-mid: #3d3d38;
    --ink-light: #6b6b64;
    --ink-faint: #a8a89e;
    --border: #e2e0d8;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(26,71,49,0.08);
    --shadow-md: 0 4px 16px rgba(26,71,49,0.12);
    --shadow-lg: 0 12px 40px rgba(26,71,49,0.16);
    --radius: 10px;
    --radius-lg: 16px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
  }

  /* ── HEADER ── */
  header {
    background: var(--green-dark);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
    background: var(--green-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--green-dark);
    font-weight: 400;
  }
  .header-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
  }
  .header-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  /* Host wraps pill + menu so the menu is not clipped by pill overflow (ellipsis). */
  .project-pill-host {
    position: relative;
    flex-shrink: 0;
    max-width: min(280px, 42vw);
  }
  #project-dropdown {
    max-height: min(85vh, 480px);
    display: none;
    flex-direction: column;
    overflow: hidden;
  }
  #project-dropdown.project-dropdown-open {
    display: flex;
  }
  .project-dropdown-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(52vh, 320px);
    overflow-y: auto;
    padding: 4px 0 10px;
  }
  .project-dropdown-create-row {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dark);
    cursor: pointer;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
  }
  .project-dropdown-create-row:hover { background: var(--green-light); }
  .project-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .project-pill:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
  .project-pill .header-project-name { color: var(--green-accent); font-weight: 600; }
  .header-user-menu { position: relative; flex-shrink: 0; }
  .header-user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 12px 6px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
  }
  .header-user-menu-trigger:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
  }
  .header-user-menu-trigger .header-user-chevron {
    font-size: 10px;
    opacity: 0.75;
  }
  .header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 232px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 220;
    padding: 6px 0;
  }
  .header-user-dropdown .header-user-role {
    padding: 8px 16px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  .header-user-dropdown .header-user-role:empty {
    display: none;
    padding: 0;
    margin: 0;
    border: none;
  }
  .header-user-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ink-mid);
    text-decoration: none;
    font-family: inherit;
  }
  .header-user-dropdown .header-user-link-btn {
    width: 100%;
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ink-mid);
    text-decoration: none;
    font-family: inherit;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  .header-user-dropdown .header-user-link-btn:hover {
    background: var(--green-light);
    color: var(--green-dark);
  }
  .header-user-dropdown a:hover { background: var(--green-light); color: var(--green-dark); }
  .header-user-dropdown .header-user-signout {
    width: calc(100% - 16px);
    margin: 6px 8px 4px;
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink-mid);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
  }
  .header-user-dropdown .header-user-signout:hover {
    border-color: var(--green-mid);
    color: var(--green-dark);
  }

  /* ── LAYOUT ── */
  .app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 60px);
  }

  /* ── SIDEBAR ── */
  .sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .sidebar-section {
    padding: 0 16px;
    margin-bottom: 8px;
  }
  .sidebar-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 0 8px;
    margin-bottom: 6px;
  }
  .nav-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13.5px;
    color: var(--ink-mid);
    font-weight: 400;
  }
  .nav-item:hover { background: var(--green-light); color: var(--green-mid); }
  .nav-item.active { background: var(--green-light); color: var(--green-dark); font-weight: 500; }
  /* Dot = completion (not strikethrough on labels — every step stays readable). */
  .nav-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    margin-top: 3px;
    box-sizing: border-box;
    position: relative;
  }
  .nav-dot.progress { background: var(--orange); }
  .nav-dot.done {
    background: var(--green-bright);
  }
  .nav-dot.done::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 3px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
  }
  .phase-header {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 16px 18px 6px;
  }
  .sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 16px;
  }

  /* ── MAIN ── */
  main {
    padding: 32px 40px;
  max-width: 1120px;
  }

  /* ── SECTION VIEWS ── */
.view { display: none; }
.view.active { display: block; position: relative; padding-bottom: 58px; }

  /* Welcome + project hub: focus layout, hide playbook sidebar */
  body.hub-screen .app-layout {
    grid-template-columns: 1fr;
  }
  body.hub-screen .sidebar,
  body.hub-screen .hamburger-btn {
    display: none !important;
  }
  /* Project switcher + “New project” in dropdown — redundant with hub CTAs */
  body.hub-screen .project-pill-host {
    display: none !important;
  }
  /* Keep project switcher visible on Projects dashboard for quick switching. */
  body.hub-screen.projects-hub-layout .project-pill-host {
    display: block !important;
  }
  body.hub-screen main {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 24px 48px;
  }
  body.hub-screen.projects-hub-layout main {
    max-width: min(1320px, calc(100vw - 32px));
    width: 100%;
  }
  #view-projects.active {
    width: 100%;
    max-width: 100%;
  }
  @media (max-width: 768px) {
    body.hub-screen main { padding: 24px 18px 40px; }
  }

  /* ── Project hub (returning users) ── */
  .projects-hub-hero {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 28px;
  }
  .projects-hub-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .projects-hub-hero p {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.65;
    margin-bottom: 24px;
  }
  .projects-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
  }
  .projects-hub-filters {
    margin: 0 auto 22px;
    width: 100%;
    max-width: 900px;
  }
  .projects-hub-search {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: var(--white);
    margin-bottom: 14px;
  }
  .projects-hub-search:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(58, 156, 107, 0.15);
  }
  .projects-hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }
  .projects-hub-chip {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--cream);
    color: var(--ink-mid);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .projects-hub-chip:hover {
    border-color: var(--green-mid);
    color: var(--green-dark);
  }
  .projects-hub-chip.active {
    background: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
  }
  .projects-hub-no-match {
    display: none;
    text-align: center;
    padding: 28px 16px;
    color: var(--ink-faint);
    font-size: 14px;
    line-height: 1.55;
  }
  .projects-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    width: 100%;
  }
  @media (min-width: 640px) {
    .projects-hub-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (min-width: 1100px) {
    .projects-hub-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  }
  .project-card:hover {
    border-color: var(--green-bright);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  .project-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .project-card-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.35;
    margin: 0;
  }
  .project-card-delete {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-faint);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-card-delete:hover {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
  }
  .project-card-context {
    font-size: 12px;
    color: var(--ink-faint);
    line-height: 1.4;
    margin: 0 0 12px;
  }
  .project-card-golive {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mid);
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .project-card-golive.urgent {
    color: #9f1239;
  }
  .project-card-golive.warning {
    color: #a16207;
  }
  .project-card-golive.calm {
    color: #166534;
  }
  .project-card-golive.muted {
    color: var(--ink-faint);
    font-weight: 400;
    font-style: italic;
  }
  .project-card-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .project-card-progress-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-mid);
    white-space: nowrap;
  }
  .project-card-progress {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    min-width: 0;
  }
  .project-card-progress-bar {
    height: 100%;
    background: var(--green-bright);
    border-radius: 4px;
    transition: width 0.25s ease;
  }
  .project-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: auto;
    margin-bottom: 12px;
  }
  .project-card-phase-line {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--green-mid);
  }
  .project-card-effort {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-mid);
    background: var(--cream);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
  }
  .project-card-health {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
  }
  .project-card-health.ok {
    color: #166534;
    background: #e8f5ed;
    border-color: #b7e2c6;
  }
  .project-card-health.stale {
    color: #92400e;
    background: #fff7e6;
    border-color: #f3d4a6;
  }
  .project-card-health.risk {
    color: #9f1239;
    background: #ffe7ef;
    border-color: #f8bfd2;
  }
  .project-card.project-card-warn {
    border-color: rgba(180, 130, 40, 0.35);
  }
  .project-card-cta-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 16px;
  }
  .project-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .project-card-status-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 12px;
  }

  .welcome-sample-link {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    margin-top: 20px;
  }
  .welcome-sample-link:hover { color: var(--green-mid); }

  /* New project modal */
  #new-project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 26, 24, 0.45);
  }
  #new-project-modal.open {
    display: flex;
  }
  #new-project-modal .npm-dialog {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 28px 28px 24px;
    position: relative;
    max-height: min(90vh, 640px);
    overflow-y: auto;
  }
  #new-project-modal .npm-dialog h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: 0 32px 8px 0;
    line-height: 1.2;
  }
  #new-project-modal .npm-sub {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.55;
    margin: 0 0 20px;
  }
  #new-project-modal .npm-dialog .form-group { margin-bottom: 16px; }
  #new-project-modal .npm-dialog label:not(.npm-check) {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mid);
    margin-bottom: 6px;
  }
  #new-project-modal .npm-dialog input[type="text"],
  #new-project-modal .npm-dialog input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
  }
  #new-project-modal .npm-dialog input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  #new-project-modal .npm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--ink-mid);
    cursor: pointer;
    font-weight: 400;
  }
  #new-project-modal .npm-check input { width: auto; margin: 0; }
  #new-project-modal .npm-error {
    color: #b91c1c;
    font-size: 13px;
    margin: -4px 0 14px;
    display: none;
  }
  #new-project-modal .npm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    flex-wrap: wrap;
  }
  /* Delete project confirmation */
  #delete-project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 26, 24, 0.45);
  }
  #delete-project-modal.open {
    display: flex;
  }
  #delete-project-modal .dpm-dialog {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 24px 24px 20px;
    position: relative;
  }
  #delete-project-modal .dpm-dialog h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.25;
  }
  #delete-project-modal .dpm-body {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.55;
    margin: 0 0 8px;
  }
  #delete-project-modal .dpm-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 20px;
    line-height: 1.4;
  }
  #delete-project-modal .dpm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  #new-project-modal .npm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ink-faint);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    font-family: inherit;
  }
  #new-project-modal .npm-close:hover { color: var(--ink-mid); }

  /* Guided intake — minimal single card */
  #intake-guide-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 26, 24, 0.35);
    backdrop-filter: blur(2px);
  }
  #intake-guide-modal.open { display: flex; }
  #intake-guide-modal .igm-dialog {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.8) inset;
    width: 100%;
    max-width: 420px;
    max-height: min(88vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  #intake-guide-modal .igm-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ink-faint);
    cursor: pointer;
    line-height: 1;
    padding: 6px;
    z-index: 2;
    opacity: 0.7;
  }
  #intake-guide-modal .igm-close:hover { opacity: 1; color: var(--ink-mid); }
  #intake-guide-modal .igm-inner {
    padding: 28px 24px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }
  #intake-guide-modal .igm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
  }
  #intake-guide-modal .igm-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  #intake-guide-modal .igm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s;
  }
  #intake-guide-modal .igm-dot.done { background: var(--green-bright); }
  #intake-guide-modal .igm-dot.active {
    background: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(26, 71, 49, 0.15);
  }
  #intake-guide-modal .igm-meta {
    font-size: 12px;
    color: var(--ink-faint);
    margin: 0 0 16px;
    line-height: 1.4;
  }
  #intake-guide-modal .igm-inner h2 {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  #intake-guide-modal .igm-step { display: none; }
  #intake-guide-modal .igm-step.active { display: block; }
  #intake-guide-modal .form-group { margin-bottom: 12px; }
  #intake-guide-modal .form-group:last-child { margin-bottom: 0; }
  #intake-guide-modal textarea,
  #intake-guide-modal input[type="text"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fafaf9;
  }
  #intake-guide-modal textarea:focus,
  #intake-guide-modal input[type="text"]:focus {
    outline: none;
    border-color: var(--green-mid);
    background: var(--white);
  }
  #intake-guide-modal textarea { min-height: 88px; resize: vertical; }
  #intake-guide-modal .igm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  #intake-guide-modal .igm-skip {
    font-size: 12px;
    color: var(--ink-faint);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
  }
  #intake-guide-modal .igm-skip:hover { color: var(--ink-light); }
  #intake-guide-modal .igm-wizard-wrap {
    display: none;
    margin-bottom: 4px;
  }
  #intake-guide-modal .igm-wiz-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  #intake-guide-modal .igm-wiz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s;
  }
  #intake-guide-modal .igm-wiz-dot.active { background: var(--green-bright); }
  #intake-guide-modal .igm-wiz-dot.done {
    background: var(--green-light);
    border: 1.5px solid var(--green-mid);
  }
  #intake-guide-modal .igm-wizard-result-panel {
    margin-top: 4px;
  }
  #intake-guide-modal .igm-wizard-result-panel #igm-wizard-result-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  #intake-guide-modal .igm-wizard-result-panel #igm-wizard-result-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    font-family: 'DM Serif Display', serif;
  }
  #intake-guide-modal .igm-wizard-result-panel #igm-wizard-result-desc {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.65;
    margin-bottom: 12px;
  }
  #intake-guide-modal .igm-wizard-result-panel #igm-wizard-result-score {
    font-size: 12px;
    color: var(--ink-faint);
    margin-bottom: 0;
  }
  body.intake-onboarding-active #main-sidebar,
  body.intake-onboarding-active .sidebar-overlay { display: none !important; }
  body.intake-onboarding-active .app-layout { grid-template-columns: 1fr !important; }
  body.intake-guide-modal-open #app-shell main {
    visibility: hidden;
    max-height: 0;
    min-height: 0 !important;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }
  body.signed-out-mode #intake-guide-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* ── PAGE HEADER ── */
  .page-header {
    margin-bottom: 28px;
  }
  .page-phase {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-bright);
    margin-bottom: 6px;
  }
  .page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    color: var(--ink);
    line-height: 1.2;
    font-weight: 400;
  }
  .page-desc {
    font-size: 14px;
    color: var(--ink-light);
    margin-top: 8px;
    max-width: 600px;
  }

  .dashboard-project-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(26px, 4vw, 34px);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 400;
    margin: 0 0 20px 0;
  }
  .dash-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
  }
  .dash-status-tile {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
  }
  .dash-status-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 6px;
  }
  .dash-status-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    word-wrap: break-word;
  }

  .dashboard-upcoming-sub {
    font-size: 13px;
    color: var(--ink-light);
    margin: -6px 0 14px 0;
    line-height: 1.45;
  }
  .dashboard-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .dashboard-upcoming-list li {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
  }
  .dashboard-upcoming-list li:first-child {
    border-top: none;
  }
  .dashboard-upcoming-list .btn.dashboard-upcoming-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 0;
  }

  /* ── CARDS ── */
  .card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
  }
  .card-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .card-title .badge {
    background: var(--green-light);
    color: var(--green-mid);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
  }
  .card-title .badge.orange {
    background: var(--orange-light);
    color: var(--orange);
  }

  /* ── FORM ELEMENTS ── */
  .form-group {
    margin-bottom: 16px;
  }
  label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-mid);
    margin-bottom: 6px;
  }
  label .hint {
    font-weight: 400;
    color: var(--ink-faint);
    font-style: italic;
  }
  input[type="text"], input[type="date"], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--green-bright);
    box-shadow: 0 0 0 3px rgba(58,156,107,0.12);
  }
  textarea { resize: vertical; min-height: 80px; }
  select { cursor: pointer; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

  /* ── BUTTONS ── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    outline: none;
  }
  .btn-primary {
    background: var(--green-dark);
    color: white;
  }
  .btn-primary:hover { background: var(--green-mid); }
  .btn-secondary {
    background: var(--white);
    color: var(--ink-mid);
    border: 1px solid var(--border);
  }
  .btn-secondary:hover { background: var(--cream); border-color: var(--ink-faint); }
  .btn-ghost {
    background: transparent;
    color: var(--green-mid);
    font-weight: 500;
    padding: 6px 0;
  }
  .btn-ghost:hover { color: var(--green-dark); }
  .btn-sm { padding: 6px 12px; font-size: 12.5px; }
  .btn-orange {
    background: var(--orange);
    color: white;
  }
  .btn-orange:hover { background: #cf6520; }

  /* ── AI OUTPUT ── */
  .ai-output {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-mid);
    min-height: 80px;
    white-space: pre-wrap;
    display: none;
  }
  .ai-output.visible { display: block; }
  .ai-output.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-faint);
  }
  .spinner {
    width: 16px; height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--green-bright);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .btn-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
  }

  /* ── STAKEHOLDER TABLE ── */
  .stakeholder-table {
    width: 100%;
  min-width: 980px;
    border-collapse: collapse;
    font-size: 13px;
  }
  .stakeholder-table th {
    background: var(--green-dark);
    color: white;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .stakeholder-table th:first-child { border-radius: 6px 0 0 0; }
  .stakeholder-table th:last-child { border-radius: 0 6px 0 0; }
  .stakeholder-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--ink-mid);
  }
  .stakeholder-table tr:last-child td { border-bottom: none; }
  .stakeholder-table tr:hover td { background: var(--green-light); }

  /* ── PROJECT FRAMING (edit/preview, milestones, roles) ── */
  .framing-controls-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }
  .framing-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .framing-setup-success-hint {
    font-size: 13px;
    color: var(--ink-light);
    margin: 0 0 10px;
    line-height: 1.5;
  }
  .framing-section-lede {
    font-size: 14px;
    color: var(--ink-mid);
    margin: -4px 0 14px;
    line-height: 1.5;
  }
  .framing-risks-table-label {
    font-size: 13px;
    color: var(--ink-light);
    margin: 0 0 10px;
    line-height: 1.5;
  }
  .framing-table-head-dark th {
    background: #1a5c38 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }
  .framing-comms-table textarea.framing-comms-desc {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-mid);
    background: var(--white);
  }
  .framing-preview-agreement {
    border-left: 3px solid #1a5c38;
    padding-left: 12px;
    margin-bottom: 16px;
  }
  .framing-preview-agreement-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-mid);
    margin-bottom: 4px;
  }
  .framing-preview-agreement-value {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
    white-space: pre-wrap;
  }
  .framing-risk-level-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-mid);
  }
  .framing-risk-level-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .framing-risk-level-dot.framing-risk-low { background: #16a34a; }
  .framing-risk-level-dot.framing-risk-medium { background: #d97706; }
  .framing-risk-level-dot.framing-risk-high { background: #dc2626; }
  .framing-mode-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
  }
  .framing-mode-btn {
    padding: 8px 16px;
    min-width: 86px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: var(--white);
    color: var(--ink-mid);
    cursor: pointer;
    font-family: inherit;
  }
  .framing-mode-btn:hover { background: var(--cream); }
  .framing-mode-btn.active {
    background: var(--green-dark);
    color: var(--white);
  }
  .framing-mode-btn:not(.active) {
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--border);
  }
  .section-export-btn {
    min-width: 108px;
    justify-content: center;
    font-weight: 600;
  }
  .framing-export-doc-btn { flex-shrink: 0; }
  .framing-label-ai-muted {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .framing-gen-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-bright);
    animation: framing-pulse 1s ease-in-out infinite;
  }
  @keyframes framing-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
  }
  .framing-generated-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--green-light);
    color: var(--green-dark);
  }
  .framing-preview-prose {
    border-left: 3px solid #1a5c38;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
  }
  .framing-preview-milestone {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--ink-mid);
  }
  .framing-preview-milestone .framing-ms-date { flex: 0 0 auto; font-weight: 600; color: var(--ink); }
  .framing-preview-milestone .framing-ms-dotline {
    flex: 1;
    border-bottom: 1px dotted var(--border);
    min-width: 12px;
    margin: 0 4px;
    height: 0;
    position: relative;
    top: -4px;
  }
  .framing-preview-milestone .framing-ms-label { flex: 0 0 auto; text-align: right; max-width: 55%; }
  .framing-ms-grid-head,
  .framing-milestone-row {
    display: grid;
    grid-template-columns: 160px 1fr 28px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
  }
  .framing-ms-grid-head {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-faint);
    margin-bottom: 6px;
  }
  .framing-part-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
  }
  .framing-preview-aspiration {
    font-size: 15px;
    line-height: 1.65;
    font-style: italic;
    color: var(--ink);
    white-space: pre-wrap;
    margin: 0 0 14px;
  }
  .framing-preview-stakes {
    font-size: 14px;
    font-style: italic;
    color: var(--ink-light);
    margin: 0 0 14px;
  }
  .framing-preview-vision {
    font-size: 16px;
    line-height: 1.6;
    border-left: 3px solid #1a5c38;
    padding: 10px 16px;
    margin-top: 14px;
    color: var(--ink);
    white-space: pre-wrap;
  }
  .framing-outcomes-note { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin-top: 10px; }
  .framing-outcomes-note a { color: var(--green-dark); font-weight: 600; }
  .framing-roles-ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--ink-mid); }
  .framing-roles-ul li { margin-bottom: 4px; }
  tr.framing-role-muted td { color: var(--ink-faint); }
  tr.framing-role-muted td input { color: var(--ink-faint); }
  tr.framing-role-muted.framing-role-filled td,
  tr.framing-role-muted.framing-role-filled td input { color: var(--ink-mid); }
  .framing-outcomes-table input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--ink-mid);
    padding: 6px 4px;
    box-sizing: border-box;
  }
  .link-like-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dark);
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
  }
  .link-like-btn:hover { color: var(--green-mid); }
  .impact-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .impact-H { background: #E05C2A; color: #fff; }
  .impact-M { background: #E8A020; color: #fff; }
  .impact-L { background: #2E8B47; color: #fff; }

  .impact-assessment-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
  .impact-assessment-table thead th {
    background: #1A4D27;
    color: #fff;
    font-size: 10px;
    font-family: Calibri, Arial, sans-serif;
    font-weight: 700;
    padding: 10px 8px;
    border: 1px solid #DCDCDC;
  }
  .impact-assessment-table tbody td {
    border: 1px solid #DCDCDC;
    padding: 6px;
    font-size: 13px;
    color: #1A1A1A;
    vertical-align: top;
  }
  .impact-assessment-table tbody tr:nth-child(odd) td { background: #fff; }
  .impact-assessment-table tbody tr:nth-child(even) td { background: #F8F9F8; }
  .impact-assessment-table .ia-col-group { width: 14%; }
  .impact-assessment-table .ia-col-change { width: 22%; }
  .impact-assessment-table .ia-col-impact { width: 8%; }
  .impact-assessment-table .ia-col-disruptions { width: 20%; }
  .impact-assessment-table .ia-col-ssc { width: 22%; }
  .impact-assessment-table .ia-col-training { width: 14%; }
  .impact-assessment-table .ia-col-remove { width: 40px; text-align: center; }
  .impact-assessment-table .impact-remove-col { text-align: center; vertical-align: middle; }
  .impact-cell-edit { width: 100%; }
  .impact-cell-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--ink-mid);
    background: var(--white);
    font-family: inherit;
  }
  .impact-cell-area {
    min-height: 68px;
    resize: vertical;
  }
  .impact-assessment-table .stakeholder-impact-select {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
  }
  .impact-assessment-table .stakeholder-impact-select.tone-empty {
    background: var(--cream);
    color: var(--ink-mid);
    border-color: var(--border);
  }
  .impact-assessment-table .stakeholder-impact-select.tone-high {
    background: #fde8e8;
    color: #b91c1c;
  }
  .impact-assessment-table .stakeholder-impact-select.tone-med {
    background: #fef3c7;
    color: #92400e;
  }
  .impact-assessment-table .stakeholder-impact-select.tone-low {
    background: #dcfce7;
    color: #166534;
  }
  .impact-cell-preview {
    font-size: 13px;
    color: #1A1A1A;
    line-height: 1.45;
    padding: 6px 4px;
    white-space: pre-wrap;
  }
  .impact-cell-preview-center { text-align: center; }
  .impact-cell-preview-long { line-height: 1.4; }
  #view-impacts.view-mode-preview .impact-edit-only,
  #view-impacts.view-mode-preview .impact-remove-col,
  #view-impacts.view-mode-preview #impact-add-row-btn {
    display: none !important;
  }
  #view-impacts.view-mode-preview .impact-assessment-table .impact-cell-edit {
    display: none !important;
  }
  #view-impacts.view-mode-edit .impact-assessment-table .impact-cell-preview {
    display: none !important;
  }
  .impact-empty-state {
    margin-top: 12px;
    border: 1px dashed #DCDCDC;
    border-radius: 10px;
    padding: 12px;
    background: #F8F9F8;
  }
  .impact-empty-state p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ink-mid);
  }

  .stakeholder-analysis-table { table-layout: fixed; width: 100%; }
  .stakeholder-analysis-table .sh-col-group { width: 16%; }
  .stakeholder-analysis-table .sh-col-persona { width: 20%; }
  .stakeholder-analysis-table .sh-col-impact { width: 10%; }
  .stakeholder-analysis-table .sh-col-gain { width: 18%; }
  .stakeholder-analysis-table .sh-col-lose { width: 18%; }
  .stakeholder-analysis-table .sh-col-engage { width: 14%; }
  .stakeholder-analysis-table .sh-col-remove { width: 4%; }
  .stakeholder-analysis-table .stakeholder-remove-col { width: 4%; text-align: center; }
  .stakeholder-analysis-table .stakeholder-cell-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--ink-mid);
    background: var(--white);
  }
  .stakeholder-analysis-table .stakeholder-impact-select {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
  }
  .stakeholder-analysis-table .stakeholder-impact-select.tone-empty {
    background: var(--cream);
    color: var(--ink-mid);
    border-color: var(--border);
  }
  .stakeholder-analysis-table .stakeholder-impact-select.tone-high {
    background: #fde8e8;
    color: #b91c1c;
  }
  .stakeholder-analysis-table .stakeholder-impact-select.tone-med {
    background: #fef3c7;
    color: #92400e;
  }
  .stakeholder-analysis-table .stakeholder-impact-select.tone-low {
    background: #dcfce7;
    color: #166534;
  }
  .stakeholder-analysis-table .stakeholder-cell-preview {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.45;
    padding: 6px 4px;
  }
  #view-stakeholders.view-mode-preview .stakeholder-edit-only,
  #view-stakeholders.view-mode-preview .stakeholder-remove-col,
  #view-stakeholders.view-mode-preview #stakeholder-add-row-btn {
    display: none !important;
  }
  #view-stakeholders.view-mode-preview .stakeholder-analysis-table .stakeholder-cell-input,
  #view-stakeholders.view-mode-preview .stakeholder-analysis-table .stakeholder-impact-select {
    display: none !important;
  }
  #view-stakeholders.view-mode-edit .stakeholder-analysis-table .stakeholder-cell-preview {
    display: none !important;
  }

  /* ── STATUS REPORT ── */
  .status-report-shell {
    padding: 18px 20px;
  }
  .status-report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }
  .status-report-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 4px;
  }
  .status-report-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--ink);
  }
  .status-report-meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--ink-faint);
  }
  .status-report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .status-overall-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    letter-spacing: 0.03em;
  }
  .status-overall-pill.red { background: #fde8e8; color: #b91c1c; border-color: #fecaca; }
  .status-overall-pill.amber { background: #fef3c7; color: #92400e; border-color: #fde68a; }
  .status-overall-pill.green { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
  .status-reports-embed-wrap {
    margin: -32px -40px;
  }
  .status-reports-embed {
    width: 100%;
    min-height: calc(100vh - 60px);
    border: none;
    border-radius: 0;
    background: var(--white);
  }
  .status-insights-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    margin-top: 12px;
  }
  .status-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .status-history-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--white);
  }
  .status-history-item.active {
    border-color: var(--green-mid);
    background: var(--green-light);
  }
  .status-history-meta {
    font-size: 12px;
    color: var(--ink-faint);
  }
  .status-history-empty {
    font-size: 13px;
    color: var(--ink-faint);
  }
  .status-trend-summary {
    font-size: 13px;
    color: var(--ink-mid);
    margin-bottom: 10px;
  }
  .status-rag-trend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .status-rag-chip {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid transparent;
  }
  .status-rag-chip.green { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
  .status-rag-chip.amber { background: #fef3c7; color: #92400e; border-color: #fde68a; }
  .status-rag-chip.red { background: #fde8e8; color: #b91c1c; border-color: #fecaca; }
  .status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .status-item { }
  .status-phase {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 6px;
  }
  .rag-select {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
  }
  .rag-btn {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
  }
  .rag-btn.red { background: #fde8e8; color: #b91c1c; }
  .rag-btn.amber { background: #fef3c7; color: #92400e; }
  .rag-btn.green { background: #dcfce7; color: #166534; }
  .rag-btn.selected.red { border-color: #b91c1c; }
  .rag-btn.selected.amber { border-color: #d97706; }
  .rag-btn.selected.green { border-color: #16a34a; }
  @media (max-width: 900px) {
    .status-reports-embed-wrap { margin: -20px -16px -80px; }
    .status-report-head { flex-direction: column; }
    .status-report-actions { justify-content: flex-start; }
    .status-insights-grid { grid-template-columns: 1fr; }
  }

  /* ── WORKPLAN ── */
  .workplan-table {
    width: 100%;
  min-width: 1040px;
    border-collapse: collapse;
    font-size: 13px;
  }
  .workplan-table th {
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .workplan-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-mid);
  }
  .workplan-table tr:hover td { background: var(--cream); }
  .status-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
  }
  .status-dot::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .status-dot.not-started::before { background: var(--border); }
  .status-dot.in-progress::before { background: var(--orange); }
  .status-dot.complete::before { background: var(--green-bright); }
  .status-dot.delayed::before { background: #e74c3c; }

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.strategy-context-fields {
  display: grid;
  gap: 14px;
}
.strategy-section-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0 18px;
}
  .card-subtle { font-size: 12px; color: var(--ink-faint); margin-bottom: 10px; }
  .strategy-deck-builder { display: grid; gap: 8px; }
  .strategy-deck-row {
    display: grid;
    grid-template-columns: 22px 22px 1fr auto;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    padding: 8px 10px;
  }
  .strategy-deck-row.dragging { opacity: 0.55; }
  .strategy-deck-row .drag-handle { color: var(--ink-faint); cursor: grab; font-size: 15px; line-height: 1; user-select: none; }
  .strategy-deck-row.fixed .drag-handle { opacity: 0.35; cursor: default; }
  .strategy-deck-row label { font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
  .strategy-deck-main { min-width: 0; }
  .strategy-deck-summary { font-size: 11px; color: var(--ink-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .strategy-deck-actions { display: inline-flex; align-items: center; gap: 8px; }
  .strategy-go-btn { padding: 3px 8px; font-size: 11px; }
  .strategy-status-badge { font-size: 11px; border-radius: 999px; padding: 2px 8px; border: 1px solid; }
  .strategy-status-badge.complete { color: #166534; background: #dcfce7; border-color: #86efac; }
  .strategy-status-badge.inprogress { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
  .strategy-status-badge.empty { color: #6b7280; background: #f3f4f6; border-color: #e5e7eb; }

  /* ── CHANGE PLAN TIMELINE ── */
  .cpt-shell { overflow: hidden; }
  .cpt-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    margin-top: 8px;
  }
  .cpt-toggles {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    background: var(--white);
    max-height: 620px;
    overflow: auto;
  }
  .cpt-phase-group { margin-bottom: 10px; }
  .cpt-phase-title { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 4px 0 8px; font-weight: 600; }
  .cpt-activity-toggle { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-mid); margin: 6px 0; }
  .cpt-activity-toggle input { margin-top: 2px; }
  .cpt-canvas-wrap {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    min-height: 560px;
    overflow: auto;
  }
  .cpt-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
  }
  .cpt-svg { display: block; width: 100%; min-height: 560px; }
  .cpt-svg text { font-family: 'DM Sans', sans-serif; }
  @media (max-width: 1000px) {
    .cpt-layout { grid-template-columns: 1fr; }
    .cpt-toggles { max-height: 240px; }
  }

  /* ── COMMS TABLE ── */
  .comms-channel-table th:nth-child(1) { width: 26%; }
  .comms-channel-table th:nth-child(2) { width: 22%; }
  .comms-channel-table th:nth-child(3) { width: 46%; }
  .comms-channel-table th:nth-child(4) { width: 6%; text-align: center; }
  .comms-plan-table th, .comms-plan-table td { vertical-align: top; }
  .comms-plan-table th:nth-child(1) { width: 12%; }
  .comms-plan-table th:nth-child(2) { width: 16%; }
  .comms-plan-table th:nth-child(3) { width: 18%; }
  .comms-plan-table th:nth-child(4) { width: 24%; }
  .comms-plan-table th:nth-child(5) { width: 12%; }
  .comms-plan-table th:nth-child(6) { width: 10%; }
  .comms-plan-table th:nth-child(7) { width: 8%; }
  .comms-plan-table th:nth-child(8) { width: 4%; text-align: center; }
  .comms-plan-table input,
  .comms-plan-table select,
  .comms-plan-table textarea,
  .comms-channel-table input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff;
    color: var(--ink);
  }
  .comms-plan-table textarea { min-height: 56px; resize: vertical; }
  .comms-sortable { cursor: pointer; user-select: none; }
  .comms-sortable.is-active { text-decoration: underline; text-underline-offset: 3px; }
  .comms-timing-main { font-weight: 700; color: #1f2937; }
  .comms-timing-sub { color: #6b7280; font-size: 12px; margin-top: 2px; }
  .comms-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
  }
  .comms-status-badge.draft { background: #f3f4f6; color: #4b5563; }
  .comms-status-badge.ready { background: #fef3c7; color: #92400e; }
  .comms-status-badge.sent { background: #dcfce7; color: #166534; }

  /* ── DASHBOARD ── */
  .dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
  }
  .dash-metric {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
  }
  .dash-metric-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 8px;
  }
  .dash-metric-value {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
  }
  .dash-metric-sub {
    font-size: 12px;
    color: var(--ink-faint);
  }
  .phase-progress {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .phase-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
  }
  .phase-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .phase-card.active-phase { border-color: var(--green-bright); border-width: 2px; }
  .phase-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 10px;
  }
  .phase-bar-bg {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 8px;
  }
  .phase-bar-fill {
    height: 4px;
    background: var(--green-bright);
    border-radius: 2px;
    transition: width 0.6s ease;
  }
  .phase-count {
    font-size: 11px;
    color: var(--ink-faint);
  }

  /* ── TABS ── */
  .tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
  }
  .tab {
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--ink-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
  }
  .tab:hover { color: var(--ink); }
  .tab.active { color: var(--green-dark); border-bottom-color: var(--green-dark); font-weight: 500; }

  /* ── RISK TABLE ── */
  .risk-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
  }
  .risk-level {
    width: 48px;
    text-align: center;
    flex-shrink: 0;
  }
  .risk-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
  }
  .risk-badge.H { background: #fde8e8; color: #b91c1c; }
  .risk-badge.M { background: #fef3c7; color: #92400e; }
  .risk-badge.L { background: #dcfce7; color: #166534; }
  .risk-content { flex: 1; }
  .risk-title { font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
  .risk-mitigation { font-size: 12.5px; color: var(--ink-light); }

  /* ── GO/NO-GO ── */
  .gonogo-card {
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
  }
  .gonogo-card.go { background: #dcfce7; border-color: #16a34a; color: #166534; }
  .gonogo-card.conditional { background: #fef3c7; border-color: #d97706; color: #92400e; }
  .gonogo-card.nogo { background: #fde8e8; border-color: #dc2626; color: #b91c1c; }
  .gonogo-card.awaiting { background: var(--cream); border-color: var(--border); color: var(--ink-faint); }

  /* ── INTAKE PROGRESS ── */
  .intake-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .intake-step {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ink-faint);
    font-weight: 500;
  }
  .intake-step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--border);
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .intake-step.done .intake-step-num { background: var(--green-bright); color: white; }
  .intake-step.active .intake-step-num { background: var(--green-dark); color: white; }
  .intake-step.active { color: var(--green-dark); }
  .intake-step-sep { color: var(--border); font-size: 14px; }
  #intake-flow-progress .intake-step {
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 4px;
    margin: -2px -4px;
  }
  #intake-flow-progress .intake-step:hover { background: rgba(0,0,0,0.04); }
  .intake-flow-step { display: none; }
  .intake-flow-step.active { display: block; }
  .intake-sizing-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
  .intake-sizing-block:first-child { margin-top: 0; padding-top: 0; border-top: none; }
  .intake-setup-brief-card {
    border-left: 4px solid var(--green-bright);
    padding: 16px 18px;
    background: var(--white);
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    margin-top: 16px;
  }
  #intake-setup-summary .intake-setup-brief-card { margin-top: 0; }
  .intake-done-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--green-light);
    border: 2px solid var(--green-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--green-dark);
    margin-bottom: 14px;
  }
  .intake-flow-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
  }
  .intake-flow-error { font-size: 13px; color: #b91c1c; margin-top: 8px; display: none; }
  .intake-wiz-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 8px;
  }
  .intake-rec-step-root { padding: 4px 2px 8px; }
  .intake-rec-result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 16px;
    border-left-width: 4px;
    border-left-style: solid;
  }
  .intake-rec-level-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.2;
    font-family: inherit;
  }
  .intake-rec-bullets { margin: 0; padding-left: 20px; color: var(--ink-mid); font-size: 14px; line-height: 1.55; }
  .intake-rec-bullets li { margin-bottom: 8px; }

  /* ── Intake done step (merged summary) ── */
  .intake-done-layout {
    max-width: 42rem;
    margin: 0 auto;
    padding: 8px 0 32px;
  }
  .intake-done-lede {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.5;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
  }
  .intake-done-facts-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 6px;
    margin-bottom: 22px;
  }
  .intake-done-fact-pill {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-mid);
    background: linear-gradient(180deg, var(--white) 0%, #fafaf8 100%);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .intake-done-fact-pill:hover {
    border-color: rgba(58, 156, 107, 0.35);
    box-shadow: 0 2px 8px rgba(26, 71, 49, 0.08);
  }
  .intake-done-brief-loading {
    margin-top: 4px;
    margin-bottom: 8px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .intake-done-brief-panel {
    margin-top: 4px;
    padding: 22px 24px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 71, 49, 0.08);
    border-left: 4px solid var(--green-bright);
    box-shadow: var(--shadow-md);
  }
  .intake-done-brief-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin: 0 0 12px;
  }
  #intake-flow-step-6 .intake-done-brief-body.intake-setup-brief-card {
    margin-top: 0;
    border-left: none;
    padding: 16px 0 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
  }
  .intake-done-brief-error {
    margin-top: 12px;
  }
  .intake-done-rule {
    margin: 2rem 0 1.75rem;
    border: none;
    border-top: 1px solid rgba(26, 71, 49, 0.12);
  }
  .intake-done-ocm-card.intake-rec-result-card {
    padding: 22px 24px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 71, 49, 0.1);
    box-shadow: var(--shadow-md);
    background: linear-gradient(165deg, var(--white) 0%, #fbfef9 100%);
  }
  .intake-done-ocm-kicker {
    color: var(--green-mid);
    margin-bottom: 10px;
  }
  .intake-done-ocm-desc {
    font-size: 15px;
    color: var(--ink-mid);
    line-height: 1.6;
    margin: 0;
  }
  /* Meaning block: continuation of OCM card — no second “card” chrome */
  .intake-done-meaning-panel {
    margin-top: 1.25rem;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .intake-done-meaning-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
  }
  .intake-done-meaning-list {
    padding-left: 1.25rem;
    margin: 0;
    color: var(--ink-mid);
    font-size: 14px;
    line-height: 1.6;
  }
  .intake-done-meaning-list li {
    margin-bottom: 10px;
    padding-left: 4px;
  }
  .intake-done-meaning-list li::marker {
    color: var(--green-mid);
  }
  .intake-done-actions.intake-flow-nav {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .intake-done-actions .btn-primary {
    box-shadow: 0 2px 10px rgba(26, 71, 49, 0.2);
  }

  .intake-ocm-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }

  /* ── READINESS ── */
  .readiness-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 14px;
  }
  .readiness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }
  .readiness-group-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
  }
  .readiness-score {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--green-dark);
  }
  .readiness-bars { display: grid; gap: 8px; }
  .readiness-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }
  .readiness-bar-label { width: 100px; color: var(--ink-light); flex-shrink: 0; }
  .readiness-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
  }
  .readiness-bar-fill {
    height: 6px;
    background: var(--green-bright);
    border-radius: 3px;
    transition: width 0.8s ease;
  }
  .readiness-bar-fill.warn { background: var(--orange); }
  .readiness-bar-fill.danger { background: #e74c3c; }
  .readiness-pct { width: 34px; text-align: right; color: var(--ink-mid); }

  /* ── CHECKLIST ── */
  .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
  }
  .checklist-item:last-child { border-bottom: none; }
  .checklist-item input[type="checkbox"] {
    width: 16px; height: 16px;
    margin-top: 2px;
    accent-color: var(--green-bright);
    flex-shrink: 0;
    cursor: pointer;
  }
  .checklist-text {
    font-size: 13.5px;
    color: var(--ink-mid);
    flex: 1;
  }
  .checklist-text.done {
    text-decoration: line-through;
    color: var(--ink-faint);
  }
  .checklist-tool {
    font-size: 11px;
    color: var(--green-bright);
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* ── DIVIDERS / MISC ── */
  .section-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
  }
  .tip-box {
    background: var(--green-light);
    border-left: 3px solid var(--green-bright);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--green-dark);
    margin-bottom: 20px;
  }
  .guide-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green-bright);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 24px;
  }
  .guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
  }
  .guide-header:hover { background: var(--green-light); border-radius: 0 var(--radius) 0 0; }
  .guide-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .guide-toggle {
    font-size: 11px;
    color: var(--green-bright);
    font-weight: 500;
  }
  .guide-summary {
    padding: 0 16px 12px;
    font-size: 13px;
    color: var(--ink-mid);
    line-height: 1.6;
  }
  .guide-detail {
    display: none;
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--ink-mid);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 12px;
  }
  .guide-detail.open { display: block; }
  .guide-detail ul { margin: 6px 0 10px 18px; }
  .guide-detail li { margin-bottom: 4px; }
  .guide-detail strong { color: var(--ink); }
  .guide-detail .guide-who {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
  }
  .ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: var(--green-dark);
    border-radius: 5px;
    font-size: 11px;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
  }
  .empty-state {
    text-align: center;
    padding: 40px;
    color: var(--ink-faint);
  }
  .empty-icon { font-size: 32px; margin-bottom: 12px; }
  .empty-text { font-size: 14px; }

  /* ── HAMBURGER (hidden on desktop) ── */
  .hamburger-btn {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
  }
  .hamburger-btn span {
    display: block;
    width: 18px; height: 2px;
    background: white;
    border-radius: 2px;
    margin: 3px auto;
    transition: all 0.2s;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(0,0,0,0.35);
    z-index: 199;
  }
  .sidebar-overlay.open { display: block; }

  /* ── MOBILE ── */
  @media (max-width: 768px) {
    /* Header */
    header { padding: 0 12px; height: 56px; }
    .header-logo img { height: 28px; }
    .header-sub { display: none; }
    .header-title { font-size: 13px; }
    .header-right { gap: 6px; }
    .project-pill-host { max-width: 38vw; }
    .project-pill { font-size: 12px; padding: 5px 10px; }
    .header-user-menu-trigger { padding: 5px 10px; font-size: 12px; max-width: 120px; }
    .header-user-menu-trigger #user-display {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .hamburger-btn { display: flex; }

    /* Sidebar becomes slide-in drawer */
    .app-layout { grid-template-columns: 1fr; }
    .sidebar {
      position: fixed;
      top: 56px;
      left: -280px;
      width: 280px;
      height: calc(100vh - 56px);
      z-index: 200;
      transition: left 0.25s ease;
      box-shadow: 4px 0 20px rgba(0,0,0,0.18);
    }
    .sidebar.open { left: 0; }

    /* Main */
    main { padding: 20px 16px 80px; }

    /* Grids → stack */
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
    .dash-grid { grid-template-columns: 1fr 1fr; }
    .phase-progress { grid-template-columns: 1fr 1fr; }

    /* Intake steps */
    .intake-step { font-size: 10px; gap: 3px; }
    .intake-step-num { width: 18px; height: 18px; font-size: 9px; }
    .intake-step-sep { font-size: 10px; }

    /* Tables — horizontal scroll */
    .stakeholder-table-wrap, .comms-table-wrap, .risk-table-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Chat panel — full width on mobile */
    #chat-panel { left: 12px; right: 12px; width: auto !important; bottom: 84px; }
    #chat-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; }

    /* Page padding */
    .page-title { font-size: 24px; }
    .dash-status-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 480px) {
    .dash-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dash-metric { padding: 14px 14px; }
    .dash-metric-value { font-size: 26px; }
    .phase-progress { grid-template-columns: 1fr 1fr; gap: 8px; }
    .form-row-3 { grid-template-columns: 1fr; }
  }

  /* ── NAV ITEM SUB-LABEL ── */
  .nav-item-sub {
    font-size: 10.5px;
    color: var(--ink-faint);
    display: block;
    margin-top: 1px;
    font-weight: 400;
  }

  /* ── SAVE INDICATOR ANIMATION ── */
  @keyframes save-flash {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
  }
  #save-indicator.flash {
    animation: save-flash 2s ease forwards;
  }

  .inline-save-indicator {
    margin: -6px 0 16px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-light);
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }
  .inline-save-indicator.flash {
    animation: save-flash 2s ease forwards;
  }

/* Wizard */
.wizard-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background 0.2s;
}
.wizard-dot.active { background: var(--green-bright); }
.wizard-dot.done { background: var(--green-light); border: 1.5px solid var(--green-mid); }
.wizard-q-label {
  font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px;
}
.wizard-q-hint { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; }
.wizard-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; }
.wizard-check {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; cursor: pointer; transition: all 0.15s; background: var(--white);
}
.wizard-check:hover { border-color: var(--green-mid); background: var(--green-light); }
.wizard-check input { accent-color: var(--green-mid); }
.wizard-options { display: flex; flex-direction: column; gap: 10px; }
.wizard-option {
  padding: 14px 18px; border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s; background: var(--white);
  display: flex; flex-direction: column; gap: 3px;
}
.wizard-option strong { font-size: 14px; color: var(--ink); }
.wizard-option span { font-size: 12px; color: var(--ink-faint); }
.wizard-option:hover { border-color: var(--green-mid); background: var(--green-light); }
.wizard-option.selected { border-color: var(--green-bright); background: var(--green-light); }

.phase-transition-card {
  background: linear-gradient(135deg, var(--green-light) 0%, #f0faf4 100%);
  border: 1.5px solid var(--green-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.guide-preview-text {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
  font-weight: 400;
  font-style: normal;
}
.guide-what-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  margin-top: 16px;
}
.guide-what-label:first-child { margin-top: 0; }
.guide-bullets { list-style: none; padding: 0; margin: 0 0 4px 0; }
.guide-bullets li { font-size: 13px; color: var(--ink-mid); padding: 4px 0 4px 16px; position: relative; line-height: 1.5; }
.guide-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--green-bright); font-size: 12px; }
.guide-who { font-size: 13px; color: var(--ink-mid); line-height: 1.6; }
.guide-full-detail summary { font-size: 12px; color: var(--ink-faint); cursor: pointer; padding: 10px 0 4px; }
.guide-full-detail summary:hover { color: var(--green-mid); }
.guide-full-detail[open] summary { color: var(--green-mid); }
.jargon-term {
  border-bottom: 1.5px dotted var(--green-mid);
  cursor: help;
  position: relative;
  display: inline;
}
.jargon-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  z-index: 9999;
  pointer-events: none;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: normal;
}
.jargon-term:hover .jargon-tip { display: block; }

  /* Signed-out landing */
  #auth-boot-screen {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    color: var(--ink-light);
    font-size: 14px;
  }
  #signed-out-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999997;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 48px;
    background: #ebe8e0;
    text-align: center;
    overflow-y: auto;
  }
  #signed-out-screen.open {
    display: flex;
  }
  .signed-out-minimal {
    width: 100%;
    max-width: 420px;
  }
  .signed-out-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
    text-align: left;
  }
  .signed-out-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .signed-out-brand-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin: 0;
  }
  .signed-out-brand-sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 4px 0 0;
  }
  #clerk-sign-in-mount {
    width: 100%;
    min-height: 200px;
  }
  .signed-out-error {
    margin-top: 16px;
    font-size: 14px;
    color: #b91c1c;
    line-height: 1.5;
  }
  .signed-out-roles-note {
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--ink-faint);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  body.signed-out-mode #new-project-modal,
  body.signed-out-mode #delete-project-modal,
  body.signed-out-mode #chat-fab,
  body.signed-out-mode #chat-dot,
  body.signed-out-mode #chat-panel,
  body.signed-out-mode .coe-overlay,
  body.signed-out-mode .coe-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  /* Floating button */
  #chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--green-dark);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,71,49,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  #chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,71,49,0.45);
  }
  #chat-fab svg { transition: opacity 0.2s; }
  #chat-fab.open #fab-open { display: none; }
  #chat-fab.open #fab-close { display: block !important; }

  /* Notification dot */
  #chat-dot {
    position: fixed;
    bottom: 68px;
    right: 28px;
    z-index: 1001;
    width: 10px; height: 10px;
    background: var(--orange);
    border-radius: 50%;
    border: 2px solid var(--cream);
    display: none;
    animation: pulse-dot 2s ease-in-out infinite;
  }
  @keyframes pulse-dot {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.3); }
  }

  /* Chat panel */
  #chat-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    z-index: 999;
    width: 380px;
    height: 520px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s ease;
    transform-origin: bottom right;
    overflow: hidden;
  }
  #chat-panel.expanded {
    width: 520px;
    height: 680px;
  }
  #chat-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Panel header */
  .chat-header {
    background: var(--green-dark);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
  }
  .chat-avatar {
    width: 32px; height: 32px;
    background: var(--green-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 15px;
    color: var(--green-dark);
    flex-shrink: 0;
  }
  .chat-header-text { flex: 1; }
  .chat-header-name {
    font-size: 13.5px;
    font-weight: 500;
    color: white;
    line-height: 1.2;
  }
  .chat-header-status {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
  }
  .chat-context-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-expand-btn {
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    border-radius: 12px;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .chat-expand-btn:hover {
    background: rgba(255,255,255,0.2);
  }
  .chat-expand-btn .icon-collapse { display: none; }
  .chat-expand-btn.expanded .icon-expand { display: none; }
  .chat-expand-btn.expanded .icon-collapse { display: block; }

  @media (max-width: 900px) {
    #chat-panel.expanded {
      height: min(78vh, 700px);
    }
  }

  /* Messages area */
  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
  }
  .chat-messages::-webkit-scrollbar { width: 4px; }
  .chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  /* Bubbles */
  .msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: msg-in 0.2s ease;
  }
  @keyframes msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .msg.user { flex-direction: row-reverse; }
  .msg-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--green-mid);
    flex-shrink: 0;
  }
  .msg.user .msg-avatar { background: var(--green-dark); color: white; }
  .msg-bubble {
    max-width: 78%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--border);
    white-space: pre-wrap;
    word-break: break-word;
  }
  .msg.user .msg-bubble {
    background: var(--green-dark);
    color: white;
    border-color: var(--green-dark);
  }

  /* Typing indicator */
  .typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 13px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: fit-content;
  }
  .typing-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-faint);
    animation: typing 1.2s ease-in-out infinite;
  }
  .typing-dot:nth-child(2) { animation-delay: 0.2s; }
  .typing-dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes typing {
    0%,60%,100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
  }

  /* Quick chips */
  .chat-chips {
    padding: 8px 14px 4px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
  }
  .chip {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid rgba(58,156,107,0.25);
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .chip:hover { background: var(--green-bright); color: white; border-color: var(--green-bright); }

  /* Input area */
  .chat-input-row {
    padding: 10px 14px 14px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
  }
  #chat-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    color: var(--ink);
    background: var(--cream);
    resize: none;
    outline: none;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
    transition: border-color 0.15s;
    min-height: 38px;
  }
  #chat-input:focus { border-color: var(--green-bright); background: var(--white); }
  #chat-send {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--green-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
  }
  #chat-send:hover { background: var(--green-mid); }
  #chat-send:active { transform: scale(0.94); }
  #chat-send:disabled { background: var(--border); cursor: default; }

/* ── COE drawer ── */
  .coe-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 500;
    backdrop-filter: blur(2px);
  }
  .coe-overlay.open { display: block; }
  .coe-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 600px;
    max-width: 95vw;
    background: var(--white);
    z-index: 501;
    box-shadow: -8px 0 40px rgba(26,71,49,0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .coe-drawer.open { transform: translateX(0); }

  .coe-drawer-header {
    background: var(--green-dark);
    padding: 20px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .coe-drawer-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: white;
    font-weight: 400;
  }
  .coe-drawer-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
  }
  .coe-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .coe-close:hover { background: rgba(255,255,255,0.25); }

  /* Tab bar */
  .coe-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--cream);
  }
  .coe-tab {
    flex: 1;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--ink-faint);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    user-select: none;
  }
  .coe-tab:hover { color: var(--ink-mid); }
  .coe-tab.active { color: var(--green-dark); border-bottom-color: var(--green-dark); background: var(--white); }

  /* Content area */
  .coe-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
  }
  .coe-panel { display: none; }
  .coe-panel.active { display: block; }

  /* ── SERVICE MODEL ── */
  .service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
  .service-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  .service-card:hover { border-color: var(--green-mid); }
  .service-card.selected { border-color: var(--green-dark); background: var(--green-light); }
  .service-card-icon { font-size: 28px; margin-bottom: 8px; }
  .service-card-name { font-size: 13px; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
  .service-card-hours { font-size: 11px; color: var(--ink-faint); }

  .service-detail {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: none;
  }
  .service-detail.visible { display: block; }
  .service-detail h3 { font-size: 16px; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
  .service-detail-sub { font-size: 13px; color: var(--ink-light); margin-bottom: 16px; }
  .service-detail-row { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
  .service-detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); min-width: 110px; padding-top: 2px; }
  .service-detail-value { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }

  /* ── OP MODEL ── */
  .opmodel-functions { display: flex; flex-direction: column; gap: 10px; }
  .opmodel-fn {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
  }
  .opmodel-fn:hover { border-color: var(--green-mid); }
  .opmodel-fn.open { border-color: var(--green-dark); }
  .opmodel-fn-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    user-select: none;
  }
  .opmodel-fn.open .opmodel-fn-header { background: var(--green-light); }
  .fn-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .fn-title { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
  .fn-kpi { font-size: 11px; color: var(--ink-faint); }
  .fn-arrow { color: var(--ink-faint); font-size: 14px; transition: transform 0.2s; }
  .opmodel-fn.open .fn-arrow { transform: rotate(90deg); }

  .opmodel-fn-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .opmodel-fn.open .opmodel-fn-body { max-height: 600px; }
  .opmodel-fn-inner { padding: 0 18px 18px; border-top: 1px solid var(--border); }

  .raci-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 14px; }
  .raci-table th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); padding: 6px 8px; border-bottom: 2px solid var(--border); }
  .raci-table th.role-col { text-align: center; width: 48px; }
  .raci-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); color: var(--ink-mid); vertical-align: middle; }
  .raci-table tr:last-child td { border-bottom: none; }
  .raci-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin: 0 auto;
  }
  .raci-badge.R { background: var(--green-light); color: var(--green-dark); }
  .raci-badge.A { background: #dde8fb; color: #1a4dbf; }
  .raci-badge.C { background: var(--orange-light); color: var(--orange); }
  .raci-badge.I { background: var(--cream); color: var(--ink-faint); border: 1px solid var(--border); }
  .raci-badge.RA { background: var(--green-light); color: var(--green-dark); }
  .raci-badge.AR { background: var(--green-light); color: var(--green-dark); }
  .raci-cell { text-align: center; }

  .kpi-box { background: var(--green-dark); color: white; border-radius: var(--radius); padding: 12px 16px; margin-top: 14px; font-size: 13px; }
  .kpi-box-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 4px; }

  /* ── ROLES ── */
  .role-chips { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
  .role-chip {
    padding: 7px 16px;
    border-radius: 20px;
    border: 2px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--ink-mid);
  }
  .role-chip:hover { border-color: var(--green-mid); color: var(--green-dark); }
  .role-chip.active { background: var(--green-dark); border-color: var(--green-dark); color: white; }

  .role-detail { display: none; }
  .role-detail.visible { display: block; }
  .role-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
  .role-avatar { width: 48px; height: 48px; border-radius: 12px; background: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; flex-shrink: 0; }
  .role-name { font-size: 18px; font-weight: 700; color: var(--green-dark); }
  .role-fte { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
  .role-responsibilities { font-size: 14px; color: var(--ink-mid); line-height: 1.7; background: var(--cream); border-radius: var(--radius); padding: 16px 18px; }

  /* ── DOES / DOES NOT ── */
  .does-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .does-col { border-radius: var(--radius); padding: 16px 18px; }
  .does-col.yes { background: var(--green-light); }
  .does-col.no { background: #fde8e6; }
  .does-col-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
  .does-col.yes .does-col-label { color: var(--green-dark); }
  .does-col.no .does-col-label { color: var(--rag-red); }
  .does-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-mid); margin-bottom: 10px; line-height: 1.45; }
  .does-item:last-child { margin-bottom: 0; }
  .does-item-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }

/* Sprint 1 section previews + widgets */
.section-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.section-controls .framing-controls-right { margin-left: auto; }
.sprint-preview-card .sprint-preview-block {
  border-left: 4px solid var(--green-mid, #16a34a);
  padding: 10px 12px 10px 14px;
  margin-bottom: 12px;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sprint-preview-block p { margin: 6px 0 0; color: var(--ink-mid); white-space: pre-wrap; }
.sprint-preview-block strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.messaging-psar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}
.messaging-grid-span { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .messaging-psar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .messaging-psar-grid { grid-template-columns: 1fr; }
  .messaging-grid-span { grid-column: 1; }
}
.messaging-frame-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
}
.messaging-frame-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 14px;
  align-items: stretch;
}
.messaging-frame-diagram {
  position: relative;
  min-height: 240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px 28px;
  padding: 12px 10px;
}
.mf-box {
  background: #1F6B35;
  border-radius: 4px;
  color: #fff;
  padding: 10px 10px 8px;
  min-height: 78px;
  position: relative;
  z-index: 2;
}
.mf-box-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.mf-box-value {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.25;
  word-break: break-word;
}
.mf-arrows {
  position: absolute;
  inset: 12px 10px;
  width: calc(100% - 20px);
  height: calc(100% - 24px);
  z-index: 1;
  pointer-events: none;
}
.mf-arrows line {
  stroke: #4A4A4A;
  stroke-width: 1.5;
}
.messaging-frame-narrative-wrap {
  background: #F5F5F5;
  border-radius: 6px;
  padding: 14px 16px;
}
.messaging-preview-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 8px;
}
.messaging-frame-narrative {
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: #1A1A1A;
}
.messaging-frame-narrative p {
  margin: 0 0 10px;
}
.messaging-frame-narrative p:last-of-type {
  margin-bottom: 0;
}
.messaging-frame-narrative .mf-quote-open,
.messaging-frame-narrative .mf-quote-close {
  color: #1F6B35;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}
.messaging-frame-narrative .mf-quote-open { margin-right: 4px; }
.messaging-frame-narrative .mf-quote-close { margin-left: 4px; }
.messaging-preview-field {
  margin-top: 12px;
}
.ea-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.ea-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ea-preview-recognition {
  margin-top: 12px;
}
.ea-recognition-field {
  margin-top: 12px;
}
@media (max-width: 980px) {
  .messaging-frame-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .ea-strategy-grid,
  .ea-preview-grid {
    grid-template-columns: 1fr;
  }
}
.msg-keymessage-preview {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.45;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--green-mid, #16a34a);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.workplan-progress-line { color: var(--green-dark); }
.readiness-questions-list .rq-item { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.readiness-questions-list .rq-item input { flex: 1; }
.readiness-decision-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.readiness-tile {
  flex: 1;
  min-width: 100px;
  padding: 12px 14px;
  border: 2px solid #d1d5db;
  border-radius: var(--radius);
  background: #f9fafb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #4b5563;
  transition: border-color 0.15s, background 0.15s;
}
.readiness-tile:hover { border-color: #9ca3af; }
.readiness-tile.selected[data-readiness-decision="go"] {
  border-color: #1f6b35;
  background: #1f6b35;
  color: #fff;
}
.readiness-tile.selected[data-readiness-decision="conditional"] {
  border-color: #d97706;
  background: #d97706;
  color: #fff;
}
.readiness-tile.selected[data-readiness-decision="nogo"] {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}
.readiness-bars-edit .readiness-bar-row {
  display: grid;
  grid-template-columns: 100px auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.readiness-bars-edit input[type="number"] {
  width: 80px;
  padding: 6px 8px;
}
.readiness-scale-hint {
  font-size: 12px;
  color: var(--ink-faint);
}
.readiness-score-wrap { display: flex; align-items: center; gap: 8px; }
.readiness-score-label { font-size: 12px; color: var(--ink-faint); }
.project-pulse-shell {
  padding: 10px 20px 0;
}
.pulse-panel {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pulse-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.pulse-title { font-weight: 700; color: var(--ink); }
.pulse-head-meta { display: flex; align-items: center; gap: 10px; color: #6b6b6b; font-size: 12px; }
.pulse-pill {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.pulse-pill.low { background: #2e8b47; }
.pulse-pill.medium { background: #e8a020; }
.pulse-pill.high { background: #e05c2a; }
.pulse-collapse-btn {
  border: none;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.pulse-body { padding: 0 14px 14px; }
.pulse-section {
  border-top: 1px solid #ececec;
  padding-top: 10px;
  margin-top: 10px;
}
.pulse-section-label {
  font-size: 11px;
  color: #6b6b6b;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pulse-list { margin: 0; padding-left: 18px; color: var(--ink); }
.pulse-list li { margin: 0 0 6px; }
.pulse-theme {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.pulse-theme-headline { font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.pulse-theme-detail { font-size: 13px; color: var(--ink-light); }
.pulse-rag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b6b6b;
  white-space: nowrap;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.pulse-dot.red { background: #e05c2a; }
.pulse-dot.amber { background: #e8a020; }
.pulse-dot.green { background: #2e8b47; }
.pulse-skeleton-line {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #efefef 25%, #f8f8f8 50%, #efefef 75%);
  background-size: 200% 100%;
  animation: pulseShimmer 1.2s infinite;
}
@keyframes pulseShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pulse-updating {
  font-size: 12px;
  color: #8a8a8a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pulse-spinner {
  width: 11px;
  height: 11px;
  border: 2px solid #d5d5d5;
  border-top-color: #8a8a8a;
  border-radius: 50%;
  animation: pulseSpin 0.8s linear infinite;
}
@keyframes pulseSpin { to { transform: rotate(360deg); } }
.portfolio-summary-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.pulse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pulse-table th,
.pulse-table td {
  border: 1px solid #e4e4e4;
  padding: 7px 9px;
  text-align: left;
}
.pulse-table th {
  background: #1f6b35;
  color: #fff;
  font-size: 12px;
}
.pulse-status-badge {
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
  font-size: 12px;
}
.pulse-status-badge.ontrack { background: #dcfce7; color: #166534; }
.pulse-status-badge.atrisk { background: #fef3c7; color: #92400e; }
.pulse-status-badge.critical { background: #fee2e2; color: #991b1b; }
.metric-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.metric-dot.high { background: #dc2626; }
.metric-dot.med { background: #d97706; }
.metric-dot.low { background: #16a34a; }
.status-phase-update-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin: 10px 0 4px;
}
.text-muted { color: var(--ink-faint); }

.feedback-widget-host {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 250;
}
.feedback-toggle-btn {
  min-width: 126px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #1f6b35;
  background: #1f6b35;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 107, 53, 0.25);
}
.feedback-toggle-btn:hover {
  background: #17552a;
  border-color: #17552a;
}
.feedback-popover {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 320px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  padding: 12px;
}
.feedback-label {
  font-size: 11px;
  color: #7a786f;
  font-weight: 600;
  margin-bottom: 4px;
}
.feedback-section-input,
.feedback-type-select,
.feedback-comment-input {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 12px;
  color: #3d3d38;
  background: #fff;
}
.feedback-section-input,
.feedback-type-select {
  height: 31px;
  padding: 0 9px;
  margin-bottom: 8px;
}
.feedback-comment-input {
  min-height: 86px;
  resize: vertical;
  padding: 8px 9px;
}
.feedback-counter {
  margin-top: 4px;
  text-align: right;
  font-size: 11px;
  color: #9a9890;
}
.feedback-submit-btn {
  width: 100%;
  margin-top: 8px;
  border: none;
  background: #1f6b35;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  height: 32px;
  cursor: pointer;
}
.feedback-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.feedback-cancel-btn {
  margin-top: 7px;
  border: none;
  background: none;
  color: #6b6b6b;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.feedback-error {
  margin-top: 7px;
  color: #b3432f;
  font-size: 11px;
  min-height: 14px;
}
.feedback-success {
  margin-top: 7px;
  color: #1f6b35;
  font-size: 12px;
  font-weight: 600;
}
