/* Kepler Social Media Calendar — styles.css
   Custom CSS layered on top of Tailwind (loaded via CDN in index.html). */

  html, body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  .font-mono-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
  ::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
  .skeleton { background: linear-gradient(90deg, #EEF1F5 25%, #F6F8FA 37%, #EEF1F5 63%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; }
  .detail-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.32s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; }
  .detail-panel.open { opacity: 1; }
  .chevron { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
  .chevron.rot { transform: rotate(180deg); }
  .nav-item.active { background: #EEF2F5; color: #24405A; }
  .nav-item.active .nav-dot { opacity: 1; }
  .nav-dot { opacity: 0; transition: opacity 0.2s ease; }
  .ai-glow:focus-within { box-shadow: 0 0 0 4px rgba(47, 81, 105, 0.10), 0 8px 24px -6px rgba(47, 81, 105, 0.25); border-color: #8FA6B8; }
  .page { display: none; }
  .page.active { display: block; }
  #mobile-drawer { transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
  #mobile-overlay { transition: opacity 0.3s ease; }
  #side-panel { transition: transform 0.32s cubic-bezier(0.16,1,0.3,1); }
  #side-panel-overlay { transition: opacity 0.3s ease; }
  .toast { transition: all 0.35s cubic-bezier(0.16,1,0.3,1); }
  .tab-btn { transition: all 0.2s ease; }
  .lane { transition: opacity 0.25s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
  .lane.pulse { animation: lanePulse 1.6s ease; }
  .lane:hover { box-shadow: 0 2px 10px -3px rgba(15,23,42,0.07); }
  @keyframes lanePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,81,105,0); } 15% { box-shadow: 0 0 0 4px rgba(47,81,105,0.22); } }
  .lane-col-label { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94A3B8; margin-bottom: 0.5rem; }
  .line-clamp-2, .step-text-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stage-card { transition: all 0.18s ease; }
  .stage-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -3px rgba(15,23,42,0.09); border-color: #CBD5E1; z-index: 2; }
  .stage-card.has-open { background: #EEF2F5; border-color: #8FA6B8; }
  .step-number { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 9999px; background: #F1F5F9; color: #64748B; font-size: 9px; font-weight: 600; font-family: 'IBM Plex Mono', ui-monospace, monospace; flex-shrink: 0; }
  .stage-card.has-open .step-number { background: #2F5169; color: #FFFFFF; }
  .creative-slot { border: 1.5px dashed #CBD5E1; background: repeating-linear-gradient(135deg, #FAFBFC 0 8px, #F4F6F9 8px 16px); }
  .row-flash { animation: rowFlash 1.4s ease; }
  @keyframes rowFlash { 0%,100% { background-color: transparent; } 20% { background-color: #EEF2F5; } }
  input.field, select.field { border: 1px solid #E2E8F0; border-radius: 0.5rem; padding: 0.35rem 0.6rem; font-size: 12.5px; background: white; }
  input.field:focus, select.field:focus { outline: none; border-color: #8FA6B8; box-shadow: 0 0 0 2px rgba(47,81,105,0.12); }

  /* Traditional consulting operating-model table */
  .operating-model-wrap { background: #fff; border: 1px solid #9FB9CF; overflow: hidden; }
  .operating-model-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
  .operating-model-table th, .operating-model-table td { border-right: 1px solid #C7D4DF; border-bottom: 1px solid #C7D4DF; vertical-align: middle; }
  .operating-model-table th:last-child, .operating-model-table td:last-child { border-right: 0; }
  .operating-model-table thead th { background: #24405A; color: #fff; text-align: left; padding: 9px 10px; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
  .operating-model-table thead th:nth-child(1) { width: 8%; }
  .operating-model-table thead th:nth-child(2) { width: 12%; }
  .operating-model-table thead th:nth-child(3) { width: 15%; }
  .operating-model-table thead th:nth-child(4) { width: 42%; }
  .operating-model-table thead th:nth-child(5) { width: 11%; }
  .operating-model-table thead th:nth-child(6) { width: 12%; }
  .operating-model-row:nth-of-type(4n+1) .operating-cell { background: #F6FAFD; }
  .operating-cell { padding: 8px 9px; color: #273A4A; line-height: 1.35; }
  .operating-channel { color: #1B2F44; font-size: 10px; font-weight: 700; text-align: left; }
  .channel-mark { display: block; width: 20px; height: 3px; margin: 0 0 5px; }
  .operating-type p { font-weight: 700; color: #1B2F44; line-height: 1.2; }
  .operating-copy { font-size: 10.5px; }
  .table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
  .table-action { border: 1px solid #B7C6D2; background: #fff; color: #24405A; border-radius: 2px; padding: 2px 5px; font-size: 9px; font-weight: 600; white-space: nowrap; }
  .table-action:hover { border-color: #E6792A; color: #B75512; }
  .process-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 15px; }
  .process-step { position: relative; flex: 1 1 145px; min-height: 43px; border: 1px solid #9FB9CF; border-radius: 2px; background: #fff; padding: 6px 8px; color: #273A4A; }
  .process-step:not(:last-child)::after { content: ''; position: absolute; right: -11px; top: 50%; width: 8px; border-top: 1px solid #E6792A; }
  .process-step:not(:last-child)::before { content: ''; position: absolute; right: -14px; top: calc(50% - 3px); border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 5px solid #E6792A; }
  .process-step p { font-size: 10.5px; font-weight: 600; line-height: 1.22; }
  .process-step-meta { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; color: #5A7A93; font-size: 8.5px; }
  .process-step-meta span { background: #EEF2F5; padding: 1px 4px; border-radius: 2px; }
  .step-number { width: 15px; height: 15px; border-radius: 2px; background: #DCEAF5; color: #24405A; }
  .stage-card.has-open { background: #EEF6FB; border-color: #E6792A; }
  .operating-stakeholders { padding: 5px 7px; }
  .operating-stakeholders span { display: block; border-bottom: 1px solid #E4EDF3; padding: 3px 1px; color: #405A70; font-size: 10px; font-weight: 600; }
  .operating-stakeholders span:last-child { border-bottom: 0; }
  .operating-detail-row td { padding: 0; border-right: 0; background: #fff; }
  .operating-detail-row .detail-panel { background: #F8FBFD; }
  #cal-dated, #cal-recruitment, [data-calview="dated"], [data-calview="recruitment"] { display: none !important; }
  @media (max-width: 900px) { .operating-model-table { table-layout: auto; } .operating-model-table thead th { font-size: 9px; padding: 7px 5px; } .operating-cell { padding: 6px 5px; } .process-step { flex-basis: 120px; } }

  /* Stakeholder swim lanes inside each content-type process map. */
  .operating-model-table thead th:nth-child(1) { width: 8%; }
  .operating-model-table thead th:nth-child(2) { width: 13%; }
  .operating-model-table thead th:nth-child(3) { width: 15%; }
  .operating-model-table thead th:nth-child(4) { width: 50%; }
  .operating-model-table thead th:nth-child(5) { width: 14%; }
  .stakeholder-map { display: flex; width: 100%; min-width: 0; border: 1px solid #B7C6D2; background: #fff; }
  .stakeholder-labels { flex: 0 0 95px; display: grid; grid-template-rows: repeat(var(--lane-count), 1fr); border-right: 1px solid #B7C6D2; background: #EEF6FB; }
  .stakeholder-labels div { display: flex; align-items: center; justify-content: center; padding: 4px; border-bottom: 1px solid #D7E2EA; color: #24405A; text-align: center; font-size: 8.5px; font-weight: 700; line-height: 1.15; }
  .stakeholder-labels div:last-child { border-bottom: 0; }
  .stakeholder-surface { position: relative; flex: 1; min-width: 0; overflow: hidden; }
  .swim-band { position: absolute; display: block; left: 0; right: 0; border-bottom: 1px solid #D7E2EA; background: #fff; }
  .swim-band:nth-child(even) { background: #F8FBFD; }
  .swim-link { position: absolute; z-index: 1; display: block; background: #E6792A; }
  .swim-link-flat { width: 8px; height: 1px; }
  .swim-link-out { width: 4px; height: 1px; }
  .swim-link-vertical { width: 1px; }
  .swim-link-in { width: 4px; height: 1px; }
  .swim-arrow { position: absolute; z-index: 2; display: block; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #E6792A; }
  .swim-stage { position: absolute; z-index: 3; display: flex; flex-direction: column; justify-content: center; overflow: visible; border: 1px solid #8FA6B8; border-radius: 1px; background: #fff; padding: 4px 5px; }
  .swim-stage:hover { z-index: 4; border-color: #E6792A; box-shadow: 0 2px 6px rgba(36,64,90,.12); transform: none; }
  .swim-stage p { font-size: 9px; font-weight: 700; line-height: 1.12; }
  .swim-stage .step-number { width: 13px; height: 13px; font-size: 8px; }
  .swim-stage .process-step-meta { margin-top: 2px; font-size: 7.5px; line-height: 1; }
  .swim-stage .process-step-meta span { padding: 1px 2px; }
  .operating-stakeholders { display: none; }
  @media (max-width: 900px) { .stakeholder-labels { flex-basis: 70px; } .stakeholder-labels div { font-size: 7.5px; } .swim-stage p { font-size: 8px; } }

  /* Channel sections and a process-first table hierarchy. */
  .operating-channel-section + .operating-channel-section { border-top: 10px solid #F1F5F9; }
  .operating-model-table thead th:nth-child(1) { width: 15%; }
  .operating-model-table thead th:nth-child(2) { width: 15%; }
  .operating-model-table thead th:nth-child(3) { width: 60%; }
  .operating-model-table thead th:nth-child(4) { width: 10%; }
  .operating-model-table .channel-section-row th { width: auto; background: #DCEAF5; color: #1B2F44; border-bottom: 1px solid #8FA6B8; padding: 8px 10px; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
  .operating-model-table thead + thead th { background: #24405A; color: #fff; }
  .operating-cell { padding: 6px 8px; }
  .operating-type p { font-size: 11px; }
  .stakeholder-labels { flex-basis: 82px; }
  .stakeholder-map { border-color: #AABFCE; }
  .swim-stage { padding: 3px 4px; }
  .swim-stage p { font-size: 9.5px; line-height: 1.12; }
  .swim-stage .process-step-meta { margin-top: 1px; }

  /* Default desktop navigation is an icon rail, leaving room for the operating model. */
  #mobile-drawer .nav-item { height: 40px; justify-content: center; gap: 0; padding: 0; border-radius: 5px; }
  #mobile-drawer .nav-item > span:not(.nav-dot) { display: none; }
  #mobile-drawer .nav-item .nav-dot { display: none; }
  #mobile-drawer .nav-item svg { width: 19px; height: 19px; }

  /* Explicit, process-led table proportions — supplied by the colgroup, not equal-width grid columns. */
  .operating-model-table { table-layout: fixed; }
  .operating-model-table thead th:nth-child(1) { width: 12%; }
  .operating-model-table thead th:nth-child(2) { width: 12%; }
  .operating-model-table thead th:nth-child(3) { width: 66%; }
  .operating-model-table thead th:nth-child(4) { width: 10%; }
  .operating-cell { padding: 4px 6px; }
  .operating-type p { font-size: 10.5px; }
  .operating-copy { color: #64748B; font-size: 9.5px; line-height: 1.25; }
  .operating-process { padding: 3px; background: #FBFDFF; }
  .stakeholder-labels { flex-basis: 74px; }
  .stakeholder-labels div { padding: 2px; font-size: 8px; }
  .swim-stage { padding: 2px 3px; }
  .swim-stage p { font-size: 9.5px; line-height: 1.08; }
  .swim-stage .step-number { width: 12px; height: 12px; font-size: 7px; }

  /* Final override: adaptive cards must win over historic fixed-grid rules above. */
  .stakeholder-column-map .swim-stage,
  .stakeholder-column-map .campaign-choice-card {
    left: calc(var(--column-start) + max(8px, (var(--column-width) - 210px) / 2));
    width: min(210px, calc(var(--column-width) - 16px));
    top: var(--y);
    height: var(--card-height);
    min-height: 0;
  }
  .stakeholder-column-map .swim-stage { overflow: visible; align-items: stretch; }
  .stakeholder-column-map .swim-stage > div { align-items: flex-start; }
  .stakeholder-column-map .swim-stage p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .stakeholder-column-map .campaign-choice-card {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.12;
  }

  /* Typography override placed last so the compact legacy rules cannot reduce legibility. */
  .operating-model-row > td:first-child.operating-copy,
  .operating-model-row > td:last-child.operating-copy { color: #334155; font-size: 10.25px; line-height: 1.2; }
  .table-action { color: #24405A; font-size: 8.75px; font-weight: 650; line-height: 1.15; padding: 1px 4px; }
  .content-type-name { font-size: 10px; }
  .stakeholder-column-map .swim-stage { padding: 0 3px; }
  .stakeholder-column-map .swim-stage p { color: #172B3A; font-size: 10.15px; font-weight: 700; line-height: 1.07; }
  .stakeholder-column-map .swim-stage .step-number { margin-top: 1px; }

  /* People & Culture format choices need to be readable as individual template links. */
  .stakeholder-column-map .campaign-choice-card.people-culture-choice {
    color: #243B4D;
    font-size: 9.25px;
    font-weight: 650;
    line-height: 1.14;
    padding: 2px 4px;
  }

  /* Final presentation polish: improve reading distance without spending more canvas. */
  .operating-model-row > td:first-child.operating-copy,
  .operating-model-row > td:last-child.operating-copy {
    color: #334155;
    font-size: 10.25px;
    line-height: 1.2;
  }
  .table-action {
    color: #24405A;
    font-size: 8.75px;
    font-weight: 650;
    line-height: 1.15;
    padding: 1px 4px;
  }
  .content-type-name { font-size: 10px; }
  .stakeholder-column-map .swim-stage { padding: 0 3px; }
  .stakeholder-column-map .swim-stage p {
    color: #172B3A;
    font-size: 10.15px;
    font-weight: 700;
    line-height: 1.07;
  }
  .stakeholder-column-map .swim-stage .step-number { margin-top: 1px; }

  /* Excel-style frozen header. The current markup presents the structural and stakeholder
     bands as one two-tier navy header cell, so making that cell sticky freezes both rows
     together without altering any workflow or column markup. */
  .operating-model-table thead tr:not(.channel-section-row) > th {
    position: sticky;
    top: var(--operating-header-offset, 0px);
    z-index: 20;
    background: #24405A;
    box-shadow: 0 2px 0 rgba(36, 64, 90, .12), 0 4px 8px rgba(36, 64, 90, .10);
  }
  .operating-model-table thead tr:not(.channel-section-row) .stakeholder-process-header {
    z-index: 21;
  }
  /* A clipped ancestor disables viewport sticky positioning in several browsers. */
  .operating-model-wrap { overflow: visible; }

  /* Executive refinement: preserve stakeholder columns while making each band only as tall
     as its workflow requires. The process canvas retains the majority of page width. */
  .operating-model-table { font-size: 10px; }
  .operating-model-table thead th { padding: 7px 9px; }
  .operating-model-table .channel-section-row th { padding: 7px 10px; }
  .stakeholder-process-header > span { padding: 6px 9px 5px; font-size: 10px; }
  .stakeholder-column-headings span { min-height: 28px; padding: 3px 4px; font-size: 9.25px; font-weight: 800; }
  .content-type-strip th { padding: 3px 6px; }
  .content-type-name { font-size: 9.75px; }
  .operating-model-row .operating-cell { padding: 2px; }
  .operating-model-row .operating-copy { padding: 3px 6px; color: #334155; font-size: 9.5px; line-height: 1.18; }
  .operating-process { padding: 2px; }
  .stakeholder-column-map { border-color: #AABFCE; }
  .stakeholder-column-band { border-right-color: #D2DEE7; }
  .stakeholder-column-map .swim-stage,
  .stakeholder-column-map .campaign-choice-card { top: calc(var(--slot) * 42px + 5px); height: 31px; }
  .stakeholder-column-map .swim-stage { padding: 1px 4px; border-color: #8BA3B5; border-radius: 1px; }
  .stakeholder-column-map .swim-stage p { color: #1F3446; font-size: 9.7px; font-weight: 700; line-height: 1.08; }
  .stakeholder-column-map .swim-stage .step-number { width: 12px; height: 12px; flex: 0 0 12px; font-size: 7px; }
  .stakeholder-column-map .campaign-choice-card { padding: 1px 3px; color: #334155; font-size: 7.75px; }
  .stakeholder-column-map .swim-connectors path { stroke: #C97835; stroke-width: 1.4; }
  .stakeholder-column-map .swim-connectors marker path { fill: #C97835; }

  /* Adaptive compact cards: labels wrap naturally and taller cards are isolated to their
     own workflow slot. Nothing is clipped to make the operating model denser. */
  .stakeholder-column-map .swim-stage,
  .stakeholder-column-map .campaign-choice-card {
    left: calc(var(--column-start) + max(8px, (var(--column-width) - 210px) / 2));
    width: min(210px, calc(var(--column-width) - 16px));
    top: var(--y);
    height: var(--card-height);
    min-height: 0;
  }
  .stakeholder-column-map .swim-stage { overflow: visible; align-items: stretch; }
  .stakeholder-column-map .swim-stage > div { align-items: flex-start; }
  .stakeholder-column-map .swim-stage p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .stakeholder-column-map .campaign-choice-card {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.12;
  }

  /* Stakeholder-column process matrix. Content types stay as compact horizontal blocks;
     responsibility is now read vertically by stakeholder, with flow connectors crossing
     between columns. These rules deliberately override the former row-lane treatment. */
  .stakeholder-process-header { padding: 0 !important; }
  .stakeholder-process-header > span { display: block; padding: 8px 9px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .stakeholder-column-headings { display: grid; grid-template-columns: repeat(var(--stakeholder-count), minmax(0, 1fr)); border-top: 1px solid rgba(220,234,245,.24); }
  .stakeholder-column-headings span { display: flex; min-height: 28px; align-items: center; justify-content: center; padding: 3px 3px; border-right: 1px solid rgba(220,234,245,.24); color: #fff; text-align: center; font-size: 8px; font-weight: 700; line-height: 1.05; text-transform: none; letter-spacing: 0; }
  .stakeholder-column-headings span:last-child { border-right: 0; }
  .stakeholder-column-map { position: relative; overflow: hidden; border: 1px solid #AABFCE; background: #fff; }
  .stakeholder-inline-headings { display: grid; grid-template-columns: repeat(var(--stakeholder-count), minmax(0, 1fr)); border-bottom: 1px solid #9FB9CF; background: #E9F2F8; }
  .stakeholder-inline-headings span { display: flex; min-height: 34px; align-items: center; justify-content: center; padding: 4px 5px; border-right: 1px solid #C7D4DF; color: #1B2F44; text-align: center; font-size: 9.5px; font-weight: 800; line-height: 1.08; }
  .stakeholder-inline-headings span:last-child { border-right: 0; }
  .stakeholder-column-map .stakeholder-surface { position: relative; width: 100%; height: 100%; overflow: hidden; }
  .stakeholder-column-band { position: absolute; top: 0; bottom: 0; display: block; box-sizing: border-box; border-right: 1px solid #D7E2EA; background: rgba(248,251,253,.72); }
  .stakeholder-column-band:nth-child(even) { background: #fff; }
  .stakeholder-column-band:last-of-type { border-right: 0; }
  .stakeholder-column-map .swim-connectors { z-index: 2; overflow: visible; }
  .stakeholder-column-map .swim-connectors path { stroke: #C97835; stroke-width: 1.35; vector-effect: non-scaling-stroke; stroke-linecap: square; stroke-linejoin: round; }
  .stakeholder-column-map .swim-connectors marker path { fill: #C97835; }
  .stakeholder-column-map .swim-stage,
  .stakeholder-column-map .campaign-choice-card { position: absolute; z-index: 3; left: calc(var(--column) * (100% / var(--stakeholder-count)) + 5px); width: calc(100% / var(--stakeholder-count) - 10px); top: calc(var(--slot) * 54px + 6px); height: 42px; box-sizing: border-box; }
  .stakeholder-column-map .swim-stage { display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid #8FA6B8; border-radius: 2px; background: #fff; padding: 3px 5px; box-shadow: none; }
  .stakeholder-column-map .swim-stage:hover { z-index: 4; border-color: #C97835; box-shadow: 0 2px 6px rgba(36,64,90,.10); transform: none; }
  .stakeholder-column-map .swim-stage p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #273A4A; font-size: 9.5px; font-weight: 700; line-height: 1.08; }
  .stakeholder-column-map .swim-stage .step-number { width: 13px; height: 13px; border-radius: 2px; font-size: 7px; }
  .stakeholder-column-map .campaign-choice-card { display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #B7C6D2; border-radius: 2px; background: #F8FBFD; color: #405A70; padding: 3px 4px; text-align: center; font-size: 8px; font-weight: 600; line-height: 1.08; }
  .stakeholder-column-map .campaign-choice-card:hover { z-index: 4; border-color: #C97835; background: #fff; color: #24405A; }
  .operating-model-row .operating-process { padding: 3px; background: #F9FCFE; }
  @media (max-width: 900px) {
    .stakeholder-column-headings span, .stakeholder-inline-headings span { font-size: 7px; }
    .stakeholder-column-map .swim-stage p { font-size: 8.5px; }
    .stakeholder-column-map .campaign-choice-card { font-size: 7px; }
  }

  /* Responsibility-matrix view: mirrors the concise Excel operating model reference. */
  .responsibility-section + .responsibility-section { margin-top: 10px; border-top: 8px solid #F1F5F9; }
  .matrix-channel-strip { padding: 7px 10px; border: 1px solid #8FA6B8; border-bottom: 0; background: #DCEAF5; color: #1B2F44; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
  .responsibility-matrix { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; }
  .responsibility-matrix .matrix-stakeholder-col { width: 12%; }
  .responsibility-matrix th, .responsibility-matrix td { border: 1px solid #B7C6D2; vertical-align: middle; }
  .responsibility-matrix thead th { background: #24405A; color: #fff; }
  .matrix-corner { padding: 7px 6px; color: #fff; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
  .matrix-content-header { padding: 5px 4px; text-align: center; }
  .matrix-content-name { display: block; min-height: 22px; color: #fff; font-size: 9px; font-weight: 800; line-height: 1.12; text-transform: uppercase; }
  .matrix-header-actions { display: flex; justify-content: center; gap: 2px; margin-top: 3px; }
  .matrix-header-actions button { border: 1px solid rgba(220,234,245,.48); border-radius: 2px; background: rgba(255,255,255,.10); color: #fff; padding: 2px 3px; font-size: 7px; font-weight: 600; line-height: 1; white-space: nowrap; }
  .matrix-header-actions button:hover { background: #fff; color: #24405A; }
  .matrix-metadata-row th, .matrix-responsible-row th { padding: 5px 6px; background: #9FBFDC; color: #1B2F44; text-align: center; font-size: 8.5px; font-weight: 800; }
  .matrix-metadata-row td { padding: 5px 6px; background: #F8FBFD; color: #405A70; font-size: 8.5px; line-height: 1.18; }
  .matrix-responsible-row td { height: 3px; padding: 0; background: repeating-linear-gradient(135deg, #fff 0 2px, #EEF3F7 2px 4px); }
  .matrix-stakeholder-row th { padding: 6px 5px; background: #F3F6F8; color: #24405A; text-align: center; font-size: 9px; font-weight: 800; line-height: 1.1; }
  .matrix-stakeholder-row td { min-height: 42px; padding: 4px; background: #fff; text-align: left; }
  .matrix-stakeholder-row:nth-child(even) td { background: #FBFDFF; }
  .matrix-empty { display: block; color: #C7D4DF; text-align: center; font-size: 10px; }
  .matrix-step-card { display: flex; width: 100%; align-items: flex-start; gap: 4px; border: 1px solid #AABFCE; border-radius: 2px; background: #fff; color: #273A4A; margin: 0 0 4px; padding: 4px 5px; text-align: left; font-size: 8.75px; font-weight: 700; line-height: 1.1; box-shadow: none; }
  .matrix-step-card:last-child { margin-bottom: 0; }
  .matrix-step-card:hover, .matrix-step-card.has-open { border-color: #C97835; background: #FFFDFC; box-shadow: 0 1px 4px rgba(36,64,90,.10); }
  .matrix-step-number { display: inline-flex; width: 14px; height: 14px; flex: 0 0 14px; align-items: center; justify-content: center; border-radius: 2px; background: #DCEAF5; color: #24405A; font-size: 7.5px; font-weight: 800; }
  .matrix-template-choice { display: block; width: 100%; border: 1px solid #C7D4DF; border-radius: 2px; background: #F8FBFD; color: #405A70; margin-top: 4px; padding: 3px 4px; text-align: center; font-size: 7.5px; font-weight: 600; line-height: 1.08; }
  .matrix-template-choice:hover { border-color: #C97835; background: #fff; color: #24405A; }
  .matrix-detail-host .detail-panel { background: #F8FBFD; }
  @media (max-width: 900px) {
    .responsibility-matrix .matrix-stakeholder-col { width: 15%; }
    .matrix-content-name { font-size: 7.5px; }
    .matrix-header-actions button, .matrix-template-choice { font-size: 6.5px; }
    .matrix-step-card { font-size: 7.5px; padding: 3px; }
  }

  /* Final swim-lane density pass: compact cards create deliberate connector gutters. */
  .stakeholder-inline-headings span { min-height: 28px; padding: 3px 4px; font-size: 9px; }
  .stakeholder-column-map .swim-stage,
  .stakeholder-column-map .campaign-choice-card { left: calc(var(--column) * (100% / var(--stakeholder-count)) + max(8px, (100% / var(--stakeholder-count) - 210px) / 2)); width: min(210px, calc(100% / var(--stakeholder-count) - 16px)); top: calc(var(--slot) * 46px + 6px); height: 34px; }
  .stakeholder-column-map .swim-stage { padding: 2px 4px; }
  .stakeholder-column-map .swim-stage p { font-size: 9.25px; line-height: 1.05; }
  .stakeholder-column-map .swim-stage .step-number { width: 12px; height: 12px; font-size: 7px; }
  .stakeholder-column-map .campaign-choice-card { padding: 2px 3px; font-size: 7.5px; }
  .stakeholder-column-map .swim-connectors path { stroke: #C97835; stroke-width: 1.7; }
  .stakeholder-column-headings span { min-height: 30px; padding: 4px 4px; font-size: 9px; font-weight: 800; line-height: 1.08; }

  .operating-model-table .operating-model-row .operating-copy { background: #fff; }

  /* People & Culture campaign alternatives: compact separate boxes inside the existing stage. */
  .swim-stage.has-options { height: 76px !important; justify-content: flex-start; padding: 3px 4px; }
  .campaign-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 3px; }
  .campaign-option-grid span { display: flex; align-items: center; min-height: 12px; border: 1px solid #C7D4DF; background: #F8FBFD; color: #405A70; padding: 1px 3px; font-size: 7.25px; font-weight: 500; line-height: 1.08; }

  .campaign-choice-card { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #B7C6D2; border-radius: 1px; background: #F8FBFD; color: #405A70; padding: 2px 4px; text-align: center; font-size: 8.5px; font-weight: 600; line-height: 1.08; }
  .campaign-choice-card:hover { z-index: 4; border-color: #C97835; background: #fff; color: #24405A; }
  .swim-stage .process-step-meta { display: none; }
  .table-actions { gap: 3px; margin-top: 4px; }
  .table-action { padding: 1px 4px; font-size: 8px; }

  /* Diagram-scale swim lane: deliberately not a tight grid. */
  .operating-model-table thead th:nth-child(1) { width: 10%; }
  .operating-model-table thead th:nth-child(2) { width: 10%; }
  .operating-model-table thead th:nth-child(3) { width: 70%; }
  .operating-model-table thead th:nth-child(4) { width: 10%; }
  .operating-type p { font-size: 10px; }
  .operating-copy { color: #94A3B8; font-size: 9px; line-height: 1.2; }
  .operating-process { padding: 5px 6px; background: #F8FBFD; }
  .stakeholder-map { border-color: #9FB9CF; background: #fff; }
  .stakeholder-labels { flex-basis: 88px; background: #EEF6FB; }
  .stakeholder-labels div { padding: 5px 4px; font-size: 8.5px; letter-spacing: .01em; }
  .stakeholder-surface { overflow: visible; }
  .swim-band { background: #fff; border-bottom-color: #C7D4DF; }
  .swim-band:nth-child(even) { background: #F7FAFC; }
  .swim-connectors { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .swim-connectors path { fill: none; stroke: #E6792A; stroke-width: .34; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: square; }
  .swim-connectors marker path { fill: #E6792A; stroke: none; }
  .swim-stage { z-index: 3; box-sizing: border-box; border: 1.5px solid #5A7A93; border-radius: 2px; background: #fff; padding: 7px 9px; box-shadow: 0 1px 1px rgba(36,64,90,.06); }
  .swim-stage:hover { border-color: #E6792A; box-shadow: 0 3px 8px rgba(36,64,90,.14); }
  .swim-stage p { font-size: 10.5px; line-height: 1.18; letter-spacing: -.01em; }
  .swim-stage .step-number { width: 16px; height: 16px; font-size: 8px; border-radius: 2px; }
  .swim-stage .process-step-meta { display: flex; margin-top: 3px; }

  /* High-density leadership view: compact lanes, visible titles, prominent flow lines. */
  .operating-cell { padding: 3px 4px; }
  .operating-process { padding: 2px 3px; }
  .operating-copy { font-size: 8.5px; line-height: 1.16; }
  .operating-type p { font-size: 9.5px; line-height: 1.1; }
  .table-actions { margin-top: 3px; gap: 2px; }
  .table-action { font-size: 7.5px; padding: 1px 3px; }
  .stakeholder-labels { flex-basis: 64px; }
  .stakeholder-labels div { padding: 2px; font-size: 7.5px; line-height: 1.05; }
  .swim-stage { padding: 3px 5px; border-width: 1px; }
  .swim-stage p { font-size: 9.25px; line-height: 1.08; }
  .swim-stage .step-number { width: 13px; height: 13px; font-size: 7px; }
  .swim-stage .process-step-meta { display: none; }
  .swim-connectors path { stroke: #D8611C; stroke-width: 2.5; vector-effect: none; }
  .swim-connectors marker path { fill: #D8611C; }

  /* Compact content-type strips: the operating canvas receives the recovered width. */
  .operating-model-table thead th:nth-child(1) { width: 11%; }
  .operating-model-table thead th:nth-child(2) { width: 78%; }
  .operating-model-table thead th:nth-child(3) { width: 11%; }
  .content-type-strip th { padding: 4px 6px; background: #F1F6FA; border-bottom: 1px solid #B7C6D2; color: #24405A; text-align: left; }
  .content-type-name { display: inline-block; margin-right: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
  .content-type-strip .table-actions { display: inline-flex; vertical-align: middle; margin: 0; }
  .operating-model-row .operating-cell { padding: 2px 3px; }
  .operating-model-row .operating-copy { padding: 4px 5px; color: #64748B; font-size: 9px; line-height: 1.18; }
  .operating-process { padding: 2px; background: #F9FCFE; }
  .stakeholder-labels { flex-basis: 60px; }
  .stakeholder-labels div { padding: 1px; font-size: 7.5px; line-height: 1.05; }
  .swim-stage { padding: 2px 4px; border-color: #8FA6B8; box-shadow: none; }
  .swim-stage p { font-size: 9.25px; line-height: 1.08; }
  .swim-stage .step-number { width: 12px; height: 12px; font-size: 7px; }
  .swim-stage .process-step-meta { display: none; }
  .swim-connectors path { stroke: #C97835; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
  .swim-connectors marker path { fill: #C97835; }

  /* Final density pass: stronger text-to-node ratio and a visible vertical hand-off gap. */
  .operating-model-row .operating-copy { padding: 3px 5px; color: #475569; font-size: 9.5px; line-height: 1.18; }
  .swim-stage { padding: 1px 3px; }
  .swim-stage p { font-size: 9.75px; line-height: 1.05; }
  .swim-stage .step-number { width: 12px; height: 12px; font-size: 7px; }

  /* Adaptive stage placement replaces the historic equal-column / fixed-slot grid. */
  .stakeholder-column-map .swim-stage,
  .stakeholder-column-map .campaign-choice-card {
    left: calc(var(--column-start) + max(8px, (var(--column-width) - 210px) / 2));
    width: min(210px, calc(var(--column-width) - 16px));
    top: var(--y);
    height: var(--card-height);
    min-height: 0;
  }
  .stakeholder-column-map .swim-stage { overflow: visible; align-items: stretch; }
  .stakeholder-column-map .swim-stage > div { align-items: flex-start; }
  .stakeholder-column-map .swim-stage p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .stakeholder-column-map .campaign-choice-card {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.12;
  }

  /* Typography override placed last so the compact legacy rules cannot reduce legibility. */
  .operating-model-row > td:first-child.operating-copy,
  .operating-model-row > td:last-child.operating-copy { color: #334155; font-size: 10.25px; line-height: 1.2; }
  .table-action { color: #24405A; font-size: 8.75px; font-weight: 650; line-height: 1.15; padding: 1px 4px; }
  .content-type-name { font-size: 10px; }
  .stakeholder-column-map .swim-stage { padding: 0 3px; }
  .stakeholder-column-map .swim-stage p { color: #172B3A; font-size: 10.15px; font-weight: 700; line-height: 1.07; }
  .stakeholder-column-map .swim-stage .step-number { margin-top: 1px; }

/* ---- Requested visual adjustments: thinner connector lines, bigger/bulleted Supply &
   Demand text. Placed last so it wins over every earlier pass above without needing to
   hunt down each scattered duplicate rule. ---- */
.swim-connectors path {
  stroke-width: 1 !important;
}
.swim-connectors marker path {
  fill: #C97835 !important;
}
.operating-model-row > td.operating-copy {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #1F2E3B !important;
  padding: 12px 14px !important;
}
.operating-bullet-item {
  display: block;
}
