/* Request assistant: guided flow, solution draft, estimate and printable offer.
   Built on the platform tokens (static/css/platform.css), so light and dark mode follow the shell. */

.assistant { --assist: var(--accent); --assist-soft: var(--accent-soft); }

/* Stepper */
.assistant-stepper { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px; padding: 0; list-style: none; }
.assistant-stepper li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 600; }
.assistant-stepper li + li::before { content: ""; width: 22px; height: 1px; margin-right: 4px; background: var(--border-strong); }
.assistant-stepper span { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); font-size: 12px; }
.assistant-stepper .is-current { color: var(--ink); }
.assistant-stepper .is-current span { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.assistant-stepper .is-done span { border-color: var(--success-line); background: var(--success-bg); color: var(--success); }

/* Layout */
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.assistant-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.assistant-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.assistant-panel { padding: 24px 26px; }
.assistant-panel__head { display: flex; flex-direction: column; gap: 8px; }
.assistant-panel__head--split { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; }
.assistant-understood { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; }
.assistant-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.assistant-note { margin: 0 0 16px; }
.assistant-muted { margin: 0; color: var(--muted); font-size: 13px; }
.assistant-sections { display: flex; flex-direction: column; gap: 16px; }

/* Description (collapsible) */
.assistant-intake summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.assistant-intake summary::-webkit-details-marker { display: none; }
.assistant-intake__chevron { color: var(--muted); transition: transform .15s ease; }
.assistant-intake[open] .assistant-intake__chevron { transform: rotate(180deg); }
.assistant-intake__text { margin: 12px 0 0; color: var(--body); font-size: 14px; line-height: 1.6; }

/* Facts as chips */
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.fact-chips div { display: flex; align-items: baseline; gap: 6px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); font-size: 12px; }
.fact-chips dt { color: var(--muted); }
.fact-chips dd { margin: 0; color: var(--ink); font-weight: 600; }
.fact-chips--known div { border-color: var(--success-line); background: var(--success-bg); }

/* Chips (radio / checkbox) */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--field-bg); color: var(--ink); font-size: 13.5px; line-height: 1.3; transition: background-color .12s ease, border-color .12s ease; }
.chip:hover span { border-color: var(--border-hover); background: var(--hover); }
.chip input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.chip--unknown span { border-style: dashed; color: var(--muted); }
.chip--unknown input:checked + span { border-style: solid; border-color: var(--border-strong); background: var(--hover); color: var(--ink); }
.chip-row { margin: 0; padding: 0; border: 0; }
.chip-row legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 600; }

/* Intake form */
.intake-form textarea { min-height: 190px; font-size: 15.5px; }
.intake-form__hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.intake-form__chips { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.intake-form__optional { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.assistant-privacy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Questions */
.questions-form { display: flex; flex-direction: column; gap: 16px; }
.questions-form__title { margin: 8px 0 0; color: var(--ink); font-size: 18px; letter-spacing: -.01em; }
.question-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 18px 18px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.question-card legend { display: flex; gap: 12px; float: left; width: 100%; margin-bottom: 4px; padding: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.question-card legend + * { clear: both; }
.question-card__num { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 12px; }
.question-card__why { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 12.5px; }
.question-card__hint { color: var(--muted); font-size: 12px; }
.question-card__label { color: var(--ink); font-size: 14px; font-weight: 600; }
.question-card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--field-bg); color: var(--ink); line-height: 1.5; resize: vertical; }
.question-card--note { background: transparent; border-style: dashed; }

/* Answers summary */
.answer-list { display: flex; flex-direction: column; margin: 16px 0 0; border-top: 1px solid var(--border); }
.answer-list div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.answer-list dt { color: var(--body); }
.answer-list dd { margin: 0; color: var(--ink); font-weight: 600; }
.answer-list .is-unknown dd { color: var(--warning); }

/* Pending, skeleton, error */
.assistant-pending { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.assistant-pending p { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.assistant-pending small { color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; }
.assistant-spinner { width: 22px; height: 22px; flex: none; border: 2.5px solid var(--border-strong); border-top-color: var(--assist); border-radius: 50%; animation: assistant-spin .8s linear infinite; }
@keyframes assistant-spin { to { transform: rotate(360deg); } }
.skeleton { display: flex; flex-direction: column; gap: 10px; }
.skeleton i { height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--hover), var(--surface-2), var(--hover)); background-size: 200% 100%; animation: assistant-shimmer 1.4s ease-in-out infinite; }
.skeleton i:nth-child(1) { width: 92%; }
.skeleton i:nth-child(2) { width: 76%; }
.skeleton i:nth-child(3) { width: 58%; }
.skeleton--compact { margin-top: 12px; }
@keyframes assistant-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .assistant-spinner, .skeleton i { animation: none; } }
.assistant-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--danger-line); border-radius: var(--r-sm); background: var(--danger-bg); }
.assistant-error p { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.5; }

/* Design sections */
.design-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.design-section__head h2 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -.015em; }
.design-section__num { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--assist-soft); color: var(--assist); font-size: 13px; font-weight: 700; }
.design-section[data-status="done"] { animation: assistant-in .35s ease; }
@keyframes assistant-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.design-title { margin: 0 0 8px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.design-pull { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 3px solid var(--assist); color: var(--ink); font-size: 15px; line-height: 1.6; }
.design-text { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.65; }
.design-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.design-list li { position: relative; display: flex; gap: 9px; color: var(--body); font-size: 14px; line-height: 1.5; }
.design-list li:not(:has(.icon))::before { content: ""; width: 6px; height: 6px; flex: none; margin: 8px 4px 0 5px; border-radius: 50%; background: var(--faint); }
.design-list--check .icon { margin-top: 2px; color: var(--success); }
.design-list--minus li::before { content: "–"; width: auto; height: auto; margin: 0 6px 0 3px; border-radius: 0; background: none; color: var(--muted); }
.design-reuse { display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--assist-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.design-reuse .icon { margin-top: 1px; color: var(--assist); }

/* Process chains */
.flow-compare { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.flow-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }
.flow-row__label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.flow-chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 0; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-chain li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.flow-chain li + li { margin-left: 26px; }
.flow-chain li + li::before { content: "→"; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 400; }
.flow-chain small { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.flow-chain--today li { border-style: dashed; background: transparent; color: var(--body); font-weight: 500; }
.flow-step--agent { border-color: var(--assist) !important; background: var(--assist-soft) !important; }
.flow-step--agent small { color: var(--assist); }
.flow-step--system { background: var(--surface-2) !important; }

/* Building blocks */
.block-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.block-card { display: flex; align-items: center; gap: 16px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); transition: opacity .15s ease; }
.block-card__body { flex: 1; min-width: 0; }
.block-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.block-card__title strong { color: var(--ink); font-size: 14px; }
.block-card p { margin: 3px 0 0; color: var(--body); font-size: 13px; line-height: 1.45; }
.block-card__why, .block-card__units { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.block-card__why::before { content: "↳ "; }
.block-card--frame { background: var(--surface-2); }
.block-card--custom { border-style: dashed; }
.block-card.is-excluded { opacity: .55; }
.block-card.is-excluded .block-card__title strong { text-decoration: line-through; }
.block-tag { display: inline-flex; padding: 2px 8px; border-radius: 99px; background: var(--hover); color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.block-tag--custom { background: var(--warning-bg); color: var(--warning); }
.toggle { display: inline-flex; flex: none; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { position: relative; width: 36px; height: 20px; border-radius: 99px; background: var(--border-strong); transition: background-color .15s ease; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.toggle input:checked + .toggle__track { background: var(--success); }
.toggle input:checked + .toggle__track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__track { box-shadow: var(--focus); }

/* Scope */
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.scope-grid h3 { margin: 0; color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.scope-grid .design-list { margin-top: 10px; }

/* Estimate */
.estimate { border-color: var(--border-strong); }
.estimate-figures { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r); background: var(--border); }
.estimate-figure { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); }
.estimate-figure > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.estimate-figure strong { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 19px; letter-spacing: -.015em; }
.estimate-figure small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.estimate-figure--price { background: var(--assist-soft); }
.estimate-figure--price strong { font-size: 28px; }
.estimate-figure__text { font-size: 20px !important; }
.confidence-dots { display: inline-flex; gap: 3px; }
.confidence-dots b { width: 7px; height: 16px; border-radius: 3px; background: var(--border-strong); }
.estimate-figure--high .confidence-dots b { background: var(--success); }
.estimate-figure--medium .confidence-dots b:nth-child(-n+2) { background: var(--warning); }
.estimate-figure--low .confidence-dots b:first-child { background: var(--danger); }

.timeline { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.timeline__row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: center; }
.timeline__label strong { display: block; color: var(--ink); font-size: 13px; }
.timeline__label small { color: var(--muted); font-size: 11.5px; }
.timeline__track { position: relative; height: 12px; border-radius: 6px; background: var(--hover); }
.timeline__bar { position: absolute; top: 0; bottom: 0; display: block; min-width: 6px; border-radius: 6px; background: var(--assist); }
.timeline__row--customer .timeline__bar { background: var(--warning); }
.timeline__row--together .timeline__bar { background: var(--success); }
.timeline__note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.estimate-breakdown { margin-top: 18px; border-top: 1px solid var(--border); }
.estimate-breakdown summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; color: var(--ink); cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none; }
.estimate-breakdown summary::-webkit-details-marker { display: none; }
.estimate-breakdown[open] summary .icon { transform: rotate(180deg); }
.breakdown-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.breakdown-table th { padding: 8px 0; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.breakdown-table th:last-child, .breakdown-table td:last-child { text-align: right; white-space: nowrap; }
.breakdown-table td { padding: 9px 0; border-top: 1px solid var(--border); color: var(--body); vertical-align: top; }
.breakdown-table td strong { color: var(--ink); font-weight: 600; }
.breakdown-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.breakdown-table td:last-child small { display: inline; }
.breakdown-table__open { color: var(--warning) !important; }
.breakdown-table tfoot td { border-top: 2px solid var(--border-strong); color: var(--ink); font-weight: 700; }
.estimate-method { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.estimate-assumptions { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--warning-line); border-radius: var(--r-sm); background: var(--warning-bg); color: var(--ink); font-size: 13px; }
.estimate-assumptions ul { margin: 6px 0 0; padding-left: 18px; }
.estimate-running { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--body); font-size: 13px; }
.estimate-disclaimer { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* Correction */
.assistant-correction h2 { margin: 0; color: var(--ink); font-size: 17px; }
.assistant-correction p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.assistant-correction__form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; }
.assistant-correction__form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--field-bg); color: var(--ink); line-height: 1.5; resize: vertical; }
.assistant-corrections { margin: 12px 0 0; padding-left: 18px; color: var(--body); font-size: 13px; line-height: 1.5; }

/* Summary card */
.assistant-summary { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.assistant-summary__title { margin: 2px 0 6px; color: var(--ink); font-size: 17px; }
.assistant-summary__price { color: var(--ink); font-size: 30px; letter-spacing: -.02em; }
.assistant-summary__price--text { font-size: 20px; }
.assistant-summary > small { color: var(--muted); font-size: 12.5px; }
.assistant-summary__facts { margin: 10px 0 4px; }
.assistant-summary__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 12.5px; }
.assistant-summary__facts dt { color: var(--muted); }
.assistant-summary__facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.assistant-summary__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.assistant-summary__actions .btn { width: 100%; }
.assistant-summary__wait { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.assistant-summary .btn--ghost { margin-top: 6px; }
.assistant-delete { text-align: center; }
.assistant-delete button { padding: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12.5px; text-decoration: underline; }
.assistant-delete button:hover { color: var(--danger); }

/* Offer document */
.offer-page { max-width: 900px; margin: 0 auto; }
.offer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.offer-toolbar .back-link { margin: 0; }
.offer-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offer { padding: 40px 46px; }
.offer__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.offer__brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.offer__brand img { height: 26px; padding: var(--logo-pad); border-radius: 6px; background: var(--logo-bg); }
.offer__title { text-align: right; }
.offer__kind { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.offer__title h1 { max-width: 460px; margin: 6px 0 0; color: var(--ink); font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.offer__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 6px; }
.offer__meta dt { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.offer__meta dd { margin: 4px 0 0; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.offer__meta small { display: block; color: var(--muted); font-weight: 400; }
.offer__mono { font-family: var(--font-mono); }
.offer__section { padding: 22px 0 4px; border-top: 1px solid var(--border); break-inside: avoid; }
.offer__meta + .offer__section { border-top: 0; }
.offer__section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--ink); font-size: 17px; }
.offer__section h2 span { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px; }
.offer__section h3 { margin: 14px 0 6px; color: var(--ink); font-size: 13px; }
.offer__section p { margin: 0 0 10px; color: var(--body); font-size: 14px; line-height: 1.6; }
.offer__quote { margin: 8px 0 12px; padding: 12px 16px; border-left: 3px solid var(--border-strong); background: var(--surface-2); color: var(--body); font-size: 13px; line-height: 1.6; }
.offer__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px !important; }
.offer__facts strong { color: var(--ink); }
.offer__list { margin: 0; padding-left: 18px; color: var(--body); font-size: 14px; line-height: 1.6; }
.offer__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.offer__table { width: 100%; margin-bottom: 12px; border-collapse: collapse; font-size: 13.5px; }
.offer__table th { padding: 8px 0; border-bottom: 1px solid var(--border-strong); color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.offer__table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); color: var(--body); vertical-align: top; }
.offer__table td strong { color: var(--ink); }
.offer__table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.offer__table th:last-child, .offer__table td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.offer__table tfoot td { border-bottom: 0; color: var(--ink); font-weight: 700; }
.offer__price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--border); }
.offer__price div { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; background: var(--surface); }
.offer__price span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.offer__price strong { color: var(--ink); font-size: 22px; }
.offer__price small { color: var(--muted); font-size: 12px; }
.offer__small { font-size: 12.5px !important; color: var(--muted) !important; }
.offer__steps { margin: 0; padding-left: 20px; color: var(--body); font-size: 14px; line-height: 1.7; }
.offer__foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.offer__foot p { margin: 0; max-width: 620px; }
.offer__foot span { font-family: var(--font-mono); white-space: nowrap; }
.flow-chain--offer { margin-top: 12px; }

/* Administration */
.admin-assistant-sections { display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); }
.admin-assistant-sections .assistant-panel { box-shadow: none; }
.admin-table--calc td, .admin-table--calc th { white-space: nowrap; }
.admin-table--calc td:first-child { min-width: 260px; white-space: normal; }
.admin-table--calc tr.is-excluded td { opacity: .5; }
.admin-calc-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.admin-calc-summary dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.admin-calc-summary dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.admin-calc-summary small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.admin-draft-note, .admin-ok-note { margin: 0; padding: 12px 26px; border-bottom: 1px solid var(--warning-line); background: var(--warning-bg); color: var(--ink); font-size: 13px; line-height: 1.5; }
.admin-form-section .admin-draft-note, .admin-form-section .admin-ok-note { margin-top: 16px; padding: 11px 14px; border: 1px solid var(--warning-line); border-radius: var(--r-sm); }
.admin-ok-note { border-color: var(--success-line) !important; background: var(--success-bg); }
.admin-table--blocks input[type="number"] { width: 84px; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.admin-table--blocks td { min-width: 0; vertical-align: top; }
.admin-table--blocks td:first-child { min-width: 240px; }
.admin-table--blocks td:last-child { text-align: center; }
.admin-table--blocks small { margin-top: 4px; }
.admin-side-card__button { margin-top: 14px; }

@media (max-width: 1100px) {
  .estimate-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .assistant-layout { grid-template-columns: minmax(0, 1fr); }
  .assistant-aside { position: static; order: -1; }
  .scope-grid, .offer__columns { grid-template-columns: minmax(0, 1fr); }
  .offer__meta, .admin-calc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .assistant-stepper { gap: 10px 16px; }
  .assistant-stepper li + li::before { display: none; }
  .assistant-panel { padding: 18px; }
  .assistant-panel__head--split { flex-direction: column; }
  .flow-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .flow-chain { flex-direction: column; gap: 22px; }
  .flow-chain li + li { margin-left: 0; }
  .flow-chain li + li::before { content: "↓"; left: 50%; top: -19px; transform: translateX(-50%); }
  .timeline__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .estimate-figures { grid-template-columns: minmax(0, 1fr); }
  .answer-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .block-card { flex-direction: column; align-items: flex-start; }
  .offer { padding: 24px 20px; }
  .offer__title { text-align: left; }
}

@media print {
  /* Paper is always light, whatever theme the screen uses. */
  :root[data-theme] {
    --surface: #fff; --surface-2: #f7f9fb; --border: #e1e6ed; --border-strong: #cfd7e1; --ink: #13263d;
    --body: #40566a; --muted: #5a6a7e; --hover: #eef2f6; --accent: #1f5a8a; --accent-soft: #e8eff7; --logo-bg: transparent;
  }
  .topbar, .sidebar, .skip-link, .no-print, .messages, .toast, .shell__scrim { display: none !important; }
  html, body, .main { background: #fff !important; }
  .main { padding: 0 !important; }
  .shell { display: block !important; }
  .offer-page { max-width: none; }
  .offer { padding: 0; border: 0; box-shadow: none; }
  .offer * { color: #13263d !important; }
  .offer__section { break-inside: avoid; }
  .flow-step--agent { background: #e8eff7 !important; }
  @page { margin: 16mm 14mm; }
}
