:root {
  --ink: #152420;
  --muted: #63726d;
  --paper: #f5f2e9;
  --paper-2: #ece8dc;
  --white: #fffef9;
  --green: #0b4038;
  --green-2: #145e50;
  --lime: #d8ff75;
  --orange: #ff9c62;
  --blue: #8fc8ff;
  --line: rgba(21, 36, 32, 0.14);
  --shadow: 0 22px 60px rgba(20, 42, 35, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  min-height: 76px; display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center; gap: 22px; padding: 12px clamp(20px, 4vw, 64px);
  color: var(--white); background: rgba(11, 64, 56, 0.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 21px; letter-spacing: -.02em; }
.brand small { opacity: .68; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(216,255,117,.7); position: relative; }
.brand-mark span { position: absolute; width: 18px; height: 7px; border-radius: 100% 0 100% 0; background: var(--lime); transform: rotate(-24deg); }
.brand-mark span:first-child { left: 4px; top: 10px; }
.brand-mark span:last-child { right: 3px; bottom: 8px; transform: rotate(156deg); }
.main-nav { display: flex; justify-content: center; gap: 5px; }
.main-nav a { padding: 9px 12px; border-radius: 999px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 650; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--green); background: var(--lime); }
.search-trigger { justify-self: end; display: flex; gap: 14px; align-items: center; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: white; border-radius: 999px; padding: 9px 12px 9px 15px; cursor: pointer; }
kbd { font-family: inherit; font-size: 11px; border: 1px solid currentColor; border-radius: 5px; padding: 2px 6px; opacity: .65; }

main { overflow: clip; }
.hero { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 7vw, 120px); padding: clamp(72px, 10vw, 150px) clamp(22px, 6vw, 96px) clamp(64px, 8vw, 120px); color: var(--white); background: var(--green); }
.hero::before { content: ""; position: absolute; width: 52vw; height: 52vw; right: -20vw; top: -28vw; border: 1px solid rgba(216,255,117,.2); border-radius: 50%; box-shadow: 0 0 0 80px rgba(216,255,117,.025), 0 0 0 160px rgba(216,255,117,.018); }
.hero-copy, .hero-metrics { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--green-2); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.hero .eyebrow { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.3vw, 96px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
h1 em { color: var(--lime); font-weight: 400; }
.hero-description { max-width: 730px; color: rgba(255,255,255,.72); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }
.confidence-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 32px; color: rgba(255,255,255,.65); font-size: 12px; }
.confidence { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 900; }
.confidence-f { background: var(--lime); color: var(--green); }
.confidence-i { background: var(--blue); color: #163b5a; }
.confidence-u { background: var(--orange); color: #5a260b; }
.hero-metrics { align-self: end; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; overflow: hidden; }
.metric { min-height: 138px; padding: 26px; background: rgba(255,255,255,.07); }
.metric strong { display: block; margin-bottom: 9px; color: var(--lime); font-family: Georgia, serif; font-size: clamp(36px, 4vw, 55px); font-weight: 400; }
.metric span { display: block; color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .11em; line-height: 1.45; }

.view-section { display: none; min-height: 70vh; padding: clamp(64px, 8vw, 120px) clamp(22px, 6vw, 96px); scroll-margin-top: 122px; }
.view-section.active { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 12px; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 68px); font-weight: 500; letter-spacing: -.045em; }
.section-heading p:not(.eyebrow) { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.6; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-control { display: grid; gap: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.filter-control select { min-width: 160px; padding: 10px 34px 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }

.org-layout { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: start; }
.group-rail { position: sticky; top: 102px; display: grid; gap: 8px; }
.group-button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; text-align: left; border: 1px solid transparent; border-radius: 13px; padding: 14px; background: transparent; color: var(--muted); cursor: pointer; }
.group-button strong { color: var(--ink); font-size: 13px; }
.group-button span { align-self: center; font-size: 11px; }
.group-button:hover, .group-button.active { border-color: var(--line); background: var(--white); box-shadow: 0 9px 25px rgba(20,42,35,.06); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.team-card { position: relative; min-height: 245px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); cursor: pointer; overflow: hidden; transition: .22s ease; }
.team-card::after { content: "↗"; position: absolute; top: 20px; right: 20px; color: var(--green-2); font-size: 18px; opacity: .45; }
.team-card:hover { transform: translateY(-4px); border-color: rgba(11,64,56,.35); box-shadow: var(--shadow); }
.team-card .team-number { margin-bottom: 32px; color: var(--green-2); font-size: 11px; letter-spacing: .12em; font-weight: 850; }
.team-card h3 { margin: 0 30px 8px 0; font-family: Georgia, serif; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.team-card .lead { color: var(--muted); font-size: 13px; }
.team-card .team-meta { margin-top: auto; display: flex; gap: 16px; padding-top: 24px; color: var(--muted); font-size: 12px; }
.team-card .team-meta strong { color: var(--ink); }
.team-card .status-dots { display: flex; gap: 4px; margin-left: auto; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
.status-dot.open { background: var(--orange); }
.status-dot.planned { background: var(--blue); }

.chain-list { display: grid; gap: 24px; }
.chain-card { border-radius: 22px; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.chain-header { display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: center; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.chain-index { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--lime); background: var(--green); font-family: Georgia, serif; font-size: 25px; }
.chain-header h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.chain-header p { margin: 0; color: var(--muted); font-size: 13px; }
.chain-flow { display: flex; align-items: stretch; gap: 0; padding: 28px 30px; overflow-x: auto; }
.flow-node { min-width: 165px; max-width: 210px; flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 17px; background: var(--paper); }
.flow-node strong { display: block; margin-bottom: 7px; }
.flow-node span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.flow-arrow { min-width: 40px; display: grid; place-items: center; color: var(--green-2); font-size: 20px; }
.chain-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 30px 28px; }
.chain-note { padding: 16px; border-radius: 12px; background: var(--paper-2); }
.chain-note strong { display: block; margin-bottom: 6px; color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.chain-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.gate-timeline { position: relative; display: grid; gap: 12px; max-width: 1100px; }
.gate-timeline::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.gate-card { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: start; padding: 22px 24px 22px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.gate-number { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--lime); font-size: 12px; font-weight: 900; }
.gate-card h3 { margin: 2px 0 7px; font-size: 17px; }
.gate-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.role-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.role-chip { padding: 5px 8px; border-radius: 7px; color: var(--green); background: #e4efe8; font-size: 11px; font-weight: 700; }

.issue-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.issue-type-card { padding: 19px; border-radius: 15px; border: 1px solid var(--line); background: var(--white); }
.issue-type-card span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px; border-radius: 8px; background: var(--green); color: var(--lime); font-weight: 900; }
.issue-type-card strong { display: block; margin-bottom: 6px; }
.issue-type-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.issue-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.issue-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.issue-table th, .issue-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.45; }
.issue-table th { color: var(--muted); background: var(--paper-2); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.issue-table tr:last-child td { border-bottom: 0; }
.type-pill { display: inline-block; min-width: 27px; padding: 5px 8px; text-align: center; border-radius: 7px; background: var(--green); color: var(--lime); font-weight: 900; }

.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.source-card { min-height: 240px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.source-card .confidence { margin-bottom: 28px; }
.source-card h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.source-card p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.validation-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; margin-top: 30px; padding: 36px; border-radius: 20px; background: var(--green); color: white; }
.validation-panel .eyebrow { color: var(--lime); }
.validation-panel h3 { font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.validation-panel ol { margin: 0; padding-left: 22px; color: rgba(255,255,255,.76); }
.validation-panel li { padding: 7px 0 7px 7px; line-height: 1.5; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(22px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(7, 29, 25, .68); backdrop-filter: blur(5px); }
.detail-dialog { width: min(960px, calc(100vw - 28px)); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); overflow: auto; }
.dialog-close { position: sticky; float: right; top: 18px; right: 18px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--green); color: white; cursor: pointer; font-size: 24px; }
.dialog-hero { padding: 38px 42px 30px; color: white; background: var(--green); }
.dialog-hero .eyebrow { color: var(--lime); }
.dialog-hero h2 { margin: 0 50px 8px 0; font-family: Georgia, serif; font-size: 43px; font-weight: 500; }
.dialog-hero p { max-width: 740px; color: rgba(255,255,255,.72); line-height: 1.55; }
.dialog-stats { display: flex; gap: 24px; margin-top: 25px; }
.dialog-stats strong { display: block; color: var(--lime); font-size: 22px; }
.dialog-stats span { color: rgba(255,255,255,.6); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.dialog-body { padding: 34px 42px 50px; }
.subteam-section { margin-bottom: 30px; }
.subteam-header { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.subteam-header h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.subteam-header span { color: var(--muted); font-size: 11px; }
.shared-duties { margin: 14px 0; padding: 15px 18px; border-radius: 12px; background: var(--paper-2); }
.shared-duties strong { display: block; margin-bottom: 7px; color: var(--green); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.shared-duties ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.people-list { display: grid; gap: 10px; margin-top: 12px; }
.person-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.person-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.person-badges { display: flex; align-items: center; gap: 6px; }
.person-header h4 { margin: 0 0 4px; font-size: 15px; }
.person-title { color: var(--muted); font-size: 12px; }
.status-badge { flex: none; padding: 5px 8px; border-radius: 7px; color: var(--green); background: #e5f0e9; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.status-badge.open, .status-badge.pending_onboarding { color: #6d310e; background: #ffe5d5; }
.status-badge.planned { color: #174b75; background: #dcedff; }
.status-badge.virtual { color: #563b79; background: #eee3ff; }
.person-role { margin: 12px 0 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.responsibility-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.person-note { margin-top: 12px; color: #7b6a45; font-size: 11px; font-style: italic; }

.search-dialog { width: min(740px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 30px)); margin-top: 80px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.search-box { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; }
.search-results { max-height: 570px; overflow: auto; padding: 10px; }
.search-result { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px; text-align: left; border: 0; border-radius: 11px; background: transparent; cursor: pointer; }
.search-result:hover { background: var(--paper); }
.search-result strong { display: block; margin-bottom: 4px; }
.search-result span { color: var(--muted); font-size: 12px; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; gap: 6px; min-height: 220px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.empty-state strong { color: var(--ink); }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; overflow-x: auto; padding-bottom: 2px; }
  .hero { grid-template-columns: 1fr; }
  .hero-metrics { max-width: 650px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { padding: 11px 16px; }
  .search-trigger span { display: none; }
  .main-nav a { white-space: nowrap; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 110px; padding: 20px; }
  .view-section { padding-left: 16px; padding-right: 16px; scroll-margin-top: 142px; }
  .section-heading { display: grid; }
  .org-layout { grid-template-columns: 1fr; }
  .group-rail { position: static; display: flex; overflow-x: auto; }
  .group-button { min-width: 180px; }
  .team-grid { grid-template-columns: 1fr; }
  .chain-header { grid-template-columns: 60px 1fr; }
  .chain-header .confidence { display: none; }
  .chain-footer { grid-template-columns: 1fr; }
  .issue-summary, .source-grid { grid-template-columns: 1fr; }
  .validation-panel { grid-template-columns: 1fr; padding: 26px; }
  .dialog-hero, .dialog-body { padding-left: 22px; padding-right: 22px; }
  footer { display: grid; }
}

/* Digitalization view */
.digital-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 18px;
}
.digital-stat {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.digital-stat strong { font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.digital-stat span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.digital-stat.warning { background: #fff4ec; border-color: rgba(197, 84, 24, .22); }
.digital-stat.danger { color: #7c2d19; background: #fee9e4; border-color: rgba(153, 49, 25, .24); }
.digital-stat.good { background: #e8f4ed; border-color: rgba(11, 64, 56, .2); }

.maturity-callout {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr);
  gap: 26px;
  align-items: center;
  margin: 18px 0 26px;
  padding: 26px 28px;
  border-radius: 18px;
  color: var(--white);
  background: var(--green);
}
.maturity-callout .eyebrow { color: var(--lime); }
.maturity-callout h3 { margin: 6px 0 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.maturity-details { color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.65; }
.maturity-details p { margin: 0; }

.digital-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: var(--paper-2);
  overflow-x: auto;
}
.digital-tabs button,
.chokepoint-filters button {
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.digital-tabs button { flex: 1; min-width: 140px; padding: 12px 16px; }
.digital-tabs button.active { color: var(--white); background: var(--green); }
.digital-panel { display: none; padding-top: 22px; }
.digital-panel.active { display: block; }

.digital-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.digital-filters .filter-control { min-width: 0; }

.missing-strip {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(153, 49, 25, .2);
  border-radius: 16px;
  background: #fff2ec;
}
.missing-strip h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.missing-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.missing-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.missing-items button {
  padding: 8px 10px;
  border: 1px solid rgba(153, 49, 25, .17);
  border-radius: 9px;
  color: #7c2d19;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.system-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid #b9c3bf;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 42, 35, .055);
  scroll-margin-top: 160px;
}
.system-card.status-live { border-top-color: #2d8a65; }
.system-card.status-partial { border-top-color: #e6a34f; }
.system-card.status-siloed { border-top-color: #d56b46; }
.system-card.status-missing { border-color: rgba(153, 49, 25, .25); border-top-color: #993119; background: #fff6f2; }
.system-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.system-category, .system-status { font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.system-category { color: var(--muted); }
.system-status { padding: 5px 7px; border-radius: 6px; color: var(--green); background: #e7f0eb; }
.status-siloed .system-status, .status-partial .system-status { color: #7a3e14; background: #ffead9; }
.status-missing .system-status { color: #7c2d19; background: #f9dcd4; }
.system-card h3 { margin: 15px 0 8px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.system-card > p { min-height: 54px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.digital-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.digital-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: #40534d;
  background: var(--paper-2);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
}
button.digital-chip { cursor: pointer; }
button.digital-chip:hover { filter: brightness(.95); }
.digital-chip.team { color: #0b5144; background: #dcefe8; }
.digital-chip.chain { color: #174b75; background: #e1effd; }
.digital-chip.issue { color: #7c2d19; background: #f9e0d8; }
.digital-chip.object { color: #563b79; background: #eee5fa; }
.digital-chip.maturity.ai-assisted, .digital-chip.maturity.agent { color: #224c18; background: #e4f4d5; }
.digital-chip.maturity.manual { color: #6d310e; background: #ffe5d5; }
.system-meta { display: grid; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.system-meta div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 10px; line-height: 1.4; }
.system-meta strong { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.system-note { margin-top: 13px; color: #7b6a45; font-size: 10px; font-style: italic; line-height: 1.45; }

.flow-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.flow-stat { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.flow-stat strong { display: block; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.flow-stat span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.data-flow-list { display: grid; gap: 12px; }
.data-flow-card {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid #b6c0bc;
  border-radius: 15px;
  background: var(--white);
  scroll-margin-top: 160px;
}
.data-flow-card.works { border-left-color: #2d8a65; }
.data-flow-card.partial { border-left-color: #e6a34f; }
.data-flow-card.broken-manual { border-left-color: #b64226; background: #fff8f5; }
.data-flow-card h3 { margin: 5px 0 8px; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.data-flow-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.flow-route { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 11px; font-weight: 800; }
.flow-route span { min-width: 0; }
.flow-route i { flex: none; width: 28px; height: 1px; background: currentColor; position: relative; }
.flow-route i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }

.chokepoint-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chokepoint-filters button { padding: 9px 12px; border: 1px solid var(--line); background: var(--white); }
.chokepoint-filters button span { margin-left: 5px; color: var(--muted); }
.chokepoint-filters button.active { color: var(--white); background: var(--green); border-color: var(--green); }
.chokepoint-filters button.active span { color: var(--lime); }
.chokepoint-list { display: grid; gap: 12px; }
.chokepoint-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid #a7724c;
  border-radius: 16px;
  background: var(--white);
  scroll-margin-top: 160px;
}
.chokepoint-card.cause-technical { border-left-color: #316e9d; }
.chokepoint-card.cause-process { border-left-color: #b66d2d; }
.chokepoint-card.cause-ownership { border-left-color: #9a3c67; }
.chokepoint-card.cause-platform-risk { border-left-color: #7c2d19; }
.chokepoint-rank { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--white); background: var(--green); font-family: Georgia, serif; font-size: 17px; }
.chokepoint-labels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chokepoint-labels > span { padding: 5px 7px; border-radius: 6px; color: #6d310e; background: #ffe5d5; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.chokepoint-card h3 { margin: 10px 0 7px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.chokepoint-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 1100px) {
  .digital-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .digital-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .digital-stat { min-height: 100px; padding: 16px; }
  .maturity-callout { grid-template-columns: 1fr; padding: 22px; }
  .digital-filters { grid-template-columns: 1fr 1fr; }
  .system-grid { grid-template-columns: 1fr; }
  .flow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-flow-card { grid-template-columns: 1fr; gap: 14px; }
  .chokepoint-card { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 18px 15px; }
  .chokepoint-rank { width: 38px; height: 38px; font-size: 14px; }
}
@media (max-width: 460px) {
  .digital-summary, .digital-filters { grid-template-columns: 1fr; }
  .flow-route { align-items: flex-start; flex-wrap: wrap; }
}

/* Digitalization component refinements */
.digital-stat.live { background: #e8f4ed; border-color: rgba(11, 64, 56, .2); }
.digital-stat.siloed { background: #fff2e5; border-color: rgba(182, 109, 45, .24); }
.digital-stat.missing, .digital-stat.broken { color: #7c2d19; background: #fee9e4; border-color: rgba(153, 49, 25, .24); }
.maturity-details { display: grid; gap: 10px; }
.maturity-details strong { display: block; margin-bottom: 2px; color: var(--white); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.missing-items button { display: grid; gap: 3px; text-align: left; }
.missing-items button span { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.35; }
.system-meta button,
.flow-route button {
  padding: 0;
  border: 0;
  color: var(--green-2);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.system-meta button + button::before { content: " · "; color: var(--muted); }
.flow-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-stat.works { background: #e8f4ed; }
.flow-stat.partial { background: #fff2e5; }
.flow-stat.broken-manual { color: #7c2d19; background: #fee9e4; }
.data-flow-card { display: block; }
.flow-status-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.flow-status-line span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.flow-status-line span:first-child { padding: 5px 7px; border-radius: 6px; color: var(--green); background: #e7f0eb; }
.broken-manual .flow-status-line span:first-child { color: #7c2d19; background: #f9dcd4; }
.partial .flow-status-line span:first-child { color: #7a3e14; background: #ffead9; }
.flow-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
}
.flow-route > div { min-width: 0; display: grid; gap: 3px; }
.flow-route > span { text-align: center; font-size: 20px; }
.flow-route small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.flow-route strong { overflow-wrap: anywhere; font-size: 12px; }
.data-flow-card > p { margin-top: 12px; }
@media (max-width: 460px) {
  .flow-route { grid-template-columns: 1fr; }
  .flow-route > span { transform: rotate(90deg); }
}
