:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #14251f;
  background: #f2f5f3;
  font-size: 106.25%;
  line-height: 1.55;
  --ink: #14251f;
  --muted: #51645b;
  --green: #09634f;
  --green-dark: #074b3e;
  --line: #dce5df;
  --surface: #fff;
  --soft: #edf5f0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscript { margin: 0; padding: .8rem 1rem; background: #fff0e8; color: #793719; text-align: center; }
body { margin: 0; }
.top {
  padding: .85rem clamp(1rem, 4.5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -.065em;
  text-decoration: none;
}
.brand-mark {
  display: flex;
  width: 2.05rem;
  height: 2.05rem;
  padding: .46rem .46rem .43rem;
  gap: .13rem;
  align-items: end;
  transform: rotate(-6deg);
  border-radius: .55rem;
  background: #17392f;
}
.brand-mark i { width: .28rem; height: 46%; background: #aee7a9; border-radius: 2px; }
.brand-mark i:nth-child(2) { height: 72%; }
.brand-mark i:nth-child(3) { height: 100%; }
main { max-width: 1536px; margin: auto; padding: 1.85rem clamp(1rem, 4.5vw, 4rem) 3.5rem; }
h1, h2, p { margin: 0 0 .5rem; }
h1, h2 { letter-spacing: -.042em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
h2 { font-size: clamp(1.42rem, 2vw, 1.65rem); }
p:last-child { margin-bottom: 0; }
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--green);
  font-weight: 750;
  text-transform: uppercase;
  font-size: .83rem;
  letter-spacing: .13em;
}
.welcome {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  max-width: 1380px;
  margin: clamp(.3rem, 4vh, 3rem) auto;
  min-height: 610px;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(23, 49, 37, .07);
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 2rem;
  padding: clamp(2rem, 5.7vw, 5rem);
  background: linear-gradient(100deg, rgba(10, 30, 25, .98), rgba(10, 30, 25, .83) 56%, rgba(10, 30, 25, .46)), url("/hero.webp") 58% center / cover, #153e31;
  color: #fff;
}
.intro .eyebrow { color: #bce9b1; }
.intro h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.4vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.068em;
  margin: .7rem 0 1.2rem;
}
.intro p:last-child { max-width: 42ch; color: #deebe4; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.intro .hero-button { background: #d9f2cb; border-color: #d9f2cb; color: #143222; }
.intro .hero-button:hover { background: #eefae7; }
.auth-panel { display: grid; place-items: center; padding: clamp(1.35rem, 4vw, 4.2rem); }
.stack { display: grid; gap: 1.25rem; width: min(100%, 390px); }
.stack h2 { font-size: 2.25rem; }
.stack input, .stack .primary { min-height: 3rem; }
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .95rem;
  padding: clamp(1rem, 2.3vw, 1.65rem);
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(23, 49, 37, .025);
}
.heading, .toolbar, .actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; }
.heading, .toolbar { justify-content: space-between; margin-bottom: 1rem; }
.heading > *, .toolbar > * { min-width: 0; }
.heading h2, .heading p:last-child { margin-bottom: 0; }
.workspace-head { margin-bottom: 1.45rem; }
.workspace-head h1 { overflow-wrap: anywhere; }
.toolbar { align-items: end; padding: .9rem 1.1rem; }
.toolbar label { min-width: min(100%, 255px); }
.workspace-head select, .toolbar select { max-width: min(100%, 370px); }
.project-head {
  margin: 1.3rem 0 1.25rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #214b3c;
  border-radius: 1rem;
  background: linear-gradient(115deg, #133f34, #0b2a24);
  color: #fff;
}
.project-head .eyebrow { color: #b7dfc9; }
.project-head h2 { font-size: clamp(1.8rem, 3.25vw, 2.85rem); overflow-wrap: anywhere; }
.project-head .primary { background: #dbf2cf; border-color: #dbf2cf; color: #153526; }
.project-head .primary:hover { background: #eff9e9; }
.dashboard { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 1.35rem; align-items: start; }
.report-toolbar { display: grid; position: sticky; top: 1rem; gap: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.report-toolbar nav { display: grid; gap: .25rem; }
.report-toolbar nav a { color: var(--muted); padding: .5rem .65rem; border-radius: .5rem; font-size: 1rem; text-decoration: none; font-weight: 650; }
.report-toolbar nav a:hover, .report-toolbar nav a[aria-current="location"] { color: var(--green-dark); background: var(--soft); }
.report-content { min-width: 0; }
.report-content section[id] { scroll-margin-top: 1rem; }
.overview-head { align-items: center; }
.overview-head #coverage { text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.kpi { min-width: 0; padding: 1.05rem; min-height: 145px; }
.kpi:first-child { background: #e4f0e9; border-color: #cddfd4; }
.kpi-label { color: #314b40; font-weight: 700; font-size: 1rem; }
.kpi strong { display: block; font-size: clamp(1.7rem, 2.65vw, 2.65rem); line-height: 1.12; margin: .5rem 0; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hint, #role { color: var(--muted); }
.kpi-unit { font-size: .56em; font-weight: 680; letter-spacing: 0; }
.hint { font-size: .94rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 1rem; }
.form-grid p, .form-grid .actions, .wide-field { grid-column: 1 / -1; }
label { display: grid; gap: .35rem; font-weight: 650; font-size: 1rem; }
input, select, button, textarea, .button {
  font: inherit;
  color: var(--ink);
  border: 1px solid #c8d6ce;
  border-radius: .55rem;
  background: #fff;
  padding: .61rem .78rem;
  min-width: 0;
}
select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 52%, #56756a 52%), linear-gradient(135deg, #56756a 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% + 2px), calc(100% - 10px) calc(50% + 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; }
button, .button { cursor: pointer; font-weight: 700; }
.button { display: inline-block; text-decoration: none; }
button:hover, .button:hover { background-color: var(--soft); }
button:disabled { opacity: .65; cursor: wait; }
.primary { background: var(--green); color: #fff; border-color: var(--green); }
.primary:hover { background: var(--green-dark); }
.text-button { color: var(--green); border-color: transparent; }
:focus-visible { outline: 3px solid #238a72; outline-offset: 2px; }
#notice { padding: .8rem 1rem; background: var(--soft); border: 1px solid #c4decf; border-radius: .65rem; margin-bottom: 1rem; }
#notice.error { background: #fff0e8; border-color: #e1bda6; color: #793719; }
.legend { display: flex; gap: .75rem 1rem; flex-wrap: wrap; font-size: .94rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: .72rem; height: .72rem; border-radius: .16rem; margin-right: .34rem; background: #14806a; }
.legend span+span::before { background: #b6c8c3; }
.legend .estimate-key::before { background: #bd762c; }
.chart-head { align-items: start; }
#chart { width: 100%; height: clamp(235px, 27vw, 355px); display: block; }
#chart-empty { margin-top: .25rem; }
.table { overflow-x: auto; margin-top: .5rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: .72rem .65rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #294439; background: #edf3ef; font-size: .95rem; }
td:first-child { font-weight: 650; }
tbody tr:hover { background: #f7f9f8; }
.ref-source { display: block; font-size: .89rem; white-space: normal; }
.comparison { background: var(--soft); border-left: 3px solid var(--green); padding: .65rem .8rem; border-radius: .3rem; font-weight: 650; }
.demo-intro { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .7rem .9rem; }
.demo-intro p { max-width: 72ch; color: var(--muted); }
.demo-label { border-radius: 1rem; padding: .28rem .7rem; background: var(--soft); color: var(--green-dark); font-weight: 700; font-size: .875rem; white-space: nowrap; }
.demo-measures { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .8rem; }
.demo-measures li { padding: .9rem; background: #f3f7f4; border: 1px solid var(--line); border-radius: .65rem; }
.demo-measures p { margin: .3rem 0 0; }
#baseline-evidence { white-space: pre-wrap; overflow-wrap: anywhere; }
#invite-link { width: min(100%, 350px); }
#scenarios label { min-width: 9rem; max-width: 11rem; }
@media (max-width: 1130px) {
  .dashboard { grid-template-columns: 165px minmax(0, 1fr); gap: .85rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; min-height: 0; }
  .intro { min-height: 350px; justify-content: end; }
  .intro h1 { font-size: clamp(2.45rem, 9vw, 4rem); }
  .desktop-break { display:none; }
  .auth-panel { padding-block: 2rem; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .report-toolbar { position: static; }
  .report-toolbar nav { margin: -.2rem; display: flex; gap: .15rem; flex-wrap: wrap; }
  .report-toolbar nav a { padding: .4rem .6rem; }
  .overview-head #coverage { text-align: left; }
  .project-head { align-items: start; padding: 1rem; }
}
@media (max-width: 420px) {
  .top { flex-wrap: wrap; }
  .kpi { padding: .8rem; }
  .project-head .actions { gap: .5rem; }
  .project-head button { font-size: .94rem; padding-inline: .58rem; }
}
@media print {
  body, .top, .project-head { background: white; color: var(--ink); }
  main { padding: 0; }
  .dashboard { display: block; }
  .top .actions, button, nav, .month-picker, #scenarios label, #baseline-form, #month-form { display: none !important; }
  .report-toolbar { position: static; margin-bottom: .75rem; border: 0; }
  .project-head .eyebrow { color: var(--green-dark); }
  .card { padding: .65rem; }
  .chart-card, .kpi, tr { break-inside: avoid; }
  .table { overflow: visible; }
  td, th { white-space: normal; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.public-details { max-width: 1380px; margin: 0 auto; }
.workflow-heading { margin-top: 2.4rem; }
.workflow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; margin: .8rem 0 0; padding: 0; }
.workflow li { background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: 1.2rem; }
.workflow h3 { font-size: 1.16rem; margin: 0 0 .45rem; }
.workflow p { color: var(--muted); }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 1.25rem clamp(1rem, 4.5vw, 4rem); color: var(--muted); background: #fff; }
.public-footer a:last-child { color: var(--green); font-weight: 650; }
@media (max-width: 720px) {
  .workflow { grid-template-columns: minmax(0, 1fr); }
}

.scenario-preset { padding: .22rem .58rem; color: var(--green-dark); }
.scenario-preset:disabled { cursor: default; }
.print-target { display: none; }
@media print { .print-target { display: inline; } }

.ops-filters { margin-bottom: 1rem; }
.ops-archive { display: flex; align-items: center; min-height: 2.8rem; }
.ops-archive input { width: 1.12rem; height: 1.12rem; }
.ops-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: .65rem; margin: .75rem 0 1rem; }
.ops-metrics > div { min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; background: #f6faf7; }
.ops-metrics strong { display: block; margin-top: .2rem; font-size: 1.2rem; }
.ops-analytics { padding: .7rem .85rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .7rem; }
.ops-analytics > summary { font-weight: 700; cursor: pointer; }
.ops-analytics h3, #ops-editor-title { font-size: 1.05rem; margin: 0 0 .5rem; }
.ops-analytics .ops-metrics { margin-bottom: 0; }
.ops-bar { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: center; column-gap: .4rem; font-size: .85rem; margin: .5rem 0; }
.ops-bar span { overflow-wrap: anywhere; }
.ops-bar progress { grid-column: 1/-1; grid-row: 2; width: 100%; accent-color: var(--green); }
.ops-controls { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; }
#ops-tabs button[aria-pressed="true"] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
#ops-status[role="alert"] { color: #793719; }
#ops-form { padding: .85rem; background: var(--soft); border-radius: .65rem; margin: 1rem 0; }
#ops-editor-title, #ops-fields { grid-column: 1/-1; }
#ops-rows td details { max-width: 22ch; white-space: normal; }
#ops-rows td button + button { margin-left: .3rem; }
#ops-use-reference, .ops-pages { margin-top: .85rem; }
@media print { #ops-form, .ops-filters, .ops-controls, .ops-pages, #ops-use-reference { display: none !important; } }

/* Report navigation stays visible while moving between dashboard sections. */
.dashboard { display: block; }
.report-toolbar { z-index: 5; top: .4rem; display: flex; align-items: end; flex-wrap: nowrap; gap: .8rem; margin-bottom: 1rem; box-shadow: 0 3px 12px #22352b12; }
.report-toolbar label { flex: none; }
.report-toolbar nav { min-width: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; padding: .2rem .25rem; }
.report-toolbar nav a { flex: none; white-space: nowrap; }
.report-content section[id] { scroll-margin-top: 7rem; }
.kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
.legend span:nth-child(2)::before { height: 0; vertical-align: middle; border-top: 2px dashed #5d7570; background: none; border-radius: 0; }
.planning-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.planning-card { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #f8faf8; }
.planning-card h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.planning-card .table { margin: .55rem 0; }
.planning-inputs { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: .65rem; margin: .8rem 0; }
.planning-budget { grid-column: 1/-1; }
.planning-budget input { width: 100%; }
#plan-measures input { min-width: 8rem; }
#plan-measures td:first-child input { min-width: 12rem; }
#plan-result { margin-top: .7rem; }
.planning-values { margin: .65rem 0; }
.planning-values > div { display: flex; justify-content: space-between; gap: .65rem; padding-block: .32rem; border-bottom: 1px solid var(--line); }
.planning-values dd { margin: 0; font-weight: 700; text-align: right; }
#plan-kpis { margin: .6rem 0 1rem; }
#plan-kpis dt { color: var(--muted); }
#plan-kpis dd { margin: .25rem 0 0; font-weight: 750; }
@media (max-width: 720px) {
  .report-toolbar { top: 0; display: grid; align-items: start; gap: .4rem; }
  .report-toolbar label { max-width: 9rem; }
  .report-content section[id] { scroll-margin-top: 8.5rem; }
  .planning-grid { grid-template-columns: minmax(0,1fr); }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media print { .report-toolbar { position: static; box-shadow: none; } .planning-card { break-inside: avoid; } }

#project-content { --chart-axis: #b9c9c0; --chart-expected: #5d7570; }
#report-theme { flex: none; white-space: nowrap; }
@media screen {
  #project-content.report-dark {
    --ink: #edf4f0; --muted: #b4c6bf; --green: #287e64; --green-dark: #a9e5cd;
    --surface: #182923; --soft: #243c33; --line: #385249; --chart-axis: #718a81; --chart-expected: #bce1d4;
    color: var(--ink); background: #12211c; padding: .75rem; border-radius: 1rem; color-scheme: dark;
  }
  .report-dark :is(.report-toolbar, input, select, textarea, button:not(.primary)) { background-color: var(--surface); border-color: var(--line); }
  .report-dark :is(.planning-card,.ops-metrics > div,.demo-measures li,.kpi:first-child,th) { background: var(--soft); border-color: var(--line); color: var(--ink); }
  .report-dark .kpi-label { color: var(--ink); }
  .report-dark tbody tr:hover { background: var(--soft); }
  .report-dark .legend span:nth-child(2)::before { border-color: var(--chart-expected); }
  .report-dark .project-head { margin-top: 0; }
}
@media (max-width: 720px) {
  .report-toolbar nav { grid-column: 1/-1; grid-row: 2; }
  #report-theme { justify-self: end; grid-column: 2; grid-row: 1; }
}

.account-consent { display: flex; align-items: start; gap: .6rem; }
.account-consent input { min-height: 0; }
.account-panel details { margin-top: 1rem; }
.account-panel details form { margin-top: .7rem; }
.account-legal { justify-content: center; flex-wrap: wrap; }
.legal { max-width: 880px; }
.legal article { margin: 1.25rem 0; }
.legal h3 { margin-bottom: .35rem; }
.legal nav { margin: 1rem 0; }

/* Executive report */
@media screen and (min-width: 821px) { :root { font-size: 93%; } }
#overview { font-family: system-ui, "Segoe UI", Tahoma, Arial, sans-serif; }
#overview[lang="ar"] { font-family: Tahoma, "Noto Sans Arabic", "Segoe UI", Arial, sans-serif; }
#overview [dir="ltr"], #overview bdi, #overview .kpi strong, .report-content table { font-variant-numeric: tabular-nums; }
#visual-language { flex: none; }
#overview a:focus-visible, #overview select:focus-visible, .report-canvas:focus-visible, #visual-language:focus-visible { outline: 3px solid #26755b; outline-offset: 4px; }
.visual-card { overflow-wrap: anywhere; }
.visual-card .hint { color: #455b51; }
.visual-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; color: #40554b; font-size: .9rem; }
.visual-key::before { display: inline-block; width: .85rem; height: .72rem; border-radius: .22rem; margin-inline-end: .35rem; content: ""; background: #116649; }
.visual-key.invoice::before { background: #a35b1a; }
.visual-key.cumulative::before { background: #526d62; height: 2px; vertical-align: middle; }
.visual-key.reference::before { background: transparent; border-block-start: 2px dashed #526d62; border-radius: 0; vertical-align: middle; height: 0; }
.report-canvas { display: block; width: 100%; height: clamp(244px, 27vw, 330px); touch-action: pan-y; }
.visual-tip { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; padding: .7rem .85rem; margin: .5rem 0; border: 1px solid #b6d2c5; background: #eaf5ef; color: #143d2d; border-radius: .6rem; min-height: 2.75rem; }
.variance-title { font-size: 1.05rem; margin: .65rem 0 .25rem; }
.variance-strip { padding: 0; margin: .6rem 0 0; list-style: none; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: .28rem; }
.variance-strip li { min-width: 0; text-align: center; padding: .32rem .15rem; border-radius: .35rem; font-size: .76rem; background: #edf2ef; color: #435750; }
.variance-strip li bdi { display: block; font-weight: 750; }
.variance-strip li.variance-below, .variance-below { color: #0c543b; }
.variance-strip li.variance-below { background: #e0f2e7; }
.variance-strip li.variance-above, .variance-above { color: #713a08; }
.variance-strip li.variance-above { background: #fff0dc; }
.annual-comparison { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 1rem; margin-top: .8rem; }
.annual-year { padding: .75rem; border: 1px solid var(--line); border-radius: .65rem; min-width: 0; }
.annual-year h3 { margin: 0 0 .45rem; text-align: start; }
.annual-metric { padding: .55rem .1rem; border-top: 1px solid var(--line); }
.annual-metric p { margin: .3rem 0 0; font-weight: 700; }
.annual-line { display: grid; grid-template-columns: 5.2rem minmax(3.5rem,1fr) auto; align-items: center; gap: .5rem; font-size: .85rem; margin-top: .32rem; }
.annual-line bdi { grid-column: 3; grid-row: 1; text-align: end; }
.annual-line progress { grid-column: 2; grid-row: 1; width: 100%; height: .63rem; accent-color: #116649; }
.annual-line progress.expected { accent-color: #60776b; }
@media screen {
  .report-dark .visual-tip { background: #213d32; color: #e7f2ec; border-color: #456658; }
  .report-dark .visual-card .hint, .report-dark .visual-legend { color: #d0e1d8; }
  .report-dark .variance-below { color: #9bf0c6; }
  .report-dark .variance-above { color: #ffcf94; }
  .report-dark .variance-strip li { background: #30483d; color: #dfebe5; }
  .report-dark .variance-strip li.variance-below { background: #1d4736; color: #adf1ce; }
  .report-dark .variance-strip li.variance-above { background: #553d23; color: #ffdaab; }
}
@media screen and (max-width: 720px) {
  .report-toolbar button, .report-toolbar a, #overview select, #overview button { min-height: 44px; }
  .report-toolbar a { display: inline-flex; align-items: center; }
  .report-toolbar { grid-template-columns: minmax(0,1fr) auto auto; }
  #visual-language { grid-row: 1; grid-column: 2; }
  #report-theme { grid-column: 3; }
  .visual-tip { position: sticky; top: 7rem; z-index: 3; }
}
@media screen and (max-width: 600px) {
  .variance-strip { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@page { size: A4; margin: 12mm 12mm 19mm;
  @bottom-left { content: var(--report-page-note, ""); color: #435750; font-size: 8pt; text-align: left; }
  @bottom-right { content: counter(page) " / " counter(pages); color: #435750; font-size: 9pt; }
}
@media print {
  :root { font-size: 10pt; }
  body { color: #182c23; background: #fff; }
  .print-heading[hidden] { display: block !important; }
  .print-heading { border-bottom: 1px solid #cedbd3; margin-bottom: .8rem; padding-bottom: .6rem; }
  .print-heading h1 { font-size: 18pt; margin-bottom: .2rem; }
  .print-heading p { margin: .14rem 0; }
  .top,.workspace-head,.project-head,.toolbar,.report-toolbar,.demo-intro,.public-footer,.annual-picker,.visual-tip { display: none !important; }
  #overview .kpis { grid-template-columns: repeat(3,minmax(0,1fr)); break-inside: avoid; }
  #overview .kpis .kpi { min-height: 0; margin: 0; padding: .55rem; }
  #overview .kpis strong { font-size: 16pt; }
  #overview .kpis { margin-bottom: .7rem; }
  #overview, .report-content { max-width: none; width: 100%; }
  .chart-card { page-break-inside: avoid; break-inside: avoid; }
  canvas.report-canvas { width: 100%; height: 205px; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  thead { display: table-header-group; }
  .variance-strip { grid-template-columns: repeat(12,minmax(0,1fr)); }
  .visual-key, .variance-strip, .annual-comparison { print-color-adjust: exact; }
}

.plan-help { font-weight: 400; font-size: .86rem; line-height: 1.45; margin: .15rem 0 0; }
.ops-metrics > div > .plan-help { margin-top: .35rem; }
.planning-values > div { flex-wrap: wrap; }
.planning-values dd.plan-help { flex: 1 0 100%; font-weight: 400; text-align: start; }
#plan-kpis dd.plan-help { font-weight: 400; }
.calc-page { max-width: 720px; }
.calc-head { margin-bottom: 1rem; }
.calc-head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.calc-form { display: grid; gap: 1rem; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc-form input { direction: ltr; text-align: right; }
.calc-submit { background: var(--green); border-color: var(--green); color: #fff; padding: .8rem; }
.calc-submit:hover { background: var(--green-dark); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.calc-res { background: var(--soft); border-radius: .6rem; padding: .9rem; text-align: center; display: grid; gap: .25rem; }
.calc-res strong { font-size: 1.5rem; color: var(--green); direction: ltr; }
.calc-res span { font-size: .85rem; color: var(--muted); }
.calc-save { margin: .9rem 0 0; padding: .8rem; background: var(--soft); border-radius: .6rem; }
.calc-cta { text-align: center; }
.calc-cta .calc-go { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 520px) { .calc-row { grid-template-columns: 1fr; } }
