:root {
  --blue: #1f4fdb;
  --blue-deep: #143aa8;
  --blue-soft: #8da9ff;
  --ink: #10213d;
  --sub: #596579;
  --line: #d8d5cd;
  --bg: #f3f0e8;
  --paper: #fffdf8;
  --success: #087a55;
  --success-soft: #e5f4ed;
  --warning: #8b5317;
  --warning-soft: #fff4df;
  --danger: #a93434;
  --danger-soft: #fde8e5;
  --focus: #1748e0;
  --header-height: 72px;
  --steps-height: 54px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(16, 33, 61, .035) 50%, transparent calc(50% + 1px)),
    var(--bg);
  color: var(--ink);
  font-family: "Bahnschrift", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(31, 79, 219, .2); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1260px; margin-inline: auto; padding-inline: clamp(22px, 4.5vw, 72px); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; transform: translateY(-160%); border: 1px solid var(--paper); border-radius: 2px; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, summary, .drop, .donut, .chart, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:where(a, button, input, select, summary, .drop, .donut, .chart, [tabindex]) { scroll-margin-top: calc(var(--header-height) + var(--steps-height) + 24px); }

.header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(16, 33, 61, .18); background: rgba(243, 240, 232, .94); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 20px; }
.logo { color: var(--ink); font-size: 21px; font-weight: 900; letter-spacing: -.055em; text-decoration: none; }
.logo b { display: inline-block; margin-left: 2px; color: var(--blue); }
.topnav { display: flex; align-self: stretch; align-items: center; gap: 24px; }
.topnav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: #526077; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.topnav a::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after, .topnav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .52; background-image: linear-gradient(90deg, rgba(31, 79, 219, .11) 1px, transparent 1px); background-size: calc(100% / 24) 100%; mask-image: linear-gradient(90deg, transparent 0, black 52%, black 100%); }
.brand-hero-inner { min-height: 500px; padding-top: 76px; padding-bottom: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.brand-title { display: flex; max-width: 100%; margin: 0 0 20px; align-items: baseline; color: var(--ink); font-family: "Arial Black", Arial, Helvetica, sans-serif; font-size: clamp(40px, 7.4vw, 96px); font-weight: 900; line-height: 1.08; letter-spacing: -.075em; white-space: nowrap; text-wrap: nowrap; text-shadow: 0 3px 2px rgba(16, 33, 61, .08); }
.brand-energy { display: inline-block; min-width: 0; min-height: 0; margin-right: .16em; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--blue); font: inherit; line-height: inherit; letter-spacing: inherit; text-shadow: inherit; cursor: pointer; transition: color .18s ease; }
.brand-energy:hover, .brand-energy[aria-pressed="true"] { color: #1d45bb; }
.brand-energy:focus-visible { outline: 3px solid rgba(40, 85, 218, .42); outline-offset: 7px; }
.brand-planner { color: var(--ink); }
.brand-mini { position: relative; top: -.06em; align-self: flex-start; margin-left: .09em; color: var(--ink); font-family: Arial, sans-serif; font-size: .43em; font-weight: 700; line-height: 1.1; letter-spacing: -.075em; text-shadow: none; }
.brand-tagline { max-width: none; margin: 0 0 18px; color: var(--ink); font-size: clamp(16px, 1.65vw, 23px); font-weight: 700; line-height: 1.5; letter-spacing: -.045em; }
.brand-description { max-width: 620px; margin: 0 0 30px; color: var(--sub); font-size: 15px; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid rgba(16, 33, 61, .28); border-radius: 2px; background: var(--paper); color: var(--ink); padding: 10px 15px; font-size: 12px; font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: #e9eeff; }
.btn:active { transform: translate(2px, 2px); }
.btn.primary { border-color: var(--ink); background: var(--blue); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn.primary:hover { background: var(--blue-deep); box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--sub); box-shadow: none; }
.brand-curve { position: relative; width: 100%; margin-top: 38px; color: var(--blue); }
.brand-curve svg { display: block; width: 100%; height: 72px; overflow: visible; }
.brand-curve-baseline { fill: none; stroke: var(--line); stroke-width: 1; }
.brand-curve-past { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .65s ease; }
.brand-curve-future { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: 5 5; opacity: .15; transition: opacity .45s .2s; }
.brand-curve-dot { fill: currentColor; opacity: .2; transition: opacity .35s; }
.brand-curve-on .brand-curve-past { stroke-dashoffset: 0; }
.brand-curve-on .brand-curve-future, .brand-curve-on .brand-curve-dot { opacity: 1; }
.brand-curve-divider { position: absolute; top: 0; left: 66.12%; width: 1px; height: 76px; background: var(--line); }
.brand-curve-labels { position: relative; display: flex; justify-content: space-between; margin-top: 8px; color: var(--sub); font-size: 11px; line-height: 1.5; }
.brand-curve-now { position: absolute; left: 66.12%; transform: translateX(-50%); }

.service-preview { border-top: 1px solid var(--line); }
.service-preview > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; width: fit-content; max-width: 100%; list-style: none; color: var(--blue-deep); font-size: 13px; font-weight: 750; cursor: pointer; }
.service-preview > summary::-webkit-details-marker { display: none; }
.service-preview > summary span { display: inline-block; }
.service-preview[open] > summary span { transform: rotate(180deg); }
.service-preview-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); padding-block: 28px 34px; }
.service-preview-intro { min-width: 0; }
.service-preview-eyebrow { margin: 0 0 12px !important; color: var(--blue); font-size: 11px !important; font-weight: 800; letter-spacing: .12em; }
.service-preview-intro h2 { margin: 0 0 18px; font-size: clamp(28px, 3.15vw, 42px); font-weight: 850; line-height: 1.25; letter-spacing: -.05em; word-break: keep-all; }
.service-preview-intro p { margin: 0; color: var(--sub); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.service-preview-card { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.service-preview-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.service-preview-tabs button { min-width: 0; min-height: 54px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--sub); padding: 9px 5px; font-size: 12px; font-weight: 750; line-height: 1.5; word-break: keep-all; }
.service-preview-tabs button:last-child { border-right: 0; }
.service-preview-tabs button:hover { background: #e9eeff; color: var(--ink); }
.service-preview-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.service-preview-panels { display: grid; }
.service-preview-panel { grid-area: 1 / 1; min-width: 0; min-height: 310px; padding: 22px; }
.service-preview-panels > .service-preview-panel[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.service-preview-panel h3 { margin: 0 0 14px; font-size: 19px; line-height: 1.4; word-break: keep-all; }
.service-preview-panel p { margin: 14px 0 0; color: var(--sub); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.service-preview-sample { margin-top: 16px; background: #edf2ff; padding: 15px; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.service-preview-sample strong { color: var(--blue-deep); }
.service-preview-csv { font-size: 13px; }
.service-preview-graph-label { display: flex; justify-content: space-between; gap: 6px; color: var(--sub); font-size: 11px; }
.service-preview-graph-label strong { color: var(--blue-deep); }
.service-preview-curve { display: block; width: 100%; height: 90px; margin-block: 10px; }
.service-preview-curve .preview-gridline { stroke: var(--line); fill: none; }
.service-preview-curve .preview-trace { stroke: var(--blue); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }
.service-preview-curve circle { fill: var(--blue); }
.service-preview-shift { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; min-height: 90px; color: var(--blue-deep); font-size: 18px; font-weight: 800; }
.service-preview-shift small { border: 1px solid #b9c9f5; padding: 2px 6px; font-size: 11px; }
.service-preview-panel .service-preview-training-copy { margin: 0; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.65; }
.service-preview-training-flow { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--blue-deep); }
.service-preview-training-flow strong { display: grid; place-items: center; flex: 1; min-width: 0; min-height: 92px; border: 1px solid #b9c9f5; background: #edf2ff; padding: 12px 8px; font-size: 13px; line-height: 1.7; text-align: center; word-break: keep-all; }
.service-preview-training-flow > span { flex-shrink: 0; font-size: 18px; }
@media (max-width: 900px) {
  .service-preview-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-preview-tabs button:nth-child(2) { border-right: 0; }
  .service-preview-tabs button:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .service-preview-tabs button:nth-child(4) { border-right: 0; }
  .service-preview-tabs button:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .service-preview-layout { grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
  .service-preview-panel { padding: 18px; }
}
@media (max-width: 450px) {
  .service-preview-training-flow { flex-direction: column; gap: 6px; margin-top: 18px; }
  .service-preview-training-flow strong { flex: none; width: 100%; min-height: 44px; padding: 8px 12px; }
  .service-preview-training-flow > span { transform: rotate(90deg); font-size: 16px; line-height: 1; }
}

.sticky-steps { position: sticky; top: var(--header-height); z-index: 20; border-bottom: 1px solid rgba(16, 33, 61, .18); background: rgba(243, 240, 232, .96); backdrop-filter: blur(14px); }
.steps-inner { display: flex; gap: 0; overflow-x: auto; padding-block: 0; scrollbar-width: thin; }
.step-button { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; min-height: var(--steps-height); border: 0; border-right: 1px solid var(--line); background: transparent; color: #6a7484; padding: 0 25px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.step-button:first-child { border-left: 1px solid var(--line); }
.step-button:hover { background: #ebe8df; color: var(--ink); }
.step-button span { margin-right: 8px; color: var(--blue-soft); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.step-button[data-status="complete"] { color: var(--ink); font-weight: 850; box-shadow: none; }
.step-button[data-status="complete"] span { color: var(--blue); }
.step-button.is-active, .step-button[aria-current="step"] { background: var(--ink); color: #fff; box-shadow: none; }
.step-button.is-active span, .step-button[aria-current="step"] span { color: var(--blue-soft); }

.global-error { min-height: 0; margin: 0; }
.section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 clamp(42px, 5vw, 70px); padding-block: clamp(64px, 7vw, 96px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + var(--steps-height) + 24px); }
.workflow-panel { border-bottom: 0; }
.section-heading { align-self: start; min-width: 0; }
.section-heading > div:first-child { min-width: 0; }
.section-heading .status { margin-top: 22px; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.section h2 { margin: 9px 0 12px; font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -.055em; word-break: keep-all; text-wrap: balance; }
.sub { color: var(--sub); font-size: 13px; line-height: 1.7; }
.section-body { min-width: 0; grid-column: 2; }
.section > .section-body + .section-body { margin-top: 18px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); padding: 24px; }
.grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.upload-input-grid { grid-template-columns: .85fr 1.15fr; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status { display: inline-flex; align-items: center; max-width: 100%; min-height: 32px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: #67788b; padding: 6px 10px; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.status.blue { border-color: #b9c9f5; background: #e9efff; color: var(--blue); }
.status.pass, .status[data-status="READY"], .status[data-status="COMPLETED"] { border-color: #a8d4c3; background: var(--success-soft); color: var(--success); }
.status.warning, .status[data-status="QUEUED"], .status[data-status="RUNNING"] { border-color: #e6c88e; background: var(--warning-soft); color: var(--warning); }
.status.fail, .status[data-status="FAILED"], .status[data-status="BLOCKED"] { border-color: #e9b6af; background: var(--danger-soft); color: var(--danger); }

.drop { min-height: 210px; border: 1.5px dashed #aeb9c8; background: #fbfaf5; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; padding: 22px; cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s; }
.drop:hover, .drop.dragging, .drop:focus-visible { border-color: var(--blue); background: #f0f4ff; }
.upload-arrow { color: var(--blue); font-size: 32px; line-height: 1; }
.drop strong { font-size: 15px; }
.drop small { color: #7d899c; font-size: 11px; }
.panel-actions { justify-content: flex-end; margin-top: 18px; }
.file-row { margin-top: 16px; padding: 15px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid #aebff0; background: #edf2ff; }
.file-copy { min-width: 0; }
.file-copy > span, .file-copy > small { display: block; color: var(--sub); font-size: 11px; }
.file-copy > strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.file-copy > p { margin: 5px 0 0; color: var(--blue-deep); font-size: 11px; }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.select { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #bdc4cf; border-radius: 2px; background: #fff; color: var(--ink); }
.spacer { height: 18px; }
.hint { padding: 15px; border-left: 3px solid var(--blue); background: #edf3ff; color: #526686; font-size: 12px; line-height: 1.8; }
.hint strong { color: var(--blue-deep); }
.muted { color: #788497; font-size: 12px; line-height: 1.65; }
.approval { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 16px; color: var(--sub); font-size: 12px; }
.approval input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }

.quality-inline { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 24px; }
.quality-inline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.quality-kicker { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.quality-inline-heading h3 { margin: 5px 0 4px; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.quality-inline-heading p { margin: 0; color: var(--sub); font-size: 12px; line-height: 1.6; }
.quality-awaiting { min-height: 0; padding: 18px 20px; text-align: left; }
.quality-awaiting > strong { display: block; font-size: 15px; line-height: 1.45; }
.quality-awaiting > p { margin: 6px 0 0; color: var(--sub); font-size: 12px; line-height: 1.6; }
.quality-awaiting .quality-preview { margin-top: 16px; }
.quality-next-actions { justify-content: flex-end; margin-top: 18px; }
#quality-result-title, #quality-empty-title { scroll-margin-top: calc(var(--header-height) + var(--steps-height) + 18px); }

.empty-state { min-height: 260px; display: grid; place-content: center; text-align: center; }
.empty-state > strong { font-size: 21px; }
.empty-state > p { margin: 8px 0 0; color: var(--sub); }
.quality-preview { display: grid; grid-template-columns: 1fr 1.5fr; margin: 20px 0 0; text-align: left; }
.quality-preview dt, .quality-preview dd { border-top: 1px solid var(--line); padding: 9px 0; font-size: 12px; }
.quality-preview dt { color: var(--sub); }
.quality-preview dd { margin: 0; text-align: right; font-weight: 700; }
.status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.stats { margin-bottom: 18px; }
.metric-card, .metric { min-width: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); padding: 18px; }
.metric-card span, .metric .label { color: #77879b; font-size: 11px; }
.metric-card strong, .metric .value { display: block; margin: 7px 0; overflow-wrap: anywhere; font-size: clamp(20px, 2vw, 29px); font-weight: 850; letter-spacing: -.04em; }
.metric-card small { display: block; color: #8696aa; font-size: 10px; line-height: 1.5; }
.metric .value.compact { font-size: clamp(17px, 1.55vw, 23px); }
.metric .foot { color: #8696aa; font-size: 10px; }
.metric .value, .metric .foot { font-variant-numeric: tabular-nums; }
.ok { color: var(--success) !important; }
.detail-panel { margin-top: 18px; }
.quality-detail-list { border-top: 1px solid var(--line); }
.detail-state { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; text-align: right; }
.detail-state-icon { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.detail-state[data-state="pass"] { color: var(--success); }
.detail-state[data-state="warning"] { color: var(--warning); }
.detail-state[data-state="fail"] { color: var(--danger); }
.quality-notice { margin-top: 18px; }
.section-text { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.notice { border-left: 3px solid var(--blue); background: #edf2ff; color: #506686; padding: 13px 15px; font-size: 12px; line-height: 1.75; }
.notice ul { margin: 8px 0 0; padding-left: 18px; }
.split-results { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.split-results h3 { margin: 0 0 12px; font-size: 14px; }
.split-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.split-grid > div { border: 1px solid var(--line); padding: 12px; }
.split-grid span, .split-grid small { display: block; color: var(--sub); font-size: 10px; }
.split-grid strong { display: block; margin: 6px 0; overflow-wrap: anywhere; font-size: 11px; }

.training-status-panel { display: flex; flex-direction: column; justify-content: space-between; }
.training-actions { margin-top: 20px; }
.train-track { height: 8px; margin-block: 14px; overflow: hidden; background: #e4e6e5; }
.train-fill { width: 0; height: 100%; background: var(--blue); transition: width .3s ease; }
.progress-note { margin: 0; }
.split { height: 24px; display: flex; overflow: hidden; margin-top: 20px; color: #fff; font-size: 10px; font-weight: 700; text-align: center; }
.split span { display: grid; place-items: center; }
.train-split { width: 66.67%; background: #2855da; }
.validation-split { width: 16.665%; background: #80a7ef; }
.test-split { width: 16.665%; background: #aabbd8; }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e9e6df; font-size: 12px; }
.detail-row:last-of-type { border-bottom: 0; }
.model-input-details { margin-top: 10px; border-top: 1px solid #e9e6df; color: var(--sub); }
.model-input-details > summary,
.training-evaluation-details > summary { display: flex; min-height: 44px; align-items: center; gap: 5px; width: fit-content; list-style: none; color: var(--sub); font-size: 12px; font-weight: 700; cursor: pointer; }
.model-input-details > summary::-webkit-details-marker,
.training-evaluation-details > summary::-webkit-details-marker { display: none; }
.model-input-details > summary span,
.training-evaluation-details > summary span { display: inline-block; color: #8490a0; transition: transform .18s ease; }
.model-input-details[open] > summary span,
.training-evaluation-details[open] > summary span { transform: rotate(180deg); }
.model-input-details > summary:focus-visible,
.training-evaluation-details > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.model-input-content { padding: 2px 0 6px; border-top: 1px solid #eeece6; }
.model-input-count { margin: 13px 0 8px; color: var(--ink); font-size: 12px; }
.model-feature-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.model-feature-list li { display: grid; grid-template-columns: minmax(128px, .9fr) minmax(0, 1.45fr); gap: 14px; padding: 8px 0; border-bottom: 1px solid #eeece6; font-size: 12px; line-height: 1.55; }
.model-feature-names { color: var(--blue-deep); font-weight: 750; overflow-wrap: anywhere; }
.model-feature-names code { font: inherit; }
.model-lookback { display: grid; gap: 3px; margin: 11px 0 0; font-size: 12px; line-height: 1.55; }
.model-lookback strong { color: var(--ink); font-weight: 750; }
.model-lookback span { color: var(--sub); }
.model-results { margin-top: 18px; border-color: #d8e2ff; border-left: 4px solid var(--blue); background: #edf2ff; }
.training-selection-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.training-selection-copy { display: grid; min-width: 0; gap: 6px; }
.training-selection-label { color: #506686; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.training-selected-model { color: var(--blue-deep); font-size: clamp(25px, 3.3vw, 38px); font-weight: 900; line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
.training-complete-badge { flex: 0 0 auto; border: 1px solid #b9c9f5; background: #fff; color: var(--blue); padding: 5px 8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.training-selection-reason { max-width: 72ch; margin: 13px 0 0; color: #506686; font-size: 13px; line-height: 1.7; }
.training-evaluation-details { margin-top: 15px; border-top: 1px solid #d8e2ff; color: var(--sub); }
.training-evaluation-content { border-top: 1px solid #eeece6; padding-top: 20px; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid #e9e6df; }
.table th { color: #8291a5; font-size: 11px; }
.table tr.selected { background: #edf2ff; color: var(--blue-deep); }
.metric-comparison-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.metric-comparison-heading h3 { margin-bottom: 5px; }
.metric-comparison-heading p { max-width: 72ch; margin: 0; color: var(--sub); font-size: 12px; line-height: 1.6; }
.test-comparison-heading { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.metric-table-wrap { margin-top: 12px; }
.metric-comparison-table { min-width: 920px; font-variant-numeric: tabular-nums; }
.metric-comparison-table th:first-child { min-width: 158px; }
.metric-comparison-table th:not(:first-child), .metric-comparison-table td { text-align: right; white-space: nowrap; }
.metric-comparison-table th:last-child { min-width: 118px; }
.metric-comparison-table thead small { color: var(--sub); font-size: 9px; font-weight: 650; }
.metric-comparison-table tbody th { color: var(--ink); font-size: 12px; font-weight: 750; }
.metric-comparison-table td { color: var(--ink); font-size: 12px; }

.section-heading-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.section-heading-actions .status { margin-top: 0; }
.forecast-period { margin: 18px 0 10px; color: var(--blue-deep); font-size: clamp(21px, 2.6vw, 34px); font-weight: 850; line-height: 1.25; letter-spacing: -.045em; font-variant-numeric: tabular-nums; text-wrap: balance; }
.dashboard-gate { min-height: 430px; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 46px); border-color: #bfc7d2; }
.dashboard-gate-copy { max-width: 680px; }
.dashboard-gate-copy h3 { max-width: 24ch; margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.dashboard-gate-copy p { max-width: 62ch; margin: 10px 0 0; color: var(--sub); line-height: 1.75; }
.readiness-list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.readiness-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 72px; border-bottom: 1px solid var(--line); }
.readiness-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); color: var(--sub); font-size: 10px; font-weight: 850; font-variant-numeric: tabular-nums; }
.readiness-copy { min-width: 0; }
.readiness-copy strong, .readiness-copy small { display: block; }
.readiness-copy strong { font-size: 13px; }
.readiness-copy small { margin-top: 3px; color: var(--sub); font-size: 11px; line-height: 1.55; }
.readiness-state { min-width: 58px; color: var(--sub); font-size: 11px; font-weight: 800; text-align: right; }
.readiness-list li[data-state="complete"] .readiness-mark { border-color: #9bcbb8; background: var(--success-soft); color: var(--success); }
.readiness-list li[data-state="complete"] .readiness-state { color: var(--success); }
.readiness-list li[data-state="current"] .readiness-mark, .readiness-list li[data-state="ready"] .readiness-mark { border-color: #9fb5f3; background: #e9efff; color: var(--blue); }
.readiness-list li[data-state="current"] .readiness-state, .readiness-list li[data-state="ready"] .readiness-state { color: var(--blue); }
.readiness-list li[data-state="in-progress"] .readiness-mark { border-color: #e6c88e; background: var(--warning-soft); color: var(--warning); }
.readiness-list li[data-state="in-progress"] .readiness-state { color: var(--warning); }
.readiness-list li[data-state="fail"] .readiness-mark { border-color: #e9b6af; background: var(--danger-soft); color: var(--danger); }
.readiness-list li[data-state="fail"] .readiness-state { color: var(--danger); }
.dashboard-gate-actions { margin-top: 24px; }
.forecast-summary { display: grid; gap: 7px; margin-bottom: 18px; border-left: 4px solid var(--blue); background: #eaf0ff; padding: 20px 22px; }
.forecast-summary p { margin: 0; }
#forecast-narrative { max-width: 74ch; color: var(--ink); font-size: clamp(16px, 1.65vw, 21px); font-weight: 750; line-height: 1.55; letter-spacing: -.025em; text-wrap: pretty; }
.forecast-provenance { color: var(--sub); font-size: 11px; }
.forecast-stats { margin-bottom: 18px; }
.forecast-stats .metric { min-height: 168px; }
.forecast-stats .metric-primary { border-top: 4px solid var(--blue); }
.metric-help { margin-top: 10px; border-top: 1px solid var(--line); }
.metric-help summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 11px; font-weight: 750; cursor: pointer; }
.metric-help p { margin: 0 0 10px; color: var(--sub); font-size: 11px; line-height: 1.65; }
.chart-panel, .usage-grid, .monthly-usage, .ai-analysis-panel { margin-top: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-heading .status { margin-top: 0; }
.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: 260px; overflow: visible; }
.forecast-chart { height: auto; min-height: 300px; font-variant-numeric: tabular-nums; touch-action: pan-y; }
.tooltip { position: absolute; z-index: 3; pointer-events: none; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: #fff; padding: 8px 10px; font-size: 11px; white-space: pre-line; box-shadow: 3px 3px 0 rgba(16, 33, 61, .14); }
.forecast-tooltip { max-width: min(330px, calc(100% - 16px)); line-height: 1.55; }
.chart-heading { align-items: center; }
.series-toggle { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; border: 1px solid var(--line); background: #f9f7f1; padding: 8px 12px; color: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; }
.series-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; color: var(--sub); font-size: 11px; }
.chart-legend i { display: inline-block; width: 20px; height: 3px; margin-right: 6px; vertical-align: middle; }
.chart-legend .actual { background: #8b9691; }
.chart-legend .forecast { background: repeating-linear-gradient(90deg, var(--blue) 0 7px, transparent 7px 11px); }
.forecast-scrubber { display: grid; grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: 2px 16px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.forecast-scrubber label { color: var(--ink); font-size: 11px; font-weight: 750; }
.forecast-scrubber input[type="range"] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.forecast-scrubber output { grid-column: 2; color: var(--sub); font-size: 11px; line-height: 1.55; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.forecast-table-details { margin-top: 14px; border-top: 1px solid var(--line); }
.forecast-table-details summary { min-height: 44px; display: flex; align-items: center; color: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; }
.data-table-scroll { max-height: 280px; overflow: auto; border: 1px solid var(--line); }
.data-table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table-scroll th, .data-table-scroll td { padding: 9px 12px; border-bottom: 1px solid #ebe8e1; text-align: left; }
.data-table-scroll th { position: sticky; top: 0; background: var(--paper); color: var(--sub); }
.forecast-validation-details { margin-top: 18px; }
.forecast-validation-details > summary { display: flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.forecast-performance-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--sub); font-size: 11px; }
.forecast-performance-meta strong { margin-left: 5px; color: var(--ink); font-size: 12px; }
.forecast-performance-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px 0 12px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.forecast-performance-grid > div { min-width: 0; border-right: 1px solid var(--line); padding: 14px; }
.forecast-performance-grid > div:last-child { border-right: 0; }
.forecast-performance-grid dt, .forecast-performance-grid dd { margin: 0; font-size: 12px; font-weight: 750; line-height: 1.45; }
.forecast-performance-grid dt { min-height: 36px; color: var(--sub); }
.forecast-performance-grid dt small { font: inherit; }
.forecast-performance-grid dd { margin-top: 9px; color: var(--ink); overflow-wrap: anywhere; }
.period-composition { display: grid; grid-template-columns: 158px minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 14px; }
.donut { position: relative; width: 158px; height: 158px; border-radius: 50%; background: conic-gradient(var(--line) 0 100%); cursor: crosshair; }
.donut::after { content: "7일"; position: absolute; inset: 26%; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--sub); font-weight: 800; }
.period-list { margin: 0; padding: 0; list-style: none; }
.period-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; min-height: 36px; border-bottom: 1px solid var(--line); font-size: 11px; }
.period-list i { width: 9px; height: 9px; border-radius: 50%; }
.monthly-usage-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.monthly-usage-item { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); padding: 13px; font-size: 11px; }
.workflow-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; border: 1px solid #b9c9f5; background: #edf2ff; padding: 20px 22px; }
.workflow-next strong { display: block; font-size: 14px; }
.workflow-next p { margin: 5px 0 0; color: var(--sub); font-size: 11px; line-height: 1.6; }
.report-gate { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 30px; align-items: center; }
.report-target-period { margin: 0 0 16px; color: var(--ink); font-size: clamp(18px, 2vw, 25px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.report-ready-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.report-ready-facts span { border: 1px solid #b9c9f5; background: #f2f5ff; color: var(--blue-deep); padding: 6px 8px; font-size: 10px; font-weight: 750; }
.report-gate-action { border-left: 1px solid var(--line); padding-left: 28px; }
.report-gate-action .btn { width: 100%; }
.report-gate-action p { margin: 12px 0 0; }
.report-generation-progress { display: flex; align-items: center; gap: 14px; margin-top: 14px; border-left: 3px solid var(--blue); background: #edf2ff; padding: 15px 18px; }
.report-generation-progress p { margin: 4px 0 0; color: var(--sub); font-size: 11px; }
.report-spinner { width: 20px; height: 20px; flex: 0 0 auto; border: 2px solid #b9c9f5; border-top-color: var(--blue); border-radius: 50%; animation: report-spin .8s linear infinite; }
@keyframes report-spin { to { transform: rotate(360deg); } }
.report-preview { margin-top: 18px; }
.report-heading { align-items: center; }
.report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ai-report { border-top: 1px solid var(--ink); margin-top: 24px; }
.report-cover { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.report-badge { display: inline-flex; border: 1px solid #b9c9f5; background: #e9efff; color: var(--blue); padding: 5px 8px; font-size: 10px; font-weight: 800; }
.report-purpose { display: inline-flex; margin-left: 6px; border: 1px solid var(--line); color: var(--sub); padding: 5px 8px; font-size: 10px; font-weight: 750; }
.report-purpose[data-purpose="historical_validation"] { border-style: dashed; }
.report-kicker { margin: 18px 0 5px !important; color: var(--sub) !important; font-size: 10px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.report-cover h4 { margin: 14px 0 9px; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.045em; text-wrap: balance; }
.report-cover p { max-width: 68ch; margin: 0; color: var(--ink); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.report-cover .report-supporting-copy, .report-supporting-copy { margin-top: 9px; color: var(--sub); font-size: 13px; line-height: 1.7; }
.report-main-copy { max-width: 78ch; margin: 0; color: var(--ink); font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.report-observations { grid-column: 1 / -1; display: grid; gap: 16px; margin: 0; }
.report-observations > div { border-top: 1px solid var(--line); padding-top: 14px; }
.report-observations dt { margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.report-observations dd { margin: 0; }
.report-observations p { max-width: 80ch; margin-bottom: 6px; font-size: 14px; line-height: 1.7; }
.report-observations .observation-facts { color: var(--sub); }
.observation-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.observation-evidence span { border-bottom: 1px solid var(--line); color: var(--sub); font-size: 11px; }
.report-meta { margin: 0; border-top: 1px solid var(--line); }
.report-meta > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.report-meta dt { color: var(--sub); font-size: 10px; }
.report-meta dd { margin: 0; font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.report-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.report-section:last-child { border-bottom: 0; }
.report-section h5 { margin: 0 0 16px; font-size: 18px; letter-spacing: -.025em; }
.report-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.report-section-heading h5 { margin-bottom: 3px; }
.report-section-heading p { margin: 0; color: var(--sub); font-size: 11px; line-height: 1.6; }
.report-section-heading h6 { margin: 0 0 3px; font-size: 14px; }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-metrics > div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.report-metrics > div:last-child { border-right: 0; }
.report-metrics span, .report-metrics small { display: block; color: var(--sub); font-size: 10px; }
.report-metrics strong { display: block; margin: 7px 0 4px; font-size: clamp(21px, 2.5vw, 32px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-priority { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; margin: 18px 0 0; background: #edf2ff; padding: 15px; }
.report-priority span { color: var(--blue); font-size: 10px; font-weight: 800; }
.report-priority strong { font-size: 13px; line-height: 1.55; }
.report-chart { height: auto; min-height: 290px; touch-action: pan-y; font-variant-numeric: tabular-nums; }
.report-chart-block { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.chart-legend .baseline { background: #737e8d; }
.recommendation-list { margin: 0; padding: 0; list-style: none; counter-reset: recommendation; border-top: 1px solid var(--line); }
.recommendation-list li { counter-increment: recommendation; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.recommendation-list li::before { content: counter(recommendation, decimal-leading-zero); display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--blue); color: var(--blue); font-size: 10px; font-weight: 900; }
.recommendation-copy h6 { margin: 0 0 7px; font-size: 14px; }
.recommendation-copy p { margin: 4px 0; color: var(--sub); font-size: 11px; line-height: 1.65; }
.recommendation-copy .recommendation-action { color: var(--ink); font-size: 12px; font-weight: 700; }
.recommendation-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.recommendation-evidence span { border: 1px solid #b9c9f5; background: #f2f5ff; color: var(--blue-deep); padding: 3px 6px; font-size: 9px; }
.simulator-gate { display: grid; min-height: 220px; align-content: center; justify-items: start; gap: 8px; }
.simulator-gate p { max-width: 64ch; margin: 0 0 12px; color: var(--sub); }
.simulator-workspace { background: #fbfaf5; }
.simulator-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.simulator-grid label { color: var(--sub); font-size: 10px; font-weight: 750; }
.simulator-grid input, .simulator-grid select { width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid #bdc4cf; border-radius: 2px; background: #fff; color: var(--ink); padding: 9px 10px; }
.simulator-grid small { display: block; margin-top: 5px; color: var(--sub); font-weight: 400; line-height: 1.45; }
.simulator-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); background: var(--paper); }
.simulator-results > div { padding: 15px; border-right: 1px solid var(--line); }
.simulator-results > div:nth-child(5) { border-right: 0; }
.simulator-results span, .simulator-results strong { display: block; }
.simulator-results span { color: var(--sub); font-size: 10px; }
.simulator-results strong { margin-top: 5px; font-size: 16px; font-variant-numeric: tabular-nums; }
.simulator-saving strong { color: var(--success); }
.simulator-results p { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line); padding: 12px 15px; color: var(--sub); font-size: 11px; }
.simulator-chart-panel { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.simulator-chart { height: auto; min-height: 290px; font-variant-numeric: tabular-nums; }
.chart-legend .decrease { width: 10px; height: 10px; border: 3px solid var(--danger); border-radius: 50%; background: transparent; }
.chart-legend .increase { width: 10px; height: 10px; border: 3px solid var(--success); border-radius: 50%; background: transparent; }
.simulator-caveat { margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.inline-error { margin-bottom: 12px; border-left: 3px solid var(--danger); background: var(--danger-soft); color: var(--danger); padding: 10px 12px; font-size: 11px; }
.quality-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.quality-grid dl { margin: 0; border-top: 1px solid var(--line); }
.quality-grid dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.quality-grid dt { color: var(--sub); font-size: 11px; }
.quality-grid dd { margin: 0; font-size: 11px; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.quality-grid h6 { margin: 0 0 10px; font-size: 12px; }
.quality-grid ul { margin: 0; padding-left: 18px; color: var(--sub); font-size: 11px; line-height: 1.7; }
.report-limitations { max-width: 82ch; margin: 0; padding-left: 20px; color: var(--sub); font-size: 12px; line-height: 1.8; }
.report-technical { padding: 0; }
.report-technical > summary { cursor: pointer; padding: 22px 0; color: var(--ink); font-size: 15px; font-weight: 800; }
.report-technical[open] > summary { border-bottom: 1px solid var(--line); }
.report-technical .quality-grid { grid-template-columns: 1fr; padding: 22px 0; }
.report-technical .quality-grid dl > div { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); }
.report-metric-group h6 { margin: 0 0 10px; color: var(--ink); font-size: 12px; }
.report-technical-context { margin-top: 8px !important; }
.report-privacy { margin-top: 18px; }
.ai-footer-actions { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.error { color: var(--danger); font-size: 12px; }
.disclaimer { border-top: 1px solid var(--line); padding: 30px; color: #8c94a0; font-size: 11px; text-align: center; }

@media (max-width: 900px) {
  .section { grid-template-columns: 190px minmax(0, 1fr); gap: 0 30px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .forecast-performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-performance-grid > div { border-bottom: 1px solid var(--line); }
  .forecast-performance-grid > div:nth-child(2n) { border-right: 0; }
  .forecast-performance-grid > div:last-child { border-bottom: 0; }
  .simulator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-gate { grid-template-columns: 1fr; }
  .report-gate-action { border-top: 1px solid var(--line); border-left: 0; padding-top: 20px; padding-left: 0; }
  .simulator-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simulator-results > div { border-bottom: 1px solid var(--line); }
  .simulator-results > div:nth-child(5) { border-right: 1px solid var(--line); }
}

@media (max-width: 700px) {
  :root { --header-height: 62px; --steps-height: 50px; }
  .container { padding-inline: 20px; }
  .header-inner { gap: 12px; }
  .logo { font-size: 17px; }
  .topnav { gap: 13px; }
  .topnav a { font-size: 11px; }
  .topnav a::after { bottom: 9px; }
  .brand-hero-inner { min-height: 430px; padding-top: 60px; padding-bottom: 34px; }
  .brand-title { margin-bottom: 18px; font-size: clamp(28px, 8vw, 55px); }
  .brand-tagline { font-size: 16px; }
  .brand-description { margin-bottom: 26px; font-size: 14px; }
  .brand-curve { margin-top: 32px; }
  .steps-inner { padding-inline: 0; }
  .step-button { min-height: var(--steps-height); padding: 0 16px; }
  .section { display: block; padding-block: 52px; }
  .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .section-heading .status { flex: 0 0 auto; margin-top: 0; }
  .section h2 { font-size: 28px; }
  .panel { padding: 18px; }
  .section-heading-actions { align-items: flex-end; flex: 0 0 auto; }
  .grid3 { grid-template-columns: 1fr; }
  .dashboard-gate { min-height: 0; padding: 24px 20px; }
  .chart-heading { align-items: stretch; flex-direction: column; }
  .series-toggle { align-self: flex-start; }
  .forecast-chart { min-height: 220px; }
  .forecast-scrubber { grid-template-columns: 1fr; }
  .forecast-scrubber output { grid-column: 1; }
  .readiness-list li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .period-composition { grid-template-columns: 130px minmax(0, 1fr); }
  .donut { width: 130px; height: 130px; }
  .status { white-space: normal; }
  .report-heading, .report-section-heading { align-items: stretch; flex-direction: column; }
  .report-actions { justify-content: flex-start; }
  .report-cover, .quality-grid { grid-template-columns: 1fr; }
  .report-metrics { grid-template-columns: 1fr; }
  .report-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-metrics > div:last-child { border-bottom: 0; }
  .workflow-next { align-items: stretch; flex-direction: column; }
  .workflow-next .actions { width: 100%; }
  .simulator-results { grid-template-columns: 1fr; }
  .simulator-results > div { border-right: 0; }
  .simulator-chart { min-height: 230px; }
  .simulator-grid input, .simulator-grid select { font-size: 16px; }
  .quality-inline { margin-top: 18px; padding-top: 20px; }
  .report-technical .quality-grid dl > div { grid-template-columns: 1fr; }
  .report-technical .quality-grid dd { text-align: left; }
}

@media (max-width: 450px) {
  .container { padding-inline: 15px; }
  .topnav { gap: 8px; }
  .topnav a { font-size: 10px; }
  .brand-title { font-size: 8vw; }
  .brand-mini { font-size: .4em; }
  .brand-curve-now { top: -20px; }
  .section { padding-block: 42px; }
  .section-heading { display: block; }
  .section-heading .status { margin-top: 13px; }
  .section-heading-actions { align-items: flex-start; margin-top: 13px; }
  .section h2 { font-size: 25px; }
  .grid4, .split-grid, .monthly-usage-list { grid-template-columns: 1fr; }
  .panel { padding: 15px; }
  .file-row { align-items: stretch; flex-direction: column; }
  .panel-heading { display: flex; }
  .panel-heading .status { margin-top: 0; }
  .period-composition { grid-template-columns: 1fr; justify-items: center; }
  .period-list { width: 100%; }
  .detail-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .readiness-list li { grid-template-columns: 34px minmax(0, 1fr); padding-block: 12px; }
  .readiness-state { grid-column: 2; min-width: 0; text-align: left; }
  .forecast-summary { padding: 16px; }
  .model-feature-list li { grid-template-columns: 1fr; gap: 2px; }
  .metric-comparison-heading { display: block; }
  .metric-comparison-heading .status { display: inline-flex; margin-top: 10px; }
  .forecast-performance-grid { grid-template-columns: 1fr; }
  .forecast-performance-grid > div { border-right: 0; }
  .report-actions .btn { width: 100%; }
  .report-meta > div, .report-priority { grid-template-columns: 1fr; gap: 4px; }
  .simulator-grid { grid-template-columns: 1fr; }
  .recommendation-list li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .quality-next-actions .btn { width: 100%; }
}

@media print {
  @page { size: A4; margin: 13mm; }
  body.print-ai-report { background: #fff; color: #10213d; font-size: 10pt; }
  body.print-ai-report .header,
  body.print-ai-report .skip-link,
  body.print-ai-report .hero,
  body.print-ai-report .service-preview-wrap,
  body.print-ai-report .sticky-steps,
  body.print-ai-report main > section:not(#report),
  body.print-ai-report #report > .section-heading,
  body.print-ai-report #report-gate,
  body.print-ai-report #report-generation-progress,
  body.print-ai-report #report-preview > :not(#ai-report),
  body.print-ai-report .report-privacy,
  body.print-ai-report .report-actions,
  body.print-ai-report .series-toggle,
  body.print-ai-report .forecast-scrubber,
  body.print-ai-report .disclaimer { display: none !important; }
  body.print-ai-report main,
  body.print-ai-report #report,
  body.print-ai-report #report .section-body,
  body.print-ai-report #report-preview,
  body.print-ai-report #ai-report { display: block !important; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; }
  body.print-ai-report .report-cover { grid-template-columns: 1.2fr .8fr; padding-top: 0; }
  body.print-ai-report .report-section { break-inside: avoid; padding: 18px 0; }
  body.print-ai-report .report-chart { max-height: 76mm; }
  body.print-ai-report .recommendation-list li { break-inside: avoid; }
  body.print-ai-report .report-technical > * { display: block !important; }
  body.print-ai-report .report-technical > summary { list-style: none; }
  body.print-ai-report .quality-grid { grid-template-columns: 1fr; }
  body.print-ai-report .btn { display: none !important; }
  body.print-ai-report * { box-shadow: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
