:root {
  --bg: #f2f0ea;
  --panel: rgba(255, 255, 255, 0.82);
  --ink: #102a43;
  --muted: #52616b;
  --accent: #6b4ca3;
  --navy: #102a43;
  --gold: #c58b24;
  --coral: #c65d4f;
  --blue: #3d72a4;
  --violet: #655b8a;
  --accent-soft: rgba(107, 76, 163, 0.12);
  --border: rgba(16, 42, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(107, 76, 163, 0.14), transparent 32%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}

.app-frame { min-height: 100vh; display: flex; }

.taskbar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; width: 112px; padding: 22px 12px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  color: #dfe9e7; background: var(--navy); box-shadow: 8px 0 28px rgba(16, 42, 67, 0.12);
}

.brand-mark { color: #fff; text-align: center; text-decoration: none; }
.brand-mark__pecten { display: block; width: 38px; height: 38px; margin: 0 auto 8px; object-fit: contain; }
.brand-mark__orb { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 14px 14px 14px 4px; color: var(--navy); background: #e6ddf3; font-weight: 800; }
.brand-mark__label { display: block; font-size: .64rem; line-height: 1.15; letter-spacing: .035em; text-transform: uppercase; font-weight: 700; }
.taskbar__nav { display: grid; gap: 12px; width: 100%; }
.taskbar__group { position: relative; display: grid; gap: 5px; width: 100%; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.taskbar__config-button { display: grid; justify-items: center; gap: 5px; width: 100%; padding: 0; border: 0; color: #c8b8e8; background: transparent; font-family: inherit; font-size: .7rem; font-weight: 500; cursor: default; }
.taskbar__config-button .taskbar__icon { color: #c8b8e8; }
.taskbar__config-button:hover, .taskbar__config-button:focus, .taskbar__config-button[aria-expanded="true"] { color: #eee7fa; border-color: rgba(190,165,230,.72); background: rgba(190,165,230,.12); box-shadow: 0 0 0 1px rgba(190,165,230,.08); }
.taskbar__config-chevron { display: none; }
.taskbar__group > #configurationLinks { position: absolute; top: 12px; left: calc(100% + 14px); z-index: 20; width: 230px; padding: 10px; border: 1px solid rgba(16,42,67,.16); border-radius: 14px; background: #fff; box-shadow: 0 16px 35px rgba(16,42,67,.2); }
.taskbar__group > #configurationLinks::before { content: ''; position: absolute; top: 18px; left: -7px; width: 13px; height: 13px; border-left: 1px solid rgba(16,42,67,.16); border-bottom: 1px solid rgba(16,42,67,.16); background: #fff; transform: rotate(45deg); }
.taskbar__group > #configurationLinks .taskbar__link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-size: .78rem; text-align: left; }
.taskbar__group > #configurationLinks .taskbar__link:hover, .taskbar__group > #configurationLinks .taskbar__link:focus { color: var(--accent); background: var(--accent-soft); }
.taskbar__group > #configurationLinks .taskbar__icon { flex: 0 0 30px; color: var(--accent); }
.taskbar__group > #configurationLinks { display: none; opacity: 0; transition: opacity .35s ease; }
.taskbar__group.is-open > #configurationLinks { display: block; opacity: 1; }
.taskbar__group.is-open.is-fading > #configurationLinks { opacity: 0; }
.taskbar__link { display: grid; gap: 5px; justify-items: center; padding: 10px 4px; border-radius: 12px; color: #abc0bd; text-decoration: none; font-size: .7rem; }
.taskbar__link:hover, .taskbar__link:focus { color: #fff; background: rgba(255, 255, 255, .1); }
.taskbar__icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; font-size: .78rem; font-weight: 700; }
.taskbar__admin { margin-top: auto; color: #abc0bd; font-size: .7rem; text-decoration: none; }
.taskbar__admin:hover { color: #fff; }

.site-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 24px;
  margin-left: 112px;
}

.panel {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(16, 42, 67, 0.08);
  backdrop-filter: blur(14px);
}
.home-page .site-shell { padding-top: 0; }
.home-page .panel { padding-top: 0; }

.hero-band { display: flex; justify-content: space-between; gap: 32px; align-items: center; height: clamp(190px, 25vh, 285px); min-height: 0; padding: 0 0 12px; overflow: hidden; }
.hero-copy { flex: 1 1 42%; min-width: 300px; }
.hero-band h1 { font-size: clamp(1.8rem, 3.1vw, 3rem); letter-spacing: -.03em; }
.hero-band h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero-visual { flex: 1 1 58%; min-width: 420px; max-width: 720px; }
.hero-visual img { display: block; width: 100%; max-height: 250px; object-fit: contain; object-position: center; }
.hero-visual--photo { position: relative; height: calc(100% - 10px); margin-top: 10px; overflow: hidden; border-radius: 22px; box-shadow: 0 22px 48px rgba(16,42,67,.16); background: var(--navy); }
.hero-visual--photo > img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.photo-annotation { position: absolute; top: 18px; left: 20px; padding: 9px 13px; border-left: 3px solid #f3c747; color: #fff; background: rgba(16,42,67,.82); font-size: .78rem; line-height: 1.1; letter-spacing: .12em; text-transform: uppercase; }
.photo-annotation strong { color: #f3c747; font-size: .9rem; }
.photo-flow { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 10px; color: #fff; background: rgba(16,42,67,.84); font-size: .72rem; line-height: 1.15; }
.photo-flow strong { letter-spacing: .04em; text-transform: uppercase; }.photo-flow small { color: rgba(255,255,255,.75); font-size: .68rem; }.photo-flow__line { position: absolute; height: 4px; border-radius: 99px; }
.photo-flow--capex { top: 22%; left: 2.5%; }.photo-flow--capex .photo-flow__line { top: 50%; left: 100%; width: 125px; height: 12px; background: #d94b45; }.photo-flow--capex .photo-flow__line::after { content: ''; position: absolute; right: -2px; top: -8px; border-left: 16px solid #d94b45; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.photo-flow--opex { bottom: 10%; left: 7%; }.photo-flow--opex .photo-flow__line { top: 35%; left: 100%; width: 95px; height: 5px; background: #d94b45; }.photo-flow--opex .photo-flow__line::after { content: ''; position: absolute; right: -2px; top: -5px; border-left: 11px solid #d94b45; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.photo-flow--revenue { top: 36%; right: .5%; }.photo-flow--revenue .photo-flow__line { top: 52%; right: 100%; width: 100px; height: 9px; background: #35a66f; }.photo-flow--revenue .photo-flow__line::after { content: ''; position: absolute; right: -2px; top: -7px; border-left: 15px solid #35a66f; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.hero-stat { min-width: 170px; padding: 20px 0 4px 24px; border-left: 1px solid var(--border); }
.hero-stat__number { display: block; color: var(--accent); font-size: 3rem; font-weight: 800; line-height: 1; }
.hero-stat__label { display: block; max-width: 10ch; margin-top: 8px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 1.5rem; }
.section-heading__rule { height: 1px; flex: 1; background: var(--border); }
.configuration-heading { margin: 10px 0 38px; padding: 22px 0 0; border-top: 1px solid var(--border); }.configuration-heading h2 { margin: 0; font-size: 1.65rem; }.configuration-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .92rem; }
.domain-grid { row-gap: 28px !important; }
.domain-card { display: flex; flex-direction: column; align-items: center; min-height: 190px; padding: 22px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 16px; color: var(--ink); background: rgba(255,255,255,.65); text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.domain-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 35px rgba(16,42,67,.1); }
.domain-card--gold { border-top-color: var(--gold); }.domain-card--coral { border-top-color: var(--coral); }.domain-card--blue { border-top-color: var(--blue); }.domain-card--violet { border-top-color: var(--violet); }
.domain-card__top { display: flex; justify-content: space-between; gap: 12px; }.domain-card__eyebrow { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }.domain-card__count { color: var(--accent); font-weight: 800; }
.domain-card h3 { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 9px; font-size: 1.35rem; }.domain-card h3 i { margin: 0; color: var(--accent); font-size: 2rem; }.domain-card p { min-height: 42px; margin: 0; color: var(--muted); line-height: 1.45; font-size: .86rem; }.domain-card__action { display: inline-block; margin-top: 18px; font-size: .78rem; font-weight: 700; }.domain-card__action span { margin-left: 5px; color: var(--accent); }
.next-step-band { display: flex; justify-content: space-between; gap: 32px; margin-top: 46px; padding: 24px 0 4px; border-top: 1px solid var(--border); }.next-step-band h2 { margin: 0; font-size: 1.35rem; }.next-step-band > p { max-width: 38ch; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.workspace-section--coral, .workspace-section--teal, .workspace-section--blue { display: inline-block; vertical-align: top; width: 32%; margin-right: 1.5%; margin-top: 0; }
.workspace-section--blue { margin-right: 0; }
.workspace-section--coral .row, .workspace-section--teal .row, .workspace-section--blue .row { display: block; }
.workspace-section--coral .col-md-6, .workspace-section--teal .col-md-6, .workspace-section--blue .col-md-6 { width: 100%; }
.workspace-section--coral .domain-card, .workspace-section--teal .domain-card, .workspace-section--blue .domain-card { min-height: 170px; padding: 22px; }
.workspace-section--coral .domain-card p, .workspace-section--teal .domain-card p, .workspace-section--blue .domain-card p { min-height: 58px; }
.workspace-section--gold { clear: both; padding-top: 28px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }.page-header--compact { margin-bottom: 24px; }.page-header h1 { margin: 0; font-size: 2.6rem; letter-spacing: -.04em; }.page-description { margin: 8px 0 0; color: var(--muted); }.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.7); }.data-table { min-width: 760px; }.data-table th { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }.data-table td { color: var(--ink); font-size: .9rem; }.table-action { color: var(--accent); font-size: .82rem; font-weight: 700; text-decoration: none; }.table-action--danger { color: var(--coral); }.empty-state { padding: 48px !important; color: var(--muted) !important; text-align: center; }.pagination-row { display: flex; justify-content: center; gap: 18px; margin-top: 20px; color: var(--muted); font-size: .85rem; }.pagination-row a { color: var(--accent); font-weight: 700; text-decoration: none; }.editor-form { max-width: 920px; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.7); }.editor-form .form-control, .editor-form .form-select { border-color: var(--border); border-radius: 10px; }.editor-form textarea { min-height: 120px; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }.delete-card { max-width: 620px; padding: 36px; border: 1px solid rgba(198,93,79,.3); border-radius: 16px; background: rgba(255,255,255,.72); }.delete-card h1 { margin-bottom: 14px; font-size: 2.5rem; }.delete-card p { color: var(--muted); }.delete-card form { display: flex; gap: 10px; margin-top: 26px; }.flash-stack { margin-bottom: 20px; }
.btn { min-height: 44px; font-weight: 700; }
.page-header .btn { padding-inline: 22px; }
.form-actions .btn, .delete-card .btn { min-width: 132px; }
.scenario-edit-action { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(61,114,164,.42); border-radius: 11px; color: var(--blue); background: rgba(61,114,164,.08); font-size: .86rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.scenario-edit-action i { font-size: 1.02rem; }
.scenario-edit-action:hover, .scenario-edit-action:focus-visible { color: #285b89; border-color: rgba(61,114,164,.68); background: rgba(61,114,164,.15); box-shadow: 0 10px 20px rgba(16,42,67,.14); transform: translateY(-2px); }
.initiative-select-shell { position: relative; }
.initiative-select-shell .form-select { padding-right: 42px; }
.initiative-select-chevron { position: absolute; top: 50%; right: 16px; color: var(--accent); font-size: .95rem; pointer-events: none; transform: translateY(-50%); }
.run-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.run-action { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: .84rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.run-action i { font-size: 1.05rem; }
.run-action:hover, .run-action:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16,42,67,.14); }
.run-action--excel { color: #fff; background: var(--accent); box-shadow: 0 5px 12px rgba(107,76,163,.2); }
.run-action--excel:hover, .run-action--excel:focus-visible { color: #fff; background: #563a85; }
.run-action--csv { color: var(--blue); border-color: rgba(61,114,164,.35); background: rgba(61,114,164,.08); }
.run-action--csv:hover, .run-action--csv:focus-visible { color: #285b89; border-color: rgba(61,114,164,.55); background: rgba(61,114,164,.15); }
.run-action--back { color: var(--ink); border-color: var(--border); background: rgba(255,255,255,.72); }
.run-action--back:hover, .run-action--back:focus-visible { color: var(--ink); border-color: rgba(16,42,67,.28); background: #fff; }
.table-action { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 10px; font-size: 1.05rem; line-height: 1; }
.table-action:hover, .table-action:focus { color: var(--ink); background: rgba(107, 76, 163, .1); }
.table-action--danger:hover, .table-action--danger:focus { color: var(--coral); background: rgba(198, 93, 79, .1); }
.data-table--inline { min-width: 980px; }.data-table--inline td { padding: 8px; }.inline-edit { width: 100%; min-width: 120px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); background: transparent; }.inline-edit:hover { border-color: var(--border); background: #fff; }.inline-edit:focus { border-color: var(--accent); outline: 2px solid rgba(107,76,163,.14); background: #fff; }.inline-edit--unit { min-width: 110px; }.inline-edit--note { min-width: 240px; }.table-action--save { color: var(--accent); background: rgba(107,76,163,.06); cursor: pointer; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.7); }.filter-bar label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.filter-bar select, .filter-bar input { min-height: 40px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; color: var(--ink); background: #fff; }.filter-bar__apply { min-height: 40px; }.filter-bar__clear { padding: 10px 4px; color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }.filter-bar__clear:hover { color: var(--accent); }.production-table { min-width: 1120px; }

.status-panel {
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
}

.lede {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-list {
  margin: 28px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.feature-list li + li {
  margin-top: 10px;
}

.initiative-editor-header { align-items: center; }
.editor-header-note { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.editor-header-note i { color: var(--accent); font-size: 1.5rem; }
.editor-section { margin-top: 26px; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.68); }
.editor-section--metadata { margin-top: 0; }
.editor-section__heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 22px; }
.editor-section__heading h2 { margin: 0; font-size: 1.5rem; }
.editor-section__heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.editor-section__heading > i { color: var(--accent); font-size: 1.8rem; }
.month-legend { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: var(--muted); font-size: .78rem; }
.month-legend strong { color: var(--accent); font-weight: 700; }
.initiative-accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.initiative-accordion .accordion-item { border: 0; border-bottom: 1px solid var(--border); }
.initiative-accordion .accordion-item:last-child { border-bottom: 0; }
.initiative-accordion .accordion-button { gap: 12px; color: var(--ink); font-weight: 800; }
.initiative-accordion .accordion-button:not(.collapsed) { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.initiative-accordion .accordion-button i { font-size: 1.1rem; }
.initiative-accordion .accordion-button small { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 500; }
.initiative-accordion .accordion-body { padding: 0; }
.effect-grid { display: grid; grid-template-columns: minmax(230px, 1.3fr) repeat(96, 74px); overflow: auto; max-height: 520px; background: #fff; }
.effect-grid__corner, .effect-grid__month, .effect-grid__label, .effect-grid__input { border-right: 1px solid #e5e9e8; border-bottom: 1px solid #e5e9e8; }
.effect-grid__corner { position: sticky; left: 0; z-index: 3; padding: 12px; color: var(--muted); background: #f5f7f5; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.effect-grid__month { padding: 10px 6px; color: var(--muted); background: #f5f7f5; font-size: .7rem; font-weight: 800; text-align: center; }
.effect-grid__label { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 12px; background: #fff; font-size: .78rem; }
.effect-grid__label span { color: var(--accent); font-size: .68rem; text-transform: uppercase; }
.effect-grid__input { width: 74px; min-height: 38px; padding: 6px; border-width: 0 1px 1px 0; border-radius: 0; color: var(--ink); background: #fff; font-size: .78rem; text-align: right; }
.effect-grid__input:focus { z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; background: #f1faf7; }
.initiative-editor-actions { margin-top: 28px; }
.inline-edit--select { min-width: 120px; appearance: auto; cursor: pointer; }
.inline-edit--date { min-width: 145px; }
.metrics-table { min-width: 1080px; }.inline-edit--metric { min-width: 230px; }.inline-edit--year { min-width: 92px; }.inline-edit--value { min-width: 150px; }

@media (max-width: 720px) {
  .taskbar { position: static; width: 72px; min-height: 100vh; padding-inline: 8px; }
  .brand-mark__label, .taskbar__link span:last-child, .taskbar__admin { display: none; }
  .taskbar__group > #configurationLinks .taskbar__link span:last-child { display: inline; }
  .site-shell { margin-left: 0; padding: 28px 14px; }
  .panel { padding: 24px 18px; }
  .hero-band, .next-step-band, .page-header { display: block; }
  .hero-band { height: auto; min-height: 0; overflow: visible; }.hero-copy { min-width: 0; }.hero-visual { min-width: 0; margin-top: 24px; }.hero-visual img { max-height: 220px; }.hero-visual--photo { height: 220px; }.hero-visual--photo > img { height: 220px; }.photo-flow--capex .photo-flow__line, .photo-flow--revenue .photo-flow__line { width: 70px; }.photo-flow { font-size: .62rem; }.photo-flow small { font-size: .58rem; }.workspace-section--coral, .workspace-section--teal, .workspace-section--blue { display: block; width: 100%; margin-right: 0; }
  .hero-stat { margin-top: 28px; padding-left: 0; border-left: 0; }.hero-stat__number { font-size: 2.3rem; }
  .next-step-band > p { margin-top: 14px; }
  .page-header .btn { margin-top: 18px; }
  .run-actions { justify-content: flex-start; margin-top: 20px; }
  .run-action { flex: 1 1 auto; justify-content: center; }
  .initiative-editor-header { display: block; }.editor-header-note { margin-top: 18px; width: fit-content; }.editor-section { padding: 18px 12px; }.month-legend { display: block; }.month-legend strong { display: block; margin-top: 5px; }
}
