[hidden] { display: none !important; }
html body main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
.preview-header { background: var(--df-panel); border-bottom: 1px solid var(--df-line); }
.preview-header-inner { width: min(1120px, calc(100% - 40px)); margin: auto; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.preview-brand-divider { color: var(--df-line); margin: 0 6px; }
.preview-badge { color: var(--df-muted); }
.preview-intro { padding: 24px 0 14px; }
html body .preview-intro h1 { font-size: calc(var(--df-font-xl) * 1.4) !important; margin: 0 0 10px; }
.preview-intro p { color: var(--df-muted); margin: 0; }
html body button { min-height: 44px; min-width: 44px; padding: 10px 16px; border: 1px solid var(--df-action-line); background: var(--df-action-bg); color: var(--df-link); }
html body button:hover:not(:disabled) { background: var(--df-action-hover); }
html body button[aria-pressed="true"], html body .preview-primary { background: var(--df-link); border-color: var(--df-link); color: white; font-weight: 650; }
html body button[aria-pressed="true"]:hover:not(:disabled), html body .preview-primary:hover:not(:disabled) { background: var(--df-link-hover); }
.preview-journey ol { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.preview-journey li { min-width: 0; }
html body .preview-journey button { width: 100%; background: transparent; border: 0; border-radius: 0 !important; border-bottom: 3px solid var(--df-line); display: flex; gap: 8px; align-items: center; padding: 8px 6px 12px; text-align: left; }
html body .preview-journey button[aria-current="step"] { border-bottom-color: var(--df-link); color: var(--df-link); font-weight: 650; }
html body .preview-journey button[data-complete="true"] { border-bottom-color: var(--df-ok); }
.preview-step-number { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--df-line); border-radius: 50%; flex-shrink: 0; }
[aria-current="step"] .preview-step-number { background: var(--df-link); border-color: var(--df-link); color: white; }
.preview-navigation-note { margin: 12px 0 16px; color: var(--df-muted); }
.preview-panel { border: 1px solid var(--df-line); border-radius: var(--df-radius); padding: 28px 32px; background: var(--df-panel); min-width: 0; }
.preview-panel h2 { margin: 0 0 10px; }
.preview-stage-lead { margin: 0 0 18px; color: var(--df-muted); line-height: 1.6; max-width: 700px; }
.preview-capital-flow { margin: 0; display: grid; grid-template-columns: minmax(0,1fr) 104px minmax(0,1fr); align-items: stretch; }
.preview-capital, .preview-coupon { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px 18px; background: var(--df-panel-muted); border-radius: var(--df-radius); }
.preview-capital > span { color: var(--df-ink); }
.preview-coupon { background: var(--df-action-bg); border: 1px solid var(--df-action-line); }
.preview-coupon > span { color: var(--df-link); }
.preview-coupon strong { color: var(--df-link); }
html body .preview-big-amount { font-size: clamp(var(--df-font-xl), 4vw, calc(var(--df-font-xl) * 1.6)) !important; line-height: 1.15; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview-flow-connector { align-self: center; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--df-link); }
html body .preview-flow-connector strong { font-size: var(--df-font-xl) !important; }
html body .preview-flow-connector [aria-hidden] { font-size: calc(var(--df-font-xl) * 1.4) !important; line-height: 1; }
html body .preview-flow-connector > span:last-child { font-size: var(--df-font-xs) !important; color: var(--df-muted); }
.preview-capital-flow figcaption { grid-column: 1 / -1; padding-top: 18px; line-height: 1.6; }
.preview-allocation { margin: 0 0 16px; }
.preview-allocation figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.preview-allocation figcaption > span { color: var(--df-muted); }
.preview-allocation-bar { display: block; width: 100%; height: 32px; border-radius: 4px; overflow: hidden; }
.preview-share-0 { fill: var(--df-link); }
.preview-share-1 { fill: #3d648a; }
.preview-share-2 { fill: #cbdbe9; }
.preview-recipients [data-share="0"] .preview-symbol { background: var(--df-link); color: white; border-color: var(--df-link); }
.preview-recipients [data-share="1"] .preview-symbol { background: #3d648a; color: white; border-color: #3d648a; }
.preview-recipients [data-share="2"] .preview-symbol { background: #cbdbe9; color: var(--df-link); border-color: #cbdbe9; }
.preview-recipients { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.preview-recipients li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--df-line); border-radius: var(--df-radius); min-width: 0; }
.preview-recipients li[data-selected="true"] { background: var(--df-action-bg); border-color: var(--df-link); }
.preview-recipients li[data-tone="warn"] { border-color: #c4a758; background: #fff9eb; }
.preview-symbol { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--df-line); border-radius: 50%; flex-shrink: 0; color: var(--df-link); background: white; font-weight: 650; }
.preview-symbol[data-tone="ok"] { color: var(--df-ok); border-color: #a9c8b5; background: #f0f6f2; }
.preview-symbol[data-tone="warn"] { color: var(--df-warn); border-color: #d6c184; background: #fff9eb; }
.preview-recipient-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.preview-recipient-status { color: var(--df-muted); }
html body .preview-recipient-amount { font-size: var(--df-font-xl) !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview-recipients li[data-selected="true"] .preview-recipient-status { color: var(--df-link); }
.preview-quiet { color: var(--df-muted); margin: 18px 0 0; }
.preview-payment-meter { padding: 20px 22px 16px; background: var(--df-panel-muted); border-radius: var(--df-radius); margin-bottom: 16px; }
.preview-meter-total { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.preview-meter-total > span:first-child { flex-basis: 100%; color: var(--df-ink); margin-bottom: 2px; }
.preview-meter-total > span:last-child { color: var(--df-ink); }
.preview-payment-meter progress { display: block; width: 100%; height: 12px; margin: 18px 0 10px; border: 0; border-radius: 6px; overflow: hidden; appearance: none; background: #dddccf; accent-color: var(--df-ok); }
.preview-payment-meter progress::-webkit-progress-bar { background: #dddccf; border-radius: 6px; }
.preview-payment-meter progress::-webkit-progress-value { background: var(--df-ok); border-radius: 6px; }
.preview-payment-meter progress::-moz-progress-bar { background: var(--df-ok); border-radius: 6px; }
.preview-meter-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.preview-meter-caption .preview-symbol { width: 20px; height: 20px; }
.preview-payment-meter[data-complete="true"] { background: #f0f6f2; }
.preview-payment-meter[data-complete="true"] .preview-big-amount, .preview-payment-meter[data-complete="true"] .preview-meter-caption { color: var(--df-ok); }
.preview-issue { display: flex; gap: 12px; padding: 12px 14px; background: #fff9eb; border: 1px solid #dfcea3; border-radius: var(--df-radius); margin-top: 18px; }
.preview-issue strong { color: var(--df-warn); }
.preview-issue p { margin: 4px 0 0; line-height: 1.55; }
.preview-completion { display: grid; grid-template-columns: 1fr 1fr 1.4fr; margin: 24px 0; gap: 22px; }
.preview-completion > div { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.preview-completion span:last-child { color: var(--df-muted); }
.preview-result-note { margin: 0; line-height: 1.6; }
.preview-action-bar { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--df-line); }
.preview-action-hint { margin: 0 0 12px; color: var(--df-muted); }
.preview-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.preview-primary { min-width: 260px; box-shadow: 0 3px 0 #0e2748; }
html body .preview-primary { min-height: 52px; font-size: var(--df-font-md) !important; }
.preview-primary > span { margin-left: 10px; }
.preview-start-hint { color: var(--df-muted); }
html body .preview-back, html body .preview-reset { background: transparent; border-color: transparent; }
.preview-view-choice { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 16px; }
.preview-view-choice label { color: var(--df-muted); }
html body .preview-view-choice select { min-height: 44px; min-width: 200px; padding: 8px 36px 8px 12px; background-color: white; border: 1px solid var(--df-line); color: var(--df-ink); cursor: pointer; }
.preview-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 8px; color: var(--df-muted); }
.preview-explanation summary, .preview-history summary, .preview-report > summary { min-height: 44px; padding: 12px 2px; cursor: pointer; color: var(--df-link); box-sizing: border-box; }
.preview-explanation { border-top: 1px solid var(--df-line); border-bottom: 1px solid var(--df-line); }
.preview-explanation > div { padding: 0 0 18px; }
.preview-demo-note { color: var(--df-muted); margin: 18px 0 24px; text-align: center; }
.preview-definition { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 24px; margin: 20px 0; }
.preview-definition dt { color: var(--df-muted); margin-bottom: 4px; }
.preview-definition dd { margin: 0; overflow-wrap: anywhere; }
.preview-note, .preview-kicker { color: var(--df-muted); }
.preview-formula { font-weight: 650; overflow-wrap: anywhere; line-height: 1.8; }
.preview-table-wrap { overflow-x: auto; margin: 18px 0; max-width: 100%; }
.preview-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.preview-table caption { text-align: left; font-weight: 650; padding-bottom: 10px; }
.preview-table th, .preview-table td { padding: 10px 8px; border-bottom: 1px solid var(--df-line); vertical-align: top; }
.preview-table thead { background: var(--df-panel-muted); }
.preview-table th { font-weight: 600; }
.preview-table .preview-money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview-table tr[data-investor="true"] { background: #f5f8fb; }
.preview-reference { display: block; overflow-wrap: anywhere; color: var(--df-muted); }
html body .preview-reference { font-size: var(--df-font-xs) !important; }
.preview-history ol { padding-left: 22px; }
.preview-history li { padding: 5px 0 9px 6px; }
.preview-report { margin-top: 20px; border-top: 3px solid var(--df-ok); }
.preview-report-heading { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: start; margin-top: 20px; }
.preview-report h2 { color: var(--df-ok); }
.preview-report h3 { margin-top: 24px; }
.preview-success { padding: 14px; border-left: 3px solid var(--df-ok); background: #f0f6f2; }
html body .preview-footer { width: min(1120px, calc(100% - 40px)); margin: 24px auto 0; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--df-line); color: var(--df-muted); }
.preview-skip { position: absolute; left: 16px; top: -100px; padding: 12px; background: white; border: 2px solid var(--df-link); z-index: 10; min-height: 44px; }
.preview-skip:focus { top: 8px; }
html body #stage-title:focus-visible, html body #report-title:focus-visible, .preview-table-wrap:focus-visible { outline: 2px solid var(--df-link); outline-offset: 4px; }
.preview-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 620px) {
  html body main, .preview-header-inner, html body .preview-footer { width: calc(100% - 28px); }
  .preview-header-inner { min-height: 56px; }
  .preview-brand strong { font-weight: 500; }
  .preview-brand-divider { margin: 0 3px; }
  html body .preview-badge { font-size: var(--df-font-xs) !important; }
  .preview-intro { padding: 22px 0 18px; }
  .preview-panel { padding: 22px 18px; }
  .preview-stage-lead { margin-bottom: 16px; }
  .preview-capital-flow { grid-template-columns: 1fr; }
  .preview-capital, .preview-coupon { padding: 16px; gap: 7px; }
  .preview-capital > span:last-child { display: none; }
  .preview-flow-connector { flex-direction: row; justify-content: center; gap: 10px; padding: 10px 0; }
  .preview-flow-connector [aria-hidden] { transform: rotate(90deg); }
  .preview-flow-connector strong { order: 1; }
  .preview-flow-connector > span:last-child { order: 2; }
  .preview-capital-flow figcaption { padding-top: 14px; }
  .preview-journey button { justify-content: center; }
  html body .preview-step-label { font-size: var(--df-font-xs) !important; overflow-wrap: anywhere; }
  .preview-step-number { width: 22px; height: 22px; }
  html body .preview-journey button { gap: 5px; padding-left: 0; padding-right: 0; }
  .preview-navigation-note { margin: 10px 0 12px; }
  .preview-payment-meter { padding: 16px; }
  .preview-recipients { gap: 6px; }
  .preview-recipients li { padding: 12px 6px; gap: 8px; align-items: center; text-align: center; }
  .preview-recipient-name { justify-content: center; gap: 5px; }
  .preview-recipient-name .preview-symbol { width: 20px; height: 20px; }
  html body .preview-recipient-amount { font-size: var(--df-font-md) !important; }
  html body .preview-recipient-status { font-size: var(--df-font-xs) !important; }
  .preview-view-choice { justify-content: space-between; margin: 2px 0 12px; gap: 8px; }
  html body .preview-view-choice select { min-width: 0; max-width: 70%; }
  .preview-completion { grid-template-columns: 1fr; gap: 16px; }
  .preview-completion > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 4px 12px; align-items: center; }
  .preview-completion > div > span:last-child { grid-column: 2; }
  .preview-actions { gap: 8px; }
  html body .preview-primary { min-width: 0; flex: 1; }
  .preview-start-hint { display: none; }
  .preview-issue { padding: 12px; gap: 8px; }
  .preview-action-bar { margin-top: 20px; padding-top: 16px; }
  .preview-definition { grid-template-columns: 1fr; }
  .preview-table-wrap::before { content: 'Scorri la tabella per vedere tutti i dettagli.'; display: block; color: var(--df-muted); margin-bottom: 10px; }
}
@media (max-width: 420px) {
  .preview-step-label { display: none; }
  .preview-header-inner { flex-wrap: wrap; gap: 0 10px; padding: 5px 0; }
  .preview-panel { padding: 20px 14px; }
  .preview-recipients li { padding: 10px 3px; }
  .preview-recipient-name { flex-direction: column; gap: 5px; }
  .preview-brand img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { html body *, html body *::before, html body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  @page { size: A4; margin: 14mm; }
  html body { background: white !important; }
  html body main, html body footer, .preview-header-inner { width: 100% !important; }
  .preview-skip, .preview-intro, .preview-journey, .preview-navigation-note, .preview-view-choice, .preview-workspace, .preview-options, .preview-explanation, .preview-no-print, .preview-demo-note, .preview-report > summary, #status-message { display: none !important; }
  .preview-report { border: 0; padding: 12px 0; margin: 0; }
  .preview-report-heading { display: block; }
  .preview-table-wrap { overflow: visible; }
  .preview-table-wrap::before { display: none; }
  .preview-table th, .preview-table td { padding: 8px 5px; }
  .preview-report h2, .preview-report h3, .preview-table caption { break-after: avoid; }
  .preview-table tr, .preview-definition > div { break-inside: avoid; }
}

.preview-recipients li[data-selected="true"] .preview-recipient-name span, .preview-recipients li[data-selected="true"] .preview-recipient-amount span { color: var(--df-link); }

.preview-scene { animation: preview-arrive 180ms ease-out; }
@keyframes preview-arrive { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
  .preview-issue > .preview-symbol { display: none; }
  .preview-issue p { margin: 2px 0 0; }
  .preview-action-hint { line-height: 1.5; }
  .preview-primary > span { margin-left: 4px; }
}

.preview-explanations { margin-top: 12px; }
.preview-explanations .preview-explanation { border-top: 0; }
.preview-explanations > details:first-child { border-top: 1px solid var(--df-line); }
.preview-explanations .preview-history { border-bottom: 1px solid var(--df-line); }
.preview-explanations details > div { padding: 0 4px 18px; }
.preview-explanations p { line-height: 1.65; }
@media print { .preview-explanations { display: none !important; } }

/* Configurator: native inputs, immediate results, one primary journey action. */
.preview-config { margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--df-line); }
.preview-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.preview-config-field { min-width: 0; padding: 0; margin: 0; border: 0; }
.preview-config-field legend { display: flex; align-items: center; padding: 0; font-weight: 650; }
.preview-field-heading { display: flex; align-items: center; justify-content: space-between; font-weight: 650; }
.preview-input-unit { display: flex; align-items: center; border: 1px solid var(--df-line); background: white; border-radius: 6px; padding-right: 14px; gap: 8px; }
html body .preview-input-unit input { min-width: 0; width: 100%; min-height: 48px; border: 0; background: transparent; padding: 10px 12px; font-size: var(--df-font-xl) !important; font-weight: 650; color: var(--df-link); font-variant-numeric: tabular-nums; }
.preview-input-unit:focus-within { outline: 2px solid var(--df-link); outline-offset: 2px; }
.preview-input-unit input:focus-visible { outline: none; }
html body input[type="range"] { display: block; width: 100%; height: 44px; padding: 0; margin: 2px 0; accent-color: var(--df-link); cursor: pointer; }
.preview-range-scale { display: flex; justify-content: space-between; color: var(--df-muted); font-size: var(--df-font-xs); }
.preview-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-choices label { display: flex; align-items: center; justify-content: center; flex: 1 0 auto; gap: 5px; min-height: 44px; padding: 5px 9px; box-sizing: border-box; border: 1px solid var(--df-line); border-radius: 6px; cursor: pointer; background: white; }
.preview-choices input { accent-color: var(--df-link); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.preview-choices label:has(:checked) { border-color: var(--df-link); background: var(--df-action-bg); color: var(--df-link); font-weight: 650; box-shadow: inset 0 0 0 1px var(--df-link); }
.preview-choices label:has(:focus-visible) { outline: 2px solid var(--df-link); outline-offset: 3px; }
.preview-field-error { color: #9c2525; margin: 8px 0; line-height: 1.5; }
[aria-invalid="true"] { box-shadow: inset 0 -2px #9c2525; }
.preview-config-locked { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--df-panel-muted); margin-bottom: 22px; border-radius: 6px; }
.preview-config-locked button { flex-shrink: 0; }
.preview-operation-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 12px; color: var(--df-muted); }
.preview-operation-facts > span { display: inline-flex; align-items: center; }
html body .preview-primary:disabled { opacity: .55; cursor: not-allowed; }
/* Hover explanations are also focusable and pinnable by touch. */
html body .preview-help-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; background: transparent; border: 0; vertical-align: middle; flex-shrink: 0; box-shadow: none; }
.preview-help-button > span { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px !important; font-weight: 700; line-height: 1; font-style: normal; }
html body .preview-help-button:hover, html body .preview-help-button[aria-expanded="true"] { background: var(--df-action-bg); }
.preview-tooltip { position: fixed; z-index: 80; width: max-content; max-width: min(330px, calc(100vw - 20px)); box-sizing: border-box; padding: 13px 16px; background: #172f49; color: #fff; border: 1px solid #35516b; border-radius: 8px; box-shadow: 0 10px 28px #0e27482b; line-height: 1.6; font-size: var(--df-font-sm); overflow-wrap: anywhere; }
[data-help] { cursor: help; }
button[data-help] { cursor: pointer; }
.preview-definition dt { display: flex; align-items: center; }
.preview-recipients li { position: relative; }
.preview-recipients .preview-help-button { align-self: flex-end; margin-top: -10px; margin-bottom: -10px; }
.preview-allocation-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
/* Charts use common scales, explicit units and controls equivalent to hover. */
.preview-line-chart, .preview-forecast-chart { margin: 24px 0 0; padding: 18px 20px; border: 1px solid var(--df-line); border-radius: 8px; background: #fbfcfe; }
.preview-line-chart figcaption, .preview-forecast-chart figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-line-chart figcaption div, .preview-forecast-chart figcaption div { display: flex; flex-direction: column; gap: 4px; }
.preview-line-chart figcaption span, .preview-forecast-chart figcaption span { color: var(--df-muted); font-size: var(--df-font-sm); }
.preview-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 4px; font-size: var(--df-font-sm); }
.preview-chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.preview-chart-legend > span::before { content: ''; width: 20px; border-top: 3px solid var(--df-ok); }
.preview-chart-legend .preview-legend-due::before { border-top: 3px dashed var(--df-link); }
.preview-chart-legend .preview-legend-gap::before { height: 9px; background: #f0dba4; border: 1px solid #b1995d; }
.preview-lines, .preview-forecast-lines { display: block; width: 100%; overflow: visible; }
.preview-grid-line { stroke: #dce4ec; stroke-width: 1; fill: none; }
.preview-due-line { stroke: var(--df-link); stroke-width: 3; stroke-dasharray: 7 5; fill: none; }
.preview-confirmed-line { stroke: var(--df-ok); stroke-width: 4; fill: none; }
.preview-gap-area { fill: #f0dba4; fill-opacity: .55; }
.preview-chart-point { fill: var(--df-ok); stroke: #fff; stroke-width: 2; }
.preview-chart-hit { fill: transparent; pointer-events: all; }
.preview-chart-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 8px; }
.preview-chart-stages li { min-width: 0; }
html body .preview-chart-stages button { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 8px 4px; background: white; border: 1px solid var(--df-line); color: var(--df-ink); font-size: var(--df-font-xs) !important; overflow-wrap: anywhere; }
.preview-chart-stages strong { font-variant-numeric: tabular-nums; }
.preview-chart-future { display: flex; flex-direction: column; padding: 8px 4px; color: var(--df-muted); font-size: var(--df-font-xs); gap: 4px; }
.preview-line-chart > p, .preview-forecast-chart > p { line-height: 1.6; margin-bottom: 0; }
.preview-report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.preview-report-metrics > div { border: 1px solid var(--df-line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.preview-report-metrics strong { font-size: var(--df-font-xl); font-variant-numeric: tabular-nums; }
.preview-report .preview-allocation { margin-top: 20px; }
.preview-schedule-scroll { overflow-x: auto; max-width: 100%; }
.preview-schedule-bars { display: flex; width: max-content; min-width: 100%; gap: 7px; padding: 8px 2px; }
html body .preview-schedule-bar { flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: center; background: transparent; border: 0; min-width: 44px; padding: 4px; color: var(--df-ink); }
.preview-bar-fill { display: block; height: 70px; width: 24px; background: var(--df-link); border-radius: 4px 4px 0 0; }
.preview-schedule-bar:first-child .preview-bar-fill { background: var(--df-ok); }
.preview-forecast-scale, .preview-forecast-axis { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; color: var(--df-muted); font-size: var(--df-font-xs); margin-top: 12px; }
.preview-forecast-axis { margin-top: -8px; }
.preview-forecast-line { fill: none; stroke-width: 3; }
.preview-series-0 { stroke: #214a72; }
.preview-series-1 { stroke: #9b5621; stroke-dasharray: 8 4; }
.preview-series-2 { stroke: #7c4985; stroke-dasharray: 2 4; }
.preview-forecast-marker { stroke: #7e8d9d; stroke-width: 1; stroke-dasharray: 3 3; }
.preview-explore-label { display: block; margin-top: 16px; font-size: var(--df-font-sm); color: var(--df-muted); }
.preview-period-date { font-weight: 650; margin: 0 0 12px; }
.preview-forecast-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preview-forecast-values > div { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid #214a72; padding-top: 10px; color: #214a72; min-width: 0; }
.preview-forecast-values > [data-line="1"] { border-color: #9b5621; border-top-style: dashed; color: #9b5621; }
.preview-forecast-values > [data-line="2"] { border-color: #7c4985; border-top-style: dotted; color: #7c4985; }
.preview-forecast-values strong { font-size: var(--df-font-lg); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.preview-deltas { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 16px 0 0; font-size: var(--df-font-sm); }
.preview-deltas > strong { flex-basis: 100%; }
.preview-action-bar { position: static; }
@media (max-width: 620px) {
  .preview-config-grid { grid-template-columns: 1fr; gap: 14px; }
  .preview-view-choice { flex-wrap: wrap; gap: 0; justify-content: flex-start; }
  html body .preview-view-choice select { flex: 1; min-width: 160px; }
  .preview-config-locked { flex-direction: column; align-items: start; }
  .preview-line-chart, .preview-forecast-chart { padding: 12px; }
  .preview-chart-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-report-metrics { grid-template-columns: 1fr; }
  .preview-report-metrics > div { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .preview-forecast-values { gap: 8px; }
  .preview-forecast-values strong { font-size: var(--df-font-base); }
  .preview-forecast-values span { font-size: var(--df-font-xs); }
  .preview-capital-flow .preview-help-button { margin: -8px 0; }
}
@media print {
  .preview-help-button, .preview-tooltip, .preview-explore-label { display: none !important; }
  .preview-line-chart, .preview-forecast-chart, .preview-report-metrics, .preview-allocation { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html body .preview-chart-stages button { border: 0; color: #111; padding: 0; min-height: auto; }
  .preview-action-bar { position: static; }
}
@media (max-width: 420px) {
  .preview-recipients { grid-template-columns: 1fr; }
  .preview-recipients li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; text-align: left; padding: 10px 12px; gap: 4px 10px; }
  .preview-recipient-name { flex-direction: row; justify-content: flex-start; }
  .preview-recipients .preview-help-button { justify-self: end; margin: 0; }
}
