/*
  Page styles: start page sections, catalogue, product, checkout, account, admin, help, credits.
*/

/* ---------------------------------------------------------------- hero: the film frame of the draft */
.hero { padding-block: var(--s-4) 0; }
.hero__frame { position: relative; display: flex; align-items: flex-end; min-height: min(calc(100svh - var(--header-h) - var(--s-6)), 860px); min-height: max(540px, min(calc(100svh - var(--header-h) - var(--s-6)), 860px)); overflow: hidden; border-radius: var(--r-xl); background: var(--inverse); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: hero-settle calc(1600ms * var(--motion-scale)) var(--ease-enter) both; }
.hero__box {
  display: grid; gap: var(--s-4); max-width: 600px; margin: var(--s-6); padding: var(--s-7);
  border-radius: var(--r-lg); background: var(--inverse); color: var(--inverse-ink);
}
.hero__box > * { animation: rise-in calc(700ms * var(--motion-scale)) var(--ease-enter) both; }
.hero__box > :nth-child(2) { animation-delay: calc(80ms * var(--motion-scale)); }
.hero__box > :nth-child(3) { animation-delay: calc(160ms * var(--motion-scale)); }
.hero__box > :nth-child(4) { animation-delay: calc(240ms * var(--motion-scale)); }
.hero__kicker { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--inverse-muted); }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2.4s var(--ease) infinite; }
/* The Christmas order deadline under the hero's button (filled in by home.js from the configurator's price file) */
.hero__deadline { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); padding: 7px 14px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--inverse-ink); font-size: var(--t-small); font-weight: 600; line-height: 1.3; }
.hero__deadline[hidden] { display: none; }
.hero__deadline .icon { width: 16px; height: 16px; flex: none; color: var(--accent); }
.hero__title { font-size: var(--t-hero); line-height: 1.02; letter-spacing: var(--tracking-hero); max-width: 14ch; outline: none; }
.hero__lead { font-size: var(--t-lead); line-height: 1.5; max-width: 42ch; }
.hero__box .btn-row { margin-top: var(--s-3); gap: var(--s-5); }
@media (max-width: 1023px) {
  .hero__box { max-width: none; margin: var(--s-4); padding: var(--s-6); }
  /* the pieces of the hero picture stand on its right: keep them in view above the full-width box */
  .hero__media img { object-position: 85% 40%; }
}
@media (max-width: 639px) {
  .hero { padding-top: var(--s-3); }
  .hero__media img { object-position: 68% 30%; }   /* the strip above the box shows the ornament and the bunny */
  .hero__frame { min-height: calc(100svh - var(--header-h) - var(--s-5)); border-radius: var(--r-lg); }
  .hero__box { margin: var(--s-2); padding: var(--s-5); gap: var(--s-3); }
  .hero__box .btn-row { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .hero__box .btn--link { justify-content: center; }
}

/* ---------------------------------------------------------------- promises strip */
.promises { padding-block: var(--s-6) 0; }
.promises__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.promise { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-small); }
/* the icon stands on its own, no tile behind it: as high as the title and the first line of text */
.promise__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-top: 2px; }
.promise__icon .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.promise strong { display: block; font-size: var(--t-body); }
.promise__text { color: var(--muted); }
@media (max-width: 1023px) { .promises__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-5); } }
@media (max-width: 479px) { .promises__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- categories under the featured tiles */
.category-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--s-7); }
.category-link { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); transition: background-color var(--dur) var(--ease); }
.category-link:hover { background: var(--highlight); }
.category-link__media { width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: var(--r-md); }
.category-link__media img { width: 100%; height: 100%; object-fit: cover; }
.category-link__text { display: grid; flex: 1; min-width: 0; }
.category-link__text span { font-size: var(--t-small); color: var(--muted); }
.category-link__arrow { width: 18px; height: 18px; margin-right: var(--s-2); }
@media (max-width: 1023px) { .category-links { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } }

/* ---------------------------------------------------------------- pictures in sections */
/* who is it for: three large cards, each a little pile of the configurator's templates. "For him" is the dark one. */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.audience { position: relative; display: grid; grid-template-rows: 1fr auto; overflow: hidden; aspect-ratio: 4 / 5; padding: var(--s-5); border-radius: var(--r-xl); background: var(--surface); color: var(--ink); text-decoration: none; container-type: inline-size; }
.audience::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 38%, transparent 0 21px, color-mix(in oklab, currentColor 7%, transparent) 21px 22px); -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0 30%, transparent 70%); mask-image: radial-gradient(circle at 50% 38%, #000 0 30%, transparent 70%); }
.audience--maenner { background: var(--inverse); color: var(--inverse-ink); }
.audience--frauen .audience__pile::before, .audience--kinder .audience__pile::before { content: ''; position: absolute; left: 50%; top: 46%; width: 54cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--accent); }
.audience--kinder .audience__pile::before { border-radius: 30% 70% 62% 38% / 42% 36% 64% 58%; rotate: 12deg; }
.audience__pile { position: relative; z-index: 1; }
.audience__pile img { position: absolute; top: 44%; width: 46cqw; height: auto; translate: -50% -50%; filter: drop-shadow(0 10px 14px rgb(22 22 26 / .22)); transition: translate var(--dur-slow) var(--ease), rotate var(--dur-slow) var(--ease); }
.audience__pile img:nth-child(1) { left: 19%; rotate: -10deg; }
.audience__pile img:nth-child(3) { left: 81%; rotate: 9deg; }
.audience__pile img:nth-child(2) { left: 50%; top: 48%; width: 54cqw; z-index: 1; }
.audience__text { position: relative; z-index: 1; display: grid; gap: 2px; padding-right: 56px; }
.audience__text strong { font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.audience__text span { color: color-mix(in oklab, currentColor 62%, transparent); }
.audience__go { position: absolute; z-index: 1; right: var(--s-5); bottom: var(--s-5); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: translate var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .audience:hover .audience__pile img:nth-child(1) { translate: -62% -54%; rotate: -15deg; }
  .audience:hover .audience__pile img:nth-child(3) { translate: -38% -54%; rotate: 14deg; }
  .audience:hover .audience__go { translate: 4px 0; }
}
@media (max-width: 1023px) { .audiences { grid-template-columns: minmax(0, 1fr); } .audience { aspect-ratio: 16 / 10; } .audience--frauen .audience__pile::before, .audience--kinder .audience__pile::before { width: 34cqw; } .audience__pile img { width: 28cqw; } .audience__pile img:nth-child(2) { width: 34cqw; } .audience__pile img:nth-child(1) { left: 22%; } .audience__pile img:nth-child(3) { left: 78%; } }
.pic { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); aspect-ratio: 4 / 3; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.split__media.pic { aspect-ratio: 4 / 5; }
/* the configurator on a phone: its own screenshot in a drawn frame on the tinted ground. The frame's sizes follow
   its width (cqw), so the corners stay round in every layout. */
.pic.pic--device { display: grid; place-items: center; container-type: inline-size; }
.device { display: block; width: 52cqw; padding: 1.5cqw; border-radius: 7.2cqw; background: var(--inverse); box-shadow: var(--shadow-lg); }
.pic .device img { display: block; height: auto; aspect-ratio: 750 / 1480; object-fit: cover; object-position: top; border-radius: 5.7cqw; }
[data-theme="dark"] .pic--device { background: color-mix(in oklab, var(--ink) 32%, var(--surface)); }
[data-theme="dark"] .device { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-strong); }
@media (max-width: 1023px) { .split__media.pic { aspect-ratio: 4 / 3; } .split__media.pic--device { aspect-ratio: 1; } .device { width: 40cqw; } }
/* on a narrow screen the phone is cut by a wide frame: its upper half is the picture */
@media (max-width: 639px) { .split__media.pic--device { aspect-ratio: 4 / 3; place-items: start center; } .device { width: 62cqw; margin-top: 7cqw; } }
.develop { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); aspect-ratio: 4 / 5; }
.develop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.develop.is-armed:not(.is-developing):not(.is-developed) img { filter: grayscale(1) contrast(.55) brightness(1.3); transform: scale(1.06); }
@media (max-width: 1023px) { .develop { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- the yellow brand band */
.band--brand { background: var(--accent); color: var(--accent-ink); --ink: var(--accent-ink); --muted: var(--accent-ink); --line: color-mix(in oklab, var(--accent-ink) 16%, transparent); }
.band--brand .lead { color: var(--accent-ink); }
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--s-6); }
.material { display: grid; gap: var(--s-1); padding: var(--s-5); border-radius: var(--r-lg); background: color-mix(in oklab, var(--accent) 82%, #ffffff); }
.material__name { font-size: var(--t-h3); letter-spacing: var(--tracking-display); }
.material__use { font-weight: 600; }
.material__traits { font-size: var(--t-small); opacity: .85; }
.material__price { margin-top: var(--s-2); font-size: var(--t-small); font-weight: 600; }
.materials--plain .material { background: var(--surface); }
.band__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1023px) { .materials { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } }
@media (max-width: 639px) { .band__photos { grid-template-columns: minmax(0, 1fr); } .band__photos .pic { aspect-ratio: 16 / 10; } }

/* ---------------------------------------------------------------- closing call to action */
.closing { padding-block: var(--section-y); }
.closing__inner { display: grid; gap: var(--s-5); justify-items: start; }
.closing__inner h2 { max-width: 18ch; }
.closing__inner .lead { color: var(--muted); }
@media (max-width: 639px) { .closing .btn--xl { width: 100%; height: 56px; font: 500 18px/1 var(--font); letter-spacing: 0; } }

/* ---------------------------------------------------------------- catalogue toolbar */
/* the chosen category's subcategories in one row (the mega menu's list): muted until hovered or chosen */
.type-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.type-link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color var(--dur) var(--ease); }
.type-link .icon { width: 18px; height: 18px; flex: none; stroke-width: 1.75; }
.type-link:is(:hover, :focus-visible, [aria-current]) { color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.toolbar__search { flex: 1 1 260px; max-width: 360px; }
.toolbar__selects { display: flex; gap: var(--s-2); margin-left: auto; }
.toolbar--admin .toolbar__selects { margin-left: 0; }
/* the number of hits: at the right end of the filter row */
.toolbar__count { margin-left: auto; font-size: var(--t-small); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* on a phone the filters need the whole row: the number goes below them, still on the right */
@media (max-width: 639px) { .toolbar__count { flex-basis: 100%; text-align: right; } }
@media (max-width: 1023px) {
  .toolbar__search { max-width: none; flex-basis: 100%; }
  .toolbar__selects { margin-left: 0; flex: 1; }
  .toolbar__selects > * { flex: 1; }
}
.shop-head { margin-bottom: 0; }
/* Match the visible text edges as the heading scales with the viewport. */
.shop-head [data-result-count] { padding-inline-start: calc(var(--t-h1) * .075 - .05em); }
.shop-summary {
  position: relative;
  padding-block-end: calc(var(--s-5) + var(--t-h1) * .15); border-block-end: 1px solid var(--line-strong);
}
.shop-summary__reset { --btn-ink: var(--muted); position: absolute; inset-inline-end: 0; inset-block-end: 0; padding: var(--s-3) 0 0; }
.shop-summary__reset:is(:hover, :focus-visible) { --btn-ink: var(--ink); }
.shop-controls { display: grid; gap: var(--s-4); padding-block: var(--s-4); border-block-end: 1px solid var(--line-strong); }
.shop-controls > :empty, .shop-controls__choices > :empty { display: none; }
.shop-controls__filters { margin-bottom: 0; }
.shop-controls__filters .toolbar__search { flex-basis: 220px; min-width: 0; max-width: 320px; }
.shop-controls__choices { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 var(--s-4); min-width: 0; max-width: 100%; margin-inline-start: auto; }
.shop-controls__choices select[name="category"] + .control__chevron { transform: rotate(180deg); }
.shop-controls__choices select[name="category"]:where(:has(option:checked:not([value=""]))) + .control__chevron { transform: rotate(270deg); }
.shop-controls__choices select[name="category"]:open + .control__chevron { transform: rotate(360deg); }
.shop-controls__choices > [data-type-links] { position: relative; min-width: 0; }
.shop-controls__choices > :not(:first-child)::before {
  content: ""; position: absolute; inset-block: 25%; inset-inline-start: calc(-1 * var(--s-2));
  width: 1px; background: var(--line-strong);
}
@media (max-width: 767px) { .shop-controls__choices > :not(:first-child)::before { content: none; } }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.results { min-height: 240px; margin-top: var(--s-5); }
.results[aria-busy="true"] { opacity: .7; }

/* ---------------------------------------------------------------- product page */
/* Picture left with the description under it, everything for buying right. The picture stays where it
   is when the page scrolls (it does not travel along). On narrower screens: picture, buying, description. */
.product {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "gallery info" "description info"; gap: var(--s-7) var(--s-8); align-items: start;
}
.gallery { grid-area: gallery; display: grid; gap: var(--s-3); }
.product__description { grid-area: description; display: grid; gap: var(--s-3); max-width: 68ch; }
.product__description-title { font-size: var(--t-h3); line-height: 1.25; }
.product__description p { font-size: var(--t-lead); line-height: 1.6; color: var(--ink); }
.gallery__main { overflow: hidden; border-radius: var(--r-xl); background: var(--surface); aspect-ratio: 1; }
.gallery__slide { height: 100%; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide.is-active { animation: fade-in var(--dur-panel) var(--ease); }
.gallery__thumbs { display: flex; gap: var(--s-2); }
.gallery__thumb { width: 72px; height: 72px; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-md); background: var(--surface); opacity: .65; box-shadow: inset 0 0 0 0 var(--action); transition: opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--action); }
.product__info { grid-area: info; display: grid; gap: var(--s-6); }
.product__head { display: grid; gap: var(--s-3); }
.product__title { outline: none; }
/* the price above the name, in the brand yellow: plain yellow on the dark ground; on the light one the
   figures stay graphite on a yellow marker stripe (yellow letters would not read on white) */
.product__price { font-size: var(--t-h3); font-variant-numeric: tabular-nums; }
.product__price [data-price] { display: inline-block; font-weight: 600; color: var(--accent); }
:root:not([data-theme="dark"]) .product__price [data-price] {
  padding: 0 3px; margin-inline: -3px; color: var(--ink);
  background: linear-gradient(transparent 56%, var(--accent) 56%, var(--accent) 94%, transparent 94%);
}
.product__price .is-updated, [data-price].is-updated { animation: price-flip calc(360ms * var(--motion-scale)) var(--ease-enter); }
.product__vat { font-size: var(--t-small); color: var(--muted); }
.product__summary { font-size: var(--t-lead); }
.buy__material { min-height: var(--control-h); font-weight: 500; }
@container (min-width: 460px) { .buy__options { grid-template-columns: minmax(0, 1fr) 9rem; } }
.buy__promises { display: grid; gap: var(--s-2); padding-block-start: var(--s-4); border-block-start: 1px solid var(--line); font-size: var(--t-small); }
.buy__promises li { display: flex; align-items: center; gap: var(--s-2); }
.buy__promises .icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.related { margin-top: var(--section-y); }
.related h2 { margin-bottom: var(--s-6); }
@media (max-width: 1023px) {
  .product { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "gallery" "info" "description"; gap: var(--s-6); }
}
@media (max-width: 639px) { .gallery__main { border-radius: var(--r-lg); } }

/* the phone's sticky buy bar */
.sticky-buy { display: none; }
@media (max-width: 1023px) {
  .sticky-buy:not([hidden]) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    padding: var(--s-3) 0 calc(var(--s-3) + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    animation: sheet-up var(--dur-panel) var(--ease-enter);
  }
  .sticky-buy__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .sticky-buy__name { display: grid; font-size: var(--t-small); color: var(--muted); }
  .sticky-buy__name strong { color: var(--ink); font-size: var(--t-body); font-variant-numeric: tabular-nums; }
}

/* ---------------------------------------------------------------- checkout */
.checkout-step { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.checkout-step__title { display: flex; align-items: center; gap: var(--s-3); float: left; width: 100%; margin-bottom: var(--s-2); font-size: var(--t-card); font-weight: 600; }
.checkout-step__title + * { clear: both; }
.checkout-step__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-size: var(--t-small); font-weight: 700; }
.checkout-step__hint { display: flex; align-items: baseline; gap: 6px; font-size: var(--t-small); color: var(--muted); }
.checkout-step__hint > .btn--link { font-size: 12px; }
@container (min-width: 560px) {
  [data-checkout] .payment-choice__ways:has(> .payment-choice__or) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-checkout] .payment-choice__or { display: none; }
}
/* under the greyed-out pay button: what is still missing (gone once everything is in) */
.checkout-pay-hint { margin-block: calc(-1 * var(--s-3)) calc(-1 * var(--s-2)); font-size: var(--t-small); color: var(--muted); }
@media (max-width: 639px) { .checkout-step { padding: var(--s-4); } }

/* the billing address (profile, checkout): the box under the delivery address; unticked, the
   billing fields follow under a small title */
.billing { display: grid; gap: var(--s-5); }
.billing__fields { display: grid; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); animation: fade-in var(--dur-panel) var(--ease); }
.billing__title { font-weight: 600; }
/* a second address under the first (order, team's order view) */
.address-title { margin-top: var(--s-4); margin-bottom: var(--s-1); font-size: var(--t-small); font-weight: 600; color: var(--muted); }

.confirmation { display: grid; justify-items: center; gap: var(--s-3); text-align: center; margin-bottom: var(--s-6); }
.confirmation__check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); animation: pop-in calc(600ms * var(--motion-scale)) var(--ease-enter) both; }
.confirmation__check .icon { width: 34px; height: 34px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: check-draw calc(500ms * var(--motion-scale)) var(--ease-io) calc(300ms * var(--motion-scale)) forwards; }
.confirmation__number { color: var(--muted); font-size: var(--t-small); }
.confirmation .lead { color: var(--muted); max-width: 52ch; }
.narrow > .card + .grid-2 { margin-top: var(--gap); }
.narrow > .btn-row { margin-top: var(--s-6); }

/* ---------------------------------------------------------------- custom print */
[data-print-form] .form-section__title { font-size: var(--t-card); }
.print-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); }
.print-phone .input { height: var(--control-h); }
.print-gender { grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; border: 0; }
.print-gender > legend { float: left; padding: 0; }
.print-gender__options { display: flex; flex-wrap: wrap; column-gap: var(--s-3); }
.print-gender__options label { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h); cursor: pointer; }
.print-gender__options input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: inherit; }
.print-gender__mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 45%, var(--raised));
  transition: background-color var(--dur-fast) var(--ease);
}
.print-gender__options label:hover .print-gender__mark { background: color-mix(in oklab, var(--ink) 55%, var(--raised)); }
.print-gender__options input:checked + .print-gender__mark { background: var(--accent); }
.print-gender__options input[aria-invalid="true"] + .print-gender__mark { box-shadow: inset 0 0 0 2px var(--danger); }
.print-gender__options input:focus-visible + .print-gender__mark { box-shadow: var(--focus-ring); }
@media (forced-colors: active) {
  .print-gender__options input { position: static; opacity: 1; }
  .print-gender__options input:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
  .print-gender__mark { display: none; }
}
.custom-aside { display: grid; gap: var(--s-5); }
.custom-aside .steps { margin: 0; }
/* the account's own data: an overview with a plain pencil in the card's corner; the same card turns
   into the form (the custom print request's fields) while editing */
.profile { position: relative; }
/* the account's forms (profile, password) are as wide as the custom print form (46 rem), so their two
   columns stay close together instead of drifting to the page's edges */
.side-nav--account ~ .side-layout__main :is(.profile, [data-password]) { max-width: 46rem; }
.profile__edit { position: absolute; top: var(--s-3); right: var(--s-3); color: var(--muted); }
.profile__edit:hover { background: none; color: var(--ink); }
.profile__facts { margin-bottom: var(--s-3); }
.profile__address { font-style: normal; font-size: var(--t-small); line-height: 1.7; }
.profile__actions { justify-content: flex-end; margin-inline-start: auto; }
@container (max-width: 280px) { .profile__actions .btn { padding-inline: var(--s-4); } }
.form-note { display: flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--muted); }
.form-note .icon { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- sign in / register */
.auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.auth__panel { max-width: 460px; width: 100%; }
/* the picture stands still beside the form: no sticky – it scrolls with the page exactly like the form,
   so the two columns never slide against each other */
.auth__media { aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { .auth__grid { grid-template-columns: minmax(0, 1fr); } .auth__media { display: none; } .auth__panel { margin-inline: auto; } }
.form-switch { text-align: center; font-size: var(--t-small); color: var(--muted); }
.demo-box { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--highlight); }
.demo-box__title { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--t-small); }
.demo-box__title .icon { width: 16px; height: 16px; }
.demo-box__text { font-size: var(--t-small); }
.demo-box__accounts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.demo-box .chip { background: var(--raised); }

/* ---------------------------------------------------------------- side navigation (account, admin) */
/* Pinned under the header down to the window's lower edge, in the page's left margin (layout.css), set
   apart from the content by space alone – no dividing line. It reaches up to the header (the page's top
   padding moves inside); the links' 12px padding hangs out to the left, so icons and titles start on the column's
   edge and only a hover reaches past it.
   It is only as tall as its links: a nav as tall as the window was pushed up by the content's end long before
   the footer came, and its first links slid under the header. Only a list longer than the window (the team
   area's) scrolls inside (wheel, touch, keys) without a visible scrollbar, and at its end the wheel goes on
   scrolling the page (no overscroll containment – it never feels stuck). */
.side-nav {
  position: sticky; top: var(--header-h); align-self: start;
  display: grid; align-content: start; gap: 2px;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  margin-block-start: calc(-1 * var(--page-top, 0px)); margin-inline-start: calc(-1 * var(--s-3));
  padding: var(--page-top, 0px) var(--s-3) var(--s-6) 0;
  scrollbar-width: none;
}
.side-nav::-webkit-scrollbar { display: none; }
/* The account's tabs do not travel along: they stay at the top of the page, where the page starts, and
   scroll away with it like the title beside them (the customers' wish). The team area keeps its longer list
   pinned. */
.side-nav--account { position: static; max-height: none; overflow: visible; }
.side-nav__title { padding: 0 var(--s-3) var(--s-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.side-nav__link { display: flex; align-items: center; gap: var(--s-3); min-height: 42px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--muted); font-weight: 500; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.side-nav__link .icon { width: 18px; height: 18px; }
.side-nav__link:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
/* the current tab lights up in its text and icon only – no frame, no fill (also not on hover) */
.side-nav__link.is-active { color: var(--ink); font-weight: 600; background: none; }
button.side-nav__link { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.side-nav__sep { height: 1px; margin: var(--s-2) var(--s-3); border: 0; background: var(--line); }
.side-nav__link--quiet:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.side-nav__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
@media (max-width: 1023px) {
  .side-nav { position: static; display: flex; height: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: var(--s-1); margin: 0; padding: 0 0 2px; }
  .side-nav__title { display: none; }
  .side-nav__link { flex: none; min-height: 38px; }
  button.side-nav__link { width: auto; }
  .side-nav__sep { flex: none; width: 1px; height: auto; margin: var(--s-2) var(--s-1); }
}

.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.link-card { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: box-shadow var(--dur) var(--ease); }
.link-card:hover { box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line-strong); }
.link-card > span:nth-child(2) { display: grid; flex: 1; }
.link-card > span:nth-child(2) span { font-size: var(--t-small); color: var(--muted); }
.link-card__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-md); background: var(--surface); }
.link-card__icon .icon { width: 20px; height: 20px; }
.link-card__chev { width: 18px; height: 18px; color: var(--muted); transition: color var(--dur) var(--ease); }
.link-card:hover .link-card__chev { color: var(--ink); }
@media (max-width: 639px) { .link-cards { grid-template-columns: minmax(0, 1fr); } }

.order-card { border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; }
/* The cards stack like the rows of one table: every card has the same fixed columns, so numbers, dates
   and states stand in one line from card to card. Each column is as wide as its widest possible content
   (measured in Albert Sans with its widest digit, "4", since the font has no tabular figures:
   "ZF-2026-4444", "44.44.2026" / "44 Sept 2026", "Versandbereit"), so the space between number and date
   equals the space between date and state. The state badges all take their column's width with the word
   in their middle – one even column of pills. The amount stands at the right edge. */
.order-card__summary {
  --col-number: 7.3em; --col-date: 4.85em; --col-state: 6.3em;
  display: grid; grid-template-columns: var(--col-number) var(--col-date) var(--col-state) minmax(0, 1fr) auto;
  align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); transition: background-color var(--dur) var(--ease);
}
:lang(en) .order-card__summary { --col-date: 5.6em; }
.order-card__summary:hover { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.order-card__number { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-card__date { color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-card__summary .badge { justify-self: stretch; justify-content: center; }
.order-card__total { justify-self: end; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-card__chevron { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur-panel) var(--ease); }
.order-card[open] .order-card__chevron { transform: rotate(180deg); }
.order-card__body { display: grid; gap: var(--s-5); padding: var(--s-2) var(--s-5) var(--s-5); }
.order-card::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-panel) var(--ease), content-visibility var(--dur-panel) allow-discrete; }
.order-card[open]::details-content { block-size: auto; }
@media (max-width: 639px) {
  .order-card__summary { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 4px; padding: var(--s-4); }
  .order-card__date { grid-row: 2; grid-column: 1; }
  .order-card__summary .badge { grid-row: 2; grid-column: 2 / -1; justify-self: end; }
  .order-card__body { padding: var(--s-2) var(--s-4) var(--s-4); }
}


/* ---------------------------------------------------------------- admin */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
/* A figure tile: label with its icon behind it in the first row, the number alone in the full second row,
   so even a long amount fits (it shrinks with the tile instead of being cut). */
.kpi { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label icon" "value value" "delta delta"; gap: var(--s-2) var(--s-3); align-items: center; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: box-shadow var(--dur) var(--ease); }
.kpi:hover { box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line-strong); }
.kpi__icon { grid-area: icon; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); }
.kpi__icon .icon { width: 18px; height: 18px; }
.kpi__label { grid-area: label; font-size: var(--t-small); color: var(--muted); }
.kpi__value { grid-area: value; font-size: clamp(18px, 12.5cqi, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* four in a row only where each tile still has room for a long amount (the team area has its side navigation) */
@media (max-width: 1439px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .kpis { grid-template-columns: minmax(0, 1fr); } }

.feed { display: grid; gap: var(--s-4); }
.feed__item { display: grid; gap: 6px; justify-items: start; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.feed__item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed__text { font-size: var(--t-small); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed__meta { font-size: var(--t-label); color: var(--muted); }

.inbox { display: grid; gap: var(--s-3); }
.inbox__item { gap: var(--s-3); }
.inbox__head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.inbox__meta { font-size: var(--t-small); color: var(--muted); }
.inbox__text { max-width: 72ch; }
.inbox__foot { display: flex; justify-content: flex-end; }

/* ---------------------------------------------------------------- help and credits */
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.help-nav { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: grid; gap: 2px; }
.help-nav a { min-height: 40px; display: flex; align-items: center; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--muted); font-weight: 500; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.help-nav a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.help-content { display: grid; gap: var(--s-8); }
.help-content h2 { font-size: var(--t-h3); margin-bottom: var(--s-4); }
.help-content section { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
@media (max-width: 1023px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .help-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .help-nav a { flex: none; }
}

.credits__title { margin: var(--s-8) 0 var(--s-4); font-size: var(--t-h3); }
.credits-logos { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; font-size: var(--t-small); }
.credits-logos .icon { width: 14px; height: 14px; }
.credits-logos__note { margin-top: var(--s-3); font-size: var(--t-label); }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.credit { display: flex; gap: var(--s-4); padding: var(--s-3); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.credit__media { width: 96px; height: 96px; flex: none; overflow: hidden; border-radius: var(--r-md); }
.credit__media img { width: 100%; height: 100%; object-fit: cover; }
.credit__text { display: grid; gap: 4px; align-content: center; font-size: var(--t-small); }
.credit__alt { font-weight: 500; }
.credit__source { color: var(--muted); }
@media (max-width: 479px) { .credits { grid-template-columns: minmax(0, 1fr); } }

section[id] { scroll-margin-top: calc(var(--header-h) + var(--s-3)); }

/* ---------------------------------------------------------------- account: custom prints, invoices, returns */
.account-request, .account-return { gap: var(--s-3); }
.account-request__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.account-request__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--t-small); }
.account-request__facts .icon { width: 16px; height: 16px; color: var(--muted); }
.account-request__explain { font-size: var(--t-small); }
.account-request__question { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); }
.offer { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); }
.offer__title { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.offer__title .icon { width: 18px; height: 18px; }
.offer__line, .offer__total { display: flex; justify-content: space-between; gap: var(--s-4); font-variant-numeric: tabular-nums; }
.offer__line > span:first-child { display: grid; }
.offer__total { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.offer__meta { font-size: var(--t-small); color: var(--muted); }
.offer__message { padding-left: var(--s-3); border-left: 2px solid var(--line-strong); font-size: var(--t-small); }
.account-more { margin-top: var(--gap); }
.account-policy { gap: var(--s-3); }
.account-return__items { display: grid; gap: 4px; font-size: var(--t-small); }
.order-card__links { gap: var(--s-4); }
/* the documents (invoice, return) on the left; "open order" with its arrow at the right end, where it points */
.order-card__open { margin-left: auto; }
.link-cards--todo { grid-template-columns: minmax(0, 1fr); }
.return-lines { display: grid; gap: var(--s-2); }
.return-line { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--surface); }
.return-line__name { display: grid; font-size: var(--t-small); }
.return-line .input--cell { background: var(--raised); }

/* ---------------------------------------------------------------- sign-in: passkey, second step, demo code */
/* "or" between the password form and the passkey button: a hairline on both sides of the word */
.divider-text { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lead-small { color: var(--muted); }
.demo-box__code strong { font-variant-numeric: tabular-nums; letter-spacing: .08em; }

/* ---------------------------------------------------------------- account → security */
.security-card { display: grid; gap: var(--s-3); }
.security-card__head .card__title { display: flex; align-items: center; gap: var(--s-2); }
.security-card__head .card__title .icon { width: 20px; height: 20px; }
.security-list { display: grid; margin: 0; padding: 0; list-style: none; }
.security-list__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.security-list__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--r-sm); background: var(--highlight); }
.security-list__icon .icon { width: 18px; height: 18px; }
.security-list__text { display: grid; flex: 1; min-width: 0; }
.security-list__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
/* the bin turns red under the pointer, lines only (like the cart's) */
.security-list__remove { color: var(--muted); transition: color var(--dur) var(--ease); }
.security-list__remove:is(:hover, :focus-visible) { color: var(--danger); background: none; }
.security-list__action { flex: none; }
/* on a phone the sign-out button goes under the text, in line with it */
@media (max-width: 560px) {
  .security-list__item:has(.security-list__action) { flex-wrap: wrap; row-gap: var(--s-1); }
  .security-list__item:has(.security-list__action) .security-list__text { flex-basis: calc(100% - 36px - var(--s-3)); }
  .security-list__action { margin-left: calc(36px + var(--s-3) - var(--s-4)); } /* the icon lines up with the text */
}

/* the authenticator setup: QR code beside the key to type in */
.steps-list { display: grid; gap: var(--s-1); margin: 0; padding-left: 1.2em; }
.totp-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.totp-setup__qr { padding: var(--s-2); border-radius: var(--r-md); background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); }
.qr { display: block; width: 176px; height: 176px; }
.totp-setup__key { display: grid; gap: var(--s-2); justify-items: start; }
.totp-setup__key .secret code { font-size: 15px; letter-spacing: .06em; word-break: break-all; }
@media (max-width: 559px) { .totp-setup { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-5); margin: 0; padding: var(--s-4); border-radius: var(--r-md); background: var(--highlight); list-style: none; }
.backup-codes code { font: 600 16px/1.4 var(--font-mono); letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- invitation page */
.invite-note { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); border-left: 3px solid var(--accent); background: var(--highlight); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.invite-note cite { display: block; margin-top: var(--s-1); font-size: var(--t-small); font-style: normal; color: var(--muted); }
