:root {
  --brand-primary: #004f9e;
  --brand-secondary: #18b2e8;
  --brand-accent: #e9580c;
  --brand-accent-guide: #f26b43;
  --brand-accent-soft: #fff1e8;
  --brand-accent-soft-strong: #ffe4d4;
  --brand-accent-edge: #f0bd9d;
  --brand-accent-ink: #8f3f0d;
  --brand-ink: #17245f;
  --brand-muted: #575756;
  --bg: #f3f7fb;
  --surface: #f3f7fb;
  --card: #ffffff;
  --edge: #cfdae8;

  /* Area-specific accent — overridden per body[data-area-key] below */
  --area-grad-from: #0f1f64;
  --area-grad-to:   #18b2e8;
  --area-accent:    #004f9e;
}

/* ── Per-area colour identity ──────────────────────────── */
body[data-area-key="methodik"] {
  --area-grad-from: #0f1f64;
  --area-grad-to:   #18b2e8;
  --area-accent:    #004f9e;
}
body[data-area-key="phasen"] {
  --area-grad-from: #003D2E;
  --area-grad-to:   #00BCD4;
  --area-accent:    #00897B;
}
body[data-area-key="testing"] {
  --area-grad-from: #6B1A00;
  --area-grad-to:   #F57F17;
  --area-accent:    #BF360C;
}
body[data-area-key="tools"] {
  --area-grad-from: #0D1857;
  --area-grad-to:   #1976D2;
  --area-accent:    #283593;
}
body[data-area-key="rollen"] {
  --area-grad-from: #280040;
  --area-grad-to:   #CE93D8;
  --area-accent:    #7B1FA2;
}
body[data-area-key="support"] {
  --area-grad-from: #002E22;
  --area-grad-to:   #00BCD4;
  --area-accent:    #00838F;
}
body[data-area-key="delivery"] {
  --area-grad-from: #5C1800;
  --area-grad-to:   #F57C00;
  --area-accent:    #C84B00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", Arial, sans-serif;
  color: var(--brand-ink);
  background: #eef2f6;
}

.wave-bg {
  position: fixed;
  top: -120px;
  right: -120px;
  width: min(760px, 72vw);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

.shell {
  width: 100%;
  max-width: none;
  margin: 8px 0 40px;
  padding: 0 16px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 10px;
}

.topbar-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2f4766;
  letter-spacing: 0.02em;
}


.lang-control {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-control label {
  font-size: 0.78rem;
  color: #2f4766;
}

.lang-control select {
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.global-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid #d4e2f4;
  color: #1f4271;
  padding: 6px 11px;
  background: #f7fbff;
}

.global-nav a.active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 9px rgba(0, 79, 158, 0.2), 0 0 0 1px rgba(233, 88, 12, 0.2);
}

.logo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 120ms ease;
}
.logo-btn:hover {
  opacity: 0.72;
}
.logo-btn:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.logo {
  width: 110px;
  height: auto;
}

.kicker {
  margin: 0;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

h1 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.layer-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.start-cue {
  margin: -2px 0 12px;
  color: #2e4768;
  font-size: 0.9rem;
}

.layer-btn {
  border: 1px solid #c9d9ee;
  background: #f4f9ff;
  color: #1f4271;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.layer-btn.active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 79, 158, 0.22), 0 0 0 1px rgba(233, 88, 12, 0.2);
}

.journey-stepper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.journey-stepper .layer-btn {
  position: relative;
  border: 1px solid #cddced;
  border-radius: 10px;
  padding: 8px 10px 8px 40px;
  width: 100%;
  min-height: 38px;
  background: #f7fbff;
  color: #244a75;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.01em;
}

.journey-stepper .layer-btn::before {
  content: attr(data-step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #9ebddb;
  background: #fff;
  color: #2b5e95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.journey-stepper .layer-btn:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: #b6d0e8;
}

.journey-stepper .layer-btn:not(.active) {
  background: #f7fbff;
}

.journey-stepper .layer-btn.active {
  background: linear-gradient(135deg, #e7f3ff, #f4faff);
  border-color: #9cc5e8;
  color: #123f73;
  box-shadow: 0 0 0 2px rgba(24, 178, 232, 0.15);
}

.journey-stepper .layer-btn.active::before {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-color: transparent;
  color: #fff;
}

/* ── Subpage journey stepper (uses <a> instead of <button>) ── */
/* Mirrors .journey-stepper .layer-btn exactly for link-based nav */

.journey-stepper .layer-link {
  position: relative;
  border: 1px solid #cddced;
  border-radius: 10px;
  padding: 8px 10px 8px 40px;
  width: 100%;
  min-height: 38px;
  background: #f7fbff;
  color: #244a75;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-sizing: border-box;
}

.journey-stepper .layer-link::before {
  content: attr(data-step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #9ebddb;
  background: #fff;
  color: #2b5e95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.journey-stepper .layer-link:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: #b6d0e8;
}

.journey-stepper .layer-link:not(.active) {
  background: #f7fbff;
}

.journey-stepper .layer-link.active {
  background: linear-gradient(135deg, #e7f3ff, #f4faff);
  border-color: #9cc5e8;
  color: #123f73;
  box-shadow: 0 0 0 2px rgba(24, 178, 232, 0.15);
}

.journey-stepper .layer-link.active::before {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-color: transparent;
  color: #fff;
}

.layer-link {
  text-decoration: none;
  border: 1px solid #c9d9ee;
  background: #f4f9ff;
  color: #1f4271;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.layer-link.active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 79, 158, 0.2), 0 0 0 1px rgba(233, 88, 12, 0.2);
}

.layer-content {
  display: none;
}

.layer-content.active {
  display: block;
}

.overview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: start;
}

.overview-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #c7d8eb;
  border-radius: 10px;
  padding: 10px 10px 8px;
  align-self: start;
}

.overview-card.is-hidden {
  display: none;
}

.overview-card.is-relevant {
  border-color: var(--brand-accent);
  border-left: 3px solid var(--brand-accent);
}

.overview-main {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
}

.overview-text h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  line-height: 1.2;
  color: #223f69;
}

.overview-num {
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 800;
  color: #d7e5f6;
  letter-spacing: 0.02em;
  display: inline-block;
  min-width: 44px;
  text-align: left;
}

.overview-text p {
  margin: 0;
  color: #314764;
  line-height: 1.35;
  font-size: 0.84rem;
}

.overview-more {
  margin-top: 8px;
  border-top: 1px solid #d7e3f0;
  padding-top: 7px;
}

.overview-more > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.74rem;
  font-weight: 700;
  color: #2a578f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overview-more > summary::-webkit-details-marker {
  display: none;
}

.overview-more > summary::after {
  content: "+";
  font-weight: 800;
  color: #2d5f99;
}

.overview-more[open] > summary::after {
  content: "−";
  font-weight: 800;
  color: #2d5f99;
}

.overview-more p {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #3b5474;
  line-height: 1.35;
}

.overview-card-role-note {
  margin-top: 6px;
  margin-bottom: 4px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--brand-secondary) 8%, transparent);
  border-left: 2px solid var(--brand-secondary);
  border-radius: 0 6px 6px 0;
  font-size: 0.75rem;
  color: #1a3a60;
  line-height: 1.4;
}

/* ── Layer 3 / Deep-Dive ─────────────────────────────────── */

.layer3-hub {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.layer3-panel {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0, 44, 96, 0.07), 0 1px 4px rgba(0, 44, 96, 0.04);
  min-width: 0;
  transition: box-shadow 160ms ease;
}

.layer3-panel-emph {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--brand-primary) 6%, white) 0%,
    color-mix(in srgb, var(--brand-secondary) 8%, white) 100%);
  border-color: color-mix(in srgb, var(--brand-primary) 22%, var(--edge));
  box-shadow: 0 6px 24px rgba(0, 79, 158, 0.10), 0 1px 4px rgba(0, 79, 158, 0.06);
}

.layer3-panel h3 {
  margin: 6px 0 0;
  font-size: 1.02rem;
  color: var(--brand-ink);
}

.layer3-copy {
  margin: 8px 0 14px;
  color: var(--brand-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.layer3-field {
  display: grid;
  gap: 5px;
}

.layer3-field span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.layer3-field .role-select {
  min-width: 0;
  width: 100%;
}

.layer3-panel .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

/* "Other entry paths" collapsible panel */
.layer3-optional > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 14px;
}

.layer3-optional > summary::-webkit-details-marker {
  display: none;
}

.layer3-optional > summary::before {
  content: "›";
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease;
  color: var(--brand-secondary);
}

.layer3-optional[open] > summary::before {
  transform: rotate(90deg);
}

.layer3-optional-body {
  display: grid;
  gap: 20px;
}

/* Sub-section headings inside optional panel */
.layer3-optional-body .kicker {
  margin-bottom: 3px;
}

.layer3-optional-body h3 {
  margin: 3px 0 6px;
  font-size: 0.96rem;
  color: var(--brand-ink);
}

/* Area entry link cards */
.layer3-link-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.layer3-link-card {
  text-decoration: none;
  border: 1px solid var(--edge);
  border-left: 3px solid color-mix(in srgb, var(--brand-primary) 40%, var(--edge));
  border-radius: 10px;
  background: var(--card);
  padding: 10px 12px;
  display: block;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.layer3-link-card:hover {
  border-left-color: var(--brand-primary);
  border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--edge));
  box-shadow: 0 4px 14px rgba(0, 79, 158, 0.10);
  transform: translateY(-1px);
}

.layer3-link-title {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 0.86rem;
}

.layer3-link-meta {
  margin: 3px 0 0;
  color: var(--brand-muted);
  font-size: 0.74rem;
}

/* Process hotspot buttons */
.layer3-node-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.layer3-node-btn {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.layer3-node-btn:hover {
  border-color: color-mix(in srgb, var(--brand-secondary) 50%, var(--edge));
  box-shadow: 0 3px 12px rgba(24, 178, 232, 0.12);
  transform: translateY(-1px);
}

.layer3-node-lane {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  font-weight: 600;
}

.layer3-node-title {
  font-size: 0.84rem;
  color: var(--brand-ink);
  line-height: 1.35;
  font-weight: 600;
}

.layer3-utility-btn {
  width: 100%;
  margin-top: 10px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.master-slide {
  background: linear-gradient(135deg, var(--area-grad-from) 0%, var(--area-accent) 45%, var(--area-grad-to) 100%);
  border-radius: 18px;
  color: #fff;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 44, 96, 0.2);
}

.slide-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
}

.master-slide h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
}

.master-slide p {
  margin: 0;
  max-width: 820px;
  line-height: 1.45;
}

.master-slide--compact {
  padding: 18px 24px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.master-slide--compact h2 {
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.master-slide--compact p {
  font-size: 0.86rem;
  opacity: 0.88;
  line-height: 1.4;
}

.meta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
}

.area-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.area-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(7, 30, 67, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.area-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.area-card p {
  margin: 0;
  color: #2a3a54;
  line-height: 1.4;
  flex: 1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  background: #eef5ff;
  color: var(--brand-primary);
  border: 1px solid #cfe2fb;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 3px 8px;
}

.badge:nth-child(even) {
  background: var(--brand-accent-soft);
  border-color: var(--brand-accent-edge);
  color: var(--brand-accent-ink);
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.56;
  pointer-events: none;
}

.btn.ghost {
  background: #fff;
  border: 1px solid var(--edge);
  color: var(--brand-ink);
}

.overview-toggle {
  margin-top: 10px;
}

/* ── Role Gate ───────────────────────────────────────── */
.role-gate[hidden] {
  display: none;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.role-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 4vw, 40px);
  gap: 28px;
  animation: fadeSlideUp 0.28s ease both;
}

.role-gate-header {
  text-align: center;
  max-width: 520px;
}

.role-gate-headline {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  color: var(--brand-ink);
  font-weight: 700;
  line-height: 1.25;
}

.role-gate-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.role-gate-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
}

.gate-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #cddaee;
  border-radius: 14px;
  padding: 20px 18px 16px;
  width: 140px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  text-align: center;
}

.gate-role-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: 0 4px 16px rgba(24, 178, 232, 0.18);
  transform: translateY(-2px);
}

.gate-role-card.is-selected {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(24, 178, 232, 0.30);
  transform: translateY(-2px);
}

.gate-role-card.is-selected .gate-role-name {
  color: #fff;
}

.gate-role-card.is-selected .gate-role-icon {
  color: #fff;
}

.gate-role-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.gate-role-icon svg {
  width: 36px;
  height: 36px;
}

.gate-role-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.25;
}

/* ── Role Hook ───────────────────────────────────────── */
.role-hook[hidden] {
  display: none;
}
.role-hook {
  padding: clamp(28px, 5vw, 52px) 0;
  display: flex;
  justify-content: center;
  animation: fadeSlideUp 0.32s ease both;
}

.role-hook-inner {
  background: linear-gradient(135deg, #0f1f64 0%, #004f9e 45%, #18b2e8 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 18px 40px rgba(0, 44, 96, 0.22);
  padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 48px);
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.role-hook-sentence {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
}

.role-hook-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.role-hook-change {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  background: transparent;
}

.role-hook-change:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── Overview role bar + relevance badge ─────────────── */
.overview-content {
  display: flex;
  flex-direction: column;
  animation: fadeSlideUp 0.32s ease both;
}
.overview-content[hidden] {
  display: none;
}

.overview-role-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.overview-role-label {
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.overview-role-label strong {
  color: var(--brand-ink);
}

.overview-change-role {
  font-size: 0.78rem;
  padding: 4px 10px;
}

.overview-relevance-badge {
  display: inline-block;
  margin-top: auto;
  padding: 3px 10px;
  align-self: flex-start;
  background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
  color: var(--brand-accent);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, transparent);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
  margin-top: 10px;
}

.detail-head {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 4px 18px rgba(0, 44, 96, 0.07);
}

.summary {
  margin: 6px 0 0;
  color: var(--brand-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.detail-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}

.area-switch {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 44, 96, 0.05);
}

.area-switch-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-switch-link {
  text-decoration: none;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--brand-primary);
  padding: 5px 13px;
  background: var(--card);
  transition: background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.area-switch-link:hover {
  background: color-mix(in srgb, var(--brand-primary) 6%, white);
  border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--edge));
}

.area-switch-link.active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 9px rgba(0, 79, 158, 0.2), 0 0 0 1px rgba(233, 88, 12, 0.2);
}

.area-switch-link.role-view {
  border-color: var(--brand-accent-edge);
  background: var(--brand-accent-soft);
  color: var(--brand-accent-ink);
}

.area-switch-link.role-view:hover {
  background: var(--brand-accent-soft-strong);
  border-color: var(--brand-accent-guide);
}

.filters {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px;
  align-self: start;
  box-shadow: 0 4px 18px rgba(0, 44, 96, 0.07);
}

.filters h3 {
  margin-top: 0;
  font-size: 0.96rem;
  color: var(--brand-ink);
}

.filters label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.filters select {
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 8px;
  background: var(--card);
  color: var(--brand-ink);
  transition: border-color 130ms ease;
}

.filters select:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-secondary) 20%, transparent);
}

.detail-content {
  min-width: 0;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--area-accent);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0, 44, 96, 0.05);
  transition: box-shadow 140ms ease, transform 140ms ease;
  animation: cardIn 0.24s ease both;
}

.detail-card:hover {
  box-shadow: 0 6px 20px rgba(0, 79, 158, 0.10);
  transform: translateY(-1px);
}

.detail-card h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.detail-card p {
  margin: 0 0 10px;
  color: #2b3d59;
}

.card-more {
  margin-top: 8px;
  border-top: 1px solid #dbe5f2;
  padding-top: 6px;
}

.card-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2a578f;
}

.card-more > summary::-webkit-details-marker {
  display: none;
}

.card-more > summary::after {
  content: "+";
  float: right;
  color: #2d5f99;
}

.card-more[open] > summary::after {
  content: "−";
}

.meta-block {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-chip {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  background: #f5f8fc;
  border: 1px solid #d8e3f2;
  color: #2f496e;
}

.meta-chip.tool {
  background: #eefaf9;
  border-color: #c8ece8;
  color: #12675d;
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--edge);
  border-radius: 12px;
  padding: 16px;
  color: #3b4f71;
}

.role-focus-note {
  background: #f3f8ff;
  border: 1px solid #d5e5f7;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  color: #2a486d;
  font-size: 0.86rem;
}

.section-head {
  margin-top: 22px;
}

.section-head.compact {
  margin-top: 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-head p {
  margin: 6px 0 0;
  color: #314765;
}

.collapse-panel {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #cddaea;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.collapse-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
  border-bottom: 1px solid #dbe7f5;
  font-weight: 700;
  color: #1f4271;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapse-panel > summary::-webkit-details-marker {
  display: none;
}

.collapse-panel > summary::after {
  content: "+";
  font-weight: 800;
  color: #2d5f99;
}

.collapse-panel[open] > summary::after {
  content: "−";
}

.collapse-panel .section-head,
.collapse-panel .area-grid,
.collapse-panel .role-grid {
  padding-left: 14px;
  padding-right: 14px;
}

.collapse-panel .role-grid,
.collapse-panel .area-grid {
  padding-bottom: 14px;
}

.role-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.role-card {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(7, 30, 67, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.role-card p {
  margin: 0;
  color: #30445f;
  line-height: 1.4;
  flex: 1;
}

.process-tool-link {
  margin-top: 7px;
  border: 1px solid #f2bf98;
  background: #fff7f2;
  color: #9f4a0b;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.process-tool-link:hover {
  background: #ffefe4;
  border-color: #eaa06d;
}

.page-nav {
  margin: 2px 0 12px;
}

.shortcut-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e1e8f2;
}

.shortcut-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-link {
  font-size: 0.76rem;
  border-radius: 999px;
  padding: 4px 9px;
  text-decoration: none;
  background: #ecf3ff;
  border: 1px solid #cfe1fa;
  color: #1f4f86;
}

/* ── Subpage / Detail area redesign ─────────────────────── */

/* logo-btn as <a> tag on subpages */
a.logo-btn {
  text-decoration: none;
}

/* Hero block on detail pages */
.detail-hero {
  margin-top: 10px;
}

.detail-hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  margin: 4px 0 0;
}

.detail-hero-summary {
  font-size: 0.88rem;
  opacity: 0.88;
  margin: 6px 0 0;
  max-width: 720px;
  line-height: 1.5;
}

/* ── Role prompt (shown before role is chosen) ─────────── */

.detail-role-prompt {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.detail-role-prompt-inner {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 28px 32px 24px;
  box-shadow: 0 6px 24px rgba(0, 44, 96, 0.09);
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.detail-role-prompt-label {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.detail-role-prompt-selects {
  display: grid;
  gap: 10px;
}

.detail-role-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--edge);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--brand-ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  cursor: pointer;
}

.detail-role-select:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 18%, transparent);
}

.detail-role-prompt-hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--brand-muted);
  line-height: 1.4;
}

/* Hint text shown when no role is active yet */
.role-chip-hint {
  font-size: 0.78rem;
  color: var(--area-accent, var(--brand-primary));
  margin: 0 0 0 4px;
  font-weight: 600;
  opacity: 0.72;
  align-self: center;
}

/* ── Active role bar (compact strip above cards) ──────── */

.detail-active-role {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--brand-primary) 5%, white);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, var(--edge));
  border-radius: 999px;
  width: fit-content;
}

.detail-active-role-label {
  font-size: 0.72rem;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-active-role-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.detail-change-role-btn {
  background: none;
  border: none;
  padding: 0 0 0 4px;
  font-size: 0.72rem;
  color: var(--brand-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-change-role-btn:hover {
  color: var(--brand-primary);
}

/* ── Secondary filter panel (collapsible) ──────────────── */

.detail-filter-panel {
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
}

.detail-filter-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.detail-filter-panel > summary::-webkit-details-marker {
  display: none;
}

.detail-filter-panel > summary::before {
  content: "›";
  font-size: 1rem;
  transition: transform 160ms ease;
  color: var(--brand-secondary);
}

.detail-filter-panel[open] > summary::before {
  transform: rotate(90deg);
}

.detail-filter-count {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--brand-accent);
}

.detail-filter-body {
  border-top: 1px solid var(--edge);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.detail-filter-group {
  display: grid;
  gap: 4px;
  min-width: 180px;
  flex: 1;
}

.detail-filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.detail-filter-group select {
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.84rem;
  background: var(--card);
  color: var(--brand-ink);
  transition: border-color 130ms;
}

.detail-filter-group select:focus {
  outline: none;
  border-color: var(--brand-secondary);
}

/* ── Detail main content area ──────────────────────────── */

.detail-main {
  padding-top: 6px;
}

/* Meta chips: role variant */
.meta-chip--role {
  background: color-mix(in srgb, var(--brand-primary) 8%, white);
  border-color: color-mix(in srgb, var(--brand-primary) 25%, var(--edge));
  color: var(--brand-primary);
}

/* Meta chips: tool variant */
.meta-chip--tool {
  background: #eefaf9;
  border-color: #c8ece8;
  color: #12675d;
}

.meta-block--spaced {
  margin-top: 6px;
}

.meta-block--roles {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--edge);
}

.meta-block--tools {
  margin-top: 5px;
}

/* ── Card entry animation ────────────────────────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Entry count bar (above card grid) ───────────────── */
.entry-count-bar {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 2px;
}

.entry-count-bar strong {
  color: var(--area-accent, var(--brand-primary));
}

/* ── Role chip count badge ───────────────────────────── */
.role-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  background: rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  margin-left: 5px;
  line-height: 1;
  vertical-align: middle;
}

.role-chip--active .role-chip-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Improved role focus note */
.role-focus-note {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--area-accent) 7%, white),
    color-mix(in srgb, var(--area-accent) 3%, white)
  );
  border: 1px solid color-mix(in srgb, var(--area-accent) 22%, var(--edge));
  border-left: 4px solid var(--area-accent);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--brand-ink);
  font-size: 0.88rem;
  line-height: 1.65;
  font-style: italic;
}

/* Empty state with clear button */
.empty-state {
  background: var(--card);
  border: 1.5px dashed var(--edge);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  color: var(--brand-muted);
}

.empty-state p {
  margin: 0 0 12px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.role-control {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.role-control label {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 6px;
  color: #30445f;
}

.role-control select {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 8px;
}

.role-details-toggle {
  margin-top: 10px;
}

.role-section {
  background: #fff;
  border: 1px solid #d6e1f0;
  border-radius: 12px;
  padding: 12px;
}

.role-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.role-section-head h3 {
  margin: 0;
  font-size: 1rem;
}

.journey-grid {
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.journey-card {
  background: #fff;
  border: 1px solid #d6e2f2;
  border-top: 4px solid var(--brand-secondary);
  border-radius: 12px;
  padding: 12px;
}

.journey-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.journey-card p {
  margin: 0;
  color: #314764;
  line-height: 1.35;
}

.journey-time {
  margin: 0 0 6px;
  color: var(--brand-primary);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.journey-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.process-controls {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.role-select {
  min-width: 220px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 8px;
}

/* ── Role Chip Bar ───────────────────────────────────── */
.role-chip-bar {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--edge);
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--surface);
}

.role-chip-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
  white-space: nowrap;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-chip {
  border: 1px solid #c4d6ec;
  background: #f4f8fd;
  color: #1f4271;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease,
    box-shadow 120ms ease;
  line-height: 1.4;
}

.role-chip:hover {
  border-color: var(--brand-secondary);
  background: #e8f6fd;
}

.role-chip--active {
  background: linear-gradient(135deg, var(--area-grad-from, var(--brand-primary)), var(--area-grad-to, var(--brand-secondary)));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.role-chip--active:hover {
  background: linear-gradient(135deg, var(--area-grad-from, var(--brand-primary)), var(--area-accent, var(--brand-secondary)));
  border-color: transparent;
}

.utility-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 18, 40, 0.42);
  display: none;
  z-index: 18;
}

.utility-backdrop.open {
  display: block;
}

.utility-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: min(460px, 96vw);
  height: 100vh;
  background: #f7fbff;
  border-left: 1px solid #c7d9ef;
  box-shadow: -16px 0 36px rgba(4, 25, 55, 0.2);
  z-index: 19;
  transition: right 220ms ease;
  overflow: auto;
  padding: 14px 14px 18px;
}

.utility-panel.open {
  right: 0;
}

.tool-popover-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 18, 40, 0.38);
  display: none;
  z-index: 22;
}

.tool-popover-backdrop.open {
  display: block;
}

.tool-popover {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: min(560px, calc(100vw - 26px));
  max-height: min(78vh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid #c9daee;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 20, 47, 0.3);
  padding: 14px;
  display: none;
  z-index: 23;
}

.tool-popover.open {
  display: block;
}

.tool-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tool-popover-head .layer-close {
  position: static;
}

.tool-popover h3 {
  margin: 4px 0 8px;
  font-size: 1.08rem;
  color: #163d6b;
}

.tool-popover-summary {
  margin: 0 0 10px;
  color: #324d70;
  line-height: 1.4;
}

.tool-popover-section {
  margin-bottom: 10px;
}

.tool-popover-section h4 {
  margin: 0 0 5px;
  font-size: 0.86rem;
  color: #1b4576;
}

.tool-popover-context {
  margin: 0;
  color: #345377;
  line-height: 1.36;
}

.utility-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 8px;
}

.utility-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f406f;
}

.process-board {
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  /* subtle inset shadow hints at scrollability */
  -webkit-overflow-scrolling: touch;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  align-items: start;
  width: 100%;
  min-width: 1100px;
  gap: 10px;
}

.phase-labels {
  width: 100%;
  min-width: 1100px;
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}

.phase-label {
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}

.phase-label.pre,
.phase-label.post {
  background: linear-gradient(135deg, #0f1f64, #004f9e);
}

.phase-label.impl {
  background: linear-gradient(135deg, #005db8, #18b2e8);
}

.phase-label.pre {
  grid-column: 1;
}

.phase-label.impl {
  grid-column: 2 / span 4;
}

.phase-label.post {
  grid-column: 6;
}

.phase-chevron-row {
  display: grid;
  grid-template-columns: 1.2fr auto 1.6fr auto 2.6fr auto 1.2fr auto 0.9fr auto;
  gap: 0;
  align-items: center;
  margin-bottom: 10px;
  min-width: 1100px;
}

.chevron {
  position: relative;
  color: #fff;
  font-weight: 700;
  padding: 10px 26px 10px 16px;
  font-size: 0.88rem;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 10px 50%);
}

.chevron-discover {
  background: #0f58a8;
}

.chevron-prepare {
  background: #2ca9d6;
}

.chevron-optimize {
  background: #1768cb;
}

.chevron-deploy {
  background: #32add5;
}

.chevron-run {
  background: #f06300;
}

.milestone {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #0e5cae;
  color: #123f73;
  background: #f6fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  margin: 0 4px;
}

.phase-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.phase-column {
  background: #f2f4f6;
  border: 1px solid #b8cbe3;
  border-radius: 14px;
  padding: 0 0 12px;
  width: 100%;
  min-height: 260px;
  border-top: 6px solid var(--brand-primary);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.phase-column-header {
  padding: 10px 10px 8px;
  border-bottom: 1px solid #d0dcea;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.55);
  border-radius: 0 0 0 0;
  flex-shrink: 0;
}

.phase-column-body {
  padding: 0 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phase-column h3 {
  margin: 0;
  font-size: 0.84rem;
  color: #2a4468;
  line-height: 1.25;
}

.phase-index {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a7092;
}

.phase-column.lane-hit {
  box-shadow: 0 0 0 2px rgba(24, 178, 232, 0.18);
}

.phase-column.lane-dim {
  opacity: 0.5;
}

.process-node {
  width: 100%;
  text-align: left;
  border: 1px solid #bcc9d8;
  background: #f4f6f8;
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: 150ms ease;
}

.process-node:last-child {
  margin-bottom: 0;
}

.process-node:hover {
  transform: translateY(-1px);
  border-color: #9ec4ef;
}

.process-node .node-title {
  margin: 0;
  font-weight: 600;
  color: #163762;
  font-size: 0.79rem;
  line-height: 1.3;
}

.process-node .node-roles {
  margin-top: 6px;
  font-size: 0.68rem;
  color: #3f5f86;
}

.process-node.node-emph {
  border-left: 5px solid #e9580c;
  background: #fff;
}

.process-node.role-hit {
  border-color: #2a94dc;
  box-shadow: 0 0 0 2px rgba(24, 178, 232, 0.2);
  background: #eef8ff;
}

.process-node.role-dim {
  opacity: 0.42;
  filter: grayscale(0.25);
}

.detail-layer {
  position: fixed;
  inset: 0;
  background: rgba(6, 17, 38, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 20px;
}

.detail-layer.open {
  display: flex;
}

.detail-layer-card {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d0deef;
  padding: 16px;
  position: relative;
}

.detail-layer-card h3 {
  margin: 0 44px 8px 0;
  line-height: 1.25;
}

#layerDeepLink {
  margin-top: 14px;
}

.layer-surface {
  margin-top: 8px;
  background: #f8fbff;
  border: 1px solid #d7e3f2;
  border-radius: 12px;
  padding: 10px;
}

.layer-delivery-link {
  margin-top: 10px;
}

.layer-surface #layerGoal {
  margin: 0;
  font-size: 1.02rem;
  color: #183c67;
}

.layer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: #f0f5fb;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.layer-text {
  color: #27405f;
  line-height: 1.42;
}

.layer-section {
  margin-top: 12px;
}

.layer-section h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #264d79;
}

.layer-subheading {
  margin-top: 10px;
}

.layer-list {
  margin: 0;
  padding-left: 20px;
  color: #26425f;
  line-height: 1.4;
}

.layer-list.compact li {
  margin-bottom: 2px;
}

.delivery-gate {
  margin: 0 0 10px;
  color: #1f3e67;
  line-height: 1.42;
}

.delivery-gate strong {
  color: var(--brand-accent-ink);
}

.delivery-subblock {
  margin-top: 10px;
}

.delivery-subtitle {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-accent-ink);
}

.delivery-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.delivery-field {
  display: grid;
  gap: 4px;
}

.delivery-field span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #2a4c74;
}

.delivery-select {
  border: 1px solid #c9d9ea;
  border-radius: 8px;
  background: #fff;
  color: #213f65;
  padding: 7px 8px;
  font-size: 0.78rem;
}

.delivery-input {
  border: 1px solid #c9d9ea;
  border-radius: 8px;
  background: #fff;
  color: #213f65;
  padding: 7px 8px;
  font-size: 0.78rem;
}

.delivery-select:focus-visible {
  outline: none;
  border-color: var(--brand-accent-guide);
  box-shadow: 0 0 0 2px rgba(242, 107, 67, 0.2);
}

.delivery-input:focus-visible {
  outline: none;
  border-color: var(--brand-accent-guide);
  box-shadow: 0 0 0 2px rgba(242, 107, 67, 0.2);
}

.delivery-selection-result {
  margin-top: 10px;
}

.delivery-selection-headline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.delivery-selection-headline span {
  border: 1px solid #d2e2f3;
  background: #f7fbff;
  color: #21456f;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.delivery-selection-headline span:first-child {
  border-color: var(--brand-accent-edge);
  background: var(--brand-accent-soft);
  color: var(--brand-accent-ink);
}

.delivery-collapse-group {
  display: grid;
  gap: 7px;
}

.delivery-collapse {
  border: 1px solid #d2e0ef;
  border-radius: 10px;
  background: #f8fbff;
  overflow: hidden;
}

.delivery-collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #1e436f;
  font-size: 0.79rem;
  font-weight: 700;
}

.delivery-collapse > summary::-webkit-details-marker {
  display: none;
}

.delivery-collapse > summary::after {
  content: "+";
  color: var(--brand-accent-guide);
  font-weight: 800;
}

.delivery-collapse[open] > summary::after {
  content: "−";
}

.delivery-collapse[open] {
  border-color: var(--brand-accent-edge);
  background: linear-gradient(180deg, #fff8f4 0%, #f8fbff 100%);
}

.delivery-collapse[open] > summary {
  border-bottom: 1px solid #f2d0b8;
}

.delivery-collapse-body {
  border-top: 1px solid #d8e5f4;
  padding: 8px 10px 9px;
}

.delivery-badge {
  border: 1px solid var(--brand-accent-edge);
  background: var(--brand-accent-soft);
  color: var(--brand-accent-ink);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
}

.delivery-card {
  border: 1px solid #d2e0ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 9px;
}

.delivery-card h5 {
  margin: 0 0 4px;
  font-size: 0.83rem;
  color: #1e436f;
}

.delivery-context {
  margin: 0 0 7px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #31567f;
}

.delivery-code {
  font-weight: 700;
  color: var(--brand-accent-ink);
}

.delivery-country-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.delivery-country-card {
  border: 1px solid #d5e4f3;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.delivery-country-card h6 {
  margin: 0 0 5px;
  font-size: 0.78rem;
  color: #224873;
}

.delivery-page-layout {
  display: grid;
  gap: 12px;
}

.delivery-page-card {
  background: #fff;
  border: 1px solid #d2e0ef;
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.delivery-page-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent-guide));
}

.delivery-page-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1c436f;
  display: flex;
  align-items: center;
  gap: 7px;
}

.delivery-page-card h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(233, 88, 12, 0.16);
  flex-shrink: 0;
}

.delivery-template-studio {
  border-color: #bfd8ee;
  background: linear-gradient(160deg, #f9fcff 0%, #f2f9ff 50%, #fff7f0 100%);
}

.delivery-template-studio::before {
  height: 4px;
}

.delivery-template-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.delivery-template-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.delivery-template-panel {
  border: 1px solid #d0e0f1;
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(14, 60, 108, 0.06);
}

.delivery-template-panel h3 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #1d4570;
}

.delivery-template-panel p {
  margin: 0;
  font-size: 0.76rem;
  color: #2c5078;
  line-height: 1.38;
}

.delivery-template-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.delivery-template-chip {
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid #c9d9ec;
  background: #f5f9ff;
  color: #1c4a79;
  font-size: 0.68rem;
  font-weight: 700;
}

.delivery-template-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.delivery-copy-status {
  font-size: 0.76rem;
  color: #1e5f14;
  font-weight: 700;
}

.delivery-template-output {
  margin-top: 2px;
}

.delivery-template-text {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid #bfd3e9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #173b63;
  padding: 10px 11px;
  font-size: 0.8rem;
  line-height: 1.42;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.delivery-template-text:focus-visible {
  outline: none;
  border-color: var(--brand-accent-guide);
  box-shadow: 0 0 0 2px rgba(242, 107, 67, 0.2);
}

.card-inline-link {
  display: inline-block;
  margin: 0 0 8px;
}

.layer-collapsed-detail > summary {
  flex-wrap: wrap;
}

.summary-main {
  font-weight: 700;
}

.summary-hint {
  font-size: 0.74rem;
  color: #4b6688;
  font-weight: 500;
}

@media (min-width: 980px) {
  .delivery-page-layout {
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.2fr);
    align-items: start;
  }

  .delivery-page-card:first-child {
    position: sticky;
    top: 10px;
  }

  .delivery-template-studio {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .layer3-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer3-panel-emph {
    grid-column: 1 / -1;
  }

  /* process board scrolls horizontally on smaller screens — no column collapse */
  .phase-wrap {
    gap: 0;
  }
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .layer3-hub {
    grid-template-columns: 1fr;
  }

  .layer3-panel-emph {
    grid-column: auto;
  }

  .process-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .role-chip-bar {
    gap: 6px;
  }

  .layer-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .logo {
    width: 140px;
  }

  .lang-control {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .journey-stepper {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .journey-stepper .layer-btn,
  .journey-stepper .layer-link {
    padding: 11px 12px 11px 48px;
    min-height: 50px;
    font-size: 0.9rem;
  }

  .journey-stepper .layer-btn:not(:last-child)::after,
  .journey-stepper .layer-link:not(:last-child)::after {
    display: none;
  }

  .role-select {
    width: 100%;
    min-width: 0;
  }

  /* process board keeps kanban layout and scrolls horizontally on mobile */

  .utility-trigger {
    margin-left: 0;
    width: 100%;
  }

  .utility-panel {
    width: 100%;
    max-width: none;
    height: min(76vh, 760px);
    top: auto;
    bottom: -85vh;
    right: 0;
    border-left: 0;
    border-top: 1px solid #c7d9ef;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 32px rgba(4, 25, 55, 0.24);
    transition: bottom 220ms ease;
  }

  .utility-panel.open {
    bottom: 0;
    right: 0;
  }

  .detail-layer {
    padding: 8px;
    align-items: flex-end;
  }

  .detail-layer-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 10px 10px;
    padding: 14px 12px;
  }

  .layer-surface {
    padding: 9px;
  }

  .summary-hint {
    display: block;
    width: 100%;
    margin-top: 2px;
  }

  .delivery-controls {
    grid-template-columns: 1fr;
  }

  .delivery-template-controls {
    grid-template-columns: 1fr;
  }

  .delivery-template-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
}

.chat-toggle {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 10px 22px rgba(0, 45, 97, 0.28), 0 0 0 2px rgba(233, 88, 12, 0.18);
  cursor: pointer;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: min(440px, calc(100vw - 24px));
  max-height: min(72vh, 700px);
  background: #fff;
  border: 1px solid #c9daee;
  border-radius: 14px;
  box-shadow: 0 20px 46px rgba(2, 20, 47, 0.26);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.chat-panel.open {
  display: flex;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-head h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #1c3f6f;
}

.chat-model {
  margin-left: auto;
  max-width: 170px;
  min-width: 120px;
  border: 1px solid #c7d9ee;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.75rem;
  color: #24486f;
  background: #fff;
}

.chat-head .layer-close {
  position: static;
}

.chat-status {
  font-size: 0.76rem;
  color: #365577;
  background: #eef5ff;
  border: 1px solid #cfe1f8;
  border-radius: 8px;
  padding: 6px 8px;
}

.chat-messages {
  min-height: 160px;
  max-height: 42vh;
  overflow: auto;
  border: 1px solid #d7e3f1;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid #d7e4f4;
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.chat-msg p {
  margin: 0 0 6px;
}

.chat-msg p:last-child {
  margin-bottom: 0;
}

.chat-msg h1,
.chat-msg h2,
.chat-msg h3,
.chat-msg h4,
.chat-msg h5,
.chat-msg h6 {
  margin: 0 0 6px;
  line-height: 1.25;
  color: #163a67;
}

.chat-msg h1 {
  font-size: 1rem;
}

.chat-msg h2 {
  font-size: 0.96rem;
}

.chat-msg h3,
.chat-msg h4,
.chat-msg h5,
.chat-msg h6 {
  font-size: 0.9rem;
}

.chat-msg ul,
.chat-msg ol {
  margin: 0 0 6px 18px;
  padding: 0;
}

.chat-msg li {
  margin: 0 0 4px;
}

.chat-msg blockquote {
  margin: 0 0 6px;
  padding: 4px 8px;
  border-left: 3px solid #8db7e8;
  background: #f2f8ff;
  border-radius: 6px;
}

.chat-msg pre {
  margin: 0 0 6px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d0deef;
  background: #f6f9fd;
  overflow-x: auto;
  white-space: pre;
}

.chat-msg code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.76rem;
  background: #eef4fb;
  border: 1px solid #d6e3f3;
  border-radius: 4px;
  padding: 1px 4px;
}

.chat-msg pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.chat-msg hr {
  border: 0;
  border-top: 1px solid #c9d9ec;
  margin: 8px 0;
}

.chat-msg table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  font-size: 0.78rem;
}

.chat-msg th,
.chat-msg td {
  border: 1px solid #cfdeef;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.chat-msg th {
  background: #eef6ff;
  color: #1b3e69;
  font-weight: 700;
}

.chat-msg tr:nth-child(even) td {
  background: #fbfdff;
}

.chat-msg.user {
  background: #e9f6ff;
  border-color: #c3e8ff;
  align-self: flex-end;
}

.chat-msg.bot {
  background: #fff;
  align-self: flex-start;
}

/* ── Chat streaming status bubble ───────────────────── */
.chat-msg.pending {
  background: #fff;
  align-self: flex-start;
  padding: 10px 12px;
}

.chat-stream-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-stream-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #4a6480;
  opacity: 0;
  animation: stream-step-in 200ms ease forwards;
}

@keyframes stream-step-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-stream-step.done {
  color: #2d7a45;
}

.chat-stream-text {
  flex: 1;
  line-height: 1.3;
}

.css-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-secondary);
}

.chat-stream-step.done .css-icon {
  color: #2d7a45;
}

.css-icon svg {
  width: 14px;
  height: 14px;
}

.chat-stream-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(24, 178, 232, 0.25);
  border-top-color: var(--brand-secondary);
  border-radius: 999px;
  flex-shrink: 0;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chat-msg.meta {
  font-size: 0.72rem;
  color: #2f5179;
  background: #f4f8ff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-form input {
  min-width: 0;
  border: 1px solid #c6d9ee;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.84rem;
  color: #1f2d3d;
  font-style: normal;
}

.chat-form input::placeholder {
  color: #7f8fa6;
  font-style: italic;
  opacity: 1;
}

.chat-pending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}

.chat-pending-label {
  font-size: 0.72rem;
  color: #466384;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-stop-inline {
  width: 22px;
  height: 22px;
  border: 1px solid #d8a7a7;
  border-radius: 999px;
  background: #fff4f4;
  color: #8a1f1f;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-stop-inline:hover {
  background: #ffe8e8;
}

@media (max-width: 760px) {
  .chat-widget {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }

  .chat-toggle {
    width: 100%;
  }

  .chat-panel {
    width: 100%;
    max-height: 74vh;
    bottom: 54px;
  }
}

/* ── Onboarding Banner ─────────────────────────────── */
.onboarding-banner {
  background: linear-gradient(135deg, #eef6ff 0%, #e0f0ff 100%);
  border: 1px solid #bcd7f2;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.onboarding-inner {
  padding: 14px 16px;
  position: relative;
}

.onboarding-inner .kicker {
  margin-bottom: 8px;
  color: var(--brand-primary);
}

.onboarding-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onboarding-steps li {
  font-size: 0.86rem;
  color: #2a3f60;
  line-height: 1.4;
}

.onboarding-dismiss {
  border: 1px solid #b0ccec;
  background: #fff;
  color: var(--brand-primary);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: 140ms ease;
}

.onboarding-dismiss:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
}

/* ── Overview Card CTA ──────────────────────────────── */
.overview-cta {
  margin-top: 10px;
  display: inline-block;
  font-size: 0.82rem;
}

/* ── Role Process Timeline ──────────────────────────── */
.role-process-timeline {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.role-process-timeline .kicker {
  margin-bottom: 10px;
}

.role-node-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-node-chip {
  border: 1px solid #d4e2f4;
  border-radius: 10px;
  background: #f7fbff;
  overflow: hidden;
  transition: 140ms ease;
}

.role-node-chip summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
}

.role-node-chip summary::-webkit-details-marker {
  display: none;
}

.role-node-chip[open] {
  border-color: #9ec4ef;
  background: #eef8ff;
}

.role-node-chip[open] summary {
  border-bottom: 1px solid #d4e2f4;
}

.chip-lane {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  background: #e8f0fb;
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.chip-title {
  color: #1f3a5f;
  font-weight: 600;
  line-height: 1.3;
}

.role-node-chip-detail {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-node-chip-detail p {
  font-size: 0.82rem;
  color: #2e4a70;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 760px) {
  .onboarding-steps {
    padding-left: 16px;
  }

  .chip-lane {
    display: none;
  }
}

/* ── Role Manifesto Hero ─────────────────────────────────── */
.role-manifesto {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand-primary) 5%, white),
    color-mix(in srgb, var(--brand-secondary) 4%, white)
  );
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, var(--edge));
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 40px);
  margin-bottom: 20px;
  position: relative;
}

.manifesto-title {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 12px;
  line-height: 1.2;
}

.manifesto-body {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--brand-ink);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 0 20px;
}

.manifesto-change-role {
  font-size: 0.82rem;
  padding: 6px 12px;
  color: var(--brand-muted);
}

@media (max-width: 760px) {
  .role-manifesto {
    border-radius: 12px;
  }
}
