@import url("./kbr-workflow-experience.css");

:root {
  color-scheme: dark;
  --navy: #102833;
  --navy-dark: #0a1a24;
  --teal: #25464e;
  --mist: #edf2f1;
  --paper: #f7f4ee;
  --ink: #15303a;
  --muted: #6e858a;
  --gold: #c9943c;
  --line: rgba(21, 48, 58, 0.16);
  --white: #ffffff;
  --danger: #be4e46;
  --ok: #7aa05d;
  --warning: #d2a14a;
  --shadow: 0 28px 80px rgba(10, 26, 36, 0.18);
  --page-bg-base: #09161f;
  --page-bg-mid: #102833;
  --page-bg-soft: #25464e;
  --surface-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.058));
  --surface-glass-soft: rgba(255, 255, 255, 0.064);
}

/* Basisstijl voor de geïsoleerde Planning prioriteit 03-component. */
.layout-page-register[data-page="planning"] .planning-priority-viewport{
  --planning-priority-surface:#0c222c;
  --planning-priority-soft:#102a35;
  --planning-priority-line:rgba(224,234,237,.13);
  --planning-priority-text:#edf3f4;
  --planning-priority-muted:#8fa1a8;
  width:min(1380px,100%);
  margin:0 auto 12px;
  border:1px solid var(--planning-priority-line);
  border-left:2px solid var(--gold);
  border-radius:4px;
  color:var(--planning-priority-text);
  background:var(--planning-priority-surface);
  box-shadow:0 20px 44px rgba(0,0,0,.24);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:normal;
  letter-spacing:0;
  text-transform:none;
}
html[data-theme="light"] .layout-page-register[data-page="planning"] .planning-priority-viewport{
  --planning-priority-surface:#fff;
  --planning-priority-soft:#f5f8f9;
  --planning-priority-line:rgba(16,44,56,.14);
  --planning-priority-text:#102d38;
  --planning-priority-muted:#64767d;
  box-shadow:0 16px 34px rgba(16,44,56,.08);
}
.layout-page-register[data-page="planning"] .planning-priority-header{
  display:flex;
  align-items:flex-end;
  gap:20px;
  min-height:0;
  border-bottom:1px solid var(--planning-priority-line);
  padding:13px 16px;
  color:var(--planning-priority-text);
  background:transparent;
  font:inherit;
  letter-spacing:0;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-signal{
  color:var(--gold);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:10px;
  font-weight:850;
  line-height:normal;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.layout-page-register[data-page="planning"] .planning-priority-header h2{
  margin:0;
  color:var(--planning-priority-text);
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px;
  font-weight:500;
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-header p{
  max-width:420px;
  margin:0 0 1px auto;
  color:var(--planning-priority-muted);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:9px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:0;
  text-align:right;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-horizons article{
  gap:6px;
  min-height:158px;
  border-color:var(--planning-priority-line);
  padding:13px;
  color:var(--planning-priority-text);
  background:transparent;
  font:inherit;
  letter-spacing:0;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-horizons article>span{
  color:var(--gold);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:10px;
  font-weight:850;
  line-height:normal;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.layout-page-register[data-page="planning"] .planning-priority-horizons article>strong{
  margin-bottom:2px;
  color:var(--planning-priority-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:normal;
  letter-spacing:0;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-horizons button{
  grid-template-columns:28px minmax(0,1fr);
  gap:2px 8px;
  border-color:var(--planning-priority-line);
  color:var(--planning-priority-text);
  padding:9px 4px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:10px;
  font-weight:400;
  line-height:normal;
  letter-spacing:0;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-horizons button:hover,
.layout-page-register[data-page="planning"] .planning-priority-horizons button:focus-visible{background:var(--planning-priority-soft)}
.layout-page-register[data-page="planning"] .planning-priority-horizons button b{
  color:var(--planning-priority-text);
  font-family:inherit;
  font-size:10px;
  font-weight:700;
  line-height:normal;
  letter-spacing:0;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-horizons button small{
  color:var(--planning-priority-muted);
  font-family:inherit;
  font-size:8px;
  font-weight:400;
  line-height:normal;
  letter-spacing:0;
  text-transform:none;
}
.layout-page-register[data-page="planning"] .planning-priority-icon{width:24px;height:24px;font-family:inherit;font-size:9px;line-height:1}
@media(max-width:900px){
  .layout-page-register[data-page="planning"] .planning-priority-header{align-items:flex-start;flex-direction:column;gap:6px}
  .layout-page-register[data-page="planning"] .planning-priority-header p{margin-left:0;text-align:left}
  .layout-page-register[data-page="planning"] .planning-priority-horizons article{min-height:0}
}

/* Programma's · bestuurlijke portfoliostrook */
.layout-foundation-b1 .program-portfolio-brief {
  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) minmax(410px, 1.28fr) minmax(260px, 0.72fr);
  min-height: 178px;
  overflow: hidden;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
}

/* Projecten · bestuurlijke projectbrief */
.layout-foundation-b1 #projectPriorityModule {
  inline-size: min(var(--b1-page-max), calc(100vw - (var(--b1-page-x) * 2)));
  max-inline-size: 100%;
  min-inline-size: 0;
}

.layout-foundation-b1 .project-priority-brief {
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(360px, 1.05fr) minmax(270px, 0.72fr);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  color: var(--b1-text);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
}

.project-priority-judgement,
.project-priority-intervention { display: grid; align-content: center; }
.project-priority-judgement { gap: 7px; border-right: 1px solid var(--b1-border); padding: 18px 20px; }
.project-priority-status { display: flex; align-items: center; gap: 7px; color: var(--gold); font-size: 0.66rem; font-weight: 850; text-transform: uppercase; }
.project-priority-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent); }
.project-priority-judgement h2 { margin: 0; color: var(--b1-text); font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 500; line-height: 1.2; }
.project-priority-judgement p { margin: 0; color: var(--b1-text); font-size: 0.76rem; line-height: 1.5; }
.project-priority-judgement small { color: var(--b1-muted); font-size: 0.65rem; line-height: 1.4; }
.project-priority-radar-zone { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; min-width: 0; padding: 12px; }
.project-priority-radar { position: relative; width: 160px; aspect-ratio: 1; margin: auto; }
.project-priority-radar svg { width: 100%; height: 100%; overflow: visible; }
.project-priority-radar .grid { fill: none; stroke: var(--b1-border); stroke-width: 1; }
.project-priority-radar .inner { stroke-dasharray: 3 3; }
.project-priority-radar line { stroke: var(--b1-border); }
.project-priority-radar .shape { fill: color-mix(in srgb, var(--gold) 17%, transparent); stroke: var(--gold); stroke-width: 1.3; }
.project-priority-radar button { position: absolute; z-index: 2; left: var(--x); top: var(--y); border: 0; color: var(--b1-text); background: transparent; padding: 0; transform: translate(-50%, -50%); cursor: pointer; }
.project-priority-radar button i { display: block; width: 10px; height: 10px; margin: auto; border: 2px solid var(--b1-surface); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 34%, transparent); }
.project-priority-radar button span { position: absolute; left: 50%; top: 14px; color: var(--b1-muted); font-size: 0.57rem; font-weight: 750; white-space: nowrap; transform: translateX(-50%); }
.project-priority-radar button:hover i,
.project-priority-radar button:focus-visible i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.project-priority-radar button:focus-visible { outline: none; }
.project-priority-radar-copy { display: grid; gap: 6px; min-width: 0; }
.project-priority-radar-copy span,
.project-priority-intervention > span { color: var(--gold); font-size: 0.62rem; font-weight: 850; text-transform: uppercase; }
.project-priority-radar-copy strong { color: var(--b1-text); font-size: 0.82rem; line-height: 1.35; }
.project-priority-radar-copy small { color: var(--b1-muted); font-size: 0.62rem; line-height: 1.4; }
.project-priority-intervention { gap: 8px; border-left: 1px solid var(--b1-border); background: color-mix(in srgb, var(--b1-text) 3%, var(--b1-surface)); padding: 16px; }
.project-priority-intervention > strong { color: var(--b1-text); font-size: 0.8rem; line-height: 1.4; }
.project-priority-intervention dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.project-priority-intervention dl > div { border-top: 1px solid var(--b1-border); padding: 7px 0; }
.project-priority-intervention dt { color: var(--b1-muted); font-size: 0.56rem; text-transform: uppercase; }
.project-priority-intervention dd { margin: 3px 0 0; color: var(--b1-text); font-size: 0.66rem; font-weight: 750; }
.project-priority-intervention > div { display: flex; flex-wrap: wrap; gap: 6px; }
.project-priority-intervention button { min-height: 31px; border: 1px solid var(--b1-border); border-radius: 5px; color: var(--b1-text); background: transparent; padding: 6px 9px; font-size: 0.66rem; font-weight: 800; cursor: pointer; }
.project-priority-intervention button:hover,
.project-priority-intervention button:focus-visible { border-color: var(--gold); outline: none; }
.project-priority-intervention button.is-primary { border-color: var(--gold); color: #071720; background: var(--gold); }

@media (max-width: 1120px) {
  .layout-foundation-b1 .project-priority-brief { grid-template-columns: 1fr 1.08fr; }
  .project-priority-judgement { border-bottom: 1px solid var(--b1-border); }
  .project-priority-intervention { grid-column: 1 / -1; border-top: 1px solid var(--b1-border); border-left: 0; }
}

@media (max-width: 720px) {
  .layout-foundation-b1 .project-priority-brief { grid-template-columns: minmax(0, 1fr); }
  .project-priority-judgement { border-right: 0; }
  .project-priority-radar-zone { grid-template-columns: 1fr; border-top: 1px solid var(--b1-border); }
  .project-priority-radar-copy { text-align: center; }
  .project-priority-intervention { grid-column: auto; }
}

.program-brief-attention,
.program-brief-choice {
  display: grid;
  align-content: center;
}

.program-brief-attention {
  gap: 7px;
  border-right: 1px solid var(--b1-border);
  padding: 18px 20px;
}

.program-brief-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-brief-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent);
}

.program-brief-attention h2 {
  margin: 0;
  color: var(--b1-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
}

.program-brief-attention p,
.program-brief-choice p {
  margin: 0;
  color: var(--b1-text);
  font-size: 0.76rem;
  line-height: 1.5;
}

.program-brief-attention small,
.program-brief-effects small,
.program-brief-choice p {
  color: var(--b1-muted);
}

.program-brief-attention small {
  font-size: 0.65rem;
  line-height: 1.35;
}

.program-brief-effects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-brief-effects button {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--b1-border);
  border-bottom: 1px solid var(--b1-border);
  color: var(--b1-text);
  background: transparent;
  padding: 13px 15px;
  text-align: left;
  cursor: pointer;
}

.program-brief-effects button:nth-child(2n) { border-right: 0; }
.program-brief-effects button:nth-child(n + 3) { border-bottom: 0; }
.program-brief-effects button:hover,
.program-brief-effects button:focus-visible {
  background: color-mix(in srgb, var(--b1-text) 4%, transparent);
  outline: none;
}

.program-brief-effects span,
.program-brief-choice > span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-brief-effects strong {
  overflow: hidden;
  color: var(--b1-text);
  font-size: 0.84rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-brief-effects small { font-size: 0.62rem; }

.program-brief-choice {
  gap: 7px;
  border-left: 1px solid var(--b1-border);
  background: color-mix(in srgb, var(--b1-text) 3%, var(--b1-surface));
  padding: 16px;
}

.program-brief-choice > strong {
  color: var(--b1-text);
  font-size: 0.8rem;
  line-height: 1.4;
}

.program-brief-choice > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.program-brief-choice button {
  min-height: 31px;
  border: 1px solid var(--b1-border);
  border-radius: 5px;
  color: var(--b1-text);
  background: transparent;
  padding: 6px 9px;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.program-brief-choice button:hover,
.program-brief-choice button:focus-visible { border-color: var(--gold); outline: none; }
.program-brief-choice button.is-primary { border-color: var(--gold); color: #071720; background: var(--gold); }

@media (max-width: 1120px) {
  .layout-foundation-b1 .program-portfolio-brief { grid-template-columns: 1fr 1.1fr; }
  .program-brief-attention { border-bottom: 1px solid var(--b1-border); }
  .program-brief-choice { grid-column: 1 / -1; border-top: 1px solid var(--b1-border); border-left: 0; }
}

@media (max-width: 720px) {
  .layout-foundation-b1 .program-portfolio-brief { grid-template-columns: minmax(0, 1fr); }
  .program-brief-attention { border-right: 0; }
  .program-brief-effects { border-top: 1px solid var(--b1-border); }
  .program-brief-choice { grid-column: auto; }
  .program-brief-effects strong { white-space: normal; }
}

/* Programmadetail v2: waarde, kritieke lijn en contextuele bestuurlijke verdieping. */
.program-value-cockpit > header { min-height: 48px; }
.program-value-answer { display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.72fr) 138px;border-bottom:1px solid var(--line);border-left:2px solid var(--gold);background:color-mix(in srgb,var(--surface) 96%,var(--gold) 2%); }
.program-value-answer>div { display:grid;gap:3px;padding:13px 15px; }
.program-value-answer>div>span,.program-value-insights span,.program-value-chain button>span,.program-value-timeline header span { color:var(--gold);font-size:.58rem;font-weight:850;text-transform:uppercase; }
.program-value-answer>div>strong { color:var(--text);font-family:Georgia,serif;font-size:1.04rem;font-weight:500;line-height:1.25; }
.program-value-answer>div>small { color:var(--muted);font-size:.63rem;line-height:1.45; }
.program-value-answer dl { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0; }
.program-value-answer dl>div { display:grid;align-content:center;gap:3px;border-left:1px solid var(--line);padding:10px; }
.program-value-answer dt { color:var(--muted);font-size:.54rem;text-transform:uppercase; }
.program-value-answer dd { overflow:hidden;margin:0;color:var(--text);font-size:.66rem;font-weight:800;text-overflow:ellipsis; }
.program-value-answer>button { border:0;border-left:1px solid color-mix(in srgb,var(--gold) 58%,var(--line));color:#10212a;background:var(--gold);font-size:.63rem;font-weight:900;cursor:pointer; }
.program-value-insights { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line); }
.program-value-insights article { display:grid;gap:3px;min-width:0;border-right:1px solid var(--line);padding:10px 12px; }
.program-value-insights article:last-child { border-right:0; }
.program-value-insights strong { color:var(--text);font-size:.68rem;line-height:1.38; }
.program-value-insights small { color:var(--muted);font-size:.59rem;line-height:1.42; }
.program-value-chain { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line); }
.program-value-chain button { position:relative;display:grid;align-content:start;gap:5px;min-height:112px;border:0;border-right:1px solid var(--line);color:var(--text);background:transparent;padding:12px;text-align:left;cursor:pointer; }
.program-value-chain button:last-child { border-right:0; }
.program-value-chain button:not(:last-child):after { position:absolute;z-index:2;right:-7px;top:44px;width:13px;height:13px;border-top:1px solid var(--gold);border-right:1px solid var(--gold);content:"";background:var(--surface);transform:rotate(45deg); }
.program-value-chain button:hover,.program-value-chain button:focus-visible,.program-value-chain button.is-active { background:color-mix(in srgb,var(--gold) 6%,var(--surface));outline:none; }
.program-value-chain button strong { font-size:.72rem;line-height:1.35; }
.program-value-chain button small { color:var(--muted);font-size:.6rem;line-height:1.4; }
.program-value-chain button b { align-self:end;color:var(--success,#65a991);font-size:.58rem; }
.program-value-layout { display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:8px;padding:8px;background:color-mix(in srgb,var(--surface) 91%,black 5%); }
.program-value-timeline,.program-value-explanation { border:1px solid var(--line);border-radius:4px;background:var(--surface); }
.program-value-timeline>header { display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 11px; }
.program-value-timeline>header>div { display:grid;gap:2px; }
.program-value-timeline h3 { margin:0;color:var(--text);font-size:.76rem; }
.program-value-timeline header small { color:var(--muted);font-size:.6rem; }
.program-value-timeline>div { display:grid;padding:4px 10px; }
.program-value-timeline>div>button { display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;border:0;border-bottom:1px solid var(--line);color:var(--text);background:transparent;padding:8px 2px;text-align:left;cursor:pointer; }
.program-value-timeline>div>button:last-child { border-bottom:0; }
.program-value-timeline>div>button:hover,.program-value-timeline>div>button:focus-visible,.program-value-timeline>div>button.is-active { background:color-mix(in srgb,var(--gold) 5%,transparent);outline:none; }
.program-value-timeline>div>button>i { display:grid;place-items:center;width:22px;height:22px;border:1px solid color-mix(in srgb,var(--gold) 58%,var(--line));border-radius:50%;font-style:normal; }
.program-value-timeline>div>button>i .object-identity { margin:0; }
.program-value-timeline>div>button>span { display:grid;gap:2px;min-width:0; }
.program-value-timeline>div>button strong { font-size:.65rem;line-height:1.35; }
.program-value-timeline>div>button small { color:var(--muted);font-size:.58rem; }
.program-value-explanation { min-height:250px; }
html[data-theme="light"] .program-value-answer,html[data-theme="light"] .program-value-timeline,html[data-theme="light"] .program-value-explanation { background:#fff; }
html[data-theme="light"] .program-value-layout { background:#edf2f3; }
html[data-theme="light"] .program-value-chain button:not(:last-child):after { background:#fff; }
@media(max-width:900px){.program-value-answer{grid-template-columns:1fr 1fr}.program-value-answer>div{grid-column:1/-1}.program-value-answer>button{min-height:40px}.program-value-insights{grid-template-columns:1fr}.program-value-insights article{border-right:0;border-bottom:1px solid var(--line)}.program-value-chain{grid-template-columns:1fr}.program-value-chain button{min-height:0;border-right:0;border-bottom:1px solid var(--line)}.program-value-chain button:not(:last-child):after{display:none}.program-value-layout{grid-template-columns:1fr}}
@media(max-width:620px){.program-value-answer{grid-template-columns:1fr}.program-value-answer dl{grid-template-columns:1fr}.program-value-answer dl>div{border-top:1px solid var(--line);border-left:0}.program-value-answer>button{border-top:1px solid var(--line);border-left:0;padding:10px}.program-value-cockpit>header{flex-direction:column;align-items:flex-start}.program-value-cockpit>header p{margin-left:0}}

/* Executive cockpit refresh and user-selected themes. */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --navy: #0d2450;
  --navy-dark: #091a3a;
  --teal: #dbe8ef;
  --mist: #f3f6fb;
  --paper: #fbfcff;
  --ink: #071a3a;
  --muted: #52647f;
  --line: rgba(12, 35, 75, 0.12);
  --white: #071a3a;
  --page-bg-base: #f7f9fc;
  --page-bg-mid: #ffffff;
  --page-bg-soft: #edf3fb;
  --surface-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.9));
  --surface-glass-soft: rgba(255, 255, 255, 0.88);
  --shadow: 0 22px 60px rgba(23, 47, 83, 0.12);
}

body {
  transition: background-color 180ms ease, color 180ms ease;
}

html[data-theme="dark"] body {
  background-image:
    linear-gradient(180deg, rgba(4, 15, 25, 0.24), transparent 210px),
    linear-gradient(135deg, #06121d, #0a1e2c 48%, #0e2a38);
}

html[data-theme="light"] body {
  color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 245, 252, 0.94) 360px, #f8fafc),
    linear-gradient(135deg, #ffffff, #edf3fb);
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(12, 35, 75, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 35, 75, 0.05) 1px, transparent 1px);
}

html[data-theme="light"] body::after {
  background:
    linear-gradient(90deg, rgba(12, 35, 75, 0.035), transparent 36%),
    linear-gradient(180deg, transparent 64%, rgba(230, 237, 247, 0.55));
}

.topbar {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border-radius: 18px 18px 0 0;
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.4vw, 30px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: clamp(18px, 7vw, 120px);
  bottom: 0;
  width: min(620px, 46vw);
  height: 86px;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 0 3%, currentColor 3% 3.4%, transparent 3.4% 8%, currentColor 8% 8.45%, transparent 8.45% 16%, currentColor 16% 16.35%, transparent 16.35% 24%, currentColor 24% 24.4%, transparent 24.4% 34%, currentColor 34% 34.45%, transparent 34.45% 46%, currentColor 46% 46.35%, transparent 46.35% 58%, currentColor 58% 58.45%, transparent 58.45% 72%, currentColor 72% 72.35%, transparent 72.35% 84%, currentColor 84% 84.45%, transparent 84.45%),
    linear-gradient(180deg, transparent 54%, currentColor 54% 56%, transparent 56%),
    linear-gradient(135deg, transparent 45%, currentColor 45.4% 46.4%, transparent 46.8%),
    linear-gradient(45deg, transparent 42%, currentColor 42.4% 43.4%, transparent 43.8%);
  color: rgba(203, 221, 244, 0.78);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

html[data-theme="light"] .topbar::after {
  color: rgba(78, 111, 154, 0.58);
  opacity: 0.34;
}

.topbar > div,
.topbar-side,
.topbar-brand,
.topbar-actions {
  position: relative;
  z-index: 1;
}

/* ── Nieuwe topbar-structuur (Header Redesign v1) ── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 0;
  min-width: 0;
}

.topbar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 0;
}

.topbar-tenant {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28vw;
}

html[data-theme="light"] .topbar-tenant {
  color: rgba(20, 40, 80, 0.5);
}

.topbar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.topbar-title-row h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.topbar-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(196, 155, 74, 0.18);
  color: var(--gold);
  border: 1px solid rgba(196, 155, 74, 0.32);
  white-space: nowrap;
  line-height: 1.6;
}

html[data-theme="light"] .topbar-role-badge {
  background: rgba(160, 120, 40, 0.1);
  color: #8a6420;
  border-color: rgba(160, 120, 40, 0.25);
}

/* ── Topbar-acties (rechts) ── */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 62%;
  min-width: 0;
  overflow: hidden;
}

.topbar-period-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  flex-shrink: 1;
  min-width: 0;
  max-width: 200px;
  overflow: hidden;
}

.topbar-period-chip span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.topbar-period-chip strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
}

html[data-theme="light"] .topbar-period-chip span {
  color: rgba(20, 40, 80, 0.45);
}

html[data-theme="light"] .topbar-period-chip strong {
  color: rgba(20, 40, 80, 0.82);
  background: rgba(20, 40, 80, 0.07);
}

/* ── Zoekstub & notificatie (visueel, v1 inert) ── */

.topbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 8px);
  padding: 5px 12px;
  width: clamp(120px, 14vw, 200px);
  cursor: default;
}

.topbar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  width: 100%;
  pointer-events: none;
}

.topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.topbar-search-shortcut {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 1px 4px;
}

html[data-theme="light"] .topbar-search {
  background: rgba(20, 40, 80, 0.05);
  border-color: rgba(20, 40, 80, 0.12);
}

html[data-theme="light"] .topbar-search input {
  color: rgba(20, 40, 80, 0.7);
}

html[data-theme="light"] .topbar-search input::placeholder {
  color: rgba(20, 40, 80, 0.35);
}

.topbar-notification {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  flex-shrink: 0;
}

html[data-theme="light"] .topbar-notification {
  background: rgba(20, 40, 80, 0.05);
  border-color: rgba(20, 40, 80, 0.12);
  color: rgba(20, 40, 80, 0.6);
}

/* ── Account-avatar (in #topbarActions via auth.js) ── */

.topbar-avatar-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal, #2a7a9b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.topbar-avatar-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

html[data-theme="light"] .topbar-avatar-name {
  color: rgba(20, 40, 80, 0.82);
}

@media (max-width: 1023px) {
  .topbar-search { width: 32px; overflow: hidden; padding: 5px 8px; }
  .topbar-search input,
  .topbar-search-shortcut { display: none; }
  .topbar-period-chip span { display: none; }
}

@media (max-width: 767px) {
  .topbar-search,
  .topbar-period-chip { display: none; }
  .topbar-avatar-name { display: none; }
}

/* Suppress legacy h1::before "Programma-inhoud" in de header — topbar-tenant vervangt dit */
.topbar h1::before,
html[data-theme] .topbar h1::before {
  display: none !important;
}

/* h1 in de topbar: compacter en no-wrap */
.topbar .topbar-brand-text h1,
html[data-theme] .topbar .topbar-brand-text h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.05;
}

/* ── Einde Header Redesign v1 ── */

.dashboard-brand {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.dashboard-logo {
  width: clamp(76px, 7.2vw, 112px);
}

.dashboard-brand-divider {
  background: var(--gold);
}

html[data-theme="dark"] .dashboard-brand-advisory {
  color: rgba(255, 255, 255, 0.82);
}

h1 {
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 950;
}

h1::before {
  color: var(--gold);
  letter-spacing: 0.17em;
}

.period strong {
  min-height: 46px;
  border-radius: 999px;
  padding-inline: 18px;
}

.page-nav {
  border-radius: 0 0 18px 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.page-nav a,
.nav-group summary {
  min-height: 42px;
  border-radius: 9px;
  padding-inline: 16px;
}

.page-nav a.active,
.nav-group.has-active summary {
  position: relative;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 38px;
  border: 1px solid rgba(201, 148, 60, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 3px;
}

.theme-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  padding: 0 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
}

.theme-switch button.active {
  color: var(--navy-dark);
  background: var(--gold);
}

.theme-switch button:focus-visible {
  outline: 2px solid rgba(201, 148, 60, 0.7);
  outline-offset: 2px;
}

.director-cockpit-main,
.director-cockpit-lists article,
.overview-reporting-status > div,
.kpis article,
.finance-summary article,
.action-decision-summary button,
.detail-intro article,
.detail-card,
.panel,
.module,
.report-generator,
.report-register,
.reporting-summary,
.beheer-panel,
.finance-module,
.planning-summary-grid article {
  border-radius: 12px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.director-cockpit-main {
  position: relative;
  overflow: hidden;
  min-height: 290px;
}

.director-cockpit-main::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -10px;
  width: min(320px, 48%);
  height: 190px;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(132deg, transparent 0 38%, rgba(201, 148, 60, 0.62) 38.4% 39.4%, transparent 40%),
    linear-gradient(42deg, transparent 0 48%, rgba(255, 255, 255, 0.42) 48.4% 49%, transparent 49.5%),
    linear-gradient(145deg, transparent 0 35%, rgba(255, 255, 255, 0.22) 35.5% 36%, transparent 36.5%),
    linear-gradient(145deg, transparent 0 45%, rgba(201, 148, 60, 0.18) 45.4% 45.9%, transparent 46.4%),
    linear-gradient(135deg, transparent 0 32%, rgba(255, 255, 255, 0.1) 32% 56%, transparent 56%),
    linear-gradient(28deg, transparent 0 44%, rgba(255, 255, 255, 0.12) 44% 68%, transparent 68%);
  clip-path: polygon(0 100%, 15% 58%, 28% 70%, 47% 24%, 62% 52%, 75% 34%, 100% 100%);
}

.director-cockpit-main > * {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .page-nav,
html[data-theme="light"] .filters,
html[data-theme="light"] .director-cockpit-main,
html[data-theme="light"] .director-cockpit-lists article,
html[data-theme="light"] .overview-reporting-status,
html[data-theme="light"] .overview-reporting-status > div,
html[data-theme="light"] .kpis article,
html[data-theme="light"] .narrative article,
html[data-theme="light"] .detail-intro article,
html[data-theme="light"] .detail-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .module,
html[data-theme="light"] .finance-summary article,
html[data-theme="light"] .action-decision-summary button,
html[data-theme="light"] .workspace,
html[data-theme="light"] .reporting-summary,
html[data-theme="light"] .report-generator,
html[data-theme="light"] .report-register,
html[data-theme="light"] .beheer-panel,
html[data-theme="light"] .finance-module,
html[data-theme="light"] .planning-summary-grid article,
html[data-theme="light"] .site-footer {
  border-color: rgba(12, 35, 75, 0.11);
  color: var(--ink);
  background: var(--surface-glass);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .page-nav,
html[data-theme="light"] .filters {
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .page-nav a,
html[data-theme="light"] .nav-group summary,
html[data-theme="light"] .auth-user-badge,
html[data-theme="light"] .period strong,
html[data-theme="light"] .theme-switch,
html[data-theme="light"] select,
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  border-color: rgba(12, 35, 75, 0.13);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .nav-group-menu,
html[data-theme="light"] .edit-menu-panel,
html[data-theme="light"] .detail-modal-panel {
  border-color: rgba(12, 35, 75, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .page-nav a:hover,
html[data-theme="light"] .page-nav a:focus-visible,
html[data-theme="light"] .page-nav a.active,
html[data-theme="light"] .nav-group summary:hover,
html[data-theme="light"] .nav-group summary:focus-visible,
html[data-theme="light"] .nav-group.has-active summary,
html[data-theme="light"] .nav-group[open] summary {
  color: #071a3a;
  background: #fff6e8;
  border-color: rgba(201, 148, 60, 0.5);
}

html[data-theme="light"] .theme-switch button {
  color: var(--muted);
}

html[data-theme="light"] .theme-switch button.active {
  color: #071a3a;
  background: #ffe4b4;
}

html[data-theme="light"] label,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .kpis span,
html[data-theme="light"] .kpis small,
html[data-theme="light"] .narrative p,
html[data-theme="light"] .director-cockpit-main p,
html[data-theme="light"] .director-cockpit-main dt,
html[data-theme="light"] .director-cockpit-lists small,
html[data-theme="light"] .detail-intro p,
html[data-theme="light"] .detail-card-top span,
html[data-theme="light"] .detail-card dt,
html[data-theme="light"] .detail-card dd,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer small {
  color: var(--muted);
}

html[data-theme="light"] h2,
html[data-theme="light"] .director-cockpit-main h2,
html[data-theme="light"] .director-cockpit-lists strong,
html[data-theme="light"] .my-work-list strong,
html[data-theme="light"] .kpis strong,
html[data-theme="light"] .detail-card h2,
html[data-theme="light"] .detail-card dd,
html[data-theme="light"] .finance-summary strong,
html[data-theme="light"] .action-decision-summary strong,
html[data-theme="light"] td strong {
  color: var(--ink);
}

html[data-theme="light"] .dashboard-brand-advisory,
html[data-theme="light"] .auth-user-badge {
  color: var(--ink);
}

html[data-theme="light"] .dashboard-logo,
html[data-theme="light"] .footer-brand img {
  background: transparent;
}

html[data-theme="light"] .auth-logout-button {
  color: #bf6b00;
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .auth-logout-button:hover,
html[data-theme="light"] .auth-logout-button:focus-visible {
  color: #071a3a;
  background: #ffe4b4;
}

html[data-theme="light"] .director-cockpit-main dl div,
html[data-theme="light"] .project-card-section,
html[data-theme="light"] .finance-pair,
html[data-theme="light"] .detail-modal-body section,
html[data-theme="light"] .detail-modal-body dl,
html[data-theme="light"] .item-change-history {
  border-color: rgba(12, 35, 75, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

@media print {
  .reporting-page .topbar,
  .reporting-page .page-nav,
  .reporting-page .reporting-intro,
  .reporting-page .reporting-summary,
  .reporting-page .report-generator,
  .reporting-page .report-register,
  .reporting-page .report-feedback,
  .reporting-page .site-footer {
    display: none !important;
  }

  .reporting-page .reporting-workspace {
    display: block;
  }

  .reporting-page .report-preview {
    display: grid !important;
    width: 100%;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .reporting-page .report-preview section,
  .reporting-page .report-kpis article {
    break-inside: avoid;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg-base);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(201, 148, 60, 0.12), transparent 190px),
    linear-gradient(135deg, var(--page-bg-base), var(--page-bg-mid) 48%, var(--page-bg-soft));
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 76%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 34%),
    linear-gradient(180deg, transparent 64%, rgba(5, 17, 24, 0.32));
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(560px, 100%);
}

.login-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(8, 24, 34, 0.88);
  box-shadow: 0 24px 80px rgba(5, 17, 24, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  padding: clamp(24px, 5vw, 42px);
}

.login-brand {
  color: #102833;
  justify-self: start;
}

.login-brand .dashboard-brand-advisory {
  color: #102833;
}

.login-copy {
  display: grid;
  gap: 10px;
}

.login-copy span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-copy h1 {
  font-size: clamp(2.4rem, 8vw, 4.8rem);
}

.login-copy p,
.login-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.login-form select:focus {
  border-color: rgba(201, 148, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(201, 148, 60, 0.16);
}

.login-form select:disabled {
  opacity: 1;
  color: rgba(255,255,255,.78);
  border-color: rgba(201,148,60,.22);
  background: rgba(201,148,60,.07);
  cursor: default;
}

.login-assignment-note {
  margin: -3px 0 4px;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  line-height: 1.45;
}

html[data-theme="light"] .login-form select:disabled {
  color: #29434e;
  background: rgba(201,148,60,.08);
}

.login-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.login-password-row input {
  min-height: 48px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.login-password-row input:focus {
  border-color: rgba(201, 148, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(201, 148, 60, 0.16);
}

.login-password-row button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 0 20px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.login-password-row button:hover,
.login-password-row button:focus-visible {
  background: #e5b766;
  outline: none;
}

.login-error {
  margin: 2px 0 0;
  color: #ffaaa3;
  font-weight: 850;
}

.login-note {
  border-left: 3px solid rgba(201, 148, 60, 0.58);
  background: rgba(201, 148, 60, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.86rem;
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(16px, 2.5vw, 30px) clamp(16px, 2.5vw, 32px) 44px;
}

.shell::after {
  display: none;
  content: "KBr Advies  |  Programmamanagement";
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: 14px;
  z-index: 20;
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(90deg, rgba(201, 148, 60, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(7, 22, 31, 0.72);
  backdrop-filter: blur(10px);
  padding: 8px 13px 8px 11px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  pointer-events: none;
}

.topbar,
.page-nav,
.filters,
.kpis,
.narrative,
.deep-links,
.risk-opportunity-section,
.finance-summary,
.action-decision-summary,
.update-workflow,
.detail-controls,
.detail-intro,
.detail-grid,
.workspace {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(135deg, rgba(5, 17, 24, 0.92), rgba(16, 40, 51, 0.94)),
    rgba(5, 17, 24, 0.88);
  box-shadow: 0 24px 72px rgba(5, 17, 24, 0.22);
  padding: 12px 16px 10px;
}

.topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar,
.page-nav,
.cfo-sticky,
.cfo-grid,
.cfo-panel {
  max-width: 100%;
  min-width: 0;
}

.topbar > *,
.topbar-side,
.period,
h1,
.cfo-sticky article {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  max-width: min(230px, 58vw);
  flex: 0 0 auto;
  margin: 0;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(238, 241, 239, 0.86);
  box-shadow: 0 10px 28px rgba(10, 26, 36, 0.18);
  backdrop-filter: blur(10px);
}

.dashboard-logo {
  display: block;
  width: clamp(62px, 6vw, 78px);
  height: auto;
}

.dashboard-brand-divider {
  width: 1px;
  height: clamp(26px, 2.7vw, 36px);
  background: #426f9e;
}

.dashboard-brand-advisory {
  color: var(--navy-dark);
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  color: var(--gold);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1::before {
  content: "Programma-inhoud";
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.period {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
  color: rgba(255, 255, 255, 0.64);
}

.period span {
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  font-weight: 900;
}

.period strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.055);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.topbar-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.print-button,
.edit-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 8px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.print-button:hover,
.print-button:focus-visible,
.edit-controls button:hover,
.edit-controls button:focus-visible {
  background: #d8a654;
  outline: none;
}

.edit-controls {
  position: relative;
  display: grid;
  justify-items: end;
}

.edit-controls button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.edit-menu-button {
  min-width: 104px;
}

.edit-menu-button::before {
  content: "";
  width: 14px;
  height: 10px;
  margin-right: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.edit-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(240px, 78vw);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(10, 26, 36, 0.96);
  box-shadow: 0 18px 48px rgba(5, 17, 24, 0.36);
  padding: 10px;
  backdrop-filter: blur(14px);
}

.edit-menu-panel[hidden] {
  display: none;
}

.edit-menu-panel button {
  width: 100%;
  justify-content: flex-start;
}

.edit-export-button,
.edit-add-card-button,
.edit-import-button,
.edit-reset-button {
  color: #fff1d5 !important;
  background: rgba(201, 148, 60, 0.12) !important;
}

.edit-hint {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
}

body.edit-mode .editable-field {
  border-radius: 4px;
  outline: 1px dashed rgba(201, 148, 60, 0.42);
  outline-offset: 3px;
  cursor: text;
}

body.edit-mode .editable-field:focus {
  color: var(--white);
  background: rgba(201, 148, 60, 0.14);
  outline: 2px solid rgba(201, 148, 60, 0.78);
}

.custom-card-list {
  display: contents;
}

.custom-card {
  border-color: rgba(102, 184, 164, 0.34);
}

.page-nav {
  position: relative;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(5, 17, 24, 0.52);
  margin-bottom: 12px;
  padding: 8px 14px 10px;
  backdrop-filter: blur(12px);
}

.page-nav a,
.deep-links a,
.detail-links a {
  text-decoration: none;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  padding: 0 11px;
  font-size: 0.82rem;
  font-weight: 900;
}

.nav-group {
  position: relative;
}

.nav-group[open] { z-index: 110; }

.nav-group summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  padding: 0 30px 0 11px;
  font-size: 0.82rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.nav-group summary::-webkit-details-marker { display: none; }

.nav-group summary::after {
  content: "";
  position: absolute;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-group[open] summary::after { transform: translateY(2px) rotate(225deg); }

.nav-group summary:hover,
.nav-group summary:focus-visible,
.nav-group.has-active summary,
.nav-group[open] summary {
  border-color: rgba(201, 148, 60, 0.58);
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.nav-group-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 120;
  display: grid;
  gap: 5px;
  width: max-content;
  min-width: 210px;
  max-width: min(300px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 22, 31, 0.98);
  box-shadow: 0 18px 48px rgba(5, 17, 24, 0.42);
  padding: 7px;
}

.nav-group:not([open]) .nav-group-menu { display: none; }

.nav-group-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav-group-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-group-menu a.active {
  color: var(--gold, #c49b4a);
  background: rgba(201, 148, 60, 0.10);
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.reporting-intro,
.reporting-summary,
.reporting-workspace,
.report-register,
.report-feedback {
  width: min(1380px, 100%);
  margin-inline: auto;
}

.reporting-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 35, 46, 0.88);
  margin-bottom: 14px;
  overflow: hidden;
}

.reporting-summary article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.reporting-summary article:last-child { border-right: 0; }
.reporting-summary span { color: var(--muted); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.reporting-summary strong { color: var(--gold); font-size: 1.15rem; }

.reporting-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.report-generator,
.report-preview,
.report-register {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(12, 35, 46, 0.88);
  box-shadow: 0 18px 48px rgba(5, 17, 24, 0.18);
  padding: 18px;
}

.report-form-grid { display: grid; gap: 10px; }
.report-form-grid label,
.report-filter-bar label { display: grid; gap: 5px; color: rgba(255, 255, 255, 0.7); font-size: 0.76rem; font-weight: 850; }
.report-form-grid input,
.report-form-grid select,
.report-form-grid textarea,
.report-filter-bar select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  padding: 9px 10px;
  font: inherit;
}

.report-section-picker {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 11px;
}

.report-section-picker legend { color: var(--gold); font-weight: 900; }
.report-section-picker label { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; font-weight: 750; }
.report-actions,
.report-entry-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.report-actions button,
.report-entry-actions button {
  min-height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 6px;
  color: var(--white);
  background: transparent;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}
.report-actions button:last-child,
.report-entry-actions button[data-report-action="approve"],
.report-entry-actions button[data-report-action="publish"] { color: var(--navy-dark); background: var(--gold); }

.report-preview {
  display: grid;
  gap: 16px;
  color: #203a44;
  background: #f8faf9;
}

.report-document-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; border-bottom: 2px solid #c9943c; padding-bottom: 12px; }
.report-document-brand { display: flex; align-items: center; gap: 8px; min-width: 150px; color: #102c38; }
.report-document-brand img { width: 58px; height: 36px; object-fit: contain; }
.report-document-brand > span { width: 1px; height: 30px; background: #6f97ba; }
.report-document-brand > strong { color: #102c38; font-size: .88rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.report-document-header span { color: #6e8087; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.report-document-header h2 { margin-top: 3px; color: #102c38; font-size: 1.2rem; letter-spacing: 0; text-transform: none; }
.report-document-header p { margin: 4px 0 0; color: #63777f; }
.report-document-header > strong { border-radius: 999px; color: #102c38; background: #e7cf9f; padding: 6px 10px; font-size: 0.72rem; white-space: nowrap; }
.report-message { border-left: 4px solid #c9943c; background: #edf2f0; padding: 12px 14px; }
.report-message span { color: #63777f; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.report-message p { margin: 5px 0; line-height: 1.5; }
.report-message small { color: #71838a; }
.report-executive-summary {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e0dd;
  border-left: 4px solid #c9943c;
  background: #fff;
  padding: 13px 14px;
}
.report-executive-summary.report-tone-kritiek { border-left-color: #b85f5a; }
.report-executive-summary.report-tone-op-koers { border-left-color: #4f9e81; }
.report-executive-summary > header { display: grid; gap: 3px; }
.report-executive-summary > header span,
.report-attention-list > span { color: #a77423; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.report-executive-summary > header strong { color: #102c38; font-size: 1.12rem; }
.report-executive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.report-executive-grid article { display: grid; gap: 3px; border-top: 1px solid #d8e0dd; padding-top: 8px; }
.report-executive-grid span { color: #6e8087; font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.report-executive-grid strong { color: #102c38; font-size: 1rem; }
.report-executive-grid small { color: #71838a; font-size: .66rem; }
.report-attention-list { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; border-top: 1px solid #d8e0dd; padding-top: 9px; }
.report-attention-list ol { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: #3d5058; font-size: .75rem; }
.report-preview section { display: grid; gap: 9px; }
.report-preview section h3 { margin: 0; color: #102c38; font-size: 0.88rem; text-transform: uppercase; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.report-kpis article { display: grid; gap: 3px; border: 1px solid #d8e0dd; border-radius: 6px; background: #fff; padding: 10px; }
.report-kpis span { color: #6e8087; font-size: 0.66rem; font-weight: 850; text-transform: uppercase; }
.report-kpis strong { color: #102c38; font-size: 1rem; }
.report-kpis small { color: #71838a; font-size: 0.66rem; }
.report-table-scroll { overflow-x: auto; }
.report-preview table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.report-preview th { color: #5c7078; background: #e8efec; text-align: left; }
.report-preview th,
.report-preview td { border-bottom: 1px solid #dce4e1; padding: 7px 8px; }
.report-preview th:first-child,
.report-preview td:first-child { width: 92px; min-width: 92px; white-space: nowrap; }
.report-table-title-row { display: none; }
.report-document-footer { border-top: 1px solid #d8e0dd; color: #71838a; padding-top: 9px; font-size: 0.68rem; text-align: right; }

.reporting-page .report-preview,
.reporting-page .report-preview p,
.reporting-page .report-preview td,
.reporting-page .report-preview li { color: #203a44; }
.reporting-page .report-preview strong { color: #102c38; }
.reporting-page .report-preview small { color: #71838a; }

.report-register { margin-bottom: 14px; }
.report-review-queue { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr); gap: 12px; border: 1px solid rgba(201, 148, 60, .32); border-radius: 7px; background: rgba(201, 148, 60, .07); margin: 12px 0; padding: 11px 12px; }
.report-review-queue > div { display: grid; gap: 2px; align-content: start; }
.report-review-queue > div > span { color: var(--gold); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.report-review-queue > div > strong { color: var(--white); font-size: .9rem; }
.report-review-queue > div > small { color: rgba(255,255,255,.58); font-size: .72rem; line-height: 1.4; }
.report-review-queue ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.report-review-queue button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; width: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: rgba(255,255,255,.76); background: rgba(255,255,255,.035); padding: 8px 9px; text-align: left; cursor: pointer; }
.report-review-queue button strong { color: var(--gold); }
.report-filter-bar { display: flex; justify-content: flex-end; margin: 12px 0; }
.report-filter-bar label { width: min(240px, 100%); }
.report-list { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; padding-right: 3px; }
.report-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; background: rgba(255, 255, 255, 0.035); padding: 12px; }
.report-entry-main { min-width: 0; }
.report-entry-main > span { color: var(--gold); font-size: 0.68rem; font-weight: 900; }
.report-entry-main h3 { margin: 3px 0; color: var(--white); font-size: 0.94rem; }
.report-entry-main p,
.report-entry-main small { display: block; margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 0.74rem; }
.report-version-history { margin-top: 9px; }
.report-version-history summary { width: max-content; color: var(--gold); font-size: 0.72rem; font-weight: 850; cursor: pointer; }
.report-version-history > div { display: grid; gap: 6px; margin-top: 7px; }
.report-version-history article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; border-left: 2px solid rgba(201, 148, 60, 0.42); background: rgba(255, 255, 255, 0.035); padding: 8px 10px; }
.report-version-history article strong { color: rgba(255, 255, 255, 0.88); font-size: 0.74rem; }
.report-version-history article span { color: rgba(255, 255, 255, 0.5); font-size: 0.68rem; }
.report-version-history article p,
.report-version-history article small { grid-column: 1 / -1; }
.report-status { align-self: start; border-radius: 999px; padding: 5px 9px; color: #102c38; background: #d6dee0; font-size: 0.68rem; white-space: nowrap; }
.report-status.status-ter-beoordeling { background: #e7cf9f; }
.report-status.status-goedgekeurd,
.report-status.status-gepubliceerd { background: #92cfba; }
.report-status.status-herziening-vereist { color: #fff; background: #b75b4e; }
.report-entry-actions { grid-column: 1 / -1; }
.report-feedback { position: sticky; bottom: 12px; z-index: 40; width: max-content; max-width: calc(100% - 32px); border-radius: 6px; color: #102c38; background: #92cfba; box-shadow: 0 12px 30px rgba(5,17,24,.26); padding: 0; font-weight: 850; }
.report-feedback:not(:empty) { padding: 9px 12px; }
.report-feedback.is-error { color: #fff; background: #b75b4e; }

.beheer-area-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: min(1380px, 100%);
  margin: 0 auto 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background: rgba(7,22,31,.62);
  padding: 6px;
}

.beheer-area-nav a {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255,255,255,.68);
  padding: 7px 10px;
  font-size: .8rem;
  font-weight: 900;
  text-decoration: none;
}

.beheer-area-nav a:hover,
.beheer-area-nav a:focus-visible,
.beheer-area-nav a.active {
  border-color: rgba(201,148,60,.5);
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.regie-cockpit-section {
  display: grid;
  gap: 2px;
  margin: 16px 0 9px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 13px;
}

.regie-cockpit-section:first-of-type { margin-top: 4px; border-top: 0; padding-top: 0; }
.regie-cockpit-section h3 { margin: 0; color: var(--gold); font-size: .88rem; letter-spacing: 0; }
.regie-cockpit-section p { margin: 0; color: rgba(255,255,255,.62); font-size: .76rem; }

.role-matrix {
  display: grid;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  overflow-x: auto;
}

.role-matrix > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) repeat(3, minmax(190px, 1fr));
  min-width: 760px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.role-matrix > div:first-child { border-top: 0; background: rgba(201, 148, 60, 0.13); }
.role-matrix span,
.role-matrix strong { padding: 9px 10px; border-right: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.74rem; }
.role-matrix span { color: rgba(255, 255, 255, 0.68); }
.role-matrix span:first-child { color: var(--white); font-weight: 850; }
.role-matrix strong { color: var(--gold); }

@media (max-width: 920px) {
  .reporting-workspace { grid-template-columns: 1fr; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .reporting-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-kpis { grid-template-columns: 1fr; }
  .reporting-summary article { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .reporting-summary article:nth-child(2n) { border-right: 0; }
  .reporting-summary article:nth-last-child(-n + 2) { border-bottom: 0; }
  .report-document-header,
  .report-entry { grid-template-columns: 1fr; display: grid; }
  .report-entry-actions { grid-column: 1; }
  .report-filter-bar { justify-content: stretch; }
  .report-filter-bar label { width: 100%; }
  .report-review-queue { grid-template-columns: 1fr; }
  .report-document-brand { min-width: 0; }
  .beheer-area-nav { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* Canonical MOS header - Executive panorama                                  */
/* ========================================================================== */

html[data-theme] body .topbar:has(.topbar-brand) {
  isolation: isolate;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid rgba(201, 148, 60, .3);
  border-bottom-color: rgba(191, 211, 220, .12);
  border-radius: 8px 8px 0 0;
  background: #071e2a;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
  padding: 0 22px;
}

html[data-theme] body .topbar:has(.topbar-brand)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  pointer-events: none;
  background:
    linear-gradient(90deg, #071e2a 0%, rgba(7, 30, 42, .56) 28%, rgba(7, 30, 42, .06) 72%),
    url("./assets/header-visual-dark.png") center 61% / cover no-repeat;
  opacity: .46;
}

html[data-theme] body .topbar:has(.topbar-brand)::after {
  display: block;
  right: 0;
  bottom: auto;
  left: 0;
  top: 0;
  width: auto;
  height: 1px;
  opacity: 1;
  background: linear-gradient(90deg, transparent 3%, rgba(208, 154, 60, .82) 17%, rgba(208, 154, 60, .08) 48%, transparent 90%);
  color: transparent;
  mask-image: none;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) {
  border-color: rgba(16, 44, 56, .13);
  border-top-color: rgba(183, 126, 28, .32);
  background: #fff;
}

html[data-theme="light"] body .topbar:has(.topbar-brand)::before {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .7) 28%, rgba(255, 255, 255, .2) 72%),
    url("./assets/header-visual-light.png") center 61% / cover no-repeat;
  opacity: .65;
}

html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
}

html[data-theme] body .topbar:has(.topbar-brand) .topbar-kbr-logo {
  width: 68px;
  height: 38px;
  flex: 0 0 68px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

html[data-theme="light"] body .topbar:has(.topbar-brand) .topbar-kbr-logo { filter: none; }

html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-sep,
html[data-theme] body .topbar:has(.topbar-brand) .topbar-context-sep {
  width: 1px;
  height: 29px;
  flex: 0 0 1px;
  margin: 0 12px;
  background: rgba(208, 154, 60, .86);
}

html[data-theme] body .topbar:has(.topbar-brand) .topbar-context-sep {
  margin-inline: 16px;
  background: rgba(255, 255, 255, .17);
}

html[data-theme="light"] body .topbar:has(.topbar-brand) .topbar-context-sep { background: rgba(16, 44, 56, .17); }

.topbar-advisory,
.topbar-mobile-tenant {
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .28em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-mobile-tenant { display: none; }
html[data-theme="light"] .topbar-advisory { color: #102c38; }

html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-text {
  flex: 0 1 auto;
  display: grid;
  gap: 1px;
}

html[data-theme] body .topbar:has(.topbar-brand) .topbar-tenant {
  max-width: min(32vw, 430px);
  color: #d9a13f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-text h1,
html[data-theme] .layout-foundation-b1 .topbar:has(.topbar-brand) .topbar-brand-text h1 {
  max-width: min(34vw, 480px);
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) .topbar-brand-text h1,
html[data-theme="light"] .layout-foundation-b1 .topbar:has(.topbar-brand) .topbar-brand-text h1 { color: #102c38; }

html[data-theme] body .topbar:has(.topbar-brand) .topbar-program-name { display: none; }

html[data-theme] body .topbar:has(.topbar-brand) .topbar-actions {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
}

html[data-theme] body .topbar:has(.topbar-brand) .topbar-avatar-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-profile-cluster { display: flex; align-items: center; gap: 5px; }

html[data-theme] body .topbar:has(.topbar-brand) .topbar-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  padding-left: 12px;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) .topbar-profile-link { border-left-color: rgba(16, 44, 56, .12); }

html[data-theme] body .topbar:has(.topbar-brand) .topbar-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(208, 154, 60, .55);
  background: rgba(208, 154, 60, .1);
  color: #e9b75f;
  font-size: 10px;
}

html[data-theme] body .topbar:has(.topbar-brand) .topbar-avatar-name {
  max-width: 112px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) .topbar-avatar-name { color: #102c38; }

html[data-theme] body .topbar:has(.topbar-brand) .theme-switch {
  width: 58px;
  min-height: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(5, 20, 28, .34);
  padding: 3px;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-switch {
  border-color: rgba(16, 44, 56, .14);
  background: rgba(255, 255, 255, .52);
}

html[data-theme] body .topbar:has(.topbar-brand) .theme-switch button {
  width: 24px;
  min-height: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: transparent;
  background: transparent;
  font-size: 0;
}

html[data-theme] body .topbar:has(.topbar-brand) .theme-switch button::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
  font-weight: 500;
}

html[data-theme] body .topbar:has(.topbar-brand) .theme-switch button[data-theme-choice="dark"]::before { content: "☾"; }
html[data-theme] body .topbar:has(.topbar-brand) .theme-switch button[data-theme-choice="light"]::before { content: "☼"; }
html[data-theme] body .topbar:has(.topbar-brand) .theme-switch button.active { background: #d5a34c; box-shadow: 0 3px 8px rgba(0, 0, 0, .22); }
html[data-theme] body .topbar:has(.topbar-brand) .theme-switch button.active::before { color: #102833; }
html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-switch button::before { color: #71858e; }

html[data-theme] body .topbar:has(.topbar-brand) .auth-logout-button {
  width: 26px;
  min-height: 30px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: transparent;
  background: transparent;
  font-size: 0;
}

html[data-theme] body .topbar:has(.topbar-brand) .auth-logout-button::before {
  content: "↪";
  color: rgba(255, 255, 255, .48);
  font-size: 16px;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) .auth-logout-button::before { color: #71858e; }

.topbar-watch { display: flex; align-items: center; gap: 9px; }
.topbar-watch-case { position: relative; width: 40px; height: 40px; flex: 0 0 40px; display: block; padding: 2px; border: 1px solid rgba(223, 188, 119, .44); border-radius: 50%; background: linear-gradient(135deg, #c5a25f 0%, #7c6336 32%, #d8bc7e 50%, #725a31 70%, #b99450 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 13px rgba(0,0,0,.23); }
.topbar-watch-crown { position: absolute; right: -3px; top: 16px; width: 3px; height: 7px; border-radius: 0 2px 2px 0; background: #9e8048; }
.topbar-watch-face { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 38% 28%, rgba(255,255,255,.11), transparent 28%), radial-gradient(circle, #0d2b37 0%, #071b25 72%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 10px rgba(0,0,0,.48); }
.topbar-watch-face::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(228,194,129,.16); border-radius: 50%; }
.topbar-watch-marker { position: absolute; top: 16px; width: 3px; height: 1px; background: rgba(228,194,129,.82); }
.topbar-watch-3 { right: 3px; }.topbar-watch-9 { left: 3px; }
.topbar-watch-roman { position: absolute; z-index: 1; right: 0; left: 0; color: rgba(233,204,145,.84); font-family: Georgia, "Times New Roman", serif; font-size: 4.5px; font-style: normal; line-height: 1; text-align: center; }
.topbar-watch-12 { top: 4px; }.topbar-watch-6 { bottom: 3px; }
.topbar-watch-hand { position: absolute; z-index: 2; left: 50%; bottom: 50%; display: block; transform-origin: 50% 100%; border-radius: 2px; }
.topbar-watch-hour { width: 2px; height: 8px; margin-left: -1px; background: #f1eadb; }
.topbar-watch-minute { width: 1px; height: 11px; background: #f1eadb; }
.topbar-watch-second { width: 1px; height: 12px; background: #d8a443; }
.topbar-watch-face em { position: absolute; z-index: 3; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #d8a443; box-shadow: 0 0 0 1px #102833; }
.topbar-watch-copy { min-width: 62px; display: grid; }
.topbar-watch-copy strong { color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.topbar-watch-copy small { color: rgba(255,255,255,.45); font-size: 8px; text-transform: capitalize; white-space: nowrap; }
html[data-theme="light"] .topbar-watch-face { background: radial-gradient(circle at 38% 30%, #fff, transparent 30%), radial-gradient(circle, #f7fafb 0%, #dfe7ea 74%); box-shadow: inset 0 0 0 1px rgba(16,44,56,.08), inset 0 0 8px rgba(16,44,56,.12); }
html[data-theme="light"] .topbar-watch-hour,
html[data-theme="light"] .topbar-watch-minute { background: #102c38; }
html[data-theme="light"] .topbar-watch-copy strong { color: #102c38; }
html[data-theme="light"] .topbar-watch-copy small { color: #74868d; }

html[data-theme] body .topbar:has(.topbar-brand) + .page-nav,
html[data-theme] .layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav {
  min-height: 43px;
  margin-top: 0;
  margin-bottom: 14px;
  gap: 22px;
  overflow-x: auto;
  border: 1px solid rgba(201, 148, 60, .3);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(4, 20, 28, .9);
  box-shadow: 0 14px 34px rgba(0,0,0,.13);
  padding: 0 22px;
  scrollbar-width: none;
}

html[data-theme] body .topbar:has(.topbar-brand) + .page-nav::-webkit-scrollbar { display: none; }
html[data-theme="light"] body .topbar:has(.topbar-brand) + .page-nav,
html[data-theme="light"] .layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav { background: rgba(248,250,251,.94); }

html[data-theme] body .topbar:has(.topbar-brand) + .page-nav > a,
html[data-theme] body .topbar:has(.topbar-brand) + .page-nav .nav-group > summary {
  min-height: 43px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: rgba(255,255,255,.62);
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) + .page-nav > a,
html[data-theme="light"] body .topbar:has(.topbar-brand) + .page-nav .nav-group > summary { color: #657983; }

html[data-theme] body .topbar:has(.topbar-brand) + .page-nav > a.active,
html[data-theme] body .topbar:has(.topbar-brand) + .page-nav .nav-group.has-active > summary {
  border-bottom-color: #d09a3c;
  color: #e4aa47;
}

@media (max-width: 1120px) {
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-text h1 { max-width: 240px; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-avatar-name,
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-watch-copy { display: none; }
}

@media (max-width: 760px) {
  html[data-theme] body .topbar:has(.topbar-brand) {
    min-height: 70px;
    flex-wrap: nowrap;
    padding: 0 11px;
  }
  html[data-theme] body .topbar:has(.topbar-brand)::before { inset-inline-start: 26%; opacity: .34; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-kbr-logo { width: 49px; height: 34px; flex-basis: 49px; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand { flex: 0 1 auto; width: auto; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-advisory,
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-context-sep,
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-text { display: none; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-sep { height: 23px; margin-inline: 9px; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-mobile-tenant {
    display: block;
    max-width: 33vw;
    overflow: hidden;
    color: #fff;
    font-size: 9px;
    font-weight: 720;
    letter-spacing: .16em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
  html[data-theme="light"] body .topbar:has(.topbar-brand) .topbar-mobile-tenant { color: #102c38; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-actions { flex: 0 0 auto; margin-left: auto; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-avatar-menu { gap: 8px; }
  html[data-theme] body .topbar:has(.topbar-brand) .theme-switch { width: 32px; min-height: 32px; display: block; padding: 4px; }
  html[data-theme] body .topbar:has(.topbar-brand) .theme-switch button { display: none; }
  html[data-theme="dark"] body .topbar:has(.topbar-brand) .theme-switch button[data-theme-choice="light"],
  html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-switch button[data-theme-choice="dark"] { display: block; }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-profile-link { border: 0; padding: 0; }
  html[data-theme] body .topbar:has(.topbar-brand) .auth-logout-button { display: none; }
  .topbar-watch-copy { display: none; }
  html[data-theme] body .topbar:has(.topbar-brand) + .page-nav,
  html[data-theme] .layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav {
    min-height: 41px;
    gap: 18px;
    padding-inline: 11px;
  }
}

/* Final alignment: show only the actual client and programme name. */
@media (min-width: 761px) {
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-tenant {
    display: none;
  }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-text {
    display: flex;
    align-items: center;
    align-self: stretch;
    justify-content: center;
  }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand-text h1,
  html[data-theme] .layout-foundation-b1 .topbar:has(.topbar-brand) .topbar-brand-text h1 {
    display: flex;
    align-items: center;
    min-height: 38px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 760;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
  }
}

/* Profile actions belong to a clear menu; no ambiguous logout icon in header. */
html[data-theme] body .topbar:has(.topbar-brand) { overflow: visible; }
html[data-theme] body .topbar:has(.topbar-brand) { z-index: 40; }
html[data-theme] body .topbar:has(.topbar-brand) + .page-nav { position: relative; z-index: 20; }
.topbar-profile-menu { position: relative; }
.topbar-profile-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 12px;
  list-style: none;
  cursor: pointer;
}
.topbar-profile-summary::-webkit-details-marker { display: none; }
.topbar-profile-summary::after { content: "⌄"; color: rgba(255,255,255,.42); font-size: 10px; transition: transform .18s ease; }
.topbar-profile-menu[open] .topbar-profile-summary::after { transform: rotate(180deg); }
.topbar-profile-menu-panel {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 24px);
  right: 0;
  width: 168px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(201,148,60,.28);
  border-radius: 7px;
  background: #0d2935;
  box-shadow: 0 16px 36px rgba(0,0,0,.32);
  padding: 5px;
}
.topbar-profile-menu-panel a,
html[data-theme] body .topbar:has(.topbar-brand) .topbar-profile-menu-panel .auth-logout-button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 4px;
  color: rgba(255,255,255,.76);
  background: transparent;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
html[data-theme] body .topbar:has(.topbar-brand) .topbar-profile-menu-panel .auth-logout-button::before { display: none; }
.topbar-profile-menu-panel a:hover,
html[data-theme] body .topbar:has(.topbar-brand) .topbar-profile-menu-panel .auth-logout-button:hover { color: #e4aa47; background: rgba(208,154,60,.08); }
html[data-theme="light"] .topbar-profile-summary { border-left-color: rgba(16,44,56,.12); }
html[data-theme="light"] .topbar-profile-summary::after { color: #71858e; }
html[data-theme="light"] .topbar-profile-menu-panel { border-color: rgba(16,44,56,.14); background: #fff; box-shadow: 0 16px 36px rgba(16,44,56,.16); }
html[data-theme="light"] .topbar-profile-menu-panel a,
html[data-theme="light"] body .topbar:has(.topbar-brand) .topbar-profile-menu-panel .auth-logout-button { color: #526b76; }

@media (max-width: 760px) {
  .topbar-profile-summary { border: 0; padding: 0; }
  .topbar-profile-summary::after { display: none; }
  .topbar-profile-menu-panel { top: calc(100% + 22px); right: -48px; }
}

/* ========================================================================== */
/* Premium MOS entrance                                                       */
/* ========================================================================== */

html[data-theme] body.login-page {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background: #061923;
  padding: clamp(16px, 3vw, 42px);
}

html[data-theme] body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,25,35,.98) 0%, rgba(6,25,35,.82) 36%, rgba(6,25,35,.38) 66%, rgba(6,25,35,.86) 100%),
    linear-gradient(180deg, rgba(6,25,35,.12), #061923 94%),
    url("./assets/header-visual-dark.png") center 48% / cover no-repeat;
  opacity: .94;
  mask-image: none;
}

html[data-theme] body.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 5%, rgba(208,154,60,.7) 18%, rgba(208,154,60,.08) 46%, transparent 82%) top / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 78%, rgba(3,14,20,.55));
}

html[data-theme="light"] body.login-page { background: #edf2f4; }
html[data-theme="light"] body.login-page::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.84) 37%, rgba(255,255,255,.35) 67%, rgba(245,248,249,.9) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), #edf2f4 96%),
    url("./assets/header-visual-light.png") center 48% / cover no-repeat;
  opacity: .96;
}
html[data-theme="light"] body.login-page::after { background: linear-gradient(90deg, transparent 5%, rgba(183,126,28,.65) 18%, rgba(183,126,28,.08) 46%, transparent 82%) top / 100% 1px no-repeat; }

.login-page .login-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  min-height: min(720px, calc(100svh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .72fr);
  overflow: hidden;
  border: 1px solid rgba(201,148,60,.3);
  border-radius: 8px;
  background: rgba(6,25,35,.42);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

html[data-theme="light"] .login-page .login-shell { border-color: rgba(16,44,56,.13); background: rgba(255,255,255,.4); box-shadow: 0 30px 90px rgba(16,44,56,.14); }

.login-identity {
  position: relative;
  min-height: 100%;
  display: grid;
  align-content: space-between;
  padding: clamp(34px, 5vw, 72px);
}

.login-identity::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(transparent, rgba(201,148,60,.5), rgba(255,255,255,.08), transparent);
}

.login-page .login-brand { align-self: start; display: flex; align-items: center; color: #fff; }
.login-page .login-brand { border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; backdrop-filter: none; padding: 0; }
.login-page .login-brand .dashboard-logo { width: 96px; filter: brightness(0) invert(1); }
.login-page .login-brand .dashboard-brand-divider { width: 1px; height: 40px; margin: 0 18px; background: #d09a3c; }
.login-page .login-brand .dashboard-brand-advisory { color: #fff; font-size: 15px; font-weight: 720; letter-spacing: .32em; text-transform: uppercase; }
html[data-theme="light"] .login-page .login-brand .dashboard-logo { filter: none; }
html[data-theme="light"] .login-page .login-brand .dashboard-brand-advisory { color: #102c38; }

.login-identity-copy { width: min(620px, 92%); align-self: center; display: grid; gap: 18px; padding-block: 48px; }
.login-identity-copy > span { color: #d5a34c; font-size: 10px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.login-identity-copy h1 { max-width: 610px; margin: 0; color: #fff; font-size: clamp(2.5rem, 4.4vw, 4.9rem); font-weight: 720; letter-spacing: 0; line-height: 1.02; text-wrap: balance; }
.login-identity-copy h1::before { display: none !important; content: none !important; }
.login-identity-copy p { max-width: 540px; margin: 0; color: rgba(255,255,255,.61); font-size: 15px; line-height: 1.65; }
html[data-theme="light"] .login-identity-copy h1 { color: #102c38; }
html[data-theme="light"] .login-identity-copy p { color: #647982; }

.login-signature { display: flex; align-items: center; gap: 12px; }
.login-signature > span { width: 38px; height: 1px; background: #d09a3c; }
.login-signature small { color: rgba(255,255,255,.45); font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
html[data-theme="light"] .login-signature small { color: #71858e; }

.login-page .login-panel {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 24px;
  border: 0;
  border-radius: 0;
  background: rgba(7,30,42,.84);
  box-shadow: none;
  backdrop-filter: blur(18px);
  padding: clamp(34px, 4.4vw, 64px);
}

html[data-theme="light"] .login-page .login-panel { background: rgba(255,255,255,.84); }

.login-panel-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 20px; }
.login-page .login-copy { gap: 8px; }
.login-page .login-copy > span { color: #d5a34c; font-size: 9px; letter-spacing: .16em; }
.login-page .login-copy h2 { margin: 0; color: #fff; font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 760; letter-spacing: 0; line-height: 1.05; text-transform: none; }
.login-page .login-copy p { max-width: 350px; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.55; }
html[data-theme="light"] .login-page .login-copy h2 { color: #102c38; }
html[data-theme="light"] .login-page .login-copy p { color: #647982; }

.login-theme-toggle { position: relative; width: 50px; height: 28px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.54); background: rgba(5,20,28,.34); padding: 0 6px; cursor: pointer; }
.login-theme-toggle span,.login-theme-toggle b { position: relative; z-index: 2; font-size: 11px; font-weight: 500; }
.login-theme-toggle i { position: absolute; z-index: 1; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #d5a34c; box-shadow: 0 3px 8px rgba(0,0,0,.24); transition: transform .22s ease; }
html[data-theme="dark"] .login-theme-toggle b { color: #102833; }
html[data-theme="light"] .login-theme-toggle { border-color: rgba(16,44,56,.14); color: #71858e; background: rgba(255,255,255,.5); }
html[data-theme="light"] .login-theme-toggle i { transform: translateX(-22px); }
html[data-theme="light"] .login-theme-toggle span { color: #102833; }

.login-context { display: flex; align-items: center; gap: 12px; border-block: 1px solid rgba(255,255,255,.09); padding-block: 13px; }
.login-context span { color: #d5a34c; font-size: 10px; font-weight: 850; }
.login-context p { margin: 0; color: rgba(255,255,255,.48); font-size: 10px; }
html[data-theme="light"] .login-context { border-color: rgba(16,44,56,.09); }
html[data-theme="light"] .login-context p { color: #71858e; }

.login-page .login-form { gap: 15px; }
.login-page .login-form > label { display: grid; gap: 7px; }
.login-page .login-form label > span { color: rgba(255,255,255,.58); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
html[data-theme="light"] .login-page .login-form label > span { color: #647982; }

.login-page .login-form select,
.login-page .login-password-row input {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  color: #f2f5f6;
  background: rgba(255,255,255,.055);
  padding-inline: 13px;
  font-size: 12px;
  font-weight: 680;
}

.login-page .login-form select:focus,
.login-page .login-password-row input:focus { border-color: rgba(208,154,60,.7); box-shadow: 0 0 0 3px rgba(208,154,60,.12); }
.login-page .login-password-row input::placeholder { color: rgba(255,255,255,.3); font-weight: 500; }
html[data-theme="light"] .login-page .login-form select,
html[data-theme="light"] .login-page .login-password-row input { border-color: rgba(16,44,56,.14); color: #102c38; background: rgba(245,248,249,.82); }
html[data-theme="light"] .login-page .login-password-row input::placeholder { color: #91a5ae; }

.login-page .login-password-row { grid-template-columns: minmax(0,1fr) 116px; gap: 8px; }
.login-page .login-password-row button { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 5px; background: #d5a34c; padding-inline: 15px; font-size: 11px; font-weight: 850; }
.login-page .login-password-row button b { font-size: 16px; font-weight: 500; }

.login-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 5px; }
.login-panel-footer span { color: rgba(255,255,255,.38); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-panel-footer span::before { content: ""; width: 6px; height: 6px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #54b88b; box-shadow: 0 0 0 3px rgba(84,184,139,.1); }
.login-panel-footer small { color: rgba(255,255,255,.34); font-size: 8px; }
html[data-theme="light"] .login-panel-footer span,
html[data-theme="light"] .login-panel-footer small { color: #71858e; }

@media (max-width: 900px) {
  .login-page .login-shell { min-height: auto; grid-template-columns: 1fr; }
  .login-identity { min-height: 240px; padding: 28px; }
  .login-identity::after { display: none; }
  .login-identity-copy { padding: 42px 0 12px; }
  .login-identity-copy h1 { max-width: 620px; font-size: clamp(2rem, 7vw, 3.6rem); }
  .login-signature { display: none; }
  .login-page .login-panel { padding: 32px 28px; }
}

@media (max-width: 560px) {
  html[data-theme] body.login-page { display: block; padding: 0; }
  .login-page .login-shell { min-height: 100svh; border: 0; border-radius: 0; }
  .login-identity { min-height: 190px; padding: 24px 20px; }
  .login-page .login-brand .dashboard-logo { width: 66px; }
  .login-page .login-brand .dashboard-brand-divider { height: 28px; margin-inline: 12px; }
  .login-page .login-brand .dashboard-brand-advisory { font-size: 10px; }
  .login-identity-copy { gap: 8px; padding: 28px 0 0; }
  .login-identity-copy h1 { max-width: 340px; font-size: 1.8rem; }
  .login-identity-copy p { display: none; }
  .login-page .login-panel { min-height: calc(100svh - 190px); align-content: start; gap: 20px; padding: 28px 20px; }
  .login-page .login-password-row { grid-template-columns: 1fr; }
  .login-page .login-password-row button { justify-content: center; }
  .login-page .login-password-row button b { position: absolute; right: 36px; }
}

@media (max-width: 760px) {
  .page-nav {
    display: flex;
    grid-template-columns: none;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .page-nav::-webkit-scrollbar { display: none; }

  .page-nav > .nav-primary-link,
  .page-nav > .nav-group {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .page-nav > .nav-primary-link,
  .nav-group summary {
    width: auto;
    min-width: max-content;
    justify-content: flex-start;
    padding-inline: 10px !important;
    font-size: 10.5px !important;
  }

  .nav-group-menu {
    width: min(280px, calc(100vw - 36px));
  }

  .nav-account {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .auth-user-badge {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Canonical finance: users enter costs and revenues; results stay calculated. */
.record-editor-finance-guide { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0 16px; }
.record-editor-finance-guide p { display:grid; gap:3px; margin:0; padding:10px 12px; border-top:1px solid var(--line); }
.record-editor-finance-guide strong { color:var(--text); font-size:.75rem; }
.record-editor-finance-guide span { color:var(--muted); font-size:.68rem; line-height:1.45; }
.record-editor-finance-simple-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.record-editor-finance-simple-grid > article { border:1px solid var(--line); border-radius:7px; padding:12px; background:color-mix(in srgb,var(--panel) 92%,transparent); }
.record-editor-money-input { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px; }
.record-editor-money-input > span { color:var(--muted); }
.record-editor-money-input input[readonly] { opacity:.68; cursor:not-allowed; }
.record-editor-finance-result { display:grid; grid-template-columns:1fr auto; gap:3px 16px; align-items:end; margin-top:12px; padding:13px 14px; border-top:1px solid var(--line); }
.record-editor-finance-result span,.record-editor-finance-result small { color:var(--muted); }
.record-editor-finance-result strong { font-size:1.2rem; color:var(--text); }
.record-editor-finance-result small { grid-column:1/-1; font-size:.68rem; }
.finance-scope-field { grid-column:1/-1; }
.finance-lock-note { margin:10px 0 0; color:var(--muted); font-size:.72rem; line-height:1.45; }
.finance-lock-note strong { color:var(--accent, #d8a23f); font-weight:700; }
.project-control-money-simple { display:grid; gap:1px; }
.project-money-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; padding:8px 10px; border-bottom:1px solid var(--line); }
.project-money-toolbar > div:first-child { display:grid; gap:2px; }
.project-money-toolbar span { color:var(--muted); font-size:.62rem; text-transform:uppercase; }
.project-money-toolbar strong { color:var(--text); font-size:.72rem; }
.project-scenario-switch { display:inline-flex; align-items:center; gap:2px; padding:2px; border:1px solid var(--line); border-radius:6px; background:color-mix(in srgb,var(--panel) 92%,transparent); }
.project-scenario-switch button { min-height:28px; padding:5px 9px; border:0; border-radius:4px; background:transparent; color:var(--muted); font-size:.66rem; cursor:pointer; }
.project-scenario-switch button.is-active { background:var(--text); color:var(--page-bg); }
.project-money-head,.project-money-row { display:grid; grid-template-columns:minmax(105px,.64fr) repeat(4,minmax(0,1fr)); gap:1px; }
.project-money-head { color:var(--muted); font-size:.63rem; text-transform:uppercase; }
.project-money-head strong { padding:8px 10px; }
.project-money-row > strong { display:flex; align-items:center; padding:10px; color:var(--text); font-size:.75rem; }
.project-money-row > button { display:grid; gap:2px; min-width:0; padding:9px 10px; border:1px solid var(--line); background:transparent; color:inherit; text-align:left; cursor:pointer; }
.project-money-row > button:hover { background:color-mix(in srgb,var(--panel) 82%,var(--gold) 3%); }
.project-money-row > button span,.project-money-row > button small { color:var(--muted); font-size:.62rem; }
.project-money-row > button b { color:var(--text); font-size:.86rem; }
.project-money-row > .project-money-scenario-value { border-color:color-mix(in srgb,var(--gold) 34%,var(--line)); background:color-mix(in srgb,var(--gold) 4%,transparent); }
.project-control-money-simple > footer { display:grid; grid-template-columns:1fr auto; gap:3px 14px; margin-top:9px; padding:10px; border-top:1px solid var(--line); }
.project-control-money-simple > footer span,.project-control-money-simple > footer small { color:var(--muted); font-size:.65rem; }
.project-control-money-simple > footer small { grid-column:1/-1; }
@media (max-width:760px) {
  .record-editor-finance-guide,.record-editor-finance-simple-grid { grid-template-columns:1fr; }
  .project-money-head { display:none; }
  .project-money-row { grid-template-columns:1fr; margin-bottom:8px; }
  .project-money-row > button { grid-template-columns:1fr auto; align-items:center; }
  .project-money-row > button small { grid-column:1/-1; }
  .project-money-toolbar { align-items:flex-start; flex-direction:column; }
  .project-scenario-switch { width:100%; }
  .project-scenario-switch button { flex:1; }
}

@media (max-width: 430px) {
  .page-nav {
    grid-template-columns: 1fr;
  }

  .nav-account {
    grid-column: 1;
  }

  .nav-group-menu {
    position: relative;
    top: auto;
    width: 100%;
    max-width: none;
    margin-top: 6px;
  }
}

.page-nav a:hover,
.page-nav a:focus-visible,
.page-nav a.active {
  color: var(--navy-dark);
  background: var(--gold);
}

.auth-logout-button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  border: 1px solid rgba(201, 148, 60, 0.34);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.1);
  padding: 0 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.035);
  padding: 0 13px;
  font-size: 0.78rem;
  font-weight: 850;
}

.auth-logout-button:hover,
.auth-logout-button:focus-visible {
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(1380px, 100%);
  margin: 12px auto 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 24, 34, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

select {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0 13px;
  font: inherit;
  font-weight: 750;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

select:focus-visible {
  border-color: rgba(201, 148, 60, 0.78);
  box-shadow: 0 0 0 3px rgba(201, 148, 60, 0.16);
}

option {
  color: var(--ink);
  background: var(--paper);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpis article,
.kpis a,
.narrative article,
.panel,
.module {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.kpis article,
.kpis a.kpi-nav-card {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.kpis article:hover,
.kpis a.kpi-nav-card:hover,
.kpis a.kpi-nav-card:focus-visible {
  border-color: rgba(201, 148, 60, 0.72);
  background: linear-gradient(180deg, rgba(201, 148, 60, 0.18), rgba(255, 255, 255, 0.07));
  transform: translateY(-2px);
  outline: none;
}

.kpis a.kpi-nav-card .kpi-nav-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.15s, transform 0.15s;
  pointer-events: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.kpis a.kpi-nav-card:hover .kpi-nav-arrow,
.kpis a.kpi-nav-card:focus-visible .kpi-nav-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

.kpis span,
.kpis small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.kpis span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kpis strong {
  display: block;
  margin: 8px 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.kpis small {
  font-size: 0.88rem;
}

.narrative {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  margin-bottom: 18px;
}

.narrative article {
  min-height: 148px;
  padding: 22px;
}

.narrative span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.narrative h2 {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.narrative p {
  max-width: 72ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.executive-stage,
.executive-focus,
.director-cockpit,
.my-work {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.executive-stage {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.executive-stage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: 18px;
  padding: 0 4px;
}

.executive-stage-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.executive-stage-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.executive-stage-heading p {
  max-width: 52ch;
  justify-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: right;
}

.executive-focus {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.executive-focus-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 104px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.032)),
    rgba(8, 24, 34, 0.84);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.efc-accent {
  width: 3px;
  flex-shrink: 0;
  border-radius: 10px 0 0 10px;
  background: var(--gold);
}

.efc-body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 15px 13px;
  flex: 1;
  min-width: 0;
}

.executive-focus-card:hover,
.executive-focus-card:focus-visible {
  transform: translateY(-1px);
  outline: 1px solid rgba(201, 148, 60, 0.48);
  outline-offset: 2px;
}

.executive-focus-card span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.executive-focus-card strong {
  display: -webkit-box;
  min-height: 2.55em;
  overflow: hidden;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.executive-focus-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.executive-focus-card.focus-risk .efc-accent { background: #e24b4a; }
.executive-focus-card.focus-decision .efc-accent { background: #ba7517; }
.executive-focus-card.focus-planning .efc-accent { background: #4f86f7; }
.executive-focus-card.focus-finance .efc-accent { background: #1d9e75; }
.executive-focus-card.focus-calm .efc-accent { background: rgba(46, 208, 160, 0.6); }

.director-cockpit {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
}

.director-cockpit-main,
.director-cockpit-lists article,
.my-work-heading,
.my-work-list a,
.my-work-list article {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(8, 24, 34, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.director-cockpit-main {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 356px;
  padding: 24px;
  border-left: 5px solid var(--gold);
}

.director-cockpit-main.director-good {
  border-left-color: #2ed0a0;
}

.director-cockpit-main.director-warning {
  border-left-color: var(--gold);
}

.director-cockpit-main.director-danger {
  border-left-color: #ff6b6b;
}

.director-cockpit-main span,
.director-cockpit-lists > article > span,
.my-work-heading span,
.quality-score span,
.quality-card span,
.project-finance-sources > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.director-cockpit-main h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 0;
  color: var(--white);
  line-height: 0.95;
}

.director-cockpit-main h2 strong {
  color: inherit;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.director-cockpit-main h2 small {
  max-width: 7.5em;
  color: inherit;
  font-size: clamp(1.15rem, 1.8vw, 1.85rem);
  font-weight: 950;
  line-height: 1.08;
  text-transform: uppercase;
}

.director-cockpit-main p,
.my-work-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.director-cockpit-main dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.director-cockpit-main dl div {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.cockpit-hover-item,
.director-cockpit-lists a {
  position: relative;
}

.cockpit-hover-item:hover,
.cockpit-hover-item:focus-visible,
.director-cockpit-lists a:hover,
.director-cockpit-lists a:focus-visible {
  z-index: 20;
  outline: 1px solid rgba(201, 148, 60, 0.48);
  outline-offset: 2px;
}

.cockpit-hover-item:hover .cockpit-popover,
.cockpit-hover-item:focus-visible .cockpit-popover,
.director-cockpit-lists a:hover .cockpit-popover,
.director-cockpit-lists a:focus-visible .cockpit-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cockpit-popover {
  width: min(290px, 82vw);
  text-transform: none;
  letter-spacing: 0;
}

.cockpit-empty {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  font-style: italic;
  padding: 6px 0;
}

.director-cockpit-main dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.director-cockpit-main dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 950;
}

.director-cockpit-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.director-cockpit-lists article {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 8px;
  min-height: 356px;
  padding: 16px;
  min-width: 0;
}

.director-cockpit-lists a,
.my-work-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 9px 12px;
  transition: border-color 0.15s, background 0.15s;
}

.director-cockpit-lists a:hover,
.director-cockpit-lists a:focus-visible,
.my-work-list a:hover,
.my-work-list a:focus-visible {
  border-color: rgba(201, 148, 60, 0.4);
  background: rgba(201, 148, 60, 0.05);
  outline: none;
  z-index: 20;
}

.director-cockpit-lists strong,
.my-work-list strong {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 1px;
  line-height: 1.4;
}

.cockpit-card-body {
  display: grid;
  gap: 2px;
}

.cockpit-card-title {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  line-height: 1.35;
}

.director-cockpit-lists small,
.my-work-list small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
}

.my-work {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
}

.my-work-heading {
  padding: 14px;
}

.my-work-heading h2 {
  margin: 5px 0;
  color: var(--white);
  font-size: 1.25rem;
}

.my-work-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.my-work-list a,
.my-work-list article {
  padding: 12px;
  min-width: 0;
}

.update-workflow {
  margin-bottom: 18px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: var(--surface-glass);
  color: inherit;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.workflow-card:hover,
.workflow-card:focus-visible {
  border-color: rgba(201, 148, 60, 0.6);
  outline: none;
  transform: translateY(-1px);
}

.workflow-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.42);
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  font-size: 0.86rem;
  font-weight: 950;
}

.workflow-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.workflow-ready .workflow-status {
  color: #e4fff8;
  background: rgba(102, 184, 164, 0.2);
  border: 1px solid rgba(102, 184, 164, 0.4);
}

.workflow-attention .workflow-status {
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.18);
  border: 1px solid rgba(201, 148, 60, 0.4);
}

.workflow-risk .workflow-status {
  color: #ffe3e0;
  background: rgba(190, 78, 70, 0.2);
  border: 1px solid rgba(190, 78, 70, 0.4);
}

.workflow-card h3 {
  margin: 10px 0 8px;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.12;
}

.workflow-card p,
.workflow-card small {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.workflow-card small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.reporting-quality {
  display: grid;
  gap: 14px;
}

.quality-score {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.quality-score.quality-ready {
  border-left-color: #2ed0a0;
}

.quality-score.quality-risk {
  border-left-color: #ff6b6b;
}

.quality-score strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
}

.quality-score p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quality-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.quality-card.quality-ready {
  box-shadow: inset 3px 0 0 #2ed0a0;
}

.quality-card.quality-attention {
  box-shadow: inset 3px 0 0 var(--gold);
}

.quality-card.quality-risk {
  box-shadow: inset 3px 0 0 #ff6b6b;
}

.quality-card strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
}

.quality-card small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.35;
}

.reporting-cycle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 14px;
}

.reporting-period-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.reporting-period-form label,
.quality-toolbar label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
}

.reporting-period-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.reporting-period-status,
.snapshot-list {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.reporting-period-status > span,
.reporting-period-status p,
.snapshot-list small,
.snapshot-list p {
  color: rgba(255, 255, 255, 0.62);
}

.reporting-period-status > strong { display: block; margin-top: 6px; color: var(--white); font-size: 1.15rem; }
.reporting-period-status p { margin: 7px 0 12px; line-height: 1.45; }
.reporting-readiness { display: flex; align-items: baseline; gap: 10px; }
.reporting-readiness b { color: var(--gold); font-size: 1.8rem; }
.reporting-readiness span { color: var(--white); font-weight: 800; }
.snapshot-list { margin-top: 12px; }
.snapshot-list h3 { margin: 0 0 10px; color: var(--white); }
.snapshot-list article { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.09); }
.snapshot-list article div { display: grid; gap: 3px; }
.snapshot-list article > span { color: var(--gold); font-size: .75rem; font-weight: 900; }

.quality-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
}

.quality-toolbar select { min-width: 150px; }
.quality-toolbar > span { margin-left: auto; color: rgba(255,255,255,.58); font-size: .8rem; }
.quality-issue-list { max-height: 520px; overflow: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; }
.quality-issue { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.quality-issue:last-child { border-bottom: 0; }
.quality-issue div { display: grid; gap: 3px; }
.quality-issue strong { color: var(--white); }
.quality-issue small { color: rgba(255,255,255,.6); }
.quality-severity { border-radius: 4px; padding: 4px 6px; text-align: center; font-size: .7rem; font-weight: 900; }
.quality-severity.quality-risk { color: #ff9b9b; background: rgba(255,107,107,.12); }
.quality-severity.quality-attention { color: var(--gold); background: rgba(222,164,57,.12); }
.quality-empty { display: grid; gap: 4px; padding: 18px; color: var(--white); }
.quality-empty span { color: rgba(255,255,255,.62); }
body.beheer-unlocked .quality-issue .record-editor-button { display: inline-flex; }

.overview-reporting-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1380px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin: 0 auto 14px;
  overflow: hidden;
}

.overview-reporting-status > div { display: grid; gap: 4px; padding: 12px 14px; border-right: 1px solid var(--line); }
.overview-reporting-status > div:last-child { border-right: 0; }
.overview-reporting-status span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.overview-reporting-status strong { color: var(--ink); font-size: .88rem; }

@media (max-width: 900px) {
  .reporting-cycle-layout { grid-template-columns: 1fr; }
  .reporting-period-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-reporting-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-reporting-status > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 600px) {
  .reporting-period-form { grid-template-columns: 1fr; }
  .quality-toolbar { align-items: stretch; flex-direction: column; }
  .quality-toolbar > span { margin-left: 0; }
  .quality-issue { grid-template-columns: 1fr; }
  .overview-reporting-status { grid-template-columns: 1fr; }
  .overview-reporting-status > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-reporting-status > div:last-child { border-bottom: 0; }
}

.beheer-workspace {
  width: auto;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.beheer-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: var(--surface-glass);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

body.beheer-locked .beheer-workspace .beheer-panel:not(:first-child) {
  opacity: 0.46;
  filter: saturate(0.55);
}

body.beheer-locked .beheer-workspace .beheer-panel:not(:first-child)::after {
  content: "Vergrendeld - ontgrendel de beheerpagina om wijzigingen te maken";
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #fff1d5;
  background: rgba(7, 22, 31, 0.58);
  padding: 18px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.beheer-panel.is-collapsed {
  padding: 10px;
}

.beheer-panel .section-heading {
  margin-bottom: 16px;
}

.beheer-panel.is-collapsed .section-heading {
  margin-bottom: 0;
}

.beheer-panel.is-collapsed .section-heading p {
  display: none;
}

.beheer-panel-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.032)),
    rgba(5, 17, 24, 0.32);
  padding: 13px 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.beheer-panel-toggle:hover,
.beheer-panel-toggle:focus-visible {
  border-color: rgba(201, 148, 60, 0.54);
  outline: none;
}

.beheer-panel-toggle span:first-child {
  display: grid;
  gap: 3px;
}

.beheer-panel-toggle small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.beheer-panel-toggle strong {
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.15;
}

.beheer-panel-toggle span:last-child {
  min-width: 82px;
  border: 1px solid rgba(201, 148, 60, 0.32);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.1);
  padding: 5px 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 950;
}

.beheer-panel-toggle[aria-expanded="true"] span:last-child {
  color: var(--navy-dark);
  background: var(--gold);
}

.beheer-panel-content {
  display: grid;
  gap: 14px;
}

.beheer-panel-content[hidden] {
  display: none !important;
}

.beheer-workflow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beheer-workflow-grid .workflow-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(8, 24, 34, 0.88);
  border-color: rgba(255, 255, 255, 0.16);
}

.beheer-card-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.beheer-card-types button {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(8, 24, 34, 0.8);
  padding: 16px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.beheer-card-types button:hover,
.beheer-card-types button:focus-visible {
  border-color: rgba(201, 148, 60, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.beheer-card-types span {
  width: fit-content;
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 999px;
  color: var(--gold);
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beheer-card-types strong {
  color: var(--white);
  font-size: 1.06rem;
  line-height: 1.15;
}

.beheer-card-types small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 780;
}

.beheer-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.beheer-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.beheer-form fieldset label:has(textarea),
.beheer-form fieldset label:first-of-type:last-of-type {
  grid-column: 1 / -1;
}

.beheer-form legend {
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beheer-form h3 {
  margin: 0;
  color: var(--gold);
  font-size: 1rem;
}

.beheer-form label {
  display: grid;
  /* Gestapeld: label boven, invoerveld eronder, hint daaronder. Overstemt de
     globale 2-koloms `label`-regel; die liet kolom 1 (auto) meegroeien met de
     lange wachtwoordhint, waardoor het invoerveld tot breedte 0 kromp. */
  grid-template-columns: none;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beheer-form input,
.beheer-form select,
.beheer-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(5, 17, 24, 0.42);
  padding: 11px 12px;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.beheer-form textarea {
  min-height: 108px;
  resize: vertical;
}

.beheer-form input:focus,
.beheer-form select:focus,
.beheer-form textarea:focus {
  border-color: rgba(201, 148, 60, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 148, 60, 0.12);
}

.finance-ambition-builder {
  grid-column: 1 / -1;
  min-width: 0;
}

.finance-ambition-grid {
  display: grid;
  gap: 8px;
}

.finance-ambition-head,
.finance-ambition-row {
  display: grid;
  grid-template-columns: 72px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.finance-ambition-head {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.finance-ambition-row {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.finance-ambition-row strong {
  align-self: center;
  color: var(--white);
}

.finance-ambition-row label {
  gap: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.beheer-form button,
.beheer-actions button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid rgba(201, 148, 60, 0.36);
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 8px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.beheer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.beheer-actions button:last-child {
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
}

.beheer-lock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(201, 148, 60, 0.24);
  border-radius: 10px;
  background: rgba(5, 17, 24, 0.35);
  padding: 16px;
}

.presentation-launch-panel {
  overflow: hidden;
}

.presentation-launch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 30%, rgba(78, 165, 182, 0.15), transparent 30%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 26px 60px rgba(0, 0, 0, 0.24);
  padding: 28px;
}

.presentation-launch-card > div:first-child {
  display: grid;
  gap: 7px;
}

.presentation-launch-card small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.presentation-launch-card strong {
  color: #fff;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  letter-spacing: -0.035em;
}

.presentation-launch-card span {
  color: var(--muted);
}

.presentation-launch-actions {
  display: grid;
  gap: 10px;
  min-width: 230px;
}

.presentation-launch-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 17px;
  font-weight: 900;
  text-decoration: none;
}

.presentation-primary-action {
  color: var(--navy-dark);
  background: var(--gold);
}

.presentation-secondary-action {
  border: 1px solid rgba(201, 148, 60, 0.34);
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.1);
}

.presentation-security-note {
  margin: 15px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 780px) {
  .presentation-launch-card { grid-template-columns: 1fr; }
  .presentation-launch-actions { min-width: 0; }
}

.beheer-lock-panel div {
  display: grid;
  gap: 3px;
}

.beheer-lock-panel strong {
  color: var(--white);
  font-size: 1.05rem;
}

.beheer-lock-panel small {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 780;
}

.beheer-lock-panel button,
.overview-module-form button {
  min-height: 40px;
  border: 1px solid rgba(201, 148, 60, 0.36);
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 8px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.program-manager-workbench {
  display: grid;
  gap: 14px;
}

.workbench-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workbench-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workbench-command {
  display: grid;
  gap: 4px;
  min-height: 98px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workbench-command:hover,
.workbench-command:focus-visible,
.workbench-command.is-active {
  border-color: rgba(201, 148, 60, 0.58);
  background: rgba(201, 148, 60, 0.1);
  outline: none;
}

.workbench-command span { color: var(--gold); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.workbench-command strong { color: var(--white); font-size: 1.45rem; }
.workbench-command small { color: rgba(255, 255, 255, 0.58); line-height: 1.3; }

.workbench-edit-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.workbench-edit-levels span,
.workbench-edit-levels a {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  color: inherit;
  padding: 7px 10px;
  text-decoration: none;
}

.workbench-edit-levels .is-active { border-color: var(--gold); color: var(--gold); }
.workbench-change-reason { margin-top: 10px; }

.reporting-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.reporting-step-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: var(--white);
}

.reporting-step-heading span { color: var(--gold); font-size: 0.78rem; font-weight: 900; }

.reporting-step {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  padding: 11px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.reporting-step.is-complete { border-color: rgba(86, 196, 154, 0.48); background: rgba(86, 196, 154, 0.08); }
.reporting-step span { color: var(--gold); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.reporting-step.is-complete span { color: #7bd8b4; }
.reporting-step strong { color: var(--white); }
.reporting-step small { color: rgba(255, 255, 255, 0.56); }

.snapshot-entry details { margin-top: 7px; color: rgba(255, 255, 255, 0.65); }
.snapshot-entry summary { color: var(--gold); cursor: pointer; font-size: 0.76rem; font-weight: 850; }
.snapshot-entry details p { line-height: 1.5; }

.workbench-summary article,
.workbench-attention,
.workbench-form {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
}

.workbench-summary span,
.workbench-attention > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workbench-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 1.35rem;
}

.workbench-summary small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.35;
}

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
}

.workbench-attention {
  display: grid;
  align-content: start;
  gap: 8px;
}

.workbench-attention button {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: inherit;
  background: rgba(5, 17, 24, 0.28);
  padding: 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workbench-attention button:hover,
.workbench-attention button:focus-visible {
  border-color: rgba(201, 148, 60, 0.5);
  outline: none;
}

.workbench-attention strong {
  color: var(--white);
  font-size: 0.86rem;
  line-height: 1.25;
}

.workbench-attention small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  line-height: 1.35;
}

.workbench-form {
  margin: 0;
}

.workbench-form fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workbench-form label:has(textarea),
.workbench-form label:first-of-type {
  grid-column: 1 / -1;
}

.workbench-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workbench-form-actions button {
  flex: 1 1 180px;
}

.workbench-form-actions .secondary-button {
  border-color: rgba(201, 148, 60, 0.45);
  color: var(--gold);
  background: rgba(201, 148, 60, 0.08);
}

.record-editor-button {
  display: none;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 148, 60, 0.48);
  border-radius: 7px;
  color: var(--gold);
  background: rgba(201, 148, 60, 0.09);
  padding: 6px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

body.edit-mode .record-editor-button,
.record-editor-button[data-authorized-edit="true"] {
  display: inline-flex;
}

.record-editor-button:hover,
.record-editor-button:focus-visible {
  border-color: var(--gold);
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.record-view-content {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.record-view-field {
  min-height: 72px;
}

.record-view-value {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
  padding: 9px 10px;
  line-height: 1.45;
}

.record-view-empty {
  color: rgba(255, 255, 255, 0.34);
  font-style: italic;
}

.record-view-chip,
.record-view-link {
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 148, 60, 0.08);
  padding: 4px 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.record-view-link {
  cursor: pointer;
}

.record-view-link:hover,
.record-view-link:focus-visible {
  border-color: rgba(201, 148, 60, 0.58);
  background: rgba(201, 148, 60, 0.16);
  outline: none;
}

.record-view-finance-list {
  display: grid;
  gap: 8px;
}

.record-view-finance-list article {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.record-view-finance-list article strong {
  color: var(--gold);
}

.record-view-finance-list article span,
.record-view-finance-list article p,
.record-view-finance-list dt {
  color: rgba(255, 255, 255, 0.62);
}

.record-view-finance-list dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.record-view-finance-list dl div {
  display: grid;
  gap: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 7px;
}

.record-view-finance-list dt,
.record-view-finance-list dd {
  margin: 0;
}

.record-view-actions .record-editor-button {
  display: inline-flex;
  text-decoration: none;
}

html[data-theme="light"] .record-view-value {
  border-color: rgba(16, 40, 51, 0.11);
  color: rgba(16, 40, 51, 0.86);
  background: rgba(16, 40, 51, 0.035);
}

html[data-theme="light"] .record-view-empty {
  color: rgba(16, 40, 51, 0.38);
}

html[data-theme="light"] .record-view-finance-list article,
html[data-theme="light"] .record-view-finance-list dl div {
  border-color: rgba(16, 40, 51, 0.1);
  background: rgba(16, 40, 51, 0.03);
}

html[data-theme="light"] .record-view-finance-list article span,
html[data-theme="light"] .record-view-finance-list article p,
html[data-theme="light"] .record-view-finance-list dt {
  color: rgba(16, 40, 51, 0.6);
}

@media (max-width: 720px) {
  .record-view-finance-list dl {
    grid-template-columns: 1fr;
  }
}

.record-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(2, 12, 18, 0.82);
  padding: 24px;
}

.record-editor-modal[hidden] {
  display: none;
}

.record-editor-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(201, 148, 60, 0.42);
  border-radius: 10px;
  color: var(--white);
  background: #0a202d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.password-panel {
  width: min(440px, 100%);
}

.password-modal-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.record-editor-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 27, 39, 0.98);
  padding: 18px 20px;
}

.record-editor-header span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.record-editor-header h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 1.35rem;
}

.record-editor-close,
.record-editor-cancel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.record-editor-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.record-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.record-editor-finance {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(41, 176, 168, 0.28);
  background: rgba(8, 37, 51, 0.035);
}

.record-editor-strategy {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(201, 148, 60, 0.32);
  background: rgba(201, 148, 60, 0.06);
}

.record-editor-finance-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.record-editor-finance-heading span,
.record-editor-finance-heading small {
  color: var(--muted);
  font-size: 12px;
}

.record-editor-finance-heading h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.record-editor-finance-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.record-editor-finance-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.record-editor-finance-fields {
  padding: 10px 0 16px;
}

.record-editor-finance-fields[hidden] {
  display: none;
}

.record-editor-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 850;
}

.record-editor-field > span > span {
  margin-left: 3px;
  color: var(--gold);
}

.record-editor-field small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.35;
}

.record-editor-field-wide {
  grid-column: 1 / -1;
}

.record-editor-field input,
.record-editor-field select,
.record-editor-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.065);
  padding: 9px 11px;
  font: inherit;
}

.record-editor-field textarea {
  resize: vertical;
}

.record-editor-field input:focus,
.record-editor-field select:focus,
.record-editor-field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(201, 148, 60, 0.2);
}

.record-editor-validation {
  margin: 0;
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 7px;
  color: #ffd3d3;
  background: rgba(255, 107, 107, 0.1);
  padding: 10px 12px;
  font-weight: 800;
}

.record-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 14px;
}

.record-editor-actions small {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.56);
}

.record-editor-actions button[type="submit"] {
  min-height: 38px;
  border: 1px solid rgba(201, 148, 60, 0.5);
  border-radius: 7px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 8px 14px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.my-work {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(8, 24, 34, 0.72);
  padding: 14px;
}

.my-work-header {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(420px, 1.25fr);
  gap: 12px;
  align-items: stretch;
}

.my-work-heading {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px;
}

.my-work-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.my-work-kpis button {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.my-work-kpis button:hover,
.my-work-kpis button:focus-visible {
  border-color: rgba(201, 148, 60, 0.5);
  outline: none;
}

.my-work-kpis span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.my-work-kpis strong {
  color: var(--white);
  font-size: 1.4rem;
}

.my-work-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.my-work-filters label {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 900;
}

.my-work-filters select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 9px;
  font: inherit;
}

.my-work-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 3px;
}

.my-work-list .my-work-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(5, 17, 24, 0.32);
  padding: 9px 11px;
}

.my-work-list .urgency-te-laat {
  border-left-color: #ff6b6b;
}

.my-work-list .urgency-nadert,
.my-work-list .urgency-prioriteit {
  border-left-color: var(--gold);
}

.my-work-list .urgency-open {
  border-left-color: #2ed0a0;
}

.my-work-row a {
  min-width: 0;
}

.my-work-row-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 120px;
}

.my-work-row-meta b {
  color: var(--gold);
  font-size: 0.76rem;
}

.my-work-row-meta em {
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.72rem;
  font-style: normal;
}

.my-work-list .my-work-empty {
  min-height: 92px;
}

/* ── GOV-STRAT-02b: strategische keten-werkvoorraad ── */
.strategic-chain-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
.strategic-chain-coverage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.strategic-chain-coverage > span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.strategic-chain-coverage strong { color: rgba(255, 255, 255, 0.86); font-size: 12px; }
.strategic-chain-coverage em { grid-column: 1 / -1; color: #c9943c; font-size: 10px; font-style: normal; }
.strategic-signal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
}
.strategic-signal-type {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.strategic-signal-type.sig-suggest { background: rgba(201, 148, 60, 0.15); color: #e6b458; }
.strategic-signal-type.sig-link { background: rgba(180, 60, 60, 0.15); color: #e06060; }
.strategic-signal-type.sig-measure { background: rgba(40, 120, 200, 0.15); color: #60aadc; }
.strategic-signal-type.sig-diverge { background: rgba(139, 92, 246, 0.18); color: #b79df5; }
.strategic-signal-body { min-width: 0; }
.strategic-signal-text { font-size: 13px; color: #d8e4ee; display: block; }
.strategic-signal-body small { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.strategic-signal-action {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 148, 60, 0.35);
  background: rgba(201, 148, 60, 0.08);
  color: #e6b458;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.strategic-signal-action:hover { background: rgba(201, 148, 60, 0.18); }
.strategic-signal-actions { display: flex; align-items: center; gap: 6px; }
.strategic-signal-action.is-primary { color: #08151e; border-color: #c9943c; background: #c9943c; }
.strategic-signal-action.is-primary:hover { background: #d6a54f; }
.strategic-signal-action.is-ghost { color: rgba(255, 255, 255, 0.48); border-color: rgba(255, 255, 255, 0.12); background: transparent; }
.strategic-suggestion-panel { width: min(760px, 100%); }
.strategic-suggestion-context {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 5px 12px;
  padding: 10px 0 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}
.strategic-suggestion-context strong { color: rgba(255, 255, 255, 0.84); font-weight: 700; }
html[data-theme="light"] .strategic-signal { background: rgba(0, 0, 0, 0.02); border-color: rgba(16, 44, 56, 0.1); }
html[data-theme="light"] .strategic-signal-text { color: #1a2a38; }
html[data-theme="light"] .strategic-chain-coverage > span { color: rgba(16, 44, 56, 0.55); border-color: rgba(16, 44, 56, 0.1); }
html[data-theme="light"] .strategic-chain-coverage strong { color: #102c38; }
html[data-theme="light"] .strategic-signal-action.is-ghost { color: rgba(16, 44, 56, 0.58); border-color: rgba(16, 44, 56, 0.16); }
html[data-theme="light"] .strategic-suggestion-context { color: rgba(16, 40, 51, 0.52); }
html[data-theme="light"] .strategic-suggestion-context strong { color: rgba(16, 40, 51, 0.88); }
@media (max-width: 640px) {
  .strategic-chain-coverage { grid-template-columns: 1fr; }
  .strategic-signal { grid-template-columns: auto 1fr; }
  .strategic-signal-actions, .strategic-signal-action { grid-column: 2; justify-self: start; }
  .strategic-signal-actions { flex-wrap: wrap; }
}

.work-page-summary,
.work-page-module {
  width: min(1380px, 100%);
  margin: 0 auto 18px;
}

.work-page-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.work-page-summary button {
  display: grid;
  gap: 5px;
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: inherit;
  background: rgba(8, 24, 34, 0.76);
  padding: 13px;
  text-align: left;
  cursor: pointer;
}

.work-page-summary button:hover,
.work-page-summary button:focus-visible {
  border-color: rgba(201, 148, 60, 0.52);
  outline: none;
}

.work-page-summary span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.work-page-summary strong {
  color: var(--white);
  font-size: 1.7rem;
}

.work-page-summary small {
  color: rgba(255, 255, 255, 0.58);
}

.work-page-module {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(8, 24, 34, 0.72);
  padding: 16px;
}

.work-page-list {
  max-height: 620px;
}

.work-presets,
.work-bulk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.work-presets > span { margin-right: 4px; color: rgba(255,255,255,.58); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.work-presets button,
.work-bulk-toolbar button { min-height: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; color: var(--white); background: rgba(255,255,255,.05); padding: 0 11px; font-weight: 800; cursor: pointer; }
.work-presets button:hover { border-color: var(--gold); }
.work-bulk-toolbar { border: 1px solid rgba(201,148,60,.24); border-radius: 7px; background: rgba(201,148,60,.06); padding: 9px 11px; }
.work-bulk-toolbar strong { color: var(--gold); }
.work-bulk-toolbar label { display: flex; align-items: center; gap: 8px; margin-left: auto; color: rgba(255,255,255,.65); font-size: .75rem; font-weight: 800; }
.work-bulk-toolbar select,
.work-quick-status select { min-height: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: var(--white); background: #102734; padding: 0 8px; }
.work-select { display: grid; place-items: center; }
.work-select input { width: 17px; height: 17px; accent-color: var(--gold); }
.work-quick-status { display: grid; gap: 3px; }
.work-quick-status span { color: rgba(255,255,255,.55); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.work-page-module .record-editor-button { display: inline-flex; }
.record-editor-button[data-authorized-edit="true"] { display: inline-flex; }

.audit-history { display: grid; gap: 8px; max-height: 560px; overflow: auto; }
.audit-entry { border: 1px solid rgba(255,255,255,.11); border-radius: 7px; background: rgba(5,17,24,.32); padding: 12px; }
.audit-entry-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.audit-entry-head div { display: grid; gap: 3px; }
.audit-entry-head span { color: var(--gold); font-size: .72rem; font-weight: 900; }
.audit-entry-head strong { color: var(--white); }
.audit-entry-head small { color: rgba(255,255,255,.58); }
.audit-entry-head button { border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: var(--white); background: transparent; padding: 7px 10px; }
.audit-entry dl { display: grid; gap: 5px; margin: 10px 0 0; }
.audit-entry dl div { display: grid; grid-template-columns: minmax(120px,.35fr) 1fr; gap: 10px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 6px; }
.audit-entry dt { color: rgba(255,255,255,.66); font-size: .75rem; font-weight: 800; }
.audit-entry dd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; font-size: .76rem; }
.audit-entry del { color: #ff9b9b; }
.audit-entry ins { color: #79ddb9; text-decoration: none; }

.work-preview-button {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  color: inherit;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-preview-button span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.work-preview-button strong {
  color: var(--white);
  font-size: 0.9rem;
}

.work-preview-button small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

@media (max-width: 860px) {
  .my-work-header,
  .my-work-filters,
  .record-editor-grid,
  .work-page-summary {
    grid-template-columns: 1fr;
  }

  .record-editor-field-wide {
    grid-column: auto;
  }

  .my-work-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .my-work-list .my-work-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .work-select { grid-row: 1; }
  .work-quick-status { grid-column: 1 / -1; }

  .my-work-row-meta {
    min-width: 96px;
  }

  .my-work-row .record-editor-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .record-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .record-editor-actions small {
    margin: 0;
  }
}

@media (max-width: 560px) {
  .record-editor-modal {
    padding: 8px;
  }

  .record-editor-panel {
    max-height: calc(100vh - 16px);
  }

  .record-editor-header,
  .record-editor-form {
    padding: 14px;
  }

  .my-work-kpis {
    grid-template-columns: 1fr;
  }

  .my-work-list .my-work-row {
    grid-template-columns: 1fr;
  }

  .my-work-row-meta {
    justify-items: start;
  }

  .work-bulk-toolbar label { align-items: stretch; flex-direction: column; margin-left: 0; width: 100%; }
  .audit-entry dl div,
  .audit-entry dd { grid-template-columns: 1fr; }
}

.overview-module-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.overview-module-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 17, 24, 0.32);
  padding: 8px 11px;
  letter-spacing: 0;
  text-transform: none;
}

.overview-module-form input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.beheer-feedback {
  min-height: 22px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 850;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid rgba(201, 148, 60, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(201, 148, 60, 0.08);
  padding: 11px 12px;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.5;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(201, 148, 60, 0.08);
  padding: 10px 12px;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.financial-impact-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(102, 184, 164, 0.28);
  border-radius: 10px;
  background: rgba(102, 184, 164, 0.075);
  padding: 12px;
}

.feedback-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 44px));
  border: 1px solid rgba(201, 148, 60, 0.44);
  border-radius: 10px;
  color: #fff8eb;
  background:
    linear-gradient(180deg, rgba(201, 148, 60, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(6, 18, 27, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  padding: 12px 15px;
  font-size: 0.9rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.feedback-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.concept-card-list {
  margin-top: 16px;
}

.concept-heading {
  margin-bottom: 10px;
}

.concept-heading h2 {
  font-size: 1rem;
}

.concept-card-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.concept-card-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px 12px;
}

.concept-card-list li div {
  display: grid;
  gap: 2px;
}

.concept-card-list strong {
  color: var(--white);
}

.concept-card-list span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
}

.concept-card-list button {
  min-height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.34);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
  padding: 6px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.beheer-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(5, 17, 24, 0.72);
  padding: 24px;
}

.beheer-modal[hidden] {
  display: none;
}

.beheer-modal-panel {
  width: min(980px, 100%);
  max-height: min(88vh, 940px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(8, 24, 34, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.beheer-modal-form {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 20px 20px;
}

.beheer-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.beheer-modal-actions .modal-close-secondary {
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
}

.kpi-config-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.kpi-config-summary > div {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.kpi-config-summary > div:last-child { border-right: 0; }
.kpi-config-summary strong { color: var(--white); font-size: 1.25rem; }
.kpi-config-summary span,
.kpi-config-toolbar span,
.kpi-assignment-row small,
.kpi-metric-type-row small,
.kpi-shadow-summary span { color: var(--muted); font-size: 0.76rem; }

.kpi-config-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.kpi-config-toolbar > div { display: grid; gap: 3px; }
.kpi-config-toolbar strong { color: var(--white); }
.kpi-config-toolbar button,
.kpi-row-actions button {
  min-height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.42);
  border-radius: 6px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
  padding: 7px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.kpi-metric-type-list,
.kpi-assignment-list { display: grid; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.kpi-assignment-list { max-height: 390px; overflow: auto; scrollbar-gutter: stable; }

.kpi-metric-type-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(80px, 0.45fr) minmax(170px, 1fr) minmax(120px, 0.75fr) minmax(70px, 0.35fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.78rem;
}

.kpi-metric-type-row > div:first-child,
.kpi-assignment-row > span { display: grid; gap: 3px; }
.kpi-row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.kpi-row-actions .button-subtle { border-color: rgba(255, 255, 255, 0.16); color: var(--muted); background: transparent; }

.kpi-assignment-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.5fr) minmax(240px, 0.8fr);
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.kpi-assignment-row > span strong { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.08em; }
.kpi-assignment-row select { width: 100%; }
.kpi-shadow-summary { display: flex; gap: 10px; margin-top: 14px; border-left: 2px solid var(--gold); padding: 9px 12px; }
.kpi-shadow-summary strong { color: var(--gold); white-space: nowrap; }
.kpi-shadow-report-module { margin-top: 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; overflow: hidden; }
.kpi-shadow-report-module > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 11px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
}
.kpi-shadow-report-module > summary::-webkit-details-marker { display: none; }
.kpi-shadow-report-module > summary > span:first-child { display: grid; gap: 3px; }
.kpi-shadow-report-module > summary small { color: var(--gold); font-size: 0.67rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.kpi-shadow-report-module > summary > span:last-child { color: var(--muted); font-size: 0.74rem; }
.kpi-shadow-report-module[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.kpi-shadow-report-list { max-height: 560px; overflow: auto; scrollbar-gutter: stable; }
.kpi-shadow-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(4, minmax(120px, 0.78fr)) minmax(150px, 0.75fr);
  align-items: center;
  gap: 13px;
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 14px;
  color: var(--white);
}
.kpi-shadow-row:last-child { border-bottom: 0; }
.kpi-shadow-row > div { display: grid; gap: 3px; min-width: 0; }
.kpi-shadow-row > div:first-child strong { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.08em; }
.kpi-shadow-row > div:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.kpi-shadow-row small,
.kpi-shadow-row > div > span { color: var(--muted); font-size: 0.7rem; }
.kpi-shadow-row > div > strong { font-size: 0.82rem; }
.kpi-shadow-row-status { justify-items: end; }
.kpi-shadow-row-status button {
  border: 0;
  color: var(--gold);
  background: transparent;
  padding: 2px 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}
.kpi-shadow-status { display: inline-flex; width: fit-content; border-radius: 999px; padding: 4px 7px; font-size: 0.65rem; font-weight: 850; }
.kpi-shadow-status.is-ok { color: #59d19a; background: rgba(43, 187, 126, 0.12); }
.kpi-shadow-status.is-warning { color: #f0b756; background: rgba(201, 148, 60, 0.13); }
.kpi-shadow-status.is-attention { color: #ff8585; background: rgba(235, 90, 90, 0.12); }
.kpi-shadow-modal-panel { width: min(1040px, 100%); }
.kpi-shadow-modal-body { display: grid; gap: 16px; padding: 18px 20px 22px; }
.kpi-shadow-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 2px solid var(--gold); padding: 8px 11px; }
.kpi-shadow-notice > div { display: flex; align-items: center; gap: 12px; }
.kpi-shadow-notice p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.kpi-shadow-notice > button,
.kpi-measurement-actions button {
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 6px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.kpi-shadow-layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid rgba(255, 255, 255, 0.12); }
.kpi-shadow-layer-grid article { display: grid; gap: 6px; min-height: 174px; border-right: 1px solid rgba(255, 255, 255, 0.12); padding: 16px; }
.kpi-shadow-layer-grid article:last-child { border-right: 0; }
.kpi-shadow-layer-grid small { color: var(--gold); font-size: 0.67rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi-shadow-layer-grid h3,
.kpi-shadow-evidence-grid h3,
.kpi-shadow-issues h3 { margin: 0; color: var(--white); font-size: 0.9rem; }
.kpi-shadow-layer-grid article > strong { color: var(--white); font-size: 1.16rem; }
.kpi-shadow-layer-grid article > span,
.kpi-shadow-layer-grid p { color: var(--muted); font-size: 0.74rem; }
.kpi-shadow-layer-grid p { align-self: end; margin: 6px 0 0; line-height: 1.45; }
.kpi-shadow-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kpi-shadow-evidence-grid > div { min-width: 0; }
.kpi-shadow-evidence-grid h3 { margin-bottom: 8px; }
.kpi-shadow-evidence-grid article { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 9px 0; }
.kpi-shadow-evidence-grid article > span { display: grid; gap: 2px; color: var(--white); font-size: 0.75rem; }
.kpi-shadow-evidence-grid article > span:last-of-type { justify-items: end; }
.kpi-shadow-evidence-grid article small,
.kpi-shadow-evidence-grid article p,
.kpi-shadow-evidence-grid > div > p { color: var(--muted); font-size: 0.7rem; }
.kpi-shadow-evidence-grid article p { grid-column: 1 / -1; margin: 0; }
.kpi-measurement-actions { display: flex; grid-column: 1 / -1; gap: 6px; }
.kpi-measurement-legacy { grid-column: 1 / -1; color: var(--muted); font-size: 0.66rem; font-style: italic; }
.kpi-shadow-issues { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 14px; }
.kpi-shadow-issues ul { display: grid; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.kpi-shadow-issues li { display: grid; grid-template-columns: minmax(180px, 0.4fr) 1fr; gap: 12px; border-left: 2px solid rgba(201, 148, 60, 0.65); padding: 7px 10px; color: var(--muted); font-size: 0.73rem; }
.kpi-shadow-issues li.is-error { border-left-color: #ed6b6b; }

html[data-theme="light"] .kpi-shadow-report-module,
html[data-theme="light"] .kpi-shadow-report-module[open] > summary,
html[data-theme="light"] .kpi-shadow-row,
html[data-theme="light"] .kpi-shadow-layer-grid,
html[data-theme="light"] .kpi-shadow-layer-grid article,
html[data-theme="light"] .kpi-shadow-evidence-grid article,
html[data-theme="light"] .kpi-shadow-issues { border-color: rgba(10, 38, 61, 0.14); }
html[data-theme="light"] .kpi-shadow-report-module > summary,
html[data-theme="light"] .kpi-shadow-row,
html[data-theme="light"] .kpi-shadow-layer-grid h3,
html[data-theme="light"] .kpi-shadow-evidence-grid h3,
html[data-theme="light"] .kpi-shadow-issues h3,
html[data-theme="light"] .kpi-shadow-layer-grid article > strong,
html[data-theme="light"] .kpi-shadow-evidence-grid article > span { color: #0a263d; }
html[data-theme="light"] .kpi-shadow-report-module > summary { background: rgba(10, 38, 61, 0.035); }
html[data-theme="light"] .kpi-shadow-modal-panel { background: #f8fafc; }
html[data-theme="light"] .kpi-shadow-modal-panel .detail-modal-header h2,
html[data-theme="light"] .kpi-shadow-modal-panel .detail-modal-header span { color: #f8fafc; }
.kpi-measurement-modal-panel { width: min(880px, 100%); }
.kpi-measurement-form { padding: 0 20px 20px; }
.kpi-measurement-form fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi-measurement-note { grid-column: 1 / -1; }
.kpi-measurement-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.kpi-measurement-steps span { padding: 10px 12px; color: var(--muted); font-size: 0.7rem; font-weight: 850; text-align: center; }
.kpi-measurement-steps span.is-active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.kpi-measurement-control { display: grid; gap: 4px; border-left: 2px solid var(--gold); padding: 9px 12px; }
.kpi-measurement-control strong { color: var(--white); font-size: 0.8rem; }
.kpi-measurement-control span { color: var(--muted); font-size: 0.72rem; }
.kpi-measurement-review { display: grid; gap: 16px; padding: 18px 20px 22px; }
.kpi-measurement-review dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-block: 1px solid rgba(255, 255, 255, 0.12); }
.kpi-measurement-review dl > div { display: grid; gap: 4px; padding: 12px; }
.kpi-measurement-review dt { color: var(--gold); font-size: 0.67rem; font-weight: 850; text-transform: uppercase; }
.kpi-measurement-review dd { margin: 0; color: var(--white); font-size: 0.82rem; overflow-wrap: anywhere; }
.kpi-measurement-review label { display: grid; gap: 6px; color: var(--white); font-size: 0.76rem; font-weight: 800; }
.kpi-measurement-review textarea { width: 100%; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; color: var(--white); background: rgba(5, 17, 24, 0.42); padding: 10px; font: inherit; resize: vertical; }
.beheer-modal-actions .button-danger { border-color: rgba(237, 107, 107, 0.42); color: #ffd9d9; background: rgba(237, 107, 107, 0.12); }
.kpi-measurement-review .beheer-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 14px;
}
.kpi-measurement-review .beheer-modal-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.035);
  padding: 7px 12px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}
.kpi-measurement-review .beheer-modal-actions .button-primary {
  order: 3;
  border-color: rgba(201, 148, 60, 0.52);
  color: #071b27;
  background: var(--gold);
}
.kpi-measurement-review .beheer-modal-actions .button-danger {
  order: 2;
  border-color: rgba(237, 107, 107, 0.3);
  color: #efabab;
  background: rgba(237, 107, 107, 0.055);
}
.kpi-measurement-review .beheer-modal-actions .modal-close-secondary { order: 1; }
.kpi-measurement-review .beheer-modal-actions button:hover,
.kpi-measurement-review .beheer-modal-actions button:focus-visible {
  border-color: rgba(201, 148, 60, 0.5);
  outline: none;
  background: rgba(201, 148, 60, 0.1);
}
.kpi-measurement-review .beheer-modal-actions .button-primary:hover,
.kpi-measurement-review .beheer-modal-actions .button-primary:focus-visible { background: #d7a44d; }
html[data-theme="light"] .kpi-shadow-notice > button,
html[data-theme="light"] .kpi-measurement-actions button { color: #744b0b; background: rgba(201, 148, 60, 0.12); }
html[data-theme="light"] .kpi-measurement-modal-panel { background: #f8fafc; }
html[data-theme="light"] .kpi-measurement-modal-panel .detail-modal-header h2,
html[data-theme="light"] .kpi-measurement-modal-panel .detail-modal-header span { color: #f8fafc; }
html[data-theme="light"] .kpi-measurement-steps,
html[data-theme="light"] .kpi-measurement-review dl { border-color: rgba(10, 38, 61, 0.14); }
html[data-theme="light"] .kpi-measurement-control strong,
html[data-theme="light"] .kpi-measurement-review dd,
html[data-theme="light"] .kpi-measurement-review label { color: #0a263d; }
html[data-theme="light"] .kpi-measurement-review textarea { border-color: rgba(10, 38, 61, 0.16); color: #0a263d; background: #fff; }
html[data-theme="light"] .kpi-measurement-review .beheer-modal-actions { border-color: rgba(10, 38, 61, 0.12); }
html[data-theme="light"] .kpi-measurement-review .beheer-modal-actions button { border-color: rgba(10, 38, 61, 0.14); color: #29414f; background: rgba(10, 38, 61, 0.025); }
html[data-theme="light"] .kpi-measurement-review .beheer-modal-actions .button-primary { border-color: #b98028; color: #071b27; background: var(--gold); }
html[data-theme="light"] .kpi-measurement-review .beheer-modal-actions .button-danger { border-color: rgba(174, 54, 54, 0.28); color: #9f3434; background: rgba(174, 54, 54, 0.045); }
.kpi-metric-modal-panel { width: min(920px, 100%); }
.kpi-metric-form { padding: 0 20px 20px; }
.kpi-metric-form fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi-metric-form .checkbox-line { display: flex; align-items: center; gap: 8px; }
.kpi-metric-form .checkbox-line input { width: auto; }
.kpi-calculation-preview { align-items: end; }
.kpi-calculation-preview > div {
  display: flex;
  gap: 18px;
  grid-column: span 2;
  min-height: 42px;
  align-items: center;
  border-left: 2px solid var(--gold);
  padding: 8px 12px;
  color: var(--muted);
}
.kpi-calculation-preview > div span { display: grid; gap: 2px; }
.kpi-calculation-preview > div strong { color: var(--white); }

html[data-theme="light"] .kpi-config-summary,
html[data-theme="light"] .kpi-config-summary > div,
html[data-theme="light"] .kpi-metric-type-list,
html[data-theme="light"] .kpi-assignment-list,
html[data-theme="light"] .kpi-metric-type-row,
html[data-theme="light"] .kpi-assignment-row { border-color: rgba(10, 38, 61, 0.14); }
html[data-theme="light"] .kpi-config-summary strong,
html[data-theme="light"] .kpi-config-toolbar strong,
html[data-theme="light"] .kpi-metric-type-row,
html[data-theme="light"] .kpi-assignment-row,
html[data-theme="light"] .kpi-calculation-preview > div strong { color: #0a263d; }
html[data-theme="light"] .kpi-config-toolbar button,
html[data-theme="light"] .kpi-row-actions button { color: #744b0b; background: rgba(201, 148, 60, 0.12); }
html[data-theme="light"] .kpi-metric-modal-panel { background: #f8fafc; }
html[data-theme="light"] .kpi-metric-modal-panel .detail-modal-header h2,
html[data-theme="light"] .kpi-metric-modal-panel .detail-modal-header span { color: #f8fafc; }

@media (max-width: 900px) {
  .kpi-config-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-config-summary > div:nth-child(2) { border-right: 0; }
  .kpi-metric-type-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
  .kpi-metric-type-row > span { display: none; }
  .kpi-assignment-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .kpi-metric-form fieldset { grid-template-columns: 1fr; }
  .kpi-calculation-preview > div { grid-column: auto; }
  .kpi-shadow-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .kpi-shadow-row > div:first-child,
  .kpi-shadow-row-status { grid-column: 1 / -1; }
  .kpi-shadow-row-status { justify-items: start; }
  .kpi-shadow-layer-grid,
  .kpi-shadow-evidence-grid { grid-template-columns: 1fr; }
  .kpi-shadow-layer-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .kpi-shadow-layer-grid article:last-child { border-bottom: 0; }
  .kpi-shadow-issues li { grid-template-columns: 1fr; gap: 3px; }
  .kpi-shadow-notice,
  .kpi-shadow-notice > div { align-items: flex-start; flex-direction: column; }
  .kpi-measurement-form fieldset,
  .kpi-measurement-review dl { grid-template-columns: 1fr; }
  .kpi-measurement-steps { grid-template-columns: 1fr; }
}

.workspace {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 18px;
}

.risk-opportunity-section {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.detail-matrix-section {
  margin-bottom: 18px;
  padding: 18px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.matrix-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--gold);
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.section-heading p {
  max-width: 72ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.matrix-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
  padding: 0 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.matrix-toggle:hover,
.matrix-toggle:focus-visible {
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.risk-matrix[hidden] {
  display: none;
}

.risk-matrix {
  display: grid;
  grid-template-columns: 92px repeat(5, minmax(96px, 1fr));
  gap: 6px;
  overflow: visible;
}

.matrix-corner,
.matrix-axis,
.matrix-cell {
  min-height: 66px;
  border-radius: 6px;
}

.matrix-corner,
.matrix-axis {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.matrix-corner {
  padding: 10px;
  text-align: center;
}

.matrix-cell {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 96px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.matrix-score-low {
  background: rgba(255, 255, 255, 0.035);
}

.matrix-score-medium {
  background: rgba(255, 255, 255, 0.035);
}

.matrix-score-high {
  background: rgba(255, 255, 255, 0.035);
}

.matrix-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 5px;
  padding: 6px 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
}

.matrix-item:hover,
.matrix-item:focus-visible {
  z-index: 20;
  outline: 1px solid rgba(201, 148, 60, 0.55);
  outline-offset: 2px;
}

.matrix-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: grid;
  gap: 5px;
  width: min(310px, 78vw);
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(7, 22, 31, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.matrix-item:hover .matrix-popover,
.matrix-item:focus-visible .matrix-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.matrix-popover b {
  color: var(--gold);
  font-size: 0.8rem;
}

.matrix-popover em {
  color: var(--white);
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.matrix-popover small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 760;
  line-height: 1.3;
}

.matrix-popover strong {
  color: #9ddfcf;
  font-size: 1rem;
}

.matrix-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-item strong {
  color: inherit;
}

.matrix-kans {
  background: rgba(102, 184, 164, 0.18);
  border: 1px solid rgba(102, 184, 164, 0.34);
}

.matrix-risico {
  background: rgba(190, 78, 70, 0.2);
  border: 1px solid rgba(190, 78, 70, 0.34);
}

.matrix-kans.matrix-intensity-medium {
  background: rgba(102, 184, 164, 0.34);
  border-color: rgba(102, 184, 164, 0.54);
}

.matrix-kans.matrix-intensity-high {
  background: rgba(74, 184, 126, 0.54);
  border-color: rgba(128, 226, 174, 0.78);
  box-shadow: inset 0 0 0 1px rgba(208, 255, 229, 0.16);
}

.matrix-risico.matrix-intensity-medium {
  background: rgba(190, 78, 70, 0.36);
  border-color: rgba(190, 78, 70, 0.56);
}

.matrix-risico.matrix-intensity-high {
  background: rgba(203, 64, 59, 0.58);
  border-color: rgba(245, 141, 133, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 208, 0.14);
}

.matrix-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
}

.matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.matrix-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-risk {
  background: var(--danger);
}

.legend-opportunity {
  background: #66b8a4;
}

.deep-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.overview-plan {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.overview-plan-years,
.overview-plan-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(180px, 0.8fr) 170px;
  gap: 10px;
  align-items: center;
}

.overview-plan-years {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
}

.overview-plan-years span:first-child {
  grid-column: 3;
}

.overview-plan-years span:last-child {
  justify-self: end;
}

.overview-plan-row {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: inherit;
  background: rgba(5, 17, 24, 0.22);
  padding: 8px 10px;
  text-decoration: none;
}

.overview-plan-row span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
}

.overview-plan-row strong {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.2;
}

.overview-plan-row i {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.overview-plan-row i b {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #66b8a4, var(--gold));
}

.overview-plan-row small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  font-weight: 760;
}

.finance-summary,
.action-decision-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.action-decision-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: min(1380px, 100%);
  overflow: hidden;
}

.finance-summary article,
.action-decision-summary button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 126px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: var(--white) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.058)),
    rgba(8, 24, 34, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: left;
  backdrop-filter: blur(12px);
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  min-width: 0;
}

.action-decision-summary button:hover,
.action-decision-summary button:focus-visible,
.action-decision-summary button.active {
  border-color: rgba(201, 148, 60, 0.68);
  background:
    linear-gradient(180deg, rgba(201, 148, 60, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(8, 24, 34, 0.9) !important;
  outline: none;
}

.action-decision-summary button:hover,
.action-decision-summary button:focus-visible {
  transform: translateY(-1px);
}

.finance-summary span,
.finance-summary small,
.action-decision-summary span,
.action-decision-summary small {
  color: rgba(255, 255, 255, 0.68);
  overflow-wrap: anywhere;
}

.finance-summary span,
.action-decision-summary span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finance-summary strong,
.action-decision-summary strong {
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.overview-preview-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.overview-preview-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(201, 148, 60, 0.4);
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 8px 16px;
  font-weight: 900;
  text-decoration: none;
}

.overview-preview-actions a:hover,
.overview-preview-actions a:focus-visible {
  background: #d8a654;
  outline: none;
}

.deep-links a,
.detail-intro article,
.detail-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: var(--surface-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.deep-links a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  color: inherit;
}

.deep-links span,
.detail-kicker,
.detail-intro span,
.detail-card-top span,
.detail-progress span,
.score-strip span,
.next-action span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deep-links strong {
  color: var(--gold);
  font-size: 1.45rem;
}

.deep-links small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.detail-kicker {
  margin: 0 0 8px;
}

.detail-intro {
  margin-bottom: 12px;
}

.detail-intro article {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  row-gap: 6px;
  padding: 14px 18px;
}

.detail-intro h2 {
  grid-column: 1;
  margin: 3px 0 0;
  color: var(--gold);
  font-size: clamp(1.02rem, 1.35vw, 1.35rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.detail-intro p {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 82ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.detail-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.detail-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.detail-card.is-collapsed {
  gap: 0;
}

.detail-card.is-focused {
  border-color: rgba(201, 148, 60, 0.78);
  box-shadow: 0 0 0 3px rgba(201, 148, 60, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.detail-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

/* SK-style project card header (Optie B) */
.project-card-sk-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  transition: background 0.15s;
}

.project-card-sk-header:hover {
  background: rgba(201, 148, 60, 0.07);
}

.project-card-health-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-card-health-dot.health-green { background: var(--ok, #7aa05d); }
.project-card-health-dot.health-yellow { background: var(--warning, #d2a14a); }
.project-card-health-dot.health-red { background: var(--danger, #be4e46); }
.project-card-health-dot.health-grey { background: rgba(255,255,255,0.25); }

.project-card-sk-header .project-reference {
  flex-shrink: 0;
}

.project-card-name {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}

.project-card-sk-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.project-card-sk-owner {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.project-card-sk-statuses {
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-card-sk-dot { display: flex; align-items: center; }

.project-card-sk-pct {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
  white-space: nowrap;
}

.project-card-sk-chevron {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.15s;
}

.project-card-sk-chevron::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.detail-card:not(.is-collapsed) .project-card-sk-chevron::after {
  transform: rotate(-135deg) translateY(2px);
  color: var(--gold);
}

.project-card-sk-header:hover .project-card-sk-chevron {
  color: var(--gold);
}

.detail-card.deep-link-target,
[data-financial-source-id].deep-link-target {
  animation: deep-link-pulse 1.4s ease-in-out 3;
  box-shadow: 0 0 0 2px rgba(201, 148, 60, 0.72), 0 18px 48px rgba(201, 148, 60, 0.18);
}

@keyframes deep-link-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(201, 148, 60, 0.34), 0 18px 48px rgba(201, 148, 60, 0.08); }
  50% { box-shadow: 0 0 0 4px rgba(201, 148, 60, 0.82), 0 18px 58px rgba(201, 148, 60, 0.24); }
}

.detail-card-title {
  min-width: 0;
}

.project-card-compact-heading {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(170px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.project-reference {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(201, 148, 60, 0.26);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 148, 60, 0.1);
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.detail-card-top > span:first-child {
  min-width: 78px;
  white-space: nowrap;
}

.detail-card h2 {
  color: var(--white);
  font-size: clamp(1.05rem, 1.5vw, 1.38rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.card-mode-toggle,
.detail-modal-button,
.linked-create-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.34);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.1);
  padding: 0 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.detail-modal-button {
  color: var(--navy-dark);
  background: var(--gold);
}

.linked-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.linked-create-actions button {
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.1);
}

.linked-summary-section .linked-card-list {
  margin-top: 0;
}

.linked-summary-content .muted-line,
.linked-feedback {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 820;
}

.linked-feedback {
  margin-top: 10px;
  color: #fff1d5;
}

.milestone-list {
  display: grid;
  gap: 8px;
}

.milestone-list-item {
  display: grid;
  gap: 5px;
}

.milestone-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 6px;
}

.milestone-edit-form label {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 850;
}

.milestone-edit-form select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 10px;
  font: inherit;
}

.milestone-edit-form button {
  min-height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.34);
  border-radius: 8px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 0 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.record-edit-section {
  border-color: rgba(201, 148, 60, 0.34);
  background: linear-gradient(135deg, rgba(201, 148, 60, 0.11), rgba(28, 191, 181, 0.06));
}

.record-edit-section > span {
  color: #fff1d5;
}

.record-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  align-items: end;
}

.record-edit-form label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
}

.record-edit-form input,
.record-edit-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 10px;
  font: inherit;
}

.record-edit-form input:focus,
.record-edit-form select:focus {
  outline: 2px solid rgba(201, 148, 60, 0.36);
  outline-offset: 1px;
}

.record-edit-form button {
  min-height: 36px;
  border: 1px solid rgba(201, 148, 60, 0.34);
  border-radius: 8px;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.record-edit-form small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 760;
}

.milestone-edit-form.record-edit-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 920px) {
  .record-edit-form,
  .milestone-edit-form.record-edit-form {
    grid-template-columns: 1fr;
  }
}

.card-mode-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 140ms ease;
}

.card-mode-toggle[aria-expanded="false"]::after {
  transform: rotate(-45deg);
}

.card-mode-toggle:hover,
.card-mode-toggle:focus-visible,
.detail-modal-button:hover,
.detail-modal-button:focus-visible,
.linked-create-actions button:hover,
.linked-create-actions button:focus-visible {
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.detail-modal-button:hover,
.detail-modal-button:focus-visible {
  background: #d8a654;
}

.detail-card-body {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-card-body[hidden] {
  display: none;
}

.detail-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-card dt {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-card dd {
  display: block;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

/* ── Widget Configurator ──────────────────────────────── */

.widget-config-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(201, 148, 60, 0.35);
  border-radius: 6px;
  background: rgba(201, 148, 60, 0.07);
  color: rgba(201, 148, 60, 0.9);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.widget-config-btn:hover {
  background: rgba(201, 148, 60, 0.15);
  border-color: rgba(201, 148, 60, 0.6);
  color: var(--gold);
}

.widget-config-btn-icon {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}

.widget-config-btn-icon::before,
.widget-config-btn-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.widget-config-btn-icon::before { top: 3px; }
.widget-config-btn-icon::after  { top: 9px; }

.widget-config-panel {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
}

.widget-config-panel[hidden] { display: none; }

.widget-config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 24, 0.65);
  backdrop-filter: blur(2px);
}

.widget-config-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #0b2130;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.widget-config-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-config-eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.widget-config-title {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.widget-config-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.widget-config-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* Tab nav */
.widget-config-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-config-tab {
  flex: 1;
  height: 40px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: rgba(255, 255, 255, 0.38);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.02em;
}

.widget-config-tab:hover { color: rgba(255, 255, 255, 0.65); }

.widget-config-tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Bulk action row (inside "Mijn overzicht" tab) */
.widget-config-bulk {
  display: flex;
  gap: 8px;
  padding: 14px 24px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.widget-config-intro {
  margin: 0;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-config-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0 16px;
}

.widget-config-category {
  padding: 16px 24px 4px;
}

.widget-config-cat-label {
  display: block;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.widget-config-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.widget-config-row:last-child { border-bottom: none; }

.widget-config-row-info {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.widget-config-row-info strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.83rem;
  font-weight: 600;
}

.widget-config-row-info span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.73rem;
  line-height: 1.4;
}

/* Toggle switch */
.widget-toggle {
  flex-shrink: 0;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  outline: none;
}

.widget-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(201, 148, 60, 0.5);
}

.widget-toggle.is-on {
  background: var(--gold, #c9943c);
  border-color: var(--gold, #c9943c);
}

.widget-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: left 0.2s, background 0.2s;
}

.widget-toggle.is-on .widget-toggle-thumb {
  left: 21px;
  background: #fff;
}

.widget-config-footer {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-config-action {
  flex: 1;
  height: 36px;
  border: 1px solid rgba(201, 148, 60, 0.35);
  border-radius: 6px;
  background: rgba(201, 148, 60, 0.08);
  color: rgba(201, 148, 60, 0.9);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.widget-config-action:hover { background: rgba(201, 148, 60, 0.18); }

.widget-config-action--muted {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
}

.widget-config-action--muted:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); }

/* ── Widget catalogus ─────────────────────────────────── */
.widget-catalog-category {
  padding: 16px 16px 4px;
}

.widget-catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.widget-catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.widget-catalog-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.widget-catalog-card.is-soon {
  opacity: 0.55;
}

.widget-catalog-thumb {
  background: #061520;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  line-height: 0;
}

.widget-catalog-thumb svg {
  width: 100%;
  height: auto;
  display: block;
}

.widget-catalog-info {
  display: grid;
  gap: 6px;
  padding: 10px 11px 11px;
}

.widget-catalog-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.widget-catalog-meta strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.widget-catalog-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-catalog-badge.is-live {
  background: rgba(101, 190, 168, 0.15);
  color: #65bea8;
}

.widget-catalog-badge.is-soon {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.35);
}

.widget-catalog-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  line-height: 1.45;
}

.widget-catalog-toggle-btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(201, 148, 60, 0.3);
  border-radius: 5px;
  background: rgba(201, 148, 60, 0.07);
  color: rgba(201, 148, 60, 0.8);
  font: inherit;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  justify-self: start;
}

.widget-catalog-toggle-btn:hover {
  background: rgba(201, 148, 60, 0.18);
  border-color: rgba(201, 148, 60, 0.55);
  color: var(--gold);
}

.widget-catalog-toggle-btn.is-active {
  background: rgba(101, 190, 168, 0.1);
  border-color: rgba(101, 190, 168, 0.35);
  color: #65bea8;
}

.widget-catalog-soon-note {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.67rem;
  font-style: italic;
}

/* ── Optie C — projectkaart zone-layout ──────────────── */
/* Optie C — projectkaart zone-layout */
.pc-status-zone {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-status-block {
  padding: 10px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-status-block:last-child {
  border-right: none;
}

.pc-status-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.pc-status-val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.pc-facts-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
}

.pc-fact-label {
  color: rgba(255, 255, 255, 0.4);
}

.pc-fact-val {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.pc-progress-zone {
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.pc-progress-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.pc-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.pc-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--ok, #7aa05d);
  transition: width 0.3s ease;
}

.pc-progress-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Light theme overrides */
html[data-theme="light"] .pc-status-block { border-right-color: rgba(16, 44, 56, 0.1); }
html[data-theme="light"] .pc-status-zone,
html[data-theme="light"] .pc-facts-zone,
html[data-theme="light"] .pc-progress-zone { border-bottom-color: rgba(16, 44, 56, 0.1); }
html[data-theme="light"] .pc-status-label,
html[data-theme="light"] .pc-fact-label,
html[data-theme="light"] .pc-progress-dates { color: rgba(16, 44, 56, 0.45); }
html[data-theme="light"] .pc-status-val,
html[data-theme="light"] .pc-fact-val,
html[data-theme="light"] .pc-progress-pct { color: rgba(16, 44, 56, 0.85); }
html[data-theme="light"] .pc-fact-pill { background: rgba(16, 44, 56, 0.04); border-color: rgba(16, 44, 56, 0.12); }
html[data-theme="light"] .pc-progress-bar { background: rgba(16, 44, 56, 0.1); }

.project-card-section {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-section-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 0;
  color: inherit;
  background: none;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: background 0.15s;
}

.project-section-toggle:hover,
.project-section-toggle:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.03);
}

.project-section-toggle:hover span {
  color: rgba(255, 255, 255, 0.88);
}

.project-section-toggle span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.15s;
  flex: 1;
}

.project-section-toggle::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, border-color 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}

.project-section-toggle:hover::after {
  border-color: var(--gold);
}

.project-card-section:not(.is-section-collapsed) .project-section-toggle {
  background: rgba(255, 255, 255, 0.025);
}

.project-card-section:not(.is-section-collapsed) .project-section-toggle span {
  color: rgba(255, 255, 255, 0.75);
}

.project-card-section:not(.is-section-collapsed) .project-section-toggle::after {
  transform: rotate(-135deg) translateY(2px);
  border-color: rgba(201, 148, 60, 0.7);
}

.project-section-content {
  display: grid;
  gap: 14px;
  padding: 14px 14px 18px;
}

.project-card-section.is-section-collapsed {
  gap: 0;
}

.project-card-section.is-section-collapsed .project-section-content {
  display: none;
}

.project-card-purpose .project-section-toggle {
  border-top: none;
}

.project-card-section > span,
.project-card-section div > span {
  display: block;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.project-card-purpose {
  border-top: 0;
  padding-top: 0;
}

.project-card-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.65;
}

.project-card-section dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.project-card-meta > div {
  display: grid;
  gap: 5px;
  background: rgba(5, 17, 24, 0.55);
  padding: 13px 14px;
}

.project-card-meta dt {
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card-meta dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.project-impact-score > div {
  background: rgba(5, 17, 24, 0.45);
}

.project-impact-score dt {
  color: rgba(255, 255, 255, 0.35);
}

.project-impact-score dd {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════
   Density system — info-strip, fact-bar, section-rule-head
   ══════════════════════════════════════════════════════════════ */

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  list-style: none;
  padding: 0;
}

.info-cell {
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  background: rgba(5, 17, 24, 0.55);
  flex: 1;
  min-width: 72px;
}

.info-cell dt {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.info-cell dd {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.3;
}

.info-cell.is-accent dd { color: var(--gold); font-weight: 700; }
.info-cell.is-warn dd   { color: #e5a250; font-weight: 600; }
.info-cell.is-ok dd     { color: #7aa05d; font-weight: 600; }

.fact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.fact-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  background: rgba(5, 17, 24, 0.55);
  flex: 1;
  min-width: 80px;
}

.fact-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
  flex-shrink: 0;
}

.fact-value {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fact-value.is-warn  { color: #e5a250; }
.fact-value.is-ok    { color: #7aa05d; }
.fact-value.is-muted { color: rgba(255, 255, 255, 0.38); }

.section-rule-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 5px;
}

.section-rule-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.section-rule-line {
  flex: 1;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── End density system ─────────────────────────────────────── */

.traffic-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 900;
}

.traffic-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.traffic-green i {
  background: #65bea8;
}

.traffic-yellow i {
  background: var(--gold);
}

.traffic-red i {
  background: #e16f62;
}

.project-status-summary {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 0;
}

.project-status-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 2px 6px;
}

.project-status-summary small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status-summary .traffic-status {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  gap: 0;
  font-size: 0;
}

.project-status-summary .traffic-status i {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

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

.project-planning-preview article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.project-planning-preview article > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 950;
}

.project-planning-preview strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.25;
}

.project-planning-preview small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.project-mini-planning {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(5, 17, 24, 0.24);
  padding: 10px 12px;
}

.project-mini-planning-head {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr) minmax(86px, auto);
  gap: 10px;
  align-items: center;
}

.project-mini-planning-head span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 850;
}

.project-mini-planning-head span:last-child {
  text-align: right;
}

.project-mini-planning-head strong {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-mini-track {
  position: relative;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 10% 100%;
  overflow: visible;
}

.project-mini-bar {
  position: absolute;
  top: 14px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #65b99f, var(--gold));
}

.project-mini-track button {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(7, 22, 31, 0.9);
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  cursor: help;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.project-mini-track button:hover,
.project-mini-track button:focus-visible {
  z-index: 25;
  background: #e7c782;
  box-shadow: 0 0 0 5px rgba(201, 148, 60, 0.16);
  outline: none;
  transform: translateX(-50%) translateY(-2px);
}

.timeline-popover {
  width: min(310px, 78vw);
  text-align: left;
}

.project-mini-point:hover .timeline-popover,
.project-mini-point:focus-visible .timeline-popover,
.activity-symbol:hover .timeline-popover,
.activity-symbol:focus-visible .timeline-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.activity-symbol.tooltip-edge-start .timeline-popover { left: -8px; transform: none; }
.activity-symbol.tooltip-edge-end .timeline-popover { right: -8px; left: auto; transform: none; }
.activity-symbol.tooltip-edge-start:hover .timeline-popover,
.activity-symbol.tooltip-edge-start:focus-visible .timeline-popover,
.activity-symbol.tooltip-edge-end:hover .timeline-popover,
.activity-symbol.tooltip-edge-end:focus-visible .timeline-popover { transform: none; }

.project-finance-pairs {
  display: grid;
  gap: 12px;
}

.project-card-finance-section {
  gap: 8px;
}

.project-card-finance-section .project-finance-pairs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.finance-pair {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.035));
  padding: 14px;
}

.project-card-finance-section .finance-pair {
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.finance-pair > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card-finance-section .finance-pair > span {
  color: rgba(201, 148, 60, 0.92);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

.finance-pair dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.finance-pair dl > div {
  min-height: 72px;
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.finance-pair dl > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.finance-pair dl > div:last-child {
  padding-right: 0;
}

.project-card-finance-section .finance-pair dl {
  grid-template-columns: 1fr;
  gap: 6px;
}

.project-card-finance-section .finance-pair dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  align-items: baseline;
  gap: 8px;
  min-height: 0;
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0 0;
}

.project-card-finance-section .finance-pair dl > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-card-finance-section .finance-pair dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.project-card-finance-section .finance-pair dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.project-card-finance-section .finance-pair dl > div:first-child dd,
.project-card-finance-section .finance-pair dl > div:nth-child(2) dd {
  color: var(--white);
  font-size: 0.95rem;
}

.project-card-finance-section .finance-pair dl > div:last-child {
  grid-template-columns: 1fr;
  gap: 2px;
}

.project-card-finance-section .finance-pair dl > div:last-child dd {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: left;
}

.project-finance-sources {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(201, 148, 60, 0.2);
  border-radius: 8px;
  background: rgba(201, 148, 60, 0.055);
  padding: 10px;
}

.financial-source-list {
  max-height: 220px;
  overflow: auto;
  padding-right: 5px;
}

.financial-source-list li {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(5, 17, 24, 0.3);
  padding: 8px;
}

.financial-source-list a,
.financial-source-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.financial-source-list a:hover,
.financial-source-list a:focus-visible,
.financial-source-button:hover,
.financial-source-button:focus-visible {
  color: #fff1d5;
  outline: none;
}

.financial-source-button-inline {
  display: inline;
  width: auto;
  color: var(--gold);
}

.financial-source-list strong {
  display: inline-block;
  min-width: 68px;
  color: var(--gold);
}

.project-card-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  line-height: 1.45;
}

.project-card-list li::marker {
  color: var(--gold);
  font-size: 0.7em;
}

.project-kpi-register-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  list-style: none;
}

.project-kpi-register-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.project-kpi-register-row strong span {
  display: inline-flex;
  margin: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(201, 148, 60, 0.14);
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.project-kpi-register-row meter {
  width: 100%;
  height: 6px;
  appearance: none;
}

.project-kpi-register-row meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.project-kpi-register-row meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(46, 204, 113, 0.9));
}

.project-kpi-register-row small,
.project-kpi-legacy li {
  color: rgba(255, 255, 255, 0.58);
}

.project-kpi-legacy {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(201, 148, 60, 0.28);
  border-radius: 10px;
  background: rgba(201, 148, 60, 0.06);
}

.project-kpi-legacy > span {
  margin: 0;
  color: var(--gold);
}

.project-steering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-steering-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.project-steering-group > span {
  margin: 0;
}

.project-steering-group > strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
}

.project-steering-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-steering-group a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  color: inherit;
  text-decoration: none;
}

.project-steering-group b {
  color: var(--gold);
  font-size: 0.72rem;
}

.project-steering-group a span {
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.project-steering-group small {
  grid-column: 2;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-steering-group p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.standard-relation-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.relation-block-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  padding: 12px;
}

.relation-block-group > span {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.relation-chip-list {
  display: grid;
  gap: 7px;
}

.relation-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  color: inherit;
  background: rgba(5, 17, 24, 0.22);
  padding: 8px 9px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

a[data-object-link] {
  cursor: pointer;
}

a[data-object-link]:focus-visible {
  outline: 2px solid rgba(201, 148, 60, 0.58);
  outline-offset: 2px;
}

.relation-chip[data-object-link],
.program-object-link[data-object-link],
.prog-object-link[data-object-link],
.dep-pill-link[data-object-link],
.matrix-item[data-object-link] {
  touch-action: manipulation;
}

.relation-chip:hover,
.relation-chip:focus-visible {
  border-color: rgba(201, 148, 60, 0.42);
  background: rgba(201, 148, 60, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.relation-chip span {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.relation-chip strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-chip small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-chip em {
  align-self: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.relation-chip.is-empty {
  opacity: 0.62;
  border-style: dashed;
  background: transparent;
}

html[data-theme="light"] .project-kpi-register-row,
html[data-theme="light"] .project-steering-group {
  border-color: rgba(13, 37, 64, 0.1);
  background: rgba(13, 37, 64, 0.035);
}

html[data-theme="light"] .project-kpi-register-row strong,
html[data-theme="light"] .project-steering-group > strong {
  color: rgba(13, 37, 64, 0.92);
}

html[data-theme="light"] .project-kpi-register-row small,
html[data-theme="light"] .project-kpi-legacy li,
html[data-theme="light"] .project-steering-group small,
html[data-theme="light"] .project-steering-group p {
  color: rgba(13, 37, 64, 0.58);
}

html[data-theme="light"] .project-kpi-register-row meter::-webkit-meter-bar {
  background: rgba(13, 37, 64, 0.1);
}

html[data-theme="light"] .project-kpi-legacy {
  border-color: rgba(201, 148, 60, 0.32);
  background: rgba(201, 148, 60, 0.08);
}

html[data-theme="light"] .project-steering-group a span {
  color: rgba(13, 37, 64, 0.78);
}

html[data-theme="light"] .relation-block-group {
  border-color: rgba(13, 37, 64, 0.1);
  background: rgba(13, 37, 64, 0.03);
}

html[data-theme="light"] .relation-block-group > span {
  color: rgba(13, 37, 64, 0.46);
}

html[data-theme="light"] .relation-chip {
  border-color: rgba(13, 37, 64, 0.09);
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .relation-chip:hover,
html[data-theme="light"] .relation-chip:focus-visible {
  border-color: rgba(201, 148, 60, 0.42);
  background: rgba(201, 148, 60, 0.08);
}

html[data-theme="light"] .relation-chip strong {
  color: rgba(13, 37, 64, 0.86);
}

html[data-theme="light"] .relation-chip small {
  color: rgba(13, 37, 64, 0.52);
}

html[data-theme="light"] .relation-chip em {
  color: rgba(13, 37, 64, 0.58);
  background: rgba(13, 37, 64, 0.055);
}

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

  .standard-relation-block {
    grid-template-columns: 1fr;
  }

  .project-steering-group a span,
  .project-steering-group small,
  .relation-chip strong,
  .relation-chip small {
    white-space: normal;
  }
}

.linked-card-list {
  display: grid;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}

.linked-card-list li {
  display: block;
}

.linked-card-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.linked-card-list a:hover,
.linked-card-list a:focus-visible {
  border-color: rgba(201, 148, 60, 0.4);
  background: rgba(201, 148, 60, 0.05);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.linked-card-list strong {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 1px;
}

.linked-card-body {
  display: grid;
  gap: 3px;
}

.linked-card-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.35;
}

.linked-card-list a small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.7rem;
}

/* ── Cross-page project reference card ──────────────────────────── */

.cross-ref-project-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.cross-ref-project-card:hover,
.cross-ref-project-card:focus-visible {
  border-color: rgba(201, 148, 60, 0.4);
  background: rgba(201, 148, 60, 0.05);
  outline: none;
}

.cross-ref-project-card > strong {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cross-ref-arrow {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  transition: color 0.15s, transform 0.15s;
}

.cross-ref-project-card:hover .cross-ref-arrow,
.cross-ref-project-card:focus-visible .cross-ref-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* ── Planning key milestone badges ─────────────────────────────── */

.planning-key-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.planning-key-badge.is-next {
  background: rgba(101, 190, 168, 0.1);
  color: #65bea8;
  border-color: rgba(101, 190, 168, 0.25);
}

.planning-key-fallback {
  display: grid;
  gap: 6px;
}

.planning-key-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── KPI linked card ────────────────────────────────────────────── */
.kpi-linked-list { display: flex; flex-direction: column; gap: 4px; }

.kpi-linked-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.kpi-linked-card:hover,
.kpi-linked-card:focus-visible {
  border-color: rgba(201,148,60,0.5);
  background: rgba(201,148,60,0.04);
  outline: none;
}

.kpi-linked-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-linked-id { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; color: var(--gold); opacity: 0.7; }
.kpi-linked-label { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-linked-freq { font-size: 0.65rem; color: rgba(255,255,255,0.3); }

.kpi-linked-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 100px; }
.kpi-linked-values { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; }
.kpi-linked-current { font-weight: 700; }
.kpi-linked-current.is-ok    { color: #7aa05d; }
.kpi-linked-current.is-warn  { color: #e5a250; }
.kpi-linked-sep { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.kpi-linked-target { color: rgba(255,255,255,0.4); }
.kpi-linked-track { width: 100%; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.kpi-linked-fill { height: 100%; border-radius: 2px; background: rgba(255,255,255,0.2); transition: width 0.3s; }
.kpi-linked-fill.is-ok   { background: #7aa05d; }
.kpi-linked-fill.is-warn { background: #e5a250; }

/* Light theme — KPI linked card */
html[data-theme="light"] .kpi-linked-card { background: rgba(255,255,255,0.8); border-color: rgba(16,44,56,0.1); }
html[data-theme="light"] .kpi-linked-card:hover,
html[data-theme="light"] .kpi-linked-card:focus-visible { border-color: rgba(154,91,8,0.4); background: #fff7e8; }
html[data-theme="light"] .kpi-linked-id { color: #9a5b08; }
html[data-theme="light"] .kpi-linked-label { color: rgba(16,44,56,0.88); }
html[data-theme="light"] .kpi-linked-freq { color: rgba(16,44,56,0.35); }
html[data-theme="light"] .kpi-linked-sep { color: rgba(16,44,56,0.2); }
html[data-theme="light"] .kpi-linked-target { color: rgba(16,44,56,0.4); }
html[data-theme="light"] .kpi-linked-track { background: rgba(16,44,56,0.08); }

/* ── Strategic contribution components ─────────────────────────── */

.strategy-objective-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  padding: 12px 14px;
  background: rgba(201, 148, 60, 0.06);
  border: 1px solid rgba(201, 148, 60, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s, border-color 0.15s;
}

.strategy-objective-card:hover,
.strategy-objective-card:focus-visible {
  background: rgba(201, 148, 60, 0.1);
  border-color: rgba(201, 148, 60, 0.4);
  outline: none;
}

.strategy-obj-header {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1;
  grid-row: 1;
}

.strategy-obj-type {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.strategy-obj-id {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.strategy-obj-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  grid-column: 1;
  grid-row: 2;
}

.strategy-obj-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.6;
}

.strategy-kpi-section {
  display: grid;
  gap: 6px;
}

.strategy-kpi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.strategy-kpi-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

a.strategy-kpi-pill:hover,
a.strategy-kpi-pill:focus-visible {
  background: rgba(201, 148, 60, 0.08);
  border-color: rgba(201, 148, 60, 0.35);
  color: var(--gold);
  outline: none;
}

.strategy-kpi-pill.is-empty {
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.strategy-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.strategy-meta-row > span {
  display: grid;
  gap: 4px;
  background: rgba(5, 17, 24, 0.55);
  padding: 10px 12px;
}

.strategy-meta-row > span strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.strategy-no-link {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.strategy-no-link-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.strategy-no-link-action {
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.7;
}

.strategy-no-link-action:hover {
  opacity: 1;
}

.project-card-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card-two-col > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.detail-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.detail-progress strong,
.score-strip strong,
.next-action strong {
  color: var(--white);
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.32);
  border-radius: 999px;
  color: #fff1d5;
  padding: 0 12px;
  font-weight: 850;
}

.score-strip,
.next-action {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.score-strip strong {
  color: var(--gold);
  font-size: 2.2rem;
  line-height: 1;
}

.detail-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 17, 24, 0.66);
  backdrop-filter: blur(8px);
}

.detail-modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.detail-modal-panel {
  width: min(840px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 40, 51, 0.98), rgba(10, 26, 36, 0.98));
  box-shadow: var(--shadow);
}

.detail-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 26, 36, 0.96);
  padding: 22px;
}

.detail-modal-header span,
.detail-modal-body h3 {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-modal-header h2 {
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.modal-close {
  min-height: 36px;
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.1);
  padding: 0 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.detail-modal-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.object-source-panel {
  width: min(900px, 100%);
}

.drawer-history-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer-history-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 148, 60, 0.85);
  margin: 0 0 12px;
}
.drawer-history-loading,
.drawer-history-empty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.drawer-history-event {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.drawer-history-event:last-of-type {
  border-bottom: none;
}
.drawer-history-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}
.drawer-history-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.drawer-history-change {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}
.drawer-history-field {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  min-width: 90px;
}
.drawer-history-from {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}
.drawer-history-arrow {
  color: rgba(201, 148, 60, 0.6);
}
.drawer-history-to {
  color: rgba(255, 255, 255, 0.85);
}
.drawer-history-note {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}
.drawer-history-reason {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(201, 148, 60, 0.75);
  font-style: italic;
}
html[data-theme="light"] .drawer-history-reason {
  color: rgba(160, 112, 32, 0.85);
}
.record-editor-reason textarea {
  resize: vertical;
}
.record-editor-strategy-nudge {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 148, 60, 0.35);
  background: rgba(201, 148, 60, 0.08);
  color: rgba(230, 180, 88, 0.95);
  font-size: 12px;
  line-height: 1.45;
}
html[data-theme="light"] .record-editor-strategy-nudge {
  border-color: rgba(160, 112, 32, 0.35);
  background: rgba(160, 112, 32, 0.08);
  color: rgba(140, 96, 16, 0.95);
}
.drawer-history-more {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(201, 148, 60, 0.8);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.drawer-history-more:hover {
  color: #c9943c;
}
.object-history-modal {
  z-index: 1400;
}
.object-history-modal .object-history-panel {
  width: min(640px, 100%);
}
.object-history-body {
  max-height: 60vh;
  overflow-y: auto;
}
html[data-theme="light"] .drawer-history-section {
  border-top-color: rgba(16, 44, 56, 0.1);
}
html[data-theme="light"] .drawer-history-loading,
html[data-theme="light"] .drawer-history-empty {
  color: rgba(16, 44, 56, 0.45);
}
html[data-theme="light"] .drawer-history-event {
  border-bottom-color: rgba(16, 44, 56, 0.06);
}
html[data-theme="light"] .drawer-history-meta {
  color: rgba(16, 44, 56, 0.55);
}
html[data-theme="light"] .drawer-history-field {
  color: rgba(16, 44, 56, 0.8);
}
html[data-theme="light"] .drawer-history-from {
  color: rgba(16, 44, 56, 0.45);
}
html[data-theme="light"] .drawer-history-to {
  color: rgba(16, 44, 56, 0.85);
}

.object-source-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 26, 36, 0.96);
  padding: 14px 22px;
}

.object-source-actions .detail-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  text-decoration: none;
}

html[data-theme="light"] .object-source-actions {
  border-top-color: rgba(16, 40, 51, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.detail-modal-body section,
.detail-modal-body dl {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.detail-modal-body h3 {
  margin: 0 0 8px;
}

.detail-modal-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.detail-modal-body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-modal-body dt {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-modal-body dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.detail-modal-body .modal-finance-pairs {
  display: grid;
  gap: 12px;
}

.detail-modal-body .finance-pair {
  padding: 14px;
}

.detail-modal-body .finance-pair dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.detail-modal-body section .project-card-meta,
.detail-modal-body section .project-card-two-col {
  border: 0;
  background: transparent;
  padding: 0;
}

.detail-modal-body section .project-card-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-modal-body section .project-card-two-col {
  display: grid;
}

.item-change-history {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.item-change-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  padding: 0 14px;
  font-weight: 900;
}

.item-change-history summary::-webkit-details-marker {
  display: none;
}

.item-change-history summary span {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-change-history summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--gold);
  font-size: 0.72rem;
}

.item-change-history > div {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.item-change-history article {
  display: grid;
  gap: 5px;
  border-left: 2px solid rgba(201, 148, 60, 0.42);
  border-radius: 6px;
  background: rgba(5, 17, 24, 0.28);
  padding: 10px 12px;
}

.item-change-history article strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}

.item-change-history article span,
.item-change-history article small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.item-change-history p {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) 1fr 1fr;
  gap: 8px;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
}

.item-change-history b {
  color: rgba(255, 255, 255, 0.7);
}

.item-change-history del {
  color: #ffb4ae;
}

.item-change-history ins {
  color: #8de2c2;
  text-decoration: none;
}

.modal-history-section {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.panel {
  padding: 22px;
}

.bars {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.bar-meta strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa0a5, var(--gold));
}

.fill.over {
  background: linear-gradient(90deg, var(--warning), var(--danger));
}

.module {
  min-width: 0;
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 12px;
}

.tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tabs button:hover,
.tabs button:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.tabs button.active {
  color: var(--navy-dark);
  background: var(--gold);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
}

td {
  color: rgba(255, 255, 255, 0.82);
}

td strong {
  color: var(--white);
}

td small {
  color: rgba(255, 255, 255, 0.6);
}

.table-link {
  color: inherit;
  text-decoration: none;
}

.table-link:hover strong,
.table-link:focus-visible strong {
  color: var(--gold);
}

.table-link:focus-visible {
  outline: 2px solid rgba(201, 148, 60, 0.65);
  outline-offset: 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.type-risico {
  color: #ffe3e0;
  background: rgba(190, 78, 70, 0.22);
  border: 1px solid rgba(190, 78, 70, 0.36);
}

.type-kans {
  color: #e4fff8;
  background: rgba(77, 140, 127, 0.26);
  border: 1px solid rgba(102, 184, 164, 0.42);
}

.type-actie {
  color: #e4fff8;
  background: rgba(77, 140, 127, 0.24);
  border: 1px solid rgba(102, 184, 164, 0.42);
}

.type-besluit {
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.18);
  border: 1px solid rgba(201, 148, 60, 0.4);
}

.inline-detail-link {
  color: #fff1d5;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(201, 148, 60, 0.45);
  text-underline-offset: 3px;
}

.inline-detail-link:hover,
.inline-detail-link:focus-visible {
  color: var(--white);
  outline: none;
}

.sr-data {
  display: none !important;
}

.status-op-koers,
.status-goedgekeurd,
.status-gemitigeerd,
.status-benutten {
  color: #eaf4e7;
  background: rgba(122, 160, 93, 0.24);
  border: 1px solid rgba(122, 160, 93, 0.32);
}

.status-aandacht,
.status-in-afwachting,
.status-bewaken,
.status-concept,
.status-onderzoeken {
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.22);
  border: 1px solid rgba(201, 148, 60, 0.36);
}

.status-vertraagd,
.status-open {
  color: #ffe3e0;
  background: rgba(190, 78, 70, 0.24);
  border: 1px solid rgba(190, 78, 70, 0.36);
}

.progress {
  width: 140px;
}

.empty {
  padding: 34px;
  color: rgba(255, 255, 255, 0.62);
}

.cfo-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.cfo-topbar {
  padding-bottom: 10px;
}

.cfo-sticky,
.cfo-grid,
.cfo-panel {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.cfo-sticky {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(16, 40, 51, 0.82);
  padding: 10px;
  box-shadow: 0 18px 48px rgba(5, 17, 24, 0.32);
  backdrop-filter: blur(16px);
}

.cfo-sticky article,
.cfo-kpi,
.sim-output article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--surface-glass-soft);
  padding: 12px;
}

.cfo-sticky span,
.cfo-kpi span,
.sim-output span,
.cfo-section-title span,
.verdict-score span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cfo-sticky strong {
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.12;
}

.tone-good {
  color: #9ddfcf !important;
}

.tone-warning {
  color: #f5c66f !important;
}

.cfo-grid {
  display: grid;
  gap: 18px;
}

.cfo-grid-executive,
.cfo-grid-main {
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.9fr);
}

.cfo-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: var(--surface-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 20px;
  backdrop-filter: blur(12px);
}

.cfo-panel-wide {
  min-width: 0;
}

.finance-module-stack {
  display: grid;
  gap: 12px;
  width: min(1380px, 100%);
  margin: 0 auto;
}

.finance-module {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(8, 24, 34, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.finance-module-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 96px minmax(0, 1.1fr) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 18px 20px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.finance-module-toggle:hover,
.finance-module-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.finance-module-toggle span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finance-module-toggle strong {
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.1;
}

.finance-module-toggle small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.35;
}

.finance-module-toggle b {
  justify-self: end;
  min-width: 92px;
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
  padding: 7px 11px;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.finance-module.is-open {
  border-color: rgba(201, 148, 60, 0.32);
}

.finance-module-body {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 20px 20px;
}

.finance-register {
  display: grid;
  gap: 12px;
}

.finance-register-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finance-register-summary article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
}

.finance-register-summary span,
.finance-register-row span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-register-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 1.22rem;
}

.finance-register-summary small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.finance-reconciliation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.finance-reconciliation-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: var(--surface);
}

.finance-reconciliation-summary article.is-error { border-left-color: #c24b44; }
.finance-reconciliation-summary article.is-warning { border-left-color: #d99a2b; }
.finance-reconciliation-summary article.is-good { border-left-color: #31876f; }

.finance-reconciliation-summary span,
.finance-reconciliation-summary small,
.reconciliation-totals span,
.reconciliation-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.finance-reconciliation-summary strong {
  display: block;
  margin: 5px 0;
  font-size: 18px;
}

.reconciliation-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--line);
}

.reconciliation-totals div {
  padding: 11px 14px;
  background: var(--surface);
}

.reconciliation-totals strong { display: block; margin-top: 3px; }

.reconciliation-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  padding-right: 4px;
}

.reconciliation-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.reconciliation-row.is-error { border-left: 3px solid #c24b44; }
.reconciliation-row.is-warning { border-left: 3px solid #d99a2b; }

.reconciliation-severity {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.reconciliation-row strong,
.reconciliation-row p { display: block; margin: 3px 0 0; }
.reconciliation-row p { color: var(--muted); font-size: 13px; }
.reconciliation-row button { white-space: nowrap; }

.reconciliation-empty {
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(49, 135, 111, 0.35);
  background: rgba(49, 135, 111, 0.06);
}

.finance-register-filters {
  align-items: center;
}

.finance-register-filters button span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 950;
}

.finance-register-list {
  max-height: min(760px, 68vh);
}

.finance-register-card {
  border-left: 4px solid rgba(201, 148, 60, 0.72);
}

.finance-register-card.is-excluded {
  border-left-color: rgba(255, 255, 255, 0.24);
  opacity: 0.76;
}

.finance-register-card .detail-card-title > small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.type-badge.type-financieel {
  border-color: rgba(55, 199, 184, 0.42);
  color: #8de2d8;
  background: rgba(55, 199, 184, 0.1);
}

.finance-register-state {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 850;
}

.finance-register-state.is-active {
  border-color: rgba(68, 191, 140, 0.42);
  color: #9ce8c4;
  background: rgba(68, 191, 140, 0.1);
}

.finance-register-rule p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.benefit-register-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-register-actions span {
  color: var(--muted, #aebbc5);
  font-size: 0.78rem;
}

.benefit-register-actions button,
.benefit-register-actions a {
  border: 1px solid rgba(211, 160, 52, 0.55);
  background: transparent;
  color: #f3f5f4;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: none;
}

.benefit-register-actions button:hover,
.benefit-register-actions a:hover {
  border-color: var(--gold, #c9943c);
  color: var(--gold, #c9943c);
}

html[data-theme="light"] .benefit-register-actions a {
  color: #7c5416;
  border-color: rgba(154, 91, 8, 0.35);
}

.finance-period-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
}

.finance-timing-tabs {
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .benefit-register-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.finance-register-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid rgba(201, 148, 60, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(5, 17, 24, 0.3);
  padding: 12px;
}

.finance-register-row.is-excluded {
  opacity: 0.72;
  border-left-color: rgba(255, 255, 255, 0.24);
}

.finance-register-row strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.25;
}

.finance-register-row small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.35;
}

.finance-register-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.finance-register-row dl div {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.finance-register-row dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-register-row dd {
  margin: 3px 0 0;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 850;
}

.finance-register-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  line-height: 1.45;
}

.finance-exec-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.4fr);
  gap: 14px;
}

.finance-exec-hero {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(201, 148, 60, 0.25), rgba(255, 255, 255, 0.04) 64%);
  padding: 22px;
}

.finance-exec-hero span,
.finance-exec-kpis span,
.cost-kpis span,
.impact-summary span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finance-exec-hero strong {
  color: var(--gold);
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: 0.9;
}

.finance-exec-hero p,
.finance-exec-reading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.finance-exec-kpis,
.cost-kpis,
.impact-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finance-exec-kpis article,
.cost-kpis article,
.impact-summary article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
}

.finance-exec-kpis strong,
.cost-kpis strong,
.impact-summary strong {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1;
}

.finance-exec-kpis small,
.cost-kpis small,
.impact-summary small {
  color: rgba(255, 255, 255, 0.62);
}

.finance-exec-reading {
  grid-column: 1 / -1;
  border-left: 3px solid var(--gold);
  background: rgba(201, 148, 60, 0.08);
  border-radius: 8px;
  padding: 14px;
}

.finance-exec-reading h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.9rem;
}

.cost-control,
.impact-insight {
  display: grid;
  gap: 14px;
}

.cost-deviation-list {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
}

.cost-deviation-list summary {
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  padding: 14px;
}

.cost-deviation-list > div {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.cost-deviation-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 12px;
  border: 1px solid rgba(217, 128, 119, 0.22);
  border-radius: 8px;
  background: rgba(217, 128, 119, 0.08);
  padding: 12px;
}

.cost-deviation-list span,
.impact-row span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-deviation-list strong,
.impact-row strong {
  display: block;
  color: var(--white);
  margin-top: 3px;
}

.cost-deviation-list small,
.impact-row small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 4px;
}

.cost-deviation-list dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.cost-deviation-list dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-deviation-list dd {
  margin: 3px 0 0;
  color: var(--white);
  font-weight: 850;
}

.cost-table {
  overflow-x: auto;
}

.cost-table table {
  min-width: 860px;
}

.cost-table td:first-child span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.cost-source-groups {
  display: grid;
  gap: 8px;
}

.cost-source-group {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.cost-source-group summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  color: var(--white);
  cursor: pointer;
  padding: 13px;
}

.cost-source-group summary span,
.cost-source-row span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-source-group summary strong,
.cost-source-row strong {
  color: var(--white);
}

.cost-source-group summary small {
  justify-self: end;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.cost-source-group > div {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.cost-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.cost-source-row small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 3px;
}

.cost-source-row dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.cost-source-row dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-source-row dd {
  margin: 3px 0 0;
  color: var(--white);
  font-weight: 850;
}

.impact-list {
  display: grid;
  gap: 8px;
}

.impact-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(110px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.impact-row em {
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-weight: 800;
}

.impact-row b {
  justify-self: end;
  color: var(--white);
  font-size: 1rem;
}

.impact-row.is-positive {
  border-color: rgba(102, 184, 164, 0.28);
}

.impact-row.is-positive b {
  color: #8fdccb;
}

.impact-row.is-negative {
  border-color: rgba(217, 128, 119, 0.3);
}

.impact-row.is-negative b {
  color: #ffaaa3;
}

.impact-popover {
  position: absolute;
  right: 18px;
  bottom: calc(100% - 4px);
  z-index: 12;
  display: grid;
  gap: 8px;
  width: min(420px, 78vw);
  border: 1px solid rgba(201, 148, 60, 0.4);
  border-radius: 9px;
  background: rgba(7, 22, 31, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  padding: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.impact-row:hover .impact-popover,
.impact-row:focus-within .impact-popover,
.impact-row:focus .impact-popover {
  opacity: 1;
  transform: translateY(0);
}

.impact-popover p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.impact-popover dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.impact-popover dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.impact-popover dd {
  margin: 3px 0 0;
  color: var(--white);
  font-weight: 850;
}

.roadmap-board {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.roadmap-board-years,
.roadmap-metric-row,
.roadmap-project-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) repeat(var(--year-count), minmax(120px, 1fr));
  gap: 8px;
  min-width: calc(180px + var(--year-count) * 128px);
  align-items: stretch;
}

.roadmap-board-years {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-board-years > * {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px;
  text-align: center;
}

.roadmap-board-years strong {
  color: var(--gold);
  text-align: left;
}

.roadmap-project-heading {
  margin-top: 8px;
}

.roadmap-metric-row > strong,
.roadmap-project-row > strong {
  display: grid;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.roadmap-metric-row > div {
  display: grid;
  grid-template-rows: 74px auto;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.roadmap-metric-row i {
  position: relative;
  align-self: end;
  display: block;
  height: 74px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.roadmap-metric-row b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
}

.roadmap-revenue b {
  background: linear-gradient(180deg, rgba(102, 184, 164, 0.84), rgba(47, 121, 111, 0.9));
}

.roadmap-ebita b {
  background: linear-gradient(180deg, rgba(201, 148, 60, 0.88), rgba(142, 105, 44, 0.92));
}

.roadmap-investment b {
  background: linear-gradient(180deg, rgba(217, 128, 119, 0.78), rgba(146, 59, 53, 0.9));
}

.roadmap-metric-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
}

.roadmap-project-row {
  min-height: 42px;
}

.roadmap-project-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(102, 184, 164, 0.28);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102, 184, 164, 0.24), rgba(201, 148, 60, 0.15));
  padding: 8px 11px;
}

.roadmap-project-bar b {
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-project-bar small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 850;
}

.roadmap-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.roadmap-scale strong {
  color: var(--gold);
}

.roadmap-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.roadmap-year {
  display: grid;
  gap: 12px;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
}

.roadmap-year header {
  display: grid;
  gap: 3px;
}

.roadmap-year header span {
  color: var(--gold);
  font-weight: 950;
}

.roadmap-year header strong {
  color: var(--white);
  font-size: 1.45rem;
}

.roadmap-year header small,
.roadmap-bars span,
.roadmap-projects span {
  color: rgba(255, 255, 255, 0.6);
}

.roadmap-bars {
  display: grid;
  gap: 8px;
}

.roadmap-bars div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.roadmap-bars i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.roadmap-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #65bea8, var(--gold));
}

.roadmap-bars strong {
  color: var(--white);
  font-size: 0.78rem;
}

.roadmap-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.roadmap-projects span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 5px 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.cfo-roadmap-panel {
  overflow: visible;
}

.cfo-section-title {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.cfo-roadmap-title {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
}

.cfo-roadmap-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.45;
}

.cfo-section-title h2 {
  color: var(--white);
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.cfo-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cfo-kpi {
  min-height: 124px;
  align-content: space-between;
}

.cfo-kpi strong,
.sim-output strong {
  color: var(--white);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1;
}

.cfo-kpi small {
  color: rgba(255, 255, 255, 0.62);
}

.cfo-kpi-good {
  border-color: rgba(102, 184, 164, 0.36);
}

.cfo-kpi-warning {
  border-color: rgba(201, 148, 60, 0.42);
}

.cfo-kpi-danger {
  border-color: rgba(190, 78, 70, 0.46);
}

.cfo-verdict {
  display: grid;
  gap: 16px;
}

.verdict-score {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: radial-gradient(circle, rgba(102, 184, 164, 0.24), rgba(255, 255, 255, 0.04) 68%);
}

.verdict-score strong {
  color: var(--gold);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.9;
}

.verdict-score.is-good strong {
  color: #9ddfcf;
}

.verdict-score.is-danger strong {
  color: #ffaaa3;
}

.cfo-verdict p,
.cfo-verdict dd {
  color: rgba(255, 255, 255, 0.78);
}

.cfo-verdict p {
  margin: 0;
  font-size: 1rem;
}

.cfo-verdict dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cfo-verdict dt {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfo-verdict dd {
  margin: 3px 0 0;
  font-weight: 750;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.scenario-tabs button {
  display: grid;
  gap: 3px;
  min-width: 138px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.scenario-tabs button.active,
.scenario-tabs button:hover,
.scenario-tabs button:focus-visible {
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.scenario-tabs strong {
  font-size: 1.25rem;
}

.waterfall-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.waterfall-summary article {
  display: grid;
  gap: 7px;
  min-height: 104px;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 13px;
}

.waterfall-summary span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waterfall-summary strong {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1;
}

.waterfall-summary small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 760;
}

.waterfall-summary-good {
  border-color: rgba(102, 184, 164, 0.35) !important;
}

.waterfall-summary-warning {
  border-color: rgba(201, 148, 60, 0.46) !important;
}

.waterfall-summary-danger {
  border-color: rgba(217, 128, 119, 0.44) !important;
}

.waterfall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 16px;
  min-height: 470px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 30px 4px 8px;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 88px;
  background-position: 0 36px;
}

.waterfall-target {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(102, 184, 164, 0.74);
  pointer-events: none;
}

.waterfall-target span {
  position: absolute;
  right: 0;
  top: -24px;
  color: #9ddfcf;
  font-size: 0.8rem;
  font-weight: 900;
}

.waterfall-item {
  position: relative;
  display: grid;
  grid-template-rows: minmax(310px, 1fr) auto;
  gap: 10px;
  min-width: 118px;
}

.waterfall-bar-wrap {
  position: relative;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.waterfall-bar {
  position: absolute;
  left: 11%;
  right: 11%;
  min-height: 10px;
  border-radius: 5px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.waterfall-bar span {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  writing-mode: horizontal-tb;
  white-space: nowrap;
}

.waterfall-base {
  background: linear-gradient(180deg, rgba(102, 184, 164, 0.86), rgba(47, 121, 111, 0.92));
}

.waterfall-positive {
  background: linear-gradient(180deg, #65bea8, #2f796f);
}

.waterfall-negative {
  background: linear-gradient(180deg, #d98077, #923b35);
}

.waterfall-final {
  background: linear-gradient(180deg, var(--gold), #8e692c);
}

.waterfall-connector {
  position: absolute;
  left: -18px;
  right: calc(100% - 10px);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.waterfall-item small {
  display: grid;
  gap: 4px;
  min-height: 54px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: center;
}

.waterfall-item small b {
  color: var(--white);
  font-size: 0.82rem;
}

.waterfall-item small span {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 850;
}

.waterfall-popover {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 12;
  display: grid;
  gap: 5px;
  width: min(360px, 76vw);
  border: 1px solid rgba(201, 148, 60, 0.38);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(7, 22, 31, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.waterfall-item:hover .waterfall-popover,
.waterfall-item:focus-within .waterfall-popover,
.waterfall-item:focus .waterfall-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.waterfall-popover strong {
  color: var(--gold);
  font-size: 0.78rem;
}

.waterfall-popover span {
  color: var(--white);
  font-weight: 900;
  line-height: 1.25;
}

.waterfall-popover em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  font-size: 0.82rem;
}

.waterfall-popover b {
  color: #9ddfcf;
  font-size: 1rem;
}

.simulator {
  display: grid;
  gap: 18px;
}

.sim-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sim-output-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sim-output article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.sim-output span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-output strong {
  color: var(--white);
}

.sim-driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sim-driver-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sim-driver-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.sim-driver-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-driver-grid strong {
  color: var(--white);
}

.sim-score {
  grid-column: 1 / -1;
}

.sim-score strong {
  color: var(--gold);
  font-size: 3rem;
}

.sim-controls {
  display: grid;
  gap: 13px;
}

.sim-controls label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.sim-controls label span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sim-controls label strong {
  color: var(--gold);
}

.sim-controls input {
  width: 100%;
  accent-color: var(--gold);
}

.finance-timing {
  display: grid;
  gap: 10px;
}

.finance-timing-header,
.finance-timing-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 0.82fr) minmax(190px, 1.1fr);
  gap: 12px;
  align-items: center;
}

.finance-timing-header {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0 12px 4px;
}

.finance-timing-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(7, 22, 31, 0.72);
  padding: 12px;
}

.finance-timing-row > strong {
  color: var(--gold);
  font-size: 1rem;
}

.finance-timing-row small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.timing-bar {
  position: relative;
  min-height: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.timing-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  opacity: 0.8;
}

.timing-revenue span {
  background: linear-gradient(90deg, rgba(80, 183, 168, 0.48), rgba(80, 183, 168, 0.16));
}

.timing-ebita span {
  background: linear-gradient(90deg, rgba(201, 148, 60, 0.58), rgba(201, 148, 60, 0.16));
}

.timing-investment span {
  background: linear-gradient(90deg, rgba(220, 90, 75, 0.45), rgba(220, 90, 75, 0.13));
}

.timing-bar b {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: var(--white);
  font-size: 0.82rem;
}

.scenario-toggle-list {
  display: grid;
  gap: 14px;
}

.scenario-toggle-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.scenario-toggle-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 13px;
}

.scenario-toggle-group summary span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-toggle-group summary strong {
  color: var(--white);
  font-size: 0.86rem;
}

.scenario-toggle-group summary small {
  color: var(--gold);
  font-weight: 900;
}

.scenario-toggle-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.scenario-toggle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.scenario-toggle-card:hover,
.scenario-toggle-card:focus-within {
  border-color: rgba(201, 148, 60, 0.5);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.scenario-toggle-card input {
  accent-color: var(--gold);
}

.scenario-toggle-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.scenario-toggle-card strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-toggle-card strong em {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid rgba(201, 148, 60, 0.32);
  border-radius: 999px;
  color: #e7cf9f;
  font-size: 0.64rem;
  font-style: normal;
  line-height: 1;
  padding: 3px 6px;
  vertical-align: 1px;
}

.scenario-toggle-card small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.35;
}

.scenario-toggle-card b {
  color: var(--white);
  font-size: 0.82rem;
  white-space: nowrap;
}

.scenario-positive b {
  color: #85d7c7;
}

.scenario-negative b {
  color: #ff9b8a;
}

.scenario-investment b {
  color: var(--gold);
}

.portfolio-table {
  overflow-x: auto;
}

.portfolio-table table {
  min-width: 1080px;
}

.portfolio-table th button {
  border: 0;
  color: inherit;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.mini-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.18);
  font-size: 0.76rem;
  font-weight: 900;
}

.row-op-koers .mini-status {
  color: #e4fff8;
  background: rgba(102, 184, 164, 0.2);
}

.mirror {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mirror-total,
.mirror section {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.mirror-total span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mirror-total strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 1.7rem;
}

.mirror-opportunity {
  border-color: rgba(102, 184, 164, 0.36);
}

.mirror-risk {
  border-color: rgba(190, 78, 70, 0.38);
}

.mirror section {
  grid-column: span 1;
  display: grid;
  gap: 8px;
}

.mirror h3 {
  margin: 0;
  color: var(--gold);
}

.mirror article {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 8px;
}

.mirror article strong {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.2;
}

.finance-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.finance-source-grid article {
  display: grid;
  gap: 7px;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(61, 194, 184, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.finance-source-grid span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-source-grid strong {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 950;
}

.finance-source-grid small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 750;
  line-height: 1.45;
}

.mirror article span,
.mirror article em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-style: normal;
}

.mirror article em {
  color: #9ddfcf;
  font-weight: 900;
}

.bu-heatmap,
.value-tree,
.forecast-engine {
  display: grid;
  gap: 12px;
}

.bu-heatmap article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.bu-heatmap article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--heat);
  background: linear-gradient(90deg, rgba(102, 184, 164, 0.24), transparent);
  pointer-events: none;
}

.bu-heatmap article > * {
  position: relative;
}

.bu-heatmap article > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.bu-heatmap strong,
.tree-root strong {
  color: var(--white);
}

.bu-heatmap span {
  color: #9ddfcf;
  font-weight: 900;
}

.bu-heatmap dl,
.value-tree dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.bu-heatmap dt,
.value-tree dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bu-heatmap dd,
.value-tree dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.tree-root,
.value-tree article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.tree-root {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(201, 148, 60, 0.42);
}

.tree-root span {
  color: var(--gold);
  font-weight: 900;
}

.tree-branches {
  display: grid;
  gap: 10px;
}

.value-tree article strong {
  display: block;
  margin-bottom: 9px;
  color: var(--white);
}

.tree-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 10px;
}

.tree-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #65bea8, var(--gold));
}

.forecast-engine svg {
  width: 100%;
  height: 330px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.band {
  stroke: none;
}

.band-90 {
  fill: rgba(102, 184, 164, 0.12);
}

.band-80 {
  fill: rgba(102, 184, 164, 0.22);
}

.forecast-line,
.target-line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.forecast-line {
  stroke: var(--gold);
  stroke-width: 1.2;
}

.target-line {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 0.7;
  stroke-dasharray: 3 2;
}

.forecast-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.forecast-years span {
  display: grid;
  gap: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
}

.forecast-years strong {
  color: var(--white);
}

.planning-overview-summary {
  width: min(1380px, 100%);
  margin: 18px auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: var(--surface-glass);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.planning-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.planning-summary-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.planning-summary-grid article > strong {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.planning-summary-grid a {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  color: inherit;
  background: rgba(5, 17, 24, 0.28);
  padding: 10px 11px;
  text-decoration: none;
}

.planning-summary-grid a:hover,
.planning-summary-grid a:focus-visible {
  border-color: rgba(201, 148, 60, 0.48);
  outline: none;
}

.planning-summary-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.planning-summary-grid b {
  color: var(--white);
}

.planning-summary-grid small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 760;
}

.planning-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  min-width: 0;
}

/* Bestuurlijke planning: drie tijdshorizonten boven de volledige verdieping. */
.planning-priority-viewport{width:min(1380px,100%);margin:0 auto 12px;border:1px solid var(--b1-border,rgba(255,255,255,.13));border-left:2px solid var(--gold);border-radius:4px;background:var(--b1-surface,var(--surface-glass));box-shadow:var(--b1-shadow,0 16px 34px rgba(0,0,0,.16));overflow:hidden}
.planning-priority-header{display:flex;align-items:flex-end;gap:20px;border-bottom:1px solid var(--b1-border,rgba(255,255,255,.13));padding:13px 16px}
.planning-priority-header>div{display:grid;gap:4px}
.planning-priority-signal{display:flex;align-items:center;gap:7px;color:var(--gold);font-size:.58rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.planning-priority-signal i{width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 10%,transparent)}
.planning-priority-header h2{margin:0;color:var(--b1-text,var(--white));font-family:var(--governance-brief-display,Georgia,serif);font-size:clamp(1.08rem,1.55vw,1.38rem);font-weight:500;line-height:1.2}
.planning-priority-header p{max-width:430px;margin:0 0 1px auto;color:var(--b1-muted,rgba(255,255,255,.62));font-size:.62rem;line-height:1.5;text-align:right}
.planning-priority-horizons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.planning-priority-horizons article{display:grid;align-content:start;gap:5px;min-width:0;border-right:1px solid var(--b1-border,rgba(255,255,255,.13));padding:12px 13px}
.planning-priority-horizons article:last-child{border-right:0}
.planning-priority-horizons article>span{color:var(--gold);font-size:.55rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.planning-priority-horizons article>strong{margin-bottom:2px;color:var(--b1-text,var(--white));font-size:.76rem}
.planning-priority-horizons article>p{margin:8px 0;color:var(--b1-muted,rgba(255,255,255,.62));font-size:.62rem}
.planning-priority-horizons button{display:grid;grid-template-columns:27px minmax(0,1fr);gap:2px 8px;width:100%;border:0;border-top:1px solid var(--b1-border,rgba(255,255,255,.13));color:var(--b1-text,var(--white));background:transparent;padding:8px 3px;text-align:left;cursor:pointer}
.planning-priority-horizons button:hover,.planning-priority-horizons button:focus-visible{background:var(--b1-surface-soft,rgba(255,255,255,.04));outline:none}
.planning-priority-horizons button b{overflow:hidden;font-size:.66rem;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.planning-priority-horizons button small{grid-column:2;overflow:hidden;color:var(--b1-muted,rgba(255,255,255,.58));font-size:.55rem;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.planning-priority-icon{grid-row:1/3;display:grid;place-items:center;width:23px;height:23px;border:1px solid color-mix(in srgb,var(--gold) 48%,var(--b1-border,transparent));border-radius:50%;color:var(--gold);font-style:normal;font-size:.58rem}
.planning-priority-icon.is-risk{border-color:color-mix(in srgb,#bd746f 55%,var(--b1-border,transparent));color:#bd746f}.planning-priority-icon.is-opportunity,.planning-priority-icon.is-finance{color:#6da58f}.planning-priority-icon.is-kpi{color:#7897b4}
html[data-theme="light"] .planning-priority-viewport{background:#fff}
@media(max-width:900px){.planning-priority-header{align-items:flex-start;flex-direction:column;gap:6px}.planning-priority-header p{margin-left:0;text-align:left}.planning-priority-horizons{grid-template-columns:1fr}.planning-priority-horizons article{border-right:0;border-bottom:1px solid var(--b1-border,rgba(255,255,255,.13))}.planning-priority-horizons article:last-child{border-bottom:0}}

.planning-moments,
.planning-timeline {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: var(--surface-glass);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  min-width: 0;
}

.planning-milestones {
  min-width: 0;
}

.planning-module-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.032)),
    rgba(5, 17, 24, 0.28);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.planning-module-toggle:hover,
.planning-module-toggle:focus-visible {
  border-color: rgba(201, 148, 60, 0.52);
  outline: none;
}

.planning-module-toggle span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.planning-module-toggle small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.planning-module-toggle strong {
  color: var(--white);
  font-size: 1rem;
}

.planning-module-toggle em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-style: normal;
}

.planning-module-toggle b {
  flex: 0 0 auto;
  min-width: 82px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 9px;
  font-size: 0.74rem;
  text-align: center;
}

.planning-module-body {
  padding-top: 16px;
}

.planning-module-body[hidden] {
  display: none;
}

.registry-module {
  width: min(1380px, 100%);
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: var(--surface-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.registry-module-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.032)),
    rgba(5, 17, 24, 0.28);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.registry-module-toggle:hover,
.registry-module-toggle:focus-visible {
  border-color: rgba(201, 148, 60, 0.52);
  outline: none;
}

.registry-module-toggle span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.registry-module-toggle small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.registry-module-toggle strong {
  color: var(--white);
  font-size: 1rem;
}

.registry-module-toggle em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-style: normal;
}

.registry-module-toggle b {
  flex: 0 0 auto;
  min-width: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 9px;
  font-size: 0.74rem;
  text-align: center;
}

.registry-module-body {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.registry-module-body[hidden] {
  display: none;
}

.registry-scroll {
  max-height: min(740px, 68vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.registry-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.registry-filterbar button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}

.registry-filterbar button.active,
.registry-filterbar button:hover,
.registry-filterbar button:focus-visible {
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.registry-filterbar strong {
  font-size: 0.9rem;
}

.site-footer {
  width: min(1380px, 100%);
  margin: 28px auto 0;
  border-top: 1px solid rgba(201, 148, 60, 0.28);
  color: rgba(255, 255, 255, 0.68);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 88px;
  border-radius: 4px;
  background: rgba(238, 241, 239, 0.9);
  padding: 5px 7px;
}

.footer-brand span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.site-footer small {
  text-align: right;
}

.milestone-planning-grid,
.milestone-planning-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.milestone-planning-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.028)),
    rgba(5, 17, 24, 0.24);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.milestone-planning-card:hover,
.milestone-planning-card:focus-visible {
  border-color: rgba(201, 148, 60, 0.58);
  background: rgba(201, 148, 60, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.milestone-planning-card span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.milestone-planning-card strong {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.25;
}

.milestone-planning-card small {
  color: rgba(255, 255, 255, 0.66);
  text-align: right;
}

.milestone-planning-card b {
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.1);
  padding: 4px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.milestone-register-filters {
  margin-bottom: 10px;
}

.milestone-register-card {
  cursor: default;
}

.milestone-register-title {
  border: 0;
  color: inherit;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.milestone-register-title:hover strong,
.milestone-register-title:focus-visible strong {
  color: var(--gold);
}

.milestone-register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.milestone-register-actions > button {
  min-height: 32px;
  border: 1px solid rgba(201, 148, 60, 0.35);
  border-radius: 7px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.08);
  padding: 5px 9px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.milestone-register-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 2px 0 0;
}

.milestone-register-details[hidden] {
  display: none;
}

.milestone-register-details div {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 8px;
}

.milestone-register-details dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.milestone-register-details dd {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .finance-reconciliation-summary,
  .reconciliation-totals {
    grid-template-columns: 1fr;
  }

  .reconciliation-row {
    grid-template-columns: 1fr;
  }
  .milestone-register-card {
    grid-template-columns: 1fr;
  }

  .milestone-register-card small {
    text-align: left;
  }

  .milestone-register-actions {
    justify-content: flex-start;
  }

  .milestone-register-details {
    grid-template-columns: 1fr;
  }
}

.milestone-planning-card.is-empty {
  cursor: default;
  grid-column: 1 / -1;
}

.moment-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.moment-strip article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 112px;
  border: 1px solid rgba(201, 148, 60, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.032)),
    rgba(8, 24, 34, 0.74);
  padding: 14px;
}

.moment-strip span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.moment-strip strong {
  color: var(--white);
  line-height: 1.14;
}

.moment-strip small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 760;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline-head strong {
  color: #ffdca1;
}

.timeline-board {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    rgba(6, 18, 27, 0.52);
  background-size: 10% 100%;
  padding: 42px 14px 14px;
}

.timeline-overlay {
  position: absolute;
  inset: 10px 14px 14px 354px;
  min-width: 900px;
  pointer-events: none;
}

.timeline-years {
  position: absolute;
  inset: 12px 14px auto 354px;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  min-width: 900px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 950;
  pointer-events: none;
}

.today-line,
.moment-line {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.today-line {
  width: 2px;
  background: #dc4b46;
  box-shadow: 0 0 0 1px rgba(220, 75, 70, 0.22), 0 0 22px rgba(220, 75, 70, 0.22);
}

.today-line span {
  position: absolute;
  top: -2px;
  left: 8px;
  border: 1px solid rgba(220, 75, 70, 0.48);
  border-radius: 999px;
  color: #ffe4e2;
  background: rgba(102, 22, 24, 0.86);
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.moment-line {
  width: 1px;
  border-left: 1px dashed rgba(201, 148, 60, 0.82);
}

.timeline-rows {
  display: grid;
  gap: 10px;
  min-width: 840px;
}

.program-plan {
  display: grid;
  gap: 14px;
  width: max-content;
  min-width: 1180px;
}

.program-project {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.034);
  padding: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 320px minmax(900px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.044);
  padding: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.project-collapse-button {
  align-self: center;
  min-height: 34px;
  border: 1px solid rgba(201, 148, 60, 0.34);
  border-radius: 999px;
  color: #fff1d5;
  background: rgba(201, 148, 60, 0.12);
  padding: 6px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.project-collapse-button:hover,
.project-collapse-button:focus-visible {
  color: var(--navy-dark);
  background: var(--gold);
  outline: none;
}

.timeline-row:hover,
.timeline-row:focus-visible {
  border-color: rgba(201, 148, 60, 0.52);
  background: rgba(201, 148, 60, 0.078);
  outline: none;
  transform: translateY(-1px);
}

.project-plan-row {
  border-color: rgba(201, 148, 60, 0.18);
  background:
    linear-gradient(180deg, rgba(201, 148, 60, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.activity-rows {
  display: grid;
  gap: 5px;
  padding-left: 22px;
}

.program-project.is-collapsed .activity-rows {
  display: none;
}

.activity-row {
  display: grid;
  grid-template-columns: 298px minmax(900px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  color: inherit;
  background: rgba(5, 17, 24, 0.22);
  padding: 8px 10px;
  text-decoration: none;
}

.program-project.is-collapsed .project-plan-row {
  min-height: 86px;
}

.activity-row:hover,
.activity-row:focus-visible {
  border-color: rgba(201, 148, 60, 0.38);
  outline: none;
}

.activity-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-meta,
.activity-meta {
  position: sticky;
  left: 0;
  z-index: 4;
  border-radius: 6px;
  background: rgba(8, 24, 34, 0.94);
  padding: 5px 8px;
}

.project-plan-row .timeline-meta {
  background: rgba(18, 40, 51, 0.98);
}

.timeline-meta a {
  color: inherit;
  text-decoration: none;
}

.timeline-meta a:hover strong,
.timeline-meta a:focus-visible strong {
  color: var(--gold);
}

.activity-meta span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.activity-meta strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-meta small {
  color: rgba(255, 255, 255, 0.56);
  font-weight: 740;
}

.activity-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(5, 17, 24, 0.9);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 148, 60, 0.24);
  transform: translate(-50%, -50%);
}

.activity-besluit .activity-dot {
  background: #65b99f;
  box-shadow: 0 0 0 2px rgba(102, 184, 164, 0.24);
}

.activity-actie .activity-dot,
.activity-mijlpaal .activity-dot {
  background: var(--gold);
}

.activity-bar {
  position: absolute;
  top: 8px;
  bottom: 8px;
  min-width: 16px;
  border-radius: 999px;
  background: rgba(201, 148, 60, 0.82);
}

.activity-bar.status-groen,
.activity-bar.status-goedgekeurd,
.activity-bar.status-afgerond {
  background: #65b99f;
}

.activity-bar.status-geel,
.activity-bar.status-concept,
.activity-bar.status-in-afwachting {
  background: #d2a14a;
}

.activity-bar.status-rood,
.activity-bar.status-kritiek {
  background: #be4e46;
}

.activity-symbols {
  display: none;
  position: absolute;
  inset: 0;
}

.program-project.is-collapsed .activity-symbols {
  display: block;
}

.activity-symbol {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(5, 17, 24, 0.92);
  border-radius: 999px;
  color: #06121a;
  background: var(--gold);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(201, 148, 60, 0.18);
}

.activity-symbol-besluit {
  background: #65b99f;
}

.activity-symbol-actie {
  background: #d2a14a;
}

.activity-symbol-mijlpaal {
  background: #e7c782;
}

.activity-symbol:hover,
.activity-symbol:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 0 0 6px rgba(201, 148, 60, 0.22);
}

.timeline-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.timeline-meta span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-meta strong {
  overflow: hidden;
  color: var(--white);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-meta small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-track {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.082);
}

.timeline-bar {
  position: absolute;
  top: 5px;
  bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102, 184, 164, 0.88), rgba(201, 148, 60, 0.88));
  padding-right: 8px;
  box-shadow: 0 8px 22px rgba(5, 17, 24, 0.26);
}

.timeline-bar span {
  color: #04131a;
  font-size: 0.68rem;
  font-weight: 950;
}

.timeline-bar.status-op-koers,
.timeline-bar.status-gereed {
  background: linear-gradient(90deg, #65b99f, #9bc77a);
}

.timeline-bar.status-aandacht,
.timeline-bar.status-aandacht-nodig,
.timeline-bar.status-concept {
  background: linear-gradient(90deg, #d2a14a, #e2c071);
}

.timeline-bar.status-kritiek,
.timeline-bar.status-vertraagd {
  background: linear-gradient(90deg, #be4e46, #d87866);
}

.planning-moment-list {
  margin-top: 14px;
}

.planning-moment-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.planning-moment-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 11px 12px;
}

.planning-moment-list strong {
  color: var(--white);
}

.planning-moment-list span {
  color: var(--gold);
  font-weight: 900;
}

.planning-moment-list small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.62);
}

.muted-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

@media (max-width: 920px) {
  .shell {
    padding: 18px;
  }

  html[data-theme] .topbar {
    min-height: 230px;
    grid-template-columns: 1fr;
    gap: 20px;
    background-position: 58% bottom;
  }

  html[data-theme] .topbar > div:first-child {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  html[data-theme] .topbar-side {
    justify-self: start;
  }

  .beheer-panel {
    max-width: calc(100vw - 36px);
  }

  .beheer-panel-toggle {
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .beheer-panel-toggle span,
  .beheer-panel-toggle strong,
  .beheer-panel-toggle small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cfo-sticky,
  .cfo-grid-executive,
  .cfo-grid-main,
  .cfo-kpis,
  .cfo-roadmap-title,
  .finance-module-toggle,
  .finance-exec-grid,
  .finance-exec-kpis,
  .cost-kpis,
  .impact-summary,
  .cost-deviation-list article,
  .cost-deviation-list dl,
  .cost-source-group summary,
  .cost-source-row,
  .cost-source-row dl,
  .impact-row,
  .impact-popover dl,
  .scenario-toggle-group summary,
  .sim-output,
  .sim-driver-grid,
  .mirror,
  .finance-source-grid,
  .waterfall-summary,
  .project-planning-preview,
  .executive-stage-heading,
  .executive-focus,
  .director-cockpit,
  .director-cockpit-lists,
  .my-work,
  .my-work-list,
  .quality-grid,
  .workbench-summary,
  .workbench-command-grid,
  .reporting-step-list,
  .workbench-layout,
  .workbench-form fieldset,
  .forecast-years {
    grid-template-columns: 1fr;
  }

  .finance-module-toggle {
    gap: 8px;
    padding: 16px;
  }

  .executive-stage-heading p {
    justify-self: start;
    text-align: left;
  }

  .director-cockpit-main dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-module-toggle b {
    justify-self: start;
  }

  .finance-module-body {
    padding: 14px 16px 16px;
  }

  .finance-exec-hero {
    min-height: auto;
  }

  .roadmap-scale {
    display: grid;
  }

  .roadmap-board {
    margin-inline: -2px;
  }

  .roadmap-board-years,
  .roadmap-metric-row,
  .roadmap-project-row {
    min-width: calc(160px + var(--year-count) * 106px);
    grid-template-columns: minmax(150px, 0.8fr) repeat(var(--year-count), minmax(98px, 1fr));
    gap: 6px;
  }

  .roadmap-metric-row > div {
    grid-template-rows: 58px auto;
  }

  .roadmap-metric-row i {
    height: 58px;
  }

  .cost-source-group summary small {
    justify-self: start;
  }

  .impact-popover {
    left: 0;
    right: 0;
    width: min(310px, calc(100vw - 56px));
  }

  .cfo-sticky {
    position: static;
  }

  .waterfall {
    grid-template-columns: repeat(6, minmax(74px, 1fr));
    gap: 10px;
  }

  .waterfall-bar span {
    font-size: 0.72rem;
  }

  .workspace {
    display: grid;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .period {
    justify-items: end;
    text-align: right;
  }

  .period span,
  .period strong,
  .topbar-side,
  .topbar h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .topbar-side {
    justify-items: end;
  }

  .project-card-compact-heading {
    grid-template-columns: minmax(66px, auto) minmax(120px, 1fr) auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer small {
    text-align: left;
  }

  .filters,
  .kpis,
  .narrative,
  .moment-strip,
  .milestone-planning-grid,
  .planning-summary-grid,
  .overview-plan-years,
  .overview-plan-row,
  .matrix-heading,
  .deep-links,
  .finance-summary,
  .action-decision-summary,
  .detail-grid,
  .beheer-card-types,
  .beheer-form fieldset,
  .workflow-grid,
  .workspace,
  .finance-timing-header,
  .finance-timing-row,
  .finance-ambition-head,
  .finance-ambition-row,
  .sim-output-wide,
  .sim-driver-grid-wide,
  .scenario-toggle-group > div {
    grid-template-columns: 1fr;
  }

  .finance-timing-header {
    display: none;
  }

  .finance-timing-row {
    gap: 8px;
  }

  .finance-timing-row > strong::before {
    content: "Jaar ";
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .scenario-toggle-card strong {
    white-space: normal;
  }

  .project-card-finance-section .project-finance-pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-opportunity-section {
    padding: 14px;
    overflow: visible;
  }

  .risk-matrix {
    grid-template-columns: 42px repeat(5, minmax(38px, 1fr));
    gap: 4px;
    width: 100%;
  }

  .matrix-corner,
  .matrix-axis,
  .matrix-cell {
    min-height: 46px;
    border-radius: 5px;
  }

  .matrix-corner,
  .matrix-axis {
    font-size: 0.62rem;
    padding: 4px;
  }

  .matrix-cell {
    min-width: 0;
    padding: 4px;
  }

  .matrix-popover {
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 54px));
    transform: translateY(8px);
  }

  .matrix-item:hover .matrix-popover,
  .matrix-item:focus-visible .matrix-popover {
    transform: translateY(0);
  }

  .matrix-item {
    min-height: 28px;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 4px;
    font-size: 0.65rem;
    text-align: center;
  }

  .matrix-item strong {
    font-size: 0.7rem;
  }

  .overview-plan-row {
    gap: 7px;
  }

  .overview-plan-row i {
    min-width: 100%;
  }

  table {
    min-width: 0;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap tr {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    margin-bottom: 10px;
    padding: 8px;
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 4px;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .table-wrap td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .tabs {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding: 10px;
  }

  .tabs button {
    width: 100%;
  }

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

  .registry-module {
    padding: 14px;
  }

  .registry-module-toggle,
  .planning-module-toggle {
    display: grid;
  }

  .registry-module-toggle b,
  .planning-module-toggle b {
    justify-self: start;
  }

  .registry-scroll {
    max-height: 62vh;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar > div:first-child {
    align-items: flex-start;
  }

  .topbar h1::before {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .topbar-side,
  .period {
    justify-items: start;
    text-align: left;
  }

  .project-card-compact-heading {
    grid-template-columns: 1fr;
  }

  .project-reference {
    width: max-content;
  }

  .card-actions,
  .card-mode-toggle {
    justify-self: start;
  }

  .detail-controls {
    justify-content: flex-start;
  }

  .planning-moments,
  .planning-timeline {
    padding: 16px;
  }

  .detail-intro article {
    grid-template-columns: 1fr;
  }

  .detail-intro h2,
  .detail-intro p {
    grid-column: 1;
    grid-row: auto;
  }

  .beheer-lock-panel {
    display: grid;
  }

  .shell::after {
    left: 14px;
    right: 14px;
    text-align: center;
  }

  .matrix-popover {
    display: none;
    left: 50%;
    right: auto;
    width: min(260px, calc(100vw - 54px));
    transform: translate(-50%, 8px);
  }

  .matrix-item:hover .matrix-popover,
  .matrix-item:focus-visible .matrix-popover {
    display: grid;
    transform: translate(-50%, 0);
  }

  .timeline-row,
  .planning-moment-list li {
    grid-template-columns: 1fr;
  }

  .timeline-meta strong,
  .timeline-meta small {
    white-space: normal;
  }

  .cfo-panel {
    padding: 16px;
  }

  .sim-output,
  .sim-driver-grid {
    grid-template-columns: 1fr;
  }

  .waterfall {
    min-height: 300px;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
  }

  .forecast-engine svg {
    height: 240px;
  }

  .detail-modal {
    padding: 14px;
  }

  .detail-modal-header,
  .detail-modal-body dl,
  .finance-pair dl,
  .project-card-meta,
  .project-card-two-col {
    grid-template-columns: 1fr;
  }

  .project-card-finance-section .project-finance-pairs {
    grid-template-columns: 1fr;
  }

  .finance-pair dl > div {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0 0;
  }

  .finance-pair dl > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .kpis article {
    min-height: 118px;
  }
}

html[data-theme="dark"] .topbar h1,
html[data-theme="dark"] h1 {
  color: #ffffff;
}

html[data-theme="light"] .topbar h1,
html[data-theme="light"] h1 {
  color: var(--ink);
}

/* Premium theme hardening: keep every module readable in both user-selected modes. */
html[data-theme] {
  --premium-radius: 10px;
  --premium-radius-sm: 8px;
  --premium-focus: 0 0 0 3px rgba(201, 148, 60, 0.18);
}

html[data-theme="dark"] {
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.036)), rgba(7, 22, 31, 0.82);
  --card-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)), rgba(8, 24, 34, 0.96);
  --card-inner-bg: rgba(255, 255, 255, 0.052);
  --card-inner-bg-strong: rgba(255, 255, 255, 0.078);
  --text-main: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.74);
  --text-muted: rgba(255, 255, 255, 0.58);
  --border-soft: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(201, 148, 60, 0.36);
}

html[data-theme="light"] {
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  --card-bg-strong: linear-gradient(180deg, #ffffff, #f7faff);
  --card-inner-bg: rgba(255, 255, 255, 0.78);
  --card-inner-bg-strong: #ffffff;
  --text-main: #071a3a;
  --text-soft: #344761;
  --text-muted: #667790;
  --border-soft: rgba(12, 35, 75, 0.12);
  --border-strong: rgba(201, 148, 60, 0.34);
  --danger: #b73e36;
  --ok: #238765;
  --warning: #b98521;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 18% -10%, rgba(201, 148, 60, 0.15), transparent 34%),
    linear-gradient(180deg, #ffffff 0, #f4f7fb 360px, #f8fafc 100%);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .page-nav,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .risk-opportunity-section,
html[data-theme="dark"] .detail-intro article,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .module,
html[data-theme="dark"] .workspace,
html[data-theme="dark"] .finance-module,
html[data-theme="dark"] .beheer-panel,
html[data-theme="dark"] .reporting-summary,
html[data-theme="dark"] .report-generator,
html[data-theme="dark"] .report-register,
html[data-theme="dark"] .registry-module,
html[data-theme="dark"] .cfo-panel,
html[data-theme="dark"] .planning-panel {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--card-bg);
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .page-nav,
html[data-theme="light"] .filters,
html[data-theme="light"] .risk-opportunity-section,
html[data-theme="light"] .detail-intro article,
html[data-theme="light"] .detail-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .module,
html[data-theme="light"] .workspace,
html[data-theme="light"] .finance-module,
html[data-theme="light"] .beheer-panel,
html[data-theme="light"] .reporting-summary,
html[data-theme="light"] .report-generator,
html[data-theme="light"] .report-register,
html[data-theme="light"] .registry-module,
html[data-theme="light"] .cfo-panel,
html[data-theme="light"] .planning-panel {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--card-bg);
  box-shadow: 0 20px 54px rgba(31, 52, 84, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme] .topbar {
  min-height: 118px;
  isolation: isolate;
}

html[data-theme] .topbar::after {
  right: 0;
  bottom: 8px;
  width: min(680px, 52vw);
  height: 88px;
  opacity: 1;
  color: transparent;
  background-repeat: no-repeat;
  background-size:
    150px 48px,
    112px 58px,
    88px 70px,
    132px 46px,
    210px 62px,
    100% 100%;
  background-position:
    right 44px bottom 10px,
    right 184px bottom 10px,
    right 318px bottom 8px,
    right 420px bottom 10px,
    right 84px bottom 4px,
    right bottom;
  background-image:
    linear-gradient(90deg, rgba(74, 96, 124, 0.18) 0 2px, transparent 2px 32%, rgba(74, 96, 124, 0.18) 32% 34%, transparent 34% 66%, rgba(74, 96, 124, 0.18) 66% 68%, transparent 68%),
    linear-gradient(90deg, rgba(74, 96, 124, 0.16) 0 2px, transparent 2px 50%, rgba(74, 96, 124, 0.16) 50% 52%, transparent 52%),
    linear-gradient(90deg, rgba(74, 96, 124, 0.14) 0 2px, transparent 2px 45%, rgba(74, 96, 124, 0.14) 45% 47%, transparent 47% 72%, rgba(74, 96, 124, 0.14) 72% 74%, transparent 74%),
    linear-gradient(90deg, rgba(74, 96, 124, 0.16) 0 2px, transparent 2px 38%, rgba(74, 96, 124, 0.16) 38% 40%, transparent 40% 74%, rgba(74, 96, 124, 0.16) 74% 76%, transparent 76%),
    radial-gradient(70% 76% at 52% 100%, transparent 62%, rgba(201, 148, 60, 0.24) 63% 64%, transparent 65%),
    linear-gradient(180deg, transparent 78%, rgba(201, 148, 60, 0.22) 78.6%, transparent 80%);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000);
}

html[data-theme="dark"] .topbar::after {
  background-image:
    linear-gradient(90deg, rgba(199, 217, 239, 0.16) 0 2px, transparent 2px 32%, rgba(199, 217, 239, 0.16) 32% 34%, transparent 34% 66%, rgba(199, 217, 239, 0.16) 66% 68%, transparent 68%),
    linear-gradient(90deg, rgba(199, 217, 239, 0.14) 0 2px, transparent 2px 50%, rgba(199, 217, 239, 0.14) 50% 52%, transparent 52%),
    linear-gradient(90deg, rgba(199, 217, 239, 0.12) 0 2px, transparent 2px 45%, rgba(199, 217, 239, 0.12) 45% 47%, transparent 47% 72%, rgba(199, 217, 239, 0.12) 72% 74%, transparent 74%),
    linear-gradient(90deg, rgba(199, 217, 239, 0.14) 0 2px, transparent 2px 38%, rgba(199, 217, 239, 0.14) 38% 40%, transparent 40% 74%, rgba(199, 217, 239, 0.14) 74% 76%, transparent 76%),
    radial-gradient(70% 76% at 52% 100%, transparent 62%, rgba(201, 148, 60, 0.32) 63% 64%, transparent 65%),
    linear-gradient(180deg, transparent 78%, rgba(201, 148, 60, 0.28) 78.6%, transparent 80%);
}

html[data-theme] .dashboard-brand {
  border: 1px solid rgba(12, 35, 75, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(8, 24, 34, 0.1);
  padding: 5px 9px;
}

html[data-theme] .dashboard-brand-advisory {
  color: #102833;
  font-weight: 720;
  letter-spacing: 0.34em;
}

html[data-theme] .dashboard-brand-divider {
  background: #c9943c;
}

html[data-theme] .period strong {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--card-inner-bg);
}

/* Executive header visual based on the KBr skyline/mountain direction. */
html[data-theme] .topbar {
  min-height: clamp(220px, 21vw, 295px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: clamp(24px, 3vw, 38px) clamp(24px, 3.4vw, 44px);
  background:
    linear-gradient(90deg, rgba(7, 20, 31, 0.88) 0%, rgba(7, 20, 31, 0.54) 28%, rgba(7, 20, 31, 0.08) 58%, rgba(7, 20, 31, 0.14) 100%),
    url("./assets/header-visual-dark.png") center bottom / cover no-repeat,
    linear-gradient(135deg, #061725, #0b2434);
}

html[data-theme="light"] .topbar {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 31%, rgba(255, 255, 255, 0.18) 62%, rgba(255, 255, 255, 0.42) 100%),
    url("./assets/header-visual-light.png") center bottom / cover no-repeat,
    linear-gradient(135deg, #ffffff, #eef4fa);
}

html[data-theme] .topbar::after {
  display: none;
}

html[data-theme] .topbar > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4.2vw, 66px);
}

html[data-theme] .topbar .dashboard-brand {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme] .topbar .dashboard-logo {
  width: clamp(92px, 9vw, 136px);
}

html[data-theme="dark"] .topbar .dashboard-logo {
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

html[data-theme] .topbar .dashboard-brand-divider {
  width: 1px;
  height: clamp(42px, 4.5vw, 64px);
  background: var(--gold);
}

html[data-theme] .topbar .dashboard-brand-advisory {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 680;
  letter-spacing: 0.42em;
}

html[data-theme="light"] .topbar .dashboard-brand-advisory {
  color: #071a3a;
}

html[data-theme] .topbar h1 {
  color: #ffffff;
  font-size: clamp(2.3rem, 4.2vw, 4.15rem);
  line-height: 0.96;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] .topbar h1 {
  color: #071a3a;
  text-shadow: 0 12px 30px rgba(255, 255, 255, 0.72);
}

html[data-theme] .topbar h1::before {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  letter-spacing: 0.16em;
}

html[data-theme] .topbar-side {
  align-self: start;
}

html[data-theme] .topbar .period strong {
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 20, 32, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .topbar .period strong {
  color: #071a3a;
  border-color: rgba(12, 35, 75, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme] .page-nav a,
html[data-theme] .nav-group summary,
html[data-theme] .theme-switch,
html[data-theme] .auth-user-badge,
html[data-theme] select,
html[data-theme] input,
html[data-theme] textarea,
html[data-theme] .matrix-toggle,
html[data-theme] .registry-module-toggle,
html[data-theme] .card-mode-toggle button,
html[data-theme] .edit-menu-button {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--card-inner-bg);
}

html[data-theme] .page-nav a.active,
html[data-theme] .page-nav a:hover,
html[data-theme] .page-nav a:focus-visible,
html[data-theme] .nav-group.has-active summary,
html[data-theme] .nav-group summary:hover,
html[data-theme] .nav-group summary:focus-visible,
html[data-theme] .nav-group[open] summary,
html[data-theme] .matrix-toggle:hover,
html[data-theme] .matrix-toggle:focus-visible,
html[data-theme] .card-mode-toggle button.active,
html[data-theme] .registry-module-toggle:hover,
html[data-theme] .registry-module-toggle:focus-visible {
  color: #071a3a;
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #fff2d5, #f1cf87);
  box-shadow: var(--premium-focus);
}

html[data-theme] .theme-switch button.active {
  color: #071a3a;
  background: linear-gradient(180deg, #fff0cd, #d9a64f);
}

/* Canonical MOS display control: one compact segmented switch on every page. */
html[data-theme] .theme-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--card-inner-bg) 88%, transparent) !important;
  padding: 3px !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 12%, transparent);
}

html[data-theme] .theme-switch button {
  min-width: 58px;
  min-height: 28px;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--text-muted) !important;
  background: transparent !important;
  padding: 0 11px !important;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: none !important;
}

html[data-theme] .theme-switch button:hover,
html[data-theme] .theme-switch button:focus-visible {
  color: var(--text-main) !important;
  background: color-mix(in srgb, var(--text-main) 6%, transparent) !important;
}

html[data-theme] .theme-switch button.active {
  color: #091b27 !important;
  background: #d6a34b !important;
  box-shadow: 0 4px 12px rgba(7, 23, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

html[data-theme="light"] .theme-switch button.active {
  color: #132c38 !important;
  background: #ffffff !important;
  box-shadow: 0 3px 10px rgba(16, 44, 56, 0.12), inset 0 0 0 1px rgba(201, 148, 60, 0.46) !important;
}

html[data-theme] .auth-logout-button {
  color: #9a5b08;
  border-color: rgba(201, 148, 60, 0.45);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme] h2,
html[data-theme] h3,
html[data-theme] strong,
html[data-theme] .detail-card h2,
html[data-theme] .section-heading h2,
html[data-theme] .detail-card dd,
html[data-theme] .finance-summary strong,
html[data-theme] .action-decision-summary strong,
html[data-theme] .timeline-meta strong,
html[data-theme] .activity-meta strong,
html[data-theme] .roadmap-year header strong,
html[data-theme] .cfo-section-title h2,
html[data-theme] .cfo-kpi strong,
html[data-theme] .sim-output strong,
html[data-theme] .waterfall-summary strong,
html[data-theme] .finance-source-grid strong,
html[data-theme] .bu-heatmap strong,
html[data-theme] .planning-summary-grid b {
  color: var(--text-main);
}

html[data-theme] p,
html[data-theme] small,
html[data-theme] label,
html[data-theme] .eyebrow,
html[data-theme] .section-heading p,
html[data-theme] .section-heading span,
html[data-theme] .detail-intro p,
html[data-theme] .detail-card dt,
html[data-theme] .detail-card dd,
html[data-theme] .director-cockpit-main p,
html[data-theme] .director-cockpit-main dt,
html[data-theme] .director-cockpit-lists small,
html[data-theme] .timeline-head,
html[data-theme] .timeline-meta small,
html[data-theme] .activity-meta small,
html[data-theme] .activity-meta span,
html[data-theme] .roadmap-year header small,
html[data-theme] .roadmap-bars span,
html[data-theme] .roadmap-projects span,
html[data-theme] .cfo-roadmap-title p,
html[data-theme] .cfo-kpi small,
html[data-theme] .cfo-verdict p,
html[data-theme] .cfo-verdict dd,
html[data-theme] .waterfall-summary span,
html[data-theme] .waterfall-summary small,
html[data-theme] .waterfall-item small,
html[data-theme] .finance-source-grid span,
html[data-theme] .finance-source-grid small,
html[data-theme] .planning-summary-grid span,
html[data-theme] .planning-summary-grid small,
html[data-theme] .site-footer,
html[data-theme] .muted-line {
  color: var(--text-soft);
}

html[data-theme] .director-cockpit-main,
html[data-theme] .director-cockpit-lists article,
html[data-theme] .executive-focus-card,
html[data-theme] .overview-reporting-status > div,
html[data-theme] .kpis article,
html[data-theme] .narrative article,
html[data-theme] .finance-summary article,
html[data-theme] .action-decision-summary button,
html[data-theme] .planning-summary-grid article,
html[data-theme] .moment-strip article,
html[data-theme] .waterfall-summary article,
html[data-theme] .finance-source-grid article,
html[data-theme] .bu-heatmap article,
html[data-theme] .roadmap-year,
html[data-theme] .roadmap-metric-row > strong,
html[data-theme] .roadmap-metric-row > div,
html[data-theme] .program-project,
html[data-theme] .timeline-row,
html[data-theme] .activity-row,
html[data-theme] .planning-moment-list li,
html[data-theme] .sim-driver-grid article,
html[data-theme] .scenario-tabs button,
html[data-theme] .report-entry,
html[data-theme] .report-version-history article,
html[data-theme] .report-review-queue,
html[data-theme] .report-review-queue button,
html[data-theme] .registry-filterbar,
html[data-theme] .project-card-section,
html[data-theme] .finance-pair,
html[data-theme] .detail-modal-body section,
html[data-theme] .detail-modal-body dl,
html[data-theme] .item-change-history {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--card-inner-bg);
}

html[data-theme] .executive-focus-card strong {
  color: var(--text-main);
}

html[data-theme] .executive-focus-card small {
  color: var(--text-soft);
}

html[data-theme] .executive-stage-heading h2 {
  color: var(--text-main);
}

html[data-theme] .executive-stage-heading p {
  color: var(--text-soft);
}

html[data-theme="light"] .filters {
  border-color: rgba(12, 35, 75, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(31, 52, 84, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .filters label {
  color: #40516b;
}

html[data-theme="light"] .executive-focus-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.45)), rgba(240,236,229,0.9);
  border-color: rgba(0,0,0,0.08);
}

html[data-theme="light"] .timeline-meta,
html[data-theme="light"] .activity-meta,
html[data-theme="light"] .project-plan-row .timeline-meta,
html[data-theme="light"] .edit-menu-panel,
html[data-theme="light"] .nav-group-menu,
html[data-theme="light"] .detail-modal-panel,
html[data-theme="light"] .matrix-popover,
html[data-theme="light"] .waterfall-popover,
html[data-theme="light"] .impact-popover {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 52px rgba(31, 52, 84, 0.16);
}

html[data-theme] .director-cockpit-main::after {
  display: block;
  right: -10px;
  bottom: -14px;
  width: min(360px, 52%);
  height: 210px;
  opacity: 0.2;
  background:
    linear-gradient(132deg, transparent 0 38%, rgba(201, 148, 60, 0.72) 38.4% 39.4%, transparent 40%),
    linear-gradient(42deg, transparent 0 48%, rgba(255, 255, 255, 0.5) 48.4% 49%, transparent 49.5%),
    linear-gradient(145deg, transparent 0 35%, rgba(255, 255, 255, 0.26) 35.5% 36%, transparent 36.5%),
    linear-gradient(145deg, transparent 0 45%, rgba(201, 148, 60, 0.2) 45.4% 45.9%, transparent 46.4%),
    linear-gradient(135deg, transparent 0 32%, rgba(255, 255, 255, 0.12) 32% 56%, transparent 56%),
    linear-gradient(28deg, transparent 0 44%, rgba(255, 255, 255, 0.14) 44% 68%, transparent 68%);
}

html[data-theme="light"] .director-cockpit-main {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)),
    radial-gradient(circle at 88% 18%, rgba(201, 148, 60, 0.14), transparent 26%);
}

html[data-theme="light"] .director-cockpit-main::after {
  opacity: 0.18;
  background:
    linear-gradient(132deg, transparent 0 38%, rgba(201, 148, 60, 0.68) 38.4% 39.4%, transparent 40%),
    linear-gradient(42deg, transparent 0 48%, rgba(43, 77, 118, 0.24) 48.4% 49%, transparent 49.5%),
    linear-gradient(145deg, transparent 0 35%, rgba(43, 77, 118, 0.16) 35.5% 36%, transparent 36.5%),
    linear-gradient(145deg, transparent 0 45%, rgba(201, 148, 60, 0.16) 45.4% 45.9%, transparent 46.4%),
    linear-gradient(135deg, transparent 0 32%, rgba(43, 77, 118, 0.08) 32% 56%, transparent 56%),
    linear-gradient(28deg, transparent 0 44%, rgba(43, 77, 118, 0.1) 44% 68%, transparent 68%);
}

html[data-theme] .director-cockpit-main dl {
  max-width: min(100%, 480px);
}

html[data-theme] .risk-matrix {
  overflow-x: auto;
  padding-bottom: 2px;
}

html[data-theme] .matrix-corner,
html[data-theme] .matrix-axis,
html[data-theme] .matrix-cell {
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
  background: var(--card-inner-bg);
}

html[data-theme] .matrix-score-low,
html[data-theme] .matrix-score-medium,
html[data-theme] .matrix-score-high {
  background: var(--card-inner-bg);
}

html[data-theme] .matrix-item {
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-theme] .matrix-kans {
  background: linear-gradient(180deg, rgba(35, 135, 101, 0.16), rgba(35, 135, 101, 0.08));
  border-color: rgba(35, 135, 101, 0.34);
}

html[data-theme] .matrix-kans.matrix-intensity-medium {
  background: linear-gradient(180deg, rgba(35, 135, 101, 0.28), rgba(35, 135, 101, 0.14));
  border-color: rgba(35, 135, 101, 0.48);
}

html[data-theme] .matrix-kans.matrix-intensity-high {
  background: linear-gradient(180deg, rgba(35, 135, 101, 0.5), rgba(35, 135, 101, 0.26));
  border-color: rgba(35, 135, 101, 0.74);
}

html[data-theme] .matrix-risico {
  background: linear-gradient(180deg, rgba(183, 62, 54, 0.16), rgba(183, 62, 54, 0.08));
  border-color: rgba(183, 62, 54, 0.34);
}

html[data-theme] .matrix-risico.matrix-intensity-medium {
  background: linear-gradient(180deg, rgba(183, 62, 54, 0.28), rgba(183, 62, 54, 0.14));
  border-color: rgba(183, 62, 54, 0.48);
}

html[data-theme] .matrix-risico.matrix-intensity-high {
  background: linear-gradient(180deg, rgba(183, 62, 54, 0.5), rgba(183, 62, 54, 0.26));
  border-color: rgba(183, 62, 54, 0.74);
}

html[data-theme="light"] .matrix-item strong,
html[data-theme="light"] .matrix-item span {
  color: #071a3a;
}

html[data-theme] .matrix-popover b,
html[data-theme] .timeline-head strong,
html[data-theme] .roadmap-scale strong,
html[data-theme] .planning-summary-grid article > strong,
html[data-theme] .report-entry-main > span,
html[data-theme] .report-version-history summary {
  color: var(--gold);
}

html[data-theme] .matrix-popover em,
html[data-theme] .matrix-popover strong {
  color: var(--text-main);
}

html[data-theme] .matrix-popover small {
  color: var(--text-soft);
}

html[data-theme="light"] .waterfall,
html[data-theme="light"] .timeline-board {
  background:
    linear-gradient(to bottom, rgba(12, 35, 75, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .waterfall-bar span,
html[data-theme="light"] .timeline-bar span,
html[data-theme="light"] .activity-symbol {
  color: #071a3a;
}

html[data-theme="light"] .timeline-track,
html[data-theme="light"] .waterfall-bar-wrap,
html[data-theme="light"] .roadmap-metric-row i,
html[data-theme="light"] .roadmap-bars i {
  background: rgba(12, 35, 75, 0.08);
}

html[data-theme="light"] .today-line span {
  color: #7d211c;
  background: #fff0ef;
}

html[data-theme="light"] table,
html[data-theme="light"] th,
html[data-theme="light"] td {
  color: var(--text-main);
  border-color: var(--border-soft);
}

html[data-theme="light"] th {
  background: #eef3f8;
}

html[data-theme="light"] .status-chip,
html[data-theme="light"] .report-status {
  color: #071a3a;
}

@media (max-width: 560px) {
  html[data-theme] .nav-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
  }

  html[data-theme] .theme-switch {
    width: 100%;
    justify-content: center;
  }

  html[data-theme] .auth-user-badge {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
  }

  html[data-theme] .auth-logout-button {
    width: 100%;
    justify-content: center;
  }
}

/* Detail-card readability repair for light mode project, risk and opportunity sections. */
html[data-theme="light"] .detail-card {
  color: var(--text-main);
}

html[data-theme="light"] .detail-card-header {
  align-items: start;
}

html[data-theme="light"] .detail-card h2,
html[data-theme="light"] .detail-card-title,
html[data-theme="light"] .project-card-compact-heading,
html[data-theme="light"] .project-card-compact-heading strong,
html[data-theme="light"] .project-card-section,
html[data-theme="light"] .project-card-section p,
html[data-theme="light"] .project-card-section strong,
html[data-theme="light"] .project-card-list,
html[data-theme="light"] .project-card-list li,
html[data-theme="light"] .project-card-list a,
html[data-theme="light"] .project-card-meta,
html[data-theme="light"] .project-card-meta dd,
html[data-theme="light"] .detail-card dd {
  color: var(--text-main);
}

html[data-theme="light"] .project-card-meta {
  background: rgba(16, 44, 56, 0.08);
}

html[data-theme="light"] .project-card-meta > div {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .project-card-meta dt {
  color: rgba(16, 44, 56, 0.45);
}

html[data-theme="light"] .project-impact-score > div {
  background: rgba(255, 255, 255, 0.55);
}

/* Light theme — density system */
html[data-theme="light"] .info-strip {
  background: rgba(16,44,56,0.06);
  border-color: rgba(16,44,56,0.1);
}
html[data-theme="light"] .info-cell {
  background: rgba(255,255,255,0.82);
}
html[data-theme="light"] .info-cell dt {
  color: rgba(16,44,56,0.42);
}
html[data-theme="light"] .info-cell dd {
  color: rgba(16,44,56,0.88);
}
html[data-theme="light"] .info-cell.is-accent dd {
  color: #9a5b08;
}
html[data-theme="light"] .info-cell.is-warn dd {
  color: #b45309;
}
html[data-theme="light"] .info-cell.is-ok dd {
  color: #059669;
}

html[data-theme="light"] .fact-bar {
  background: rgba(16,44,56,0.06);
  border-color: rgba(16,44,56,0.1);
}
html[data-theme="light"] .fact-item {
  background: rgba(255,255,255,0.82);
}
html[data-theme="light"] .fact-label {
  color: rgba(16,44,56,0.42);
}
html[data-theme="light"] .fact-value {
  color: rgba(16,44,56,0.85);
}
html[data-theme="light"] .fact-value.is-warn {
  color: #b45309;
}
html[data-theme="light"] .fact-value.is-ok {
  color: #059669;
}
html[data-theme="light"] .fact-value.is-muted {
  color: rgba(16,44,56,0.38);
}

html[data-theme="light"] .section-rule-label {
  color: rgba(16,44,56,0.35);
}
html[data-theme="light"] .section-rule-line {
  background: rgba(16,44,56,0.1);
}

/* Light theme — cross-ref project card */
html[data-theme="light"] .cross-ref-project-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(16,44,56,0.1);
}
html[data-theme="light"] .cross-ref-project-card:hover,
html[data-theme="light"] .cross-ref-project-card:focus-visible {
  border-color: rgba(154,91,8,0.45);
  background: #fff7e8;
}
html[data-theme="light"] .cross-ref-project-card > strong {
  color: #9a5b08;
  background: rgba(154,91,8,0.08);
  border-color: rgba(154,91,8,0.15);
}
html[data-theme="light"] .cross-ref-project-card .linked-card-title {
  color: rgba(16,44,56,0.88);
}
html[data-theme="light"] .cross-ref-project-card small {
  color: rgba(16,44,56,0.5);
}
html[data-theme="light"] .cross-ref-arrow {
  color: rgba(16,44,56,0.2);
}
html[data-theme="light"] .cross-ref-project-card:hover .cross-ref-arrow,
html[data-theme="light"] .cross-ref-project-card:focus-visible .cross-ref-arrow {
  color: #9a5b08;
}

/* Light theme — planning key milestones */
html[data-theme="light"] .planning-key-badge {
  background: rgba(16,44,56,0.06);
  color: rgba(16,44,56,0.55);
  border-color: rgba(16,44,56,0.12);
}
html[data-theme="light"] .planning-key-badge.is-next {
  background: rgba(5,150,105,0.08);
  color: #059669;
  border-color: rgba(5,150,105,0.2);
}
html[data-theme="light"] .planning-key-text {
  color: rgba(16,44,56,0.82);
}

html[data-theme="light"] .detail-card-top span,
html[data-theme="light"] .project-section-toggle,
html[data-theme="light"] .project-section-toggle span,
html[data-theme="light"] .project-card-section > span,
html[data-theme="light"] .project-card-section div > span,
html[data-theme="light"] .project-card-list small,
html[data-theme="light"] .detail-card dt,
html[data-theme="light"] .linked-summary-content .muted-line,
html[data-theme="light"] .record-edit-form small,
html[data-theme="light"] .milestone-edit-form label,
html[data-theme="light"] .record-edit-form label {
  color: var(--text-soft);
}

html[data-theme="light"] .project-section-toggle,
html[data-theme="light"] .linked-card-list a,
html[data-theme="light"] .project-card-list li,
html[data-theme="light"] .record-edit-section,
html[data-theme="light"] .record-edit-form input,
html[data-theme="light"] .record-edit-form select,
html[data-theme="light"] .milestone-edit-form select {
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .project-section-toggle:hover,
html[data-theme="light"] .project-section-toggle:focus-visible,
html[data-theme="light"] .linked-card-list a:hover,
html[data-theme="light"] .linked-card-list a:focus-visible {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: #fff7e8;
}

html[data-theme="light"] .project-section-toggle strong,
html[data-theme="light"] .linked-card-list strong,
html[data-theme="light"] .financial-source-list strong,
html[data-theme="light"] .record-edit-section > span {
  color: #9a5b08;
}

html[data-theme="light"] .record-edit-form input,
html[data-theme="light"] .record-edit-form select,
html[data-theme="light"] .milestone-edit-form select {
  color: var(--text-main);
}

html[data-theme="light"] .card-mode-toggle,
html[data-theme="light"] .detail-modal-button,
html[data-theme="light"] .linked-create-actions button,
html[data-theme="light"] .record-editor-button {
  color: #071a3a;
  border-color: rgba(201, 148, 60, 0.38);
  background: linear-gradient(180deg, #fff2d5, #d8a654);
}

html[data-theme="light"] .detail-links a {
  color: #7a4a08;
  border-color: rgba(201, 148, 60, 0.36);
  background: #fff8ea;
}

/* Overview light-mode repair: older overview blocks were still carrying dark-theme text colors. */
html[data-theme="light"] .period,
html[data-theme="light"] .narrative,
html[data-theme="light"] .workspace,
html[data-theme="light"] .risk-opportunity-section,
html[data-theme="light"] .planning-overview-summary,
html[data-theme="light"] .overview-plan,
html[data-theme="light"] .matrix-legend {
  color: var(--text-main);
}

html[data-theme="light"] .narrative span,
html[data-theme="light"] .section-heading span,
html[data-theme="light"] .bar-meta,
html[data-theme="light"] .bar-meta span,
html[data-theme="light"] .matrix-legend,
html[data-theme="light"] .matrix-legend span,
html[data-theme="light"] .overview-plan-years,
html[data-theme="light"] .overview-plan-years span,
html[data-theme="light"] .overview-plan-row small,
html[data-theme="light"] .quality-toolbar > span,
html[data-theme="light"] .quality-issue small,
html[data-theme="light"] .reporting-readiness span {
  color: var(--text-soft);
}

html[data-theme="light"] .narrative h2,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .overview-plan-row strong,
html[data-theme="light"] .snapshot-list h3,
html[data-theme="light"] .reporting-period-status > strong,
html[data-theme="light"] .quality-issue strong,
html[data-theme="light"] .quality-empty {
  color: var(--text-main);
}

html[data-theme="light"] .narrative p,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .quality-empty span {
  color: var(--text-soft);
}

html[data-theme="light"] .section-heading > span,
html[data-theme="light"] .overview-plan-row > span,
html[data-theme="light"] .director-cockpit-lists article > span,
html[data-theme="light"] .director-cockpit-main > span,
html[data-theme="light"] .matrix-popover b {
  color: #8f5200;
}

html[data-theme="light"] .risk-opportunity-section,
html[data-theme="light"] .overview-plan,
html[data-theme="light"] .overview-plan-row,
html[data-theme="light"] .quality-issue {
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(12, 35, 75, 0.08);
}

html[data-theme="light"] .overview-plan-row:hover,
html[data-theme="light"] .overview-plan-row:focus-visible {
  border-color: rgba(201, 148, 60, 0.45);
  background: #fff8ea;
  outline: none;
}

html[data-theme="light"] .overview-plan-row i,
html[data-theme="light"] .matrix-corner,
html[data-theme="light"] .matrix-axis,
html[data-theme="light"] .matrix-cell {
  border-color: var(--border-soft);
  background: rgba(12, 35, 75, 0.055);
}

html[data-theme="light"] .matrix-corner,
html[data-theme="light"] .matrix-axis {
  color: var(--text-soft);
}

html[data-theme="light"] .matrix-popover {
  color: var(--text-soft);
  border-color: rgba(12, 35, 75, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(12, 35, 75, 0.18);
}

html[data-theme="light"] .matrix-popover em,
html[data-theme="light"] .matrix-popover small {
  color: var(--text-main);
}

html[data-theme="light"] .matrix-popover strong {
  color: #166a55;
}

html[data-theme="light"] .workspace button:not(.primary):not(.danger):not(.icon-button),
html[data-theme="light"] .overview-module-form button:not(.primary):not(.danger),
html[data-theme="light"] .matrix-toggle {
  color: #071a3a;
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .workspace button:not(.primary):not(.danger):not(.icon-button):hover,
html[data-theme="light"] .workspace button:not(.primary):not(.danger):not(.icon-button):focus-visible,
html[data-theme="light"] .overview-module-form button:not(.primary):not(.danger):hover,
html[data-theme="light"] .overview-module-form button:not(.primary):not(.danger):focus-visible,
html[data-theme="light"] .matrix-toggle:hover,
html[data-theme="light"] .matrix-toggle:focus-visible {
  color: #071a3a;
  border-color: rgba(201, 148, 60, 0.48);
  background: #fff3d8;
  outline: none;
}

html[data-theme="light"] .workspace button.active,
html[data-theme="light"] .workspace button[aria-pressed="true"] {
  color: #071a3a;
  border-color: rgba(201, 148, 60, 0.58);
  background: linear-gradient(180deg, #fff1cf, #dba850);
  box-shadow: 0 12px 24px rgba(201, 148, 60, 0.18);
}

html[data-theme="light"] .site-footer .footer-brand span,
html[data-theme="light"] .site-footer b {
  color: #7a4a08;
}

html[data-theme="light"] .detail-intro article > span,
html[data-theme="light"] .registry-module-toggle em {
  color: var(--text-soft);
}

html[data-theme="light"] .registry-module-toggle b {
  color: var(--text-main);
}

/* Cross-page light-mode hardening for dark legacy modules outside the overview. */
html[data-theme="light"] .my-work,
html[data-theme="light"] .work-page-module,
html[data-theme="light"] .work-page-summary button,
html[data-theme="light"] .my-work-kpis button,
html[data-theme="light"] .my-work-list .my-work-row,
html[data-theme="light"] .action-decision-summary button,
html[data-theme="light"] .finance-summary article,
html[data-theme="light"] .workbench-command,
html[data-theme="light"] .reporting-step,
html[data-theme="light"] .workbench-summary article,
html[data-theme="light"] .workbench-attention,
html[data-theme="light"] .workbench-form,
html[data-theme="light"] .workbench-attention button,
html[data-theme="light"] .audit-entry,
html[data-theme="light"] .report-review-queue,
html[data-theme="light"] .report-review-queue button,
html[data-theme="light"] .report-entry,
html[data-theme="light"] .report-version-history article {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 14px 34px rgba(12, 35, 75, 0.08);
}

html[data-theme="light"] .work-page-summary button:hover,
html[data-theme="light"] .work-page-summary button:focus-visible,
html[data-theme="light"] .my-work-kpis button:hover,
html[data-theme="light"] .my-work-kpis button:focus-visible,
html[data-theme="light"] .action-decision-summary button:hover,
html[data-theme="light"] .action-decision-summary button:focus-visible,
html[data-theme="light"] .action-decision-summary button.active,
html[data-theme="light"] .workbench-command:hover,
html[data-theme="light"] .workbench-command:focus-visible,
html[data-theme="light"] .workbench-command.is-active,
html[data-theme="light"] .reporting-step:hover,
html[data-theme="light"] .reporting-step:focus-visible,
html[data-theme="light"] .report-review-queue button:hover,
html[data-theme="light"] .report-review-queue button:focus-visible {
  border-color: rgba(201, 148, 60, 0.5);
  background: #fff8ea !important;
  outline: none;
}

html[data-theme="light"] .work-page-summary span,
html[data-theme="light"] .work-presets > span,
html[data-theme="light"] .work-preview-button span,
html[data-theme="light"] .my-work-kpis span,
html[data-theme="light"] .my-work-filters label,
html[data-theme="light"] .my-work-row-meta span,
html[data-theme="light"] .work-quick-status span,
html[data-theme="light"] .action-decision-summary span,
html[data-theme="light"] .finance-summary span,
html[data-theme="light"] .workbench-command span,
html[data-theme="light"] .workbench-summary span,
html[data-theme="light"] .workbench-attention > span,
html[data-theme="light"] .reporting-step span,
html[data-theme="light"] .reporting-step-heading span,
html[data-theme="light"] .snapshot-entry summary,
html[data-theme="light"] .report-entry-main > span,
html[data-theme="light"] .report-version-history summary,
html[data-theme="light"] .report-review-queue > div > span,
html[data-theme="light"] .finance-module-toggle span,
html[data-theme="light"] .registry-module-toggle span,
html[data-theme="light"] .planning-panel-toggle span {
  color: #8f5200;
}

html[data-theme="light"] .work-page-summary strong,
html[data-theme="light"] .work-preview-button strong,
html[data-theme="light"] .my-work-kpis strong,
html[data-theme="light"] .my-work-list strong,
html[data-theme="light"] .action-decision-summary strong,
html[data-theme="light"] .finance-summary strong,
html[data-theme="light"] .workbench-command strong,
html[data-theme="light"] .workbench-summary strong,
html[data-theme="light"] .workbench-attention strong,
html[data-theme="light"] .reporting-step strong,
html[data-theme="light"] .reporting-step-heading,
html[data-theme="light"] .report-entry-main h3,
html[data-theme="light"] .report-review-queue > div > strong,
html[data-theme="light"] .report-version-history article strong,
html[data-theme="light"] .finance-module-toggle b,
html[data-theme="light"] .planning-panel-toggle b {
  color: var(--text-main);
}

html[data-theme="light"] .work-page-summary small,
html[data-theme="light"] .work-preview-button small,
html[data-theme="light"] .my-work-row-meta em,
html[data-theme="light"] .work-bulk-toolbar label,
html[data-theme="light"] .audit-entry-head small,
html[data-theme="light"] .audit-entry dt,
html[data-theme="light"] .workbench-command small,
html[data-theme="light"] .workbench-edit-levels,
html[data-theme="light"] .workbench-summary small,
html[data-theme="light"] .workbench-attention small,
html[data-theme="light"] .reporting-step small,
html[data-theme="light"] .snapshot-entry details,
html[data-theme="light"] .report-entry-main p,
html[data-theme="light"] .report-entry-main small,
html[data-theme="light"] .report-version-history article span,
html[data-theme="light"] .report-review-queue > div > small,
html[data-theme="light"] .finance-module-toggle em,
html[data-theme="light"] .registry-module-toggle em,
html[data-theme="light"] .planning-panel-toggle em {
  color: var(--text-soft);
}

html[data-theme="light"] .work-presets button,
html[data-theme="light"] .work-bulk-toolbar button,
html[data-theme="light"] .work-bulk-toolbar select,
html[data-theme="light"] .work-quick-status select,
html[data-theme="light"] .my-work-filters select,
html[data-theme="light"] .record-editor-field input,
html[data-theme="light"] .record-editor-field select,
html[data-theme="light"] .record-editor-field textarea,
html[data-theme="light"] .workbench-edit-levels span,
html[data-theme="light"] .workbench-edit-levels a {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .work-bulk-toolbar {
  color: var(--text-main);
  border-color: rgba(201, 148, 60, 0.28);
  background: #fff8ea;
}

html[data-theme="light"] .record-editor-actions {
  border-top-color: var(--border-soft);
}

html[data-theme="light"] .record-editor-actions small {
  color: var(--text-soft);
}

html[data-theme="light"] .record-editor-field,
html[data-theme="light"] .record-editor-field small {
  color: var(--text-soft);
}

/* Record view popup: Option A / Register Compact */
.record-option-a-panel .record-editor-primary {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

.record-option-a-panel .record-editor-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.record-option-a-panel .record-editor-section-heading > div {
  display: grid;
  gap: 2px;
}

.record-option-a-panel .record-editor-section-heading span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record-option-a-panel .record-editor-section-heading h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.record-option-a-panel .record-editor-section-heading small {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: right;
}

html[data-theme="light"] .record-option-a-panel .record-editor-primary {
  border-color: rgba(16, 40, 51, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .record-option-a-panel .record-editor-section-heading {
  border-bottom-color: rgba(16, 40, 51, 0.09);
}

html[data-theme="light"] .record-option-a-panel .record-editor-section-heading h3 {
  color: #102833;
}

html[data-theme="light"] .record-option-a-panel .record-editor-section-heading small {
  color: rgba(16, 40, 51, 0.5);
}

.record-editor-modal:has(.record-view-panel) {
  background: rgba(2, 12, 18, 0.62);
  backdrop-filter: blur(8px);
}

.record-view-panel {
  width: min(920px, 100%);
  border-color: rgba(201, 148, 60, 0.24);
  border-radius: 12px;
  background: #0b202d;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

.record-view-panel .record-editor-header {
  align-items: center;
  border-bottom-color: rgba(201, 148, 60, 0.16);
  background: linear-gradient(90deg, rgba(201, 148, 60, 0.08), rgba(255, 255, 255, 0.018)), #0b202d;
  padding: 14px 16px;
}

.record-view-panel .record-editor-header span {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.record-view-panel .record-editor-header h2 {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.2;
}

.record-view-panel .record-editor-close {
  min-height: 30px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.035);
  padding: 5px 10px;
  font-size: 0.75rem;
}

.record-view-panel .record-view-content {
  gap: 12px;
  padding: 14px;
}

.canonical-object-section {
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.canonical-object-section[open] {
  border-color: rgba(201, 148, 60, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.canonical-object-section > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.canonical-object-section > summary::-webkit-details-marker { display: none; }

.canonical-object-section > summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.canonical-object-section-copy {
  display: grid;
  grid-template-columns: 30px minmax(120px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.canonical-object-section-copy small {
  color: var(--gold);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.canonical-object-section-copy strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.91rem;
}

.canonical-object-section-copy em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.72rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canonical-object-section-toggle {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.52);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.52);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.canonical-object-section[open] .canonical-object-section-toggle {
  transform: rotate(225deg) translate(-1px, -1px);
}

.canonical-object-section-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.canonical-object-section-body > section,
.canonical-object-section-body > .record-view-history,
.canonical-object-section-body .drawer-history-section {
  margin-top: 10px;
}

.canonical-object-section-body .drawer-history-section {
  border: 0;
  background: transparent;
  padding: 0;
}

html[data-theme="light"] .canonical-object-section {
  border-color: rgba(16, 40, 51, 0.11);
  background: rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .canonical-object-section[open] {
  border-color: rgba(154, 91, 8, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme="light"] .canonical-object-section > summary:hover {
  background: rgba(16, 40, 51, 0.025);
}

html[data-theme="light"] .canonical-object-section-copy strong { color: #102833; }
html[data-theme="light"] .canonical-object-section-copy em { color: rgba(16, 40, 51, 0.5); }
html[data-theme="light"] .canonical-object-section-toggle {
  border-right-color: rgba(16, 40, 51, 0.55);
  border-bottom-color: rgba(16, 40, 51, 0.55);
}
html[data-theme="light"] .canonical-object-section-body { border-top-color: rgba(16, 40, 51, 0.08); }

.record-view-panel.project-control-panel {
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
}

.project-balanced-control {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
}
.project-balanced-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 13px; border-bottom: 1px solid rgba(255,255,255,.075); }
.project-balanced-heading > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.project-balanced-heading > div > span { display: grid; gap: 2px; min-width: 0; }
.project-balanced-heading b { overflow: hidden; color: rgba(255,255,255,.9); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.project-balanced-heading small { color: rgba(255,255,255,.45); font-size: .62rem; }
.project-balanced-heading p { display: grid; gap: 2px; margin: 0; padding-left: 10px; border-left: 2px solid var(--gold); text-align: right; }
.project-balanced-heading p span { color: rgba(255,255,255,.42); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.project-balanced-heading p strong { color: rgba(255,255,255,.82); font-size: .7rem; }
.project-balanced-briefing { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid rgba(201,148,60,.13); background: rgba(201,148,60,.025); }
.project-balanced-briefing > div { display: grid; gap: 2px; min-width: 0; }
.project-balanced-briefing > div > span { color: var(--gold); font-size: .52rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.project-balanced-briefing > div > strong { overflow: hidden; color: rgba(255,255,255,.9); font-size: .72rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.project-balanced-briefing > div > p { display: -webkit-box; overflow: hidden; margin: 0; color: rgba(255,255,255,.5); font-size: .6rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-balanced-briefing > dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; }
.project-balanced-briefing > dl > div { display: grid; gap: 2px; min-width: 0; padding: 2px 10px; border-left: 1px solid rgba(201,148,60,.14); }
.project-balanced-briefing dt { color: rgba(255,255,255,.42); font-size: .49rem; font-weight: 800; text-transform: uppercase; }
.project-balanced-briefing dd { overflow: hidden; margin: 0; color: rgba(255,255,255,.82); font-size: .57rem; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.project-balanced-layout { display: grid; grid-template-columns: minmax(280px,.36fr) minmax(0,.64fr); height: 276px; }
.project-balanced-radar { position: relative; display: grid; place-items: center; min-width: 0; border-right: 1px solid rgba(255,255,255,.07); }
.project-balanced-radar svg { width: 198px; height: 198px; overflow: visible; }
.project-balanced-radar .grid { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; }
.project-balanced-radar line { stroke: rgba(255,255,255,.075); stroke-width: 1; }
.project-balanced-radar .shape { fill: rgba(201,148,60,.13); stroke: var(--gold); stroke-width: 1.3; }
.project-balanced-point { position: absolute; z-index: 3; left: calc(50% + var(--dx)); top: calc(50% + var(--dy)); width: 19px; height: 19px; padding: 0; transform: translate(-50%,-50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.project-balanced-point > i { display: block; width: 11px; height: 11px; margin: auto; border: 2px solid #102833; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(201,148,60,.25); }
.project-balanced-point.point-quality > i { background: #65b99f; box-shadow: 0 0 0 2px rgba(101,185,159,.24); }
.project-balanced-point.point-time > i { background: #6f91c8; box-shadow: 0 0 0 2px rgba(111,145,200,.24); }
.project-balanced-point.point-money > i { background: #9c7bc7; box-shadow: 0 0 0 2px rgba(156,123,199,.24); }
.project-balanced-point.point-risk > i { background: #be625c; box-shadow: 0 0 0 2px rgba(190,98,92,.24); }
.project-balanced-point.is-unrated > i { background: transparent; border-color: rgba(255,255,255,.65); box-shadow: none; }
.project-balanced-point.is-active > i { outline: 2px solid var(--gold); outline-offset: 3px; }
.project-balanced-point > span { position: absolute; z-index: 8; left: 50%; bottom: calc(100% + 8px); display: none; width: 180px; transform: translateX(-50%); padding: 8px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #102833; box-shadow: 0 12px 28px rgba(0,0,0,.3); text-align: left; }
.project-balanced-point:hover > span, .project-balanced-point:focus-visible > span { display: grid; gap: 2px; }
.project-balanced-point > span b { color: var(--gold); font-size: .58rem; text-transform: uppercase; }
.project-balanced-point > span strong { color: rgba(255,255,255,.9); font-size: .76rem; }
.project-balanced-point > span small { color: rgba(255,255,255,.5); font-size: .6rem; line-height: 1.35; }
.project-balanced-radar .axis { position: absolute; color: rgba(255,255,255,.48); font-size: .57rem; text-transform: uppercase; }
.project-balanced-radar .axis-quality { top: 19px; left: 50%; transform: translateX(-50%); }
.project-balanced-radar .axis-time { right: 22px; top: 50%; transform: translateY(-50%); }
.project-balanced-radar .axis-money { bottom: 24px; left: 50%; transform: translateX(-50%); }
.project-balanced-radar .axis-risk { left: 22px; top: 50%; transform: translateY(-50%); }
.project-balanced-legend { position: absolute; bottom: 6px; left: 50%; width: max-content; max-width: 92%; transform: translateX(-50%); color: rgba(255,255,255,.36); font-size: .53rem; text-align: center; }
.project-balanced-panels { min-width: 0; }
.project-balanced-panel { display: none; height: 100%; grid-template-columns: minmax(0,1fr) minmax(220px,.72fr); grid-template-rows: auto auto 1fr; gap: 7px 14px; padding: 13px 16px; }
.project-balanced-panel.is-active { display: grid; }
.project-balanced-panel > header { grid-column: 1/-1; display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.project-balanced-panel > header div { display: grid; gap: 3px; }
.project-balanced-panel > header span { color: var(--gold); font-size: .56rem; font-weight: 850; text-transform: uppercase; }
.project-balanced-panel > header h3 { margin: 0; color: rgba(255,255,255,.88); font-size: .8rem; }
.project-balanced-panel > header > strong { color: var(--gold); font-size: 1.15rem; white-space: nowrap; }
.project-balanced-panel > p { grid-column: 1/-1; margin: 0; color: rgba(255,255,255,.45); font-size: .62rem; line-height: 1.45; }
.project-balanced-formula { display: grid; align-content: start; gap: 3px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.024); padding: 8px 10px; }
.project-balanced-formula span, .project-balanced-sources > span { color: var(--gold); font-size: .54rem; font-weight: 850; text-transform: uppercase; }
.project-balanced-formula strong { color: rgba(255,255,255,.78); font-size: .65rem; line-height: 1.4; }
.project-balanced-formula small { color: rgba(255,255,255,.42); font-size: .56rem; }
.project-balanced-panel dl { display: grid; align-content: start; margin: 6px 0 0; }
.project-balanced-panel dl div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.project-balanced-panel dt { color: rgba(255,255,255,.52); font-size: .62rem; }
.project-balanced-panel dd { margin: 0; color: rgba(255,255,255,.82); font-size: .64rem; font-weight: 750; }
.project-balanced-sources { grid-row: 3; grid-column: 2; display: grid; align-content: start; overflow-y: auto; max-height: 146px; border: 1px solid rgba(255,255,255,.07); border-radius: 6px; }
.project-balanced-sources > span, .project-balanced-sources > small { padding: 7px 9px; }
.project-balanced-sources > button { display: grid; gap: 2px; padding: 7px 9px; border: 0; border-top: 1px solid rgba(255,255,255,.055); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.project-balanced-sources > button:hover { background: rgba(201,148,60,.045); }
.project-balanced-sources > button strong { overflow: hidden; color: rgba(255,255,255,.8); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.project-balanced-sources > button small, .project-balanced-sources > small { color: rgba(255,255,255,.42); font-size: .55rem; }

html[data-theme="light"] .project-balanced-control { border-color: rgba(16,40,51,.11); background: rgba(255,255,255,.68); }
html[data-theme="light"] .project-balanced-heading { border-color: rgba(16,40,51,.09); }
html[data-theme="light"] .project-balanced-heading b,
html[data-theme="light"] .project-balanced-heading p strong,
html[data-theme="light"] .project-balanced-panel > header h3,
html[data-theme="light"] .project-balanced-panel dt,
html[data-theme="light"] .project-balanced-panel dd,
html[data-theme="light"] .project-balanced-formula strong,
html[data-theme="light"] .project-balanced-sources > button strong { color: #102833; }
html[data-theme="light"] .project-balanced-heading small,
html[data-theme="light"] .project-balanced-heading p span,
html[data-theme="light"] .project-balanced-panel > p,
html[data-theme="light"] .project-balanced-formula small,
html[data-theme="light"] .project-balanced-sources > button small,
html[data-theme="light"] .project-balanced-sources > small,
html[data-theme="light"] .project-balanced-radar .axis,
html[data-theme="light"] .project-balanced-legend { color: rgba(16,40,51,.52); }
html[data-theme="light"] .project-balanced-radar { border-color: rgba(16,40,51,.09); }
html[data-theme="light"] .project-balanced-radar .grid,
html[data-theme="light"] .project-balanced-radar line { stroke: rgba(16,40,51,.13); }
html[data-theme="light"] .project-balanced-point > i { border-color: #fff; }
html[data-theme="light"] .project-balanced-point > span { border-color: rgba(16,40,51,.12); background: #fff; }
html[data-theme="light"] .project-balanced-point > span strong { color: #102833; }
html[data-theme="light"] .project-balanced-point > span small { color: rgba(16,40,51,.55); }
html[data-theme="light"] .project-balanced-formula,
html[data-theme="light"] .project-balanced-sources { border-color: rgba(16,40,51,.1); background: rgba(16,40,51,.025); }
html[data-theme="light"] .project-balanced-briefing { border-bottom-color: rgba(16,40,51,.09); background: rgba(154,101,24,.025); }
html[data-theme="light"] .project-balanced-briefing > div > strong,
html[data-theme="light"] .project-balanced-briefing dd { color: #102833; }
html[data-theme="light"] .project-balanced-briefing > div > p,
html[data-theme="light"] .project-balanced-briefing dt { color: rgba(16,40,51,.55); }
html[data-theme="light"] .project-balanced-briefing > dl > div { border-left-color: rgba(16,40,51,.1); }

@media (max-width: 820px) {
  .project-balanced-briefing { grid-template-columns: 1fr; gap: 8px; }
  .project-balanced-briefing > dl > div:first-child { padding-left: 0; border-left: 0; }
  .project-balanced-layout { grid-template-columns: 1fr; height: auto; }
  .project-balanced-radar { min-height: 250px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .project-balanced-panel { min-height: 270px; }
}
@media (max-width: 560px) {
  .project-balanced-briefing { padding: 10px 12px; }
  .project-balanced-briefing > div > strong { white-space: normal; }
  .project-balanced-briefing > dl { grid-template-columns: 1fr; }
  .project-balanced-briefing > dl > div { padding: 6px 0; border-top: 1px solid rgba(201,148,60,.12); border-left: 0; }
  .project-balanced-briefing > dl > div:first-child { border-top: 0; }
  .project-balanced-heading { align-items: flex-start; }
  .project-balanced-heading p { flex: 0 0 auto; }
  .project-balanced-panel { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 0; }
  .project-balanced-panel > header, .project-balanced-panel > p, .project-balanced-sources { grid-column: 1; grid-row: auto; }
  .project-balanced-sources { max-height: 160px; }
}

.project-control-summary {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.project-control-summary article {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.project-control-summary article span {
  color: rgba(255,255,255,.44);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-control-summary article strong {
  margin-top: 5px;
  color: rgba(255,255,255,.92);
  font-size: 1.35rem;
}

.project-control-summary article small { margin-top: 2px; color: rgba(255,255,255,.48); font-size: .68rem; }
.project-control-summary .project-control-lead { border-left: 3px solid var(--gold); background: rgba(201,148,60,.055); }
.project-control-summary .project-control-lead strong { color: var(--gold); font-size: 2rem; }
.project-control-summary .is-good { border-bottom-color: rgba(82,164,120,.4); }
.project-control-summary .is-warning { border-bottom-color: rgba(220,166,66,.52); }
.project-control-summary .is-critical { border-bottom-color: rgba(218,91,87,.56); }

.project-control-attention { margin-top: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; }
.project-control-attention-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.project-control-attention-list button { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; min-width: 0; border: 1px solid rgba(255,255,255,.07); border-radius: 6px; background: rgba(255,255,255,.025); color: inherit; padding: 9px 10px; text-align: left; cursor: pointer; }
.project-control-attention-list button span { color: var(--gold); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.project-control-attention-list button strong { overflow: hidden; color: rgba(255,255,255,.84); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.project-control-attention-list button small { color: rgba(255,255,255,.42); font-size: .64rem; }
.project-control-attention-list > p { grid-column: 1/-1; margin: 0; color: rgba(255,255,255,.5); font-size: .76rem; }

.project-control-timeline { padding: 24px 16px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.018); }
.project-timeline-axis { position: relative; height: 62px; margin: 0 12px; }
.project-timeline-axis > i { position: absolute; top: 27px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,rgba(201,148,60,.25),rgba(201,148,60,.7),rgba(201,148,60,.25)); }
.project-timeline-marker { position: absolute; top: 16px; display: grid; place-items: center; width: 24px; height: 24px; margin-left: calc(-12px + (var(--timeline-lane, 0) * 25px)); border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.84); cursor: pointer; z-index: calc(2 + var(--timeline-lane, 0)); }
.project-timeline-marker > b { display: grid; place-items: center; }
.project-timeline-marker > b .ois-marker { width: 24px; height: 24px; }
.project-timeline-marker > span { position: absolute; left: 50%; bottom: 31px; display: none; width: 190px; transform: translateX(-50%); padding: 8px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #102833; box-shadow: 0 10px 28px rgba(0,0,0,.28); text-align: left; }
.project-timeline-marker.edge-start > span { left: 0; transform: none; }
.project-timeline-marker.edge-end > span { right: 0; left: auto; transform: none; }
.project-timeline-marker:hover > span, .project-timeline-marker:focus-visible > span { display: grid; gap: 2px; }
.project-timeline-marker > span strong { color: rgba(255,255,255,.9); font-size: .68rem; }
.project-timeline-marker > span small { color: rgba(255,255,255,.5); font-size: .6rem; }
.project-timeline-marker.type-a { border-color: rgba(89,141,218,.55); }
.project-timeline-marker.type-b { border-color: rgba(201,148,60,.62); }
.project-timeline-marker.type-m { border-color: rgba(138,107,201,.55); }
.project-timeline-marker.type-r { border-color: rgba(213,91,86,.58); }
.project-timeline-marker.type-k { border-color: rgba(82,164,120,.62); }
.project-control-timeline footer { display: flex; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.42); font-size: .65rem; }
.project-control-timeline footer strong { color: rgba(255,255,255,.68); }

.project-control-risk-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.project-control-risk-preview > button,
.project-control-risk-preview > article { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.02); color: inherit; text-align: left; }
.project-control-risk-preview > button { cursor: pointer; }
.project-control-risk-preview > button:hover { background: rgba(255,255,255,.035); }
.project-control-risk-preview .is-risk { border-left: 3px solid rgba(218,91,87,.72); }
.project-control-risk-preview .is-opportunity { border-left: 3px solid rgba(82,164,120,.72); }
.project-risk-card-copy { display: grid; gap: 5px; min-width: 0; }
.project-risk-card-copy > span { color: rgba(255,255,255,.43); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.project-risk-card-copy strong { overflow: hidden; color: rgba(255,255,255,.88); font-size: .78rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.project-risk-card-copy small { color: rgba(255,255,255,.48); font-size: .66rem; }

.project-control-quality { display: grid; gap: 10px; padding-top: 10px; }
.project-quality-objectives { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.project-quality-objectives > span { margin-right: 3px; color: rgba(255,255,255,.43); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.project-quality-objectives button { padding: 6px 9px; border: 1px solid rgba(201,148,60,.25); border-radius: 999px; background: rgba(201,148,60,.055); color: var(--gold); font: inherit; font-size: .68rem; cursor: pointer; }
.project-quality-objectives em { color: rgba(255,255,255,.46); font-size: .7rem; font-style: normal; }
.project-quality-kpis,
.project-quality-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.project-quality-kpis button,
.project-quality-benefits button { display: grid; align-content: start; gap: 5px; min-height: 86px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(255,255,255,.02); color: inherit; text-align: left; }
.project-quality-kpis button,
.project-quality-benefits button { cursor: pointer; }
.project-quality-kpis button:hover,
.project-quality-benefits button:hover { border-color: rgba(201,148,60,.27); background: rgba(201,148,60,.035); }
.project-quality-kpis span,
.project-quality-benefits span { color: rgba(255,255,255,.4); font-size: .59rem; font-weight: 850; text-transform: uppercase; }
.project-quality-kpis strong,
.project-quality-benefits strong { color: rgba(255,255,255,.87); font-size: .75rem; line-height: 1.3; }
.project-quality-kpis small,
.project-quality-benefits small { color: rgba(255,255,255,.5); font-size: .66rem; line-height: 1.35; }
.project-quality-kpis > p,
.project-quality-benefits > p { grid-column: 1/-1; margin: 0; color: rgba(255,255,255,.48); font-size: .72rem; }

.project-control-quality-stats, .project-control-money-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 12px 0; }
.project-control-quality-stats article, .project-control-money-grid article { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(255,255,255,.02); }
.project-control-quality-stats span, .project-control-money-grid span { color: rgba(255,255,255,.44); font-size: .62rem; text-transform: uppercase; }
.project-control-quality-stats strong, .project-control-money-grid strong { color: rgba(255,255,255,.86); font-size: 1rem; }
.project-control-money > small { display: block; color: rgba(255,255,255,.45); font-size: .68rem; padding-bottom: 3px; }
.project-control-money-grid > button { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(255,255,255,.02); color: inherit; text-align: left; cursor: pointer; }
.project-control-money-grid > button:hover { border-color: rgba(201,148,60,.28); background: rgba(201,148,60,.035); }
.project-control-money-grid > button span { color: rgba(255,255,255,.44); font-size: .62rem; text-transform: uppercase; }
.project-control-money-grid > button strong { color: rgba(255,255,255,.86); font-size: 1rem; }
.project-control-money-grid > button small { color: var(--gold); font-size: .62rem; }

.project-mini-risk-matrix { width: min(540px,100%); margin: 12px auto 2px; }
.project-risk-grid { position: relative; display: grid; grid-template-columns: repeat(5,1fr); grid-template-rows: repeat(5,42px); border: 1px solid rgba(255,255,255,.1); }
.project-risk-grid > i { border-right: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.012); }
.project-risk-point { position: absolute; left: calc((var(--risk-x) - .5) * 20%); top: calc((var(--risk-y) - .5) * 20%); display: grid; place-items: center; width: 23px; height: 23px; padding: 0; transform: translate(-50%,-50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.project-risk-point > .ois-marker { width: 23px; height: 23px; }
.project-risk-point > .ois-marker svg { width: 13px; height: 13px; }
.project-risk-point em { position: absolute; bottom: 30px; left: 50%; display: none; width: 210px; padding: 9px 10px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: #102833; box-shadow: 0 12px 30px rgba(0,0,0,.3); color: rgba(255,255,255,.88); font-style: normal; text-align: left; z-index: 5; }
.project-risk-point.tooltip-left em { left: -4px; transform: none; }
.project-risk-point.tooltip-right em { right: -4px; left: auto; transform: none; }
.project-risk-point:hover em,
.project-risk-point:focus-visible em { display: grid; gap: 3px; }
.project-risk-point em strong { font-size: .7rem; line-height: 1.35; }
.project-risk-point em small { color: rgba(255,255,255,.52); font-size: .62rem; }
.project-risk-axis { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.48); font-size: .62rem; }
.project-risk-axis span { color: rgba(255,255,255,.72); font-weight: 800; text-transform: uppercase; }
.project-risk-axis-y { margin-top: 6px; }
.project-risk-axis-x { margin-top: 3px; }
.project-risk-legend { display: flex; justify-content: space-between; padding-top: 7px; color: rgba(255,255,255,.43); font-size: .64rem; }
.project-risk-legend strong { color: rgba(255,255,255,.7); }

.project-planning-module { min-width: 0; padding-top: 10px; }
.project-planning-module > .record-editor-finance-heading { padding: 0 1px 10px; }
.project-planning-module [data-project-planning-widget] { min-width: 0; }
.project-planning-module .kptw { --kptw-meta-width: 330px; --kptw-count-width: 64px; }
.project-planning-module .kptw-summary { padding: 0 2px; }
.project-planning-module .kptw-board { background: rgba(255,255,255,.012); }

.project-strategic-overview { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); gap: 12px; padding-top: 10px; }
.project-strategy-pyramid { display: grid; align-content: start; justify-items: center; gap: 5px; min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.018); }
.project-strategy-pyramid > div { display: grid; gap: 4px; min-width: 0; padding: 9px 12px; border: 1px solid rgba(201,148,60,.16); background: rgba(201,148,60,.035); text-align: center; }
.project-strategy-pyramid .level-ambition { width: 58%; border-radius: 18px 18px 5px 5px; }
.project-strategy-pyramid .level-program { width: 72%; }
.project-strategy-pyramid .level-project { width: 86%; }
.project-strategy-pyramid .level-execution { width: 100%; border-radius: 5px 5px 8px 8px; }
.project-strategy-pyramid span { color: rgba(255,255,255,.42); font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.project-strategy-pyramid button { border: 0; background: transparent; color: rgba(255,255,255,.88); font: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.project-strategy-pyramid button:hover { color: var(--gold); }
.project-strategy-pyramid strong { overflow: hidden; color: rgba(255,255,255,.88); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.project-strategy-pyramid em { color: rgba(255,255,255,.45); font-size: .66rem; font-style: normal; }
.project-relation-index { overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.018); }
.project-relation-index > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.project-relation-index > header span { color: var(--gold); font-size: .59rem; font-weight: 850; text-transform: uppercase; }
.project-relation-index > header h3 { margin: 3px 0 0; color: rgba(255,255,255,.88); font-size: .82rem; }
.project-relation-index > header small { color: rgba(255,255,255,.43); font-size: .62rem; }
.project-relation-cluster { border-bottom: 1px solid rgba(255,255,255,.055); }
.project-relation-cluster:last-child { border-bottom: 0; }
.project-relation-cluster > summary { display: grid; grid-template-columns: minmax(0,1fr) auto 10px; align-items: center; gap: 9px; min-height: 38px; padding: 7px 11px; list-style: none; cursor: pointer; }
.project-relation-cluster > summary::-webkit-details-marker { display: none; }
.project-relation-cluster > summary:hover { background: rgba(201,148,60,.035); }
.project-relation-cluster > summary span { color: rgba(255,255,255,.75); font-size: .7rem; font-weight: 750; }
.project-relation-cluster > summary strong { color: var(--gold); font-size: .68rem; }
.project-relation-cluster > summary i { width: 7px; height: 7px; border-right: 1px solid rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.55); transform: rotate(45deg); }
.project-relation-cluster[open] > summary i { transform: rotate(225deg); }
.project-relation-cluster > div { display: grid; max-height: 190px; overflow-y: auto; border-top: 1px solid rgba(255,255,255,.05); }
.project-relation-cluster > div > button { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 11px; border: 0; border-bottom: 1px solid rgba(255,255,255,.04); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.project-relation-cluster > div > button:hover { background: rgba(201,148,60,.04); }
.project-relation-cluster > div > button > span { display: grid; grid-template-columns: 60px minmax(0,1fr); align-items: center; gap: 8px; min-width: 0; }
.project-relation-cluster > div > button b { color: var(--gold); font-size: .61rem; }
.project-relation-cluster > div > button strong { overflow: hidden; color: rgba(255,255,255,.8); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.project-relation-cluster > div > button small { color: rgba(255,255,255,.42); font-size: .61rem; }
.project-relation-cluster > div > p { margin: 0; padding: 10px 11px; color: rgba(255,255,255,.4); font-size: .66rem; }

.project-explain-dialog { width: min(560px,calc(100vw - 28px)); padding: 0; border: 1px solid rgba(201,148,60,.28); border-radius: 9px; background: #102833; color: rgba(255,255,255,.88); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.project-explain-dialog::backdrop { background: rgba(2,12,18,.68); backdrop-filter: blur(5px); }
.project-explain-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.project-explain-dialog > header span { color: var(--gold); font-size: .59rem; font-weight: 850; text-transform: uppercase; }
.project-explain-dialog > header h3 { margin: 3px 0 0; font-size: .94rem; }
.project-explain-dialog > header button { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.035); color: inherit; cursor: pointer; }
.project-explain-dialog-body { display: grid; gap: 10px; padding: 15px; }
.project-explain-dialog-body > strong { color: var(--gold); font-size: 1.2rem; }
.project-explain-dialog-body > p { margin: 0; color: rgba(255,255,255,.62); font-size: .74rem; line-height: 1.55; }
.project-money-source-list { display: grid; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; }
.project-money-source-list > button { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 11px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.project-money-source-list > button:last-child { border-bottom: 0; }
.project-money-source-list > button:hover { background: rgba(201,148,60,.045); }
.project-money-source-list > button span { display: grid; gap: 2px; font-size: .7rem; }
.project-money-source-list > button b { color: var(--gold); font-size: .6rem; }
.project-money-source-list > button strong { font-size: .72rem; }
.project-money-source-list > p { margin: 0; padding: 11px; color: rgba(255,255,255,.45); font-size: .7rem; }

html[data-theme="light"] .project-control-summary article,
html[data-theme="light"] .project-control-attention,
html[data-theme="light"] .project-control-attention-list button,
html[data-theme="light"] .project-control-timeline,
html[data-theme="light"] .project-control-risk-preview > button,
html[data-theme="light"] .project-control-risk-preview > article,
html[data-theme="light"] .project-quality-kpis button,
html[data-theme="light"] .project-quality-benefits button,
html[data-theme="light"] .project-control-quality-stats article,
html[data-theme="light"] .project-control-money-grid article { border-color: rgba(16,40,51,.1); background: rgba(255,255,255,.62); }
html[data-theme="light"] .project-control-summary article span,
html[data-theme="light"] .project-control-summary article small,
html[data-theme="light"] .project-control-attention-list button small,
html[data-theme="light"] .project-control-quality-stats span,
html[data-theme="light"] .project-control-money-grid span,
html[data-theme="light"] .project-control-money > small,
html[data-theme="light"] .project-control-timeline footer,
html[data-theme="light"] .project-risk-card-copy > span,
html[data-theme="light"] .project-risk-card-copy small,
html[data-theme="light"] .project-quality-objectives > span,
html[data-theme="light"] .project-quality-objectives em,
html[data-theme="light"] .project-quality-kpis span,
html[data-theme="light"] .project-quality-kpis small,
html[data-theme="light"] .project-quality-benefits span,
html[data-theme="light"] .project-quality-benefits small,
html[data-theme="light"] .project-risk-legend { color: rgba(16,40,51,.52); }
html[data-theme="light"] .project-control-summary article strong,
html[data-theme="light"] .project-control-attention-list button strong,
html[data-theme="light"] .project-control-quality-stats strong,
html[data-theme="light"] .project-control-money-grid strong,
html[data-theme="light"] .project-control-timeline footer strong,
html[data-theme="light"] .project-risk-card-copy strong,
html[data-theme="light"] .project-quality-kpis strong,
html[data-theme="light"] .project-quality-benefits strong,
html[data-theme="light"] .project-risk-legend strong { color: #102833; }
html[data-theme="light"] .project-timeline-marker, html[data-theme="light"] .project-timeline-marker > span { background: #fff; color: #102833; }
html[data-theme="light"] .project-timeline-marker > span strong { color: #102833; }
html[data-theme="light"] .project-timeline-marker > span small { color: rgba(16,40,51,.55); }
html[data-theme="light"] .project-risk-grid { border-color: rgba(16,40,51,.14); }
html[data-theme="light"] .project-risk-grid > i { border-color: rgba(16,40,51,.07); background: rgba(16,40,51,.012); }
html[data-theme="light"] .project-control-money-grid > button,
html[data-theme="light"] .project-strategy-pyramid,
html[data-theme="light"] .project-relation-index { border-color: rgba(16,40,51,.1); background: rgba(255,255,255,.62); }
html[data-theme="light"] .project-control-money-grid > button span,
html[data-theme="light"] .project-strategy-pyramid span,
html[data-theme="light"] .project-relation-index > header small,
html[data-theme="light"] .project-relation-cluster > div > button small { color: rgba(16,40,51,.52); }
html[data-theme="light"] .project-control-money-grid > button strong,
html[data-theme="light"] .project-strategy-pyramid button,
html[data-theme="light"] .project-strategy-pyramid strong,
html[data-theme="light"] .project-relation-index > header h3,
html[data-theme="light"] .project-relation-cluster > summary span,
html[data-theme="light"] .project-relation-cluster > div > button strong { color: #102833; }
html[data-theme="light"] .project-strategy-pyramid > div { border-color: rgba(154,91,8,.18); background: rgba(201,148,60,.055); }
html[data-theme="light"] .project-relation-index > header,
html[data-theme="light"] .project-relation-cluster,
html[data-theme="light"] .project-relation-cluster > div,
html[data-theme="light"] .project-relation-cluster > div > button { border-color: rgba(16,40,51,.08); }
html[data-theme="light"] .project-relation-cluster > summary i { border-color: rgba(16,40,51,.5); }
html[data-theme="light"] .project-risk-point em { border-color: rgba(16,40,51,.12); background: #fff; color: #102833; }
html[data-theme="light"] .project-risk-point em small,
html[data-theme="light"] .project-risk-axis { color: rgba(16,40,51,.52); }
html[data-theme="light"] .project-risk-axis span { color: #102833; }
html[data-theme="light"] .project-explain-dialog { border-color: rgba(154,91,8,.25); background: #fff; color: #102833; }
html[data-theme="light"] .project-explain-dialog > header { border-color: rgba(16,40,51,.09); }
html[data-theme="light"] .project-explain-dialog > header button { border-color: rgba(16,40,51,.12); color: #102833; background: rgba(16,40,51,.025); }
html[data-theme="light"] .project-explain-dialog-body > p,
html[data-theme="light"] .project-money-source-list > p { color: rgba(16,40,51,.62); }
html[data-theme="light"] .project-money-source-list { border-color: rgba(16,40,51,.1); }
html[data-theme="light"] .project-money-source-list > button { border-color: rgba(16,40,51,.08); color: #102833; }
html[data-theme="light"] .project-planning-module .kptw-board { background: rgba(16,40,51,.012); }

@media (max-width: 900px) {
  .project-control-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-control-summary .project-control-lead { grid-column: 1/-1; }
  .project-quality-kpis, .project-quality-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-strategic-overview { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .canonical-object-section-copy { grid-template-columns: 26px minmax(0, 1fr); }
  .canonical-object-section-copy em { grid-column: 2; white-space: normal; }
  .record-view-panel.project-control-panel { width: calc(100vw - 12px); }
  .project-control-summary { grid-template-columns: 1fr 1fr; }
  .project-control-attention-list, .project-control-risk-preview, .project-quality-kpis, .project-quality-benefits, .project-control-quality-stats, .project-control-money-grid { grid-template-columns: 1fr; }
  .project-control-attention-list button { grid-template-columns: auto minmax(0,1fr); }
  .project-control-attention-list button small { grid-column: 2; }
}

.record-view-panel .record-editor-grid {
  gap: 8px;
}

.record-view-panel .record-view-field {
  min-height: 64px;
  gap: 5px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-view-panel .record-view-value {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.035);
  padding: 8px 9px;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.record-view-panel .record-view-field-wide .record-view-value {
  line-height: 1.5;
}

.record-view-panel .record-editor-strategy,
.record-view-panel .record-editor-finance {
  margin-top: 4px;
  border-color: rgba(201, 148, 60, 0.18);
  border-radius: 10px;
  background: rgba(201, 148, 60, 0.045);
  padding: 12px;
}

.record-view-panel .record-editor-finance-heading {
  margin-bottom: 10px;
}

.record-view-panel .record-editor-finance-heading h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.record-view-panel .record-view-actions {
  align-items: center;
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  padding: 11px 14px;
}

.record-view-panel .record-view-actions small {
  color: rgba(255, 255, 255, 0.44);
}

.record-view-panel .record-view-chip,
.record-view-panel .record-view-link {
  border-color: rgba(201, 148, 60, 0.28);
  color: var(--gold);
  background: rgba(201, 148, 60, 0.08);
}

.record-view-panel .record-view-empty {
  color: rgba(255, 255, 255, 0.34);
}

html[data-theme="light"] .record-editor-modal:has(.record-view-panel) {
  background: rgba(16, 40, 51, 0.22);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .record-view-panel {
  color: #102833;
  border-color: rgba(16, 40, 51, 0.12);
  background: #f7f4ed;
  box-shadow: 0 22px 56px rgba(16, 40, 51, 0.14);
}

html[data-theme="light"] .record-view-panel .record-editor-header {
  border-bottom-color: rgba(201, 148, 60, 0.2);
  background: linear-gradient(90deg, rgba(201, 148, 60, 0.12), rgba(255, 255, 255, 0.58)), #f7f4ed;
}

html[data-theme="light"] .record-view-panel .record-editor-header h2 {
  color: #102833;
}

html[data-theme="light"] .record-view-panel .record-editor-close {
  color: rgba(16, 40, 51, 0.66);
  border-color: rgba(16, 40, 51, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .record-view-panel .record-view-field {
  color: rgba(16, 40, 51, 0.52);
}

html[data-theme="light"] .record-view-panel .record-view-value {
  border-color: rgba(16, 40, 51, 0.1);
  color: rgba(16, 40, 51, 0.88);
  background: rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .record-view-panel .record-editor-strategy,
html[data-theme="light"] .record-view-panel .record-editor-finance {
  border-color: rgba(201, 148, 60, 0.22);
  background: rgba(201, 148, 60, 0.08);
}

html[data-theme="light"] .record-view-panel .record-editor-finance-heading h3 {
  color: #102833;
}

html[data-theme="light"] .record-view-panel .record-view-actions {
  border-top-color: rgba(16, 40, 51, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .record-view-panel .record-view-actions small {
  color: rgba(16, 40, 51, 0.52);
}

html[data-theme="light"] .record-view-panel .record-view-chip,
html[data-theme="light"] .record-view-panel .record-view-link {
  border-color: rgba(154, 91, 8, 0.24);
  color: #9a5b08;
  background: rgba(201, 148, 60, 0.11);
}

html[data-theme="light"] .record-view-panel .record-view-empty {
  color: rgba(16, 40, 51, 0.38);
}

.record-project-relations {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

/* GOV-STRAT J6: strategische lijn (uitvoering → ambitie) in de drawer */
.record-strategic-line {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(201, 148, 60, 0.25);
  background: rgba(201, 148, 60, 0.05);
}
.record-strategic-line-chain {
  font-size: 13px;
  font-weight: 600;
  color: #e8eef4;
  margin-top: 6px;
  line-height: 1.5;
  word-break: break-word;
}
.record-strategic-line-why {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}
.record-strategic-line-why em { color: rgba(201, 148, 60, 0.85); font-style: italic; }
.record-strategic-line-empty {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}
html[data-theme="light"] .record-strategic-line { background: rgba(160, 112, 32, 0.06); border-color: rgba(160, 112, 32, 0.25); }
html[data-theme="light"] .record-strategic-line-chain { color: #1a2a38; }
html[data-theme="light"] .record-strategic-line-why { color: rgba(16, 44, 56, 0.75); }

.report-strategic-summary { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); margin: 2px 0; }
html[data-theme="light"] .report-strategic-summary { color: rgba(16, 44, 56, 0.7); }

/* #2: besluit-feedback op het afwijkingspaneel */
.sk-decision-note {
  font-size: 12px;
  color: #7fd4a6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sk-decision-note strong { color: #a6e5c4; }

/* #4: voltooide registerrij blijft zichtbaar, duidelijk gedimd met vinkje */
.kreg-row.is-done {
  opacity: 0.62;
}
.kreg-row.is-done .kreg-name::after {
  content: " ✓ voltooid";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #52c78a;
  text-transform: uppercase;
  margin-left: 6px;
  white-space: nowrap;
}
html[data-theme="light"] .kreg-row.is-done .kreg-name::after { color: #1e7048; }

.record-editor-workflow {
  margin-top: 14px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: rgba(255,255,255,0.015);
  overflow: hidden;
}

.record-editor-workflow > .record-editor-finance-heading {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.018);
}

.record-editor-workflow .udo-workflow-actions {
  margin: 0;
  padding: 12px 14px 13px;
  border-top: 0;
}

.record-editor-workflow .wf-progress {
  display: grid;
  gap: 6px;
  margin: 0 0 11px;
}

.record-editor-workflow .wf-progress__track {
  height: 3px;
  margin: 0;
  background: rgba(255,255,255,0.08);
}

.record-editor-workflow .wf-progress__bar {
  background: var(--gold);
}

.record-editor-workflow .wf-progress__state-label {
  color: var(--text-primary);
  font-size: 11px;
}

.record-editor-workflow .wf-progress__step-count {
  color: var(--text-muted);
  font-size: 10px;
}

.record-editor-workflow .wf-actions {
  display: flex;
  flex-flow: row wrap;
  gap: 7px;
  margin: 0;
}

.record-editor-workflow .wf-action-item {
  flex: 0 1 auto;
}

.record-editor-workflow .wf-action-btn {
  width: auto;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(201,148,60,0.28);
  border-radius: 4px;
  background: rgba(201,148,60,0.07);
  color: var(--text-primary);
  font-size: 11px;
  line-height: 1.2;
}

.record-editor-workflow .wf-action-btn:hover:not(:disabled) {
  border-color: rgba(201,148,60,0.5);
  background: rgba(201,148,60,0.13);
}

.record-editor-workflow .wf-action-btn--destructive {
  border-color: rgba(217,95,89,0.25);
  background: rgba(217,95,89,0.055);
  color: #efaaa5;
}

.record-editor-workflow .wf-action-btn--destructive:hover:not(:disabled) {
  border-color: rgba(217,95,89,0.46);
  background: rgba(217,95,89,0.1);
}

.record-editor-workflow .wf-action-btn__icon {
  font-size: 12px;
}

.record-editor-workflow .wf-action-btn__label {
  flex: 0 1 auto;
  font-weight: 700;
}

.record-editor-workflow .wf-action-btn__help,
.record-editor-workflow .wf-action-btn__warning {
  display: none;
}

.record-editor-workflow .wf-feedback:not([hidden]) {
  margin-top: 9px;
}

html[data-theme="light"] .record-editor-workflow {
  border-color: rgba(16,44,56,0.1);
  background: rgba(16,44,56,0.025);
}

html[data-theme="light"] .record-editor-workflow > .record-editor-finance-heading {
  border-bottom-color: rgba(16,44,56,0.08);
  background: rgba(16,44,56,0.02);
}

html[data-theme="light"] .record-editor-workflow .wf-progress__track {
  background: rgba(16,44,56,0.09);
}

html[data-theme="light"] .record-editor-workflow .wf-action-btn {
  border-color: rgba(154,91,8,0.24);
  background: rgba(154,91,8,0.055);
  color: #102c38;
}

html[data-theme="light"] .record-editor-workflow .wf-action-btn--destructive {
  border-color: rgba(165,62,56,0.23);
  background: rgba(165,62,56,0.045);
  color: #a53e38;
}

.record-editor-outcome {
  margin-top: 12px;
  border: 1px solid rgba(201,148,60,.2);
  border-radius: 4px;
  background: rgba(201,148,60,.035);
  overflow: hidden;
}
.record-editor-outcome > .record-editor-finance-heading { margin: 0; padding: 11px 14px; border-bottom: 1px solid rgba(201,148,60,.14); }
.record-editor-outcome > .record-editor-grid { padding: 12px 14px; }
html[data-theme="light"] .record-editor-outcome { border-color: rgba(154,91,8,.18); background: rgba(154,91,8,.03); }

@media (max-width: 640px) {
  .record-editor-workflow .wf-actions,
  .record-editor-workflow .wf-action-item,
  .record-editor-workflow .wf-action-btn {
    width: 100%;
  }
}

.record-project-relations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.record-project-relation-group {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.record-project-relation-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.record-project-relation-group h4 {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.record-project-relation-group > header span {
  color: var(--gold, #c9943c);
  font-size: 0.72rem;
  font-weight: 800;
}

.record-project-relation-list {
  display: grid;
  max-height: 238px;
  overflow-y: auto;
}

.record-project-relation {
  display: grid;
  grid-template-columns: minmax(114px, 148px) minmax(0, 1fr) minmax(120px, 190px);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.record-project-relation:hover { background: rgba(201,148,60,0.07); }
.record-project-relation b { overflow: hidden; color: var(--text-soft, rgba(255,255,255,0.56)); font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.record-project-relation strong { overflow: hidden; font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.record-project-relation small { overflow: hidden; color: rgba(255,255,255,0.45); font-size: 0.64rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.record-project-relation-empty { margin: 0; padding: 12px 10px; color: rgba(255,255,255,0.38); font-size: 0.7rem; }

html[data-theme="light"] .record-project-relations,
html[data-theme="light"] .record-project-relation-group {
  border-color: rgba(16,44,56,0.1);
  background: rgba(16,44,56,0.025);
}

html[data-theme="light"] .record-project-relation-group > header,
html[data-theme="light"] .record-project-relation {
  border-color: rgba(16,44,56,0.08);
}

html[data-theme="light"] .record-project-relation small,
html[data-theme="light"] .record-project-relation-empty { color: rgba(16,44,56,0.52); }

@media (max-width: 720px) {
  .record-option-a-panel .record-editor-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .record-option-a-panel .record-editor-section-heading small {
    text-align: left;
  }

  .record-project-relations-grid { grid-template-columns: 1fr; }
  .record-project-relation { grid-template-columns: minmax(82px, 108px) minmax(0, 1fr); gap: 7px; }
  .record-project-relation small { grid-column: 2; text-align: left; }
}

/* Record edit popup: aligned with Option A view styling */
.record-editor-modal:has(.record-edit-panel) {
  background: rgba(2, 12, 18, 0.62);
  backdrop-filter: blur(8px);
}

.record-edit-panel {
  width: min(920px, 100%);
  border-color: rgba(201, 148, 60, 0.24);
  border-radius: 12px;
  background: #0b202d;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

.record-edit-panel .record-editor-header {
  align-items: center;
  border-bottom-color: rgba(201, 148, 60, 0.16);
  background: linear-gradient(90deg, rgba(201, 148, 60, 0.08), rgba(255, 255, 255, 0.018)), #0b202d;
  padding: 14px 16px;
}

.record-edit-panel .record-editor-header span {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.record-edit-panel .record-editor-header h2 {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.2;
}

.record-edit-panel .record-editor-close,
.record-edit-panel .record-editor-cancel {
  min-height: 30px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  padding: 5px 10px;
  font-size: 0.75rem;
}

.record-edit-panel .record-editor-form {
  gap: 12px;
  padding: 14px;
}

.record-edit-panel .record-editor-grid {
  gap: 8px;
}

.record-edit-panel .record-editor-field {
  min-height: 64px;
  gap: 5px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-edit-panel .record-editor-field small {
  letter-spacing: 0;
  text-transform: none;
}

.record-edit-panel .record-editor-field input,
.record-edit-panel .record-editor-field select,
.record-edit-panel .record-editor-field textarea {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 9px;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.record-edit-panel .record-editor-field textarea {
  min-height: 86px;
  line-height: 1.5;
}

.record-edit-panel .record-editor-strategy,
.record-edit-panel .record-editor-finance {
  margin-top: 4px;
  border-color: rgba(201, 148, 60, 0.18);
  border-radius: 10px;
  background: rgba(201, 148, 60, 0.045);
  padding: 12px;
}

.record-edit-panel .record-editor-finance-heading {
  margin-bottom: 10px;
}

.record-edit-panel .record-editor-finance-heading h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.record-edit-panel .record-editor-actions {
  align-items: center;
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  margin: 0 -14px -14px;
  padding: 11px 14px;
}

.record-edit-panel .record-editor-actions small {
  color: rgba(255, 255, 255, 0.44);
}

html[data-theme="light"] .record-editor-modal:has(.record-edit-panel) {
  background: rgba(16, 40, 51, 0.22);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .record-edit-panel {
  color: #102833;
  border-color: rgba(16, 40, 51, 0.12);
  background: #f7f4ed;
  box-shadow: 0 22px 56px rgba(16, 40, 51, 0.14);
}

html[data-theme="light"] .record-edit-panel .record-editor-header {
  border-bottom-color: rgba(201, 148, 60, 0.2);
  background: linear-gradient(90deg, rgba(201, 148, 60, 0.12), rgba(255, 255, 255, 0.58)), #f7f4ed;
}

html[data-theme="light"] .record-edit-panel .record-editor-header h2 {
  color: #102833;
}

html[data-theme="light"] .record-edit-panel .record-editor-close,
html[data-theme="light"] .record-edit-panel .record-editor-cancel {
  color: rgba(16, 40, 51, 0.66);
  border-color: rgba(16, 40, 51, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .record-edit-panel .record-editor-field {
  color: rgba(16, 40, 51, 0.52);
}

html[data-theme="light"] .record-edit-panel .record-editor-field input,
html[data-theme="light"] .record-edit-panel .record-editor-field select,
html[data-theme="light"] .record-edit-panel .record-editor-field textarea {
  border-color: rgba(16, 40, 51, 0.13);
  color: rgba(16, 40, 51, 0.9);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .record-edit-panel .record-editor-strategy,
html[data-theme="light"] .record-edit-panel .record-editor-finance {
  border-color: rgba(201, 148, 60, 0.22);
  background: rgba(201, 148, 60, 0.08);
}

html[data-theme="light"] .record-edit-panel .record-editor-finance-heading h3 {
  color: #102833;
}

html[data-theme="light"] .record-edit-panel .record-editor-actions {
  border-top-color: rgba(16, 40, 51, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .record-edit-panel .record-editor-actions small {
  color: rgba(16, 40, 51, 0.52);
}

html[data-theme="light"] .form-note {
  color: var(--text-main);
  border-color: rgba(201, 148, 60, 0.28);
  background: #fff8ea;
}

.dashboard-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 12px;
  font-family: inherit;
}

.assistant-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid rgba(201, 148, 60, 0.42);
  border-radius: 999px;
  color: var(--white);
  background: rgba(5, 18, 29, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  padding: 8px 15px 8px 9px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.assistant-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #071624;
  background: var(--gold);
}

.assistant-panel {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 23, 36, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  padding: 16px;
  backdrop-filter: blur(18px);
}

.assistant-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.assistant-panel header span,
.assistant-form span,
.assistant-answer span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.assistant-panel h2 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.assistant-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.assistant-form label {
  display: grid;
  gap: 6px;
}

.assistant-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  padding: 9px 11px;
  font: inherit;
}

.assistant-form button,
.assistant-quick button,
.assistant-manual {
  border: 1px solid rgba(201, 148, 60, 0.34);
  border-radius: 7px;
  color: var(--white);
  background: rgba(201, 148, 60, 0.11);
  padding: 10px 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0;
}

.assistant-quick button {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
}

.assistant-answer {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 13px;
}

.assistant-answer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.assistant-manual {
  display: inline-flex;
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

.finance-empty-state {
  display: grid;
  gap: 10px;
  min-height: 180px;
  align-content: center;
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-radius: 8px;
  background: rgba(201, 148, 60, 0.08);
  padding: clamp(18px, 3vw, 28px);
}

.finance-empty-state span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.finance-empty-state strong {
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.finance-empty-state p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.finance-empty-state a {
  justify-self: start;
  border: 1px solid rgba(201, 148, 60, 0.36);
  border-radius: 7px;
  color: var(--white);
  background: rgba(201, 148, 60, 0.12);
  padding: 10px 13px;
  font-weight: 900;
  text-decoration: none;
}

html[data-theme="light"] .assistant-toggle,
html[data-theme="light"] .assistant-panel {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(24, 38, 58, 0.15);
}

html[data-theme="light"] .assistant-close,
html[data-theme="light"] .assistant-form input,
html[data-theme="light"] .assistant-quick button,
html[data-theme="light"] .assistant-answer {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(246, 249, 252, 0.92);
}

html[data-theme="light"] .assistant-answer p {
  color: var(--text-soft);
}

html[data-theme="light"] .assistant-form button,
html[data-theme="light"] .assistant-manual {
  color: #071624;
  background: #fff8ea;
}

html[data-theme="light"] .finance-empty-state {
  border-color: rgba(201, 148, 60, 0.3);
  background: #fff8ea;
}

html[data-theme="light"] .finance-empty-state strong,
html[data-theme="light"] .finance-empty-state a {
  color: var(--text-main);
}

html[data-theme="light"] .finance-empty-state p {
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .dashboard-assistant {
    right: 16px;
    bottom: 16px;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }
}

/* Layout foundation B.1: reporting and analysis */
.layout-foundation-b1 .reporting-summary,
.layout-foundation-b1 .reporting-workspace,
.layout-foundation-b1 .report-register,
.layout-foundation-b1 .report-feedback {
  width: 100%;
}

.layout-foundation-b1 .reporting-summary {
  gap: 0;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  margin-bottom: 0;
}

.layout-foundation-b1 .reporting-summary article {
  border-right-color: var(--b1-border);
  padding: 10px 13px;
}

.layout-foundation-b1 .reporting-summary span {
  color: var(--b1-muted);
}

.layout-foundation-b1 .reporting-workspace {
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  gap: var(--b1-gap);
  margin-bottom: 0;
}

.layout-foundation-b1 .report-generator,
.layout-foundation-b1 .report-preview,
.layout-foundation-b1 .report-register {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  box-shadow: var(--b1-shadow);
  padding: 14px;
}

.layout-foundation-b1 .report-generator,
.layout-foundation-b1 .report-register {
  color: var(--b1-text);
  background: var(--b1-surface);
}

.layout-foundation-b1 .report-generator .section-heading,
.layout-foundation-b1 .report-register .section-heading {
  margin-bottom: 10px;
}

.layout-foundation-b1 .report-generator .section-heading h2,
.layout-foundation-b1 .report-register .section-heading h2,
.layout-foundation-b1 .report-review-queue > div > strong,
.layout-foundation-b1 .report-entry-main h3,
.layout-foundation-b1 .report-version-history article strong {
  color: var(--b1-text);
}

.layout-foundation-b1 .report-generator .section-heading p,
.layout-foundation-b1 .report-register .section-heading p,
.layout-foundation-b1 .report-review-queue > div > small,
.layout-foundation-b1 .report-entry-main p,
.layout-foundation-b1 .report-entry-main small,
.layout-foundation-b1 .report-version-history article span {
  color: var(--b1-muted);
}

.layout-foundation-b1 .report-form-grid {
  gap: 8px;
}

.layout-foundation-b1 .report-form-grid label,
.layout-foundation-b1 .report-filter-bar label {
  color: var(--b1-muted);
}

.layout-foundation-b1 .report-form-grid input,
.layout-foundation-b1 .report-form-grid select,
.layout-foundation-b1 .report-form-grid textarea,
.layout-foundation-b1 .report-filter-bar select {
  border-color: var(--b1-border);
  color: var(--b1-text);
  background: var(--b1-surface-soft);
  padding: 8px 9px;
}

.layout-foundation-b1 .report-section-picker {
  gap: 6px;
  margin: 10px 0;
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface-soft);
  padding: 9px 10px;
}

.layout-foundation-b1 .report-section-picker label {
  color: var(--b1-text);
}

.layout-foundation-b1 .report-actions button,
.layout-foundation-b1 .report-entry-actions button {
  min-height: 32px;
  color: var(--b1-text);
  padding: 6px 9px;
}

.layout-foundation-b1 .report-preview {
  align-content: start;
  gap: 12px;
  max-height: min(900px, 76vh);
  overflow: auto;
  background: #f9faf8;
}

.layout-foundation-b1 .report-review-queue {
  gap: 10px;
  border-color: rgba(201, 148, 60, 0.28);
  border-radius: var(--b1-radius);
  margin: 10px 0;
  padding: 10px 11px;
}

.layout-foundation-b1 .report-review-queue button,
.layout-foundation-b1 .report-entry,
.layout-foundation-b1 .report-version-history article {
  border-color: var(--b1-border);
  border-radius: 6px;
  color: var(--b1-text);
  background: var(--b1-surface-soft);
}

.layout-foundation-b1 .report-filter-bar {
  margin: 10px 0;
}

.layout-foundation-b1 .report-list {
  gap: 7px;
}

.layout-foundation-b1 .report-entry {
  padding: 10px 11px;
}

html[data-theme="light"] .layout-foundation-b1 .report-form-grid input,
html[data-theme="light"] .layout-foundation-b1 .report-form-grid select,
html[data-theme="light"] .layout-foundation-b1 .report-form-grid textarea,
html[data-theme="light"] .layout-foundation-b1 .report-filter-bar select {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .layout-foundation-b1 .report-review-queue button,
html[data-theme="light"] .layout-foundation-b1 .report-entry,
html[data-theme="light"] .layout-foundation-b1 .report-version-history article {
  background: rgba(16, 40, 51, 0.025);
}

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

  .layout-foundation-b1 .report-preview {
    max-height: 720px;
  }
}

@media (max-width: 560px) {
  .layout-foundation-b1 .reporting-summary article {
    border-right-color: var(--b1-border);
    border-bottom-color: var(--b1-border);
  }

  .layout-foundation-b1 .report-generator,
  .layout-foundation-b1 .report-preview,
  .layout-foundation-b1 .report-register {
    padding: 11px;
  }

  .report-executive-grid {
    grid-template-columns: 1fr;
  }

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

.manual-page {
  gap: 18px;
}

.manual-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(201, 148, 60, 0.36);
  border-radius: 7px;
  color: var(--white);
  background: rgba(201, 148, 60, 0.1);
  padding: 9px 13px;
  font-weight: 900;
  text-decoration: none;
}

.manual-hero,
.manual-section,
.manual-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-soft);
}

.manual-hero {
  padding: clamp(22px, 3vw, 34px);
}

.manual-hero span,
.manual-section > h2,
.manual-grid h2 {
  color: var(--gold);
}

.manual-hero span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.manual-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.04;
}

.manual-hero p,
.manual-section p,
.manual-grid dd,
.manual-grid li,
.manual-table span,
.manual-scenarios span,
.manual-test-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.manual-hero p {
  max-width: 820px;
  margin: 14px 0 0;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.manual-grid article,
.manual-section {
  padding: 20px;
}

.manual-grid h2,
.manual-section h2 {
  margin: 0 0 14px;
}

.manual-grid dl,
.manual-grid ol {
  margin: 0;
}

.manual-grid dt {
  margin-top: 10px;
  color: var(--white);
  font-weight: 950;
}

.manual-grid dd {
  margin: 3px 0 0;
}

.manual-grid li {
  margin: 0 0 8px;
}

.manual-table,
.manual-scenarios {
  display: grid;
  gap: 10px;
}

.manual-table div,
.manual-scenarios div {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.manual-table strong,
.manual-scenarios strong {
  color: var(--white);
}

.manual-test-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.manual-test-grid article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.manual-test-grid span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #071624;
  background: var(--gold);
  font-weight: 950;
}

.manual-test-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--white);
}

.manual-test-grid p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

html[data-theme="light"] .manual-back,
html[data-theme="light"] .manual-hero,
html[data-theme="light"] .manual-section,
html[data-theme="light"] .manual-grid article,
html[data-theme="light"] .manual-test-grid article {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .manual-grid dt,
html[data-theme="light"] .manual-table strong,
html[data-theme="light"] .manual-scenarios strong,
html[data-theme="light"] .manual-test-grid strong {
  color: var(--text-main);
}

html[data-theme="light"] .manual-hero p,
html[data-theme="light"] .manual-section p,
html[data-theme="light"] .manual-grid dd,
html[data-theme="light"] .manual-grid li,
html[data-theme="light"] .manual-table span,
html[data-theme="light"] .manual-scenarios span,
html[data-theme="light"] .manual-test-grid p {
  color: var(--text-soft);
}

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

  .manual-table div,
  .manual-scenarios div {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] .my-work-row-meta b,
html[data-theme="light"] .audit-entry-head span,
html[data-theme="light"] .workbench-edit-levels .is-active,
html[data-theme="light"] .report-section-picker legend,
html[data-theme="light"] .project-reference {
  color: #7a4a08;
}

html[data-theme="light"] .audit-entry del {
  color: #9f302b;
}

html[data-theme="light"] .audit-entry ins {
  color: #176b54;
}

html[data-theme="light"] .project-status-summary > span,
html[data-theme="light"] .traffic-status {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .project-status-summary small {
  color: var(--text-soft);
}

html[data-theme="light"] .project-status-summary .traffic-status {
  color: var(--text-main);
  background: transparent;
}

html[data-theme="light"] .project-status-summary .traffic-status i {
  box-shadow: 0 0 0 3px rgba(12, 35, 75, 0.08);
}

html[data-theme="light"] .planning-module-toggle {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .planning-module-toggle:hover,
html[data-theme="light"] .planning-module-toggle:focus-visible {
  border-color: rgba(201, 148, 60, 0.5);
  background: #fff8ea;
  outline: none;
}

html[data-theme="light"] .planning-module-toggle small {
  color: #7a4a08;
}

html[data-theme="light"] .planning-module-toggle strong,
html[data-theme="light"] .planning-module-toggle b {
  color: var(--text-main);
}

html[data-theme="light"] .planning-module-toggle em {
  color: var(--text-soft);
}

html[data-theme="light"] .planning-module-toggle b {
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .report-preview span,
html[data-theme="light"] .report-preview small,
html[data-theme="light"] .report-document-footer {
  color: #344761;
}

html[data-theme="light"] .report-message span,
html[data-theme="light"] .report-section-picker legend {
  color: #6f4308;
}

html[data-theme="light"] .detail-links a:hover,
html[data-theme="light"] .detail-links a:focus-visible {
  color: #071a3a;
  border-color: rgba(201, 148, 60, 0.55);
  background: #f2d491;
}

html[data-theme="light"] .detail-card .score-strip strong,
html[data-theme="light"] .detail-card .next-action strong,
html[data-theme="light"] .detail-card .linked-feedback {
  color: var(--text-main);
}

@media (max-width: 760px) {
  .detail-card-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-card-compact-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-card-top,
  .card-actions {
    justify-content: flex-start;
  }

  .card-actions,
  .card-actions > * {
    width: 100%;
  }

  .card-actions button {
    justify-content: center;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  :root {
    --print-ink: #15303a;
    --print-muted: #5f747a;
    --print-line: rgba(21, 48, 58, 0.18);
  }

  body {
    color: var(--print-ink);
    background: #ffffff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body::before,
  body::after,
  .shell::after,
  .filters,
  .print-button,
  .edit-controls,
  .card-mode-toggle,
  .detail-modal-button,
  .detail-modal,
  .tabs,
  .page-nav,
  .deep-links {
    display: none !important;
  }

  .shell {
    min-height: auto;
    padding: 0;
  }

  .reporting-page .reporting-intro,
  .reporting-page .reporting-summary,
  .reporting-page .report-generator,
  .reporting-page .report-register,
  .reporting-page .site-footer,
  .reporting-page .report-feedback { display: none !important; }

  .reporting-page .reporting-workspace { display: block; width: 100%; }
  .reporting-page .reporting-workspace,
  .reporting-page .report-preview { border: 0 !important; background: #fff !important; box-shadow: none !important; }
  .reporting-page .report-preview { display: grid; width: 100%; color: #203a44 !important; padding: 0; }
  .reporting-page .report-table-scroll { overflow: visible; }
  .reporting-page .report-preview thead { display: table-header-group; }
  .reporting-page .report-preview tr { break-inside: avoid; }
  .reporting-page .report-screen-heading { display: none; }
  .reporting-page .report-table-title-row { display: table-row; }
  .reporting-page .report-table-title-row th { border-bottom: 2px solid #c9943c; color: #102c38; background: #fff !important; padding-top: 13px; font-size: 10pt; text-transform: uppercase; }
  .reporting-page .report-table-section { break-before: auto; }
  .reporting-page .report-document-brand > strong { color: #102c38 !important; }

  .topbar,
  .kpis,
  .narrative,
  .risk-opportunity-section,
  .finance-summary,
  .detail-intro,
  .detail-grid,
  .workspace {
    width: 100%;
    max-width: none;
  }

  .topbar {
    align-items: start;
    padding: 0 0 10mm;
    border-bottom: 2px solid var(--gold);
    break-after: avoid;
  }

  .eyebrow {
    color: var(--print-muted);
  }

  .dashboard-brand {
    margin-bottom: 5mm;
    padding: 0;
    background: transparent !important;
    box-shadow: none;
  }

  .dashboard-logo {
    width: 28mm;
  }

  .dashboard-brand-divider {
    height: 12mm;
  }

  h1 {
    color: var(--print-ink);
    font-size: 28pt;
  }

  h2,
  .narrative h2 {
    color: var(--print-ink);
  }

  .period {
    color: var(--print-muted);
  }

  .period span {
    color: #ffffff;
    background: var(--gold);
  }

  .period strong {
    color: var(--print-ink);
  }

  .kpis {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 8mm 0 6mm;
  }

  .narrative {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 6mm;
  }

  .workspace {
    grid-template-columns: 0.38fr 0.62fr;
    gap: 8px;
  }

  .kpis article,
  .finance-summary article,
  .narrative article,
  .detail-intro article,
  .detail-card,
  .panel,
  .module {
    border: 1px solid var(--print-line);
    border-radius: 6px;
    background: #ffffff !important;
    box-shadow: none;
    backdrop-filter: none;
    break-inside: avoid;
  }

  .kpis article {
    min-height: 30mm;
    padding: 10px;
  }

  .kpis span,
  .kpis small,
  .finance-summary span,
  .finance-summary small,
  .narrative span,
  .narrative p,
  .detail-kicker,
  .detail-intro span,
  .detail-intro p,
  .detail-card-top span,
  .detail-progress span,
  .score-strip span,
  .next-action span,
  .bar-meta,
  td,
  td small,
  .empty {
    color: var(--print-muted);
  }

  .kpis strong,
  .finance-summary strong,
  .detail-card h2,
  .detail-card dd,
  .detail-progress strong,
  .score-strip strong,
  .next-action strong,
  td strong,
  .bar-meta strong {
    color: var(--print-ink);
  }

  .kpis strong {
    font-size: 22pt;
  }

  .narrative article,
  .detail-intro article,
  .detail-card,
  .panel {
    padding: 12px;
  }

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

  .detail-card {
    gap: 10px;
  }

  .detail-card-body[hidden] {
    display: grid !important;
  }

  .detail-card dl {
    gap: 7px;
  }

  .narrative article {
    min-height: 30mm;
  }

  .module {
    overflow: visible;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 8.5pt;
  }

  th,
  td {
    border-bottom: 1px solid var(--print-line);
    padding: 6px 7px;
    font-size: 8.5pt;
  }

  th {
    color: var(--print-muted);
    background: #f7f4ee !important;
  }

  .track {
    background: #e9edf0 !important;
  }

  .fill {
    background: var(--gold) !important;
  }

  .fill.over {
    background: var(--danger) !important;
  }

  .pill {
    min-height: 20px;
    border-radius: 999px;
    padding: 0 7px;
    font-size: 7.5pt;
  }
}


/* ═══════════════════════════════════════════════════════
   HEADER REDESIGN v2 — Compacte topbar (pilot: index.html)
   Sluit aan op KEA §6 Object Header & Design Authority §9.13
   ═══════════════════════════════════════════════════════ */

/* 1. Reset grote executive header — verwijder stockfoto & minimum-hoogte */
html[data-theme] .topbar:has(.topbar-brand) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  height: 72px;
  padding: 0 clamp(20px, 2.8vw, 36px);
  background: var(--navy, #102833);
  border-radius: 0;
}

html[data-theme] .topbar:has(.topbar-brand)::after {
  display: none;
}

/* 2. Brand-sectie (links) */
html[data-theme] .topbar:has(.topbar-brand) .topbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
}

/* 3. Tenant-initiaal avatar — goud vierkant */
.topbar-tenant-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--gold, #c49b4a);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

/* 4. Verticale scheidingslijn */
.topbar-brand-sep {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
  margin: 0 18px;
}

html[data-theme="light"] .topbar-brand-sep {
  background: rgba(16, 40, 51, 0.20);
}

/* 5. Tekst-kolom: tenant-naam boven paginatitel */
html[data-theme] .topbar:has(.topbar-brand) .topbar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 0 1 auto;
}

html[data-theme] .topbar:has(.topbar-brand) .topbar-tenant {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

html[data-theme="light"] .topbar:has(.topbar-brand) .topbar-tenant {
  color: rgba(16, 40, 51, 0.50);
}

/* 6. h1 paginatitel — reset alle grote-header stijlen */
html[data-theme] .topbar:has(.topbar-brand) h1,
html[data-theme] .topbar:has(.topbar-brand) .topbar-brand-text h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
  margin: 0;
  padding: 0;
}

html[data-theme="light"] .topbar:has(.topbar-brand) h1 {
  color: #102833;
  text-shadow: none;
}

/* Verberg ::before decoratie ("Programma-inhoud") */
html[data-theme] .topbar:has(.topbar-brand) h1::before,
.topbar:has(.topbar-brand) h1::before {
  display: none !important;
  content: none !important;
}

/* 7. Rolbadge — direct naast de titel (flex-sibling) */
html[data-theme] .topbar:has(.topbar-brand) .topbar-brand {
  flex-wrap: nowrap;
}

.topbar-brand .topbar-role-badge {
  margin-left: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold, #c49b4a);
  border: 1.5px solid rgba(196, 155, 74, 0.50);
  background: rgba(196, 155, 74, 0.10);
  white-space: nowrap;
}

/* 8. Actions-sectie (rechts) */
html[data-theme] .topbar:has(.topbar-brand) .topbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
  max-width: none;
  overflow: visible;
}

/* 9. Period-chip: Q2 + datum gestapeld in pill */
html[data-theme] .topbar:has(.topbar-brand) .topbar-period-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 12px;
  min-width: 80px;
  flex-shrink: 0;
}

html[data-theme] .topbar:has(.topbar-brand) .topbar-period-chip span {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

html[data-theme] .topbar:has(.topbar-brand) .topbar-period-chip strong {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}

/* 10. Nav direct aansluitend — zelfde achtergrond als header */
html[data-theme] .topbar:has(.topbar-brand) + .page-nav {
  background: var(--navy, #102833);
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 clamp(20px, 2.8vw, 36px);
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav {
  background: var(--navy, #102833);
  border-top-color: rgba(16, 40, 51, 0.12);
}

/* Nav links: underline-stijl, geen pill */
html[data-theme] .topbar:has(.topbar-brand) + .page-nav a {
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  margin: 0 20px 0 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav a.active {
  color: var(--gold, #c49b4a);
  border-bottom-color: var(--gold, #c49b4a);
  background: transparent;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav a:hover:not(.active) {
  color: rgba(255, 255, 255, 0.90);
  background: transparent;
}

/* ── Einde Header Redesign v2 ── */

/* ── Beheer-dropdown in nieuwe underline-nav ── */
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary {
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  padding-right: 18px;
  margin: 0 20px 0 0;
  min-height: 0;
  border: none;
  border-radius: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary::after {
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary:hover,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group[open] summary {
  color: rgba(255, 255, 255, 0.90);
  background: transparent;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group.has-active summary {
  color: var(--gold, #c49b4a);
  border-bottom-color: var(--gold, #c49b4a);
  background: transparent;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu {
  background: #0d2330;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.40);
  padding: 6px;
  gap: 2px;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a {
  display: block;
  padding: 9px 14px;
  margin: 0;
  border-radius: 6px;
  border-bottom: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a.active {
  color: var(--gold, #c49b4a);
  background: rgba(201, 148, 60, 0.10);
  border-bottom: none;
}
/* ── Einde Beheer-dropdown ── */

/* Verwijder box-glow/achtergrond van active + hover nav-links in nieuwe header */
html[data-theme] .topbar:has(.topbar-brand) + .page-nav a.active,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav a:hover,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav a:focus-visible,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary:hover,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary:focus-visible,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group[open] summary,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group.has-active summary {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
  outline: none !important;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav a.active,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group.has-active summary,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group[open] summary {
  border-bottom-color: var(--gold, #c49b4a) !important;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  width: max-content !important;
  flex: 0 0 auto !important;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary {
  box-sizing: border-box;
  width: max-content !important;
  min-height: 44px !important;
  margin: 0 20px 0 0 !important;
  padding: 0 !important;
  gap: 6px;
  border-top: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  list-style: none;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary::after {
  position: static !important;
  flex: 0 0 auto;
  margin-left: 2px;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary::-webkit-details-marker {
  display: none;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu {
  margin-left: 0 !important;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group:hover,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group:focus-within {
  z-index: 140;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group:hover .nav-group-menu,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group:focus-within .nav-group-menu {
  display: grid !important;
}

/* KBr logo in compacte header */
.topbar-kbr-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

html[data-theme="light"] .topbar-kbr-logo {
  filter: none;
  opacity: 1;
}

/* Programmanaam onder de klantnaam in de header */
.topbar-program-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

html[data-theme="light"] .topbar-program-name {
  color: rgba(16, 40, 51, 0.50);
}

/* ── Premium header finish ── */

/* 1. Gouden accentlijn onderaan de header */
html[data-theme] .topbar:has(.topbar-brand) {
  border-bottom: 1.5px solid rgba(201, 148, 60, 0.55);
}

/* 2. Subtiele diepte-gradient (links iets lichter → rechts donkerder) */
html[data-theme] .topbar:has(.topbar-brand) {
  background: linear-gradient(105deg,
    #1a3a4a 0%,
    #102833 45%,
    #0b1f2b 100%
  );
}

/* 3. Logo: iets groter, zachte gouden gloed */
.topbar-kbr-logo {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(201, 148, 60, 0.45));
}

/* 4. Typografie: klantnaam zwaarder, programmanaam small-caps */
html[data-theme] .topbar:has(.topbar-brand) h1,
html[data-theme] .topbar:has(.topbar-brand) .topbar-brand-text h1 {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.topbar-program-name {
  font-variant: small-caps;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  font-weight: 600;
  color: rgba(201, 148, 60, 0.70);
}

html[data-theme="light"] .topbar-program-name {
  color: rgba(201, 148, 60, 0.80);
}
/* ── Einde premium finish ── */

/* ── Premium lichte header ── */

html[data-theme="light"] .topbar:has(.topbar-brand) {
  background: linear-gradient(105deg,
    #f7f4ee 0%,
    #f0ece3 45%,
    #e8e3d8 100%
  );
  border-bottom-color: rgba(201, 148, 60, 0.45);
}

/* Logo: originele kleuren in licht thema, geen invert */
html[data-theme="light"] .topbar-kbr-logo {
  filter: none;
  opacity: 1;
}

/* Separator in licht thema */
html[data-theme="light"] .topbar-brand-sep {
  background: rgba(16, 40, 51, 0.18);
}

/* Klantnaam in donker navy */
html[data-theme="light"] .topbar:has(.topbar-brand) h1,
html[data-theme="light"] .topbar:has(.topbar-brand) .topbar-brand-text h1 {
  color: #102833;
  text-shadow: none;
}

/* Programmanaam in goud */
html[data-theme="light"] .topbar-program-name {
  color: rgba(160, 110, 30, 0.80);
}

/* Nav licht thema — warm wit, zelfde als header */
html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav {
  background: linear-gradient(105deg, #f0ece3 0%, #e8e3d8 100%);
  border-top-color: rgba(201, 148, 60, 0.20);
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav a {
  color: rgba(16, 40, 51, 0.58);
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav a.active {
  color: #9a6b1a;
  border-bottom-color: #9a6b1a;
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav a:hover:not(.active) {
  color: #102833;
}

/* Beheer dropdown in licht thema */
html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav .nav-group summary {
  color: rgba(16, 40, 51, 0.58);
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu {
  background: #f0ece3;
  border-color: rgba(16, 40, 51, 0.12);
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a {
  color: rgba(16, 40, 51, 0.72);
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a:hover {
  background: rgba(16, 40, 51, 0.07);
  color: #102833;
}

html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav .nav-group.has-active summary {
  color: #9a6b1a;
  border-bottom-color: #9a6b1a;
}
/* ── Einde premium lichte header ── */

/* ── Pagina intro-strip (optie B) ── */
.page-intro {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px clamp(20px, 2.8vw, 36px);
  background: var(--card-bg, rgba(255,255,255,0.03));
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}

html[data-theme="light"] .page-intro {
  background: var(--surface-1, #f5f2ec);
  border-bottom-color: rgba(16,40,51,0.09);
}

.page-intro-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold, #c49b4a);
}

.page-intro-sep {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}

html[data-theme="light"] .page-intro-sep {
  color: rgba(16,40,51,0.25);
}

.page-intro-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
}

html[data-theme="light"] .page-intro-title {
  color: rgba(16,40,51,0.65);
}
/* ── Einde pagina intro-strip ── */

/* ── Pagina intro-strip v2 — geen eigen achtergrond ── */
.page-intro {
  background: transparent !important;
  border-bottom: none !important;
  padding: 18px clamp(20px, 2.8vw, 36px) 10px;
  border-left: 3px solid var(--gold, #c49b4a);
  margin: 0 clamp(20px, 2.8vw, 36px) 0;
}
/* ── Einde v2 ── */

.page-intro { border-left: none !important; padding-left: clamp(20px, 2.8vw, 36px); }

/* ── KPI-kaarten variant B ── */
.kpis article {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

.kpi-band {
  height: 3px;
  background: var(--border-strong, rgba(255,255,255,0.15));
  flex-shrink: 0;
  transition: background 0.2s;
}

.kpi-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px 12px;
  flex: 1;
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

html[data-theme="light"] .kpi-label {
  color: rgba(16,40,51,0.50);
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  transition: color 0.2s;
}

html[data-theme="light"] .kpi-value {
  color: #102833;
}

.kpi-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

html[data-theme="light"] .kpi-sub {
  color: rgba(16,40,51,0.50);
}

.kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 6px;
  width: fit-content;
  opacity: 0;
  transition: opacity 0.2s;
}

.kpi-pill:not(:empty) { opacity: 1; }

/* Status kleuren — band, waarde en pill */
.kpi-status-ok   .kpi-band { background: #1d9e75; }
.kpi-status-warn .kpi-band { background: #ba7517; }
.kpi-status-danger .kpi-band { background: #e24b4a; }
.kpi-status-neutral .kpi-band { background: rgba(255,255,255,0.18); }

.kpi-status-ok    .kpi-value { color: #4fcca4; }
.kpi-status-warn  .kpi-value { color: #f0a428; }
.kpi-status-danger .kpi-value { color: #f07070; }

html[data-theme="light"] .kpi-status-ok    .kpi-value { color: #0f6e56; }
html[data-theme="light"] .kpi-status-warn  .kpi-value { color: #854f0b; }
html[data-theme="light"] .kpi-status-danger .kpi-value { color: #a32d2d; }

.kpi-status-ok     .kpi-pill { background: rgba(29,158,117,0.15); color: #4fcca4; }
.kpi-status-warn   .kpi-pill { background: rgba(186,117,23,0.15); color: #f0a428; }
.kpi-status-danger .kpi-pill { background: rgba(226,75,74,0.15);  color: #f07070; }
.kpi-status-neutral .kpi-pill { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }

html[data-theme="light"] .kpi-status-ok     .kpi-pill { background: #eaf3de; color: #3b6d11; }
html[data-theme="light"] .kpi-status-warn   .kpi-pill { background: #faeeda; color: #854f0b; }
html[data-theme="light"] .kpi-status-danger .kpi-pill { background: #fcebeb; color: #a32d2d; }
html[data-theme="light"] .kpi-status-neutral .kpi-pill { background: rgba(16,40,51,0.07); color: rgba(16,40,51,0.55); }
/* ── Einde KPI variant B ── */

/* ── Consistente paginaritmiek overzicht ── */

/* Shell: minder bovenruimte (page-intro verzorgt de overgang) */
.shell {
  padding-top: 0 !important;
}

/* Uniforme adempauze tussen alle hoofd-secties */
.page-intro,
.executive-stage,
.kpis,
.narrative,
.workspace,
.risk-opportunity-section,
.planning-overview-summary {
  margin-bottom: 0 !important;
}

.executive-stage  { padding-top: 20px; }
.kpis             { padding-top: 6px; padding-bottom: 4px; }
.narrative        { padding-top: 4px; padding-bottom: 4px; }
.workspace        { padding-top: 4px; padding-bottom: 4px; }

.risk-opportunity-section,
.planning-overview-summary {
  margin-top: 8px !important;
  border-radius: 12px;
}

/* Section headings: uniforme stijl */
.section-heading > span,
.executive-stage-heading > div > span,
.narrative article > span {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
}

/* PM edit button on narrative section */
.narrative-edit-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.13);
  border-radius: 5px;
  cursor: pointer;
  margin: 8px 0 0 auto;
  transition: color 0.15s, background 0.15s;
}
.narrative-edit-btn:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.09); }
html[data-theme="light"] .narrative-edit-btn { color: rgba(16,44,56,0.45); background: rgba(16,44,56,0.04); border-color: rgba(16,44,56,0.12); }
html[data-theme="light"] .narrative-edit-btn:hover { color: #102c38; background: rgba(16,44,56,0.08); }

/* PM add panel (benefit toevoegen op financien) */
.pm-add-panel { padding: 16px 0 4px; }
.pm-add-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.13); border-radius: 6px; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.pm-add-toggle:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.09); }
.pm-add-form { margin-top: 16px; padding: 16px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 0.5px solid rgba(255,255,255,0.08); }
.pm-add-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.pm-add-form-actions [type=submit] { padding: 7px 18px; font-size: 0.8rem; font-weight: 600; color: #102833; background: var(--gold,#c9943c); border: none; border-radius: 6px; cursor: pointer; }
.pm-add-form-actions [type=button] { padding: 7px 14px; font-size: 0.8rem; color: rgba(255,255,255,0.5); background: transparent; border: 0.5px solid rgba(255,255,255,0.15); border-radius: 6px; cursor: pointer; }
html[data-theme="light"] .pm-add-toggle { color: rgba(16,44,56,0.5); background: rgba(16,44,56,0.04); border-color: rgba(16,44,56,0.12); }
html[data-theme="light"] .pm-add-toggle:hover { color: #102c38; background: rgba(16,44,56,0.08); }
html[data-theme="light"] .pm-add-form { background: rgba(16,44,56,0.03); border-color: rgba(16,44,56,0.08); }

/* Verwijder dubbele ruimte onder page-intro */
.page-intro {
  margin-bottom: 0 !important;
  padding-bottom: 12px;
}
/* ── Einde paginaritmiek ── */

/* ── Organisatie: verticale hiërarchie ── */
.org-hierarchy {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 2.8vw, 36px) 56px;
  gap: 0;
}

.org-layer {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 24px;
}

.org-layer-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}

.org-layer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold, #c9943c);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201, 148, 60, 0.18), 0 0 12px rgba(201, 148, 60, 0.25);
}

.org-layer-line {
  flex: 1;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(201, 148, 60, 0.35) 0%, rgba(201, 148, 60, 0.1) 100%);
  margin-top: 8px;
}

.org-layer:last-child .org-layer-line {
  display: none;
}

.org-layer-content {
  padding: 14px 20px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  margin-bottom: 16px;
  position: relative;
  overflow: visible;
  min-width: 0;
}

.org-layer-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--gold, #c9943c);
  opacity: 0.7;
  border-radius: 2px;
}

.org-layer:last-child .org-layer-content {
  margin-bottom: 0;
}

.org-layer-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #c9943c);
  margin-bottom: 6px;
  opacity: 0.9;
}

.org-layer-question {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
}

.org-layer-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
  max-width: 620px;
}

.org-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.org-chip {
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 0.5px solid rgba(201, 148, 60, 0.3);
  background: rgba(201, 148, 60, 0.08);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
}

.org-gov-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2px;
}

.org-gov-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.org-gov-table th {
  text-align: left;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 16px 10px 0;
}

.org-gov-table tbody tr:first-child td {
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.org-gov-table td {
  padding: 11px 16px 11px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  vertical-align: top;
  line-height: 1.45;
}

.org-gov-table tr:last-child td {
  border-bottom: none;
}

.org-gov-table td:first-child {
  color: rgba(201, 148, 60, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 130px;
}

.org-gov-table td:nth-child(2) {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

/* Light theme overrides */
html[data-theme="light"] .org-layer-content {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 40, 51, 0.1);
  box-shadow: 0 2px 12px rgba(16, 40, 51, 0.05);
}

html[data-theme="light"] .org-layer-question {
  color: #102833;
}

html[data-theme="light"] .org-layer-body {
  color: #445a68;
}

html[data-theme="light"] .org-chip {
  border-color: rgba(201, 148, 60, 0.4);
  background: rgba(201, 148, 60, 0.07);
  color: #4a3a18;
}

html[data-theme="light"] .org-gov-table th {
  color: rgba(16, 40, 51, 0.4);
}

html[data-theme="light"] .org-gov-table tbody tr:first-child td {
  border-top-color: rgba(16, 40, 51, 0.1);
}

html[data-theme="light"] .org-gov-table td {
  border-bottom-color: rgba(16, 40, 51, 0.07);
  color: #445a68;
}

html[data-theme="light"] .org-gov-table td:first-child {
  color: rgba(150, 100, 20, 0.9);
}

html[data-theme="light"] .org-gov-table td:nth-child(2) {
  color: #102833;
}

html[data-theme="light"] .org-layer-line {
  background: linear-gradient(to bottom, rgba(201, 148, 60, 0.45) 0%, rgba(201, 148, 60, 0.1) 100%);
}

/* Light theme overrides */
html[data-theme="light"] .org-layer-question {
  color: var(--text-main, #1a2e3a);
}

html[data-theme="light"] .org-layer-body {
  color: var(--text-soft, #4a5a68);
}

html[data-theme="light"] .org-chip {
  border-color: rgba(16, 40, 51, 0.15);
  background: rgba(16, 40, 51, 0.05);
  color: var(--text-soft, #4a5a68);
}

html[data-theme="light"] .org-gov-table th {
  color: rgba(16, 40, 51, 0.45);
}

html[data-theme="light"] .org-gov-table td {
  border-top-color: rgba(16, 40, 51, 0.1);
  color: var(--text-soft, #4a5a68);
}

html[data-theme="light"] .org-gov-table td:first-child {
  color: rgba(16, 40, 51, 0.45);
}

html[data-theme="light"] .org-layer-line {
  background: rgba(201, 148, 60, 0.3);
}

/* ── Organisatie: inline bewerken ── */
/* Org profile edit button (PM-only, top of hierarchy) */
.org-profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.org-profile-edit-btn:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.09); }

/* Org profile modal */
.org-profile-modal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.org-profile-panel {
  width: min(520px, 94vw);
  background: #0e2635;
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.org-profile-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.org-profile-header span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold,#c9943c); display: block; margin-bottom: 2px; }
.org-profile-header h2 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0; }
.org-profile-close {
  background: transparent; border: none; color: rgba(255,255,255,0.4);
  font-size: 0.8rem; cursor: pointer; padding: 4px 8px; border-radius: 4px;
  transition: color 0.15s;
}
.org-profile-close:hover { color: #fff; }
.org-profile-form { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.org-profile-field { display: flex; flex-direction: column; gap: 6px; }
.org-profile-field > span { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.65); }
.org-profile-field small { font-weight: 400; color: rgba(255,255,255,0.35); margin-left: 6px; }
.org-profile-field textarea {
  width: 100%; padding: 10px 12px;
  font-size: 0.88rem; line-height: 1.6; font-family: inherit;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 6px; resize: vertical;
}
.org-profile-field textarea:focus { outline: none; border-color: rgba(201,148,60,0.6); }
.org-profile-status { font-size: 0.78rem; color: rgba(255,100,100,0.85); margin: 0; }
.org-profile-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 24px 20px; border-top: 0.5px solid rgba(255,255,255,0.08);
}
.org-profile-cancel {
  padding: 7px 16px; font-size: 0.8rem;
  color: rgba(255,255,255,0.5); background: transparent;
  border: 0.5px solid rgba(255,255,255,0.15); border-radius: 6px; cursor: pointer;
}
.org-profile-cancel:hover { color: rgba(255,255,255,0.85); }
.org-profile-actions [type=submit] {
  padding: 7px 18px; font-size: 0.8rem; font-weight: 600;
  color: #102833; background: var(--gold,#c9943c);
  border: none; border-radius: 6px; cursor: pointer;
}
.org-profile-actions [type=submit]:disabled { opacity: 0.6; cursor: not-allowed; }

html[data-theme="light"] .org-profile-panel { background: #fff; border-color: rgba(16,44,56,0.12); }
html[data-theme="light"] .org-profile-header { border-color: rgba(16,44,56,0.08); }
html[data-theme="light"] .org-profile-header h2 { color: #102c38; }
html[data-theme="light"] .org-profile-close { color: rgba(16,44,56,0.4); }
html[data-theme="light"] .org-profile-close:hover { color: #102c38; }
html[data-theme="light"] .org-profile-field > span { color: rgba(16,44,56,0.7); }
html[data-theme="light"] .org-profile-field textarea { color: #102c38; background: #f8f9fb; border-color: rgba(16,44,56,0.14); }
html[data-theme="light"] .org-profile-actions { border-color: rgba(16,44,56,0.08); }
html[data-theme="light"] .org-profile-cancel { color: rgba(16,44,56,0.5); border-color: rgba(16,44,56,0.15); }
html[data-theme="light"] .org-profile-edit-btn { color: rgba(16,44,56,0.5); background: rgba(16,44,56,0.04); border-color: rgba(16,44,56,0.12); }
html[data-theme="light"] .org-profile-edit-btn:hover { color: #102c38; background: rgba(16,44,56,0.08); }

.org-gov-hint {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.org-gov-hint a {
  color: rgba(201, 148, 60, 0.7);
  text-decoration: none;
}

.org-gov-hint a:hover {
  color: var(--gold, #c9943c);
}

html[data-theme="light"] .org-cancel-btn-legacy {
  color: rgba(16, 40, 51, 0.5);
  border-color: rgba(16, 40, 51, 0.15);
}

html[data-theme="light"] .org-gov-hint {
  color: rgba(16, 40, 51, 0.4);
}

/* Responsive navigation repair for the compact executive header. */
html[data-theme] .topbar:has(.topbar-brand) + .page-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav > a,
html[data-theme] .topbar:has(.topbar-brand) + .page-nav > .nav-group {
  flex: 0 0 auto;
}

html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-mobile-toggle {
  display: none;
}

@media (max-width: 980px) {
  html[data-theme] .topbar:has(.topbar-brand) + .page-nav {
    padding-inline: 14px;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav a,
  html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary {
    margin-right: 16px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  html[data-theme] .topbar:has(.topbar-brand) + .page-nav {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] {
    max-height: none;
    overflow: visible;
    padding-bottom: 8px;
    /* Dek de pagina af: de nav is normaal 52% doorzichtig, waardoor het open menu
       de inhoud erdoorheen liet zien. Open = ondoorzichtig en boven de pagina. */
    z-index: 200;
    background: #0b1f2b;
    backdrop-filter: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  html[data-theme="light"] .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] {
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 44, 56, 0.18);
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-mobile-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] .nav-mobile-toggle::after {
    transform: translateY(2px) rotate(225deg);
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav > a,
  html[data-theme] .topbar:has(.topbar-brand) + .page-nav > .nav-group {
    display: none;
    width: calc(100% - 24px);
    margin-inline: 12px;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] > a,
  html[data-theme] .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] > .nav-group {
    display: block;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav > a,
  html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group summary {
    justify-content: flex-start;
    width: max-content !important;
    min-height: 40px;
    margin: 0;
    padding: 0 4px;
    border-bottom-width: 1px;
    font-size: 13px;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group {
    display: none;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] .nav-group {
    display: block;
  }

  html[data-theme] .topbar:has(.topbar-brand) + .page-nav .nav-group-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0 0 8px;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  html[data-theme] .topbar:has(.topbar-brand) {
    grid-template-columns: 1fr;
  }

  html[data-theme] .topbar:has(.topbar-brand) .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

/* GOV-STRAT-03a: drie onafhankelijke meetlatten voor strategische gezondheid. */
.strategy-health {
  margin: 14px 0;
  border: 1px solid var(--b1-border, rgba(148, 163, 184, 0.2));
  background: var(--b1-panel, rgba(16, 31, 45, 0.92));
}

.strategy-health-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
  gap: 24px;
  align-items: end;
  padding: 16px 18px;
  border-bottom: 1px solid var(--b1-border, rgba(148, 163, 184, 0.2));
}

.strategy-health-heading span {
  color: var(--accent, #e7a33c);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-health-heading h2 {
  margin: 3px 0 0;
  color: var(--text, #f5f7fa);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.strategy-health-heading p {
  margin: 0;
  color: var(--muted, #9aa8b6);
  font-size: 0.78rem;
  line-height: 1.5;
}

.strategy-health-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2.28fr);
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--b1-border, rgba(148, 163, 184, 0.14));
}

.strategy-health-row:last-child { border-bottom: 0; }
.strategy-health-objective { min-width: 0; }
.strategy-health-objective > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.strategy-health-objective > button span { color: var(--accent, #e7a33c); font-size: 0.67rem; font-weight: 850; }
.strategy-health-objective > button strong { color: var(--text, #f5f7fa); font-size: 0.84rem; line-height: 1.35; }
.strategy-health-objective > small { display: block; margin-top: 5px; color: var(--muted, #9aa8b6); font-size: 0.69rem; }
.strategy-health-alert { display: inline-flex; margin-top: 8px; padding: 3px 6px; border-left: 2px solid #e7a33c; color: var(--text, #f5f7fa); background: rgba(231, 163, 60, 0.08); font-size: 0.65rem; }
.strategy-health-alert button {
  margin-left: 5px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--link, #65a8e8);
  font: inherit;
  cursor: pointer;
}
.strategy-health-layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.strategy-health-layer { min-width: 0; }
.strategy-health-layer-head, .strategy-health-layer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.strategy-health-layer-head span { color: var(--muted, #9aa8b6); font-size: 0.68rem; font-weight: 750; }
.strategy-health-layer-head strong { color: var(--text, #f5f7fa); font-size: 0.85rem; }
.strategy-health-track { height: 4px; margin: 7px 0 6px; overflow: hidden; background: var(--b1-line, rgba(148, 163, 184, 0.18)); }
.strategy-health-track i { display: block; height: 100%; background: #e7a33c; }
.strategy-health-op-koers .strategy-health-track i { background: #24b47e; }
.strategy-health-kritiek .strategy-health-track i { background: #e36065; }
.strategy-health-onvoldoende-data .strategy-health-track i { background: transparent; }
.strategy-health-layer-foot > span:first-child { color: var(--muted, #9aa8b6); font-size: 0.62rem; }
.strategy-health-sources { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.strategy-health-source { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--link, #65a8e8); font-size: 0.6rem; cursor: pointer; }
.strategy-health-sources small { color: var(--muted, #9aa8b6); font-size: 0.58rem; }
.strategy-health-explanation {
  margin: 7px 0 0;
  color: var(--muted, #9aa8b6);
  font-size: 0.61rem;
  line-height: 1.4;
}

[data-theme="light"] .strategy-health,
body.theme-light .strategy-health {
  --b1-panel: #ffffff;
  --b1-border: #dbe2ea;
  --b1-line: #edf1f5;
  --text: #13243a;
  --muted: #647286;
  --link: #185b98;
}

@media (max-width: 900px) {
  .strategy-health-heading, .strategy-health-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .strategy-health-heading, .strategy-health-row { padding: 13px; }
  .strategy-health-layers { grid-template-columns: 1fr; gap: 12px; }
}

/* Strategisch Kompas: compact executive layout for the organisation strategy layer. */
.sk-compass-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.sk-compass-panel,
.sk-compass-insight {
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 96%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
  box-shadow: var(--shadow-soft);
}

.sk-compass-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(340px, 1fr);
  gap: clamp(16px, 3vw, 30px);
  align-items: center;
  min-height: 336px;
  padding: clamp(20px, 2.8vw, 32px);
  overflow: hidden;
}

.sk-compass-copy span,
.sk-compass-insight-head span,
.sk-compass-metric span,
.sk-compass-value span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sk-compass-copy h2 {
  max-width: 420px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.sk-compass-copy p,
.sk-compass-insight p,
.sk-compass-insight small,
.sk-compass-metric small,
.sk-compass-value small {
  color: var(--muted);
}

.sk-compass-copy p {
  max-width: 480px;
  margin: 14px 0 0;
  line-height: 1.65;
}

.sk-compass-stage {
  position: relative;
  min-height: 292px;
}

.sk-compass-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(242px, 58vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--line));
  border-radius: 999px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--surface) 96%, transparent) 0 31%, transparent 32%),
    conic-gradient(from -20deg, color-mix(in srgb, var(--gold) 22%, transparent), transparent 24%, color-mix(in srgb, #2f80ed 12%, transparent) 50%, transparent 76%, color-mix(in srgb, var(--gold) 18%, transparent));
  box-shadow: inset 0 0 0 12px color-mix(in srgb, var(--surface-2) 78%, transparent), 0 18px 45px color-mix(in srgb, var(--navy) 12%, transparent);
}

.sk-compass-ring::before,
.sk-compass-ring::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: inherit;
}

.sk-compass-ring::after {
  inset: 56px;
  border-color: color-mix(in srgb, var(--gold) 25%, transparent);
}

.sk-compass-axis {
  position: absolute;
  inset: 50% auto auto 50%;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  transform-origin: center;
}

.sk-axis-n {
  width: 1px;
  height: 78%;
  transform: translate(-50%, -50%);
}

.sk-axis-e {
  width: 78%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.sk-compass-center {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 94px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--navy) 10%, transparent);
  text-align: center;
}

.sk-compass-center span,
.sk-compass-center small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sk-compass-center strong {
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
}

.sk-compass-needle {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 86px;
  transform: translate(-50%, -96%) rotate(var(--needle));
  transform-origin: 50% 96%;
}

.sk-compass-needle span {
  display: block;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 100%, 50% 82%, 0 100%);
  background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 55%, var(--navy)));
  filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--gold) 24%, transparent));
}

.sk-compass-cardinal {
  position: absolute;
  z-index: 2;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sk-n { top: 10px; left: 50%; transform: translateX(-50%); }
.sk-o { top: 50%; right: 12px; transform: translateY(-50%); }
.sk-z { bottom: 9px; left: 50%; transform: translateX(-50%); }
.sk-w { top: 50%; left: 12px; transform: translateY(-50%); }

.sk-compass-direction {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  width: min(190px, 42vw);
  min-height: 74px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-left: 3px solid var(--pk, var(--gold));
  border-radius: 10px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--navy) 8%, transparent);
  text-align: left;
  cursor: pointer;
}

.sk-compass-direction:hover,
.sk-compass-direction.is-active {
  border-color: color-mix(in srgb, var(--pk, var(--gold)) 54%, var(--line));
  transform: translateY(-1px);
}

.sk-compass-direction strong {
  color: var(--text);
  font-size: 1.1rem;
}

.sk-compass-direction-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.sk-compass-direction small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.sk-compass-direction-1 { top: 0; left: 50%; transform: translateX(-50%); }
.sk-compass-direction-2 { top: 50%; right: 0; transform: translateY(-50%); }
.sk-compass-direction-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.sk-compass-direction-4 { top: 50%; left: 0; transform: translateY(-50%); }
.sk-compass-direction-1:hover,
.sk-compass-direction-1.is-active { transform: translate(-50%, -1px); }
.sk-compass-direction-2:hover,
.sk-compass-direction-2.is-active { transform: translateY(calc(-50% - 1px)); }
.sk-compass-direction-3:hover,
.sk-compass-direction-3.is-active { transform: translate(-50%, -1px); }
.sk-compass-direction-4:hover,
.sk-compass-direction-4.is-active { transform: translateY(calc(-50% - 1px)); }

.sk-compass-insight {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 24px);
}

.sk-compass-insight-head strong {
  display: block;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.2;
}

.sk-compass-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sk-compass-metric,
.sk-compass-value {
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.sk-compass-metric strong,
.sk-compass-value strong {
  display: block;
  color: var(--text);
  font-size: 1.34rem;
  line-height: 1;
}

.sk-compass-value {
  display: grid;
  gap: 12px;
}

.sk-value-progress {
  height: 8px;
}

.organization-dashboard,
.strategy-hero,
.strategy-section {
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

.organization-dashboard,
.strategy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 12px;
}

.organization-dashboard-main > span,
.strategy-hero span,
.strategy-section .section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.organization-dashboard h2,
.strategy-hero h2,
.strategy-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  letter-spacing: 0;
}

.organization-dashboard p,
.strategy-hero p,
.strategy-section p,
.strategy-section small {
  color: var(--muted);
}

.organization-flow,
.organization-summary,
.compass-health-grid,
.strategy-card-grid,
.kpi-scorecard-grid,
.benefit-scorecard-grid,
.core-value-grid,
.strategy-choice-grid,
.strategy-review-grid {
  display: grid;
  gap: 14px;
}

.organization-flow {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 22px;
}

.organization-flow a,
.organization-summary article,
.compass-health-card,
.pillar-card,
.objective-card,
.kpi-scorecard,
.benefit-scorecard,
.core-value-grid article,
.strategy-choice-grid article,
.strategy-review-grid article,
.organization-change-list article {
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.organization-flow a {
  display: block;
  padding: 14px;
  text-decoration: none;
}

.organization-flow strong,
.organization-summary strong,
.compass-health-card strong,
.pillar-card h3,
.objective-card h3,
.kpi-scorecard h3,
.benefit-scorecard h3,
.core-value-grid h3,
.strategy-choice-grid h3 {
  color: var(--text);
}

.organization-flow span,
.organization-summary span,
.compass-health-card span,
.pillar-card > span,
.objective-card header span,
.kpi-scorecard > span,
.benefit-scorecard > span,
.strategy-review-grid > article > span,
.organization-change-list span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.organization-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.organization-summary article,
.compass-health-card,
.pillar-card,
.objective-card,
.kpi-scorecard,
.benefit-scorecard,
.core-value-grid article,
.strategy-choice-grid article,
.strategy-review-grid article,
.organization-change-list article {
  padding: 16px;
}

.strategy-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 2px;
}

.strategy-tabs a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.strategy-section {
  margin-top: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 12px;
}

.strategy-kpi-owner,
.strategy-benefits-owner {
  margin-top: 16px;
}

.strategy-kpi-owner .section-heading,
.strategy-benefits-owner .section-heading {
  padding-inline: 2px;
}

.section-heading {
  margin-bottom: 18px;
}

.compass-health-grid,
.strategy-card-grid,
.kpi-scorecard-grid,
.benefit-scorecard-grid,
.core-value-grid,
.strategy-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.compass-risk-opportunity,
.strategy-detail-grid,
.organization-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.compass-risk-opportunity article,
.mission-document,
.strategy-detail-grid div,
.organization-profile-grid div,
.future-line article,
.strategic-timeline article,
.strategy-roadmap article,
.relation-graph article {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.compass-risk-opportunity a {
  display: block;
  padding: 11px 0;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

.pillar-card dl,
.objective-card dl,
.kpi-scorecard dl,
.benefit-scorecard dl,
.strategy-choice-grid dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 14px 0 0;
}

.strategy-section dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.strategy-section dd {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 760;
}

.objective-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.objective-card header b {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  font-size: 0.78rem;
}

.detail-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.detail-progress .track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
}

.detail-progress .fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #48c78e);
}

.kpi-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
}

.kpi-score-row strong {
  color: var(--text);
  font-size: 2rem;
}

.kpi-sparkline {
  width: 108px;
  height: 44px;
}

.kpi-sparkline polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.future-line,
.strategic-timeline,
.strategy-roadmap,
.relation-graph,
.organization-change-list {
  display: grid;
  gap: 12px;
}

.strategy-map {
  display: grid;
  gap: 12px;
}

.strategy-map > div {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.strategy-node {
  flex: 0 0 210px;
  display: block;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  text-decoration: none;
}

.relation-root {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.relation-branches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.relation-branches span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  font-size: 0.78rem;
  font-weight: 750;
}

.mission-document blockquote {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 760;
  line-height: 1.35;
}

.strategy-ai {
  margin-top: 12px;
}

.strategy-ai summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 760px) {
  .organization-dashboard,
  .strategy-hero,
  .sk-compass-summary,
  .sk-compass-panel {
    grid-template-columns: 1fr;
  }

  .sk-compass-panel {
    min-height: 0;
  }

  .sk-compass-stage {
    min-height: 430px;
  }

  .sk-compass-ring {
    width: min(220px, 72vw);
  }

  .sk-compass-direction {
    width: min(210px, 48vw);
  }

  .organization-summary,
  .sk-compass-focus-grid,
  .pillar-card dl,
  .objective-card dl,
  .kpi-scorecard dl,
  .benefit-scorecard dl,
  .strategy-choice-grid dl,
  .objective-card header,
  .detail-progress {
    grid-template-columns: 1fr;
  }

  .strategy-section {
    padding: 16px;
  }
}

/* Programma's: bestuurlijke laag boven projecten, zonder dashboardaggregaties te wijzigen. */
#programModule {
  display: grid;
  gap: 16px;
}

.program-dashboard,
.program-section {
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

/* Program KPI strip */
.program-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

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

.program-kpi-grid article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.program-kpi-grid article span {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.program-kpi-grid article strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.program-kpi-grid article small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Program card grid */
.program-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.prog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  overflow: hidden;
}

.prog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 0;
}

.prog-card-code {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}

.prog-card-health {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.prog-card-health.program-health-groen  { background: color-mix(in srgb, #4caf50 18%, transparent); color: #6dbf70; }
.prog-card-health.program-health-oranje { background: color-mix(in srgb, #ff9800 18%, transparent); color: #ffb54d; }
.prog-card-health.program-health-rood   { background: color-mix(in srgb, #f44336 18%, transparent); color: #f07070; }

.prog-card-name {
  margin: 0;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.prog-card-desc {
  margin: 0;
  padding: 0 16px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.prog-card-progress {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prog-card-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 60%, transparent);
  position: relative;
  overflow: hidden;
}

.prog-card-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--prog, 0%);
  background: var(--gold);
  border-radius: 999px;
}

.prog-card-progress span {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.prog-card-meta {
  margin: 0;
  padding: 12px 16px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.prog-card-meta div { display: flex; flex-direction: column; gap: 2px; }

.prog-card-meta dt {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.prog-card-meta dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 760;
  color: var(--text);
}

/* Other program grid variants */
.program-review-grid,
.program-dependency-network,
.benefits-network,
.program-roadmap {
  display: block;
}

.program-object-link,
.prog-object-link,
.program-inline-link {
  color: inherit;
  text-decoration: none;
}

.program-object-link {
  display: block;
}

.program-object-link:hover .timeline-row,
.program-object-link:focus-visible .timeline-row,
.prog-object-link:hover,
.prog-object-link:focus-visible {
  border-color: rgba(201, 148, 60, 0.42);
  background: rgba(201, 148, 60, 0.08);
  outline: none;
}

.program-inline-link {
  display: inline-grid;
  gap: 2px;
}

.program-inline-link:hover strong,
.program-inline-link:focus-visible strong {
  color: var(--gold);
}

.dep-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  margin-bottom: 10px;
}

.dep-prog-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dep-prog-card .sk-health-dot {
  margin-top: 4px;
  flex-shrink: 0;
}

.dep-prog-info {
  display: grid;
  gap: 3px;
}

.dep-prog-code {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c9943c);
}

.dep-prog-name {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--text);
  line-height: 1.3;
}

.dep-prog-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.dep-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.dep-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dep-col-head {
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  margin-bottom: 2px;
}

.dep-pill {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dep-pill-warn {
  background: rgba(255, 152, 0, 0.08);
  border-color: rgba(255, 152, 0, 0.22);
  color: #ffb74d;
}

.dep-pill-danger {
  background: rgba(220, 75, 70, 0.08);
  border-color: rgba(220, 75, 70, 0.22);
  color: #f07070;
}

.dep-pill-kans {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.22);
  color: #6dbf70;
}

.dep-pill-more {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  padding: 3px 7px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  cursor: pointer;
  font-style: italic;
  transition: color 0.15s, border-color 0.15s;
}

.dep-pill-more:hover {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.28);
}

.dep-col-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.dep-col-btn:hover,
.dep-col-btn[aria-expanded="true"] {
  background: rgba(201, 148, 60, 0.12);
  border-color: rgba(201, 148, 60, 0.45);
  color: var(--gold, #c9943c);
}

.dep-col-btn .ti {
  font-size: 10px;
  margin-left: auto;
  transition: transform 0.2s;
}

.dep-col-btn[aria-expanded="true"] .ti {
  transform: rotate(180deg);
}

.dep-col {
  position: relative;
}

.dep-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px 8px;
  background: var(--surface-2, #1a2535);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.dep-popover-head {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold, #c9943c);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dep-popover-head span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: none;
  letter-spacing: 0;
}

.dep-popover-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.dep-popover-items .dep-pill {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.5;
  padding: 6px 9px;
  font-size: 0.76rem;
}

.dep-popover-close {
  display: block;
  margin-top: 8px;
  padding: 4px 0;
  width: 100%;
  text-align: right;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  background: transparent;
  border: none;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dep-popover-close:hover {
  color: rgba(255, 255, 255, 0.65);
}

.dep-pill-empty {
  color: rgba(255, 255, 255, 0.22);
  border-color: transparent;
  background: transparent;
  font-style: italic;
  padding-left: 4px;
}

.dep-pill-link {
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.dep-pill-link:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.dep-pill-warn.dep-pill-link:hover {
  background: rgba(255, 152, 0, 0.16);
  border-color: rgba(255, 152, 0, 0.45);
}

.dep-pill-danger.dep-pill-link:hover {
  background: rgba(220, 75, 70, 0.16);
  border-color: rgba(220, 75, 70, 0.45);
}

.dep-pill-kans.dep-pill-link:hover {
  background: rgba(76, 175, 80, 0.16);
  border-color: rgba(76, 175, 80, 0.45);
}

@media (max-width: 640px) {
  .dep-row {
    grid-template-columns: 1fr;
  }
  .dep-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.program-review-grid article,
.program-dependency-network article,
.benefits-network article,
.program-roadmap article {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.program-review-grid span,
.benefits-network span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-review-grid strong,
.benefits-network strong {
  color: var(--text);
}

.benefit-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.benefit-chain b,
.benefit-chain em {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.portfolio-priority-matrix {
  grid-template-columns: 92px repeat(3, minmax(120px, 1fr));
}

.detail-filter-label {
  display: inline-grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-filter-label select {
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 0 10px;
}

@media (max-width: 760px) {
  .program-detail-grid dl,
  .program-detail-grid header {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STRATEGISCH KOMPAS WORKSPACE — SK Components
   ═══════════════════════════════════════════════════════════════ */

.sk-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}

/* ── Executive Strip ─────────────────────────────────────────── */
.sk-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.sk-strip-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.sk-strip-chip span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sk-strip-chip strong {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.sk-strip-chip small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.sk-chip-groen strong { color: #34d399; }
.sk-chip-geel strong { color: #f5c842; }
.sk-chip-rood strong { color: #f87171; }

/* ── Health dots & badges ───────────────────────────────────── */
.sk-health-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sk-health-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sk-groen { background: #34d399; }
.sk-groen.sk-health-badge { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.sk-geel { background: #f5c842; }
.sk-geel.sk-health-badge { background: rgba(245, 200, 66, 0.15); color: #f5c842; }
.sk-oranje { background: #f59e0b; }
.sk-oranje.sk-health-badge { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.sk-rood { background: #f87171; }
.sk-rood.sk-health-badge { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* ── Pillar Filter Cards ────────────────────────────────────── */
.sk-pillars-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.sk-pillars {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.sk-pillar-all {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
}

.sk-pillar-all strong { font-size: 0.88rem; font-weight: 900; color: #fff; }
.sk-pillar-all small { font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }

.sk-pillar {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  overflow: hidden;
  text-align: left;
  color: inherit;
}

.sk-pillar:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }

.sk-pillar-accent {
  width: 4px;
  flex-shrink: 0;
  background: var(--pk, #c9943c);
  border-radius: 10px 0 0 10px;
}

.sk-pillar-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
}

.sk-pillar-body strong { font-size: 0.85rem; font-weight: 900; color: #fff; white-space: nowrap; }
.sk-pillar-body small { font-size: 0.70rem; color: rgba(255, 255, 255, 0.45); white-space: nowrap; }

.sk-pillar-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.sk-pillar-health-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sk-pillar-active,
.sk-pillar-all.sk-pillar-active {
  border-color: var(--pk, var(--gold, #c9943c)) !important;
  background: rgba(201, 148, 60, 0.1) !important;
}

.sk-pillar-active .sk-pillar-body strong,
.sk-pillar-all.sk-pillar-active strong { color: var(--pk, var(--gold, #c9943c)); }

/* ── Filter bar ─────────────────────────────────────────────── */
.sk-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sk-filter-select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpolyline points='1,1 5,5 9,1' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.sk-clear-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.sk-clear-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }

/* ── Objectives List ────────────────────────────────────────── */
.sk-objectives {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-objective {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.15s;
}

.sk-objective:hover { border-color: rgba(255, 255, 255, 0.18); }
.sk-obj-open { border-color: rgba(201, 148, 60, 0.3) !important; background: rgba(201, 148, 60, 0.04) !important; }

.program-detail-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    rgba(5, 17, 24, 0.48);
}

/* Canonical program detail: portfolio-led, derived from existing source records. */
.program-control-panel {
  width: min(1480px, calc(100vw - 28px));
  max-width: 1480px;
}

.program-control-cockpit {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 94%, var(--text) 2%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent);
}

.program-control-cockpit > header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  padding: 9px 13px;
  background: color-mix(in srgb, var(--surface) 88%, var(--text) 4%);
}

.program-control-cockpit > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.program-control-cockpit > header > div > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.program-control-cockpit > header b {
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-control-cockpit > header small,
.program-control-cockpit > header p span {
  color: var(--muted);
  font-size: 0.68rem;
}

.program-control-cockpit > header p {
  display: grid;
  gap: 2px;
  margin-left: auto;
  border-left: 2px solid var(--gold);
  padding: 2px 10px;
}

.program-control-cockpit > header p strong {
  color: var(--text);
  font-size: 0.74rem;
}

.program-control-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, var(--text) 1%);
}

.program-control-metrics button {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  color: var(--text);
  background: transparent;
  padding: 9px 12px 8px;
  text-align: left;
  cursor: pointer;
}

.program-control-metrics button:last-child { border-right: 0; }

.program-control-metrics button:hover,
.program-control-metrics button:focus-visible,
.program-control-metrics button.is-active {
  background: color-mix(in srgb, var(--gold) 7%, var(--surface));
  outline: none;
}

.program-control-metrics button > span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-control-metrics button > strong {
  overflow: hidden;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-control-metrics button > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-control-metrics button > i,
.program-control-project-row > i {
  display: block;
  height: 3px;
  background: var(--line);
}

.program-control-metrics button > i b,
.program-control-project-row > i b {
  display: block;
  height: 100%;
  background: var(--gold);
}

.program-control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  gap: 9px;
  padding: 9px;
  background: color-mix(in srgb, var(--surface) 89%, black 5%);
}

.program-control-portfolio,
.program-control-explanation {
  border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 96%, var(--text) 1%);
}

.program-control-portfolio > header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  padding: 9px 11px;
}

.program-control-portfolio > header > div {
  display: grid;
  gap: 2px;
}

.program-control-portfolio > header span,
.program-control-explanation > span {
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-control-portfolio > header h3,
.program-control-explanation h3 {
  color: var(--text);
  font-size: 0.76rem;
}

.program-control-portfolio > header small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.62rem;
}

.program-control-project-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 44px 72px;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 11%, transparent);
  color: var(--text);
  background: transparent;
  min-height: 46px;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
}

.program-control-project-row:last-child { border-bottom: 0; }

.program-control-project-row:hover,
.program-control-project-row:focus-visible {
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
  outline: none;
}

.program-control-project-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.program-control-project-row strong,
.program-control-project-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-control-project-row strong { font-size: 0.7rem; }
.program-control-project-row small { color: var(--muted); font-size: 0.61rem; }
.program-control-project-row em { color: var(--muted); font-size: 0.65rem; font-style: normal; text-align: right; }
.program-control-project-row.is-warning > i b { background: var(--warning, #c9943c); }
.program-control-project-row.is-good > i b { background: var(--success, #65a991); }

.program-control-explanation {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px 13px;
}

.program-control-explanation p {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.program-control-explanation dl { margin: 5px 0 0; }

.program-control-explanation dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  padding: 7px 0;
  font-size: 0.64rem;
}

.program-control-explanation dt { color: var(--muted); }
.program-control-explanation dd { margin: 0; color: var(--text); font-weight: 850; }

.program-control-source-button {
  justify-self: start;
  margin-top: 4px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 4px;
  padding: 7px 10px;
  color: var(--text);
  background: transparent;
  font-size: 0.64rem;
  font-weight: 760;
  cursor: pointer;
}

.program-control-source-button:hover,
.program-control-source-button:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
  background: color-mix(in srgb, var(--gold) 7%, var(--surface));
  outline: none;
}

html[data-theme="light"] .program-control-cockpit {
  background: #f8fafc;
  border-color: rgba(12, 35, 75, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .program-control-cockpit > header,
html[data-theme="light"] .program-control-metrics,
html[data-theme="light"] .program-control-portfolio,
html[data-theme="light"] .program-control-explanation {
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .program-control-layout {
  background: #edf2f6;
}

.program-control-workflow > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.program-control-workflow > div:last-child > button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.program-control-workflow > div:last-child > button:hover,
.program-control-workflow > div:last-child > button:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 65%, var(--line));
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
  outline: none;
}

.program-control-workflow > div:last-child > button > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.program-control-workflow > div:last-child strong,
.program-control-workflow > div:last-child small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-control-workflow > div:last-child strong { font-size: 0.7rem; }
.program-control-workflow > div:last-child small { color: var(--muted); font-size: 0.61rem; }

.program-control-workflow-pending > div:last-child {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
  border: 1px dashed color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 5px;
  padding: 16px;
  background: color-mix(in srgb, var(--gold) 4%, var(--surface));
}

.program-control-workflow-pending span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-control-workflow-pending h3 {
  color: var(--text);
  font-size: 0.84rem;
}

.program-control-workflow-pending p,
.program-control-workflow-pending small {
  max-width: 780px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.55;
}

html[data-theme="light"] .program-control-workflow-pending > div:last-child {
  border-color: rgba(154, 104, 20, 0.32);
  background: rgba(201, 148, 60, 0.055);
}

@media (max-width: 900px) {
  .program-control-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-control-metrics button { border-bottom: 1px solid var(--line); }
  .program-control-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .program-control-panel { width: calc(100vw - 10px); }
  .program-control-cockpit > header { align-items: flex-start; }
  .program-control-cockpit > header p { margin-left: 0; }
  .program-control-metrics { grid-template-columns: 1fr; }
  .program-control-project-row { grid-template-columns: 24px minmax(0, 1fr) 42px; }
  .program-control-project-row > i { display: none; }
  .program-control-portfolio > header { align-items: flex-start; flex-direction: column; }
  .program-control-portfolio > header small { margin-left: 0; }
  .program-control-workflow > div:last-child { grid-template-columns: 1fr; }
}

.sk-obj-header {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto auto 36px;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.program-card-header:hover {
  background: rgba(255, 255, 255, 0.025);
}

.sk-obj-header:focus-visible {
  outline: 2px solid rgba(201, 148, 60, 0.55);
  outline-offset: -2px;
}

.program-card-open-link {
  justify-self: end;
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.program-card-body {
  padding: 0;
}

.program-card-body .project-card-section {
  padding: 0;
}

.program-card-body .project-card-purpose .project-section-content {
  padding-top: 10px;
}

.program-card-body .pc-progress-fill {
  background: linear-gradient(90deg, var(--gold), rgba(52, 211, 153, 0.88));
}

.program-finance-pairs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sk-obj-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.sk-obj-code {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c9943c);
  white-space: nowrap;
}

.sk-obj-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.sk-obj-pillar-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--pk, rgba(255,255,255,0.15));
  color: var(--pk, rgba(255,255,255,0.5));
  white-space: nowrap;
}

.sk-obj-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sk-obj-owner {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.sk-obj-year {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

.sk-obj-prog-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.sk-obj-pct {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.sk-prog-track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sk-prog-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gold, #c9943c);
  transition: width 0.4s ease;
}

.sk-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s, color 0.15s;
}

.sk-obj-open .sk-chevron {
  transform: rotate(180deg);
  color: var(--gold, #c9943c);
}

.sk-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.sk-expand-btn svg { transition: transform 0.2s; }
.sk-expand-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }

/* Summary row (always visible) */
.sk-obj-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 12px 42px;
  flex-wrap: wrap;
}

.sk-kpi-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sk-kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.sk-kpi-chip.sk-groen { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.25); color: #34d399; }
.sk-kpi-chip.sk-geel { background: rgba(245, 200, 66, 0.12); border-color: rgba(245, 200, 66, 0.25); color: #f5c842; }
.sk-kpi-chip.sk-oranje { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.25); color: #f59e0b; }
.sk-kpi-chip.sk-rood { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.25); color: #f87171; }

.sk-empty-chip { font-size: 0.69rem; color: rgba(255,255,255,0.3); font-style: italic; }

.sk-obj-summary-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Program detail panel */
.prog-detail-summary {
  padding: 16px 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.prog-detail-desc {
  flex: 1;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.prog-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 20px;
  flex-shrink: 0;
}

.prog-detail-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prog-detail-meta span {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
}

.prog-detail-meta strong {
  font-size: 0.82rem;
  font-weight: 760;
  color: rgba(255,255,255,0.82);
}

.prog-fin-strip {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.prog-fin-strip > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.prog-fin-strip > div:last-child { border-right: none; }

.prog-fin-strip span {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
}

.prog-fin-strip strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}

.sk-rood-txt { color: #f87171 !important; }
.sk-groen-txt { color: #34d399 !important; }

.prog-sub-section {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.prog-sub-heading {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prog-sub-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  text-transform: none;
  letter-spacing: 0;
}

.prog-sub-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 8px;
}

.prog-sub-row {
  display: grid;
  grid-template-columns: 9px auto 1fr auto auto auto;
  align-items: center;
  gap: 8px 10px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 0.1s;
}

.prog-sub-row:hover { background: rgba(255,255,255,0.03); }

.prog-object-link {
  color: inherit;
  text-decoration: none;
}

.prog-sub-code {
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold, #c9943c);
  white-space: nowrap;
}

.prog-sub-name {
  font-size: 0.83rem;
  font-weight: 720;
  color: rgba(255,255,255,0.85);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prog-sub-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.prog-sub-prog {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}

.prog-sub-owner {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.prog-sub-chips {
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

@media (max-width: 640px) {
  .prog-detail-summary { flex-direction: column; }
  .prog-fin-strip { flex-wrap: wrap; }
  .prog-fin-strip > div { min-width: 45%; }
  .prog-sub-row { grid-template-columns: 9px auto 1fr; }
  .prog-sub-prog, .prog-sub-owner, .prog-sub-chips { display: none; }
}

.sk-obj-summary-right.prog-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 20px;
  align-items: start;
}

.sk-obj-summary-right.prog-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sk-obj-summary-right.prog-meta-grid span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

.sk-obj-summary-right.prog-meta-grid strong {
  font-size: 0.85rem;
  font-weight: 760;
  color: rgba(255,255,255,0.85);
}

.sk-benefit-chip {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.69rem;
  font-weight: 800;
  background: rgba(201, 148, 60, 0.12);
  border: 1px solid rgba(201, 148, 60, 0.25);
  color: var(--gold, #c9943c);
}

.sk-proj-chip {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.69rem;
  font-weight: 800;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
}

/* Detail panel (expandable) */
.sk-obj-detail {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.sk-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sk-detail-cols:has(.sk-detail-col:nth-child(3)) {
  grid-template-columns: 1fr 1fr 1fr;
}

.sk-detail-col { display: flex; flex-direction: column; gap: 8px; }

.sk-detail-heading {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 4px;
}

/* Program cards inside detail */
.sk-prog-cards { display: flex; flex-direction: column; gap: 8px; }

.sk-prog-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.sk-prog-card:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }

.sk-prog-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sk-prog-card-top strong { font-size: 0.82rem; font-weight: 800; color: #fff; flex: 1; min-width: 0; }
.sk-prog-pct { font-size: 0.72rem; font-weight: 800; color: var(--gold, #c9943c); }
.sk-prog-card small { font-size: 0.68rem; color: rgba(255,255,255,0.4); }

/* KPI detail */
.sk-kpi-detail-list { display: flex; flex-direction: column; gap: 10px; }

.sk-kpi-row { display: flex; flex-direction: column; gap: 4px; }

.sk-kpi-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sk-kpi-label { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.75); flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sk-kpi-dir { font-size: 0.68rem; font-weight: 400; font-style: normal; color: rgba(255,255,255,0.35); }
.sk-kpi-vals { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sk-kpi-trend { font-size: 0.85rem; font-weight: 900; }
.sk-kpi-bar { height: 5px; }
.sk-kpi-baseline { font-size: 0.67rem; color: rgba(255,255,255,0.3); display: block; margin-top: -2px; }
.sk-kpi-freq { font-size: 0.67rem; color: rgba(255,255,255,0.3); margin-top: 2px; }
.sk-kpi-chip em { font-style: normal; opacity: 0.65; font-size: 0.88em; margin-left: 2px; }

/* Benefits detail */
.sk-benefit-list { display: flex; flex-direction: column; gap: 10px; }

.sk-benefit-row { display: flex; flex-direction: column; gap: 4px; }

.sk-benefit-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.sk-benefit-top strong { font-size: 0.78rem; font-weight: 800; color: rgba(255,255,255,0.8); }
.sk-benefit-pct { font-size: 0.70rem; font-weight: 800; color: var(--gold, #c9943c); }
.sk-benefit-row small { font-size: 0.66rem; color: rgba(255,255,255,0.4); }

.sk-benefit-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.sk-benefit-fill-exp {
  position: absolute;
  inset: 0;
  background: rgba(201, 148, 60, 0.2);
}

.sk-benefit-fill-real {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--gold, #c9943c);
  border-radius: 3px;
  transition: width 0.4s;
}

/* Risk list */
.sk-risk-list { display: flex; flex-direction: column; gap: 5px; }

.sk-risk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.74rem;
  transition: background 0.15s;
}

.sk-risk-row:hover { background: rgba(255,255,255,0.06); }

.sk-risk-score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(248,113,113,0.15);
  color: #f87171;
}

.sk-risk-score.s0, .sk-risk-score.s1 { background: rgba(52,211,153,0.15); color: #34d399; }
.sk-risk-score.s2, .sk-risk-score.s3 { background: rgba(245,200,66,0.15); color: #f5c842; }
.sk-risk-score.s4, .sk-risk-score.s5 { background: rgba(248,113,113,0.15); color: #f87171; }
.sk-risk-score.opp { background: rgba(52,211,153,0.15); color: #34d399; }
.sk-opp { border-color: rgba(52,211,153,0.1) !important; }

.sk-empty { font-size: 0.75rem; color: rgba(255,255,255,0.3); font-style: italic; margin: 0; }

/* ── Executive Story ─────────────────────────────────────────── */
.sk-story {
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(201, 148, 60, 0.2);
  background: rgba(201, 148, 60, 0.05);
}

.sk-story-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.sk-story-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #c9943c);
}

.sk-story-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
}

.sk-story-text {
  font-size: 0.90rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ── Relationship Flow ───────────────────────────────────────── */
.sk-flow {
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.sk-flow-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
}

.sk-flow-chain {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sk-flow-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.sk-flow-step-label {
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.sk-flow-step-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
}

.sk-flow-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 1.1rem;
  font-weight: 300;
}

/* ── Light theme overrides ───────────────────────────────────── */
html[data-theme="light"] .sk-strip-chip {
  background: rgba(16, 44, 56, 0.04);
  border-color: rgba(16, 44, 56, 0.12);
}

html[data-theme="light"] .sk-strip-chip span { color: rgba(16, 44, 56, 0.5); }
html[data-theme="light"] .sk-strip-chip strong { color: #102c38; }
html[data-theme="light"] .sk-strip-chip small { color: rgba(16, 44, 56, 0.45); }
html[data-theme="light"] .sk-chip-groen strong { color: #059669; }
html[data-theme="light"] .sk-chip-geel strong { color: #b45309; }
html[data-theme="light"] .sk-chip-rood strong { color: #dc2626; }

html[data-theme="light"] .sk-pillar-all,
html[data-theme="light"] .sk-pillar {
  background: rgba(16, 44, 56, 0.03);
  border-color: rgba(16, 44, 56, 0.1);
}

html[data-theme="light"] .sk-pillar-all strong,
html[data-theme="light"] .sk-pillar-body strong { color: #102c38; }
html[data-theme="light"] .sk-pillar-all small,
html[data-theme="light"] .sk-pillar-body small { color: rgba(16, 44, 56, 0.45); }

html[data-theme="light"] .sk-obj-title { color: #102c38; }
html[data-theme="light"] .sk-obj-owner { color: rgba(16, 44, 56, 0.5); }
html[data-theme="light"] .sk-objective { background: #fff; border-color: rgba(16, 44, 56, 0.1); }
html[data-theme="light"] .sk-objective:hover { border-color: rgba(16, 44, 56, 0.2); }
html[data-theme="light"] .sk-obj-detail { background: rgba(16, 44, 56, 0.03); border-color: rgba(16, 44, 56, 0.08); }
html[data-theme="light"] .program-detail-card {
  background: #fff;
}
html[data-theme="light"] .program-card-header:hover {
  background: rgba(16, 44, 56, 0.025);
}
html[data-theme="light"] .program-card-open-link {
  border-color: rgba(201, 148, 60, 0.38);
  color: #9f6f19;
}
html[data-theme="light"] .prog-sub-section {
  border-top-color: rgba(16, 44, 56, 0.08);
}
html[data-theme="light"] .prog-sub-row:hover,
html[data-theme="light"] .prog-object-link:focus-visible {
  background: rgba(201, 148, 60, 0.08);
}
html[data-theme="light"] .prog-sub-name {
  color: rgba(16, 44, 56, 0.84);
}
html[data-theme="light"] .prog-sub-meta,
html[data-theme="light"] .prog-sub-owner {
  color: rgba(16, 44, 56, 0.48);
}
html[data-theme="light"] .sk-prog-card { background: #f8f9fb; border-color: rgba(16,44,56,0.08); }
html[data-theme="light"] .sk-prog-card-top strong { color: #102c38; }
html[data-theme="light"] .sk-kpi-label { color: rgba(16, 44, 56, 0.75); }
html[data-theme="light"] .sk-kpi-vals { color: rgba(16, 44, 56, 0.55); }
html[data-theme="light"] .sk-kpi-dir { color: rgba(16, 44, 56, 0.35); }
html[data-theme="light"] .sk-kpi-baseline { color: rgba(16, 44, 56, 0.3); }
html[data-theme="light"] .sk-kpi-freq { color: rgba(16, 44, 56, 0.3); }
html[data-theme="light"] .sk-prog-track { background: rgba(16, 44, 56, 0.1); }
html[data-theme="light"] .sk-story { background: rgba(201, 148, 60, 0.06); border-color: rgba(201, 148, 60, 0.25); }
html[data-theme="light"] .sk-story-text { color: rgba(16, 44, 56, 0.8); }
html[data-theme="light"] .sk-filter-select { background-color: #fff; border-color: rgba(16,44,56,0.15); color: #102c38; }
html[data-theme="light"] .sk-flow { background: rgba(16,44,56,0.02); border-color: rgba(16,44,56,0.08); }
html[data-theme="light"] .sk-flow-step { background: rgba(16,44,56,0.04); border-color: rgba(16,44,56,0.08); }
html[data-theme="light"] .sk-flow-step-val { color: rgba(16,44,56,0.7); }

/* ═══════════════════════════════════════════════════════════════
   Canvas page — Strategisch Canvas (Optie C)
   ═══════════════════════════════════════════════════════════════ */

.canvas-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}

/* Mission / Vision bar */
.canvas-mission-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 18px;
}

.canvas-mission-text {
  display: flex;
  gap: 0;
  align-items: stretch;
  min-width: 0;
}

.canvas-mv-block {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.canvas-mv-block:first-child { padding-left: 0; }

.canvas-mv-sep {
  width: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 2px 0;
}

.canvas-mv-label {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.canvas-mv-block p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  margin: 0;
}

.canvas-mission-chips {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-shrink: 0;
}

.canvas-met-chip {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}

.canvas-met-chip span {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.canvas-met-chip strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.canvas-met-chip small {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.35);
}

.canvas-met-chip.sk-chip-groen strong { color: #34d399; }
.canvas-met-chip.sk-chip-geel strong  { color: #f5c842; }
.canvas-met-chip.sk-chip-rood strong  { color: #f87171; }

/* Pillar column grid */
.canvas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: stretch;
}

/* Individual pillar column */
.canvas-col {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  border-top: 3px solid var(--col-color, rgba(255,255,255,0.3));
  transition: box-shadow 0.15s;
}

.canvas-col:hover {
  box-shadow: 0 0 0 1px var(--col-color, rgba(255,255,255,0.1));
}

/* Column header */
.canvas-col-head {
  padding: 12px 14px 10px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.canvas-col-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.canvas-col-title strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.canvas-col-meta {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 8px;
}

.canvas-col-prog {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 4px;
}

.canvas-col-prog-fill {
  height: 3px;
  border-radius: 2px;
  background: var(--col-color, rgba(255,255,255,0.5));
  transition: width 0.4s ease;
}

.canvas-col-pct {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--col-color, rgba(255,255,255,0.5));
}

/* Column body */
.canvas-col-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.canvas-section {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.canvas-section:last-child { border-bottom: none; }

.canvas-sec-label {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 7px;
}

/* Objective chips */
.canvas-obj-chip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: default;
}

.canvas-obj-chip:last-child { border-bottom: none; }

.canvas-obj-chip .sk-health-dot { margin-top: 3px; flex-shrink: 0; }

.canvas-obj-text {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  flex: 1;
}

.canvas-obj-pct {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

/* KPI rows */
.canvas-kpi-row {
  margin-bottom: 8px;
}

.canvas-kpi-row:last-child { margin-bottom: 0; }

.canvas-kpi-top {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 3px;
}

.canvas-kpi-name {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.canvas-kpi-vals {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.canvas-kpi-trend {
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.canvas-kpi-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.canvas-kpi-fill {
  height: 3px;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Project pills */
.canvas-proj-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.canvas-proj-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.6);
  padding: 3px 0;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.12s;
}

.canvas-proj-pill:hover { color: rgba(255,255,255,0.9); }

.canvas-proj-more {
  font-size: 0.69rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* Benefits section */
.canvas-section-ben { background: rgba(255,255,255,0.015); }

.canvas-ben-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 7px;
}

.canvas-ben-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.canvas-ben-row span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.38);
}

.canvas-ben-row strong {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
}

.canvas-ben-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 4px;
}

.canvas-ben-fill {
  height: 3px;
  border-radius: 2px;
  background: var(--col-color, #c9943c);
}

.canvas-ben-pct {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.3);
}

/* Empty state */
.canvas-empty {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

/* Timeline */
.canvas-tl-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.canvas-tl-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.canvas-tl-strip {
  display: flex;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.canvas-tl-step {
  flex: 1;
  padding: 12px 14px;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.canvas-tl-step:last-child { border-right: none; }

.canvas-tl-now {
  background: rgba(201, 148, 60, 0.08);
  border-left: 2px solid #c9943c;
}

.canvas-tl-year {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
}

.canvas-tl-now .canvas-tl-year { color: #c9943c; }

.canvas-tl-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}

.canvas-tl-desc {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.4;
}

/* Light mode overrides */
html[data-theme="light"] .canvas-mission-bar {
  background: #fff;
  border-color: rgba(16,44,56,0.1);
}

html[data-theme="light"] .canvas-mv-label { color: rgba(16,44,56,0.45); }
html[data-theme="light"] .canvas-mv-block p { color: rgba(16,44,56,0.7); }
html[data-theme="light"] .canvas-mv-sep { background: rgba(16,44,56,0.1); }

html[data-theme="light"] .canvas-met-chip {
  background: rgba(16,44,56,0.03);
  border-color: rgba(16,44,56,0.1);
}

html[data-theme="light"] .canvas-met-chip span { color: rgba(16,44,56,0.5); }
html[data-theme="light"] .canvas-met-chip strong { color: #102c38; }
html[data-theme="light"] .canvas-met-chip small { color: rgba(16,44,56,0.45); }
html[data-theme="light"] .canvas-met-chip.sk-chip-groen strong { color: #059669; }
html[data-theme="light"] .canvas-met-chip.sk-chip-geel strong  { color: #b45309; }
html[data-theme="light"] .canvas-met-chip.sk-chip-rood strong  { color: #dc2626; }

html[data-theme="light"] .canvas-col {
  border-color: rgba(16,44,56,0.1);
  border-top-color: var(--col-color);
}

html[data-theme="light"] .canvas-col-head {
  background: rgba(16,44,56,0.02);
  border-bottom-color: rgba(16,44,56,0.08);
}

html[data-theme="light"] .canvas-col-title strong { color: #102c38; }
html[data-theme="light"] .canvas-col-meta { color: rgba(16,44,56,0.42); }
html[data-theme="light"] .canvas-col-prog { background: rgba(16,44,56,0.08); }
html[data-theme="light"] .canvas-col-pct { color: var(--col-color); }

html[data-theme="light"] .canvas-section { border-bottom-color: rgba(16,44,56,0.06); }
html[data-theme="light"] .canvas-sec-label { color: rgba(16,44,56,0.35); }

html[data-theme="light"] .canvas-obj-chip { border-bottom-color: rgba(16,44,56,0.06); }
html[data-theme="light"] .canvas-obj-text { color: rgba(16,44,56,0.8); }
html[data-theme="light"] .canvas-obj-pct { color: rgba(16,44,56,0.45); }

html[data-theme="light"] .canvas-kpi-name { color: rgba(16,44,56,0.72); }
html[data-theme="light"] .canvas-kpi-vals { color: rgba(16,44,56,0.42); }
html[data-theme="light"] .canvas-kpi-track { background: rgba(16,44,56,0.08); }

html[data-theme="light"] .canvas-proj-pill { color: rgba(16,44,56,0.65); }
html[data-theme="light"] .canvas-proj-pill:hover { color: #102c38; }
html[data-theme="light"] .canvas-proj-more { color: rgba(16,44,56,0.35); }

html[data-theme="light"] .canvas-section-ben { background: rgba(16,44,56,0.015); }
html[data-theme="light"] .canvas-ben-row span { color: rgba(16,44,56,0.42); }
html[data-theme="light"] .canvas-ben-row strong { color: rgba(16,44,56,0.8); }
html[data-theme="light"] .canvas-ben-track { background: rgba(16,44,56,0.08); }
html[data-theme="light"] .canvas-ben-pct { color: rgba(16,44,56,0.35); }
html[data-theme="light"] .canvas-empty { color: rgba(16,44,56,0.28); }

html[data-theme="light"] .canvas-tl-label { color: rgba(16,44,56,0.35); }
html[data-theme="light"] .canvas-tl-strip { border-color: rgba(16,44,56,0.1); background: #fff; }
html[data-theme="light"] .canvas-tl-step { border-right-color: rgba(16,44,56,0.08); }
html[data-theme="light"] .canvas-tl-now { background: rgba(201,148,60,0.06); border-left-color: #c9943c; }
html[data-theme="light"] .canvas-tl-year { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .canvas-tl-now .canvas-tl-year { color: #a07428; }
html[data-theme="light"] .canvas-tl-title { color: rgba(16,44,56,0.75); }
html[data-theme="light"] .canvas-tl-desc { color: rgba(16,44,56,0.38); }

/* Responsive canvas */
@media (max-width: 900px) {
  .canvas-mission-chips { flex-wrap: wrap; }
  .canvas-met-chip { flex: 1; min-width: 110px; }
  .canvas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .canvas-grid { grid-template-columns: 1fr; }
  .canvas-mission-text { flex-direction: column; }
  .canvas-mv-sep { width: auto; height: 1px; margin: 10px 0; }
  .canvas-tl-strip { flex-direction: column; }
  .canvas-tl-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .canvas-tl-step:last-child { border-bottom: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sk-strip { grid-template-columns: repeat(3, 1fr); }
  .sk-detail-cols { grid-template-columns: 1fr; }
  .sk-detail-cols:has(.sk-detail-col:nth-child(3)) { grid-template-columns: 1fr; }
  .sk-obj-header { grid-template-columns: 14px 1fr 36px; }
  .sk-obj-stats, .sk-obj-prog-wrap { display: none; }
}

@media (max-width: 560px) {
  .sk-strip { grid-template-columns: repeat(2, 1fr); }
  .sk-obj-title { font-size: 0.85rem; }
  /* Hide pillar tag & wrap in tight rows */
  .sk-obj-title-wrap { flex-wrap: nowrap; align-items: center; gap: 6px; }
  .sk-obj-pillar-tag { display: none; }
  /* Stack detail summary */
  .prog-detail-summary { flex-direction: column; gap: 14px; }
  .prog-detail-meta { grid-template-columns: repeat(2, 1fr); }
  /* Finance strip wraps */
  .prog-fin-strip { flex-wrap: wrap; }
  .prog-fin-strip > div { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  /* Sub rows: hide progress and owner, show only dot/code/name */
  .prog-sub-row { grid-template-columns: 9px auto 1fr; gap: 6px 8px; }
  .prog-sub-prog, .prog-sub-owner, .prog-sub-chips, .prog-sub-meta { display: none; }
}

/* ── SK List Sections (Doelstellingen + KPI's) ────────────────────────────── */
.strategy-register-stack {
  display: grid;
  gap: 8px;
}

.strategy-register-module {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-register-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.strategy-register-toggle:hover {
  background: rgba(201, 148, 60, 0.055);
}

.strategy-register-toggle > span:first-child {
  display: grid;
  gap: 2px;
}

.strategy-register-toggle small {
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-register-toggle strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.strategy-register-summary {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
}

.strategy-register-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.42);
  border-bottom: 2px solid rgba(255, 255, 255, 0.42);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.strategy-register-module.is-open .strategy-register-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.strategy-register-shell {
  padding: 0 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.strategy-register-description {
  margin: 0;
  padding: 9px 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  line-height: 1.45;
}

.strategy-register-shell .kreg-wrap {
  border-radius: 6px;
}

html[data-theme="light"] .strategy-register-module {
  border-color: rgba(16, 40, 51, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme="light"] .strategy-register-toggle:hover {
  background: rgba(201, 148, 60, 0.08);
}

html[data-theme="light"] .strategy-register-toggle strong {
  color: #102833;
}

html[data-theme="light"] .strategy-register-summary,
html[data-theme="light"] .strategy-register-description {
  color: rgba(16, 40, 51, 0.52);
}

html[data-theme="light"] .strategy-register-chevron {
  border-color: rgba(16, 40, 51, 0.46);
}

html[data-theme="light"] .strategy-register-shell {
  border-top-color: rgba(16, 40, 51, 0.09);
}

@media (max-width: 640px) {
  .strategy-register-toggle {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .strategy-register-summary {
    display: none;
  }
}

.sk-list-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.sk-list-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
  cursor: pointer;
  user-select: none;
}

.sk-list-head:hover {
  background: rgba(201,148,60,0.07);
}

.sk-list-section.is-collapsed .sk-list-head {
  border-bottom: none;
}

.sk-list-section.is-collapsed .sk-list-filters,
.sk-list-section.is-collapsed .sk-list-add-btn {
  display: none;
}

.sk-list-section.is-collapsed .sk-list-body {
  display: none;
}

.sk-list-collapse-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.15s;
}

.sk-list-collapse-btn::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg) translateY(2px);
  transition: transform 0.2s ease;
}

.sk-list-collapse-btn:hover { color: var(--gold); }

.sk-list-section.is-collapsed .sk-list-collapse-btn::after {
  transform: rotate(45deg) translateY(-2px);
}

.sk-list-preview {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.sk-list-section.is-collapsed .sk-list-preview {
  display: flex;
}

.sk-list-preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sk-list-heading {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.sk-list-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
}

.sk-list-attention {
  color: #f5c842;
}

.sk-list-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: auto;
}

.sk-list-add-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #2f80ed;
  background: rgba(47,128,237,0.1);
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
}

.sk-list-add-btn:hover { background: rgba(47,128,237,0.18); }

.sk-list-filter-chip {
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.sk-list-filter-chip:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.sk-list-filter-chip.is-active { background: rgba(47,128,237,0.15); color: #2f80ed; border-color: rgba(47,128,237,0.3); }

.sk-list-tag {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--tag-color, rgba(255,255,255,0.15));
  color: var(--tag-color, rgba(255,255,255,0.45));
  flex-shrink: 0;
  opacity: 0.8;
}

.sk-list-row {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sk-list-row:last-child { border-bottom: none; }

.sk-list-row--highlighted {
  animation: sk-row-highlight 2s ease-out forwards;
}
@keyframes sk-row-highlight {
  0%   { background: rgba(201,148,60,0.18); }
  100% { background: transparent; }
}

.sk-list-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  cursor: pointer;
}

.sk-list-row-main:hover { background: rgba(255,255,255,0.025); }

.sk-list-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sk-list-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.sk-list-meta-year { display: none; }
@media (min-width: 700px) { .sk-list-meta-year { display: inline; } }

.sk-list-pct {
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 32px;
  text-align: right;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.sk-list-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.28);
  font-size: 0.875rem;
  padding: 2px 4px;
  flex-shrink: 0;
  border-radius: 4px;
}

.sk-list-icon-btn:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.sk-list-edit-inline { opacity: 0; transition: opacity 0.12s; }
.sk-list-row-main:hover .sk-list-edit-inline { opacity: 1; }

.sk-list-expand-btn i { transition: transform 0.18s; }

.sk-list-expanded {
  padding: 10px 16px 14px 32px;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sk-list-exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.sk-list-exp-field {}
.sk-list-exp-label { font-size: 0.68rem; color: rgba(255,255,255,0.32); margin-bottom: 2px; }
.sk-list-exp-val { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.78); }

.sk-list-exp-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 10px;
  line-height: 1.5;
}

.sk-list-edit-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.sk-list-edit-btn {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.sk-list-edit-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }

.sk-list-edit-primary {
  background: rgba(47,128,237,0.12);
  color: #2f80ed;
  border-color: rgba(47,128,237,0.25);
}

.sk-list-edit-primary:hover { background: rgba(47,128,237,0.22); }

/* KPI-specific row elements */
.sk-list-kpi-vals {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.sk-list-kpi-cur { font-weight: 500; }
.sk-list-kpi-cur.sk-groen-txt { color: #34d399; }
.sk-list-kpi-cur.sk-geel-txt  { color: #f5c842; }
.sk-list-kpi-cur.sk-oranje-txt { color: #f59e0b; }
.sk-list-kpi-cur.sk-rood-txt  { color: #f87171; }

.sk-list-kpi-sep { color: rgba(255,255,255,0.25); }
.sk-list-kpi-tgt { color: rgba(255,255,255,0.35); }

.sk-list-kpi-track {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  overflow: hidden;
}

.sk-list-kpi-fill {
  height: 100%;
  border-radius: 2px;
}

.sk-list-kpi-fill.sk-groen { background: #34d399; }
.sk-list-kpi-fill.sk-geel  { background: #f5c842; }
.sk-list-kpi-fill.sk-oranje { background: #f59e0b; }
.sk-list-kpi-fill.sk-rood  { background: #f87171; }

.sk-list-trend-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.sk-list-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.sk-list-tbar {
  width: 10px;
  border-radius: 2px 2px 0 0;
  background: rgba(47,128,237,0.35);
  min-height: 4px;
}

.sk-list-tbar-now { background: #2f80ed; }

/* Light theme overrides */
html[data-theme="light"] .sk-list-head:hover { background: rgba(201,148,60,0.06); }
html[data-theme="light"] .sk-list-collapse-btn { color: rgba(16,44,56,0.3); }
html[data-theme="light"] .sk-list-collapse-btn:hover { color: rgba(16,44,56,0.7); }

html[data-theme="light"] .sk-list-section {
  background: #fff;
  border-color: rgba(16,44,56,0.1);
}

html[data-theme="light"] .sk-list-head {
  background: rgba(16,44,56,0.02);
  border-bottom-color: rgba(16,44,56,0.07);
}

html[data-theme="light"] .sk-list-heading { color: #102c38; }
html[data-theme="light"] .sk-list-count { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .sk-list-filter-chip { background: rgba(16,44,56,0.03); border-color: rgba(16,44,56,0.1); color: rgba(16,44,56,0.45); }
html[data-theme="light"] .sk-list-filter-chip:hover { background: rgba(16,44,56,0.07); color: rgba(16,44,56,0.7); }
html[data-theme="light"] .sk-list-filter-chip.is-active { background: rgba(47,128,237,0.08); color: #185fa5; border-color: rgba(47,128,237,0.25); }
html[data-theme="light"] .sk-list-row { border-bottom-color: rgba(16,44,56,0.06); }
html[data-theme="light"] .sk-list-row-main:hover { background: rgba(16,44,56,0.02); }
html[data-theme="light"] .sk-list-title { color: rgba(16,44,56,0.82); }
html[data-theme="light"] .sk-list-meta { color: rgba(16,44,56,0.4); }
html[data-theme="light"] .sk-list-pct { color: rgba(16,44,56,0.5); }
html[data-theme="light"] .sk-list-icon-btn { color: rgba(16,44,56,0.3); }
html[data-theme="light"] .sk-list-icon-btn:hover { background: rgba(16,44,56,0.06); color: rgba(16,44,56,0.7); }
html[data-theme="light"] .sk-list-expanded { background: rgba(16,44,56,0.02); border-top-color: rgba(16,44,56,0.06); }
html[data-theme="light"] .sk-list-exp-label { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .sk-list-exp-val { color: rgba(16,44,56,0.78); }
html[data-theme="light"] .sk-list-exp-desc { color: rgba(16,44,56,0.45); }
html[data-theme="light"] .sk-list-edit-btn { background: rgba(16,44,56,0.04); border-color: rgba(16,44,56,0.1); color: rgba(16,44,56,0.65); }
html[data-theme="light"] .sk-list-edit-btn:hover { background: rgba(16,44,56,0.08); color: rgba(16,44,56,0.85); }
html[data-theme="light"] .sk-list-edit-primary { background: rgba(47,128,237,0.08); color: #185fa5; border-color: rgba(47,128,237,0.2); }
html[data-theme="light"] .sk-list-kpi-track { background: rgba(16,44,56,0.08); }
html[data-theme="light"] .sk-list-kpi-sep { color: rgba(16,44,56,0.25); }
html[data-theme="light"] .sk-list-kpi-tgt { color: rgba(16,44,56,0.4); }
html[data-theme="light"] .sk-list-kpi-cur.sk-groen-txt { color: #059669; }
html[data-theme="light"] .sk-list-kpi-cur.sk-geel-txt  { color: #b45309; }
html[data-theme="light"] .sk-list-kpi-cur.sk-rood-txt  { color: #dc2626; }
html[data-theme="light"] .sk-list-tbar { background: rgba(47,128,237,0.2); }
html[data-theme="light"] .sk-list-tbar-now { background: #378add; }
html[data-theme="light"] .sk-list-tag { opacity: 1; }
html[data-theme="light"] .sk-list-add-btn { background: rgba(47,128,237,0.08); }
html[data-theme="light"] .sk-list-add-btn:hover { background: rgba(47,128,237,0.14); }

/* ── Strategie-boom ───────────────────────────────────────────────────────── */
.sk-tree {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Wortel-blok: missie + visie + metrics */
.sk-tree-root {
  background: rgba(201,148,60,0.07);
  border: 1px solid rgba(201,148,60,0.28);
  border-radius: 10px;
  padding: 16px 20px;
}

.sk-tree-mv-row {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
}

.sk-tree-mv-block {
  flex: 1;
  padding: 0 16px;
}

.sk-tree-mv-block:first-child { padding-left: 0; }
.sk-tree-mv-block:last-child  { padding-right: 0; }

.sk-tree-mv-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sk-tree-mv-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
  margin: 0;
}

.sk-tree-mv-sep {
  width: 1px;
  background: rgba(255,255,255,0.08);
  align-self: stretch;
  flex-shrink: 0;
}

/* Metric chips (gelijkaardige stijl als canvas-met-chip, nu in boom-context) */
.sk-tree-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

.sk-tree-chip {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  flex: 1;
  min-width: 110px;
}
.sk-tree-chip-link {
  text-decoration: none;
  color: inherit;
  border-color: rgba(201, 148, 60, 0.3);
  background: rgba(201, 148, 60, 0.07);
  transition: background 0.15s;
}
.sk-tree-chip-link:hover { background: rgba(201, 148, 60, 0.16); }
.sk-tree-chip-link strong { color: #e6b458; }

/* GOV-STRAT-03 (J5): besluit/acceptatie-paneel per doelstelling */
.sk-decision {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.07);
}
.sk-decision-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}
.sk-decision-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.sk-decision-badge.is-diverge { background: rgba(139, 92, 246, 0.2); color: #b79df5; }
.sk-decision-badge.is-behind { background: rgba(180, 60, 60, 0.15); color: #e06060; }
.sk-decision-badge.is-novalue { background: rgba(201, 148, 60, 0.18); color: #e6b458; }
.sk-decision-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-decision-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.sk-decision-btn.is-primary { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
.sk-decision-btn.is-primary:hover { background: #7c4ef0; }
.sk-decision-btn:disabled { opacity: 0.5; cursor: default; }
.sk-decision-form { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.sk-decision-form label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255, 255, 255, 0.45); }
.sk-decision-input, .sk-decision-textarea {
  font: inherit;
  font-size: 12.5px;
  color: #e8eef4;
  background: #0a1721;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 6px;
}
.sk-decision-error { font-size: 12px; color: #e06060; margin: 2px 0 0; }
.sk-decision-done { font-size: 12.5px; color: #7fd4a6; margin: 0; }
html[data-theme="light"] .sk-decision { background: rgba(139, 92, 246, 0.06); }
html[data-theme="light"] .sk-decision-head { color: rgba(16, 44, 56, 0.8); }
html[data-theme="light"] .sk-decision-input, html[data-theme="light"] .sk-decision-textarea { color: #1a2a38; background: #fff; }

.sk-tree-chip span  { font-size: 0.68rem; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing:.04em; }
.sk-tree-chip strong { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.82); }
.sk-tree-chip small  { font-size: 0.68rem; color: rgba(255,255,255,0.32); }

.sk-tree-chip.sk-chip-groen strong { color: #34d399; }
.sk-tree-chip.sk-chip-geel strong  { color: #f5c842; }
.sk-tree-chip.sk-chip-rood strong  { color: #f87171; }

/* Stam: dun gouden lijntje omlaag vanuit wortel */
.sk-tree-stem-v {
  width: 2px;
  height: 22px;
  background: rgba(201,148,60,0.35);
  align-self: center;
  flex-shrink: 0;
}

/* Horizontale wortelkabel + gekleurde tak-drops */
.sk-tree-hbar-row {
  position: relative;
  height: 22px;
  flex-shrink: 0;
}

.sk-tree-hbar {
  position: absolute;
  top: 0;
  /* span from center of first branch to center of last branch */
  left: calc(100% / (2 * var(--n)));
  right: calc(100% / (2 * var(--n)));
  height: 1.5px;
  background: rgba(255,255,255,0.1);
}

.sk-tree-hbar-drops {
  display: flex;
  height: 100%;
  gap: 8px;
}

.sk-tree-hbar-drop {
  flex: 1;
  position: relative;
}

.sk-tree-hbar-drop::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--pcolor);
  opacity: 0.55;
}

/* Pijler-takken rij */
.sk-tree-branches {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sk-tree-branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

/* Pijler-knoop */
.sk-tree-pillar-node {
  border: 1px solid var(--pcolor);
  border-top: 3px solid var(--pcolor);
  border-radius: 7px;
  padding: 10px 10px 8px;
  background: rgba(255,255,255,0.02);
}

.sk-tree-pillar-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.sk-tree-pillar-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-tree-pillar-pct {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--pcolor);
  flex-shrink: 0;
}

.sk-tree-pillar-prog {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 6px;
  overflow: hidden;
}

.sk-tree-pillar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--pcolor);
  opacity: 0.7;
}

.sk-tree-pillar-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
}

/* Gestippelde lijn van pijler naar doelstellingen */
.sk-tree-obj-stem {
  width: 1.5px;
  height: 14px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.18) 0,
    rgba(255,255,255,0.18) 3px,
    transparent 3px,
    transparent 6px
  );
  align-self: center;
  flex-shrink: 0;
}

/* Doelstelling-chips per pijler */
.sk-tree-obj-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sk-tree-obj-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: default;
}

.sk-tree-obj-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-tree-obj-pct {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.32);
  flex-shrink: 0;
}

/* Light theme */
html[data-theme="light"] .sk-tree-root {
  background: rgba(201,148,60,0.05);
  border-color: rgba(201,148,60,0.35);
}
html[data-theme="light"] .sk-tree-mv-label { color: rgba(16,44,56,0.42); }
html[data-theme="light"] .sk-tree-mv-text  { color: rgba(16,44,56,0.72); }
html[data-theme="light"] .sk-tree-mv-sep   { background: rgba(16,44,56,0.08); }
html[data-theme="light"] .sk-tree-metrics  { border-top-color: rgba(16,44,56,0.07); }
html[data-theme="light"] .sk-tree-chip     { background: rgba(16,44,56,0.03); border-color: rgba(16,44,56,0.1); }
html[data-theme="light"] .sk-tree-chip span   { color: rgba(16,44,56,0.4); }
html[data-theme="light"] .sk-tree-chip strong { color: #102c38; }
html[data-theme="light"] .sk-tree-chip small  { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .sk-tree-chip.sk-chip-groen strong { color: #059669; }
html[data-theme="light"] .sk-tree-chip.sk-chip-geel strong  { color: #b45309; }
html[data-theme="light"] .sk-tree-chip.sk-chip-rood strong  { color: #dc2626; }
html[data-theme="light"] .sk-tree-hbar     { background: rgba(16,44,56,0.1); }
html[data-theme="light"] .sk-tree-pillar-node { background: rgba(16,44,56,0.01); }
html[data-theme="light"] .sk-tree-pillar-name { color: rgba(16,44,56,0.82); }
html[data-theme="light"] .sk-tree-pillar-prog { background: rgba(16,44,56,0.08); }
html[data-theme="light"] .sk-tree-pillar-sub  { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .sk-tree-obj-chip    { background: rgba(16,44,56,0.02); border-color: rgba(16,44,56,0.08); }
html[data-theme="light"] .sk-tree-obj-text    { color: rgba(16,44,56,0.6); }
html[data-theme="light"] .sk-tree-obj-pct     { color: rgba(16,44,56,0.35); }
html[data-theme="light"] .sk-tree-obj-stem    { background: repeating-linear-gradient(to bottom, rgba(16,44,56,0.15) 0, rgba(16,44,56,0.15) 3px, transparent 3px, transparent 6px); }

/* Responsive */
@media (max-width: 900px) {
  .sk-tree-mv-row { flex-direction: column; gap: 12px; }
  .sk-tree-mv-sep { width: auto; height: 1px; }
  .sk-tree-mv-block { padding: 0; }
  .sk-tree-branches { flex-wrap: wrap; }
  .sk-tree-branch { flex: 0 0 calc(50% - 4px); }
  .sk-tree-hbar-drops { flex-wrap: wrap; }
  .sk-tree-hbar-drop { flex: 0 0 calc(50% - 4px); }
  .sk-tree-hbar { display: none; }
  .sk-tree-hbar-drop::after { display: none; }
  .sk-tree-stem-v { display: none; }
}

@media (max-width: 560px) {
  .sk-tree-branch { flex: 0 0 100%; }
  .sk-tree-metrics { flex-direction: column; }
}

/* ── Universeel Registermodule (kreg) ───────────────────────────────────────── */
.kreg-wrap { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: #0e1e27; margin: 0 0 1.5rem; }
.kreg-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); flex-wrap: wrap; }
.kreg-header-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kreg-header-title { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.kreg-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: rgba(201,148,60,0.15); color: var(--gold, #c9943c); }
.kreg-add-btn { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(201,148,60,0.35); color: var(--gold, #c9943c); background: rgba(201,148,60,0.08); cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.kreg-add-btn:hover { background: rgba(201,148,60,0.16); border-color: rgba(201,148,60,0.6); }
.kreg-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.kreg-filter { font-size: 10px; padding: 3px 9px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.45); background: transparent; cursor: pointer; white-space: nowrap; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.kreg-filter:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.kreg-filter.is-active { border-color: rgba(201,148,60,0.5); color: var(--gold, #c9943c); background: rgba(201,148,60,0.08); }
.kreg-search { font-size: 11px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); width: 110px; }
.kreg-search::placeholder { color: rgba(255,255,255,0.25); }
.kreg-col-head { display: grid; gap: 8px; padding: 5px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.kreg-rows { display: flex; flex-direction: column; max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
.kreg-empty { padding: 24px 16px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); }
.kreg-row { display: grid; gap: 8px; align-items: center; padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; min-height: 38px; transition: background 0.12s; }
.kreg-row:last-child { border-bottom: none; }
.kreg-row:hover { background: rgba(255,255,255,0.03); }
.kreg-item { display: flex; align-items: baseline; gap: 0; min-width: 0; overflow: hidden; }
.kreg-id { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.3); letter-spacing: 0.07em; flex-shrink: 0; margin-right: 7px; }
.kreg-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.kreg-sep { font-size: 10px; color: rgba(255,255,255,0.2); margin: 0 6px; flex-shrink: 0; }
.kreg-meta { font-size: 10px; color: rgba(255,255,255,0.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 2; }
.kreg-mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kreg-mid-bar { height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,0.07); width: 100%; }
.kreg-mid-fill { height: 100%; border-radius: 2px; }
.kreg-mid-fill.is-ok   { background: #7aa05d; }
.kreg-mid-fill.is-warn { background: #e5a250; }
.kreg-mid-fill.is-err  { background: #c0574a; }
.kreg-mid-val { display: flex; align-items: baseline; gap: 3px; }
.kreg-mid-num { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.82); }
.kreg-mid-sub { font-size: 9px; color: rgba(255,255,255,0.3); }
.kreg-mid-arr { font-size: 10px; color: rgba(255,255,255,0.25); margin: 0 3px; }
.kreg-pill { font-size: 9px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; display: inline-block; font-weight: 500; }
.kreg-pill.is-ok   { background: rgba(122,160,93,0.15);  color: #8dbf6a; }
.kreg-pill.is-warn { background: rgba(229,162,80,0.15);  color: #e5a250; }
.kreg-pill.is-err  { background: rgba(192,87,74,0.15);   color: #d4695c; }
.kreg-pill.is-neu  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.kreg-pill.is-info { background: rgba(201,148,60,0.12);  color: var(--gold, #c9943c); }
.kreg-owner { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); font-size: 8px; font-weight: 600; align-items: center; justify-content: center; flex-shrink: 0; }
.kreg-due { font-size: 10px; color: rgba(255,255,255,0.3); text-align: right; white-space: nowrap; }
.kreg-due.is-past { color: #d4695c; }

/* Light theme */
html[data-theme="light"] .kreg-wrap { border-color: rgba(16,44,56,0.1); background: #f8f6f2; }
html[data-theme="light"] .kreg-header { border-bottom-color: rgba(16,44,56,0.08); background: rgba(255,255,255,0.82); }
html[data-theme="light"] .kreg-header-title { color: rgba(16,44,56,0.45); }
html[data-theme="light"] .kreg-col-head { border-bottom-color: rgba(16,44,56,0.08); background: rgba(16,44,56,0.03); color: rgba(16,44,56,0.35); }
html[data-theme="light"] .kreg-filter { border-color: rgba(16,44,56,0.12); color: rgba(16,44,56,0.5); }
html[data-theme="light"] .kreg-filter:hover { border-color: rgba(16,44,56,0.25); color: rgba(16,44,56,0.75); }
html[data-theme="light"] .kreg-filter.is-active { border-color: rgba(154,91,8,0.4); color: #9a5b08; background: rgba(154,91,8,0.07); }
html[data-theme="light"] .kreg-badge { background: rgba(154,91,8,0.1); color: #9a5b08; }
html[data-theme="light"] .kreg-search { border-color: rgba(16,44,56,0.12); background: rgba(255,255,255,0.9); color: rgba(16,44,56,0.85); }
html[data-theme="light"] .kreg-row { border-bottom-color: rgba(16,44,56,0.06); }
html[data-theme="light"] .kreg-row:hover { background: rgba(16,44,56,0.03); }
html[data-theme="light"] .kreg-id { color: rgba(16,44,56,0.3); }
html[data-theme="light"] .kreg-name { color: rgba(16,44,56,0.88); }
html[data-theme="light"] .kreg-sep { color: rgba(16,44,56,0.18); }
html[data-theme="light"] .kreg-meta { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .kreg-mid-bar { background: rgba(16,44,56,0.08); }
html[data-theme="light"] .kreg-mid-num { color: rgba(16,44,56,0.85); }
html[data-theme="light"] .kreg-mid-sub { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .kreg-mid-arr { color: rgba(16,44,56,0.25); }
html[data-theme="light"] .kreg-owner { background: rgba(16,44,56,0.08); color: rgba(16,44,56,0.55); }
html[data-theme="light"] .kreg-due { color: rgba(16,44,56,0.35); }
html[data-theme="light"] .kreg-pill.is-neu { background: rgba(16,44,56,0.06); color: rgba(16,44,56,0.45); }
html[data-theme="light"] .kreg-empty { color: rgba(16,44,56,0.3); }

/* Inline uitklap */
.kreg-row--open { background: rgba(201,148,60,0.06); }
.kreg-expanded { background: rgba(255,255,255,0.015); border-bottom: 1px solid rgba(255,255,255,0.06); animation: kreg-expand 0.15s ease; }
@keyframes kreg-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.kreg-exp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid rgba(201,148,60,0.12); }
.kreg-exp-col { padding: 10px 16px; border-right: 1px solid rgba(255,255,255,0.05); }
.kreg-exp-col:last-child { border-right: none; }
.kreg-exp-col-head { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 7px; }
.kreg-exp-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.kreg-exp-label { font-size: 10px; color: rgba(255,255,255,0.32); flex-shrink: 0; }
.kreg-exp-val { font-size: 10px; color: rgba(255,255,255,0.72); font-weight: 500; text-align: right; }
.kreg-exp-object-link { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: rgba(201,148,60,0.82); text-decoration: none; }
.kreg-exp-object-link:hover { color: #c9943c; text-decoration: underline; text-underline-offset: 2px; }
.kreg-exp-object-list { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.kreg-exp-fact--records { align-items: flex-start; }
.kreg-exp-fact--records .kreg-exp-label b { color: var(--gold, #c9943c); font-size: 0.9em; }
.kreg-exp-fact--records .kreg-exp-object-list { flex-direction: column; align-items: flex-end; flex-wrap: nowrap; max-width: 72%; }
.kreg-exp-fact--records .kreg-exp-object-link { line-height: 1.35; text-align: right; }
.kreg-exp-text { font-size: 10px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.kreg-exp-desc { margin-top: 6px; color: rgba(255,255,255,0.4); font-style: italic; }
.kreg-exp-footer { padding: 7px 16px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.01); }
.kreg-exp-link { font-size: 10px; color: rgba(201,148,60,0.75); text-decoration: none; margin-left: auto; }
.kreg-exp-link:hover { color: #c9943c; }
.kreg-exp-updated { font-size: 9px; color: rgba(255,255,255,0.25); }
html[data-theme="light"] .kreg-exp-updated { color: rgba(16,44,56,0.35); }
.record-editor-meta { font-size: 10px; color: rgba(255,255,255,0.3); margin: 0 0 6px; }
html[data-theme="light"] .record-editor-meta { color: rgba(16,44,56,0.4); }
.detail-modal-updated { font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 8px; }
html[data-theme="light"] .detail-modal-updated { color: rgba(16,44,56,0.35); }
.kreg-exp-edit { font-size: 10px; color: rgba(255,255,255,0.3); background: none; border: none; cursor: pointer; padding: 0; letter-spacing: 0.01em; transition: color 0.15s; }
.kreg-exp-edit:hover { color: rgba(255,255,255,0.7); }
.kreg-exp-delete { margin-left: auto; border: 0; background: none; color: rgba(223,106,106,.62); padding: 0; font-size: 10px; cursor: pointer; }
.kreg-exp-delete:hover { color: #df6a6a; }
.kreg-exp-delete:disabled { opacity: .45; cursor: wait; }
.kreg-exp-measure {
  border: 1px solid rgba(232, 154, 36, 0.34);
  border-radius: 4px;
  background: rgba(232, 154, 36, 0.08);
  color: #f0b04d;
  padding: 5px 9px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.kreg-exp-measure:hover { background: rgba(232, 154, 36, 0.15); border-color: rgba(232, 154, 36, 0.55); }
.kpi-workflow-feedback {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(232, 154, 36, 0.35);
  border-radius: 4px;
  background: #102c38;
  color: #f8fafc;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.kpi-workflow-feedback.is-visible { opacity: 1; transform: translateY(0); }
.kpi-evidence-explanation {
  margin: -3px 0 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.45;
}

html[data-theme="light"] .kreg-row--open { background: rgba(154,91,8,0.05); }
html[data-theme="light"] .kreg-expanded { background: rgba(16,44,56,0.02); border-bottom-color: rgba(16,44,56,0.07); }
html[data-theme="light"] .kreg-exp-cols { border-top-color: rgba(154,91,8,0.15); }
html[data-theme="light"] .kreg-exp-col { border-right-color: rgba(16,44,56,0.06); }
html[data-theme="light"] .kreg-exp-col-head { color: rgba(16,44,56,0.28); }
html[data-theme="light"] .kreg-exp-label { color: rgba(16,44,56,0.38); }
html[data-theme="light"] .kreg-exp-val { color: rgba(16,44,56,0.78); }
html[data-theme="light"] .kreg-exp-object-link { color: rgba(154,91,8,0.86); }
html[data-theme="light"] .kreg-exp-object-link:hover { color: #9a5b08; }
html[data-theme="light"] .kreg-exp-text { color: rgba(16,44,56,0.62); }
html[data-theme="light"] .kreg-exp-desc { color: rgba(16,44,56,0.42); }
html[data-theme="light"] .kreg-exp-footer { border-top-color: rgba(16,44,56,0.06); background: rgba(16,44,56,0.01); }
html[data-theme="light"] .kreg-exp-link { color: rgba(154,91,8,0.8); }
html[data-theme="light"] .kreg-exp-link:hover { color: #9a5b08; }
html[data-theme="light"] .kreg-exp-edit { color: rgba(16,44,56,0.3); }
html[data-theme="light"] .kreg-exp-edit:hover { color: rgba(16,44,56,0.75); }
html[data-theme="light"] .kreg-exp-delete { color: #a84b4b; }
html[data-theme="light"] .kreg-exp-measure { background: rgba(196, 119, 18, 0.07); border-color: rgba(196, 119, 18, 0.3); color: #9a5b0d; }
html[data-theme="light"] .kreg-exp-measure:hover { background: rgba(196, 119, 18, 0.13); border-color: rgba(196, 119, 18, 0.48); }
html[data-theme="light"] .kpi-workflow-feedback { background: #fff; color: #102c38; border-color: rgba(196, 119, 18, 0.32); }
html[data-theme="light"] .kpi-evidence-explanation { color: rgba(16, 44, 56, 0.66); }
.kpi-contribution-realization-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1500;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(2, 12, 18, 0.82);
}
.kpi-contribution-realization-modal:not([open]) { display: none; }
.kpi-contribution-realization-modal::backdrop { background: rgba(2, 12, 18, 0.72); backdrop-filter: blur(6px); }
.record-create-kind-panel { width: min(720px, calc(100vw - 24px)); }
.record-create-kind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 18px;
  background: rgba(255, 255, 255, .07);
}
.record-create-kind-grid button {
  display: grid;
  gap: 7px;
  min-height: 150px;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: #172832;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}
.record-create-kind-grid button:hover,
.record-create-kind-grid button:focus-visible { background: #1d323e; outline: 2px solid rgba(232, 154, 36, .7); outline-offset: -2px; }
.record-create-kind-grid span { color: #e99a24; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.record-create-kind-grid strong { font-size: 18px; }
.record-create-kind-grid small { color: rgba(255, 255, 255, .58); font-size: 12px; line-height: 1.5; }
html[data-theme="light"] .record-create-kind-grid { background: rgba(16, 44, 56, .10); }
html[data-theme="light"] .record-create-kind-grid button { background: #fff; color: #102c38; }
html[data-theme="light"] .record-create-kind-grid button:hover,
html[data-theme="light"] .record-create-kind-grid button:focus-visible { background: #f4f8f9; }
html[data-theme="light"] .record-create-kind-grid small { color: rgba(16, 44, 56, .62); }
.kpi-contribution-workflow-notice {
  position: fixed;
  z-index: 1300;
  right: 18px;
  bottom: 18px;
  max-width: min(430px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid rgba(239, 107, 107, .45);
  border-radius: 4px;
  background: #24191b;
  color: #fff1f1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  font-size: 12px;
  line-height: 1.45;
}
.kpi-contribution-workflow-notice[hidden] { display: none; }
html[data-theme="light"] .kpi-contribution-workflow-notice { background: #fff7f7; color: #7b2525; }
.record-kpi-contribution .record-editor-grid.is-locked { opacity: .66; pointer-events: none; }
.kpi-realization-panel { width: min(900px, calc(100vw - 24px)); }
.kpi-realization-form { display: grid; gap: 14px; }
.kpi-realization-summary { display: grid; gap: 11px; margin: 16px 18px 0; padding: 14px; border: 1px solid rgba(201,148,60,.22); border-radius: 6px; background: rgba(255,255,255,.025); }
.kpi-realization-summary > div { display: grid; gap: 3px; }
.kpi-realization-summary span, .kpi-realization-summary dt { color: #dca13e; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.kpi-realization-summary strong { color: #f8fafc; font-size: 16px; }
.kpi-realization-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 0; }
.kpi-realization-summary dl div { display: grid; gap: 3px; padding: 9px 10px; border-left: 2px solid rgba(201,148,60,.45); background: rgba(255,255,255,.025); }
.kpi-realization-summary dd { margin: 0; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 750; }
.kpi-realization-summary p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.5; }
.kpi-realization-intro { padding: 14px 18px 0; }
.kpi-realization-intro strong { color: #f8fafc; font-size: 15px; }
.kpi-realization-intro p { margin: 5px 0 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.5; }
.kpi-realization-form fieldset { margin: 0 18px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 4px; }
.kpi-realization-form legend { padding: 0 7px; color: #f0b04d; font-size: 11px; font-weight: 750; }
.kpi-realization-comparison { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: 10px; align-items: center; margin-bottom: 12px; }
.kpi-realization-comparison > div { padding: 10px 12px; border-left: 2px solid rgba(232,154,36,.55); background: rgba(255,255,255,.025); }
.kpi-realization-comparison small, .kpi-realization-comparison span { display: block; color: rgba(255,255,255,.48); font-size: 10px; }
.kpi-realization-comparison strong { display: block; margin: 3px 0; color: #f8fafc; font-size: 17px; }
.kpi-realization-comparison label { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.6); }
.kpi-realization-comparison input { width: min(140px, 100%); }
html[data-theme="light"] .kpi-realization-intro strong,
html[data-theme="light"] .kpi-realization-comparison strong { color: #102c38; }
html[data-theme="light"] .kpi-realization-summary { border-color: rgba(154,91,8,.2); background: rgba(16,44,56,.025); }
html[data-theme="light"] .kpi-realization-summary strong,
html[data-theme="light"] .kpi-realization-summary dd { color: #102c38; }
html[data-theme="light"] .kpi-realization-summary p { color: rgba(16,44,56,.62); }
html[data-theme="light"] .kpi-realization-summary dl div { background: rgba(16,44,56,.025); }
html[data-theme="light"] .kpi-realization-intro p,
html[data-theme="light"] .kpi-realization-comparison small,
html[data-theme="light"] .kpi-realization-comparison span,
html[data-theme="light"] .kpi-realization-comparison label { color: rgba(16,44,56,.64); }
html[data-theme="light"] .kpi-realization-form fieldset { border-color: rgba(16,44,56,.12); }
html[data-theme="light"] .kpi-realization-comparison > div { background: rgba(16,44,56,.025); }
@media (max-width: 640px) {
  .record-create-kind-grid { grid-template-columns: 1fr; padding: 12px; }
  .record-create-kind-grid button { min-height: 124px; }
  .kpi-realization-comparison { grid-template-columns: 1fr; }
  .kpi-realization-comparison > span { display: none; }
  .kpi-realization-form fieldset { margin-inline: 12px; }
  .kpi-realization-summary { margin-inline: 12px; }
  .kpi-realization-summary dl { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .kreg-col-head {
    display: none;
  }

  .kreg-row {
    grid-template-columns: minmax(0, 1fr) 28px auto !important;
    gap: 6px 10px;
    padding: 10px 12px;
  }

  .kreg-row > .kreg-item {
    grid-column: 1 / -1;
  }

  .kreg-row > div:nth-child(2) {
    grid-column: 1;
  }

  .kreg-row > div:nth-child(3) {
    grid-column: 2;
  }

  .kreg-row > div:nth-child(4) {
    grid-column: 3;
  }

  .kreg-exp-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .kreg-exp-col {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
  }

  html[data-theme="light"] .kreg-exp-col {
    border-bottom-color: rgba(16,44,56,0.06);
  }

  .kreg-exp-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-inline: 12px;
  }
}

/* ==========================================================================
   Layout Foundation B.1 — Register First Compact
   Eerste referentie-implementatie voor programma's; bedoeld om pagina voor
   pagina uit te rollen zonder functionele wijzigingen.
   ========================================================================== */

.layout-foundation-b1 {
  --b1-page-max: 1480px;
  --b1-page-x: clamp(12px, 1.35vw, 20px);
  --b1-gap: 14px;
  --b1-radius: 8px;
  --b1-radius-lg: 10px;
  --b1-dark-bg: #0b202d;
  --b1-dark-topbar: linear-gradient(105deg, #173746 0%, #102833 48%, #0a1f2b 100%);
  --b1-light-bg: #f5f2eb;
  --b1-light-topbar: linear-gradient(105deg, #fbfaf7 0%, #f2eee5 52%, #e8e2d5 100%);
  --b1-border: rgba(255, 255, 255, 0.1);
  --b1-surface: rgba(255, 255, 255, 0.045);
  --b1-surface-soft: rgba(255, 255, 255, 0.035);
  --b1-text: rgba(255, 255, 255, 0.9);
  --b1-muted: rgba(255, 255, 255, 0.58);
  --b1-shadow: 0 14px 34px rgba(5, 17, 24, 0.18);
  background: var(--b1-dark-bg);
  overflow-x: hidden;
}

html[data-theme="light"] .layout-foundation-b1 {
  --b1-border: rgba(16, 40, 51, 0.1);
  --b1-surface: rgba(255, 255, 255, 0.72);
  --b1-surface-soft: rgba(16, 40, 51, 0.035);
  --b1-text: #102833;
  --b1-muted: #526a75;
  --b1-shadow: 0 14px 34px rgba(16, 40, 51, 0.06);
  background: var(--b1-light-bg);
}

.layout-foundation-b1::before,
.layout-foundation-b1::after,
.layout-foundation-b1 .shell::after,
.layout-foundation-b1 .topbar::after {
  display: none;
}

.layout-foundation-b1 .shell {
  display: grid;
  gap: var(--b1-gap);
  width: min(var(--b1-page-max), 100%);
  margin: 0 auto;
  padding: 18px var(--b1-page-x) 28px;
}

.layout-foundation-b1 .topbar,
.layout-foundation-b1 .page-nav,
.layout-foundation-b1 .page-intro,
.layout-foundation-b1 .detail-intro,
.layout-foundation-b1 .detail-controls,
.layout-foundation-b1 .detail-grid,
.layout-foundation-b1 #programModule,
.layout-foundation-b1 .action-decision-summary,
.layout-foundation-b1 #decisionsRegister,
.layout-foundation-b1 .risk-opportunity-section,
.layout-foundation-b1 #risksRegister,
.layout-foundation-b1 .planning-shell,
.layout-foundation-b1 .planning-timeline,
.layout-foundation-b1 .planning-moments,
.layout-foundation-b1 .planning-milestones,
.layout-foundation-b1 .site-footer {
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  margin: 0;
}

.layout-foundation-b1 .topbar {
  min-height: 58px;
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-bottom-color: var(--b1-border);
  border-radius: var(--b1-radius-lg) var(--b1-radius-lg) 0 0;
  background: var(--b1-dark-topbar);
  box-shadow: var(--b1-shadow);
  margin-bottom: calc(var(--b1-gap) * -1);
  padding: 9px 22px;
}

html[data-theme="light"] .layout-foundation-b1 .topbar {
  border-color: rgba(201, 148, 60, 0.34);
  background: var(--b1-light-topbar);
}

.layout-foundation-b1 .topbar-brand {
  gap: 12px;
}

.layout-foundation-b1 .topbar-kbr-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.layout-foundation-b1 .topbar-brand-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] .layout-foundation-b1 .topbar-brand-sep {
  background: rgba(16, 40, 51, 0.18);
}

.layout-foundation-b1 .topbar .topbar-brand-text h1,
html[data-theme] .layout-foundation-b1 .topbar .topbar-brand-text h1 {
  color: var(--b1-text);
  font-size: clamp(1.05rem, 1.55vw, 1.34rem);
  letter-spacing: -0.015em;
}

.layout-foundation-b1 .topbar-program-name,
.layout-foundation-b1 .topbar-role-badge,
.layout-foundation-b1 .topbar-actions,
.layout-foundation-b1 .topbar-actions * {
  color: var(--b1-muted);
}

.layout-foundation-b1 .topbar-actions {
  max-inline-size: min(48%, 520px);
}

.layout-foundation-b1 .page-nav {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-top: 0;
  border-radius: 0 0 var(--b1-radius-lg) var(--b1-radius-lg);
  background: rgba(8, 24, 34, 0.72);
  box-shadow: var(--b1-shadow);
  padding: 0 22px;
}

html[data-theme="light"] .layout-foundation-b1 .page-nav {
  background: rgba(250, 248, 243, 0.86);
}

.layout-foundation-b1 .page-nav a,
.layout-foundation-b1 .page-nav .nav-group summary {
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--b1-muted);
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 760;
  white-space: nowrap;
}

.layout-foundation-b1 .page-nav a.active,
.layout-foundation-b1 .page-nav a:hover,
.layout-foundation-b1 .page-nav a:focus-visible,
.layout-foundation-b1 .page-nav .nav-group.has-active summary,
.layout-foundation-b1 .page-nav .nav-group summary:hover,
.layout-foundation-b1 .page-nav .nav-group summary:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
  box-shadow: none;
}

.layout-foundation-b1 .page-intro {
  min-height: 38px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 8px 12px;
}

.layout-foundation-b1 .detail-intro article {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 14px 16px;
}

.layout-foundation-b1 .detail-intro h2 {
  color: var(--b1-text);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
}

.layout-foundation-b1 .detail-intro p {
  color: var(--b1-muted);
}

.layout-foundation-b1 .detail-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 10px 12px;
}

.layout-foundation-b1 .detail-controls .detail-filter-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.layout-foundation-b1 .detail-controls .detail-filter-label span {
  flex: 0 0 auto;
}

.layout-foundation-b1 .card-mode-toggle,
.layout-foundation-b1 .detail-filter-label select {
  min-height: 34px;
  border: 1px solid var(--b1-border);
  border-radius: 7px;
  color: var(--b1-text);
  background: var(--b1-surface-soft);
  font-size: 0.8rem;
  font-weight: 760;
}

.layout-foundation-b1 .card-mode-toggle {
  padding: 0 12px;
}

.layout-foundation-b1 .detail-filter-label {
  min-width: min(260px, 100%);
  color: var(--b1-muted);
}

.layout-foundation-b1 .detail-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.layout-foundation-b1 .detail-card {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 0;
}

.layout-foundation-b1 .project-card-sk-header {
  display: grid;
  grid-template-columns: 10px auto minmax(0, 1fr) auto 26px;
  gap: 10px;
  min-height: 44px;
  border-radius: var(--b1-radius);
  padding: 7px 12px;
}

.layout-foundation-b1 .project-card-sk-header:hover {
  background: rgba(201, 148, 60, 0.08);
}

.layout-foundation-b1 .project-card-name,
.layout-foundation-b1 .project-reference,
.layout-foundation-b1 .project-card-sk-pct,
.layout-foundation-b1 .pc-status-val,
.layout-foundation-b1 .pc-fact-val,
.layout-foundation-b1 .pc-progress-pct,
.layout-foundation-b1 .project-card-section p,
.layout-foundation-b1 .project-card-section strong,
.layout-foundation-b1 .project-card-list,
.layout-foundation-b1 .project-card-list li,
.layout-foundation-b1 .project-card-list a,
.layout-foundation-b1 .project-card-meta dd,
.layout-foundation-b1 .info-cell dd {
  color: var(--b1-text);
}

.layout-foundation-b1 .project-reference {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layout-foundation-b1 .project-card-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.layout-foundation-b1 .project-card-sk-meta {
  min-width: 0;
}

.layout-foundation-b1 .project-card-sk-owner,
.layout-foundation-b1 .project-card-section > span,
.layout-foundation-b1 .project-card-section div > span,
.layout-foundation-b1 .project-card-list small,
.layout-foundation-b1 .project-card-meta dt,
.layout-foundation-b1 .info-cell dt {
  color: var(--b1-muted);
}

.layout-foundation-b1 .project-card-sk-chevron {
  color: var(--b1-muted);
}

.layout-foundation-b1 .detail-card-body {
  border-top: 1px solid var(--b1-border);
  background: color-mix(in srgb, var(--b1-surface-soft) 80%, transparent);
}

.layout-foundation-b1 .project-card-list li,
.layout-foundation-b1 .cross-ref-project-card,
.layout-foundation-b1 .info-cell,
.layout-foundation-b1 .finance-pair,
.layout-foundation-b1 .project-card-two-col > div {
  border-color: var(--b1-border);
  background: color-mix(in srgb, var(--b1-surface-soft) 86%, transparent);
}

.layout-foundation-b1 .project-card-list li {
  border-radius: 7px;
}

.layout-foundation-b1 .cross-ref-project-card:hover,
.layout-foundation-b1 .cross-ref-project-card:focus-visible,
.layout-foundation-b1 .project-card-list a:hover,
.layout-foundation-b1 .project-card-list a:focus-visible {
  border-color: rgba(201, 148, 60, 0.34);
  background: rgba(201, 148, 60, 0.08);
}

.layout-foundation-b1 #programModule {
  gap: var(--b1-gap);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.layout-foundation-b1 #programModule > * {
  inline-size: min(var(--b1-page-max), calc(100vw - (var(--b1-page-x) * 2))) !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
}

.layout-foundation-b1 .sk-strip {
  inline-size: min(var(--b1-page-max), calc(100vw - (var(--b1-page-x) * 2))) !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  gap: 10px;
}

.layout-foundation-b1 .sk-strip-chip {
  min-height: 74px;
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 12px 13px;
}

.layout-foundation-b1 .sk-strip-chip span {
  color: var(--gold);
}

.layout-foundation-b1 .sk-strip-chip strong,
.layout-foundation-b1 .sk-obj-title,
.layout-foundation-b1 .prog-sub-name {
  color: var(--b1-text);
}

.layout-foundation-b1 .sk-strip-chip small,
.layout-foundation-b1 .sk-obj-owner,
.layout-foundation-b1 .prog-sub-meta,
.layout-foundation-b1 .prog-sub-owner,
.layout-foundation-b1 .sk-obj-pct,
.layout-foundation-b1 .pc-status-label,
.layout-foundation-b1 .pc-fact-label {
  color: var(--b1-muted);
}

.layout-foundation-b1 .sk-objectives {
  inline-size: min(var(--b1-page-max), calc(100vw - (var(--b1-page-x) * 2))) !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  gap: 8px;
}

.layout-foundation-b1 .program-detail-card {
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
}

.layout-foundation-b1 .program-card-header,
.layout-foundation-b1 .sk-obj-header {
  grid-template-columns: 10px minmax(0, 1fr) minmax(108px, 0.24fr) auto auto 26px;
  gap: 10px;
  min-height: 36px;
  padding: 9px 12px;
}

.layout-foundation-b1 .sk-obj-title-wrap {
  gap: 8px;
}

.layout-foundation-b1 .sk-obj-title {
  font-size: 0.9rem;
}

.layout-foundation-b1 .program-card-open-link {
  border-color: rgba(201, 148, 60, 0.28);
  padding: 3px 8px;
  font-size: 0.65rem;
}

.layout-foundation-b1 .sk-chevron {
  width: 18px;
  height: 18px;
  color: var(--b1-muted);
}

.layout-foundation-b1 .sk-prog-track {
  height: 5px;
  background: color-mix(in srgb, var(--b1-muted) 18%, transparent);
}

.layout-foundation-b1 .sk-obj-detail {
  border-top: 1px solid var(--b1-border);
  background: color-mix(in srgb, var(--b1-surface-soft) 80%, transparent);
}

.layout-foundation-b1 .pc-status-zone,
.layout-foundation-b1 .pc-facts-zone,
.layout-foundation-b1 .pc-progress-zone,
.layout-foundation-b1 .project-card-section,
.layout-foundation-b1 .info-strip,
.layout-foundation-b1 .standard-relation-block {
  border-color: var(--b1-border);
  background: color-mix(in srgb, var(--b1-surface-soft) 86%, transparent);
}

.layout-foundation-b1 .project-card-section {
  padding: 12px;
}

.layout-foundation-b1 .prog-sub-section {
  border-top-color: var(--b1-border);
}

.layout-foundation-b1 .prog-sub-rows {
  gap: 1px;
  margin-bottom: 0;
}

.layout-foundation-b1 .prog-sub-row {
  grid-template-columns: 9px auto minmax(0, 1fr) auto auto auto;
  min-height: 36px;
  border-radius: 6px;
  padding: 5px 6px;
}

.layout-foundation-b1 .prog-sub-row:hover,
.layout-foundation-b1 .prog-object-link:focus-visible {
  border-color: rgba(201, 148, 60, 0.32);
  background: rgba(201, 148, 60, 0.08);
}

.layout-foundation-b1 .program-section {
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 14px 16px;
}

.layout-foundation-b1 .program-collapsible-module {
  padding: 0;
  overflow: hidden;
}

.program-module-summary {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.program-module-summary::-webkit-details-marker { display: none; }
.program-module-summary > span:first-child { display: grid; gap: 2px; }
.program-module-summary small { color: var(--gold); font-size: .62rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.program-module-summary strong { color: var(--b1-text); font-size: .88rem; }
.program-module-description { color: var(--b1-muted); font-size: .7rem; line-height: 1.45; }
.program-module-chevron { width: 8px; height: 8px; border-right: 2px solid var(--b1-muted); border-bottom: 2px solid var(--b1-muted); transform: rotate(45deg); transition: transform .16s ease; }
.program-collapsible-module[open] .program-module-chevron { transform: rotate(225deg) translate(-2px, -2px); }
.program-collapsible-module[open] .program-module-summary { border-bottom: 1px solid var(--b1-border); background: color-mix(in srgb, var(--gold) 4%, transparent); }
.program-module-summary:hover,
.program-module-summary:focus-visible { background: color-mix(in srgb, var(--gold) 6%, transparent); outline: none; }
.program-module-content { padding: 14px 16px 16px; }

@media (max-width: 720px) {
  .program-module-summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px; }
  .program-module-description { grid-column: 1 / -1; grid-row: 2; }
  .program-module-chevron { grid-column: 2; grid-row: 1; }
  .program-module-content { padding: 10px; }
}

.layout-foundation-b1 .action-decision-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  overflow: visible;
}

.layout-foundation-b1 .action-decision-summary button {
  min-height: 82px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  color: var(--b1-text) !important;
  background: var(--b1-surface) !important;
  box-shadow: var(--b1-shadow);
  padding: 12px;
}

.layout-foundation-b1 .action-decision-summary button:hover,
.layout-foundation-b1 .action-decision-summary button:focus-visible,
.layout-foundation-b1 .action-decision-summary button.active {
  border-color: rgba(201, 148, 60, 0.48);
  background: rgba(201, 148, 60, 0.08) !important;
  transform: none;
}

.layout-foundation-b1 .action-decision-summary span,
.layout-foundation-b1 .action-decision-summary small {
  color: var(--b1-muted);
}

.layout-foundation-b1 .action-decision-summary strong {
  color: var(--b1-text);
  font-size: clamp(1.24rem, 1.7vw, 1.72rem);
}

.layout-foundation-b1 #decisionsRegister {
  margin: 0;
}

.layout-foundation-b1 .kreg-wrap {
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  margin: 0;
  overflow: hidden;
}

.layout-foundation-b1 .kreg-header,
.layout-foundation-b1 .kreg-col-head {
  border-color: var(--b1-border);
  background: color-mix(in srgb, var(--b1-surface-soft) 86%, transparent);
}

.layout-foundation-b1 .kreg-header-title,
.layout-foundation-b1 .kreg-col-head,
.layout-foundation-b1 .kreg-filter,
.layout-foundation-b1 .kreg-meta,
.layout-foundation-b1 .kreg-mid-sub,
.layout-foundation-b1 .kreg-mid-arr,
.layout-foundation-b1 .kreg-due,
.layout-foundation-b1 .kreg-empty {
  color: var(--b1-muted);
}

.layout-foundation-b1 .kreg-name,
.layout-foundation-b1 .kreg-mid-num {
  color: var(--b1-text);
}

.layout-foundation-b1 .kreg-id,
.layout-foundation-b1 .kreg-badge,
.layout-foundation-b1 .kreg-add-btn,
.layout-foundation-b1 .kreg-filter.is-active {
  color: var(--gold);
}

.layout-foundation-b1 .kreg-row {
  border-color: var(--b1-border);
}

.layout-foundation-b1 .kreg-row:hover,
.layout-foundation-b1 .kreg-row--open {
  background: rgba(201, 148, 60, 0.08);
}

.layout-foundation-b1 .kreg-search {
  border-color: var(--b1-border);
  color: var(--b1-text);
  background: var(--b1-surface-soft);
}

.layout-foundation-b1 .kreg-mid-bar {
  background: color-mix(in srgb, var(--b1-muted) 18%, transparent);
}

.layout-foundation-b1 .kreg-owner {
  background: color-mix(in srgb, var(--b1-muted) 14%, transparent);
  color: var(--b1-text);
}

.layout-foundation-b1 .risk-opportunity-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 14px;
  overflow: hidden;
}

.layout-foundation-b1 .matrix-heading {
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.layout-foundation-b1 .matrix-heading h2 {
  color: var(--b1-text);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.layout-foundation-b1 .matrix-heading span,
.layout-foundation-b1 .matrix-heading p {
  color: var(--b1-muted);
}

.layout-foundation-b1 .matrix-toggle {
  min-height: 32px;
  border-color: rgba(201, 148, 60, 0.34);
  color: var(--gold);
  background: rgba(201, 148, 60, 0.08);
  padding: 0 12px;
  font-size: 0.76rem;
}

.layout-foundation-b1 .risk-matrix {
  grid-template-columns: 78px repeat(5, minmax(82px, 1fr));
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.layout-foundation-b1 .matrix-corner,
.layout-foundation-b1 .matrix-axis,
.layout-foundation-b1 .matrix-cell {
  border-radius: 6px;
}

.layout-foundation-b1 .matrix-corner,
.layout-foundation-b1 .matrix-axis {
  min-height: 48px;
  color: var(--b1-muted);
  background: color-mix(in srgb, var(--b1-surface-soft) 86%, transparent);
  font-size: 0.68rem;
}

.layout-foundation-b1 .matrix-cell {
  min-width: 82px;
  min-height: 54px;
  border-color: var(--b1-border);
  background: color-mix(in srgb, var(--b1-surface-soft) 72%, transparent);
  padding: 6px;
}

.layout-foundation-b1 .matrix-item {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.7rem;
  box-shadow: none;
}

.layout-foundation-b1 .matrix-risico {
  color: #ffe6e4;
  border-color: rgba(190, 78, 70, 0.36);
  background: rgba(190, 78, 70, 0.34) !important;
}

.layout-foundation-b1 .matrix-kans {
  color: #e3fff2;
  border-color: rgba(5, 150, 105, 0.34);
  background: rgba(5, 150, 105, 0.32) !important;
}

.layout-foundation-b1 .matrix-risico.matrix-intensity-medium {
  background: rgba(190, 78, 70, 0.46) !important;
}

.layout-foundation-b1 .matrix-risico.matrix-intensity-high {
  background: rgba(190, 78, 70, 0.58) !important;
}

.layout-foundation-b1 .matrix-kans.matrix-intensity-medium {
  background: rgba(5, 150, 105, 0.42) !important;
}

.layout-foundation-b1 .matrix-kans.matrix-intensity-high {
  background: rgba(5, 150, 105, 0.52) !important;
}

.layout-foundation-b1 .matrix-popover {
  border-color: var(--b1-border);
  color: var(--b1-text);
  background: color-mix(in srgb, var(--b1-dark-bg) 94%, black);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.layout-foundation-b1 .matrix-popover small,
.layout-foundation-b1 .matrix-popover em {
  color: var(--b1-muted);
}

.layout-foundation-b1 .matrix-legend {
  grid-column: 1 / -1;
  color: var(--b1-muted);
}

html[data-theme="light"] .layout-foundation-b1 .matrix-risico {
  color: #7f1d1d;
  background: rgba(190, 78, 70, 0.14) !important;
}

html[data-theme="light"] .layout-foundation-b1 .matrix-kans {
  color: #065f46;
  background: rgba(5, 150, 105, 0.13) !important;
}

html[data-theme="light"] .layout-foundation-b1 .matrix-risico.matrix-intensity-medium {
  background: rgba(190, 78, 70, 0.19) !important;
}

html[data-theme="light"] .layout-foundation-b1 .matrix-risico.matrix-intensity-high {
  background: rgba(190, 78, 70, 0.25) !important;
}

html[data-theme="light"] .layout-foundation-b1 .matrix-kans.matrix-intensity-medium {
  background: rgba(5, 150, 105, 0.18) !important;
}

html[data-theme="light"] .layout-foundation-b1 .matrix-kans.matrix-intensity-high {
  background: rgba(5, 150, 105, 0.24) !important;
}

html[data-theme="light"] .layout-foundation-b1 .matrix-popover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(16, 40, 51, 0.14);
}

.layout-foundation-b1 .planning-shell {
  display: grid;
  gap: var(--b1-gap);
}

.layout-foundation-b1 .planning-timeline,
.layout-foundation-b1 .planning-moments,
.layout-foundation-b1 .planning-milestones {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 14px;
  overflow: hidden;
}

.layout-foundation-b1 .planning-milestones {
  padding: 0;
}

.layout-foundation-b1 .planning-milestones .kreg-wrap {
  border: 0;
  border-radius: var(--b1-radius);
  box-shadow: none;
}

.layout-foundation-b1 .planning-module-toggle {
  min-height: 56px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  color: var(--b1-text);
  background: color-mix(in srgb, var(--b1-surface-soft) 86%, transparent);
  padding: 10px 12px;
}

.layout-foundation-b1 .planning-module-toggle:hover,
.layout-foundation-b1 .planning-module-toggle:focus-visible {
  border-color: rgba(201, 148, 60, 0.42);
  background: rgba(201, 148, 60, 0.08);
}

.layout-foundation-b1 .planning-module-toggle small,
.layout-foundation-b1 .moment-strip span,
.layout-foundation-b1 .timeline-meta span,
.layout-foundation-b1 .activity-meta span,
.layout-foundation-b1 .milestone-planning-card span {
  color: var(--gold);
}

.layout-foundation-b1 .planning-module-toggle strong,
.layout-foundation-b1 .timeline-head strong,
.layout-foundation-b1 .timeline-meta strong,
.layout-foundation-b1 .activity-meta strong,
.layout-foundation-b1 .moment-strip strong,
.layout-foundation-b1 .planning-moment-list strong,
.layout-foundation-b1 .milestone-planning-card strong,
.layout-foundation-b1 .milestone-register-details dd {
  color: var(--b1-text);
}

.layout-foundation-b1 .planning-module-toggle em,
.layout-foundation-b1 .planning-module-toggle b,
.layout-foundation-b1 .timeline-head,
.layout-foundation-b1 .timeline-years,
.layout-foundation-b1 .timeline-meta small,
.layout-foundation-b1 .activity-meta small,
.layout-foundation-b1 .moment-strip small,
.layout-foundation-b1 .planning-moment-list small,
.layout-foundation-b1 .milestone-planning-card small,
.layout-foundation-b1 .milestone-register-details dt {
  color: var(--b1-muted);
}

.layout-foundation-b1 .planning-module-toggle b {
  min-width: 94px;
  border-color: var(--b1-border);
  background: var(--b1-surface-soft);
}

.layout-foundation-b1 .planning-module-body {
  padding-top: 12px;
}

.layout-foundation-b1 .timeline-board {
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--b1-muted) 10%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--b1-surface-soft) 82%, transparent);
  background-size: 10% 100%;
  padding: 38px 12px 12px;
}

.layout-foundation-b1 .program-project,
.layout-foundation-b1 .timeline-row,
.layout-foundation-b1 .activity-row,
.layout-foundation-b1 .moment-strip article,
.layout-foundation-b1 .planning-moment-list li,
.layout-foundation-b1 .milestone-planning-card {
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background: color-mix(in srgb, var(--b1-surface-soft) 82%, transparent);
}

.layout-foundation-b1 .timeline-row:hover,
.layout-foundation-b1 .timeline-row:focus-visible,
.layout-foundation-b1 .activity-row:hover,
.layout-foundation-b1 .activity-row:focus-visible,
.layout-foundation-b1 .milestone-planning-card:hover,
.layout-foundation-b1 .milestone-planning-card:focus-visible {
  border-color: rgba(201, 148, 60, 0.38);
  background: rgba(201, 148, 60, 0.08);
  transform: none;
}

.layout-foundation-b1 .timeline-meta,
.layout-foundation-b1 .activity-meta {
  background: color-mix(in srgb, var(--b1-dark-bg) 88%, transparent);
}

html[data-theme="light"] .layout-foundation-b1 .timeline-meta,
html[data-theme="light"] .layout-foundation-b1 .activity-meta {
  background: rgba(255, 255, 255, 0.96);
}

.layout-foundation-b1 .timeline-track {
  background: color-mix(in srgb, var(--b1-muted) 16%, transparent);
}

.layout-foundation-b1 .program-plan-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(201, 148, 60, 0.22);
  border-radius: var(--b1-radius);
  background: rgba(201, 148, 60, 0.055);
  padding: 10px;
}

.layout-foundation-b1 .program-plan-header {
  grid-template-columns: minmax(380px, 0.72fr) minmax(720px, 1fr) 112px;
  border-color: rgba(201, 148, 60, 0.28);
  background:
    linear-gradient(180deg, rgba(201, 148, 60, 0.11), rgba(255, 255, 255, 0.035)),
    color-mix(in srgb, var(--b1-surface-soft) 82%, transparent) !important;
}

.layout-foundation-b1 .program-plan-header .timeline-meta {
  overflow: hidden;
}

.layout-foundation-b1 .program-plan-header .timeline-meta a,
.layout-foundation-b1 .program-plan-header .timeline-meta strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-foundation-b1 .program-plan-header .timeline-meta span,
.layout-foundation-b1 .program-plan-header .timeline-meta strong {
  color: var(--gold);
}

.layout-foundation-b1 .program-plan-count {
  align-self: center;
  justify-self: end;
  min-width: 92px;
  border: 1px solid rgba(201, 148, 60, 0.3);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 148, 60, 0.08);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.layout-foundation-b1 .program-projects {
  display: grid;
  gap: 6px;
  padding-left: 14px;
}

.layout-foundation-b1 .project-collapse-button,
.layout-foundation-b1 .milestone-register-actions > button {
  border-color: rgba(201, 148, 60, 0.32);
  color: var(--gold);
  background: rgba(201, 148, 60, 0.08);
}

.layout-foundation-b1 .project-collapse-button:hover,
.layout-foundation-b1 .project-collapse-button:focus-visible,
.layout-foundation-b1 .milestone-register-actions > button:hover,
.layout-foundation-b1 .milestone-register-actions > button:focus-visible {
  color: var(--b1-text);
  background: rgba(201, 148, 60, 0.14);
}

.layout-foundation-b1 .moment-strip {
  gap: 8px;
}

.layout-foundation-b1 .moment-strip article {
  min-height: 92px;
  padding: 12px;
}

.layout-foundation-b1 .milestone-planning-card {
  min-height: 48px;
}

.layout-foundation-b1 .site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 12px 14px;
}

.layout-foundation-b1 .footer-brand {
  align-items: center;
  min-height: 34px;
}

.layout-foundation-b1 .footer-brand img {
  display: block;
  width: 72px;
  padding: 4px 6px;
}

.layout-foundation-b1 .footer-brand span,
.layout-foundation-b1 .site-footer small {
  line-height: 1.35;
}

.layout-foundation-b1 .site-footer small {
  align-self: center;
  color: var(--b1-muted);
}

html[data-theme="light"] .layout-foundation-b1 .section-heading h2,
html[data-theme="light"] .layout-foundation-b1 .dep-prog-name,
html[data-theme="light"] .layout-foundation-b1 .benefits-network strong,
html[data-theme="light"] .layout-foundation-b1 .program-roadmap strong,
html[data-theme="light"] .layout-foundation-b1 .benefit-chain b,
html[data-theme="light"] .layout-foundation-b1 .benefit-chain em {
  color: var(--b1-text);
}

/* Canonical Planning Timeline Widget - C.1 rustige basislijn */
.kptw {
  --kptw-meta-width: 286px;
  --kptw-count-width: 44px;
  color: var(--b1-text, rgba(255, 255, 255, 0.9));
}

.kptw-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--b1-muted, rgba(255, 255, 255, 0.6));
  font-size: 0.72rem;
  font-weight: 800;
}

.kptw-summary strong { color: var(--gold); }

.kptw-board {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--b1-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--b1-radius, 7px);
  background: color-mix(in srgb, var(--b1-surface-soft, rgba(255, 255, 255, 0.035)) 72%, transparent);
  padding: 34px 10px 10px;
}

.kptw-years {
  position: absolute;
  inset: 10px var(--kptw-count-width) auto calc(var(--kptw-meta-width) + 10px);
  display: grid;
  grid-template-columns: repeat(var(--kptw-year-count, 5), minmax(150px, 1fr));
  min-width: 750px;
  color: var(--b1-muted, rgba(255, 255, 255, 0.55));
  font-size: 0.65rem;
  font-weight: 850;
  pointer-events: none;
}

.kptw-years span { text-align: center; }

.kptw-overlay {
  position: absolute;
  z-index: 3;
  inset: 34px var(--kptw-count-width) 10px calc(var(--kptw-meta-width) + 10px);
  min-width: 750px;
  pointer-events: none;
}

.kptw-today {
  position: absolute;
  inset-block: 0;
  border-left: 1px solid rgba(211, 82, 77, 0.72);
}

.kptw-today span {
  position: absolute;
  top: 3px;
  left: 5px;
  color: #dc605b;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kptw-rows {
  display: grid;
  min-width: calc(var(--kptw-meta-width) + 794px);
}

.kptw-children { display: grid; }
.kptw-node.is-collapsed > .kptw-children { display: none; }

.kptw-row,
.kptw-activity {
  display: grid;
  grid-template-columns: var(--kptw-meta-width) minmax(750px, 1fr) var(--kptw-count-width);
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid color-mix(in srgb, var(--b1-border, rgba(255, 255, 255, 0.1)) 68%, transparent);
  color: inherit;
  text-decoration: none;
}

.kptw-program > .kptw-row {
  min-height: 52px;
  border-top: 1px solid var(--b1-border, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--b1-surface-soft, rgba(255, 255, 255, 0.035)) 72%, transparent);
}

.kptw-project > .kptw-row { padding-left: 18px; }

.kptw-activity {
  min-height: 35px;
  padding-left: 44px;
}

.kptw-meta {
  position: sticky;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 24px 60px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  background: transparent;
  padding: 5px 7px;
}

html[data-theme="light"] .kptw-meta { background: transparent; }

.kptw-meta button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--b1-border, rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  color: var(--b1-muted, rgba(255, 255, 255, 0.58));
  background: var(--b1-surface, #0d2531);
  cursor: pointer;
}

.kptw-meta button::after { content: "⌄"; transition: transform 150ms ease; }
.kptw-node.is-collapsed > .kptw-row .kptw-meta button::after { transform: rotate(-90deg); }

.kptw-meta b {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}

.kptw-meta a { min-width: 0; color: inherit; text-decoration: none; }
.kptw-meta strong { display: block; overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.kptw-meta a:hover strong, .kptw-meta a:focus-visible strong { color: var(--gold); }

.kptw-track {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--b1-muted, rgba(255, 255, 255, 0.58)) 9%, transparent);
}

.kptw-bar,
.kptw-duration {
  position: absolute;
  top: 5px;
  bottom: 5px;
  height: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102, 184, 164, 0.86), rgba(201, 148, 60, 0.86));
  box-shadow: 0 6px 16px rgba(5, 17, 24, 0.16);
}

.kptw-bar span {
  position: absolute;
  right: 7px;
  top: 50%;
  color: #06151b;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  transform: translateY(-50%);
}

.kptw-marker,
.kptw-dot {
  position: absolute;
  top: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--b1-surface, #0d2531);
  border-radius: 50%;
  background: #5b8ff4;
  box-shadow: 0 0 0 1px #5b8ff4;
  transform: translateX(-50%);
}

.kptw-activity-marker {
  --kptw-marker-color: #6f91c8;
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid color-mix(in srgb, var(--kptw-marker-color) 60%, var(--b1-border, transparent));
  border-radius: 50%;
  color: color-mix(in srgb, var(--kptw-marker-color) 78%, white 12%);
  background: color-mix(in srgb, var(--kptw-marker-color) 12%, var(--b1-surface, #0d2531));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--b1-surface, #0d2531) 76%, transparent);
  transform: translate(-50%, -50%);
}
.kptw-activity-marker svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.kptw-activity-marker-actie { --kptw-marker-color: #d2a14a; }
.kptw-activity-marker-besluit { --kptw-marker-color: #5b8ff4; }
.kptw-activity-marker-mijlpaal { --kptw-marker-color: #e7c782; }
.kptw-activity-marker-risico { --kptw-marker-color: #be625c; }
.kptw-activity-marker-kans { --kptw-marker-color: #65b99f; }
.kptw-activity-marker-financieel { --kptw-marker-color: #9c7bc7; }
html[data-theme="light"] .kptw-activity-marker {
  color: color-mix(in srgb, var(--kptw-marker-color) 82%, #102c38);
  background: color-mix(in srgb, var(--kptw-marker-color) 8%, white);
  box-shadow: 0 0 0 2px rgba(255,255,255,.86);
}

.kptw-marker {
  --kptw-marker-color: #5b8ff4;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  top: 0;
  border: 1px solid color-mix(in srgb, var(--kptw-marker-color) 72%, white 8%);
  color: color-mix(in srgb, var(--kptw-marker-color) 64%, white);
  background: #102833;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(5, 17, 24, 0.58), 0 4px 9px rgba(5, 17, 24, 0.28);
}

.kptw-marker-actie { --kptw-marker-color: #d2a14a; }
.kptw-marker-besluit { --kptw-marker-color: #5b8ff4; }
.kptw-marker-mijlpaal { --kptw-marker-color: #e7c782; }
.kptw-marker-risico { --kptw-marker-color: #be625c; }
.kptw-marker-kans { --kptw-marker-color: #65b99f; }
.kptw-marker-financieel { --kptw-marker-color: #9c7bc7; }
.kptw-marker-meetmoment { --kptw-marker-color: #559cb3; }

.kptw-marker-icon,
.kptw-marker-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.kptw-marker-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kptw-marker:hover,
.kptw-marker:focus-visible {
  border-color: var(--kptw-marker-color);
  color: #fff;
  background: color-mix(in srgb, var(--kptw-marker-color) 34%, #102833);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kptw-marker-color) 22%, transparent), 0 6px 14px rgba(5, 17, 24, 0.3);
  outline: none;
}

html[data-theme="light"] .kptw-marker {
  border-color: color-mix(in srgb, var(--kptw-marker-color) 78%, #102c38);
  color: color-mix(in srgb, var(--kptw-marker-color) 78%, #102c38);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88), 0 4px 9px rgba(16, 44, 56, 0.2);
}

html[data-theme="light"] .kptw-marker:hover,
html[data-theme="light"] .kptw-marker:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--kptw-marker-color) 82%, #102c38);
}

.kptw-project:not(.is-collapsed) > .kptw-row .kptw-marker { display: none; }
.kptw-program-markers { display: none; }
.kptw-program.is-collapsed > .kptw-row .kptw-program-markers { display: block; }

.kptw-popover {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: calc(100% + 9px);
  display: none;
  width: 220px;
  border: 1px solid var(--b1-border, rgba(255, 255, 255, 0.14));
  border-radius: 6px;
  color: var(--b1-text, rgba(255, 255, 255, 0.9));
  background: var(--b1-surface, #0d2531);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  padding: 9px 10px;
  text-align: left;
  transform: translateX(-50%);
}

.kptw-popover b,
.kptw-popover strong,
.kptw-popover small { display: block; }
.kptw-popover b { color: var(--gold); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.kptw-popover strong { margin-top: 3px; font-size: 0.76rem; line-height: 1.3; }
.kptw-popover small { margin-top: 5px; color: var(--b1-muted, rgba(255, 255, 255, 0.58)); font-size: 0.65rem; }
.kptw-marker:hover .kptw-popover,
.kptw-marker:focus-visible .kptw-popover { display: block; }
.kptw-marker.tooltip-edge-start .kptw-popover { left: -7px; transform: none; }
.kptw-marker.tooltip-edge-end .kptw-popover { right: -7px; left: auto; transform: none; }

/* Object Identity System - approved OIS-01 selection */
.ois-marker {
  --ois-color: #c9943c;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--ois-color) 72%, rgba(255,255,255,.12));
  border-radius: 50%;
  color: color-mix(in srgb, var(--ois-color) 64%, white);
  background: #102833;
  box-shadow: 0 0 0 2px rgba(5,17,24,.42);
}
.ois-marker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }
.ois-marker--small { width: 22px; height: 22px; box-shadow: none; }
.ois-marker--small svg { width: 13px; height: 13px; }
.ois-marker--large { width: 32px; height: 32px; }
.ois-marker--large svg { width: 18px; height: 18px; }
.ois-program { --ois-color: #c9943c; }
.ois-project { --ois-color: #6f91c8; }
.ois-action { --ois-color: #d2a14a; }
.ois-decision { --ois-color: #5b8ff4; }
.ois-milestone { --ois-color: #e7c782; }
.ois-risk { --ois-color: #be625c; }
.ois-opportunity { --ois-color: #65b99f; }
.ois-benefit { --ois-color: #56aa93; }
.ois-kpi { --ois-color: #559cb3; }
.ois-financial { --ois-color: #9c7bc7; }
.ois-pillar { --ois-color: #b88b43; }
.ois-objective { --ois-color: #cf9b42; }
html[data-theme="light"] .ois-marker { color: color-mix(in srgb, var(--ois-color) 78%, #102c38); background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.kreg-item > .ois-marker { margin-right: 8px; }
.kreg-item:has(> .ois-marker) { align-items: center; }
.ois-relation { display: inline-flex; align-items: center; gap: 7px; }
.record-project-relation.ois-relation { display: flex; }
.ois-popup-header { position: relative; background: color-mix(in srgb, var(--ois-color) 7%, transparent); }
.record-source-badge { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.object-source-registry { margin-right: auto; color: var(--muted); font-size: 12px; font-weight: 650; }
.ois-popup-header > .ois-marker { align-self: center; margin-right: 1px; }
.ois-wizard-context { display: flex; align-items: center; gap: 9px; margin: 10px 14px 0; border-left: 2px solid var(--ois-color); padding: 8px 10px; background: color-mix(in srgb, var(--ois-color) 6%, transparent); }
.ois-wizard-context span { display: grid; gap: 2px; }
.ois-wizard-context b { color: var(--text-primary); font-size: 11px; }
.ois-wizard-context small { color: var(--text-muted); font-size: 10px; }
.record-create-kind-grid button > .ois-marker { margin-bottom: 7px; }

.kptw-dot.status-afgerond,
.kptw-dot.status-bereikt { background: #31b98f; box-shadow: 0 0 0 1px #31b98f; }

.kptw-dot.status-kritiek,
.kptw-dot.status-rood { background: #dc605b; box-shadow: 0 0 0 1px #dc605b; }

.kptw-row > small,
.kptw-activity > small {
  color: var(--b1-muted, rgba(255, 255, 255, 0.58));
  font-size: 0.61rem;
  text-align: right;
}

.kptw-activity .kptw-meta strong { color: var(--b1-muted, rgba(255, 255, 255, 0.7)); font-weight: 650; }
.kptw-activity .kptw-meta span { visibility: hidden; }
.kptw-activity .kptw-meta .kptw-activity-copy { display: grid; min-width: 0; gap: 2px; visibility: visible; }
.kptw-activity .kptw-meta .kptw-activity-copy * { visibility: visible; }
.kptw.has-rich-activities .kptw-activity { min-height: 44px; }
.kptw.has-rich-activities .kptw-activity .kptw-meta strong {
  display: block;
  overflow: visible;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}
.kptw-activity-copy small { color: var(--b1-muted, rgba(255, 255, 255, 0.58)); font-size: 0.59rem; line-height: 1.25; }
.kptw-schedule { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 1px; }
.kptw-schedule-date { display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.kptw-schedule-date i,
.kptw-schedule-date svg { display: block; width: 12px; height: 12px; }
.kptw-schedule-date i { color: var(--gold); }
.kptw-schedule-date svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kptw-schedule-date time { color: var(--b1-muted, rgba(255, 255, 255, 0.58)); font-size: 0.58rem; font-style: normal; }
.kptw-schedule-arrow { color: color-mix(in srgb, var(--b1-muted, rgba(255, 255, 255, 0.58)) 62%, transparent); font-size: 0.65rem; }
.kptw-intermediate {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--b1-surface, #0d2531);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent);
  transform: translate(-50%, -50%);
}
.kptw-empty { padding: 22px; color: var(--b1-muted, rgba(255, 255, 255, 0.58)); text-align: center; }

.kptw.is-compact { --kptw-meta-width: 230px; --kptw-count-width: 34px; }
.kptw.is-compact .kptw-summary { display: none; }
.kptw.is-compact .kptw-program > .kptw-row { min-height: 44px; }
.kptw.is-compact .kptw-project > .kptw-row { min-height: 38px; }

@media (max-width: 720px) {
  .kptw { --kptw-meta-width: 230px; --kptw-count-width: 34px; }
  .kptw-summary { flex-wrap: wrap; }
  .kptw-board { padding-inline: 7px; }
  .kptw-project > .kptw-row { padding-left: 10px; }
  .kptw-activity { padding-left: 20px; }
}

html[data-theme="light"] .layout-foundation-b1 .section-heading p,
html[data-theme="light"] .layout-foundation-b1 .dep-prog-meta,
html[data-theme="light"] .layout-foundation-b1 .benefits-network small,
html[data-theme="light"] .layout-foundation-b1 .program-roadmap small {
  color: var(--b1-muted);
}

html[data-theme="light"] .layout-foundation-b1 .dep-row,
html[data-theme="light"] .layout-foundation-b1 .program-dependency-network article,
html[data-theme="light"] .layout-foundation-b1 .benefits-network article,
html[data-theme="light"] .layout-foundation-b1 .program-roadmap article {
  border-color: rgba(16, 40, 51, 0.1);
  background: rgba(255, 255, 255, 0.62);
}

.layout-foundation-b1 .program-dependency-network,
.layout-foundation-b1 .dep-row,
.layout-foundation-b1 .dep-cols,
.layout-foundation-b1 .dep-col,
.layout-foundation-b1 .dep-pill {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.layout-foundation-b1 .dep-row {
  grid-template-columns: minmax(160px, 0.24fr) minmax(0, 1fr);
}

.layout-foundation-b1 .dep-cols {
  inline-size: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.layout-foundation-b1 .dep-pill {
  inline-size: 100%;
}

html[data-theme="light"] .layout-foundation-b1 .dep-col-head {
  border-color: rgba(16, 40, 51, 0.1);
  color: rgba(16, 40, 51, 0.54);
  background: rgba(16, 40, 51, 0.04);
}

html[data-theme="light"] .layout-foundation-b1 .dep-pill {
  border-color: rgba(16, 40, 51, 0.11);
  color: rgba(16, 40, 51, 0.72);
  background: rgba(16, 40, 51, 0.035);
}

html[data-theme="light"] .layout-foundation-b1 .dep-pill-warn {
  border-color: rgba(180, 83, 9, 0.26);
  color: #9a5b08;
  background: rgba(245, 158, 11, 0.11);
}

html[data-theme="light"] .layout-foundation-b1 .dep-pill-danger {
  border-color: rgba(190, 78, 70, 0.26);
  color: #a23d36;
  background: rgba(190, 78, 70, 0.1);
}

html[data-theme="light"] .layout-foundation-b1 .dep-pill-kans {
  border-color: rgba(5, 150, 105, 0.24);
  color: #047857;
  background: rgba(5, 150, 105, 0.09);
}

html[data-theme="light"] .layout-foundation-b1 .dep-pill-empty,
html[data-theme="light"] .layout-foundation-b1 .dep-pill-more {
  color: rgba(16, 40, 51, 0.42);
}

html[data-theme="light"] .layout-foundation-b1 .dep-pill-more {
  border-color: rgba(16, 40, 51, 0.16);
  background: transparent;
}

html[data-theme="light"] .layout-foundation-b1 .dep-pill-link:hover,
html[data-theme="light"] .layout-foundation-b1 .dep-col-btn:hover,
html[data-theme="light"] .layout-foundation-b1 .dep-col-btn[aria-expanded="true"] {
  border-color: rgba(201, 148, 60, 0.38);
  color: #9a6b1a;
  background: rgba(201, 148, 60, 0.1);
}

html[data-theme="light"] .layout-foundation-b1 .dep-popover {
  border-color: rgba(16, 40, 51, 0.14);
  color: var(--b1-text);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(16, 40, 51, 0.14);
}

html[data-theme="light"] .layout-foundation-b1 .dep-popover-head span,
html[data-theme="light"] .layout-foundation-b1 .dep-popover-close {
  color: rgba(16, 40, 51, 0.48);
}

html[data-theme="light"] .layout-foundation-b1 .dep-popover-close {
  border-top-color: rgba(16, 40, 51, 0.08);
}

html[data-theme="light"] .layout-foundation-b1 .benefit-chain b,
html[data-theme="light"] .layout-foundation-b1 .benefit-chain em {
  background: rgba(201, 148, 60, 0.12);
}

@media (max-width: 1320px) {
  .layout-foundation-b1 {
    --b1-page-x: clamp(10px, 1vw, 16px);
  }

  .layout-foundation-b1 .dep-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1321px) {
  .layout-foundation-b1 .dep-row {
    grid-template-columns: minmax(180px, 0.22fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .layout-foundation-b1 .shell {
    padding-inline: 12px;
  }

  .layout-foundation-b1 .action-decision-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout-foundation-b1 .dep-row {
    grid-template-columns: 1fr;
  }

  .layout-foundation-b1 .dep-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-foundation-b1 .program-card-header,
  .layout-foundation-b1 .sk-obj-header {
    grid-template-columns: 10px minmax(0, 1fr) auto 22px;
  }

  .layout-foundation-b1 .project-card-sk-header {
    grid-template-columns: 10px auto minmax(0, 1fr) 22px;
  }

  .layout-foundation-b1 .sk-obj-prog-wrap,
  .layout-foundation-b1 .sk-obj-stats,
  .layout-foundation-b1 .program-card-open-link,
  .layout-foundation-b1 .project-card-sk-meta {
    display: none;
  }
}

@media (max-width: 640px) {
  .layout-foundation-b1 .action-decision-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-foundation-b1 .action-decision-summary button {
    min-height: 74px;
    padding: 10px;
  }

  .layout-foundation-b1 .kreg-header {
    align-items: stretch;
  }

  .layout-foundation-b1 .kreg-header-left,
  .layout-foundation-b1 .kreg-controls {
    inline-size: 100%;
  }

  .layout-foundation-b1 .kreg-search {
    width: 100%;
  }

  .layout-foundation-b1 .sk-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout-foundation-b1 .detail-intro article {
    padding: 13px;
  }

  .layout-foundation-b1 .project-card-name {
    white-space: normal;
  }

  .layout-foundation-b1 .prog-sub-row {
    grid-template-columns: 9px auto minmax(0, 1fr);
  }

  .layout-foundation-b1 .prog-sub-meta,
  .layout-foundation-b1 .prog-sub-prog,
  .layout-foundation-b1 .prog-sub-owner,
  .layout-foundation-b1 .prog-sub-row .sk-kpi-chip {
    display: none;
  }

  .layout-foundation-b1 .dep-cols {
    grid-template-columns: 1fr;
  }

  .layout-foundation-b1 .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .layout-foundation-b1 .site-footer small {
    text-align: left;
  }
}

/* The report preview is printable paper and must not inherit the dashboard theme. */
.reporting-page.layout-foundation-b1 .report-preview,
.reporting-page.layout-foundation-b1 .report-preview p,
.reporting-page.layout-foundation-b1 .report-preview td,
.reporting-page.layout-foundation-b1 .report-preview li {
  color: #203a44;
}

.reporting-page.layout-foundation-b1 .report-preview h2,
.reporting-page.layout-foundation-b1 .report-preview h3,
.reporting-page.layout-foundation-b1 .report-preview strong {
  color: #102c38;
}

.reporting-page.layout-foundation-b1 .report-preview small {
  color: #71838a;
}

/* Layout foundation B.1: executive overview */
.overview-page-b1 .executive-stage,
.overview-page-b1 .kpis,
.overview-page-b1 .narrative,
.overview-page-b1 .workspace,
.overview-page-b1 .risk-opportunity-section,
.overview-page-b1 .planning-overview-summary {
  width: 100%;
  margin: 0;
}

.overview-page-b1 .executive-stage {
  display: grid;
  gap: var(--b1-gap);
  padding: 0;
}

.overview-page-b1 .executive-focus,
.overview-page-b1 .director-cockpit {
  gap: 8px;
}

.overview-page-b1 .executive-focus-card,
.overview-page-b1 .director-cockpit-main,
.overview-page-b1 .director-cockpit-lists article {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  backdrop-filter: none;
}

.overview-page-b1 .executive-focus-card {
  min-height: 88px;
  padding: 11px 12px;
}

.overview-page-b1 .executive-focus-card:hover,
.overview-page-b1 .executive-focus-card:focus-visible {
  border-color: rgba(201, 148, 60, 0.38);
  background: rgba(201, 148, 60, 0.07);
  transform: none;
}

.overview-page-b1 .executive-focus-card strong,
.overview-page-b1 .director-cockpit-main h2,
.overview-page-b1 .director-cockpit-main dd,
.overview-page-b1 .director-cockpit-lists strong {
  color: var(--b1-text);
}

.overview-page-b1 .executive-focus-card small,
.overview-page-b1 .director-cockpit-main p,
.overview-page-b1 .director-cockpit-main dt,
.overview-page-b1 .director-cockpit-lists small {
  color: var(--b1-muted);
}

.overview-page-b1 .cockpit-card-title {
  color: var(--b1-text);
}

.overview-page-b1 .director-cockpit {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.overview-page-b1 .director-cockpit-main {
  min-height: 0;
  padding: 15px;
}

.overview-page-b1 .director-cockpit-main::after {
  opacity: 0.32;
}

.overview-page-b1 .director-cockpit-main h2 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.overview-page-b1 .director-cockpit-main dl {
  gap: 7px;
}

.overview-page-b1 .director-cockpit-main dl div {
  border-color: var(--b1-border);
  border-radius: 6px;
  background: var(--b1-surface-soft);
  padding: 9px;
}

.overview-page-b1 .director-cockpit-lists {
  gap: 8px;
}

.overview-page-b1 .director-cockpit-lists article {
  padding: 11px;
}

.overview-page-b1 .director-cockpit-lists a {
  border-bottom-color: var(--b1-border);
  padding-block: 7px;
}

.overview-page-b1 .kpis {
  gap: 8px;
}

.overview-page-b1 .kpi-nav-card {
  min-height: 98px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
}

.overview-page-b1 .kpi-nav-card:hover,
.overview-page-b1 .kpi-nav-card:focus-visible {
  border-color: rgba(201, 148, 60, 0.38);
  background: rgba(201, 148, 60, 0.07);
  transform: none;
}

.overview-page-b1 .kpi-body {
  padding: 11px 12px;
}

.overview-page-b1 .kpi-label {
  color: var(--gold);
}

.overview-page-b1 .kpi-value {
  color: var(--b1-text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.overview-page-b1 .kpi-sub,
.overview-page-b1 .kpi-pill {
  color: var(--b1-muted);
}

.overview-page-b1 .kpi-nav-arrow {
  color: var(--gold);
}

.overview-page-b1 .narrative {
  gap: 0;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  overflow: hidden;
}

.overview-page-b1 .narrative article {
  border: 0;
  border-right: 1px solid var(--b1-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 13px 14px;
}

.overview-page-b1 .narrative article:last-of-type {
  border-right: 0;
}

.overview-page-b1 .narrative h2 {
  color: var(--b1-text);
  font-size: 0.98rem;
}

.overview-page-b1 .narrative p {
  color: var(--b1-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.overview-page-b1 .workspace {
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr);
  gap: var(--b1-gap);
}

.overview-page-b1 .workspace > .panel,
.overview-page-b1 .workspace > .module,
.overview-page-b1 .risk-opportunity-section,
.overview-page-b1 .planning-overview-summary {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
}

.overview-page-b1 .workspace > .panel,
.overview-page-b1 .workspace > .module {
  padding: 13px;
}

.overview-page-b1 .workspace h2,
.overview-page-b1 .section-heading h2 {
  color: var(--b1-text);
}

.overview-page-b1 .section-heading p {
  color: var(--b1-muted);
}

.overview-page-b1 .tabs {
  gap: 4px;
  border-bottom-color: var(--b1-border);
  padding-bottom: 8px;
}

.overview-page-b1 .tabs button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--b1-muted);
  background: transparent;
}

.overview-page-b1 .tabs button.active,
.overview-page-b1 .tabs button:hover,
.overview-page-b1 .tabs button:focus-visible {
  border-color: rgba(201, 148, 60, 0.32);
  color: var(--b1-text);
  background: rgba(201, 148, 60, 0.08);
}

.overview-page-b1 .risk-opportunity-section {
  padding: 13px;
}

.overview-page-b1 .planning-overview-summary {
  padding: 13px;
}

html[data-theme="light"] .overview-page-b1 .executive-focus-card,
html[data-theme="light"] .overview-page-b1 .director-cockpit-main,
html[data-theme="light"] .overview-page-b1 .director-cockpit-lists article,
html[data-theme="light"] .overview-page-b1 .kpi-nav-card,
html[data-theme="light"] .overview-page-b1 .workspace > .panel,
html[data-theme="light"] .overview-page-b1 .workspace > .module {
  background: var(--b1-surface);
}

@media (max-width: 920px) {
  .overview-page-b1 .director-cockpit,
  .overview-page-b1 .workspace {
    grid-template-columns: 1fr;
  }

  .overview-page-b1 .narrative {
    grid-template-columns: 1fr;
  }

  .overview-page-b1 .narrative article {
    border-right: 0;
    border-bottom: 1px solid var(--b1-border);
  }

  .overview-page-b1 .narrative article:last-of-type {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .overview-page-b1 .widget-config-btn {
    width: 36px;
    min-width: 36px;
    padding-inline: 0;
    overflow: hidden;
    font-size: 0;
  }

  .overview-page-b1 .widget-config-btn-icon {
    margin: 0;
  }

  .overview-page-b1 .executive-focus,
  .overview-page-b1 .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-page-b1 .executive-focus-card,
  .overview-page-b1 .kpi-nav-card {
    min-height: 88px;
  }
}

@media (max-width: 430px) {
  .overview-page-b1 .executive-focus,
  .overview-page-b1 .kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .layout-foundation-b1 .action-decision-summary {
    grid-template-columns: 1fr;
  }

  .layout-foundation-b1 .sk-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-foundation-b1 .detail-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .layout-foundation-b1 .detail-controls .detail-filter-label {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }
}

/* Light-theme navigation is operational text and must meet WCAG AA. */
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav > a,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group > summary,
html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > a,
html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group > summary {
  color: #243f4b !important;
  font-weight: 700;
}

html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav > a:hover,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav > a:focus-visible,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group > summary:hover,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group > summary:focus-visible {
  color: #102833 !important;
}

html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav > a.active,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group.has-active > summary,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group[open] > summary {
  color: #784b08 !important;
  border-bottom-color: #a56e16 !important;
}

html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group-menu {
  border-color: rgba(16, 40, 51, .2);
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 40, 51, .16);
}

html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a {
  color: #243f4b !important;
  font-weight: 700;
}

html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a:hover,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group-menu a:focus-visible {
  color: #102833 !important;
  background: #f0f4f5 !important;
}

/* Final mobile navigation cascade guard. The responsive layout contract above
   used a swipe rail; an opened menu must instead become a readable list. */
@media (max-width: 760px) {
  html[data-theme] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px;
    scroll-snap-type: none;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-primary-link,
  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-primary-link,
  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group > summary {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px !important;
    font-size: 12px !important;
    line-height: 1.3;
    white-space: normal;
  }
}

/* Canonical mobile navigation panel. This intentionally overrides the former
   swipe rail: all destinations stay readable without horizontal discovery. */
@media (max-width: 760px) {
  html[data-theme] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav {
    position: relative;
    z-index: 220;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    overscroll-behavior: contain;
    border-color: rgba(201, 148, 60, .28);
    background: #0b2733;
    padding: 0 !important;
    scroll-snap-type: none;
    transition: max-height .22s ease, box-shadow .22s ease;
  }

  html[data-theme] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] {
    height: auto;
    max-height: min(72dvh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    background: #0b2733;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .42);
    padding-bottom: 9px !important;
    scrollbar-width: thin;
  }

  html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav,
  html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] {
    background: #f8fafb;
    box-shadow: 0 20px 48px rgba(16, 44, 56, .16);
  }

  html[data-theme] body.layout-foundation-b1 .page-nav .nav-mobile-toggle {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 43px;
    border: 0;
    border-radius: 0;
    color: var(--b1-text);
    background: #0b2733;
    padding: 5px 13px;
    text-align: left;
    cursor: pointer;
  }

  html[data-theme="light"] body.layout-foundation-b1 .page-nav .nav-mobile-toggle {
    background: #f8fafb;
  }

  .layout-foundation-b1 .nav-mobile-toggle-icon {
    display: grid;
    gap: 4px;
  }

  .layout-foundation-b1 .nav-mobile-toggle-icon i {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--gold);
    transition: transform .18s ease, opacity .18s ease;
  }

  .layout-foundation-b1 .nav-mobile-toggle-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  .layout-foundation-b1 .nav-mobile-toggle-copy small {
    color: var(--gold);
    font-size: .52rem;
    font-weight: 850;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
  }

  .layout-foundation-b1 .nav-mobile-toggle-copy strong {
    overflow: hidden;
    color: var(--b1-text);
    font-size: .72rem;
    font-weight: 760;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .layout-foundation-b1 .nav-mobile-toggle-chevron {
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
  }

  .layout-foundation-b1 .page-nav[data-mobile-open="true"] .nav-mobile-toggle-chevron {
    transform: translateY(2px) rotate(225deg);
  }

  .layout-foundation-b1 .page-nav[data-mobile-open="true"] .nav-mobile-toggle-icon i:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .layout-foundation-b1 .page-nav[data-mobile-open="true"] .nav-mobile-toggle-icon i:nth-child(2) {
    opacity: 0;
  }

  .layout-foundation-b1 .page-nav[data-mobile-open="true"] .nav-mobile-toggle-icon i:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  html[data-theme] body.layout-foundation-b1 .page-nav > .nav-primary-link,
  html[data-theme] body.layout-foundation-b1 .page-nav > .nav-group {
    display: none;
    width: auto;
    min-width: 0;
    margin: 0 11px;
    flex: none;
    scroll-snap-align: none;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-primary-link,
  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group {
    display: block;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-primary-link,
  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group > summary {
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    border-bottom: 1px solid var(--b1-border);
    padding: 0 8px !important;
    font-size: .78rem !important;
    line-height: 1.3;
    white-space: normal;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-primary-link.active,
  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group.has-active > summary {
    border-bottom-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 148, 60, .07);
  }

  html[data-theme] body.layout-foundation-b1 .page-nav .nav-group-menu {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    gap: 0;
    margin: 0 0 5px;
    border: 0;
    border-left: 1px solid rgba(201, 148, 60, .32);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 3px 0 3px 10px;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav .nav-group-menu a {
    min-height: 38px;
    display: flex;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--b1-border);
    color: var(--b1-muted);
    background: transparent;
    padding: 0 9px;
    font-size: .73rem;
    white-space: normal;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav .nav-group-menu a.active {
    color: var(--gold);
  }
}

/* Layout foundation B.1: financial control */
.layout-foundation-b1 .finance-module-stack {
  gap: 8px;
  width: 100%;
}

.layout-foundation-b1 .finance-module {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  backdrop-filter: none;
}

.layout-foundation-b1 .finance-module.is-open {
  border-color: rgba(201, 148, 60, 0.3);
}

.layout-foundation-b1 .finance-module-toggle {
  grid-template-columns: 78px minmax(190px, 0.68fr) minmax(260px, 1fr) auto;
  gap: 12px;
  min-height: 58px;
  color: var(--b1-text);
  padding: 10px 14px;
}

.layout-foundation-b1 .finance-module-toggle:hover,
.layout-foundation-b1 .finance-module-toggle:focus-visible {
  background: rgba(201, 148, 60, 0.065);
}

.layout-foundation-b1 .finance-module-toggle span {
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.layout-foundation-b1 .finance-module-toggle strong {
  color: var(--b1-text);
  font-size: 0.96rem;
  line-height: 1.2;
}

.layout-foundation-b1 .finance-module-toggle small {
  color: var(--b1-muted);
  font-size: 0.78rem;
}

.layout-foundation-b1 .finance-module-toggle b {
  min-width: 104px;
  border-color: var(--b1-border);
  border-radius: 6px;
  color: var(--gold);
  background: var(--b1-surface-soft);
  padding: 6px 9px;
  font-size: 0.68rem;
}

.layout-foundation-b1 .finance-module-body {
  border-top-color: var(--b1-border);
  padding: 14px;
}

.layout-foundation-b1 .finance-exec-grid {
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.55fr);
  gap: 10px;
}

.layout-foundation-b1 .finance-exec-hero,
.layout-foundation-b1 .finance-exec-kpis article,
.layout-foundation-b1 .cost-kpis article,
.layout-foundation-b1 .impact-summary article,
.layout-foundation-b1 .finance-source-grid article,
.layout-foundation-b1 .finance-register-summary article,
.layout-foundation-b1 .finance-register-row,
.layout-foundation-b1 .cost-deviation-list,
.layout-foundation-b1 .scenario-toggle-group,
.layout-foundation-b1 .scenario-toggle-card {
  border-color: var(--b1-border);
  border-radius: var(--b1-radius);
  background: color-mix(in srgb, var(--b1-surface-soft) 84%, transparent);
  box-shadow: none;
}

.layout-foundation-b1 .finance-exec-hero {
  min-height: 174px;
  padding: 16px;
}

.layout-foundation-b1 .finance-exec-hero strong {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.layout-foundation-b1 .finance-exec-kpis,
.layout-foundation-b1 .cost-kpis,
.layout-foundation-b1 .impact-summary {
  gap: 8px;
}

.layout-foundation-b1 .finance-exec-kpis article,
.layout-foundation-b1 .cost-kpis article,
.layout-foundation-b1 .impact-summary article {
  min-height: 92px;
  padding: 11px;
}

.layout-foundation-b1 .finance-exec-hero span,
.layout-foundation-b1 .finance-exec-kpis span,
.layout-foundation-b1 .cost-kpis span,
.layout-foundation-b1 .impact-summary span,
.layout-foundation-b1 .finance-register-summary span,
.layout-foundation-b1 .finance-register-row span,
.layout-foundation-b1 .finance-source-grid span {
  color: var(--gold);
}

.layout-foundation-b1 .finance-exec-hero p,
.layout-foundation-b1 .finance-exec-reading p,
.layout-foundation-b1 .finance-exec-kpis small,
.layout-foundation-b1 .cost-kpis small,
.layout-foundation-b1 .impact-summary small,
.layout-foundation-b1 .finance-register-summary small,
.layout-foundation-b1 .finance-register-row small,
.layout-foundation-b1 .finance-register-row p,
.layout-foundation-b1 .finance-source-grid small,
.layout-foundation-b1 .finance-register-rule p {
  color: var(--b1-muted);
}

.layout-foundation-b1 .finance-exec-kpis strong,
.layout-foundation-b1 .cost-kpis strong,
.layout-foundation-b1 .impact-summary strong,
.layout-foundation-b1 .finance-register-summary strong,
.layout-foundation-b1 .finance-register-row strong,
.layout-foundation-b1 .finance-register-row dd,
.layout-foundation-b1 .finance-source-grid strong,
.layout-foundation-b1 .cost-deviation-list summary,
.layout-foundation-b1 .scenario-toggle-card strong {
  color: var(--b1-text);
}

.layout-foundation-b1 .finance-exec-reading {
  border-radius: var(--b1-radius);
  padding: 11px 13px;
}

.layout-foundation-b1 .finance-register,
.layout-foundation-b1 .cost-control,
.layout-foundation-b1 .impact-insight {
  gap: 10px;
}

.layout-foundation-b1 .finance-register-summary,
.layout-foundation-b1 .finance-reconciliation-summary {
  gap: 8px;
}

.layout-foundation-b1 .finance-register-summary article,
.layout-foundation-b1 .finance-reconciliation-summary article {
  padding: 11px;
}

.layout-foundation-b1 .finance-register-row {
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  gap: 10px;
  padding: 10px;
}

.layout-foundation-b1 .finance-register-row dl {
  gap: 6px;
}

.layout-foundation-b1 .finance-register-row dl div,
.layout-foundation-b1 .reconciliation-totals,
.layout-foundation-b1 .reconciliation-row {
  border-color: var(--b1-border);
  background: var(--b1-surface-soft);
}

.layout-foundation-b1 .finance-register-row dt,
.layout-foundation-b1 .finance-reconciliation-summary span,
.layout-foundation-b1 .finance-reconciliation-summary small,
.layout-foundation-b1 .reconciliation-totals span,
.layout-foundation-b1 .reconciliation-row small,
.layout-foundation-b1 .reconciliation-row p {
  color: var(--b1-muted);
}

.layout-foundation-b1 .finance-reconciliation-summary strong,
.layout-foundation-b1 .reconciliation-totals strong,
.layout-foundation-b1 .reconciliation-row strong {
  color: var(--b1-text);
}

.layout-foundation-b1 .reconciliation-totals {
  gap: 0;
  background: var(--b1-border);
}

.layout-foundation-b1 .reconciliation-totals div {
  background: var(--b1-surface);
}

.layout-foundation-b1 .scenario-tabs,
.layout-foundation-b1 .finance-timing-tabs {
  gap: 6px;
  margin-bottom: 10px;
}

.layout-foundation-b1 .scenario-tabs button {
  border-color: var(--b1-border);
  border-radius: 6px;
  color: var(--b1-muted);
  background: var(--b1-surface-soft);
}

.layout-foundation-b1 .scenario-tabs button.active,
.layout-foundation-b1 .scenario-tabs button:hover,
.layout-foundation-b1 .scenario-tabs button:focus-visible {
  border-color: rgba(201, 148, 60, 0.42);
  color: var(--b1-text);
  background: rgba(201, 148, 60, 0.1);
}

.layout-foundation-b1 .finance-timing-row,
.layout-foundation-b1 .finance-timing-header,
.layout-foundation-b1 .scenario-toggle-group summary {
  border-color: var(--b1-border);
}

html[data-theme="light"] .layout-foundation-b1 .finance-exec-hero {
  background: rgba(201, 148, 60, 0.08);
}

html[data-theme="light"] .layout-foundation-b1 .finance-module-toggle b {
  color: #95691e;
}

html[data-theme="light"] .layout-foundation-b1 .finance-register-row dl div,
html[data-theme="light"] .layout-foundation-b1 .reconciliation-row,
html[data-theme="light"] .layout-foundation-b1 .scenario-toggle-card {
  background: rgba(16, 40, 51, 0.025);
}

/* Financial control v2: selected Bestuurlijke cockpit foundation. */
.layout-foundation-b1 .finance-control-v2 .finance-exec-grid { display: block; }

.finance-control-v2 .finance-cockpit-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-border);
}

.finance-control-v2 .finance-cockpit-metric {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: var(--b1-surface-soft);
  color: var(--b1-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.finance-control-v2 .finance-cockpit-metric:hover,
.finance-control-v2 .finance-cockpit-metric:focus-visible,
.finance-control-v2 .finance-cockpit-metric.is-active {
  z-index: 1;
  background: color-mix(in srgb, var(--b1-surface-soft) 88%, var(--gold) 12%);
  box-shadow: inset 0 -2px var(--gold);
  outline: none;
}

.finance-control-v2 .finance-cockpit-metric span,
.finance-control-v2 .finance-cockpit-source > span {
  color: var(--b1-muted);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.finance-control-v2 .finance-cockpit-metric strong {
  overflow: hidden;
  color: var(--b1-text);
  font-size: clamp(.95rem, 1.3vw, 1.25rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-control-v2 .finance-cockpit-metric small {
  overflow: hidden;
  color: var(--b1-muted);
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-control-v2 .finance-cockpit-metric i {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--b1-muted);
  opacity: .8;
}

.finance-control-v2 .finance-cockpit-metric.tone-good i { background: #38b982; }
.finance-control-v2 .finance-cockpit-metric.tone-attention i { background: var(--gold); }
.finance-control-v2 .finance-cockpit-metric.tone-danger i { background: #dc6d70; }

.finance-control-v2 .finance-cockpit-source {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 14px;
  border: 0;
  border-left: 1px solid var(--b1-border);
  border-radius: 0;
  background: transparent;
}

.finance-control-v2 .finance-cockpit-source strong {
  color: var(--b1-text);
  font-size: 1rem;
}

.finance-control-v2 .finance-cockpit-source p {
  margin: 0;
  color: var(--b1-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.finance-control-v2 .finance-cockpit-source dl {
  display: grid;
  margin: 2px 0 0;
}

.finance-control-v2 .finance-cockpit-source dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--b1-border);
  padding: 8px 0;
}

.finance-control-v2 .finance-cockpit-source dt { color: var(--b1-muted); font-size: .72rem; }
.finance-control-v2 .finance-cockpit-source dd { margin: 0; color: var(--b1-text); font-size: .75rem; font-weight: 850; }

.finance-control-v2 .finance-cockpit-source button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(201, 148, 60, .45);
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.finance-control-v2 .finance-view-tabs {
  display: flex;
  gap: 20px;
  margin: -3px 0 13px;
  border-bottom: 1px solid var(--b1-border);
}

.finance-control-v2 .finance-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  margin: -14px;
}

.finance-control-v2 .finance-control-main {
  min-width: 0;
  padding: 14px;
}

.finance-control-v2 .finance-summary-line {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.finance-control-v2 .finance-summary-line article {
  min-height: 78px;
  border-radius: 0;
  padding: 11px;
}

.finance-control-v2 .finance-summary-line strong { font-size: 1.05rem; }

.finance-control-v2 .finance-program-bars {
  display: grid;
  gap: 9px;
}

.finance-control-v2 .finance-program-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.6fr) 90px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--b1-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.finance-control-v2 .finance-program-bar:hover > span strong,
.finance-control-v2 .finance-program-bar:focus-visible > span strong { color: var(--gold); }
.finance-control-v2 .finance-program-bar:focus-visible { outline: 1px solid rgba(201, 148, 60, .45); outline-offset: 3px; }

.finance-control-v2 .finance-program-bar > span { display: grid; gap: 2px; min-width: 0; }
.finance-control-v2 .finance-program-bar > span strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.finance-control-v2 .finance-program-bar > span small { color: var(--b1-muted); font-size: .67rem; }
.finance-control-v2 .finance-program-bar > i { position: relative; height: 9px; background: color-mix(in srgb, var(--b1-muted) 15%, transparent); }
.finance-control-v2 .finance-program-bar > i b,
.finance-control-v2 .finance-program-bar > i em { position: absolute; left: 0; top: 0; height: 100%; background: #6097d5; }
.finance-control-v2 .finance-program-bar > i em { top: 3px; height: 3px; background: var(--gold); }
.finance-control-v2 .finance-program-bar > strong { color: var(--b1-text); font-size: .76rem; text-align: right; }

.finance-control-v2 .finance-cost-sources {
  border-top: 1px solid var(--b1-border);
}

.finance-control-v2 .finance-cost-sources > summary {
  padding: 10px 0 2px;
  color: var(--b1-muted);
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}

.finance-control-v2 .finance-cost-sources > .cost-source-groups { margin-top: 9px; }

.finance-control-v2 .finance-view-tabs button {
  min-height: 37px;
  padding: 4px 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--b1-muted);
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}

.finance-control-v2 .finance-view-tabs button.active,
.finance-control-v2 .finance-view-tabs button:hover,
.finance-control-v2 .finance-view-tabs button:focus-visible {
  border-bottom-color: var(--gold);
  color: var(--b1-text);
  outline: none;
}

.finance-control-v2 .finance-view-panel[hidden] { display: none !important; }

.finance-control-v2 .finance-quality-panel {
  margin-top: 10px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface-soft);
}

.finance-control-v2 .finance-quality-panel > summary {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 13px;
  color: var(--b1-text);
  cursor: pointer;
}

.finance-control-v2 .finance-quality-panel > summary span { color: var(--gold); font-size: .72rem; font-weight: 850; }
.finance-control-v2 .finance-quality-panel > summary strong { font-size: .78rem; }
.finance-control-v2 .finance-quality-panel > div { padding: 0 12px 12px; }

html[data-theme="light"] .finance-control-v2 .finance-cockpit-metric,
html[data-theme="light"] .finance-control-v2 .finance-quality-panel {
  background: #fff;
}

@media (max-width: 920px) {
  .layout-foundation-b1 .finance-module-toggle {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .layout-foundation-b1 .finance-module-toggle small {
    grid-column: 2 / -1;
  }

  .layout-foundation-b1 .finance-module-toggle b {
    grid-column: 3;
    grid-row: 1;
  }

  .layout-foundation-b1 .finance-exec-grid,
  .layout-foundation-b1 .finance-register-row {
    grid-template-columns: 1fr;
  }

  .finance-control-v2 .finance-cockpit-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finance-control-v2 .finance-control-grid { grid-template-columns: 1fr; }
  .finance-control-v2 .finance-cockpit-source { min-height: 145px; border-top: 1px solid var(--b1-border); border-left: 0; }
}

@media (max-width: 640px) {
  .layout-foundation-b1 .finance-module-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    min-height: 64px;
    padding: 10px 11px;
  }

  .layout-foundation-b1 .finance-module-toggle span {
    grid-column: 1;
  }

  .layout-foundation-b1 .finance-module-toggle strong,
  .layout-foundation-b1 .finance-module-toggle small {
    grid-column: 1 / -1;
  }

  .layout-foundation-b1 .finance-module-toggle b {
    grid-column: 2;
    grid-row: 1;
    min-width: 92px;
  }

  .layout-foundation-b1 .finance-module-body {
    padding: 10px;
  }

  .layout-foundation-b1 .finance-exec-kpis,
  .layout-foundation-b1 .cost-kpis,
  .layout-foundation-b1 .impact-summary,
  .layout-foundation-b1 .finance-register-summary,
  .layout-foundation-b1 .finance-reconciliation-summary {
    grid-template-columns: 1fr;
  }

  .finance-control-v2 .finance-cockpit-metrics,
  .finance-control-v2 .finance-summary-line { grid-template-columns: 1fr 1fr; }
  .finance-control-v2 .finance-cockpit-metric { min-height: 96px; padding: 12px; }
  .finance-control-v2 .finance-program-bar { grid-template-columns: 1fr; gap: 5px; }
  .finance-control-v2 .finance-program-bar > strong { text-align: left; }
  .finance-control-v2 .finance-view-tabs { gap: 14px; overflow-x: auto; }
  .finance-control-v2 .finance-view-tabs button { white-space: nowrap; }
  .finance-control-v2 .finance-quality-panel > summary { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 420px) {
  .finance-control-v2 .finance-cockpit-metrics,
  .finance-control-v2 .finance-summary-line { grid-template-columns: 1fr; }
}

/* Layout foundation B.1: mijn werkzaamheden */
.work-page-b1 .work-page-summary,
.work-page-b1 .work-page-module {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  margin: 0;
}

.work-page-b1 .work-page-summary {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  overflow: hidden;
}

.work-page-b1 .work-cockpit-intro {
  display: grid;
  align-content: center;
  gap: 3px;
  flex: 0 0 178px;
  border-right: 1px solid var(--b1-border);
  padding: 10px 14px;
}

.work-page-b1 .work-cockpit-intro span {
  color: var(--b1-text);
  font-size: 0.78rem;
  font-weight: 900;
}

.work-page-b1 .work-cockpit-intro small {
  color: var(--b1-muted);
  font-size: 0.68rem;
}

.work-page-b1 .work-cockpit-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 1 auto;
  min-inline-size: 0;
}

.work-page-b1 .work-page-summary button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 2px 8px;
  min-height: 64px;
  border: 0;
  border-right: 1px solid var(--b1-border);
  border-radius: 0;
  color: var(--b1-text);
  background: transparent;
  box-shadow: none;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
}

.work-page-b1 .work-page-summary button:last-child {
  border-right: 0;
}

.work-page-b1 .work-page-summary button.is-active {
  box-shadow: inset 0 -3px 0 var(--gold);
  background: rgba(201, 148, 60, 0.09);
}

.work-page-b1 .work-page-summary button:hover,
.work-page-b1 .work-page-summary button:focus-visible {
  border-color: rgba(201, 148, 60, 0.44);
  background: rgba(201, 148, 60, 0.08);
  outline: none;
  transform: none;
}

.work-page-b1 .work-page-summary span,
.work-page-b1 .work-preview-button span,
.work-page-b1 .audit-entry-head span,
.work-page-b1 .work-bulk-toolbar strong {
  color: var(--gold);
}

.work-page-b1 .work-page-summary strong {
  color: var(--b1-text);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.32rem;
}

.work-page-b1 .work-page-summary button span,
.work-page-b1 .work-page-summary button small {
  grid-column: 1;
}

.work-page-b1 .work-page-summary small,
.work-page-b1 .section-heading p,
.work-page-b1 .my-work-filters label,
.work-page-b1 .work-preview-button small,
.work-page-b1 .my-work-row-meta em,
.work-page-b1 .my-work-row-status em,
.work-page-b1 .work-quick-status span,
.work-page-b1 .audit-entry-head small,
.work-page-b1 .audit-entry dt,
.work-page-b1 .my-work-empty small {
  color: var(--b1-muted);
}

.work-page-b1 .work-page-module {
  display: grid;
  gap: 10px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface);
  box-shadow: var(--b1-shadow);
  padding: 14px;
  overflow: hidden;
}

.work-page-b1 .section-heading {
  display: grid;
  gap: 4px;
}

.work-page-b1 .section-heading h2,
.work-page-b1 .work-preview-button strong,
.work-page-b1 .my-work-row-status b,
.work-page-b1 .audit-entry-head strong,
.work-page-b1 .my-work-empty strong {
  color: var(--b1-text);
}

.work-page-b1 .work-bulk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-inline-size: 0;
}

.work-page-b1 .work-quick-status span {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-page-b1 .work-bulk-toolbar button,
.work-page-b1 .audit-entry-head button,
.work-page-b1 .record-editor-button {
  min-height: 32px;
  border: 1px solid var(--b1-border);
  border-radius: 6px;
  color: var(--b1-text);
  background: var(--b1-surface-soft);
  box-shadow: none;
  padding: 0 10px;
  font-weight: 820;
}

.work-page-b1 .work-bulk-toolbar button:hover,
.work-page-b1 .work-bulk-toolbar button:focus-visible,
.work-page-b1 .audit-entry-head button:hover,
.work-page-b1 .audit-entry-head button:focus-visible,
.work-page-b1 .record-editor-button:hover,
.work-page-b1 .record-editor-button:focus-visible {
  border-color: rgba(201, 148, 60, 0.42);
  color: var(--gold);
  background: rgba(201, 148, 60, 0.08);
  outline: none;
}

.work-page-b1 .my-work-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: var(--b1-surface-soft);
  padding: 10px;
}

.work-page-b1 .my-work-filters label,
.work-page-b1 .work-quick-status {
  display: grid;
  gap: 4px;
  min-inline-size: 0;
}

.work-page-b1 .my-work-filters select,
.work-page-b1 .work-bulk-toolbar select,
.work-page-b1 .work-quick-status select {
  inline-size: 100%;
  min-height: 34px;
  border: 1px solid var(--b1-border);
  border-radius: 6px;
  color: var(--b1-text);
  background: color-mix(in srgb, var(--b1-dark-bg) 78%, white);
  padding: 0 9px;
  font: inherit;
}

.work-page-b1 .my-work-filters option,
.work-page-b1 .work-bulk-toolbar option,
.work-page-b1 .work-quick-status option {
  color: #102833;
  background: #ffffff;
}

html[data-theme="light"] .work-page-b1 .my-work-filters select,
html[data-theme="light"] .work-page-b1 .work-bulk-toolbar select,
html[data-theme="light"] .work-page-b1 .work-quick-status select {
  background: rgba(255, 255, 255, 0.9);
}

.work-page-b1 .work-bulk-toolbar {
  border: 1px solid rgba(201, 148, 60, 0.28);
  border-radius: var(--b1-radius);
  background: rgba(201, 148, 60, 0.07);
  padding: 9px 10px;
}

.work-page-b1 .work-bulk-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--b1-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.work-page-b1 .work-page-list,
.work-page-b1 .audit-history {
  display: grid;
  gap: 7px;
  max-height: min(640px, 70vh);
  overflow: auto;
  padding-right: 2px;
}

.work-page-b1 .work-register-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 0.18fr) minmax(132px, 0.24fr) minmax(146px, auto) auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  color: var(--b1-muted);
  background: var(--b1-surface-soft);
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-page-b1 .my-work-list .my-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 0.18fr) minmax(132px, 0.24fr) minmax(146px, auto) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--b1-border);
  border-left: 3px solid color-mix(in srgb, var(--b1-muted) 34%, transparent);
  border-radius: var(--b1-radius);
  background: color-mix(in srgb, var(--b1-surface-soft) 84%, transparent);
  padding: 9px 10px;
  position: relative;
}

.work-page-b1 .work-select {
  position: absolute;
  top: 7px;
  right: 7px;
}

.work-page-b1 .work-workflow-state {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-page-b1 .work-workflow-state b {
  color: var(--gold);
  font-size: 0.72rem;
}

.work-page-b1 .work-workflow-state em {
  color: var(--b1-muted);
  font-size: 0.68rem;
  font-style: normal;
}

.work-page-b1 .work-kreg-wrap { margin-bottom: 0; }
.work-page-b1 .work-kreg-wrap .kreg-rows { max-height: min(640px, 70vh); }
.work-inline-workflow { margin-top: 12px; }
.work-inline-workflow-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid rgba(201, 148, 60, 0.45);
  background: rgba(255, 255, 255, 0.025);
  color: var(--b1-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
.work-inline-workflow-summary strong { color: var(--b1-text); font-weight: 650; }
html[data-theme="light"] .work-inline-workflow-summary {
  background: rgba(16, 44, 56, 0.025);
  color: rgba(16, 44, 56, 0.66);
}
html[data-theme="light"] .work-inline-workflow-summary strong { color: #102c38; }
.work-inline-workflow .udo-workflow-actions { padding: 10px 0 0; border: 0; background: transparent; }
.work-inline-workflow .wf-progress { display: none; }
.work-inline-workflow .wf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.work-inline-workflow .wf-action-item { flex: 0 1 auto; }
.work-inline-workflow .wf-action-btn {
  width: auto;
  min-height: 34px;
  padding: 7px 11px;
  align-items: center;
  border-color: rgba(201, 148, 60, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 11px;
}
.work-inline-workflow .wf-action-btn:hover:not(:disabled) { border-color: rgba(201, 148, 60, 0.52); background: rgba(201, 148, 60, 0.09); }
.work-inline-workflow .wf-action-btn--destructive { border-color: rgba(217, 95, 89, 0.28); background: rgba(217, 95, 89, 0.07); color: #efaaa5; }
.work-inline-workflow .wf-action-btn__label { flex: 0 1 auto; font-weight: 650; }
.work-inline-workflow .wf-action-btn__icon { font-size: 12px; }
.work-inline-workflow .wf-action-btn__help,
.work-inline-workflow .wf-action-btn__warning { display: none; }
.work-inline-workflow .wf-action-handle { display: none; }
.work-inline-workflow .wf-confirmation { width: min(420px, calc(100vw - 48px)); background: #102833; border-color: var(--line-soft); }
html[data-theme="light"] .work-inline-workflow .wf-confirmation { background: #fff; }
html[data-theme="light"] .work-inline-workflow .wf-action-btn { background: rgba(16, 44, 56, 0.025); color: #102c38; border-color: rgba(16, 44, 56, 0.14); }
html[data-theme="light"] .work-inline-workflow .wf-action-btn:hover:not(:disabled) { background: rgba(201, 148, 60, 0.08); border-color: rgba(154, 91, 8, 0.32); }
html[data-theme="light"] .work-inline-workflow .wf-action-btn--destructive { color: #a53e38; border-color: rgba(165, 62, 56, 0.24); background: rgba(165, 62, 56, 0.04); }
.wf-action-completion {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  background: rgba(2, 12, 18, 0.82);
  color: var(--text-primary);
}
.wf-action-completion:not([open]) { display: none; }
.wf-action-completion[open] { display: grid; place-items: center; overflow-y: auto; }
.wf-action-completion::backdrop { background: rgba(2, 12, 18, 0.72); backdrop-filter: blur(6px); }
.wf-action-completion__panel { width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid rgba(201, 148, 60, 0.28); border-radius: 6px; background: #102833; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38); }
.wf-action-completion__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.wf-action-completion__header div { display: grid; gap: 2px; }
.wf-action-completion__header span,
.wf-action-completion__assignment > span,
.wf-action-completion__grid label > span { color: var(--gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.wf-action-completion__header h2 { margin: 0; color: var(--text-primary); font-size: 18px; }
.wf-action-completion__header button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 22px; }
.wf-action-completion__assignment { display: grid; gap: 5px; margin: 14px 18px 0; padding: 13px 14px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.025); }
.wf-action-completion__assignment strong { color: var(--text-primary); font-size: 15px; }
.wf-action-completion__assignment p,
.wf-action-completion__assignment small { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.wf-action-completion__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 18px; }
.wf-action-completion__stage { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 13px; border: 1px solid var(--line-soft); border-radius: 5px; }
.wf-action-completion__stage legend { padding: 0 7px; color: var(--text-primary); font-size: 12px; font-weight: 800; }
.wf-action-completion__stage legend span { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 4px; border: 1px solid rgba(201,148,60,.4); border-radius: 50%; color: var(--gold); font-size: 9px; }
.wf-action-completion__grid label { display: grid; gap: 5px; }
.wf-action-completion__wide { grid-column: 1 / -1; }
.wf-action-completion__grid input,
.wf-action-completion__grid select,
.wf-action-completion__grid textarea { width: 100%; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(255, 255, 255, 0.035); color: var(--text-primary); padding: 9px 10px; font: inherit; }
.wf-action-completion__feedback { margin: 0 18px 12px; padding: 9px 11px; border: 1px solid rgba(217, 95, 89, 0.4); border-radius: 4px; color: #efaaa5; font-size: 12px; }
.wf-action-completion__footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.wf-action-completion__footer small { margin-right: auto; color: var(--text-muted); font-size: 10px; }
.wf-action-completion__footer button { min-height: 34px; border: 1px solid var(--line-soft); border-radius: 4px; background: transparent; color: var(--text-primary); padding: 7px 11px; cursor: pointer; }
.wf-action-completion__footer .wf-action-completion__submit { border-color: var(--gold); background: var(--gold); color: #0b1f29; font-weight: 800; }
.wf-outcome-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  background: rgba(2,12,18,0.82);
  color: var(--text-primary);
  z-index: 2300;
}
.wf-action-milestones { display: grid; gap: 7px; margin: 12px 18px 0; padding: 12px; border: 1px solid var(--line-soft); border-radius: 6px; background: rgba(255,255,255,.018); }
.wf-action-milestones > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wf-action-milestones > header span { color: var(--gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.wf-action-milestones > header strong { color: var(--text-muted); font-size: 11px; }
.wf-action-milestones > button { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid var(--line-soft); padding: 9px 2px 2px; background: transparent; color: var(--text-primary); text-align: left; cursor: pointer; }
.wf-action-milestones > button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.wf-action-milestones > button small { color: var(--text-muted); font-size: 10px; }
.wf-action-milestones > button.is-open small { color: var(--gold); }
.wf-action-milestones > button.is-complete { opacity: .68; }
.kpi-contribution-workflow-notice.is-success { border-color: rgba(74,184,132,.45); background: #12372d; color: #d9f7e9; }
.wf-outcome-dialog:not([open]) { display: none; }
.wf-outcome-dialog[open] { display: grid; place-items: center; overflow-y: auto; }
.wf-outcome-dialog::backdrop { background: rgba(2,12,18,0.72); backdrop-filter: blur(6px); }
.wf-outcome-form { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid rgba(201,148,60,.28); border-radius: 6px; background: #102833; box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.wf-outcome-form > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.wf-outcome-form > header div { display: grid; gap: 2px; }
.wf-outcome-form > header span,
.wf-outcome-prompt > span,
.wf-outcome-field > span { color: var(--gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.wf-outcome-form > header h2 { margin: 0; color: var(--text-primary); font-size: 18px; }
.wf-outcome-form > header button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 22px; }
.wf-outcome-prompt { display: grid; gap: 5px; margin: 14px 18px 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.025); }
.wf-outcome-prompt strong { color: var(--text-primary); font-size: 15px; }
.wf-outcome-prompt small { color: var(--text-muted); font-size: 11px; }
.wf-outcome-steps { display: grid; grid-template-columns: repeat(var(--wf-step-count, 2), minmax(0,1fr)); gap: 8px; margin: 14px 18px 0; padding: 0; list-style: none; }
.wf-outcome-steps li { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 7px; min-width: 0; color: var(--text-muted); font-size: 11px; }
.wf-outcome-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-soft); border-radius: 50%; font-size: 10px; }
.wf-outcome-steps li strong { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.wf-outcome-steps li.is-active { color: var(--text-primary); }
.wf-outcome-steps li.is-active span { border-color: var(--gold); color: var(--gold); background: rgba(201,148,60,.08); }
.wf-outcome-steps li.is-complete span { border-color: rgba(95,170,125,.4); color: #7fc995; }
.wf-outcome-page > header { display: grid; gap: 3px; margin: 14px 18px 0; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }
.wf-outcome-page > header h3 { margin: 0; color: var(--text-primary); font-size: 15px; }
.wf-outcome-page > header p { margin: 0; color: var(--text-muted); font-size: 11px; }
.wf-outcome-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 14px 18px; }
.wf-outcome-field { display: grid; gap: 5px; }
.wf-outcome-field--wide { grid-column: 1 / -1; }
.wf-outcome-field input,
.wf-outcome-field select,
.wf-outcome-field textarea { width: 100%; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(255,255,255,.035); color: var(--text-primary); padding: 9px 10px; font: inherit; }
.wf-outcome-feedback { margin: 0 18px 12px; padding: 9px 11px; border: 1px solid rgba(217,95,89,.4); border-radius: 4px; color: #efaaa5; font-size: 12px; }
.wf-outcome-form > footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.wf-outcome-form > footer small { margin-right: auto; color: var(--text-muted); font-size: 10px; }
.wf-outcome-form > footer button { min-height: 34px; border: 1px solid var(--line-soft); border-radius: 4px; background: transparent; color: var(--text-primary); padding: 7px 11px; cursor: pointer; }
.wf-outcome-form > footer button[type="submit"] { border-color: var(--gold); background: var(--gold); color: #0b1f29; font-weight: 800; }
html[data-theme="light"] .wf-action-completion__panel { background: #fff; }
html[data-theme="light"] .wf-action-completion__assignment { background: rgba(16, 44, 56, 0.025); }
html[data-theme="light"] .wf-action-completion__stage { border-color: rgba(16,40,51,.12); }
html[data-theme="light"] .wf-action-completion__grid input,
html[data-theme="light"] .wf-action-completion__grid select,
html[data-theme="light"] .wf-action-completion__grid textarea { background: #fff; color: #102c38; }
html[data-theme="light"] .wf-outcome-form { background: #fff; }
html[data-theme="light"] .wf-outcome-prompt { background: rgba(16,44,56,.025); }
html[data-theme="light"] .wf-outcome-steps li.is-active { color: #102c38; }
html[data-theme="light"] .wf-outcome-page > header h3 { color: #102c38; }
html[data-theme="light"] .wf-outcome-field input,
html[data-theme="light"] .wf-outcome-field select,
html[data-theme="light"] .wf-outcome-field textarea { background: #fff; color: #102c38; }
@media (max-width: 640px) {
  .wf-action-completion { padding: 8px; }
  .wf-action-completion__grid { grid-template-columns: 1fr; padding-inline: 12px; }
  .wf-action-completion__stage { grid-template-columns: 1fr; }
  .wf-action-completion__wide { grid-column: auto; }
  .wf-action-completion__assignment { margin-inline: 12px; }
  .wf-action-completion__footer { align-items: stretch; flex-direction: column; padding-inline: 12px; }
  .wf-action-completion__footer small { margin-right: 0; }
  .wf-outcome-dialog { padding: 8px; }
  .wf-outcome-grid { grid-template-columns: 1fr; padding-inline: 12px; }
  .wf-outcome-field--wide { grid-column: auto; }
  .wf-outcome-prompt { margin-inline: 12px; }
  .wf-outcome-steps { grid-template-columns: 1fr; margin-inline: 12px; }
  .wf-outcome-form > footer { align-items: stretch; flex-direction: column; padding-inline: 12px; }
  .wf-outcome-form > footer small { margin-right: 0; }
}

.record-lifecycle-intro { display: grid; gap: 5px; margin-bottom: 10px; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(201,148,60,.045); }
.record-lifecycle-intro > span { color: var(--gold); font-size: .6rem; font-weight: 850; text-transform: uppercase; }
.record-lifecycle-intro h3 { margin: 0; color: var(--text-primary); font-size: .86rem; }
.record-lifecycle-intro p { margin: 0; color: var(--text-muted); font-size: .68rem; line-height: 1.45; }
html[data-theme="light"] .record-lifecycle-intro { background: rgba(201,148,60,.055); }
.record-lifecycle-status { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 12px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 5px; }
.record-lifecycle-status span { color: var(--text-muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.record-lifecycle-status strong { grid-row: 1 / span 2; grid-column: 2; color: var(--gold); font-size: .76rem; }
.record-lifecycle-status small { color: var(--text-muted); font-size: .61rem; }
.work-no-next-action { margin: 10px 0 0; color: var(--text-muted); font-size: 12px; }
.work-regie-queue > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.work-regie-queue > summary::-webkit-details-marker { display: none; }
.work-regie-queue > summary > span:first-child { display: grid; gap: 2px; }
.work-regie-queue > summary small { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0; }
.work-regie-queue > summary strong { color: var(--text-primary); font-size: 14px; }
.work-regie-queue > summary > span:last-child { color: var(--text-muted); font-size: 12px; }
.work-regie-queue[open] > summary { border-bottom: 1px solid var(--line-soft); }
.work-regie-queue > .section-heading,
.work-regie-queue > .strategic-chain { margin-left: 16px; margin-right: 16px; }
.work-page-b1 .work-audit-module { display: block; padding: 0; }
.work-audit-module > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.work-audit-module > summary::-webkit-details-marker { display: none; }
.work-audit-module > summary > span:first-child { display: grid; gap: 2px; }
.work-audit-module > summary small { color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
.work-audit-module > summary strong { color: var(--text-primary); font-size: 14px; }
.work-audit-module > summary > span:last-child { color: var(--text-muted); font-size: 12px; }
.work-audit-module[open] > summary { border-bottom: 1px solid var(--line-soft); }
.work-audit-module > .audit-history { margin: 12px 14px 14px; }
.work-page-b1 .audit-kreg-wrap { margin: 0; }
.work-page-b1 .audit-kreg-rows { max-height: min(520px, 58vh); }
.audit-kreg-expanded[hidden] { display: none; }
.audit-value-old { color: #d4695c; overflow-wrap: anywhere; }
.audit-value-new { color: #7aa05d; overflow-wrap: anywhere; }
html[data-theme="light"] .audit-value-old { color: #9f2f2a; }
html[data-theme="light"] .audit-value-new { color: #1e7048; }
.audit-register-limit { display: block; padding: 8px 12px; border-top: 1px solid var(--b1-border); color: var(--b1-muted); }
.work-page-b1 .work-open-full { margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.work-page-b1 .work-handle-action { min-height: 28px; margin-left: 0; }
.work-page-b1 .work-register-select { color: var(--b1-muted); font-size: 0.7rem; }
.work-page-b1 .work-register-select input { accent-color: var(--gold); }

.work-page-b1 .my-work-list .my-work-row:hover,
.work-page-b1 .my-work-list .my-work-row:focus-within {
  border-color: rgba(201, 148, 60, 0.36);
  background: rgba(201, 148, 60, 0.07);
}

.work-page-b1 .my-work-list .urgency-te-laat {
  border-left-color: #d95f59;
}

.work-page-b1 .my-work-list .urgency-nadert,
.work-page-b1 .my-work-list .urgency-prioriteit {
  border-left-color: var(--gold);
}

.work-page-b1 .my-work-list .urgency-open {
  border-left-color: #24b58f;
}

.work-page-b1 .work-preview-button {
  display: grid;
  gap: 3px;
  min-inline-size: 0;
  border: 0;
  color: inherit;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-page-b1 .work-preview-button strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-page-b1 .work-preview-button small {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-page-b1 .my-work-row-meta {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
}

.work-page-b1 .my-work-row-status {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-page-b1 .my-work-row-meta b {
  color: var(--gold);
  font-size: 0.74rem;
}

.work-page-b1 .my-work-row-status b {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-page-b1 .my-work-row-status em {
  overflow: hidden;
  font-size: 0.72rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-page-b1 .work-select {
  display: grid;
  place-items: center;
}

.work-page-b1 .work-select input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.work-page-b1 .my-work-empty,
.work-page-b1 .audit-entry {
  border: 1px solid var(--b1-border);
  border-radius: var(--b1-radius);
  background: color-mix(in srgb, var(--b1-surface-soft) 84%, transparent);
  padding: 12px;
}

.work-page-b1 .my-work-empty {
  display: grid;
  gap: 4px;
  min-height: 86px;
  place-content: center start;
}

.work-page-b1 .audit-entry {
  display: grid;
  gap: 9px;
}

.work-page-b1 .audit-entry-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.work-page-b1 .audit-entry-head div {
  display: grid;
  gap: 3px;
  min-inline-size: 0;
}

.work-page-b1 .audit-entry dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.work-page-b1 .audit-entry dl div {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--b1-border);
  padding-top: 6px;
}

.work-page-b1 .audit-entry dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  min-inline-size: 0;
  color: var(--b1-text);
}

.work-page-b1 .audit-entry del {
  color: #ffb2ad;
}

.work-page-b1 .audit-entry ins {
  color: #7de0bd;
  text-decoration: none;
}

html[data-theme="light"] .work-page-b1 .audit-entry del {
  color: #9f2f2a;
}

html[data-theme="light"] .work-page-b1 .audit-entry ins {
  color: #047857;
}

@media (max-width: 1120px) {
  .work-page-b1 .my-work-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-page-b1 .my-work-list .my-work-row {
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto) minmax(132px, auto);
  }

  .work-page-b1 .work-workflow-state,
  .work-page-b1 .my-work-row .record-editor-button {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .work-page-b1 .work-page-summary {
    display: grid;
  }

  .work-page-b1 .work-cockpit-intro {
    border-right: 0;
    border-bottom: 1px solid var(--b1-border);
  }

  .work-page-b1 .work-cockpit-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-page-b1 .my-work-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-page-b1 .work-bulk-toolbar label {
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
    inline-size: 100%;
  }

  .work-page-b1 .my-work-list .my-work-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .work-page-b1 .work-register-head {
    display: none;
  }

  .work-page-b1 .work-preview-button {
    grid-column: 1;
    grid-row: 1;
  }

  .work-page-b1 .my-work-row-meta,
  .work-page-b1 .my-work-row-status,
  .work-page-b1 .work-workflow-state,
  .work-page-b1 .my-work-row .record-editor-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .work-page-b1 .my-work-row-meta {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
  }

  .work-page-b1 .my-work-row-status {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
  }

  .work-page-b1 .my-work-row-meta::before,
  .work-page-b1 .my-work-row-status::before {
    content: attr(data-label);
    color: var(--b1-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .work-audit-module > summary { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 520px) {
  .work-page-b1 .my-work-filters {
    grid-template-columns: 1fr;
  }

  .work-page-b1 .work-cockpit-options {
    grid-template-columns: 1fr;
  }

  .work-page-b1 .work-page-module {
    padding: 12px;
  }

  .work-page-b1 .my-work-list .my-work-row {
    grid-template-columns: 1fr;
  }

  .work-page-b1 .work-select,
  .work-page-b1 .work-preview-button,
  .work-page-b1 .my-work-row-meta,
  .work-page-b1 .my-work-row-status,
  .work-page-b1 .work-workflow-state,
  .work-page-b1 .my-work-row .record-editor-button {
    grid-column: auto;
    grid-row: auto;
  }

  .work-page-b1 .work-preview-button strong,
  .work-page-b1 .work-preview-button small,
  .work-page-b1 .my-work-row-status b,
  .work-page-b1 .my-work-row-status em {
    white-space: normal;
  }

  .work-page-b1 .audit-entry-head,
  .work-page-b1 .audit-entry dl div,
  .work-page-b1 .audit-entry dd {
    grid-template-columns: 1fr;
  }

  .work-page-b1 .audit-entry-head {
    display: grid;
  }
}
.record-contribution-timing {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, .22));
}

.record-contribution-timing-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, .18));
}

.record-contribution-timing-remove {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--text-muted, #64748b);
  cursor: pointer;
}

.record-contribution-timing-summary,
.record-workflow-triggers {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px;
  border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, .18));
}

.record-contribution-timing-summary span,
.record-workflow-triggers article {
  color: var(--text-secondary, #64748b);
}

.record-workflow-triggers article {
  display: grid;
  gap: 3px;
}

.record-wizard {
  display: grid;
  gap: 16px;
}

.record-wizard-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, .2));
}

.record-benefit-wizard .record-wizard-nav,
.record-financial-wizard .record-wizard-nav {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.record-wizard-nav button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.record-wizard-nav button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .7rem;
}

.record-wizard-nav button.is-active {
  color: var(--gold, #c9943c);
  border-bottom-color: currentColor;
}

.record-wizard-nav button.is-complete { color: var(--success, #31b77b); }

.record-wizard-step[hidden] { display: none !important; }

.record-lifecycle-wizard[data-wizard-object-type="action"] .record-wizard-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.record-wizard-intent,
.record-action-timing,
.record-wizard-value-empty,
.record-wizard-impact-summary {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, .2));
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
}

.record-wizard-intent > div:first-child,
.record-wizard-value-empty,
.record-wizard-impact-summary { display: grid; gap: 5px; }
.record-wizard-intent > div > span,
.record-wizard-value-empty > span,
.record-wizard-impact-summary > span { color: var(--gold); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.record-wizard-intent h3,
.record-wizard-value-empty h3 { margin: 0; color: var(--text-primary); font-size: .94rem; }
.record-wizard-intent p,
.record-wizard-value-empty p,
.record-wizard-impact-summary small { margin: 0; color: var(--text-secondary, #94a3b8); font-size: .7rem; line-height: 1.45; }
.record-wizard-impact-summary strong { color: var(--text-primary); font-size: .84rem; }

.record-wizard-intent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.record-wizard-intent-options label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, .2));
  border-radius: 5px;
  cursor: pointer;
}
.record-wizard-intent-options label:has(input:checked) { border-color: rgba(201, 148, 60, .55); background: rgba(201, 148, 60, .07); }
.record-wizard-intent-options input { margin-top: 2px; accent-color: var(--gold); }
.record-wizard-intent-options label span { display: grid; gap: 4px; }
.record-wizard-intent-options strong { color: var(--text-primary); font-size: .74rem; text-transform: none; letter-spacing: 0; }
.record-wizard-intent-options small { color: var(--text-secondary, #94a3b8); font-size: .65rem; line-height: 1.4; text-transform: none; letter-spacing: 0; }

html[data-theme="light"] .record-wizard-intent,
html[data-theme="light"] .record-action-timing,
html[data-theme="light"] .record-wizard-value-empty,
html[data-theme="light"] .record-wizard-impact-summary { background: rgba(16, 44, 56, .025); }
html[data-theme="light"] .record-wizard-intent h3,
html[data-theme="light"] .record-wizard-value-empty h3,
html[data-theme="light"] .record-wizard-impact-summary strong,
html[data-theme="light"] .record-wizard-intent-options strong { color: #102c38; }

.record-wizard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, .2));
}

.record-wizard-controls button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(201, 148, 60, .45);
  border-radius: 6px;
  background: rgba(201, 148, 60, .08);
  color: var(--gold, #c9943c);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.record-wizard-controls button:disabled { opacity: .4; cursor: default; }
.record-wizard-controls span { color: var(--text-secondary, #94a3b8); font-size: .76rem; }

.record-wizard-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, .2));
  border-radius: 6px;
  background: var(--border-subtle, rgba(148, 163, 184, .2));
}

.record-wizard-review-grid article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 14px;
  background: var(--surface-raised, #172733);
}

/* Toolstudio analysis assignment: approved compact wizard treatment. */
.analysis-action-editor{width:min(1040px,calc(100vw - 28px));max-height:calc(100vh - 28px);border-radius:5px;border-color:var(--border-subtle,rgba(148,163,184,.22));background:var(--surface,#102632)}
.analysis-action-editor .record-editor-header{position:sticky;align-items:center;border-bottom-color:var(--border-subtle,rgba(148,163,184,.2));background:var(--surface,#102632);padding:13px 16px}.analysis-action-editor .record-editor-header span{font-size:.58rem;letter-spacing:0}.analysis-action-editor .record-editor-header h2{font-size:1.08rem}.analysis-action-editor .record-editor-close{min-height:29px;border-radius:3px;padding:5px 9px;font-size:.7rem}.analysis-action-editor .record-editor-form{gap:9px;padding:0 14px 12px}.analysis-action-editor .record-wizard{gap:10px}.analysis-action-editor .record-wizard-nav{position:sticky;top:61px;z-index:1;grid-template-columns:repeat(6,minmax(0,1fr));background:var(--surface,#102632)}.analysis-action-editor .record-wizard-nav button{min-height:39px;font-size:.68rem}.analysis-action-editor .record-wizard-nav button span{width:19px;height:19px;font-size:.58rem}.analysis-action-editor .record-editor-primary,.analysis-action-editor .record-editor-strategy,.analysis-action-editor .record-editor-finance,.analysis-action-editor .record-editor-contribution{border-radius:3px;padding:10px}.analysis-action-editor .record-editor-section-heading{margin-bottom:8px}.analysis-action-editor .record-editor-section-heading h3{font-size:.95rem}.analysis-action-editor .record-editor-section-heading small{font-size:.68rem}.analysis-action-editor .record-editor-grid{gap:7px}.analysis-action-editor .record-editor-field{min-height:56px;font-size:.6rem}.analysis-action-editor .record-editor-field input,.analysis-action-editor .record-editor-field select,.analysis-action-editor .record-editor-field textarea{min-height:34px;border-radius:3px;padding:6px 8px;font-size:.75rem}.analysis-action-editor .record-editor-field textarea{min-height:62px}.analysis-action-editor .record-wizard-controls{padding-top:8px}.analysis-action-editor .record-wizard-controls button{min-height:31px;border-radius:3px;padding:5px 10px;font-size:.7rem}.analysis-action-editor .record-editor-actions{padding-top:9px}.analysis-action-editor .record-editor-actions button{min-height:32px;border-radius:3px;padding:6px 10px;font-size:.72rem}
html[data-theme="light"] .analysis-action-editor,html[data-theme="light"] .analysis-action-editor .record-editor-header,html[data-theme="light"] .analysis-action-editor .record-wizard-nav{background:#fff}
html[data-theme="light"] .analysis-action-editor .record-editor-header h2,html[data-theme="light"] .analysis-action-editor .record-editor-field,html[data-theme="light"] .analysis-action-editor .record-editor-field input,html[data-theme="light"] .analysis-action-editor .record-editor-field select,html[data-theme="light"] .analysis-action-editor .record-editor-field textarea{color:#102c38}
html[data-theme="light"] .analysis-action-editor .record-editor-field input,html[data-theme="light"] .analysis-action-editor .record-editor-field select,html[data-theme="light"] .analysis-action-editor .record-editor-field textarea{border-color:rgba(16,44,56,.18);background:#fff}
html[data-theme="light"] .analysis-action-editor .record-lifecycle-intro,html[data-theme="light"] .analysis-action-editor .record-editor-primary,html[data-theme="light"] .analysis-action-editor .record-editor-strategy,html[data-theme="light"] .analysis-action-editor .record-editor-finance,html[data-theme="light"] .analysis-action-editor .record-editor-contribution{background:#f7f9f9;color:#102c38}

/* Cockpit/strategy boundary: the overview only signals strategic health. */
.ovz-strategy-signal{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:22px;
  margin-bottom:10px;
  border:1px solid var(--line);
  border-left:3px solid var(--gold);
  background:var(--surface-glass);
  box-shadow:0 10px 26px rgba(3,15,25,.09);
  padding:15px 18px;
}
.ovz-strategy-signal-copy{display:grid;gap:3px;min-width:0}
.ovz-strategy-signal-copy>span{color:var(--gold);font-size:.62rem;font-weight:850;text-transform:uppercase}
.ovz-strategy-signal-copy h3{margin:0;color:var(--white);font-size:1rem}
.ovz-strategy-signal-copy p{margin:0;color:var(--muted);font-size:.7rem;line-height:1.4}
.ovz-strategy-signal-facts{display:grid;grid-template-columns:repeat(4,auto);gap:0;border-inline:1px solid var(--line)}
.ovz-strategy-signal-facts b{display:grid;min-width:78px;padding:2px 13px;color:var(--white);font-size:.9rem;text-align:center}
.ovz-strategy-signal-facts b+b{border-left:1px solid var(--line)}
.ovz-strategy-signal-facts small{color:var(--muted);font-size:.52rem;font-weight:650;text-transform:uppercase}
.ovz-strategy-signal>a{display:inline-flex;align-items:center;gap:9px;color:var(--white);font-size:.68rem;font-weight:750;text-decoration:none;white-space:nowrap}
.ovz-strategy-signal>a span{color:var(--gold);font-size:1rem}
.ovz-strategy-signal>a:hover{color:var(--gold)}
html[data-theme="light"] .ovz-strategy-signal{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.95));box-shadow:0 10px 28px rgba(23,47,83,.07)}
html[data-theme="light"] .ovz-strategy-signal-copy h3,
html[data-theme="light"] .ovz-strategy-signal-facts b,
html[data-theme="light"] .ovz-strategy-signal>a{color:var(--white)}

/* Programmes: one primary register, one optional portfolio deepening area. */
.program-portfolio-depth{margin-top:10px;border:1px solid var(--line);background:var(--surface-glass);overflow:hidden}
.program-portfolio-depth>.program-module-summary{padding:12px 14px}
.program-portfolio-depth-content{display:grid;gap:7px;border-top:1px solid var(--line);padding:8px}
.program-portfolio-depth-content>.program-section{margin:0;background:var(--surface-glass-soft)}
.program-register-module.is-open{margin-top:8px}
.program-register-module.is-open .strategy-register-shell{padding-top:0}

@media(max-width:900px){
  .ovz-strategy-signal{grid-template-columns:1fr auto}
  .ovz-strategy-signal-facts{grid-row:2;grid-column:1/-1;border:1px solid var(--line)}
}
@media(max-width:620px){
  .ovz-strategy-signal{grid-template-columns:1fr;gap:12px}
  .ovz-strategy-signal-facts{grid-row:auto;grid-column:auto}
  .ovz-strategy-signal-facts b{min-width:0;padding-inline:7px}
}

/* Programme finance uses the same layered visual hierarchy as the approved
   programme cockpit. Financial values and interactions remain untouched. */
.record-view-panel.program-control-panel .program-finance-rollup {
  --program-finance-surface:#0b222d;
  --program-finance-section:#102a35;
  --program-finance-line:rgba(236,243,245,.12);
  display:grid;
  gap:8px;
}

.record-view-panel.program-control-panel .program-finance-rollup>header {
  min-height:52px;
  border:1px solid var(--program-finance-line);
  background:var(--program-finance-section);
  padding:9px 12px;
}

.record-view-panel.program-control-panel .program-finance-summary {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  overflow:hidden;
  border:1px solid var(--program-finance-line);
  border-radius:0;
  background:var(--program-finance-line);
}

.record-view-panel.program-control-panel .program-finance-summary article {
  min-height:108px;
  border:0;
  border-radius:0;
  background:var(--program-finance-surface);
  padding:13px 14px 12px;
}

.record-view-panel.program-control-panel .program-finance-summary article>dl {
  border-top-color:var(--program-finance-line);
}

.record-view-panel.program-control-panel .program-finance-project-toolbar {
  min-height:48px;
  border:1px solid var(--program-finance-line);
  background:var(--program-finance-section);
  padding:8px 11px;
}

.record-view-panel.program-control-panel .program-finance-project-toolbar>div:last-child {
  border-color:var(--program-finance-line);
  background:var(--program-finance-surface);
}

.record-view-panel.program-control-panel .program-finance-projects,
.record-view-panel.program-control-panel .program-finance-chart {
  border:1px solid var(--program-finance-line);
  background:var(--program-finance-surface);
}

.record-view-panel.program-control-panel .program-finance-project,
.record-view-panel.program-control-panel .program-finance-chart-row,
.record-view-panel.program-control-panel .program-finance-chart>header,
.record-view-panel.program-control-panel .program-finance-chart>footer,
.record-view-panel.program-control-panel .finance-chart-period {
  border-color:var(--program-finance-line);
  padding-inline:11px;
}

.record-view-panel.program-control-panel .finance-chart-period {
  background:var(--program-finance-section);
}

html[data-theme="light"] .record-view-panel.program-control-panel .program-finance-rollup {
  --program-finance-surface:#fff;
  --program-finance-section:#f1f4f5;
  --program-finance-line:#d3dade;
}

@media(max-width:760px){
  .record-view-panel.program-control-panel .program-finance-summary{grid-template-columns:1fr}
}
@media(max-width:700px){.analysis-action-editor .record-wizard-nav{grid-template-columns:repeat(6,minmax(42px,1fr));overflow-x:auto}.analysis-action-editor .record-wizard-nav button{font-size:0}.analysis-action-editor .record-editor-grid{grid-template-columns:1fr}}

.record-wizard-review-grid span,
.record-wizard-review-grid small { color: var(--text-secondary, #94a3b8); }
.record-wizard-review-grid span { font-size: .68rem; font-weight: 900; text-transform: uppercase; }

html[data-theme="light"] .record-wizard-review-grid article { background: #fff; }

@media (max-width: 900px) {
  .record-contribution-timing-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .record-contribution-timing-row { grid-template-columns: 1fr; }
  .record-wizard-nav { grid-template-columns: repeat(5, minmax(42px, 1fr)); overflow-x: auto; }
  .record-benefit-wizard .record-wizard-nav,
  .record-financial-wizard .record-wizard-nav { grid-template-columns: repeat(6, minmax(42px, 1fr)); }
  .record-wizard-nav button { font-size: 0; gap: 0; }
  .record-wizard-nav button span { font-size: .7rem; }
  .record-wizard-review-grid { grid-template-columns: 1fr; }
  .record-wizard-intent-options { grid-template-columns: 1fr; }
}
.quality-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

/* Program detail concept 01: preserve its compact dashboard composition inside the canonical modal. */
.record-view-content .program-control-cockpit {
  border: 1px solid rgba(154, 177, 193, 0.24);
  border-radius: 5px;
  background: rgba(8, 28, 39, 0.62);
}

.record-view-content .program-control-cockpit > header {
  display: flex;
  min-height: 54px;
  margin: 0;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(154, 177, 193, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.record-view-content .program-control-metrics {
  border-bottom: 1px solid rgba(154, 177, 193, 0.2);
}

.record-view-content .program-control-metrics button {
  min-height: 72px;
  border-right-color: rgba(154, 177, 193, 0.2);
}

.record-view-content .program-control-layout {
  gap: 9px;
  padding: 9px;
  background: rgba(0, 10, 17, 0.16);
}

.record-view-content .program-control-portfolio,
.record-view-content .program-control-explanation {
  border-color: rgba(154, 177, 193, 0.22);
  background: rgba(9, 31, 42, 0.76);
}

.record-view-content .program-control-portfolio > header {
  min-height: 48px;
  margin: 0;
  padding: 8px 11px;
  border-bottom-color: rgba(154, 177, 193, 0.18);
  background: rgba(255, 255, 255, 0.018);
}

.record-view-content .program-control-project-row {
  min-height: 47px;
  border-bottom-color: rgba(154, 177, 193, 0.15);
}

.record-view-content .program-control-project-row:hover,
.record-view-content .program-control-project-row:focus-visible,
.record-view-content .program-control-project-row.is-active {
  background: rgba(201, 148, 60, 0.075);
}

html[data-theme="light"] .record-view-content .program-control-cockpit {
  border-color: rgba(12, 35, 75, 0.18);
  background: #f8fafc;
}

html[data-theme="light"] .record-view-content .program-control-cockpit > header,
html[data-theme="light"] .record-view-content .program-control-portfolio > header {
  border-color: rgba(12, 35, 75, 0.13);
  background: rgba(12, 35, 75, 0.025);
}

html[data-theme="light"] .record-view-content .program-control-metrics,
html[data-theme="light"] .record-view-content .program-control-metrics button,
html[data-theme="light"] .record-view-content .program-control-project-row {
  border-color: rgba(12, 35, 75, 0.13);
}

html[data-theme="light"] .record-view-content .program-control-layout {
  background: #edf2f6;
}

html[data-theme="light"] .record-view-content .program-control-portfolio,
html[data-theme="light"] .record-view-content .program-control-explanation {
  border-color: rgba(12, 35, 75, 0.15);
  background: rgba(255, 255, 255, 0.94);
}

/* Strategic links use the canonical module surface; gold is reserved for labels and focus. */
.record-editor-strategy,
.record-view-panel .record-editor-strategy,
.record-edit-panel .record-editor-strategy {
  border-color: rgba(154, 177, 193, 0.16);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: none;
}

html[data-theme="light"] .record-editor-strategy,
html[data-theme="light"] .record-view-panel .record-editor-strategy,
html[data-theme="light"] .record-edit-panel .record-editor-strategy {
  border-color: rgba(12, 35, 75, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}
.toolstudio-canonical-frame{display:block;width:100%;min-height:720px;border:0;background:transparent}

/* ══════════════════════════════════════════════════════════════════════
 * Overzichtspagina — vijf vragen over het programma (GOV-OVZ-01)
 *
 * De pagina bezit geen waarheid: elk blok is een venster op een register.
 * Vandaar de herkomstchip per blok en de bronverwijzingen in elke toelichting.
 * Assenkleuren zijn bewust gelijk aan .project-balanced-* zodat de
 * programmaradar en de projectradar als één familie leesbaar zijn.
 * ══════════════════════════════════════════════════════════════════════ */
.overzicht-page {
  --ovz-quality: #65b99f;
  --ovz-time: #6f91c8;
  --ovz-money: #9c7bc7;
  --ovz-risk: #be625c;
  --ovz-surface: rgba(255, 255, 255, 0.05);
  --ovz-surface-2: rgba(255, 255, 255, 0.028);
  --ovz-border: rgba(255, 255, 255, 0.13);
  --ovz-text: rgba(255, 255, 255, 0.92);
  --ovz-muted: rgba(255, 255, 255, 0.5);
  --ovz-track: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .overzicht-page,
body.theme-light .overzicht-page {
  --ovz-surface: #ffffff;
  --ovz-surface-2: #f7f8f8;
  --ovz-border: rgba(21, 48, 58, 0.16);
  --ovz-text: var(--ink);
  --ovz-muted: var(--muted);
  --ovz-track: rgba(21, 48, 58, 0.1);
}

/* De titel leeft in de broodkruimel; een eigen kopblok kost ruimte die de
   inhoud beter gebruikt. Vol uitlijnen met de topbalk (schil = 1440px), niet
   met de 1380px van .registry-module. */
.overzicht-page .ovz-page-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; }
.overzicht-page .ovz-page-sub { margin: 0; font-size: 0.92rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ovz-text); text-transform: none; }
.overzicht-page .ovz-intro-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.overzicht-page .ovz-info-toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--ovz-muted); padding: 4px 2px; font-size: 0.72rem; cursor: pointer; }
.overzicht-page .ovz-info-toggle::before { content: "›"; color: var(--gold); font-size: 0.9rem; transition: transform 0.15s; }
.overzicht-page .ovz-info-toggle.is-on::before { transform: rotate(90deg); }
.overzicht-page .ovz-info-toggle:hover { color: var(--gold); }
.overzicht-page .ovz-info { width: 100%; margin: 10px 0 4px; }
.overzicht-page .ovz-info p { margin: 0 0 9px; color: var(--ovz-muted); font-size: 0.86rem; line-height: 1.6; max-width: 900px; }
.ovz-eyebrow { color: var(--gold); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

/* Herkomst */
.ovz-prov { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ovz-border); border-radius: 999px; color: var(--ovz-muted); background: transparent; padding: 5px 12px; font-size: 0.7rem; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.ovz-prov:hover { border-color: var(--gold); color: var(--gold); }
.ovz-prov em { width: 6px; height: 6px; border-radius: 50%; background: var(--ovz-time); font-style: normal; }
.ovz-prov.calc em { background: var(--gold); }
body.ovz-show-prov .ovz-prov { border-color: rgba(201, 148, 60, 0.5); color: var(--gold); }
.ovz-prov-line { display: none; border-top: 1px dashed var(--ovz-border); margin-top: 12px; padding-top: 10px; color: var(--ovz-muted); font-size: 0.7rem; }
body.ovz-show-prov .ovz-prov-line { display: block; }
.ovz-prov-line b { color: var(--gold); font-weight: 600; }

/* Vraagmodule */
.ovz-q { width: 100%; margin: 0 0 14px; border: 1px solid var(--ovz-border); border-radius: 10px; background: var(--surface-glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); overflow: hidden; }
[data-theme="light"] .ovz-q, body.theme-light .ovz-q { background: var(--ovz-surface); box-shadow: var(--shadow); }
.ovz-q-head { display: flex; align-items: flex-start; gap: 18px; border-bottom: 1px solid var(--ovz-border); padding: 18px 22px; }
.ovz-q-head > div { display: grid; gap: 7px; max-width: 940px; }
.ovz-q-head h3 { margin: 0; font-size: 1.22rem; letter-spacing: -0.015em; color: var(--ovz-text); }
.ovz-answer { margin: 0; font-size: 0.86rem; line-height: 1.62; color: var(--ovz-text); }
.ovz-answer b { color: var(--gold); font-weight: 650; }
.ovz-q-head .ovz-prov { margin-left: auto; flex: none; }
.ovz-q-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.45fr); }
.ovz-q-body-progressive { position: relative; grid-template-columns: minmax(0, 1fr); }
.ovz-q-body-progressive .ovz-instrument { border-right: 0; padding-right: 64px; }
.ovz-detail-tab { position: absolute; inset: 0 0 0 auto; display: grid; place-items: center; align-content: center; gap: 7px; width: 46px; border: 0; border-left: 1px solid var(--ovz-border); color: var(--ovz-muted); background: var(--ovz-surface-2); cursor: pointer; transition: color .14s, background .14s; }
.ovz-detail-tab:hover { color: var(--gold); background: rgba(201, 148, 60, 0.06); }
.ovz-detail-tab span, .ovz-detail-tab b { writing-mode: vertical-rl; }
.ovz-detail-tab span { font-size: .54rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ovz-detail-tab b { font-size: .62rem; }
.ovz-detail-tab i { color: var(--gold); font-style: normal; }
.ovz-instrument { display: grid; align-content: start; gap: 14px; border-right: 1px solid var(--ovz-border); padding: 20px; min-width: 0; }
.ovz-deep { background: var(--ovz-surface-2); padding: 20px; display: grid; align-content: start; gap: 11px; }
.ovz-deep h4 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; color: var(--ovz-text); }
.ovz-lead { margin: 0; color: var(--ovz-muted); font-size: 0.76rem; line-height: 1.62; }
.ovz-lead b, .ovz-answer b { color: var(--gold); }
.ovz-empty { color: var(--ovz-muted); font-size: 0.8rem; margin: 0; }
.ovz-formula { border: 1px solid var(--ovz-border); border-radius: 4px; background: rgba(201, 148, 60, 0.035); padding: 0; }
.ovz-formula summary { padding: 10px 13px; color: var(--ovz-muted); cursor: pointer; font-size: 0.67rem; font-weight: 750; list-style-position: inside; }
.ovz-formula[open] { padding-bottom: 11px; }
.ovz-formula[open] summary { color: var(--gold); }
.ovz-formula > strong,
.ovz-formula > small { display: block; margin-inline: 13px; }
.ovz-formula > strong { margin-top: 2px; }
.ovz-formula > small { margin-top: 3px; }
.ovz-formula span { color: var(--gold); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.ovz-formula strong { font-size: 0.76rem; font-weight: 600; line-height: 1.45; color: var(--ovz-text); }
.ovz-formula small { color: var(--ovz-muted); font-size: 0.66rem; }
.ovz-facts { display: grid; margin: 0; }
.ovz-facts div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ovz-border); padding: 7px 0; font-size: 0.76rem; }
.ovz-facts dt { color: var(--ovz-muted); }
.ovz-facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ovz-text); }
.ovz-srcs { display: grid; gap: 5px; }
.ovz-srcs > span { color: var(--gold); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; margin-top: 4px; }
.ovz-srcs a { display: grid; gap: 2px; border: 1px solid var(--ovz-border); border-radius: 4px; background: var(--ovz-surface); padding: 9px 11px; text-decoration: none; transition: 0.14s; }
.ovz-srcs a:hover { border-color: var(--gold); transform: translateX(2px); }
.ovz-srcs strong { font-size: 0.76rem; font-weight: 600; color: var(--ovz-text); }
.ovz-srcs small { color: var(--ovz-muted); font-size: 0.66rem; }
/* Vervolgstap: wijst de weg, zet niets in gang — geen takenlijst. */
.ovz-next { display: grid; gap: 7px; border: 1px solid rgba(201, 148, 60, 0.32); border-radius: 4px; background: rgba(201, 148, 60, 0.07); padding: 12px 13px; margin-top: 4px; }
.ovz-next > span { color: var(--gold); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.ovz-next p { margin: 0; font-size: 0.76rem; line-height: 1.55; color: var(--ovz-text); }
.ovz-next a { justify-self: start; border-bottom: 1px solid rgba(201, 148, 60, 0.6); color: var(--gold); padding: 2px 0; text-decoration: none; font-size: 0.76rem; }
.ovz-next a:hover { border-color: var(--gold); }
.ovz-warn { display: flex; gap: 10px; border: 1px solid rgba(201, 148, 60, 0.4); border-radius: 4px; background: rgba(201, 148, 60, 0.09); padding: 11px 13px; font-size: 0.73rem; line-height: 1.55; color: var(--ovz-text); }
.ovz-warn b { color: var(--gold); }

/* 1 · Doelstellingen */
.ovz-objs { display: grid; gap: 3px; }
.ovz-objs-head { display: grid; grid-template-columns: 210px repeat(3, 1fr); gap: 16px; padding: 0 11px 10px; border-bottom: 1px solid var(--ovz-border); }
.ovz-objs-head span { display: grid; gap: 2px; color: var(--ovz-muted); font-size: 0.66rem; font-weight: 700; }
.ovz-objs-head small { color: var(--ovz-muted); opacity: 0.7; font-size: 0.58rem; font-weight: 400; }
.ovz-obj { display: grid; grid-template-columns: 210px repeat(3, 1fr); align-items: center; gap: 16px; border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 13px 11px; text-align: left; cursor: pointer; transition: 0.14s; }
.ovz-obj:hover { background: rgba(201, 148, 60, 0.06); }
.ovz-obj.is-on { border-color: var(--gold); background: rgba(201, 148, 60, 0.09); }
.ovz-obj-name { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; min-width: 0; }
.ovz-obj-name > span { display: grid; gap: 2px; min-width: 0; }
.ovz-obj-name strong { font-size: 0.82rem; color: var(--ovz-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovz-obj-name small { color: var(--ovz-muted); font-size: 0.64rem; }
.ovz-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ovz-dot-green { background: var(--ok); } .ovz-dot-gold { background: var(--gold); }
.ovz-dot-red { background: var(--danger); } .ovz-dot-grey { background: rgba(255, 255, 255, 0.28); }
.ovz-lyr { display: grid; gap: 5px; }
.ovz-lyr-t { position: relative; height: 8px; border-radius: 99px; background: var(--ovz-track); overflow: hidden; }
.ovz-lyr-t i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.ovz-lyr-t i.is-work { background: linear-gradient(90deg, rgba(111, 145, 200, 0.6), var(--ovz-time)); }
.ovz-lyr-t i.is-kpi { background: linear-gradient(90deg, rgba(201, 148, 60, 0.55), var(--gold)); }
.ovz-lyr-t i.is-value { background: linear-gradient(90deg, rgba(101, 185, 159, 0.55), var(--ovz-quality)); }
.ovz-lyr b { color: var(--ovz-text); font-size: 0.7rem; font-variant-numeric: tabular-nums; text-align: right; }
/* Niet gemeten is geen nul: geen balk, en het zegt wat het is. */
.ovz-lyr.is-unmeasured .ovz-lyr-t { background: repeating-linear-gradient(45deg, var(--ovz-track) 0 4px, transparent 4px 8px); }
.ovz-lyr.is-unmeasured b { color: var(--ovz-muted); font-size: 0.6rem; font-weight: 500; font-style: italic; }

/* 2 · Radar */
.ovz-radar-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 46px; }
.ovz-radar-col { display: grid; justify-items: center; padding: 0 42px; }
.ovz-radar { position: relative; width: 250px; height: 250px; margin: 12px 0 6px; }
.ovz-radar svg { width: 250px; height: 250px; overflow: visible; }
.ovz-ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.ovz-ring.is-outer { stroke: rgba(255, 255, 255, 0.2); }
.ovz-spoke { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; }
.ovz-shape { fill: url(#ovzRadarFill); stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; }
[data-theme="light"] .ovz-ring, body.theme-light .ovz-ring { stroke: rgba(21, 48, 58, 0.14); }
[data-theme="light"] .ovz-spoke, body.theme-light .ovz-spoke { stroke: rgba(21, 48, 58, 0.1); }
.ovz-pt { position: absolute; left: calc(50% + var(--dx)); top: calc(50% + var(--dy)); width: 24px; height: 24px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; z-index: 3; }
.ovz-pt > i { display: block; width: 12px; height: 12px; margin: auto; border: 2px solid var(--navy); border-radius: 50%; transition: 0.14s; }
.ovz-pt:hover > i { transform: scale(1.25); }
.ovz-pt.is-quality > i { background: var(--ovz-quality); box-shadow: 0 0 0 3px rgba(101, 185, 159, 0.24); }
.ovz-pt.is-time > i { background: var(--ovz-time); box-shadow: 0 0 0 3px rgba(111, 145, 200, 0.24); }
.ovz-pt.is-money > i { background: var(--ovz-money); box-shadow: 0 0 0 3px rgba(156, 123, 199, 0.24); }
.ovz-pt.is-risk > i { background: var(--ovz-risk); box-shadow: 0 0 0 3px rgba(190, 98, 92, 0.24); }
/* Open punt = onvoldoende brondata (zelfde conventie als het projectstuurbeeld). */
.ovz-pt.is-unrated > i { background: var(--navy); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 148, 60, 0.18); }
.ovz-pt.is-on > i { outline: 2px solid var(--gold); outline-offset: 3px; }
.ovz-ax { position: absolute; color: var(--ovz-muted); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.ovz-ax.is-quality { top: -8px; left: 50%; transform: translateX(-50%); }
.ovz-ax.is-time { right: -38px; top: 50%; transform: translateY(-50%); }
.ovz-ax.is-money { bottom: -8px; left: 50%; transform: translateX(-50%); }
.ovz-ax.is-risk { left: -38px; top: 50%; transform: translateY(-50%); }
.ovz-radar-legend { max-width: 300px; margin-top: 16px; color: var(--ovz-muted); font-size: 0.58rem; line-height: 1.6; text-align: center; }
.ovz-dims { display: grid; gap: 7px; }
.ovz-dim { display: grid; grid-template-columns: 10px 82px 1fr auto; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 10px 11px; text-align: left; cursor: pointer; font-size: 0.76rem; color: var(--ovz-text); transition: 0.14s; }
.ovz-dim:hover { background: rgba(201, 148, 60, 0.06); }
.ovz-dim.is-on { border-color: var(--gold); background: rgba(201, 148, 60, 0.09); }
.ovz-dim .ovz-dot-solid.is-quality { background: var(--ovz-quality); }
.ovz-dim .ovz-dot-solid.is-time { background: var(--ovz-time); }
.ovz-dim .ovz-dot-solid.is-money { background: var(--ovz-money); }
.ovz-dim .ovz-dot-solid.is-risk { background: var(--ovz-risk); }
.ovz-dim .ovz-dot-open { background: transparent; border: 1.5px solid var(--gold); }
.ovz-dim-t { position: relative; height: 7px; border-radius: 99px; background: var(--ovz-track); overflow: hidden; }
.ovz-dim-t i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.ovz-dim-t i.is-quality { background: linear-gradient(90deg, rgba(101, 185, 159, 0.55), var(--ovz-quality)); }
.ovz-dim-t i.is-time { background: linear-gradient(90deg, rgba(111, 145, 200, 0.55), var(--ovz-time)); }
.ovz-dim-t i.is-money { background: linear-gradient(90deg, rgba(156, 123, 199, 0.55), var(--ovz-money)); }
.ovz-dim-t i.is-risk { background: linear-gradient(90deg, rgba(190, 98, 92, 0.55), var(--ovz-risk)); }
.ovz-dim-t i.is-unrated { background: repeating-linear-gradient(45deg, rgba(201, 148, 60, 0.3) 0 4px, transparent 4px 8px); }
.ovz-dim b { font-variant-numeric: tabular-nums; font-size: 0.76rem; }
.ovz-dim.is-flag b { color: var(--gold); }
.ovz-dims-note { margin-top: 10px; }

/* 3 · Matrix */
.ovz-matrix-wrap { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.ovz-matrix-outer { display: grid; grid-template-columns: 15px 14px auto; gap: 6px 8px; }
.ovz-m-ylabel { grid-area: 1 / 1; writing-mode: vertical-rl; transform: rotate(180deg); place-self: center; color: var(--ovz-muted); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ovz-m-ynums { grid-area: 1 / 2; display: grid; grid-template-rows: repeat(5, 42px); gap: 3px; place-items: center; color: var(--ovz-muted); font-size: 0.58rem; font-variant-numeric: tabular-nums; }
.ovz-matrix { grid-area: 1 / 3; display: grid; grid-template-columns: repeat(5, 46px); grid-template-rows: repeat(5, 42px); gap: 3px; }
.ovz-m-xnums { grid-area: 2 / 3; display: grid; grid-template-columns: repeat(5, 46px); gap: 3px; place-items: center; color: var(--ovz-muted); font-size: 0.58rem; font-variant-numeric: tabular-nums; }
.ovz-m-xlabel { grid-area: 3 / 3; text-align: center; color: var(--ovz-muted); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.ovz-m-scale { grid-area: 4 / 3; display: flex; gap: 16px; justify-content: center; color: var(--ovz-muted); font-size: 0.58rem; padding-top: 7px; }
.ovz-m-scale span { display: flex; align-items: center; gap: 6px; }
.ovz-m-scale em { width: 9px; height: 9px; border-radius: 2px; font-style: normal; }
.ovz-cell { position: relative; border: 1px solid var(--ovz-border); border-radius: 3px; background: transparent; cursor: pointer; transition: 0.14s; }
.ovz-cell:hover { border-color: var(--gold); transform: scale(1.08); z-index: 2; }
.ovz-cell.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); z-index: 2; }
.ovz-cell b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.76rem; font-variant-numeric: tabular-nums; color: var(--ovz-text); }
.ovz-cell.is-licht, .ovz-m-scale em.is-licht { background: rgba(122, 160, 93, 0.18); }
.ovz-cell.is-let-op, .ovz-m-scale em.is-let-op { background: rgba(210, 161, 74, 0.26); }
.ovz-cell.is-boven, .ovz-m-scale em.is-boven { background: rgba(190, 78, 70, 0.32); }
.ovz-cell.is-empty { border-style: dashed; border-color: rgba(255, 255, 255, 0.07); }
.ovz-cell.is-empty b { color: rgba(255, 255, 255, 0.22); }
.ovz-matrix-side { display: grid; gap: 10px; align-content: center; }

/* 4 · Planning */
.ovz-tl { display: grid; --ovz-tl-side: 210px; }
.ovz-tl-head { display: grid; grid-template-columns: var(--ovz-tl-side) 1fr; gap: 14px; align-items: end; padding-bottom: 6px; }
.ovz-tl-scale { position: relative; height: 32px; }
.ovz-tl-scale span { position: absolute; bottom: 0; transform: translateX(-50%); color: var(--ovz-muted); font-size: 0.58rem; white-space: nowrap; }
/* Twee klassen: moet .ovz-tl-scale span (klasse+element) overstemmen. */
.ovz-tl-scale .ovz-tl-today { position: absolute; top: 0; bottom: auto; color: var(--gold); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ovz-tl-body { position: relative; border-top: 1px solid var(--ovz-border); }
/* Raster en 'vandaag' liggen exact over het plotgebied — nooit erbuiten. */
.ovz-tl-plot { position: absolute; left: calc(var(--ovz-tl-side) + 14px); right: 0; top: 0; bottom: 0; pointer-events: none; }
.ovz-tl-plot i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.07); }
.ovz-tl-plot i.is-now { background: var(--gold); opacity: 0.7; }
.ovz-tl-row { position: relative; z-index: 1; display: grid; grid-template-columns: var(--ovz-tl-side) 1fr; gap: 14px; align-items: center; width: 100%; border: 1px solid transparent; border-bottom-color: rgba(255, 255, 255, 0.06); background: transparent; padding: 10px 0; text-align: left; cursor: pointer; transition: 0.14s; }
.ovz-tl-row:hover { background: rgba(201, 148, 60, 0.06); }
.ovz-tl-row.is-on { border-color: var(--gold); background: rgba(201, 148, 60, 0.09); }
.ovz-tl-label { display: grid; gap: 3px; min-width: 0; padding-left: 11px; }
.ovz-tl-label strong { font-size: 0.78rem; color: var(--ovz-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovz-tl-label small { color: var(--ovz-muted); font-size: 0.64rem; display: flex; align-items: center; gap: 7px; }
.ovz-tl-chip { border: 1px solid rgba(190, 78, 70, 0.5); border-radius: 99px; color: var(--danger); padding: 1px 6px; font-size: 0.54rem; font-weight: 800; }
.ovz-tl-track { position: relative; height: 22px; }
.ovz-tl-base { position: absolute; top: 16px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); }
.ovz-tl-bar { position: absolute; top: 4px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, rgba(111, 145, 200, 0.45), rgba(111, 145, 200, 0.78)); }
.ovz-tl-bar.is-late { background: linear-gradient(90deg, rgba(190, 78, 70, 0.45), rgba(190, 78, 70, 0.78)); }
.ovz-tl-slip { position: absolute; top: 4px; height: 10px; border-radius: 0 99px 99px 0; background: repeating-linear-gradient(45deg, rgba(190, 78, 70, 0.5) 0 3px, transparent 3px 6px); border: 1px solid rgba(190, 78, 70, 0.45); border-left: 0; }
.ovz-tl-ms { position: absolute; top: 4px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); border: 1.5px solid var(--navy); border-radius: 1px; z-index: 2; }
.ovz-tl-ms.is-done { background: var(--ok); } .ovz-tl-ms.is-late { background: var(--danger); } .ovz-tl-ms.is-todo { background: var(--gold); }
.ovz-tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; color: var(--ovz-muted); font-size: 0.58rem; padding-top: 13px; }
.ovz-tl-legend span { display: flex; align-items: center; gap: 6px; }
.ovz-tl-legend em { font-style: normal; display: block; }
.ovz-lg-base { width: 16px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); }
.ovz-lg-bar { width: 16px; height: 9px; border-radius: 99px; background: rgba(111, 145, 200, 0.7); }
.ovz-lg-slip { width: 16px; height: 9px; background: repeating-linear-gradient(45deg, rgba(190, 78, 70, 0.5) 0 3px, transparent 3px 6px); border: 1px solid rgba(190, 78, 70, 0.45); }
.ovz-lg-ms { width: 8px; height: 8px; transform: rotate(45deg); }
.ovz-lg-ms.is-done { background: var(--ok); } .ovz-lg-ms.is-late { background: var(--danger); } .ovz-lg-ms.is-todo { background: var(--gold); }
.ovz-tl-note { margin-left: auto; color: var(--gold); }

/* 5 · Geld */
.ovz-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--ovz-border); }
.ovz-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ovz-muted); padding: 10px 16px; cursor: pointer; font-size: 0.82rem; transition: 0.14s; }
.ovz-tabs button:hover { color: var(--ovz-text); }
.ovz-tabs button.is-on { border-color: var(--gold); color: var(--ovz-text); font-weight: 650; }
.ovz-fin-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ovz-fin-head article { border: 1px solid var(--ovz-border); border-radius: 4px; background: var(--ovz-surface-2); padding: 13px; }
.ovz-fin-head span { display: block; color: var(--ovz-muted); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ovz-fin-head strong { display: block; margin-top: 5px; font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.018em; color: var(--ovz-text); }
.ovz-fin-head small { color: var(--ovz-muted); font-size: 0.66rem; }
.ovz-fin-rows { display: grid; gap: 3px; }
.ovz-fin-row { display: grid; grid-template-columns: 160px 1fr 104px; align-items: center; gap: 16px; border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 9px; cursor: pointer; text-align: left; transition: 0.14s; }
.ovz-fin-row:hover { background: rgba(201, 148, 60, 0.06); }
.ovz-fin-row.is-on { border-color: var(--gold); background: rgba(201, 148, 60, 0.09); }
.ovz-fin-name { display: grid; gap: 2px; min-width: 0; }
.ovz-fin-name strong { font-size: 0.78rem; color: var(--ovz-text); }
.ovz-fin-name small { color: var(--ovz-muted); font-size: 0.62rem; }
.ovz-fin-track { position: relative; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); }
.ovz-fin-track i { position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px; }
.ovz-fin-track i.is-forecast { background: rgba(111, 145, 160, 0.34); }
.ovz-fin-track i.is-actual { top: 4px; height: 8px; border-radius: 99px; background: var(--ovz-time); }
.ovz-fin-track i.is-mark { top: -3px; bottom: -3px; height: auto; width: 2px; border-radius: 99px; background: var(--gold); z-index: 2; }
.ovz-fin-track i.is-revenue { background: linear-gradient(90deg, rgba(122, 160, 93, 0.4), rgba(122, 160, 93, 0.75)); }
.ovz-fin-track i.is-ebita { background: linear-gradient(90deg, rgba(201, 148, 60, 0.4), rgba(201, 148, 60, 0.75)); }
.ovz-fin-row > b { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.76rem; color: var(--ovz-text); }
.ovz-fin-row > b.is-flat { color: var(--ovz-muted); }
.ovz-fin-legend { display: flex; align-items: center; gap: 17px; color: var(--ovz-muted); font-size: 0.58rem; padding-top: 6px; }
.ovz-fin-legend span { display: flex; align-items: center; gap: 6px; }
.ovz-fin-legend em { font-style: normal; display: block; width: 16px; height: 8px; border-radius: 99px; }
.ovz-lg-forecast { background: rgba(111, 145, 160, 0.34); }
.ovz-lg-actual { background: var(--ovz-time); }
.ovz-lg-mark { width: 2px !important; height: 10px !important; background: var(--gold); }
.ovz-lg-revenue { background: rgba(122, 160, 93, 0.6); }
.ovz-lg-ebita { background: rgba(201, 148, 60, 0.6); }
.ovz-fin-note { margin-left: auto; }

/* Herkomstpaneel */
.ovz-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(4, 14, 20, 0.5); opacity: 0; pointer-events: none; transition: 0.2s; }
.ovz-scrim.is-on { opacity: 1; pointer-events: auto; }
.ovz-prov-panel { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(440px, 100%); border-left: 1px solid var(--ovz-border); background: var(--navy); box-shadow: -24px 0 60px rgba(0, 0, 0, 0.34); padding: 22px; overflow: auto; transform: translateX(100%); transition: transform 0.22s; }
[data-theme="light"] .ovz-prov-panel, body.theme-light .ovz-prov-panel { background: var(--white); }
.ovz-prov-panel.is-open { transform: none; }
.ovz-prov-panel.is-detail > header { display: grid; gap: 6px; padding-right: 34px; }
.ovz-prov-panel.is-detail > header h4 { margin: 0; color: var(--ovz-text); font-size: 1.2rem; letter-spacing: -0.015em; }
.ovz-prov-panel.is-detail > .ovz-lead { margin-top: 8px; }
.ovz-prov-panel h3 { margin: 6px 0 5px; font-size: 1.2rem; letter-spacing: -0.015em; color: var(--ovz-text); }
.ovz-prov-panel > p { margin: 0 0 16px; color: var(--ovz-muted); font-size: 0.8rem; line-height: 1.62; }
.ovz-close { position: absolute; top: 18px; right: 18px; border: 1px solid var(--ovz-border); border-radius: 50%; width: 28px; height: 28px; background: transparent; color: var(--ovz-text); cursor: pointer; }
.ovz-prov-kind { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ovz-border); border-radius: 4px; padding: 8px 11px; font-size: 0.73rem; margin-bottom: 15px; color: var(--ovz-text); }
.ovz-prov-kind em { width: 7px; height: 7px; border-radius: 50%; background: var(--ovz-time); font-style: normal; }
.ovz-prov-kind.calc em { background: var(--gold); }
.ovz-prov-kind span { color: var(--ovz-muted); }
.ovz-prov-sec { border-top: 1px solid var(--ovz-border); padding: 13px 0; }
.ovz-prov-sec > small { display: block; color: var(--gold); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 9px; }
.ovz-prov-src { display: flex; width: 100%; align-items: center; gap: 10px; border: 1px solid var(--ovz-border); border-radius: 4px; background: var(--ovz-surface-2); padding: 10px 12px; margin-bottom: 5px; text-align: left; text-decoration: none; font-size: 0.76rem; }
.ovz-prov-src:hover { border-color: var(--gold); }
.ovz-prov-src em { width: 6px; height: 6px; border-radius: 50%; background: var(--ovz-time); font-style: normal; flex: none; }
.ovz-prov-src > span { display: grid; gap: 2px; line-height: 1.35; }
.ovz-prov-src strong { color: var(--ovz-text); }
.ovz-prov-src small { color: var(--ovz-muted); font-size: 0.64rem; }
.ovz-prov-src b { margin-left: auto; color: var(--ovz-muted); font-size: 0.7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ovz-prov-rule { margin: 0; color: var(--ovz-muted); font-size: 0.73rem; line-height: 1.68; }
.ovz-prov-tech { margin: 14px 0 0; border-top: 1px dashed var(--ovz-border); padding-top: 10px; color: var(--ovz-muted); opacity: 0.75; font-size: 0.62rem; }
.ovz-prov-tech code { color: var(--gold); opacity: 0.7; }
.ovz-prov-open { display: block; width: 100%; margin-top: 15px; border: 1px solid var(--gold); border-radius: 4px; padding: 11px; text-align: center; text-decoration: none; color: var(--ovz-text); font-size: 0.8rem; }
.ovz-prov-open:hover { background: rgba(201, 148, 60, 0.12); }

/* Naast elkaar: het blok krijgt een vaste maximale hoogte en beide kolommen
   scrollen zelf. Gestapeld (smal) heeft begrenzen geen zin. */
@media (min-width: 1151px) {
  /* De begrenzing hoort op de kolommen, niet op de grid-container: die zet zijn
     rij op inhoudshoogte, waardoor max-height alleen maar afkapt. Zo blijft een
     kort blok kort en scrollt alleen wat niet past. */
  .ovz-instrument, .ovz-deep { min-height: 0; max-height: 30rem; overflow-y: auto; overscroll-behavior: contain; }
  .ovz-instrument::-webkit-scrollbar, .ovz-deep::-webkit-scrollbar { width: 8px; }
  .ovz-instrument::-webkit-scrollbar-thumb, .ovz-deep::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
  .ovz-instrument::-webkit-scrollbar-track, .ovz-deep::-webkit-scrollbar-track { background: transparent; }
}
@media (max-width: 1150px) {
  .ovz-q-body { grid-template-columns: 1fr; }
  .ovz-instrument { border-right: 0; border-bottom: 1px solid var(--ovz-border); }
  .ovz-radar-wrap, .ovz-matrix-wrap { grid-template-columns: 1fr; gap: 24px; }
  .overzicht-page .ovz-intro-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .overzicht-page .ovz-prov-toggle { margin-left: 0; }
}
@media (max-width: 640px) {
  .ovz-q-body-progressive .ovz-instrument { padding-right: 20px; }
  .ovz-detail-tab { position: static; display: flex; justify-content: center; width: 100%; height: 42px; border-top: 1px solid var(--ovz-border); border-left: 0; }
  .ovz-detail-tab span, .ovz-detail-tab b { writing-mode: horizontal-tb; }
  .ovz-obj, .ovz-objs-head { grid-template-columns: 1fr; gap: 8px; }
  .ovz-fin-head { grid-template-columns: 1fr; }
  .ovz-fin-row { grid-template-columns: 110px 1fr 84px; gap: 9px; }
  .ovz-tl { --ovz-tl-side: 120px; }
}

/* Afgeleide, read-only status in de editor (GOV-DATA-05). Niet handmatig te
   zetten; de kleur volgt het afgeleide niveau. */
.record-editor-field-derived .record-editor-derived-value { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; background: rgba(255,255,255,0.04); font-weight: 700; }
.record-editor-field-derived .record-editor-derived-value::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.record-editor-field-derived.is-ok .record-editor-derived-value::before { background: var(--ok); }
.record-editor-field-derived.is-warn .record-editor-derived-value::before { background: var(--warning); }
.record-editor-field-derived.is-bad .record-editor-derived-value::before { background: var(--danger); }
.record-editor-field-derived.is-unknown .record-editor-derived-value { color: var(--muted); }

/* Account en gebruikersbeheer delen dezelfde rustige B.1-vormtaal. */
.topbar-profile-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.topbar-profile-link:hover .topbar-avatar-name,
.topbar-profile-link:focus-visible .topbar-avatar-name { color: var(--gold); }
.auth-user-badge { color: inherit; text-decoration: none; }

.profile-workspace { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.profile-summary,
.profile-form { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.profile-summary { position: sticky; top: 14px; overflow: hidden; padding: 0 24px 24px; }
.profile-summary::before { content: ""; display: block; height: 4px; margin: 0 -24px 24px; background: linear-gradient(90deg, var(--gold), rgba(201,148,60,.12)); }
.profile-identity-mark { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.profile-identity-mark > span { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.profile-identity-mark > span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent); }
.profile-avatar { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(201,148,60,.38); border-radius: 50%; color: #fff; background: linear-gradient(145deg, rgba(201,148,60,.28), rgba(201,148,60,.08)); box-shadow: 0 12px 30px rgba(0,0,0,.16); font-size: 1.3rem; font-weight: 900; }
.profile-eyebrow,
.profile-form-heading span { color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.profile-summary h2,
.profile-form-heading h2 { margin: 5px 0; color: var(--white); letter-spacing: 0; }
.profile-summary > p { color: var(--muted); }
.profile-summary dl { margin: 24px 0 0; }
.profile-summary dl div { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.profile-summary dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.profile-summary dd { margin: 0; color: var(--white); font-weight: 750; }
.profile-summary .profile-access-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.55; }
.profile-form { overflow: hidden; padding: 0 24px 24px; }
.profile-form::before { content: ""; display: block; height: 4px; margin: 0 -24px 22px; background: linear-gradient(90deg, rgba(201,148,60,.72), transparent 65%); }
.profile-form-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-form-heading p { max-width: 360px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: right; }
.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-form > .profile-field-grid { padding: 22px 0; }
.profile-form > .profile-field-grid::before { content: "01  PROFIELGEGEVENS"; grid-column: 1 / -1; color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.profile-field-wide { grid-column: 1 / -1; }
.profile-form label small { color: var(--muted); font-size: .68rem; font-weight: 600; line-height: 1.45; text-transform: none; }
.profile-form label { display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.profile-form input,
.user-admin-toolbar input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; color: var(--white); background: rgba(255,255,255,.045); padding: 9px 11px; font: inherit; text-transform: none; }
.profile-password-section { margin: 0; border: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
.profile-password-section legend { padding: 0 0 6px; color: var(--white); font-weight: 850; }
.profile-section-index { margin-right: 7px; color: var(--gold); font-size: .68rem; letter-spacing: .08em; }
.profile-password-section > p { margin: 0 0 16px; color: var(--muted); font-size: .78rem; }
.profile-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-form-actions p { margin: 0; color: var(--muted); font-size: .8rem; }
.profile-form-actions p[data-state="success"] { color: var(--ok); }
.profile-form-actions p[data-state="error"] { color: var(--danger); }
.profile-form-actions button,
.user-admin-toolbar button { min-height: 40px; border: 1px solid rgba(201,148,60,.55); border-radius: 6px; color: #07161f; background: var(--gold); padding: 8px 16px; font: inherit; font-weight: 900; }

.user-admin-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.beheer-area-tabs { width: min(1380px, 100%); display: flex; gap: 3px; margin: 0 auto 14px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.beheer-area-tabs::-webkit-scrollbar { display: none; }
.beheer-area-tabs a { flex: 0 0 auto; position: relative; color: var(--muted); padding: 10px 13px 12px; font-size: .73rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.beheer-area-tabs a:hover,
.beheer-area-tabs a:focus-visible,
.beheer-area-tabs a.active { color: var(--white); }
.beheer-area-tabs a.active::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: var(--gold); }
.beheer-governed-note { display: grid; gap: 5px; margin: 12px 0; border-left: 2px solid rgba(201,148,60,.58); background: rgba(201,148,60,.055); padding: 12px 14px; }
.beheer-governed-note strong { color: var(--white); font-size: .78rem; }
.beheer-governed-note span { color: var(--muted); font-size: .74rem; line-height: 1.5; }
.user-search { width: min(420px, 100%); display: grid; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.user-admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.user-admin-metrics div { display: grid; gap: 2px; background: var(--surface-glass); padding: 12px 14px; }
.user-admin-metrics strong { color: var(--white); font-size: 1.08rem; }
.user-admin-metrics span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.user-admin-form { margin-top: 16px; }
.user-register li { grid-template-columns: 36px minmax(170px, 1fr) minmax(120px, .45fr) 86px auto; }
.user-register-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(201,148,60,.3); border-radius: 50%; color: var(--gold); background: rgba(201,148,60,.08); font-size: .68rem; font-weight: 900; }
.user-register-role { color: var(--white) !important; }
.user-register-status { display: inline-flex !important; grid-auto-flow: column; align-items: center; justify-content: start; gap: 6px !important; color: var(--muted) !important; }
.user-register-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

html[data-theme="light"] .profile-summary,
html[data-theme="light"] .profile-form,
html[data-theme="light"] .user-admin-metrics div { background: #fff; }
html[data-theme="light"] .profile-avatar { color: #102c38; }
html[data-theme="light"] .profile-form input,
html[data-theme="light"] .user-admin-toolbar input { color: #102c38; background: #f7fafb; }

@media (max-width: 820px) {
  .profile-workspace { grid-template-columns: 1fr; }
  .profile-form-heading { align-items: flex-start; flex-direction: column; }
  .profile-form-heading p { text-align: left; }
  .user-register li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .user-register-role,
  .user-register-status { grid-column: 2; }
  .user-register .item-actions { grid-column: 2 / -1; }
}
@media (max-width: 560px) {
  .profile-field-grid,
  .user-admin-metrics { grid-template-columns: 1fr; }
  .profile-form-actions,
  .user-admin-toolbar { align-items: stretch; flex-direction: column; }
}

/* Final responsive contract for the canonical header; intentionally last. */
@media (max-width: 760px) {
  html[data-theme] body .topbar:has(.topbar-brand) {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
  }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-brand {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-actions {
    width: auto;
    min-width: 112px;
    max-width: none;
    flex: 0 0 auto;
    justify-content: flex-end;
    overflow: visible;
  }
  html[data-theme] body .topbar:has(.topbar-brand) .topbar-avatar-menu {
    width: auto;
    flex-wrap: nowrap;
  }
}

/* Canonical light/dark control: identical interaction in prototype and MOS. */
html[data-theme] body .topbar:has(.topbar-brand) .theme-switch {
  width: 58px;
  min-width: 58px;
  min-height: 30px;
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html[data-theme] body .topbar:has(.topbar-brand) .theme-switch .theme-toggle-control {
  position: relative;
  width: 58px;
  min-width: 58px;
  height: 30px;
  min-height: 30px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 999px !important;
  background: rgba(5,20,28,.34) !important;
  padding: 0 7px !important;
  box-shadow: none !important;
  cursor: pointer;
}

html[data-theme] body .topbar:has(.topbar-brand) .theme-toggle-control span {
  position: relative;
  z-index: 2;
  display: block;
  color: rgba(255,255,255,.54);
  font-size: 12px;
  line-height: 1;
}

html[data-theme] body .topbar:has(.topbar-brand) .theme-toggle-control i {
  position: absolute;
  z-index: 1;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 50%;
  background: #d5a34c;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  transition: transform .22s ease;
}

html[data-theme="dark"] body .topbar:has(.topbar-brand) .theme-toggle-moon { color: #102833; }
html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-switch .theme-toggle-control {
  border-color: rgba(16,44,56,.14) !important;
  background: rgba(255,255,255,.52) !important;
}
html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-toggle-control i { transform: translateX(-28px); }
html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-toggle-sun { color: #102833; }
html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-toggle-moon { color: #71858e; }

@media (max-width: 760px) {
  html[data-theme] body .topbar:has(.topbar-brand) .theme-switch,
  html[data-theme] body .topbar:has(.topbar-brand) .theme-switch .theme-toggle-control {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50% !important;
  }
  html[data-theme] body .topbar:has(.topbar-brand) .theme-switch .theme-toggle-control {
    justify-content: center;
    padding: 0 !important;
  }
  html[data-theme] body .topbar:has(.topbar-brand) .theme-toggle-control i,
  html[data-theme="dark"] body .topbar:has(.topbar-brand) .theme-toggle-sun,
  html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-toggle-moon { display: none; }
  html[data-theme="dark"] body .topbar:has(.topbar-brand) .theme-toggle-moon { color: #d7a44a; font-size: 14px; }
  html[data-theme="light"] body .topbar:has(.topbar-brand) .theme-toggle-sun { color: #a47725; font-size: 14px; }
}

/* Compact navigation bridge between the executive header and page content. */
html[data-theme] body .topbar:has(.topbar-brand) + .page-nav,
html[data-theme] .layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav {
  height: 39px;
  min-height: 38px;
  margin-bottom: -6px;
  background: rgba(11, 39, 51, .94);
  padding-block: 0 !important;
}

html[data-theme] body .topbar:has(.topbar-brand) + .page-nav > a,
html[data-theme] body .topbar:has(.topbar-brand) + .page-nav .nav-group > summary {
  height: 38px;
  min-height: 38px;
}

html[data-theme="light"] body .topbar:has(.topbar-brand) + .page-nav,
html[data-theme="light"] .layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav {
  background: rgba(247, 250, 251, .96);
}

@media (max-width: 760px) {
  html[data-theme] body .topbar:has(.topbar-brand) + .page-nav,
  html[data-theme] .layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav {
    min-height: 37px;
    height: 38px;
    margin-bottom: -7px;
  }
  html[data-theme] body .topbar:has(.topbar-brand) + .page-nav > a,
  html[data-theme] body .topbar:has(.topbar-brand) + .page-nav .nav-group > summary {
    min-height: 37px;
  }
}

/* Progressive disclosure in de editor: gevorderde velden achter een subtiele
   inklap (GOV-DATA-05 / vereenvoudiging). */
.record-wizard-more { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
.record-wizard-more > summary { display: inline-flex; align-items: center; gap: 7px; width: max-content; color: var(--muted); font-size: 0.78rem; font-weight: 700; cursor: pointer; list-style: none; }
.record-wizard-more > summary::-webkit-details-marker { display: none; }
.record-wizard-more > summary::before { content: "›"; color: var(--gold); font-size: 0.95rem; transition: transform 0.15s; }
.record-wizard-more[open] > summary::before { transform: rotate(90deg); }
.record-wizard-more > summary small { color: rgba(255,255,255,0.4); font-weight: 500; }
.record-wizard-more[open] > summary { margin-bottom: 12px; }
html[data-theme="light"] .record-wizard-more { border-top-color: rgba(16,44,56,0.12); }
html[data-theme="light"] .record-wizard-more > summary small { color: rgba(16,44,56,0.45); }
/* Mijn werkzaamheden — canonical workplace concept 01. */
.work-page-b1 .page-intro{display:flex;align-items:center}
.work-create-trigger{display:flex;align-items:center;gap:7px;margin-left:auto;min-height:31px;border:1px solid color-mix(in srgb,var(--gold) 58%,var(--b1-border));border-radius:4px;color:var(--b1-text);background:transparent;padding:0 11px;font-size:.72rem;font-weight:850;cursor:pointer}
.work-create-trigger span{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;color:#071820;background:var(--gold);font-size:1rem;line-height:1}
.work-create-trigger:hover,.work-create-trigger:focus-visible{border-color:var(--gold);background:rgba(201,148,60,.08);outline:none}
.work-page-b1 .work-page-summary.work-cockpit{display:flex;align-items:center;gap:18px;min-height:58px;border:1px solid var(--b1-border);border-left:2px solid var(--gold);border-radius:var(--b1-radius);background:var(--b1-surface);box-shadow:var(--b1-shadow);padding:9px 12px}
.work-directive-copy{display:grid;gap:3px;min-width:0}
.work-directive-copy>span{color:var(--gold);font-size:.62rem;font-weight:900;text-transform:uppercase}
.work-directive-copy h2{margin:0;color:var(--b1-text);font-size:clamp(.94rem,1.25vw,1.12rem)}
.work-directive-copy p{color:var(--b1-muted);font-size:.7rem}
.work-briefing{display:grid;grid-template-columns:minmax(0,1fr) 245px;border:1px solid var(--b1-border);border-left:3px solid var(--gold);border-radius:4px;background:var(--b1-surface);overflow:hidden}.work-briefing-main{padding:20px 22px}.work-briefing-eyebrow{display:block;color:var(--gold);font-size:.59rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.work-briefing h2{max-width:900px;margin:7px 0 8px;color:var(--b1-text);font-family:Georgia,serif;font-size:clamp(1.15rem,1.65vw,1.52rem);font-weight:500;line-height:1.22}.work-briefing-question{max-width:940px;margin:0;color:var(--b1-muted);font-size:.73rem;line-height:1.55}.work-briefing-advice{display:grid;grid-template-columns:86px minmax(0,1fr);gap:12px;margin-top:14px;border-top:1px solid var(--b1-border);padding-top:12px}.work-briefing-advice strong{color:#4f9b7c;font-size:.58rem;letter-spacing:.07em;text-transform:uppercase}.work-briefing-advice.is-incomplete strong{color:var(--gold)}.work-briefing-advice p{margin:0;color:var(--b1-text);font-size:.7rem;line-height:1.45}.work-briefing-action{display:flex;align-items:stretch;justify-content:center;flex-direction:column;gap:9px;border-left:1px solid var(--b1-border);padding:18px}.work-briefing-action>span{color:var(--gold);font-size:.59rem;font-weight:900;text-transform:uppercase}.work-briefing-action>small{color:var(--b1-muted);font-size:.62rem;line-height:1.45}.work-briefing-action button{border:1px solid var(--gold);border-radius:3px;background:var(--gold);color:#10212a;padding:9px 11px;font-size:.65rem;font-weight:900;text-align:left;cursor:pointer}.work-briefing-action button b{float:right}.work-briefing-action button.is-secondary{border-color:var(--b1-border);background:transparent;color:var(--b1-text)}.work-briefing-evidence{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--b1-border);background:var(--b1-surface-soft)}.work-briefing-evidence[hidden]{display:none}.work-briefing-evidence>div{display:grid;gap:3px;border-right:1px solid var(--b1-border);padding:12px 15px}.work-briefing-evidence span{color:var(--b1-muted);font-size:.54rem;font-weight:850;text-transform:uppercase}.work-briefing-evidence strong{font-size:.64rem;line-height:1.4}.work-briefing-evidence>p{grid-column:1/-1;margin:0;border-top:1px solid var(--b1-border);padding:9px 15px;color:var(--b1-muted);font-size:.58rem}
@media(max-width:760px){.work-briefing{grid-template-columns:1fr}.work-briefing-main{padding:16px}.work-briefing-action{border-top:1px solid var(--b1-border);border-left:0;padding:14px 16px}.work-briefing-advice{grid-template-columns:1fr}.work-briefing-evidence{grid-template-columns:1fr}.work-briefing-evidence>div{border-right:0;border-bottom:1px solid var(--b1-border)}}

/* Rolgerichte eerste viewport: live vertaling van mock-up variant 01. */
.work-page-b1 .work-page-summary:has(.work-briefing-stage){display:block;border:0;background:transparent;padding:0;overflow:visible}.work-briefing-stage{display:grid;gap:12px}.work-briefing-heading{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(360px,1.15fr);align-items:end;gap:38px;padding:4px 2px 10px}.work-briefing-heading>div{display:grid;gap:5px}.work-briefing-heading span{color:var(--gold);font-size:.59rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.work-briefing-heading h2{margin:0;color:var(--b1-text);font-family:Georgia,serif;font-size:clamp(1.35rem,2vw,1.85rem);font-weight:500;line-height:1.18}.work-briefing-heading>p{max-width:650px;margin:0;color:var(--b1-muted);font-size:.7rem;line-height:1.6}.work-briefing-stage .work-briefing{grid-template-columns:48px minmax(0,1fr) 238px;align-items:stretch;min-height:210px}.work-briefing-index{padding-top:23px;color:var(--gold);font-family:Georgia,serif;font-size:1.55rem;text-align:center}.work-briefing-stage .work-briefing-main{padding:22px 20px 20px 4px}.work-briefing-stage .work-briefing h3{max-width:900px;margin:8px 0;color:var(--b1-text);font-family:Georgia,serif;font-size:clamp(1.12rem,1.65vw,1.46rem);font-weight:500;line-height:1.25}.work-briefing-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--b1-border);border-radius:4px;background:var(--b1-surface);overflow:hidden}.work-briefing-support{display:grid;grid-template-rows:auto auto 1fr auto;gap:7px;min-height:158px;padding:17px 20px}.work-briefing-support+article{border-left:1px solid var(--b1-border)}.work-briefing-support>span{color:var(--gold);font-size:.56rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.work-briefing-support>strong{color:var(--b1-text);font-size:.78rem;line-height:1.35}.work-briefing-support>p{margin:0;color:var(--b1-muted);font-size:.64rem;line-height:1.5}.work-briefing-support>div{display:flex;align-items:end;justify-content:space-between;gap:15px;border-top:1px solid var(--b1-border);padding-top:9px}.work-briefing-support small{color:var(--b1-muted);font-size:.55rem}.work-briefing-support button{flex:0 0 auto;border:0;background:transparent;color:var(--gold);padding:0;font-size:.6rem;font-weight:850;cursor:pointer}.work-briefing-support.is-empty{opacity:.75}
.work-page-b1 .work-briefing-stage strong{grid-column:auto;grid-row:auto;align-self:auto}.work-page-b1 .work-briefing-stage button{display:inline-flex;grid-template-columns:none;align-items:center;justify-content:space-between;gap:8px;width:auto;min-height:0;border-radius:3px;padding:9px 11px}.work-page-b1 .work-briefing-advice>strong{grid-column:1;grid-row:1}.work-page-b1 .work-briefing-advice>p{grid-column:2;grid-row:1}.work-page-b1 .work-briefing-support button{border:0;background:transparent;color:var(--gold);padding:0}.work-page-b1 .work-briefing-action button{border:1px solid var(--gold);background:var(--gold);color:#10212a}.work-page-b1 .work-briefing-action button.is-secondary{border-color:var(--b1-border);background:transparent;color:var(--b1-text)}
@media(max-width:900px){.work-briefing-heading{grid-template-columns:1fr;gap:8px}.work-briefing-stage .work-briefing{grid-template-columns:42px minmax(0,1fr)}.work-briefing-stage .work-briefing-action{grid-column:1/-1;border-top:1px solid var(--b1-border);border-left:0}.work-briefing-evidence{grid-column:1/-1}}
@media(max-width:700px){.work-briefing-stage{gap:9px}.work-briefing-heading{padding-inline:2px}.work-briefing-heading h2{font-size:1.27rem}.work-briefing-stage .work-briefing{grid-template-columns:34px minmax(0,1fr)}.work-briefing-index{padding-top:18px;font-size:1.15rem}.work-briefing-stage .work-briefing-main{padding:17px 14px 16px 0}.work-page-b1 .work-briefing-advice>strong,.work-page-b1 .work-briefing-advice>p{grid-column:1;grid-row:auto}.work-briefing-support-grid{grid-template-columns:1fr}.work-briefing-support+article{border-top:1px solid var(--b1-border);border-left:0}.work-briefing-support{min-height:0;padding:15px}.work-briefing-support>div{align-items:flex-start;flex-direction:column}}
.work-page-b1 .work-briefing-stage{gap:9px}.work-page-b1 .work-briefing-heading{display:flex;grid-template-columns:none;align-items:baseline;gap:9px;padding:1px 2px 4px}.work-page-b1 .work-briefing-heading>span{font-size:.55rem}.work-page-b1 .work-briefing-heading>h2{margin:0;color:var(--b1-muted);font-family:inherit;font-size:.68rem;font-weight:750;line-height:1.2}.work-page-b1 .work-briefing-heading>p{display:none}
@media(max-width:700px){.work-page-b1 .work-briefing-heading>h2{font-size:.64rem}}
.work-page-b1 .work-briefing-stage{gap:0;border:1px solid var(--b1-border);border-left:2px solid var(--gold);border-radius:4px;background:var(--b1-surface);overflow:hidden}.work-page-b1 .work-briefing-heading{padding:9px 13px;border-bottom:1px solid var(--b1-border);background:var(--b1-surface-soft)}.work-page-b1 .work-briefing{min-height:176px;border:0;border-radius:0;background:transparent}.work-page-b1 .work-briefing-main{padding-top:17px;padding-bottom:15px}.work-page-b1 .work-briefing-index{padding-top:18px}.work-page-b1 .work-briefing-advice{display:flex;align-items:flex-start;gap:10px;margin-top:9px;padding-top:8px}.work-page-b1 .work-briefing-advice>strong{flex:0 0 auto}.work-page-b1 .work-briefing-advice>p{display:-webkit-box;overflow:hidden;font-size:.64rem;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.work-page-b1 .work-briefing-support-grid{border:0;border-top:1px solid var(--b1-border);border-radius:0;background:transparent}.work-page-b1 .work-briefing-support{min-height:134px;padding:14px 17px}.work-page-b1 .work-briefing-support>p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.work-page-b1 .work-briefing{grid-template-columns:40px minmax(0,1fr) 220px;min-height:0}
.work-page-b1 .work-briefing-index{padding-top:15px;font-size:1.25rem}
.work-page-b1 .work-briefing-main{padding:14px 16px 12px 0}
.work-page-b1 .work-briefing-main h3{margin:5px 0 6px;font-size:clamp(1.02rem,1.4vw,1.3rem)}
.work-page-b1 .work-briefing-question{font-size:.69rem;line-height:1.45}
.work-page-b1 .work-briefing-advice{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;margin-top:7px;padding-top:7px}
.work-page-b1 .work-briefing-advice>p{display:block;overflow:visible;font-size:.62rem;line-height:1.38}
.work-page-b1 .work-briefing-action{justify-content:flex-start;gap:6px;padding:13px 14px}
.work-page-b1 .work-briefing-action>small{font-size:.59rem;line-height:1.35}
.work-page-b1 .work-briefing-action button{padding:7px 9px}
.work-page-b1 .work-briefing-advice>strong{color:#4f9b7c;font-family:var(--governance-brief-body,Inter,ui-sans-serif,system-ui,sans-serif);font-size:.58rem;font-weight:850;line-height:1.35;letter-spacing:.06em;text-transform:uppercase}
.work-page-b1 .work-briefing-advice.is-incomplete>strong{color:var(--gold)}
@media(max-width:900px){.work-page-b1 .work-briefing{grid-template-columns:38px minmax(0,1fr)}.work-page-b1 .work-briefing-action{grid-column:1/-1;border-top:1px solid var(--b1-border);border-left:0}}
@media(max-width:700px){.work-page-b1 .work-briefing{grid-template-columns:30px minmax(0,1fr)}.work-page-b1 .work-briefing-index{padding-top:14px;font-size:1.05rem}.work-page-b1 .work-briefing-main{padding:13px 12px 12px 0}.work-page-b1 .work-briefing-advice{grid-template-columns:1fr;gap:4px}}
.work-page-b1 .work-register-module{display:block;border:1px solid var(--b1-border);border-radius:4px;background:var(--b1-surface);padding:0;overflow:hidden}.work-page-b1 .work-register-module>summary{display:grid;grid-template-columns:minmax(180px,auto) minmax(0,1fr) 14px;align-items:center;gap:16px;list-style:none;padding:11px 14px;cursor:pointer}.work-page-b1 .work-register-module>summary::-webkit-details-marker{display:none}.work-page-b1 .work-register-module>summary>span:first-child{display:grid;gap:1px}.work-page-b1 .work-register-module>summary small{color:var(--gold);font-size:.54rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.work-page-b1 .work-register-module>summary strong{color:var(--b1-text);font-size:.76rem}.work-page-b1 .work-register-module>summary>span:last-child{justify-self:end;color:var(--b1-muted);font-size:.62rem}.work-page-b1 .work-register-module>summary:after{content:"⌄";color:var(--gold);font-size:.7rem;transition:transform .18s}.work-page-b1 .work-register-module[open]>summary{border-bottom:1px solid var(--b1-border)}.work-page-b1 .work-register-module[open]>summary:after{transform:rotate(180deg)}.work-register-module-body{display:grid;gap:8px}.work-page-b1 .work-pm-register-module .pm-regie-overview{padding:9px}.work-page-b1 .work-pm-register-module .pm-regie-overview:empty{display:none}
.work-page-b1 .work-register-module.work-regie-queue>summary,.work-page-b1 .work-register-module.work-audit-module>summary{margin:0}.work-page-b1 .work-register-module.work-regie-queue>.section-heading,.work-page-b1 .work-register-module.work-regie-queue>.strategic-chain{margin-right:14px;margin-left:14px}.work-page-b1 .work-register-module.work-audit-module>.audit-history{padding:9px}
@media(max-width:700px){.work-page-b1 .work-briefing{min-height:0}.work-page-b1 .work-briefing-advice{display:grid}.work-page-b1 .work-register-module>summary{grid-template-columns:minmax(120px,1fr) minmax(0,1fr) 12px;align-items:start;padding:10px}.work-page-b1 .work-register-module>summary>span:last-child{text-align:right;line-height:1.4}.work-page-b1 .work-briefing-support{min-height:0}}

/* Canonieke typografie voor bestuurlijke brieven op Werk, Programma's en Projecten. */
:root {
  --governance-brief-display: Georgia, "Times New Roman", serif;
  --governance-brief-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.work-briefing-stage .work-briefing h3,
.program-brief-attention h2,
.project-priority-judgement h2 {
  margin: 0;
  color: var(--b1-text);
  font-family: var(--governance-brief-display);
  font-size: clamp(1.15rem, 1.5vw, 1.38rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
  text-transform: none;
}

.work-briefing-eyebrow,
.program-brief-status,
.project-priority-status,
.work-briefing-action > span,
.program-brief-choice > span,
.project-priority-intervention > span {
  font-family: var(--governance-brief-body);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-briefing-question,
.program-brief-attention p,
.project-priority-judgement p {
  font-family: var(--governance-brief-body);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.work-briefing-action button,
.program-brief-choice button,
.project-priority-intervention button {
  font-family: var(--governance-brief-body);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0;
}

@media (max-width: 700px) {
  .work-briefing-stage .work-briefing h3,
  .program-brief-attention h2,
  .project-priority-judgement h2 { font-size: 1.12rem; }
}
.work-page-b1 .work-page-summary.work-cockpit>button{display:flex;align-items:center;gap:9px;width:auto;min-height:30px;margin-left:auto;border:1px solid var(--gold);border-radius:4px;color:#071820;background:var(--gold);padding:0 10px;font-size:.68rem;font-weight:900;white-space:nowrap}
.work-page-b1 .work-page-summary.work-cockpit>button span{color:#071820}
.work-page-b1>.work-page-module:not(.work-regie-queue):not(.work-audit-module){gap:8px;padding:0}
.work-filter-module{margin:8px 10px 0;border:1px solid var(--b1-border);border-radius:4px;background:var(--b1-surface-soft)}
.work-filter-module>summary{display:flex;align-items:center;gap:10px;padding:8px 10px;color:var(--b1-text);font-size:.72rem;font-weight:850;cursor:pointer}
.work-filter-module>summary span{margin-left:auto;color:var(--b1-muted);font-size:.66rem;font-weight:600}
.work-filter-module .my-work-filters{margin:0;border:0;border-top:1px solid var(--b1-border);border-radius:0}
.work-page-b1 .work-bulk-toolbar{margin:0 10px}
.work-page-b1 .work-page-list{max-height:none;padding:0}
.work-page-b1 .work-kreg-wrap{border:0;border-radius:0;background:transparent}
.work-view-switch{display:flex;align-items:center;gap:3px;border-bottom:1px solid var(--b1-border);background:var(--b1-surface-soft);padding:7px 10px}
.work-view-switch button,.work-focus-switch button{border:0;border-radius:3px;color:var(--b1-muted);background:transparent;padding:6px 9px;font-size:.68rem;font-weight:750;cursor:pointer}
.work-view-switch button.is-active,.work-focus-switch button.is-active{color:var(--b1-text);background:color-mix(in srgb,var(--b1-text) 5%,transparent);font-weight:900}
.work-view-switch button b,.work-focus-switch button b{margin-left:6px;color:var(--gold)}
.work-view-switch>small{margin-left:auto;color:var(--b1-muted);font-size:.64rem}
.work-page-b1 .work-kreg-wrap>.kreg-header{display:grid;grid-template-columns:auto minmax(300px,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--b1-border);padding:9px 10px}
.work-focus-switch{display:flex;justify-self:start;gap:2px;border:1px solid var(--b1-border);border-radius:4px;padding:2px}
.work-page-b1 .work-kreg-wrap>.kreg-col-head{border-radius:0;border-width:0 0 1px;padding-right:12px;padding-left:12px}
.work-page-b1 .work-kreg-wrap>.kreg-rows{max-height:min(660px,68vh);padding:0}
.work-page-b1 .work-kreg-row{border-width:0 0 1px;border-radius:0;padding-right:12px;padding-left:12px}
.work-page-b1 .work-kreg-expanded{border-width:0 0 1px;border-radius:0}
.work-create-modal{z-index:9100;align-items:center;justify-content:center;background:rgba(2,12,18,.76);backdrop-filter:blur(7px)}
.work-create-modal:not([hidden]){display:flex}
.work-create-panel{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid color-mix(in srgb,var(--gold) 34%,var(--b1-border));border-radius:6px;color:var(--b1-text);background:var(--b1-surface);box-shadow:0 28px 90px rgba(0,0,0,.48)}
.work-create-panel>header{display:flex;align-items:flex-start;gap:16px;border-bottom:1px solid var(--b1-border);padding:18px 20px}
.work-create-panel>header>div{display:grid;gap:3px}
.work-create-panel>header span,.work-create-group-head>span{color:var(--gold);font-size:.62rem;font-weight:900;text-transform:uppercase}
.work-create-panel>header h2{margin:0;color:var(--b1-text);font-size:1.35rem}
.work-create-panel>header p{margin:0;color:var(--b1-muted);font-size:.74rem}
.work-create-panel>header button{display:grid;place-items:center;width:30px;height:30px;margin-left:auto;border:1px solid var(--b1-border);border-radius:50%;color:var(--b1-text);background:transparent;font-size:1.2rem;cursor:pointer}
.work-create-panel>section{display:grid;gap:9px;border-bottom:1px solid var(--b1-border);padding:14px 20px}
.work-create-panel>section.work-create-analysis{background:var(--b1-surface-soft)}
.work-create-group-head{display:flex;align-items:center;justify-content:space-between}
.work-create-group-head small{color:var(--b1-muted);font-size:.62rem}
.work-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.work-create-analysis .work-create-grid{grid-template-columns:1fr}
.work-create-grid>button{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--b1-border);border-radius:4px;color:var(--b1-text);background:transparent;padding:10px;text-align:left;cursor:pointer}
.work-create-grid>button:hover,.work-create-grid>button:focus-visible{border-color:color-mix(in srgb,var(--gold) 48%,var(--b1-border));background:rgba(201,148,60,.06);outline:none}
.work-create-grid .object-identity-marker{grid-column:1}
.work-create-grid button>span{display:grid;gap:2px;min-width:0}
.work-create-grid strong{font-size:.76rem}.work-create-grid small{color:var(--b1-muted);font-size:.66rem}.work-create-grid button>b{color:var(--gold)}
html[data-theme="light"] .work-create-modal{background:rgba(16,44,56,.38)}
@media(max-width:900px){.work-page-b1 .work-kreg-wrap>.kreg-header{grid-template-columns:1fr}.work-focus-switch{max-width:100%;overflow:auto}.work-page-b1 .work-kreg-wrap>.kreg-controls{justify-self:start}.work-view-switch{align-items:flex-start;flex-direction:column}.work-view-switch>small{margin-left:0}}
@media(max-width:620px){.work-page-b1 .work-page-summary.work-cockpit{align-items:flex-start;flex-direction:column;gap:10px}.work-page-b1 .work-page-summary.work-cockpit>button{margin-left:0}.work-view-switch>div{display:flex;min-width:max-content}.work-view-switch{overflow:auto}.work-create-grid{grid-template-columns:1fr}.work-create-panel>header,.work-create-panel>section{padding-right:13px;padding-left:13px}.work-filter-module>summary span{display:none}}

/* Programmamanager regieoverzicht: one tenant source, grouped for operational steering. */
.pm-regie-overview{display:grid;gap:8px;min-width:0}
.pm-regie-signal{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:15px;border:1px solid var(--b1-border);border-left:3px solid var(--gold);border-radius:4px;background:var(--b1-surface);padding:13px 15px}
.pm-regie-signal>div:nth-child(2){display:grid;gap:3px;min-width:0}.pm-regie-signal>div:nth-child(2)>span,.pm-regie-panel>header>div>span{color:var(--gold);font-size:.58rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pm-regie-signal h2{margin:0;color:var(--b1-text);font-size:1.02rem}.pm-regie-signal p{margin:0;color:var(--b1-muted);font-size:.68rem;line-height:1.45}.pm-regie-signal>button{border:1px solid color-mix(in srgb,var(--gold) 55%,var(--b1-border));border-radius:3px;color:var(--b1-text);background:transparent;padding:8px 11px;font-size:.65rem;font-weight:850;cursor:pointer}.pm-regie-signal>button b{margin-left:8px;color:var(--gold)}
.pm-regie-dial{position:relative;width:44px;height:44px;border:1px solid var(--b1-border);border-radius:50%}.pm-regie-dial:before{position:absolute;inset:8px;border:1px solid var(--b1-border);border-radius:50%;content:""}.pm-regie-dial i{position:absolute;top:7px;left:20px;width:3px;height:14px;background:var(--gold);transform:rotate(38deg);transform-origin:bottom}.pm-regie-dial b{position:absolute;right:6px;top:12px;width:5px;height:5px;border-radius:50%;background:#ba5b60}
.pm-regie-pulses{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.pm-regie-pulses>button{display:grid;gap:2px;min-width:0;border:1px solid var(--b1-border);border-top:2px solid transparent;border-radius:3px;color:var(--b1-text);background:var(--b1-surface);padding:10px 12px;text-align:left;cursor:pointer}.pm-regie-pulses>button:hover,.pm-regie-pulses>button.is-active{border-top-color:var(--gold);background:color-mix(in srgb,var(--gold) 5%,var(--b1-surface))}.pm-regie-pulses span{overflow:hidden;color:var(--b1-muted);font-size:.58rem;font-weight:850;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.pm-regie-pulses strong{font-size:1.28rem}.pm-regie-pulses small{overflow:hidden;color:var(--b1-muted);font-size:.58rem;text-overflow:ellipsis;white-space:nowrap}.pm-regie-pulses .has-attention strong{color:#ba5b60}
.pm-regie-panel{min-width:0;border:1px solid var(--b1-border);border-radius:4px;background:var(--b1-surface);overflow:hidden}.pm-regie-panel>header{display:flex;align-items:end;justify-content:space-between;gap:18px;border-bottom:1px solid var(--b1-border);padding:12px 14px}.pm-regie-panel>header>div{display:grid;gap:2px}.pm-regie-panel>header h2{margin:0;color:var(--b1-text);font-size:.92rem}.pm-regie-panel>header p{margin:0;color:var(--b1-muted);font-size:.62rem}.pm-regie-panel>header nav,.pm-regie-filters>div{display:flex;gap:2px;padding:2px;border:1px solid var(--b1-border);border-radius:3px;background:var(--b1-surface-soft);overflow:auto}.pm-regie-panel nav button,.pm-regie-filters button{min-width:max-content;border:0;border-radius:2px;color:var(--b1-muted);background:transparent;padding:6px 8px;font-size:.6rem;font-weight:800;cursor:pointer}.pm-regie-panel nav button.is-active,.pm-regie-filters button.is-active{color:var(--b1-text);background:var(--b1-surface);box-shadow:inset 0 -1px var(--gold)}
.pm-regie-filters{display:flex;align-items:end;gap:10px;border-bottom:1px solid var(--b1-border);padding:8px 14px}.pm-regie-filters label{display:grid;gap:3px;margin-left:auto;color:var(--b1-muted);font-size:.56rem}.pm-regie-filters select{min-width:135px;border:1px solid var(--b1-border);border-radius:3px;color:var(--b1-text);background:var(--b1-surface-soft);padding:6px;font:inherit;font-size:.62rem}
.pm-regie-columns,.pm-regie-group>summary{display:grid;grid-template-columns:minmax(210px,1.45fr) 55px 55px 74px 55px 104px 22px;align-items:center;gap:8px}.pm-regie-columns{padding:7px 14px;color:var(--b1-muted);background:var(--b1-surface-soft);font-size:.54rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.pm-regie-group{border-top:1px solid var(--b1-border)}.pm-regie-group:first-child{border-top:0}.pm-regie-group>summary{list-style:none;padding:10px 14px;cursor:pointer}.pm-regie-group>summary::-webkit-details-marker{display:none}.pm-regie-group>summary:hover{background:var(--b1-surface-soft)}.pm-regie-group>summary>b{font-size:.67rem}.pm-regie-group>summary>.is-late{color:#ba5b60}.pm-regie-group>summary>em{color:var(--b1-muted);font-style:normal;transition:transform .18s}.pm-regie-group[open]>summary>em{transform:rotate(180deg)}
.pm-regie-identity{display:flex;align-items:center;gap:9px;min-width:0}.pm-regie-identity>i{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:1px solid color-mix(in srgb,var(--gold) 35%,var(--b1-border));border-radius:50%;color:var(--gold);font-size:.58rem;font-style:normal;font-weight:850}.pm-regie-identity>span{display:grid;gap:1px;min-width:0}.pm-regie-identity strong,.pm-regie-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pm-regie-identity strong{font-size:.68rem}.pm-regie-identity small{color:var(--b1-muted);font-size:.56rem}.pm-regie-load{display:grid;gap:4px}.pm-regie-load>strong{font-size:.58rem}.pm-regie-load>i{height:3px;background:var(--b1-border)}.pm-regie-load>i>b{display:block;height:100%;background:#4f9b7c}.pm-regie-load.is-attention>i>b{background:var(--gold)}.pm-regie-load.is-high>i>b{background:#ba5b60}.pm-regie-load.is-high>strong{color:#ba5b60}
.pm-regie-item-head,.pm-regie-item{display:grid;grid-template-columns:minmax(230px,1.25fr) minmax(200px,1fr) minmax(180px,.85fr) 116px;gap:0;margin-inline:14px;border:1px solid var(--b1-border)}.pm-regie-item-head{border-bottom:0;color:var(--b1-muted);background:var(--b1-surface-soft);font-size:.52rem;font-weight:850;text-transform:uppercase}.pm-regie-item-head span{padding:7px 9px}.pm-regie-item{border-bottom:0;background:var(--b1-surface-soft)}.pm-regie-item:last-child{margin-bottom:12px;border-bottom:1px solid var(--b1-border)}.pm-regie-item>div{display:grid;align-content:center;gap:3px;min-width:0;border-left:1px solid var(--b1-border);padding:9px}.pm-regie-item>div:first-child{border-left:0}.pm-regie-item>div>strong,.pm-regie-item>div>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pm-regie-item>div>strong{font-size:.62rem}.pm-regie-item>div>small{color:var(--b1-muted);font-size:.54rem}.pm-regie-object{display:flex!important;grid-auto-flow:column;align-items:center!important;justify-content:start}.pm-regie-object .object-identity-marker{flex:0 0 auto}.pm-regie-object>span{display:grid;gap:2px;min-width:0}.pm-regie-item-actions{align-content:center!important}.pm-regie-item-actions button{border:0;color:var(--b1-muted);background:transparent;padding:2px 0;font-size:.56rem;font-weight:800;text-align:left;cursor:pointer}.pm-regie-item-actions button:first-child{color:var(--gold)}.pm-regie-empty{margin:0;padding:18px;color:var(--b1-muted);font-size:.68rem}
@media(max-width:1000px){.pm-regie-pulses{grid-template-columns:repeat(3,1fr)}.pm-regie-panel>header{align-items:flex-start;flex-direction:column}.pm-regie-panel>header nav{max-width:100%}.pm-regie-columns,.pm-regie-group>summary{grid-template-columns:minmax(180px,1.3fr) repeat(4,50px) 92px 20px}.pm-regie-item-head,.pm-regie-item{grid-template-columns:1fr}.pm-regie-item-head{display:none}.pm-regie-item>div{border-top:1px solid var(--b1-border);border-left:0}.pm-regie-item>div:first-child{border-top:0}.pm-regie-item-actions{grid-auto-flow:column!important;justify-content:start}}
@media(max-width:700px){.pm-regie-signal{grid-template-columns:38px 1fr;padding:11px}.pm-regie-dial{width:34px;height:34px}.pm-regie-dial i{top:5px;left:15px;height:12px}.pm-regie-signal h2{font-size:.84rem}.pm-regie-signal>button{grid-column:1/-1;width:100%}.pm-regie-pulses{grid-template-columns:repeat(2,1fr)}.pm-regie-filters{align-items:stretch;flex-direction:column}.pm-regie-filters label{margin-left:0}.pm-regie-columns{display:none}.pm-regie-group>summary{grid-template-columns:minmax(0,1fr) auto auto;padding:10px}.pm-regie-group>summary>b:nth-of-type(2),.pm-regie-group>summary>b:nth-of-type(3),.pm-regie-group>summary>b:nth-of-type(4){display:none}.pm-regie-load{width:72px}.pm-regie-group>summary>em{display:none}.pm-regie-item-head,.pm-regie-item{margin-inline:8px}.pm-regie-item-actions button{font-size:.62rem}}

/* Canonical financial roll-up: programs aggregate projects, never loose child records. */
.program-finance-rollup{display:grid;gap:18px}
.program-finance-rollup>header{display:flex;align-items:end;justify-content:space-between;gap:24px}
.program-finance-rollup>header span,.program-finance-rollup>header small{color:var(--muted)}
.program-finance-rollup>header h3{margin:4px 0 0}
.program-finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.program-finance-summary article{position:relative;display:grid;gap:3px;min-width:0;padding:16px 17px 14px;border:1px solid var(--line);border-radius:4px;background:color-mix(in srgb,var(--panel) 88%,transparent);overflow:hidden}
.program-finance-summary article:before{position:absolute;inset:0 auto 0 0;width:2px;background:var(--accent,#d8a23f);content:"";opacity:.72}
.program-finance-summary article.is-costs:before{background:#6d89a2}
.program-finance-summary article.is-revenues:before{background:#4f9b7c}
.program-finance-summary article>span{color:var(--muted);font-size:.68rem;font-weight:800;text-transform:uppercase}
.program-finance-summary article>strong{font-size:clamp(1.12rem,2vw,1.58rem);letter-spacing:0}
.program-finance-summary article>small{color:var(--muted);font-size:.68rem}
.program-finance-summary article>dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:13px 0 0;padding-top:10px;border-top:1px solid var(--line)}
.program-finance-summary article>dl div{display:grid;gap:2px}
.program-finance-summary dt{color:var(--muted);font-size:.62rem}
.program-finance-summary dd{margin:0;font-size:.75rem;font-weight:750}
.program-finance-summary .is-negative>strong{color:var(--text)}
.program-finance-project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:2px}
.program-finance-project-toolbar>div:first-child{display:grid;gap:2px}
.program-finance-project-toolbar span{font-size:.68rem;font-weight:800;text-transform:uppercase}
.program-finance-project-toolbar small{color:var(--muted)}
.program-finance-project-toolbar>div:last-child{display:flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:4px}
.program-finance-project-toolbar button{min-width:82px;padding:7px 11px;border:0;border-radius:3px;background:transparent;color:var(--muted);font:inherit;font-size:.68rem;font-weight:750;cursor:pointer}
.program-finance-project-toolbar button.is-active{background:color-mix(in srgb,var(--accent,#d8a23f) 12%,var(--panel));color:var(--text)}
.program-finance-projects{display:grid;border-block:1px solid var(--line)}
.program-finance-project{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(360px,1.25fr) auto;align-items:center;gap:14px;width:100%;padding:12px 6px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);text-align:left;transition:background .18s ease,padding .18s ease}
.program-finance-project:first-child{border-top:0}
.program-finance-project:hover,.program-finance-project:focus-visible{padding-inline:12px;background:color-mix(in srgb,var(--accent,#d8a23f) 5%,transparent);outline:none}
.program-finance-project>span{display:grid;gap:3px}
.program-finance-project small,.program-finance-project dt{color:var(--muted)}
.program-finance-project dl{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0}
.program-finance-project dl div{display:grid;gap:3px;text-align:right}
.program-finance-project dd{margin:0;font-weight:700}
.program-finance-project dl .is-negative dd{color:color-mix(in srgb,#ba5b60 78%,var(--text))}
.program-finance-project dl .is-positive dd{color:color-mix(in srgb,#3e9472 78%,var(--text))}
.program-finance-project>i{color:var(--accent,#d8a23f);font-size:1.2rem;font-style:normal}
.program-finance-chart{display:grid;border-block:1px solid var(--line)}
.program-finance-chart[hidden]{display:none}
.finance-chart-period{display:flex;justify-content:flex-end;gap:2px;padding:8px 6px;border-bottom:1px solid var(--line)}
.finance-chart-period button{min-width:76px;padding:6px 10px;border:0;border-radius:3px;background:transparent;color:var(--muted);font:inherit;font-size:.65rem;font-weight:750;cursor:pointer}
.finance-chart-period button.is-active{background:color-mix(in srgb,var(--accent,#d8a23f) 12%,var(--panel));color:var(--text)}
.program-finance-chart>header{display:grid;grid-template-columns:minmax(190px,.8fr) 1fr 1fr;gap:16px;padding:8px 6px;border-bottom:1px solid var(--line);color:var(--muted);text-align:right}
.program-finance-chart-row{display:grid;grid-template-columns:minmax(190px,.8fr) 2fr;align-items:center;gap:16px;width:100%;padding:12px 6px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;cursor:pointer}
.program-finance-chart-row:hover,.program-finance-chart-row:focus-visible{background:color-mix(in srgb,var(--accent,#d8a23f) 5%,transparent);outline:none}
.program-finance-chart-row>span{display:grid;gap:2px}
.program-finance-chart-row>span small{color:var(--muted)}
.program-finance-chart-row>div{display:grid;gap:7px}
.program-finance-chart-row i{display:grid;grid-template-columns:minmax(0,var(--bar)) 1fr;align-items:center;gap:8px;min-width:0;font-style:normal}
.program-finance-chart-row i b{display:block;height:5px;border-radius:2px;background:#71879a;box-shadow:0 0 0 1px color-mix(in srgb,#71879a 28%,transparent)}
.program-finance-chart-row i.is-revenue b{background:#57937a;box-shadow:0 0 0 1px color-mix(in srgb,#57937a 28%,transparent)}
.program-finance-chart-row i em{color:var(--muted);font-size:.68rem;font-style:normal;white-space:nowrap}
.program-finance-chart>footer{display:flex;align-items:center;gap:16px;padding:10px 6px;color:var(--muted);font-size:.65rem}
.program-finance-chart>footer span{display:flex;align-items:center;gap:6px}
.program-finance-chart>footer i{width:16px;height:3px;border-radius:2px;background:#71879a}
.program-finance-chart>footer i.is-revenue{background:#57937a}
.program-finance-chart>footer small{margin-left:auto}
.program-finance-warning{margin:0;padding:10px 12px;border-left:2px solid var(--accent,#d8a23f);color:var(--muted)}

/* Project finance keeps the project basis and execution sources visible separately. */
.project-finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.project-finance-summary article{position:relative;display:grid;gap:3px;padding:15px 16px 13px;border:1px solid var(--line);border-radius:4px;background:color-mix(in srgb,var(--panel) 88%,transparent);overflow:hidden}
.project-finance-summary article:before{position:absolute;inset:0 auto 0 0;width:2px;background:var(--accent,#d8a23f);content:""}
.project-finance-summary article.is-costs:before{background:#71879a}.project-finance-summary article.is-revenues:before{background:#57937a}
.project-finance-summary article>span{color:var(--muted);font-size:.65rem;font-weight:800;text-transform:uppercase}
.project-finance-summary article>strong{font-size:clamp(1.05rem,2vw,1.45rem)}
.project-finance-summary article>small{color:var(--muted);font-size:.65rem}
.project-finance-summary article dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:11px 0 0;padding-top:9px;border-top:1px solid var(--line)}
.project-finance-summary article dl div{display:grid;gap:2px}.project-finance-summary dt{color:var(--muted);font-size:.6rem}.project-finance-summary dd{margin:0;font-size:.72rem;font-weight:750}
.project-money-view-switch{display:flex!important;grid-auto-flow:unset!important;gap:2px!important;padding:2px;border:1px solid var(--line);border-radius:4px}
.project-money-view-switch button{min-width:82px;padding:7px 11px;border:0;border-radius:3px;background:transparent;color:var(--muted);font:inherit;font-size:.68rem;font-weight:750;cursor:pointer}
.project-money-view-switch button.is-active{background:color-mix(in srgb,var(--accent,#d8a23f) 12%,var(--panel));color:var(--text)}
.project-scenario-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0}
.project-scenario-row>span{color:var(--muted);font-size:.63rem;font-weight:800;text-transform:uppercase}
.project-finance-chart{display:grid;border-block:1px solid var(--line)}
.project-finance-chart[hidden]{display:none}
.project-finance-chart>header{display:grid;grid-template-columns:minmax(210px,.9fr) 1fr 1fr;gap:16px;padding:9px 6px;border-bottom:1px solid var(--line);color:var(--muted);text-align:right}
.project-finance-chart>header>div{display:grid;gap:2px;text-align:left}.project-finance-chart>header span{font-size:.66rem;font-weight:800;text-transform:uppercase}
.project-finance-chart-row{display:grid;grid-template-columns:minmax(210px,.9fr) 2fr;align-items:center;gap:16px;width:100%;padding:11px 6px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;cursor:pointer}
.project-finance-chart-row:hover,.project-finance-chart-row:focus-visible{background:color-mix(in srgb,var(--accent,#d8a23f) 5%,transparent);outline:none}
.project-finance-chart-row>span{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:9px}.project-finance-chart-row>span>b{display:grid;gap:2px}.project-finance-chart-row>span small{color:var(--muted);font-weight:400}
.project-finance-chart-row>div{display:grid;gap:7px}.project-finance-chart-row i{display:grid;grid-template-columns:minmax(0,var(--bar)) 1fr;align-items:center;gap:8px;font-style:normal}
.project-finance-chart-row i>b{height:5px;border-radius:2px;background:#71879a}.project-finance-chart-row i.is-revenue>b{background:#57937a}
.project-finance-chart-row em{color:var(--muted);font-size:.66rem;font-style:normal;white-space:nowrap}
.project-finance-chart>footer{display:flex!important;grid-template-columns:none!important;align-items:center;gap:16px!important;margin:0!important;padding:10px 6px!important;border-top:0!important;color:var(--muted);font-size:.64rem}
.project-finance-chart>footer span{display:flex;align-items:center;gap:6px}.project-finance-chart>footer i{width:16px;height:3px;border-radius:2px;background:#71879a}.project-finance-chart>footer i.is-revenue{background:#57937a}.project-finance-chart>footer small{margin-left:auto}
@media(max-width:760px){
  .program-finance-rollup>header{align-items:start;flex-direction:column;gap:6px}
  .program-finance-summary{grid-template-columns:1fr}
  .program-finance-project-toolbar{align-items:start;flex-direction:column}
  .program-finance-project{grid-template-columns:auto 1fr}
  .program-finance-project dl{grid-column:1/-1}
  .program-finance-project>i{display:none}
  .program-finance-chart>header{display:none}
  .finance-chart-period{justify-content:flex-start;overflow-x:auto}
  .program-finance-chart-row{grid-template-columns:1fr}
  .program-finance-chart>footer{align-items:flex-start;flex-wrap:wrap}
  .program-finance-chart>footer small{width:100%;margin-left:0}
  .project-finance-summary{grid-template-columns:1fr}
  .project-money-toolbar{align-items:flex-start;flex-direction:column}
  .project-scenario-row{align-items:flex-start;flex-direction:column}
  .project-finance-chart>header{display:none}
  .project-finance-chart-row{grid-template-columns:1fr}
  .project-finance-chart>footer{align-items:flex-start;flex-wrap:wrap}.project-finance-chart>footer small{width:100%;margin-left:0}
}

/* ==========================================================================
   MOS responsive contract
   Reference viewports: 390, 768, 1366/1440, 1920 and 2560 pixels.
   This final layer keeps every B.1 page on the same layout rules.
   ========================================================================== */

.layout-foundation-b1 .shell > *,
.layout-foundation-b1 .page-section,
.layout-foundation-b1 .work-page-module,
.layout-foundation-b1 .finance-module,
.layout-foundation-b1 .reporting-workspace,
.layout-foundation-b1 .beheer-workspace,
.layout-foundation-b1 .toolstudio-workspace-page {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.layout-foundation-b1 img,
.layout-foundation-b1 svg,
.layout-foundation-b1 canvas {
  max-inline-size: 100%;
}

.layout-foundation-b1 .page-intro {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.layout-foundation-b1 .page-intro-title,
.layout-foundation-b1 .page-intro h2 {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 21-inch and larger monitors should use their space without stretching
   operational rows beyond a readable executive canvas. */
@media (min-width: 1600px) {
  .layout-foundation-b1 {
    --b1-page-max: 1760px;
    --b1-page-x: 22px;
    --b1-gap: 15px;
  }

  .layout-foundation-b1 .shell {
    padding-top: 20px;
    padding-bottom: 32px;
  }
}

@media (min-width: 2200px) {
  .layout-foundation-b1 {
    --b1-page-max: 1960px;
    --b1-page-x: 26px;
    --b1-gap: 16px;
  }
}

/* Laptop and tablet widths: dense components keep their hierarchy, but
   supporting columns yield before labels or controls become unreadable. */
@media (max-width: 1120px) {
  .layout-foundation-b1 .topbar-actions {
    max-inline-size: 46%;
  }

  .layout-foundation-b1 .reporting-workspace,
  .layout-foundation-b1 .finance-control-grid,
  .layout-foundation-b1 .beheer-workspace {
    min-inline-size: 0;
  }

  .layout-foundation-b1 .program-finance-project {
    grid-template-columns: auto minmax(150px, .8fr) minmax(300px, 1.2fr) auto;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .layout-foundation-b1 {
    --b1-page-x: 12px;
    --b1-gap: 12px;
  }

  .layout-foundation-b1 .shell {
    width: 100%;
    padding: 12px var(--b1-page-x) 22px;
  }

  .layout-foundation-b1 .topbar {
    padding-inline: 14px;
  }

  .layout-foundation-b1 .page-nav {
    padding-inline: 12px;
  }

  .layout-foundation-b1 .kreg-header,
  .layout-foundation-b1 .kreg-controls,
  .layout-foundation-b1 .matrix-heading,
  .layout-foundation-b1 .program-finance-rollup > header {
    min-inline-size: 0;
  }

  .layout-foundation-b1 .program-finance-project {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .layout-foundation-b1 .program-finance-project dl {
    grid-column: 1 / -1;
  }

  .layout-foundation-b1 .program-finance-project > i {
    display: none;
  }
}

/* Phone navigation is one readable swipe rail. Dropdowns still use the
   canonical body portal, so they are never clipped by the rail. */
@media (max-width: 760px) {
  .layout-foundation-b1 {
    --b1-page-x: 10px;
    --b1-gap: 10px;
  }

  .layout-foundation-b1 .shell {
    padding-top: 10px;
    padding-bottom: 18px;
  }

  html[data-theme] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav {
    display: flex;
    align-items: stretch;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: 7px;
    scroll-padding-inline: 7px;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav > .nav-primary-link,
  html[data-theme] body.layout-foundation-b1 .page-nav > .nav-group {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav > .nav-primary-link,
  html[data-theme] body.layout-foundation-b1 .page-nav .nav-group > summary {
    width: auto;
    min-width: max-content;
    padding-inline: 9px !important;
    font-size: 10.5px !important;
    line-height: 1.2;
  }

  .layout-foundation-b1 .page-intro {
    min-height: 36px;
    gap: 6px;
    padding-inline: 10px;
  }

  .layout-foundation-b1 .page-intro-label,
  .layout-foundation-b1 .page-intro-sep {
    flex: 0 0 auto;
  }

  .layout-foundation-b1 .page-intro-title,
  .layout-foundation-b1 .page-intro h2 {
    font-size: .72rem;
  }

  .layout-foundation-b1 .detail-controls,
  .layout-foundation-b1 .kreg-header,
  .layout-foundation-b1 .kreg-controls,
  .layout-foundation-b1 .matrix-heading,
  .layout-foundation-b1 .program-finance-project-toolbar,
  .layout-foundation-b1 .project-money-toolbar,
  .layout-foundation-b1 .profile-form-heading,
  .layout-foundation-b1 .user-admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .layout-foundation-b1 .kreg-controls > *,
  .layout-foundation-b1 .kreg-search,
  .layout-foundation-b1 .detail-filter-label,
  .layout-foundation-b1 .detail-filter-label select {
    max-inline-size: 100%;
  }

  .layout-foundation-b1 .finance-chart-period,
  .layout-foundation-b1 .scenario-tabs,
  .layout-foundation-b1 .finance-timing-tabs,
  .layout-foundation-b1 .card-mode-toggle {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .layout-foundation-b1 .finance-chart-period::-webkit-scrollbar,
  .layout-foundation-b1 .scenario-tabs::-webkit-scrollbar,
  .layout-foundation-b1 .finance-timing-tabs::-webkit-scrollbar {
    display: none;
  }

  .layout-foundation-b1 .report-table-scroll,
  .layout-foundation-b1 .manual-table,
  .layout-foundation-b1 .beheer-area-tabs {
    max-inline-size: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .record-editor-panel,
  .record-view-panel,
  .record-edit-panel,
  .detail-modal-panel,
  .beheer-modal-panel,
  .analysis-action-editor,
  .work-create-panel,
  .wf-action-completion__panel,
  .wf-outcome-form {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    margin: 10px;
    overflow: auto;
  }
}

@media (max-width: 480px) {
  .layout-foundation-b1 {
    --b1-page-x: 8px;
    --b1-gap: 9px;
  }

  .layout-foundation-b1 .topbar {
    min-height: 64px;
    padding-inline: 9px;
  }

  .layout-foundation-b1 .page-intro-label,
  .layout-foundation-b1 .page-intro-sep {
    display: none;
  }

  .layout-foundation-b1 .page-intro-title,
  .layout-foundation-b1 .page-intro h2 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .layout-foundation-b1 .kreg-row,
  .layout-foundation-b1 .my-work-row,
  .layout-foundation-b1 .user-register li {
    overflow-wrap: anywhere;
  }

  .layout-foundation-b1 .project-card-sk-header,
  .layout-foundation-b1 .program-card-header,
  .layout-foundation-b1 .sk-obj-header {
    gap: 7px;
    padding-inline: 9px;
  }

  .record-editor-panel,
  .record-view-panel,
  .record-edit-panel,
  .detail-modal-panel,
  .beheer-modal-panel,
  .analysis-action-editor,
  .work-create-panel,
  .wf-action-completion__panel,
  .wf-outcome-form {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    margin: 6px;
    border-radius: 5px;
  }
}

/* Keep this final: older responsive rules must not turn the opened mobile menu
   back into a horizontal navigation rail. */
@media (max-width: 760px) {
  html[data-theme] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px !important;
    scroll-snap-type: none;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > a,
  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    max-width: none;
    margin: 0;
    flex: none;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > a,
  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group > summary {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    border-bottom: 1px solid var(--b1-border);
    padding: 9px 11px !important;
    font-size: 12px !important;
    line-height: 1.3;
    white-space: normal;
  }

  html[data-theme] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group[open] > summary {
    border-bottom-color: var(--gold);
    color: var(--gold) !important;
    background: color-mix(in srgb, var(--gold) 7%, transparent);
  }
}

/* Final light-theme contrast guard: kept last so legacy page rules cannot
   reduce readability of primary navigation or compact header metadata. */
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav > a,
html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav .nav-group > summary,
html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > a,
html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group > summary {
  color: #243f4b !important;
  font-weight: 700;
}

html[data-theme="light"] body.layout-foundation-b1 .topbar-avatar,
html[data-theme="light"] body.layout-foundation-b1 .theme-toggle-sun,
html[data-theme="light"] body.layout-foundation-b1 .theme-toggle-moon {
  color: #243f4b;
}

html[data-theme="light"] body.layout-foundation-b1 .topbar-watch-copy small {
  color: #526a75;
}

@media (max-width: 760px) {
  html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav,
  html[data-theme="light"] body.layout-foundation-b1 .topbar:has(.topbar-brand) + .page-nav[data-mobile-open="true"] {
    border-color: rgba(16, 40, 51, .16);
    background: #fff;
  }

  html[data-theme="light"] body.layout-foundation-b1 .page-nav .nav-mobile-toggle {
    color: #102833 !important;
    background: #f7f9fa !important;
  }

  html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > a,
  html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group > summary {
    border-bottom-color: rgba(16, 40, 51, .13);
  }

  html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > a.active,
  html[data-theme="light"] body.layout-foundation-b1 .page-nav[data-mobile-open="true"] > .nav-group.has-active > summary {
    color: #784b08 !important;
    background: rgba(165, 110, 22, .065) !important;
  }
}

html[data-theme="light"] body.layout-foundation-b1 .page-intro-label,
html[data-theme="light"] body.layout-foundation-b1 .kreg-id,
html[data-theme="light"] body.layout-foundation-b1 .kreg-badge,
html[data-theme="light"] body.layout-foundation-b1 .kreg-add-btn,
html[data-theme="light"] body.layout-foundation-b1 .kreg-filter.is-active,
html[data-theme="light"] body.layout-foundation-b1 .org-layer-tag,
html[data-theme="light"] body.layout-foundation-b1 .profile-eyebrow,
html[data-theme="light"] body.layout-foundation-b1 .profile-form-heading span {
  color: #875910;
}

html[data-theme="light"] body.layout-foundation-b1 .kreg-header-title,
html[data-theme="light"] body.layout-foundation-b1 .kreg-col-head,
html[data-theme="light"] body.layout-foundation-b1 .kreg-filter,
html[data-theme="light"] body.layout-foundation-b1 .kreg-meta,
html[data-theme="light"] body.layout-foundation-b1 .kreg-mid-sub,
html[data-theme="light"] body.layout-foundation-b1 .kreg-mid-arr,
html[data-theme="light"] body.layout-foundation-b1 .kreg-due,
html[data-theme="light"] body.layout-foundation-b1 .kreg-empty {
  color: #526a75;
}

/* Financial actuals import: compact, review-first operational workflow. */
.financial-import-steps { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; margin:0 0 18px; padding:0; list-style:none; counter-reset:import-step; }
.financial-import-steps li { position:relative; padding:9px 8px 9px 28px; border-bottom:1px solid var(--border); color:var(--muted); font-size:11px; font-weight:700; }
.financial-import-steps li::before { counter-increment:import-step; content:counter(import-step); position:absolute; left:5px; top:6px; display:grid; place-items:center; width:20px; height:20px; border:1px solid var(--border); border-radius:50%; font-size:10px; }
.financial-import-steps li.is-active { color:var(--text); border-bottom-color:var(--gold); }
.financial-import-steps li.is-active::before,.financial-import-steps li.is-done::before { border-color:var(--gold); color:var(--gold); }
.financial-import-stage { border-top:1px solid var(--border); padding-top:18px; }
.financial-import-upload { display:grid; grid-template-columns:minmax(220px,1fr) minmax(180px,.45fr); gap:14px 20px; align-items:end; }
.financial-import-upload > div:first-child { align-self:center; }
.financial-import-upload strong,.financial-import-upload span { display:block; }
.financial-import-upload span { margin-top:4px; color:var(--muted); font-size:12px; }
.financial-import-upload input,.financial-import-mapping select { width:100%; min-height:42px; border:1px solid var(--border); border-radius:5px; background:var(--surface-soft); color:var(--text); padding:8px 10px; }
.financial-import-actions { display:flex; justify-content:flex-end; gap:8px; grid-column:1/-1; }
.financial-import-actions button,.financial-import-stage > button { min-height:38px; padding:8px 14px; border:1px solid var(--border); border-radius:5px; background:var(--surface-soft); color:var(--text); font-weight:700; }
.financial-import-actions button:last-child:not(:disabled),#financialImportNew { border-color:var(--gold); background:var(--gold); color:#10212a; }
.financial-import-actions button:disabled { opacity:.45; cursor:not-allowed; }
.financial-import-summary { display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; padding:12px 14px; background:var(--surface-soft); border-left:2px solid var(--gold); }
.financial-import-summary span { color:var(--muted); }
.financial-import-mapping { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; margin-bottom:16px; }
.financial-import-mapping label span { display:block; margin-bottom:5px; color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; }
.financial-import-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin-bottom:14px; background:var(--border); border:1px solid var(--border); }
.financial-import-metrics article { padding:12px 14px; background:var(--surface); }
.financial-import-metrics span,.financial-import-metrics strong { display:block; }
.financial-import-metrics span { color:var(--muted); font-size:11px; text-transform:uppercase; }
.financial-import-metrics strong { margin-top:3px; font-size:22px; }
.financial-import-metrics .is-error strong { color:#d85d58; }
.financial-import-table-wrap { width:100%; min-width:0; max-height:430px; overflow:auto; border:1px solid var(--border); margin-bottom:14px; }
.financial-import-table { width:100%; border-collapse:collapse; font-size:12px; }
.financial-import-table th { position:sticky; top:0; z-index:1; padding:9px 10px; background:var(--surface-soft); color:var(--muted); text-align:left; white-space:nowrap; }
.financial-import-table td { padding:10px; border-top:1px solid var(--border); vertical-align:top; }
.financial-import-table td small { display:block; margin-top:3px; color:var(--muted); }
.financial-import-table tr.is-rejected { background:color-mix(in srgb,#d85d58 8%,transparent); }
.financial-import-status { display:block; max-width:260px; color:var(--muted); line-height:1.35; }
.is-rejected .financial-import-status { color:#d85d58; }
.financial-import-result { padding:24px; border-left:3px solid #3ea675; background:color-mix(in srgb,#3ea675 7%,var(--surface)); }
.financial-import-result span,.financial-import-result strong,.financial-import-result small { display:block; }
.financial-import-result strong { margin:5px 0; font-size:24px; }
.financial-import-result p,.financial-import-result small { color:var(--muted); }
.financial-import-history { margin-top:20px; border-top:1px solid var(--border); }
.financial-import-panel,.financial-import-panel details,.financial-import-panel details>div { min-width:0; max-width:100%; }
.financial-import-panel details { width:100%; overflow:hidden; }
.financial-import-history summary { padding:14px 0; cursor:pointer; }
.financial-import-history summary small,.financial-import-history summary strong { display:block; }
.financial-import-history summary small { color:var(--gold); text-transform:uppercase; font-size:10px; }
#financialImportHistory article { display:grid; grid-template-columns:1fr auto auto; gap:14px; align-items:center; padding:10px 0; border-top:1px solid var(--border); }
#financialImportHistory article:has(.financial-batch-reversal),#financialImportHistory article:has(.financial-reversal-note) { grid-template-columns:minmax(220px,1fr) auto auto minmax(180px,.55fr); }
#financialImportHistory article span small { display:block; color:var(--muted); }
#financialImportHistory article em { font-style:normal; color:var(--muted); }
#financialImportHistory article em.is-completed { color:#3ea675; }
#financialImportHistory article em.is-reversed { color:#c47672; }
.financial-batch-reversal summary { cursor:pointer; color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; }
.financial-batch-reversal label { display:block; margin:8px 0; color:var(--muted); font-size:10px; }
.financial-batch-reversal input { width:100%; margin-top:4px; }
.financial-batch-reversal button { width:100%; }
.financial-reversal-note { color:var(--muted); }
.financial-period-list { display:grid; gap:8px; }
.financial-period-row { display:grid; grid-template-columns:minmax(260px,1fr) auto minmax(280px,.8fr); gap:16px; align-items:center; padding:14px; border:1px solid var(--border); background:var(--surface-soft); }
.financial-period-row>div:first-child span,.financial-period-row>div:first-child strong,.financial-period-row>div:first-child small { display:block; }
.financial-period-row>div:first-child span { color:var(--gold); font-size:11px; font-weight:850; letter-spacing:.08em; }
.financial-period-row>div:first-child strong { margin:3px 0; font-size:20px; }
.financial-period-row>div:first-child small,.financial-period-locked { color:var(--muted); }
.financial-period-row>em { font-style:normal; font-size:11px; font-weight:850; text-transform:uppercase; }
.financial-period-row.is-reconciled>em { color:var(--gold); }
.financial-period-row.is-closed>em { color:#3ea675; }
.financial-period-action { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:end; }
.financial-period-action label { color:var(--muted); font-size:10px; }
.financial-period-action input { width:100%; margin-top:4px; }
.financial-reconciliation { margin-top:12px; }
.financial-reconciliation-metrics { margin-top:2px; }
.financial-reconciliation-table td strong { display:block; }
.financial-actual-source,.financial-value-source { display:inline-flex!important; width:max-content; margin-top:4px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.financial-actual-source.is-import,.financial-value-source.is-import { color:#3ea675; }
.financial-actual-source.is-manual,.financial-value-source.is-manual { color:var(--gold); }
.cost-source-row dd .financial-value-source { margin-left:auto; }
.financial-import-feedback { min-height:20px; margin:12px 0 0; color:var(--muted); }
.financial-import-feedback.is-error { color:#d85d58; }
html[data-theme="light"] .financial-import-mapping label span,html[data-theme="light"] .financial-import-table th,html[data-theme="light"] .financial-import-feedback { color:#526a75; }
html[data-theme="light"] .financial-import-feedback.is-error,html[data-theme="light"] .is-rejected .financial-import-status { color:#943b36; }
@media(max-width:760px){.financial-import-steps{grid-template-columns:repeat(3,1fr)}.financial-import-upload,.financial-import-mapping{grid-template-columns:1fr}.financial-import-actions{justify-content:stretch;flex-direction:column}.financial-import-actions button{width:100%}.financial-import-table-wrap{max-height:60vh}.financial-period-row,#financialImportHistory article:has(.financial-batch-reversal),#financialImportHistory article:has(.financial-reversal-note){grid-template-columns:1fr}.financial-period-action{grid-template-columns:1fr}}

/* Approved programme-detail prototype, ported one-to-one. Keep this component
   self-contained: live data may change, its visual contract may not. */
.record-view-content .program-concept-live {
  --surface:#0b222d;
  --surface-soft:#142f3a;
  --text:#eef3f5;
  --muted:#8da0a8;
  --line:rgba(236,243,245,.13);
  --success:#65a991;
  min-width:0;
  color:var(--text);
}
html[data-theme="light"] .record-view-content .program-concept-live {
  --surface:#fff;
  --surface-soft:#edf2f3;
  --text:#102c38;
  --muted:#61737a;
  --line:rgba(16,44,56,.14);
}
.record-view-content .program-concept-live button { font:inherit; }
.record-view-content .program-concept-live h3,
.record-view-content .program-concept-live p { margin:0; }
.record-view-content .program-concept-live .program-head { display:flex;align-items:center;gap:10px;margin-bottom:9px; }
.record-view-content .program-concept-live .program-mark { display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--gold);border-radius:50%;color:var(--gold);font-size:12px;font-weight:900; }
.record-view-content .program-concept-live .program-head>div:not(.program-state) { display:grid;gap:1px;min-width:0; }
.record-view-content .program-concept-live .program-head h3 { overflow:hidden;color:var(--text);font-size:14px;text-overflow:ellipsis;white-space:nowrap; }
.record-view-content .program-concept-live .program-head small { color:var(--muted);font-size:9px; }
.record-view-content .program-concept-live .program-state { margin-left:auto;border-left:2px solid var(--success,#65a991);padding:3px 8px; }
.record-view-content .program-concept-live .program-state span { display:block;color:var(--muted);font-size:8px; }
.record-view-content .program-concept-live .program-state strong { color:var(--text);font-size:10px; }
.record-view-content .program-concept-live .executive-answer { display:grid;grid-template-columns:minmax(0,1fr) repeat(3,minmax(105px,.2fr)) 150px;align-items:center;min-height:76px;margin-bottom:8px;border:1px solid var(--line);border-left:3px solid var(--gold);background:var(--surface);overflow:hidden; }
.record-view-content .program-concept-live .executive-copy { display:grid;gap:3px;padding:12px 14px; }
.record-view-content .program-concept-live .executive-copy span { color:var(--gold);font-size:8px;font-weight:900;text-transform:uppercase; }
.record-view-content .program-concept-live .executive-copy strong { color:var(--text);font-family:Georgia,serif;font-size:15px;font-weight:500;line-height:1.2; }
.record-view-content .program-concept-live .executive-copy small { color:var(--muted);font-size:8px;line-height:1.4; }
.record-view-content .program-concept-live .executive-fact { display:grid;gap:3px;align-self:stretch;align-content:center;min-width:0;border-left:1px solid var(--line);padding:10px; }
.record-view-content .program-concept-live .executive-fact span { color:var(--muted);font-size:7px;text-transform:uppercase; }
.record-view-content .program-concept-live .executive-fact b { overflow:hidden;color:var(--text);font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
.record-view-content .program-concept-live .executive-action { align-self:stretch;border:0;border-left:1px solid var(--line);color:#071620;background:var(--gold);font-size:9px;font-weight:900;cursor:pointer; }
.record-view-content .program-concept-live .executive-action:hover,
.record-view-content .program-concept-live .executive-action:focus-visible { filter:brightness(1.08);outline:none; }
.record-view-content .program-concept-live .executive-action:disabled { cursor:default;opacity:.62; }
.record-view-content .program-concept-live .insight-strip { display:grid;grid-template-columns:minmax(0,1.25fr) repeat(2,minmax(210px,.55fr));border:1px solid var(--line);border-top:0;background:var(--surface); }
.record-view-content .program-concept-live .insight { display:grid;gap:4px;padding:10px 12px;border-right:1px solid var(--line); }
.record-view-content .program-concept-live .insight:last-child { border-right:0; }
.record-view-content .program-concept-live .insight span { color:var(--gold);font-size:7px;font-weight:850;text-transform:uppercase; }
.record-view-content .program-concept-live .insight strong { color:var(--text);font-size:9px;line-height:1.4; }
.record-view-content .program-concept-live .insight small { color:var(--muted);font-size:8px;line-height:1.4; }
.record-view-content .program-concept-live .causal-map { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);background:var(--surface); }
.record-view-content .program-concept-live .causal-step { position:relative;display:grid;gap:4px;min-height:105px;border:0;border-right:1px solid var(--line);color:var(--text);background:transparent;padding:12px;text-align:left;cursor:pointer; }
.record-view-content .program-concept-live .causal-step:last-child { border-right:0; }
.record-view-content .program-concept-live .causal-step:not(:last-child)::after { position:absolute;z-index:2;right:-8px;top:44px;width:15px;height:15px;border-top:1px solid var(--gold);border-right:1px solid var(--gold);content:"";background:var(--surface);transform:rotate(45deg); }
.record-view-content .program-concept-live .causal-step:hover,
.record-view-content .program-concept-live .causal-step:focus-visible,
.record-view-content .program-concept-live .causal-step.is-active { background:var(--surface-soft);outline:none; }
.record-view-content .program-concept-live .causal-step span { color:var(--gold);font-size:7px;font-weight:850;text-transform:uppercase; }
.record-view-content .program-concept-live .causal-step strong { font-size:10px;line-height:1.35; }
.record-view-content .program-concept-live .causal-step small { color:var(--muted);font-size:8px;line-height:1.4; }
.record-view-content .program-concept-live .causal-step b { align-self:end;color:var(--success,#65a991);font-size:8px; }
.record-view-content .program-concept-live .attention { display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:8px;margin-top:8px; }
.record-view-content .program-concept-live .module { border:1px solid var(--line);border-radius:0;background:var(--surface); }
.record-view-content .program-concept-live .module-head { display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:9px 11px; }
.record-view-content .program-concept-live .module-head>div { display:grid;gap:2px; }
.record-view-content .program-concept-live .module-head h3 { color:var(--text);font-size:11px; }
.record-view-content .program-concept-live .module-head span { color:var(--muted);font-size:8px; }
.record-view-content .program-concept-live .module-head b { margin-left:auto;color:var(--gold);font-size:9px; }
.record-view-content .program-concept-live .timeline { position:relative;display:grid;gap:12px;padding:14px 13px; }
.record-view-content .program-concept-live .timeline::before { position:absolute;left:22px;top:18px;bottom:18px;width:1px;content:"";background:var(--line); }
.record-view-content .program-concept-live .moment { position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);gap:9px;border:0;color:var(--text);background:transparent;padding:0;text-align:left;cursor:pointer; }
.record-view-content .program-concept-live .moment i { z-index:1;display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--gold);border-radius:50%;color:var(--gold);background:var(--surface);font-size:7px;font-style:normal;font-weight:900; }
.record-view-content .program-concept-live .moment div { display:grid;gap:2px; }
.record-view-content .program-concept-live .moment strong { font-size:8px; }
.record-view-content .program-concept-live .moment small { color:var(--muted);font-size:8px; }
.record-view-content .program-concept-live .detail { display:grid;align-content:start;min-height:250px;padding:12px; }
.record-view-content .program-concept-live .detail>span { color:var(--gold);font-size:8px;font-weight:850;text-transform:uppercase; }
.record-view-content .program-concept-live .detail h3 { margin-top:4px;color:var(--text);font-size:14px; }
.record-view-content .program-concept-live .detail>p { margin-top:6px;color:var(--muted);font-size:9px;line-height:1.45; }
.record-view-content .program-concept-live .facts { display:grid;margin-top:9px; }
.record-view-content .program-concept-live .fact { display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:7px 0;font-size:8px; }
.record-view-content .program-concept-live .fact span { color:var(--muted); }
.record-view-content .program-concept-live .fact b { color:var(--text);text-align:right; }
.record-view-content .program-concept-live .detail .btn { justify-self:start;min-height:32px;margin-top:10px;border:1px solid var(--line);border-radius:4px;color:var(--text);background:transparent;padding:7px 11px;font-size:9px;cursor:pointer; }
.record-view-content .program-concept-live .detail .btn:hover,
.record-view-content .program-concept-live .detail .btn:focus-visible { border-color:var(--gold);outline:none; }

/* The prototype program head is the canonical header. Avoid a duplicate
   source-record banner while retaining the modal close command. */
.record-view-panel.program-control-panel { position:relative;border-radius:0; }
.record-view-panel.program-control-panel > .record-editor-header {
  position:absolute;
  z-index:5;
  top:12px;
  right:14px;
  display:block;
  min-height:0;
  border:0;
  background:transparent;
  padding:0;
}
.record-view-panel.program-control-panel > .record-editor-header > div { display:none; }
.record-view-panel.program-control-panel > .record-editor-header .record-editor-close {
  min-height:30px;
  border:1px solid var(--line);
  border-radius:4px;
  background:transparent;
}
.record-view-panel.program-control-panel > .record-view-content {
  background:#102a36;
  padding:12px;
}
html[data-theme="light"] .record-view-panel.program-control-panel > .record-view-content { background:#f7f9fa; }
.record-view-content .program-concept-live .program-state { margin-right:72px; }

@media(max-width:900px){
  .record-view-content .program-concept-live .executive-answer{grid-template-columns:1fr 1fr}
  .record-view-content .program-concept-live .executive-copy{grid-column:1/-1}
  .record-view-content .program-concept-live .executive-action{min-height:42px}
  .record-view-content .program-concept-live .insight-strip{grid-template-columns:1fr}
  .record-view-content .program-concept-live .insight{border-right:0;border-bottom:1px solid var(--line)}
  .record-view-content .program-concept-live .insight:last-child{border-bottom:0}
  .record-view-content .program-concept-live .causal-map{grid-template-columns:1fr}
  .record-view-content .program-concept-live .causal-step{min-height:0;border-right:0;border-bottom:1px solid var(--line)}
  .record-view-content .program-concept-live .causal-step:not(:last-child)::after{display:none}
  .record-view-content .program-concept-live .attention{grid-template-columns:1fr}
  .record-view-content .program-concept-live .program-head small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .record-view-content .program-concept-live .executive-answer{height:173px;overflow:hidden}
  .record-view-content .program-concept-live .executive-copy strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .record-view-content .program-concept-live .executive-copy small{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .record-view-content .program-concept-live .insight-strip{height:185px;overflow:hidden}
  .record-view-content .program-concept-live .causal-map{height:319px;overflow:hidden}
  .record-view-content .program-concept-live .causal-step{height:79.5px;overflow:hidden}
  .record-view-content .program-concept-live .causal-step small{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .record-view-content .program-concept-live .attention>.module:first-child{height:197px;overflow:hidden}
}

@media(max-width:620px){
  .record-view-content .program-concept-live .program-head{align-items:flex-start;flex-wrap:wrap}
  .record-view-content .program-concept-live .program-state{width:100%;margin-left:40px}
  .record-view-content .program-concept-live .program-state{margin-right:0}
  .record-view-content .program-concept-live .executive-answer{grid-template-columns:1fr}
  .record-view-content .program-concept-live .executive-fact{border-top:1px solid var(--line);border-left:0}
  .record-view-content .program-concept-live .executive-action{border-top:1px solid var(--line);border-left:0}
  .record-view-content .program-concept-live .executive-answer,
  .record-view-content .program-concept-live .insight-strip,
  .record-view-content .program-concept-live .causal-map,
  .record-view-content .program-concept-live .attention>.module:first-child{height:auto;overflow:visible}
  .record-view-content .program-concept-live .causal-step{height:auto;min-height:0}
}

/* Program detail parity guard. This final, scoped block keeps the live view at
   the same compact proportions as the approved programme-detail prototype. */
.record-view-content .program-value-cockpit {
  width: 100%;
  margin-inline: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.record-view-content .program-value-cockpit > header {
  min-height: 46px;
  margin-bottom: 8px;
  padding: 7px 12px;
  border: 0;
  background: transparent;
}

.record-view-content .program-value-cockpit > header p { margin: 0; }

.record-view-content .program-value-answer {
  grid-template-columns: minmax(0, 1fr) minmax(405px, .68fr) 142px;
  min-height: 76px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.record-view-content .program-value-answer > div {
  gap: 2px;
  padding: 10px 14px;
}

.record-view-content .program-value-answer > div > strong {
  font-size: .94rem;
  line-height: 1.2;
}

.record-view-content .program-value-answer > div > small {
  font-size: .56rem;
  line-height: 1.35;
}

.record-view-content .program-value-answer dl > div { padding: 8px; }
.record-view-content .program-value-answer dd {
  font-size: .61rem;
  white-space: nowrap;
}

.record-view-content .program-value-insights article {
  gap: 2px;
  min-height: 70px;
  padding: 8px 11px;
}

.record-view-content .program-value-insights {
  border: 1px solid var(--line);
  border-bottom: 0;
}

.record-view-content .program-value-insights strong { font-size: .62rem; }
.record-view-content .program-value-insights small { font-size: .54rem; }

.record-view-content .program-value-chain button {
  height: 107px;
  min-height: 107px;
  gap: 4px;
  padding: 10px 11px;
}

.record-view-content .program-value-chain {
  border: 1px solid var(--line);
}

.record-view-content .program-value-chain button:not(:last-child)::after {
  top: 43px;
}

.record-view-content .program-value-chain button strong { font-size: .66rem; }
.record-view-content .program-value-chain button small { font-size: .55rem; }
.record-view-content .program-value-chain button b { font-size: .54rem; }

.record-view-content .program-value-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  height: 250px;
  min-height: 250px;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.record-view-content .program-value-timeline,
.record-view-content .program-value-explanation {
  height: 250px;
  min-height: 0;
  overflow: auto;
}

html[data-theme="light"] .record-view-content .program-value-cockpit,
html[data-theme="light"] .record-view-content .program-value-cockpit > header,
html[data-theme="light"] .record-view-content .program-value-layout {
  background: transparent;
}

.record-view-content .program-value-timeline > header {
  min-height: 44px;
  padding: 7px 10px;
}

.record-view-content .program-value-timeline > div { padding: 2px 9px; }
.record-view-content .program-value-timeline > div > button { padding: 6px 2px; }
.record-view-content .program-value-timeline > div > button strong { font-size: .6rem; }
.record-view-content .program-value-timeline > div > button small { font-size: .53rem; }

.record-view-content .program-value-explanation {
  align-content: start;
  padding: 11px;
}

.record-view-content .program-value-explanation h3 { font-size: .82rem; }
.record-view-content .program-value-explanation p { font-size: .57rem; }
.record-view-content .program-value-explanation dl { margin-top: 7px; }
.record-view-content .program-value-explanation dl > div { padding-block: 6px; }
.record-view-content .program-value-explanation .program-control-source-button { margin-top: 8px; }

@media (max-width: 900px) {
  .record-view-content .program-value-cockpit {
    width: 100%;
    margin-inline: 0;
  }

  .record-view-content .program-value-answer { grid-template-columns: 1fr 1fr; }
  .record-view-content .program-value-answer > div { grid-column: 1 / -1; }
  .record-view-content .program-value-chain button { width: 100%; height: auto; min-height: 0; }
  .record-view-content .program-value-layout { grid-template-columns: 1fr; height: auto; min-height: 0; overflow: visible; }
  .record-view-content .program-value-timeline,
  .record-view-content .program-value-explanation { height: auto; min-height: 0; }
}

@media (max-width: 620px) {
  .record-view-content .program-value-answer { grid-template-columns: 1fr; }
}

/* Keep the approved dashboard composition on tablets and compact laptops.
   The generic modal breakpoint otherwise turns the whole view into one tall plane. */
@media (min-width: 621px) and (max-width: 900px) {
  .record-view-content .program-value-cockpit > header {
    flex-direction: row;
    align-items: center;
  }

  .record-view-content .program-value-cockpit > header p { margin-left: auto; }

  .record-view-content .program-value-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .record-view-content .program-value-insights article {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .record-view-content .program-value-insights article:last-child { border-right: 0; }

  .record-view-content .program-value-chain {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .record-view-content .program-value-chain button {
    width: auto;
    height: 107px;
    min-height: 107px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .record-view-content .program-value-chain button:not(:last-child)::after { display: block; }
  .record-view-content .program-value-chain button:last-child { border-right: 0; }

  .record-view-content .program-value-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    height: 250px;
    min-height: 250px;
    overflow: hidden;
  }

  .record-view-content .program-value-timeline,
  .record-view-content .program-value-explanation {
    height: 250px;
  }
}

/* Planning 03: finale bescherming tegen legacy planning- en registertypografie. */
.layout-page-register[data-page="planning"] .planning-priority-viewport{inline-size:100%!important;width:100%!important;max-inline-size:100%!important;min-inline-size:0!important;margin:0 0 12px!important;--planning-priority-surface:#0c222c;--planning-priority-soft:#102a35;--planning-priority-line:rgba(224,234,237,.13);--planning-priority-text:#edf3f4;--planning-priority-muted:#8fa1a8;border-color:var(--planning-priority-line);color:var(--planning-priority-text);background:var(--planning-priority-surface);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;font-weight:400;line-height:normal;letter-spacing:0;text-transform:none}
html[data-theme="light"] .layout-page-register[data-page="planning"] .planning-priority-viewport{--planning-priority-surface:#fff;--planning-priority-soft:#f5f8f9;--planning-priority-line:rgba(16,44,56,.14);--planning-priority-text:#102d38;--planning-priority-muted:#64767d;background:#fff}
.layout-page-register[data-page="planning"] .planning-priority-header{min-height:0;border-color:var(--planning-priority-line);padding:13px 16px;color:var(--planning-priority-text);background:transparent;font:inherit;letter-spacing:0;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-signal{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:10px;font-weight:850;line-height:normal;letter-spacing:.4px;text-transform:uppercase}
.layout-page-register[data-page="planning"] .planning-priority-header h2{margin:0;color:var(--planning-priority-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:19px;font-weight:720;line-height:1.25;letter-spacing:0;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-header p{max-width:420px;margin:0 0 1px auto;color:var(--planning-priority-muted);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:9px;font-weight:400;line-height:1.5;letter-spacing:0;text-align:right;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-horizons article{gap:6px;min-height:158px;border-color:var(--planning-priority-line);padding:13px;color:var(--planning-priority-text);background:transparent;font:inherit;letter-spacing:0;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-horizons article>span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:10px;font-weight:850;line-height:normal;letter-spacing:.4px;text-transform:uppercase}
.layout-page-register[data-page="planning"] .planning-priority-horizons article>strong{margin-bottom:2px;color:var(--planning-priority-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;font-weight:700;line-height:normal;letter-spacing:0;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-horizons button{grid-template-columns:28px minmax(0,1fr);gap:2px 8px;border-color:var(--planning-priority-line);color:var(--planning-priority-text);padding:9px 4px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:10px;font-weight:400;line-height:normal;letter-spacing:0;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-horizons button:hover,.layout-page-register[data-page="planning"] .planning-priority-horizons button:focus-visible{background:var(--planning-priority-soft)}
.layout-page-register[data-page="planning"] .planning-priority-horizons button b{color:var(--planning-priority-text);font:700 10px/normal Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-horizons button small{color:var(--planning-priority-muted);font:400 8px/normal Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none}
.layout-page-register[data-page="planning"] .planning-priority-icon{width:24px;height:24px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:9px;line-height:1}
@media(max-width:900px){.layout-page-register[data-page="planning"] .planning-priority-header p{margin-left:0;text-align:left}.layout-page-register[data-page="planning"] .planning-priority-horizons article{min-height:0}}

/* Mijn werkzaamheden gebruikt dezelfde samenhangende Inter-hiërarchie. */
.work-page-b1 .work-briefing-stage .work-briefing h3,
.work-page-b1 .work-briefing h2{
  color:var(--b1-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:19px;
  font-weight:720;
  line-height:1.25;
  letter-spacing:0;
  text-transform:none;
}
