/* Checkout: the portal's ruled surfaces, with a little more breathing room. */
.norm-section { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.norm-section + .norm-section { border-top: 1px solid var(--color-divider); padding-top: 20px; }
.norm-section legend { margin-bottom: 10px; padding: 0; font-size: 17px; font-weight: 600; }
.norm-section > p { margin: 0 0 12px; line-height: 1.5; }
.norm-options { display: grid; gap: 8px; }
.norm-option { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; text-align: left; }
.norm-option small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--color-neutral-700); }
.norm-option strong { font-size: 14px; }
.norm-check { color: var(--color-accent-700); min-width: 14px; }
.norm-option, .norm-size { min-width: 0; border: 1px solid var(--color-divider); color: var(--color-text); background: var(--color-bg); font-family: inherit; cursor: pointer; }
.norm-option:hover, .norm-size:hover { border-color: var(--color-accent-700); background: var(--color-surface); }
.norm-option[aria-pressed="true"], .norm-size[aria-pressed="true"] { border-color: var(--color-accent-700); box-shadow: inset 0 0 0 1px var(--color-accent-700); background: var(--color-surface); }
.norm-option:focus-visible, .norm-size:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
.norm-pressure-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.norm-pressure-options .chip { display: grid; align-content: center; gap: 5px; min-width: 0; min-height: 64px; padding: 10px; text-align: left; white-space: normal; }
.norm-pressure-options .chip small { font-size: 12px; font-weight: 400; line-height: 1.3; }
.norm-pressure-options .chip:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
.norm-search { display: block; }
.norm-search .input { width: 100%; min-width: 0; margin-top: 6px; }
.norm-search-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; margin-block: 4px; }
.norm-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; max-height: 292px; overflow-y: auto; padding: 4px; scrollbar-gutter: stable; border-block: 1px solid var(--color-divider); }
.norm-size { display: grid; gap: 4px; padding: 12px 10px; text-align: left; }
.norm-size strong { color: var(--color-accent-700); font-size: 15px; margin-bottom: 3px; }
.norm-size > span { font-size: 12px; color: var(--color-neutral-700); white-space: nowrap; font-variant-numeric: tabular-nums; }
.norm-no-results { grid-column: 1 / -1; padding: 8px; line-height: 1.6; }
.norm-selection { display: grid; gap: 8px; padding: 16px; background: var(--color-surface); border-left: 3px solid var(--color-accent-700); font-size: 14px; line-height: 1.5; }
.norm-selection > span { color: var(--color-neutral-700); font-size: 13px; }
.norm-selection-pending { border-left-color: var(--color-divider); }
.norm-selection-pending strong { color: var(--color-neutral-700); }
.norm-notice { padding: 12px; border: 1px solid var(--color-divider); line-height: 1.6; }
.shape-picker-intro p { margin: 6px 0 16px; max-width: 65ch; }
.chosen-family { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 16px; margin-bottom: 18px; border: 1px solid var(--color-divider); background: var(--color-surface); }
.chosen-family-icon { flex: 0 0 38px; color: var(--color-accent-700); }
.chosen-family-icon svg { display: block; width: 38px; height: 38px; }
.chosen-family-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.chosen-family-copy strong { font-size: 15px; overflow-wrap: anywhere; }
.chosen-family > button { flex-shrink: 0; }
.shape-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.shape-choices[hidden] { display: none; }
.shape-choice { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--color-divider); background: var(--color-bg); color: var(--color-text); text-align: left; cursor: pointer; font: inherit; }
.shape-choice:hover { border-color: var(--color-accent-700); background: var(--color-surface); }
.shape-choice[aria-pressed="true"] { border-color: var(--color-accent-700); box-shadow: inset 0 0 0 1px var(--color-accent-700); background: var(--color-surface); }
.shape-choice:focus-visible, .shape-upload:focus-visible { outline: 3px solid var(--color-accent-700); outline-offset: 3px; }
.shape-choice-icon { flex: 0 0 42px; color: var(--color-accent-700); }
.shape-choice-icon svg { display: block; width: 42px; height: 48px; }
.shape-choice-copy { min-width: 0; }
.shape-choice-copy strong { display: block; font-size: 14px; padding-right: 10px; }
.shape-choice-copy > span { display: block; margin-top: 5px; color: var(--color-neutral-700); font-size: 12px; line-height: 1.5; }
.shape-choice-check { position: absolute; right: 7px; top: 5px; color: var(--color-accent-700); font-size: 13px; }
.shape-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.shape-settings { min-width: 0; }
.shape-preview { padding: 18px; border: 1px solid var(--color-divider); background: var(--color-surface); min-width: 0; overflow-wrap: anywhere; }
.shape-preview-drawing { margin: 16px 0; }
.shape-preview-drawing svg { display: block; width: 100%; height: auto; max-height: 190px; }
.shape-preview-placeholder { width: 80px; margin: 24px auto; color: var(--color-neutral-700); opacity: .6; }
.shape-preview p:last-child { margin-bottom: 0; }
.selected-form-summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 24px; border: 1px solid var(--color-divider); border-left: 3px solid var(--color-accent-700); background: var(--color-surface); }
.selected-form-drawing { display: grid; place-items: center; width: 64px; height: 64px; padding: 5px; background: var(--color-bg); border: 1px solid var(--color-divider); }
.selected-form-drawing svg { display: block; max-width: 100%; max-height: 100%; width: 100%; height: auto; }
.selected-form-copy { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.selected-form-copy strong { font-size: 17px; line-height: 1.3; }
.selected-form-summary > button { justify-self: end; }
.shape-dimension-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.shape-dimension-group legend { padding: 0; font-weight: 600; font-size: 15px; }
.shape-dimension-group > p { margin: 6px 0 12px; line-height: 1.5; }
.shape-dimension-group .lines-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shape-dimension-group .field, .shape-dimension-group .input { min-width: 0; width: 100%; }
.shape-field-error { display: block; font-size: 12px; line-height: 1.5; color: var(--color-accent-2-700); text-transform: none; letter-spacing: normal; }
.shape-field-error:empty { display: none; }
.shape-dimension-group [aria-invalid="true"] { border-color: var(--color-accent-2-700); }
.shape-upload { width: 100%; font: inherit; color: inherit; white-space: normal; min-height: 140px; }
@media (max-width: 1300px) {
  .shape-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shape-workbench { grid-template-columns: minmax(0, 1fr); }
  .shape-preview-drawing { max-width: 220px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .chosen-family { flex-wrap: wrap; }
  .chosen-family > button { margin-left: 50px; }
  .selected-form-summary { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .selected-form-drawing { width: 52px; height: 52px; }
  .selected-form-summary > button { grid-column: 2; justify-self: start; }
  .shape-choice { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .shape-choice-icon { flex-basis: auto; }
  .shape-choice-copy > span { font-size: 11px; }
  .shape-dimension-group .lines-fields { grid-template-columns: minmax(0, 1fr); }
}
.flow-confirmation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; margin-bottom: 24px; border: 1px solid var(--color-accent-700); background: var(--color-surface); }
.flow-confirmation p { margin: 6px 0 0; }
.flow-confirmation .row { flex-wrap: wrap; }
.flow-confirmation .btn { white-space: normal; }
.inline-delivery .input { width: 100%; }
.inline-delivery [aria-invalid="true"] { border-color: var(--color-accent-700); }
.checkout-mobile-total { display: none; }
@media (max-width: 600px) {
  .checkout-grid .checkout-actions:has([data-a="checkout-next"]) { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: var(--color-bg); box-shadow: 0 -6px 12px var(--color-bg); }
  .checkout-grid .checkout-actions .checkout-mobile-total { display: flex; justify-content: space-between; align-items: center; order: 1; }
  .checkout-grid .checkout-actions .btn-secondary { width: auto; align-self: center; }
  .flow-confirmation .row, .flow-confirmation .btn { width: 100%; }
}
.checkout-head .back-edit { margin-bottom: 24px; }
.checkout-eyebrow { color: var(--color-accent-700); }
.checkout-head h1 { letter-spacing: -.045em; }
#main-content .order-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
#main-content .order-progress button { gap: 14px; padding: 20px 16px; transition: background-color 160ms ease; }
#main-content .order-progress button + button { border-left: 0; }
#main-content .order-progress button:hover { background: var(--color-surface); }
.order-progress .order-milestone { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--color-divider); font-size: 14px; }
.order-progress [aria-current] .order-milestone { background: var(--color-accent-700); border-color: var(--color-accent-700); color: var(--color-bg); }
.order-progress .is-complete .order-milestone { color: var(--color-accent-700); border-color: var(--color-accent-700); }
.order-progress .order-progress-copy { min-width: 0; font-size: 14px; line-height: 1.4; }
.order-progress-copy strong, .order-progress-copy small { display: block; }
.order-progress-copy small { margin-top: 5px; font-size: 12px; font-weight: 400; color: var(--color-neutral-700); }
.checkout-grid .checkout-step-body { padding: 24px; }
.checkout-grid .checkout-step-title { font-size: 20px; }
.checkout-grid .checkout-actions { margin-top: 24px; }
.checkout-grid .checkout-actions .btn-primary { min-height: 48px; }
.checkout-grid .checkout-line.basketline { grid-template-columns: 26px 84px minmax(0, 1fr); gap: 16px; padding: 24px 0; background: transparent; }
.checkout-grid .order-shape { display: grid; place-items: center; width: 84px; height: 84px; background: var(--color-surface); color: var(--color-accent-700); border: 1px solid var(--color-divider); }
.checkout-grid .order-item-copy { line-height: 1.6; }
.checkout-grid .checkout-line-price { grid-column: 3; }
.order-line-total { font-size: 18px; }
.checkout-costs { margin-top: 12px; }
.checkout-costs summary { min-height: 32px; padding-top: 5px; }
.checkout-grid .qty-stepper { margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.checkout-grid .qty-stepper .btn, .checkout-grid .qty-stepper .input { min-height: 44px; }
.checkout-grid .qty-stepper .btn { min-width: 44px; }
.checkout-grid .order-aside { padding: 24px; border: 1px solid var(--color-divider); border-top: 3px solid var(--color-accent-700); background: var(--color-surface); top: 120px; }
.order-preview { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.order-preview-shape { display: grid; place-items: center; width: 58px; height: 58px; background: var(--color-bg); color: var(--color-accent-700); font-size: 40px; }
.checkout-grid .order-aside .sumline { gap: 12px; font-size: 13px; padding-block: 8px; }
.checkout-grid .order-aside .sumline.total { font-size: 21px; padding-block: 16px; }
.order-delivery { display: grid; gap: 8px; border-top: 1px solid var(--color-divider); margin-top: 12px; padding-top: 20px; line-height: 1.5; }
.order-delivery > strong { font-size: 19px; }
.checkout-grid .order-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.checkout-grid .order-foot-grid > div + div, .checkout-grid .order-foot-grid > details + div { padding-top: 24px; border-top: 1px solid var(--color-divider); }
.checkout-grid .order-foot-grid > details { padding-top: 24px; border-top: 1px solid var(--color-divider); }
.order-extras summary { cursor: pointer; color: var(--color-accent-700); font-weight: 600; min-height: 32px; }
.order-extras summary:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 3px; }
.order-extras-body { padding-top: 16px; }
.order-address-action { width: 100%; min-height: 52px; margin-top: 8px; white-space: normal; }
.checkout-grid .checkout-consents label { border-radius: 0; border-width: 1px; }
.checkout-grid .checkout-step .order-pay { max-width: none; }
.checkout-grid .order-pay > .btn-primary { min-height: 56px; }
@media (min-width: 1400px) {
  .checkout-grid .checkout-line.basketline { grid-template-columns: 26px 84px minmax(0, 1fr) 190px; }
  .checkout-grid .checkout-line-price { grid-column: 4; }
}
@media (max-width: 900px) {
  .checkout-grid .order-aside { position: static; }
}
@media (max-width: 600px) {
  #main-content .order-progress button { padding: 12px 8px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .order-progress-copy strong { font-size: 12px; }
  .order-progress-copy small { display: none; }
  .checkout-grid .checkout-step-body { padding: 16px 12px; }
  .checkout-grid .checkout-line.basketline { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .checkout-grid .checkout-line > .n { display: none; }
  .checkout-grid .checkout-line > .order-shape { display: grid; width: 52px; height: 60px; }
  .checkout-grid .order-shape svg { width: 48px; height: 48px; }
  .checkout-grid .checkout-line-price { grid-column: 2; }
  .checkout-grid .order-aside { padding: 20px; }
  .checkout-grid .checkout-actions { flex-direction: column-reverse; align-items: stretch; }
  .checkout-grid .checkout-actions > * { text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .checkout-grid .checkout-step-body:not([hidden]) { animation: order-reveal 180ms ease-out; }
  @keyframes order-reveal { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}

/* Ablaufleiste: Positionen → Bestellung prüfen → Bezahlen → Bestätigung.
   Leise gesetzt — sie ordnet die Seite ein, die Schritte darunter führen. */
.flow-bar { margin: 0 0 var(--space-4); }
.flow-bar ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 6px; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-divider); }
.flow-bar li { min-width: 0; }
.flow-bar-item, .flow-bar-link { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-bottom: -1px; padding: 8px 6px 10px 0; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--color-neutral-700); font: inherit; font-size: 13px; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.flow-bar-link { color: var(--color-accent-700); cursor: pointer; }
.flow-bar-link:hover { background: var(--color-surface); }
.flow-bar-link:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
.flow-bar .is-current .flow-bar-item { border-bottom-color: var(--color-accent-700); color: var(--color-text); font-weight: 600; }
.flow-bar-no { display: inline-grid; place-items: center; flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid var(--color-neutral-600); font-size: 11px; font-weight: 600; }
.flow-bar .is-current .flow-bar-no { border-color: var(--color-accent-700); background: var(--color-accent-700); color: var(--color-bg); }
.flow-bar .is-done .flow-bar-no { border-color: var(--color-accent-700); color: var(--color-accent-700); }
@media (max-width: 600px) {
  .flow-bar-item, .flow-bar-link { flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 4px; font-size: 11px; }
}

/* Positionsschritte bleiben auch schmal eine Reihe zu dritt (vorher 2 + 1). */
#main-content .lines-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) {
  #main-content .lines-progress button { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 8px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
  #main-content .lines-progress button > span { font-size: 16px; }
}

.material-preset { margin: 0 0 var(--space-4); }
.address-field-note { display: block; margin-top: 4px; font-weight: 400; text-transform: none; letter-spacing: normal; }

/* Schritt 3: was bestellt wird, eine Zeile je Position. */
.checkout-review-lines { margin-bottom: var(--space-4); }
.checkout-review-lines > .spread { flex-wrap: wrap; gap: 4px 12px; }
.checkout-review-list { margin: var(--space-2) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--color-divider); }
.checkout-review-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--color-divider); font-size: 14px; line-height: 1.5; }
.checkout-review-qty { min-width: 4ch; text-align: right; color: var(--color-neutral-700); }
.checkout-review-name { min-width: 0; overflow-wrap: anywhere; }
.checkout-review-sum { text-align: right; white-space: nowrap; }

/* Summe und Bezahlen als eine Leiste — auf dem Telefon klebt sie unten,
   solange Schritt 3 offen ist (wie „Weiter" in den Schritten davor). */
.checkout-paybar { display: grid; gap: 12px; margin-top: var(--space-4); }
.checkout-grid .checkout-paybar .btn-primary { min-height: 56px; }
@media (max-width: 600px) {
  .checkout-grid .checkout-paybar { position: sticky; bottom: 0; z-index: 5; gap: 8px; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); background: var(--color-bg); box-shadow: 0 -6px 12px var(--color-bg); }
  .checkout-grid .checkout-paybar .sumline.total { padding-block: 0; font-size: 19px; }
  .checkout-grid .checkout-paybar .btn-primary { min-height: 48px; }
}

/* Rückkehr von der Zahlung. */
.pay-checking { max-width: 64ch; }
.pay-done { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; max-width: 960px; margin-top: var(--space-4); }
.pay-number { padding: var(--space-4); border: 1px solid var(--color-divider); border-top: 3px solid var(--color-accent-700); background: var(--color-surface); min-width: 0; }
.pay-number-value { margin: var(--space-1) 0; font-family: var(--font-heading); font-size: 31px; font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; }
.pay-number.is-pending { border-top-color: var(--color-divider); }
.pay-number.is-pending .pay-number-value { font-size: 23px; color: var(--color-neutral-700); }
.pay-number-note { margin: var(--space-2) 0 0; max-width: 60ch; line-height: 1.6; }
.pay-facts { min-width: 0; }
.pay-facts .v { overflow-wrap: anywhere; text-align: right; }
.pay-ref { font-size: 13px; }
.pay-next { flex-wrap: wrap; }
@media (max-width: 700px) {
  .pay-done { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .pay-next .btn { width: 100%; white-space: normal; }
}
/* Auf dem Telefon kleben Weiter- und Bezahlleiste unten — die Meldung steht
   darüber statt auf dem Knopf. */
@media (max-width: 600px) {
  .toast { bottom: calc(132px + env(safe-area-inset-bottom)); }
}
/* Was den Fokus bekommt, soll nicht unter einer klebenden Leiste liegen:
   der Browser hält beim Hineinscrollen unten so viel Abstand. */
@media (max-width: 600px) {
  :root:has(#checkout-body-3:not([hidden]) .checkout-paybar),
  :root:has(.checkout-grid .checkout-step-body:not([hidden]) [data-a="checkout-next"]) { scroll-padding-bottom: 150px; }
}

/* ---------- Positionen: die Rechenleiste und Schritt 2 am Preis ----------
   Die Leiste klebt unten am Baukasten, solange er im Bild ist, und rutscht
   mit ihm weg, sobald das Kontobuch darunter beginnt. Schritt 2 zeigt jede
   Wahl mit dem Preis des eigenen Teils. Nur Farbtoken — die Nachtausgabe
   definiert dieselben neu. */
.lines-build .checkout-step-body { padding-inline: var(--space-4); }
.lines-calc {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: var(--space-4);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border: 1px solid var(--color-divider);
  border-top: 3px solid var(--color-accent-700);
  background: var(--color-bg);
  box-shadow: 0 -8px 18px color-mix(in srgb, var(--color-text) 10%, transparent);
}
.lines-calc.is-pending { border-top-color: var(--color-divider); }
.lines-calc-shape { display: grid; place-items: center; width: 52px; height: 52px; background: var(--color-surface); border: 1px solid var(--color-divider); color: var(--color-neutral-700); }
.lines-calc-shape svg { display: block; width: 44px; height: 44px; }
.lines-calc-what { display: grid; gap: 3px; min-width: 0; }
.lines-calc-what strong { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.lines-calc-note { color: var(--color-neutral-700); line-height: 1.4; }
.lines-calc-note.is-warn { color: var(--color-accent-2-700); font-weight: 600; }
.lines-calc-price { display: grid; justify-items: end; gap: 2px; text-align: right; white-space: nowrap; }
.lines-calc-price .kicker { font-size: 11px; }
.lines-calc-price strong { font-family: var(--font-heading); font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.lines-calc.is-pending .lines-calc-price strong { color: var(--color-neutral-500); }

.mat-search { width: 100%; min-width: 0; font-size: 16px; }
.mat-cats { margin: 10px 0; }
.picklist .mat-row { align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; }
.mat-row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.mat-row-name .tag { font-size: 12px; padding: 1px 8px; font-weight: 400; }
.mat-row-figures { display: grid; justify-items: end; gap: 2px; flex-shrink: 0; text-align: right; }
.mat-row-net { font-size: 16px; color: var(--color-text); font-variant-numeric: tabular-nums lining-nums; }
.picklist .mat-row .price { font-size: 12px; }
.mat-facts { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; background: var(--color-surface); border-left: 3px solid var(--color-accent-700); }
.calc-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.calc-opts-qty { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); margin-top: 12px; }
.calc-opt { display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 48px; padding: 8px 10px; text-align: left; border: 1px solid var(--color-divider); background: var(--color-bg); color: var(--color-text); font: inherit; cursor: pointer; }
.calc-opt strong { font-size: 15px; }
.calc-opt small { font-size: 12px; color: var(--color-neutral-700); }
.calc-opt:hover { border-color: var(--color-accent-700); background: var(--color-surface); }
.calc-opt[aria-pressed="true"] { border-color: var(--color-accent-700); box-shadow: inset 0 0 0 1px var(--color-accent-700); background: var(--color-accent-100); }
.calc-opt[aria-pressed="true"] strong { color: var(--color-accent-700); }
.calc-opt:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
.mat-picker .norm-section > p.tiny { margin: 10px 0 0; }

.norm-options { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ledger-empty { padding: 16px; border: 1px dashed var(--color-divider); }
.ledger-empty p { margin: 6px 0 0; line-height: 1.5; }

@media (max-width: 700px) {
  .lines-build .checkout-step-body { padding-inline: var(--space-3); }
  .lines-calc { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding-inline: 12px; }
  .lines-calc-shape { width: 44px; height: 44px; }
  .lines-calc-shape svg { width: 36px; height: 36px; }
  .lines-calc-parts { display: none; }
  .lines-calc-what > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .lines-calc-what strong { font-size: 14px; }
  .lines-calc-what .lines-calc-note { white-space: normal; }
  .lines-calc-price .kicker { display: none; }
  .lines-calc-price strong { font-size: 22px; }
}
