/* Guided admission v2 ("Aufnahme am Tablet", Sixt-counter feeling): big choice cards, one task per screen.
   Design source: docs/design/aufnahme-v2. Colours come from the shared HAYO tokens (--ui-*), light and dark follow
   theme.css. Main case: tablet landscape 1366 px; also 1440 px and 375 px. Targets on the tablet are at least 64 px. */
.ad-body {
  --av-soft: color-mix(in srgb, var(--ui-primary) 10%, var(--ui-surface));
  --av-focus: #204eaf;
  --av-pad: clamp(1.1rem, 3vw, 2.5rem);
  font-family: var(--ui-font);
  /* the older admission.css paints the page blue (--ad-bg); the brand background wins here */
  background: var(--ui-bg);
  color: var(--ui-ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ad-body { --av-focus: #a5c3ff; } }
:root[data-theme="dark"] .ad-body { --av-focus: #a5c3ff; }

.ad-shell { font-size: 19px; line-height: 1.45; }
/* The shared page box repeats what each screen now explains itself. */
.ad-body .page-help { display: none; }
.ad-shell :is(button, a, input, select, summary, canvas, [tabindex="-1"]):focus-visible { outline: 4px solid var(--av-focus); outline-offset: 4px; }
.ad-shell h1:focus, .ad-shell h2:focus { outline: none; }
.ad-shell h1:focus-visible, .ad-shell h2:focus-visible { outline: none; }
.ad-body.ui .ad-shell .av-screen h1,
.ad-body.ui .ad-shell .av-screen h2,
.ad-body.ui .ad-shell .av-screen h3,
.ad-body.ui .ad-shell .av-screen p { margin: 0; }
.ad-body.ui .ad-shell .av-screen h1 { font-size: clamp(2.3rem, 4.3vw, 4rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.04; }
.ad-body.ui .ad-shell .av-screen h2 { font-size: 2rem; letter-spacing: -.02em; line-height: 1.18; }
.ad-body.ui .ad-shell .av-screen h3 { font-size: 1.5rem; line-height: 1.2; }
.ad-body.ui .ad-shell .av-screen svg,
.ad-body.ui .ad-shell .av-btn-icon svg,
.ad-body.ui .ad-shell .av-icon svg,
.ad-body.ui .ad-shell .av-circle svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Top line and progress */
.ad-body.ui .ad-shell .av-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ad-body.ui .ad-shell .av-top-title { margin: 0; color: var(--ui-muted); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.ad-body.ui .ad-shell .av-stepbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 0 0 1.5rem; padding: 0 0 1rem; list-style: none; border-bottom: 1px solid var(--ui-line); }
.ad-body.ui .ad-shell .av-stepbar li { display: flex; align-items: center; gap: .6rem; color: var(--ui-muted); font-size: 1rem; min-width: 0; }
.ad-body.ui .ad-shell .av-stepbar .num { width: 2rem; height: 2rem; border: 1px solid var(--ui-line); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .9rem; }
.ad-body.ui .ad-shell .av-stepbar .num svg { width: 1.1rem; height: 1.1rem; }
.ad-body.ui .ad-shell .av-stepbar .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-body.ui .ad-shell .av-stepbar li.current { color: var(--ui-ink); font-weight: 700; }
.ad-body.ui .ad-shell .av-stepbar li.current .num { background: var(--ui-action); border-color: var(--ui-action); color: var(--ui-on-action); }
.ad-body.ui .ad-shell .av-stepbar li.complete .num { background: var(--av-soft); color: var(--ui-primary); border-color: transparent; }

/* Buttons */
.ad-body.ui .ad-shell .av-button { min-height: 4rem; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-surface); color: var(--ui-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .75rem 1.4rem; font: inherit; font-weight: 650; line-height: 1.2; cursor: pointer; text-decoration: none; touch-action: manipulation; }
.ad-body.ui .ad-shell .av-button.primary { background: var(--ui-action); border-color: var(--ui-action); color: var(--ui-on-action); min-width: 15rem; }
.ad-body.ui .ad-shell .av-button.quiet { background: transparent; }
.ad-body.ui .ad-shell .av-button:hover:not(:disabled) { border-color: var(--ui-primary); }
.ad-body.ui .ad-shell .av-button:disabled { opacity: .55; cursor: not-allowed; }
.ad-body.ui .ad-shell .av-btn-icon:empty { display: none; }

/* Heading, help box */
.ad-body.ui .ad-shell .av-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.5rem; }
.ad-body.ui .ad-shell .av-eyebrow { font-size: .85rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ui-primary); font-weight: 650; margin-bottom: .6rem !important; }
.ad-body.ui .ad-shell .av-subtitle { margin-top: .8rem !important; color: var(--ui-muted); max-width: 50rem; font-size: 1.2rem; }
.ad-body.ui .ad-shell .av-mini-progress { color: var(--ui-muted); white-space: nowrap; padding-bottom: .4rem; }
.ad-body.ui .ad-shell .av-help { padding: 1rem 1.4rem; background: var(--av-soft); border-radius: 12px; display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.75rem !important; }
.ad-body.ui .ad-shell .av-help svg { color: var(--ui-primary); margin-top: .15rem; }
.ad-body.ui .ad-shell .av-help p,
.ad-body.ui .ad-shell .av-help span { font-size: 1.1rem; }
.ad-body.ui .ad-shell .av-help strong { margin-right: .4rem; }

/* Big choice cards (case, tariff, yes/no, information) */
.ad-body.ui .ad-shell .av-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ad-body.ui .ad-shell .av-choice { position: relative; min-height: 15rem; padding: 1.75rem; text-align: left; border: 2px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-surface); color: var(--ui-ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; font: inherit; cursor: pointer; touch-action: manipulation; }
.ad-body.ui .ad-shell .av-choice:hover { border-color: var(--ui-primary); }
.ad-body.ui .ad-shell .av-choice[aria-pressed="true"] { border-color: var(--ui-primary); background: var(--av-soft); }
.ad-body.ui .ad-shell .av-choice .av-icon { width: 4.1rem; height: 4.1rem; background: var(--ui-bg); border-radius: 16px; display: grid; place-items: center; }
.ad-body.ui .ad-shell .av-choice .av-icon svg { width: 2.5rem; height: 2.5rem; }
.ad-body.ui .ad-shell .av-choice-title { font-size: 1.75rem; font-weight: 650; letter-spacing: -.02em; margin-top: .4rem; }
.ad-body.ui .ad-shell .av-desc { color: var(--ui-muted); font-size: 1.1rem; max-width: 19rem; }
.ad-body.ui .ad-shell .av-circle { position: absolute; right: 1.5rem; top: 1.5rem; width: 1.8rem; height: 1.8rem; border: 2px solid var(--ui-line); border-radius: 50%; display: grid; place-items: center; color: transparent; }
.ad-body.ui .ad-shell .av-circle svg { width: 1.2rem; height: 1.2rem; }
.ad-body.ui .ad-shell .av-choice[aria-pressed="true"] .av-circle { background: var(--ui-action); color: var(--ui-on-action); border-color: var(--ui-action); }
.ad-body.ui .ad-shell .av-price { font-size: 3.2rem; line-height: 1; letter-spacing: -.05em; font-weight: 650; }
.ad-body.ui .ad-shell .av-price small { font-size: 1.1rem; letter-spacing: 0; font-weight: 400; color: var(--ui-muted); }
.ad-body.ui .ad-shell .av-badge { background: var(--ui-accent); color: var(--ui-on-accent); font-size: .8rem; font-weight: 700; border-radius: 6px; padding: .3rem .65rem; letter-spacing: .04em; }
.ad-body.ui .ad-shell .av-choices.tariffs { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.ad-body.ui .ad-shell .av-choices.tariffs .av-choice { min-height: 17rem; }
.ad-body.ui .ad-shell .av-choices + .av-example { margin-top: 1.2rem; }
.ad-body.ui .ad-shell .av-decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ad-body.ui .ad-shell .av-decisions .av-choice { min-height: 14rem; justify-content: center; align-items: center; text-align: center; padding: 1.8rem 1.2rem; }
.ad-body.ui .ad-shell .av-decisions .av-choice svg { width: 3rem; height: 3rem; }
.ad-body.ui .ad-shell .av-decisions .av-choice .av-choice-title { font-size: 2rem; margin: 0; }
.ad-body.ui .ad-shell .av-decisions .av-choice.yes[aria-pressed="true"] { border-color: var(--ui-success); background: var(--ui-success-bg); }
.ad-body.ui .ad-shell .av-decisions .av-choice.no[aria-pressed="true"] { border-color: var(--ui-warn); background: var(--ui-warn-bg); }
.ad-body.ui .ad-shell .av-decisions .av-choice .av-circle { display: none; }

/* Forms */
.ad-body.ui .ad-shell .av-form-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .8fr); gap: 2.6rem; align-items: start; }
.ad-body.ui .ad-shell .av-fields { display: grid; gap: 1.1rem; }
.ad-body.ui .ad-shell .av-field { display: block; }
.ad-body.ui .ad-shell .av-field-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .4rem; font-weight: 650; }
.ad-body.ui .ad-shell .av-field-head label,
.ad-body.ui .ad-shell .av-field-head > span { font-weight: 650; }
.ad-body.ui .ad-shell .av-example { display: block; font-size: 1.05rem; color: var(--ui-muted); margin-top: .5rem; }
.ad-body.ui .ad-shell .av-field input,
.ad-body.ui .ad-shell .av-select { width: 100%; min-height: 4.1rem; padding: .9rem 1.1rem; border: 1.5px solid var(--ui-line); border-radius: 10px; background: var(--ui-surface); color: var(--ui-ink); font: inherit; font-size: 1.4rem; }
.ad-body.ui .ad-shell .av-field input[aria-invalid="true"],
.ad-body.ui .ad-shell .av-field input.is-invalid { border: 2px solid var(--ui-danger); background: var(--ui-danger-bg); outline: none; }
.ad-body.ui .ad-shell .av-field-error { display: block; color: var(--ui-danger); font-size: 1.05rem; margin-top: .4rem; font-weight: 600; }
.ad-body.ui .ad-shell .av-field-error:empty { display: none; }
.ad-body.ui .ad-shell .av-discipline-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.ad-body.ui .ad-shell .av-discipline-field legend { margin-bottom: .35rem; font-weight: 650; }
.ad-body.ui .ad-shell .av-discipline-field .av-hint { margin: 0 0 .6rem; color: var(--ui-muted); }
.ad-body.ui .ad-shell .av-discipline-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; }
.ad-body.ui .ad-shell .av-discipline-options .av-check-row { margin-top: 0; min-width: 0; }
.ad-body.ui .ad-shell .av-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ad-body.ui .ad-shell .av-hint-button { width: 4rem; height: 4rem; border: 1px solid var(--ui-line); border-radius: 50%; background: transparent; color: var(--ui-muted); font: inherit; font-size: 1.3rem; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.ad-body.ui .ad-shell .av-hint-button:hover { border-color: var(--ui-primary); color: var(--ui-primary); }
.ad-body.ui .ad-shell .av-aside { background: var(--ui-surface); border: 1px solid var(--ui-line); padding: 1.75rem; border-radius: var(--ui-radius); }
.ad-body.ui .ad-shell .av-aside .large-icon { color: var(--ui-primary); margin-bottom: 1.2rem; }
.ad-body.ui .ad-shell .av-aside .large-icon svg { width: 3.4rem; height: 3.4rem; }
.ad-body.ui .ad-shell .av-aside p { color: var(--ui-muted); margin-top: .75rem !important; font-size: 1.1rem; }
.ad-body.ui .ad-shell .av-aside .rule { border-top: 1px solid var(--ui-line); margin-top: 1.4rem; padding-top: 1.2rem; }
.ad-body.ui .ad-shell .av-locked-note { margin-bottom: 1rem !important; padding: .9rem 1.1rem; background: var(--ui-warn-bg); color: var(--ui-warn); border-radius: 10px; font-size: 1.05rem; }
.ad-body.ui .ad-shell .av-existing { margin-bottom: 1.4rem; }
.ad-body.ui .ad-shell .av-existing .av-select { font-size: 1.2rem; }
.ad-body.ui .ad-shell .av-person-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ad-body.ui .ad-shell .av-chip { font-size: .95rem; padding: .35rem .8rem; border: 1px solid var(--ui-line); border-radius: 30px; color: var(--ui-muted); }
.ad-body.ui .ad-shell .av-chip.active { background: var(--ui-action); color: var(--ui-on-action); border-color: var(--ui-action); }
.ad-body.ui .ad-shell .av-inline-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }

/* Banners */
.ad-body.ui .ad-shell .av-banner-error { padding: 1rem 1.4rem; border: 1px solid var(--ui-danger); border-radius: 14px; background: var(--ui-danger-bg); color: var(--ui-danger); font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0; }
.ad-body.ui .ad-shell .av-banner-error:empty { display: none; }
.ad-body.ui .ad-shell .av-banner-warn { padding: 1rem 1.4rem; border: 1px solid var(--ui-warn); border-radius: 14px; background: var(--ui-warn-bg); color: var(--ui-warn); font-size: 1.1rem; margin-bottom: 1.25rem; }

/* Calendar */
.ad-body.ui .ad-shell .av-calendar-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr); gap: 2.5rem; }
.ad-body.ui .ad-shell .av-calendar { background: var(--ui-surface); padding: 1.5rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); }
.ad-body.ui .ad-shell .av-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; gap: .6rem; }
.ad-body.ui .ad-shell .av-cal-head h2 { font-size: 1.6rem; text-transform: capitalize; }
.ad-body.ui .ad-shell .av-cal-head .av-button { min-width: 4rem; padding: .6rem; }
.ad-body.ui .ad-shell .av-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.ad-body.ui .ad-shell .av-weekday { text-align: center; font-size: .95rem; color: var(--ui-muted); padding: .4rem 0; }
.ad-body.ui .ad-shell .av-day { aspect-ratio: 1.3; min-height: 4rem; border: 1px solid var(--ui-line); background: var(--ui-bg); color: var(--ui-ink); border-radius: 10px; font: inherit; font-size: 1.3rem; cursor: pointer; touch-action: manipulation; }
.ad-body.ui .ad-shell .av-day[aria-pressed="true"] { background: var(--ui-action); color: var(--ui-on-action); border-color: var(--ui-action); }
.ad-body.ui .ad-shell .av-day:disabled { opacity: .35; cursor: not-allowed; }
.ad-body.ui .ad-shell .av-day.pad { visibility: hidden; border: 0; }
.ad-body.ui .ad-shell .av-date-display { font-size: 2.6rem; letter-spacing: -.03em; margin-top: 1.3rem !important; color: var(--ui-primary) !important; font-weight: 650; }

/* Decision screens */
.ad-body.ui .ad-shell .av-decision-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.ad-body.ui .ad-shell .av-decision-copy .large-icon { color: var(--ui-primary); margin-bottom: 1.5rem; }
.ad-body.ui .ad-shell .av-decision-copy .large-icon svg { width: 4.5rem; height: 4.5rem; }
.ad-body.ui .ad-shell .av-decision-copy p { color: var(--ui-muted); font-size: 1.3rem; margin: 1.2rem 0 !important; }
.ad-body.ui .ad-shell .av-count { font-size: .95rem; color: var(--ui-muted); margin-bottom: .9rem !important; }
.ad-body.ui .ad-shell .av-recorded { margin-top: 1rem !important; color: var(--ui-muted); font-size: 1rem; }

/* Summary like a rental contract */
.ad-body.ui .ad-shell .av-summary-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 2.1rem; align-items: start; }
.ad-body.ui .ad-shell .av-summary-block { border-top: 1px solid var(--ui-line); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1.1rem; align-items: flex-start; }
.ad-body.ui .ad-shell .av-summary-block:first-child { border-top: 0; padding-top: 0; }
.ad-body.ui .ad-shell .av-summary-block p { color: var(--ui-muted); margin-top: .4rem !important; }
.ad-body.ui .ad-shell .av-summary-block .av-button { min-height: 4rem; padding: .6rem .9rem; font-size: 1.05rem; }
.ad-body.ui .ad-shell .av-summary-block.open h3::after { content: " ●"; color: var(--ui-warn); }
.ad-body.ui .ad-shell .av-receipt { background: var(--av-soft); border: 1px solid var(--ui-primary); border-radius: var(--ui-radius); padding: 1.75rem; }
.ad-body.ui .ad-shell .av-receipt .total { font-size: 3.6rem; font-weight: 650; letter-spacing: -.06em; margin: .8rem 0 .1rem !important; line-height: 1.1; color: var(--ui-ink) !important; }
.ad-body.ui .ad-shell .av-receipt p { color: var(--ui-muted); margin: .6rem 0 !important; font-size: 1.1rem; }
.ad-body.ui .ad-shell .av-receipt .rule { border-top: 1px solid var(--ui-line); padding-top: 1.2rem; margin-top: 1.3rem; }
.ad-body.ui .ad-shell .av-open-list { margin: 0 0 1.4rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.ad-body.ui .ad-shell .av-open-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border: 1px solid var(--ui-warn); background: var(--ui-warn-bg); color: var(--ui-warn); border-radius: 10px; font-weight: 600; }
.ad-body.ui .ad-shell .av-ok-line { padding: .8rem 1.1rem; border-radius: 10px; background: var(--ui-success-bg); color: var(--ui-success); font-weight: 650; margin-bottom: 1.2rem; }

/* Signature */
.ad-body.ui .ad-shell .av-signature { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 16px; padding: 1.4rem; }
.ad-body.ui .ad-shell .av-signature canvas { width: 100%; height: 14rem; display: block; touch-action: none; border: 0; border-bottom: 2px solid var(--ui-muted); background: #fff; border-radius: 8px 8px 0 0; cursor: crosshair; }
.ad-body.ui .ad-shell .av-signature-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.ad-body.ui .ad-shell .av-signature-tools p { font-size: 1rem; color: var(--ui-muted); }
.ad-body.ui .ad-shell .av-check-row { display: flex; align-items: flex-start; gap: .9rem; padding: 1.2rem; border: 1px solid var(--ui-line); border-radius: 14px; min-height: 4rem; background: var(--ui-surface); margin-top: 1.25rem; font-weight: 500; cursor: pointer; }
.ad-body.ui .ad-shell .av-check-row input { width: 1.6rem; height: 1.6rem; accent-color: var(--ui-primary); flex-shrink: 0; margin: .1rem 0 0; }

/* Empty state */
.ad-body.ui .ad-shell .av-empty { border: 1px dashed var(--ui-line); border-radius: var(--ui-radius); padding: 3rem; text-align: center; }
.ad-body.ui .ad-shell .av-empty .large-icon { margin-bottom: 1.2rem; color: var(--ui-muted); }
.ad-body.ui .ad-shell .av-empty .large-icon svg { width: 4rem; height: 4rem; }
.ad-body.ui .ad-shell .av-empty p { margin: 1rem auto 1.5rem !important; max-width: 40rem; color: var(--ui-muted); }

/* Footer */
.ad-body.ui .ad-shell .av-footer { border-top: 1px solid var(--ui-line); margin-top: 2rem; padding: 1.2rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.ad-body.ui .ad-shell .av-footer-note { color: var(--ui-muted); font-size: 1rem; text-align: center; flex: 1; margin: 0; }

/* Resume list on the start screen */
.ad-body.ui .ad-shell .av-resume { margin-top: 2.2rem; }
.ad-body.ui .ad-shell .av-resume-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.ad-body.ui .ad-shell .av-resume-list .av-button { width: 100%; justify-content: flex-start; text-align: left; }

/* Success */
.ad-body.ui .ad-shell .av-success { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; padding: 1rem 0 2rem; }
.ad-body.ui .ad-shell .av-success-mark { width: 6.2rem; height: 6.2rem; background: var(--ui-yes); color: var(--ui-on-yes); border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.6rem; }
.ad-body.ui .ad-shell .av-success-mark svg { width: 3.3rem; height: 3.3rem; stroke-width: 2.2; }
.ad-body.ui .ad-shell .av-confirmation { display: inline-block; background: var(--ui-surface); border: 1px solid var(--ui-line); padding: .8rem 1.25rem; border-radius: 10px; margin-top: 1.6rem !important; font-size: 1.1rem; }
.ad-body.ui .ad-shell .av-next-steps { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.ad-body.ui .ad-shell .av-next-steps li { display: flex; gap: 1.1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--ui-line); }
.ad-body.ui .ad-shell .av-next-steps .n { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--av-soft); color: var(--ui-primary); display: grid; place-items: center; flex-shrink: 0; font-weight: 700; }
.ad-body.ui .ad-shell .av-next-steps p { font-size: 1.1rem; color: var(--ui-muted); margin-top: .3rem !important; }
.ad-body.ui .ad-shell .av-next-steps strong { font-size: 1.25rem; }
.ad-body.ui .ad-shell .av-course-actions { display: grid; gap: .75rem; margin: 1.2rem 0; }
.ad-body.ui .ad-shell .av-success-side .av-button.primary { margin-top: .6rem; }

/* Dialog */
.ad-body.ui .ad-shell .av-dialog { max-width: 38rem; width: calc(100% - 2rem); border: 1px solid var(--ui-line); padding: 1.9rem; border-radius: 22px; background: var(--ui-surface); color: var(--ui-ink); }
.ad-body.ui .ad-shell .av-dialog::backdrop { background: rgb(21 18 30 / 70%); }
.ad-body.ui .ad-shell .av-dialog p { margin: 1.1rem 0; color: var(--ui-muted); font-size: 1.15rem; white-space: pre-line; }
.ad-body.ui .ad-shell .av-dialog-actions { display: flex; gap: .75rem; }
.ad-body.ui .ad-shell .av-dialog-actions .av-button { flex: 1; }

/* The prospects block below the start screen keeps its compact look but is separated from the big cards */
#ad-prospects { margin-top: 3rem; }

@media (max-width: 900px) {
  .ad-body.ui .ad-shell .av-form-layout, .ad-body.ui .ad-shell .av-decision-layout, .ad-body.ui .ad-shell .av-summary-layout, .ad-body.ui .ad-shell .av-calendar-layout { gap: 1.5rem; }
  .ad-body.ui .ad-shell .av-choice { padding: 1.5rem 1.1rem; }
  .ad-body.ui .ad-shell .av-choice-title { font-size: 1.5rem; }
  .ad-body.ui .ad-shell .av-stepbar { gap: .6rem; }
  .ad-body.ui .ad-shell .av-stepbar li { font-size: .85rem; }
}
@media (max-width: 1000px) {
  .ad-body.ui .ad-shell .av-form-layout, .ad-body.ui .ad-shell .av-decision-layout, .ad-body.ui .ad-shell .av-summary-layout, .ad-body.ui .ad-shell .av-success { grid-template-columns: 1fr; }
  .ad-body.ui .ad-shell .av-calendar-layout { grid-template-columns: 1.4fr .8fr; }
}
@media (max-width: 650px) {
  .ad-shell { font-size: 18px; }
  .ad-body.ui .ad-shell .av-stepbar { display: flex; justify-content: space-between; gap: 0; }
  .ad-body.ui .ad-shell .av-stepbar .label { display: none; }
  .ad-body.ui .ad-shell .av-heading { display: block; margin-bottom: 1.2rem; }
  .ad-body.ui .ad-shell .av-screen h1 { font-size: 2rem; letter-spacing: -.04em; }
  .ad-body.ui .ad-shell .av-screen h2 { font-size: 1.7rem; }
  .ad-body.ui .ad-shell .av-choices, .ad-body.ui .ad-shell .av-choices.tariffs { grid-template-columns: 1fr; gap: .9rem; }
  .ad-body.ui .ad-shell .av-case-card { min-height: 10rem; padding-left: 5.8rem; justify-content: center; }
  .ad-body.ui .ad-shell .av-case-card .av-icon { position: absolute; left: 1.1rem; top: 1.6rem; width: 3.3rem; height: 3.7rem; }
  .ad-body.ui .ad-shell .av-case-card .av-icon svg { width: 2rem; height: 2rem; }
  .ad-body.ui .ad-shell .av-case-card .av-circle { top: 1rem; right: 1rem; width: 1.5rem; height: 1.5rem; }
  .ad-body.ui .ad-shell .av-two { grid-template-columns: 1fr; gap: 1.1rem; }
  .ad-body.ui .ad-shell .av-aside .large-icon { display: none; }
  .ad-body.ui .ad-shell .av-calendar-layout, .ad-body.ui .ad-shell .av-decisions { grid-template-columns: 1fr; }
  .ad-body.ui .ad-shell .av-decisions { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .ad-body.ui .ad-shell .av-decisions .av-choice { min-height: 11rem; padding: 1.2rem .6rem; }
  .ad-body.ui .ad-shell .av-decisions .av-choice .av-choice-title { font-size: 1.8rem; }
  .ad-body.ui .ad-shell .av-calendar { padding: .75rem 0; }
  .ad-body.ui .ad-shell .av-cal-grid { gap: 0; }
  .ad-body.ui .ad-shell .av-day { min-width: 0; min-height: 3rem; aspect-ratio: 1; font-size: 1.1rem; white-space: nowrap; border-radius: 7px; }
  .ad-body.ui .ad-shell .av-date-display { font-size: 2.1rem; }
  .ad-body.ui .ad-shell .av-footer { flex-wrap: wrap; position: sticky; bottom: 0; background: var(--ui-bg); padding-bottom: .8rem; }
  /* The start screen has two long actions; keep both readable and let the cards scroll above them. */
  .ad-body.ui .ad-shell #ad-start .av-footer { display: grid; grid-template-columns: minmax(0, 1fr); position: static; }
  .ad-body.ui .ad-shell #ad-start .av-footer .av-button { width: 100%; min-width: 0; }
  .ad-body.ui .ad-shell .av-footer-note, .ad-body.ui .ad-shell .av-back-label { display: none; }
  .ad-body.ui .ad-shell .av-footer .av-button.primary { flex: 1; min-width: 0; }
  .ad-body.ui .ad-shell .av-receipt .total { font-size: 3rem; }
  .ad-body.ui .ad-shell .av-success { gap: 1.5rem; }
  .ad-body.ui .ad-shell .av-summary-block { flex-wrap: wrap; }
  .ad-body.ui .ad-shell .av-top-title { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .ad-shell * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Shared paragraph rules cap the width; boxes and banners use the whole row. */
.ad-body.ui .ad-shell .av-help, .ad-body.ui .ad-shell .av-banner-error, .ad-body.ui .ad-shell .av-banner-warn,
.ad-body.ui .ad-shell .av-ok-line, .ad-body.ui .ad-shell .av-example, .ad-body.ui .ad-shell .av-locked-note { max-width: none; }
.ad-body.ui .ad-shell .av-ok-line, .ad-body.ui .ad-shell .av-banner-warn { margin: 0 0 1.4rem !important; }
@media (max-width: 650px) {
  .ad-body.ui .ad-shell .av-top .av-button { min-height: 3rem; padding: .4rem .8rem; white-space: nowrap; font-size: .95rem; }
}

/* KGP-V9: optional identity check after the admission (blacking-out on the tablet before upload) */
.ad-body.ui .ad-shell .ad-idc-step { display: grid; gap: 1rem; }
.ad-body.ui .ad-shell .ad-idc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ad-body.ui .ad-shell .ad-idc-head h3 { margin: 0; }
.ad-body.ui .ad-shell .ad-idc-editor { display: grid; gap: .75rem; }
.ad-body.ui .ad-shell .ad-idc-canvas { width: 100%; height: auto; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-bg); touch-action: none; cursor: crosshair; }
.ad-body.ui .ad-shell .ad-idc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ad-body.ui .ad-shell .ad-idc-actions .av-button { white-space: normal; }
@media (max-width: 650px) { .ad-body.ui .ad-shell .ad-idc-actions { grid-template-columns: 1fr; } }
