/* netpit — mobile-first, photo-led B2B catalogue. One file, no framework.
   Theme: Brändäämö Tec — clean light surfaces, bold orange accents. */
:root {
  --bg: #f6f6f6;        /* page background */
  --panel: #ffffff;     /* cards / header / tiles */
  --panel-2: #f6f6f6;   /* subtle fills (inputs, stepper buttons) */
  --card: #ffffff;      /* popovers / dropdowns */
  --ink: #272727;       /* primary text */
  --heading: #0e0e0e;   /* headings / deepest ink */
  --muted: #4a5464;     /* secondary text */
  --line: #e7e7e7;      /* borders / dividers */
  --accent: #f0523d;    /* vivid orange-red — primary (white-label: overridden inline in <head>) */
  --accent-dark: #d8432f; /* hover-darken — static fallback for old browsers */
  /* Derive the hover-darken from whatever --accent is, so recolouring the brand
     keeps the hover in step. Browsers without color-mix keep the fallback above. */
  --accent-dark: color-mix(in srgb, var(--accent) 88%, black);
  --accent-ink: #ffffff;
  --ok: #1b7a4b;
  --err: #b3261e;
  --radius: 12px;
  /* «DRAWING-13 · THE LOOK» — IBM Plex Sans (Light / Regular / Medium) is "the
     whole type story; REPLACES today's Manrope + Nunito Sans".
     ⚠ THE TYPEFACE IS A T1 BRAND CHOICE, NOT A CONSTANT (Drawing 13). It is held
     in these two custom properties — ONE place, the same shape as --accent — so
     that when the brand record is widened to carry a typeface (Drawing 10 /
     Setup, waiting on the aesthetics ruling O1) it overrides here and nowhere
     else. ⛔ Do not write a family name into a rule below; use the variable.
     The system stack behind it is the fallback while the webfont loads. */
  --font-head: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  /* «DRAWING-13 · THE LOOK» — "radii .25rem and 6px". Scoped to the landing
     page's own components; the rest of the app keeps --radius until the
     aesthetics pass (O1) is ruled on. */
  --radius-flat: .25rem;
  --radius-flat-lg: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, .page-title, .sub, .brand {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 700;
}

/* White-label text wordmark: two spans, no gap, one lowercase word.
   .bm-1 is ink, .bm-2 is the (configurable) accent. */
.brandmark {
  display: inline-flex; align-items: baseline; line-height: 1;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -.01em; text-transform: lowercase;
  text-decoration: none;
}
.brandmark:hover { text-decoration: none; }
.brandmark .bm-1 { color: var(--ink); }
.brandmark .bm-2 { color: var(--accent); }
.bm-1 + .bm-2 { margin-left: 0; }   /* no gap — reads as one word */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-dark); }

/* Top bar */
/* ⚠ flex-wrap: wrap IS LOAD-BEARING — it is what keeps the wordmark OUT of the menu.
   Measured defect (iPhone, signed out): with the bar on ONE unwrappable row, .brandbar
   is squeezed to ~67px while the wordmark it holds needs ~173px, so the mark spilled
   ~90px ACROSS the menu column, and .topbar's vertical centring parked that one-line
   mark in the MIDDLE of a nav that had wrapped to three lines — "the wordtag cuts in
   between the banner-menu". Wrapping gives the mark its own row: the bar's minimum
   demanded width drops from ~343px to ~205px (a+b becomes max(a,b)), which is under
   every phone width, so nothing is squeezed and nothing overlaps. ⛔ Do not restore
   nowrap; pinned by test/landing-page.test.js. */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 32px; width: auto; display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   «DRAWING-13 §6 · THE BUYER LOGO (R39)» — THE POSITION DIAL.

   ⭐ THIS IS THE ONE PLACE THE BUYER LOGO MOVES FROM. Georg, ruling on it:
      "beside the wordmark, not replacing it. i haven't seen it how it looks
       like so be ready to move it to a random direction.."
   The second half of that sentence is the design constraint, not a caveat — so
   moving it is ONE value, changed HERE, and nothing else moves anywhere:

     --buyer-logo-flow: row            logo LEFT of the wordmark   ← today
                        row-reverse    logo RIGHT of the wordmark
                        column         logo ABOVE the wordmark
                        column-reverse logo BELOW the wordmark

   Size and spacing are expected to move too, so they sit in the same block and
   are one value each:
     --buyer-logo-gap     the space between the two marks
     --buyer-logo-height  the mark's height (width follows, aspect kept)
     --buyer-logo-max-w   the crowding cap — see the WIDE MARK note below
   (The one direction the dial does not reach is "the opposite end of the
   banner", because .brandbar holds both marks together; that move is the single
   line `.topbar .buyer-logo{ order:1; margin-left:auto }` plus lifting the img
   out of .brandbar in header.ejs. Written down so it is not a hunt either.)

   ⛔ DELIBERATELY NOT A SETTING, AN ADMIN PICKER OR A LAYOUT CHOOSER. One person
   will nudge this a handful of times; cheap to edit beats configurable. It is
   also NOT a per-buyer choice — «DRAWING-09» puts the LOGO at T2, but where a
   mark sits in the chrome is the tenant's own layout, and no requirement asks
   for Telia's banner to be arranged differently from DNA's.

   ⚠ THE CROWDED CASE IS THE ONE HE WILL BE LOOKING AT: a WIDE mark (Telia) next
   to a LONG wordmark ("brändäämö tec"). It cannot break by construction —
   max-width caps the mark at the smaller of --buyer-logo-max-w and 30% of the
   viewport, object-fit:contain keeps its aspect ratio inside that cap (a wide
   mark loses height rather than squashing), the logo never shrinks the wordmark
   (flex: 0 0 auto on a shrink-proof pair).
   ⛔ CORRECTED 2026-08-31 — THIS NOTE USED TO SAY ".nav already wraps, so a wide
   mark costs banner height, never overlap or a horizontal scrollbar." The first
   half was true and the conclusion was wrong, and that is EXACTLY how the iPhone
   defect hid: .nav wrapping does not cost the BANNER height harmlessly, it makes
   the NAV a tall multi-line block, and .topbar was align-items:center on an
   unwrappable row — so the one-line wordmark got centred INSIDE that stack, with
   menu lines above and below it. Height is only harmless if the mark is not
   sitting in it. What actually holds now is .topbar { flex-wrap: wrap } (see the
   Top bar rule above): the marks get their OWN row, so the bar demands
   max(brandbar, nav) instead of their sum, and a wide mark costs banner height
   WITHOUT the wordmark ever being inside the menu, and without a sideways
   scrollbar.
   ═══════════════════════════════════════════════════════════════════════════ */
.brandbar {
  --buyer-logo-flow: row;
  --buyer-logo-gap: 10px;
  --buyer-logo-height: 26px;
  --buyer-logo-max-w: 120px;

  display: flex;
  flex-direction: var(--buyer-logo-flow);
  align-items: center;
  gap: var(--buyer-logo-gap);
  flex: 0 1 auto;
  min-width: 0;
}
.buyer-logo {
  height: var(--buyer-logo-height);
  width: auto;
  max-width: min(var(--buyer-logo-max-w), 30vw);
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 700; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ═══ «DRAWING-13 · R53 §4/§5b/§6» — THE SECTIONS DROPDOWN ═══════════════════
   Georg: "Tuotevalikoima / Sopimustuotteet / Tilaushistoria / Ota yhteyttä -->
   Dropdown menu", and "two items when logged out".

   ⭐ ONE CONTROL, TWO STATES. There is no signed-in variant and no signed-out
   variant of any rule below — «R53 §5b»: "the component is constant, the contents
   vary." A two-item panel and a four-item panel are the same panel; nothing here
   measures how many children it has.

   ⛔ NO JAVASCRIPT. `<details>/<summary>` is the open/close, so the menu works
   with scripting off and needs no state of ours to go wrong. Also NO SVG: the
   caret is a CSS `content` glyph, which keeps the page at the four tile icons the
   landing tests pin ("still four icons, none added to the banner").

   ⚠ THE LOOK FOLLOWS «DRAWING-13 · THE LOOK» AND NOTHING ELSE: FLAT, a thin
   border, the existing --radius-flat-lg, the existing --panel/--line/--ink tokens.
   ⛔ NO box-shadow — "Shadows on FOCUS RINGS only." The trigger reuses `.nav a`'s
   weight and hover accent so the dropdown reads as one of the banner's own items
   rather than a new kind of thing. NOTHING outside this block was restyled. */
.navmenu { position: relative; }
.navmenu > summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;          /* the default disclosure triangle, replaced below */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary::after { content: "\25BE"; font-size: .7em; line-height: 1; }
.navmenu[open] > summary::after { content: "\25B4"; }
.navmenu > summary:hover { color: var(--accent); }
.navmenu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-flat-lg);
}
.who { color: var(--muted); font-size: .85rem; display: flex; flex-direction: column; line-height: 1.2; }
.who .role { font-size: .72rem; color: var(--accent); }
.logout { margin: 0; }
.logout button, .nav button {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-size: .85rem;
  font-family: var(--font-head); font-weight: 600;
  min-height: 40px;
}
.logout button:hover, .nav button:hover { color: var(--accent); border-color: var(--accent); }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.foot { color: var(--muted); text-align: center; padding: 24px; font-size: .8rem; }
.page-title { font-size: 1.4rem; margin: 8px 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.card.auth { max-width: 380px; margin: 8vh auto 0; }
.card h1 { margin-top: 0; }

/* Forms */
/* «HARDEN-01-NOTE-CSS» — `textarea` is added to the two selectors below and NOTHING
   else changes: the checkout note field (`.note-field` in src/views/checkout.ejs) then
   gets exactly the rule this sheet already gives every other field, using the same
   tokens, the same border, the same focus ring. Its wrapping <label> is already styled
   by the `label` rule above. ⛔ SCOPE LIMIT (the drawing): no new colours, no new type
   choices, no layout opinions — the look-and-feel decision is Georg's via netpit
   (register O1), so this adds no value of its own to pre-empt it. */
label { display: block; margin: 10px 0; font-size: .9rem; color: var(--muted); }
/* 🔴🔴 «DRAWING-57 · CSS-01-INPUT-RESET» — THE `:not()` IS THE WHOLE DRAWING, AND IT IS
   THE ROOT CAUSE OF «DRAWING-55». MEASURED in headless Chrome against the harness's real
   /settings HTML: the group tick row's CHECKBOX was 983 x 13 px and the group NAME was
   pushed onto the second line. This selector said `input`, so it said CHECKBOX and RADIO
   too, and a tick box was stretched to the full width of its row on every screen.
   ⚠ «55» treated the symptom: its `nowrap` stopped the name WRAPPING and pushed it off the
   RIGHT EDGE instead — Georg: "the tickbox is now about 1000px wide in the middle of the
   screen and the customer name has whatever leftovers is left on the right of it."
   ⭐ «55»'s `nowrap` and separator are CORRECT and stay; they were defeated from underneath.
   ⛔ THE BLAST RADIUS IS GLOBAL BY DESIGN — every checkbox and radio in the product — and it
   is asserted BY RENDERING, not by grepping: test/drawing57-the-checkbox-is-full-width.test.js
   measures computed widths in a real browser. ⚠ A per-list `width: auto` patch is what this
   replaces; three of them had accumulated, and the symptom kept reappearing under a new
   address because each one only ever covered the list its author was looking at. */
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 4px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 1rem; font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }

/* «HARDEN-01-NOTE-CSS» — the note shown back on the confirmation page
   (`.order-note` in src/views/order.ejs). Colour, size and spacing are INHERITED from
   the body/`p` defaults — the only two declarations here exist to contain arbitrary
   customer text: keep the line breaks they typed, and keep an unbroken run of
   characters inside the card instead of pushing the page sideways. */
.order-note { white-space: pre-wrap; overflow-wrap: break-word; }

/* Primary action — solid orange fill (buttons + link-buttons) */
.primary, button.primary {
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 8px;
  padding: 11px 16px; font-size: 1rem; font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer; margin-top: 8px;
  display: inline-block; text-align: center; min-height: 44px;
  transition: background .15s ease, border-color .15s ease;
}
a.primary { line-height: 1.45; }
.primary:hover, button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-ink); text-decoration: none; }
button.primary:disabled { opacity: .5; cursor: not-allowed; }
.inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.stack > * { margin-bottom: 6px; }

/* 🔴 «DRAWING-33 · WIDENED BY «R184»» — "use every attribute a product has as an
   possible search filter and the combination." The measured list is ~49 attributes, so
   Matti's search form is forty-odd boxes; one per line is a page nobody scrolls to the
   bottom of. LAYOUT ONLY — no colour literal, no token override. Back-office screen. */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; }
.field-grid > label { display: flex; flex-direction: column; font-size: .85rem; gap: 2px; }
form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
form fieldset > legend { font-size: .85rem; padding: 0 4px; }

/* Alerts */
.alert { padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: .9rem; }
.alert.error { background: #fdecea; color: var(--err); border: 1px solid #f5c6c2; }
.alert.ok { background: #e7f6ee; color: var(--ok); border: 1px solid #bfe6d0; }

/* Catalogue photo grid (mobile-first: 2 cols, grows on wider screens) */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.tile a { color: var(--ink); display: block; }
.tile {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.tile a:hover { text-decoration: none; }
.photo { aspect-ratio: 1 / 1; background: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
}
.placeholder.big { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.meta .name { font-weight: 700; font-size: .92rem; color: var(--heading); }
.meta .unit { color: var(--muted); font-size: .8rem; }
/* «DRAWING-34 · SHOW THE PRICES» — the contracted price on a signed-in surface.
   The whole string (figure + symbol, and — «92» — the unit/format placeholders) is
   composed in src/prices.js; this rule is presentation only and must never try to add,
   split or decorate the number. */
.price { font-weight: 700; font-size: .88rem; color: var(--heading); }
.cart-name .price, .cart-row .price { font-weight: 700; }

/* Product detail */
.product-detail { display: grid; gap: 20px; }
@media (min-width: 700px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.hero img { width: 100%; border-radius: var(--radius); display: block; }
.product-detail h1 { margin-top: 0; }
.unit-line { color: var(--muted); }

/* «DRAWING-72 · CARD-01-MIN-SIZE» — THE SMALL PRINT ON THE PRODUCT CARD.
   Georg, «R213»: "The font size in minimum the size of 'Add to cart' size.
   Keep bolding as it is."
   ⛔ THE RULE IS A RELATION, NOT A NUMBER («RULING 1»): no text inside the
   product card renders smaller than the Add-to-cart control. `button.primary`
   is `font-size: 1rem` (styles.css:280), so 1rem is the value TODAY — and the
   relation is enforced by «D72 · CLAUSE 1», which compares COMPUTED sizes to
   each other and never to a literal. Restyle the button and that clause reds.
   ⛔ SCOPED TO THE CARD («RULING 3»). The bare `.small`, `.muted` and `.price`
   utilities are NOT touched: `.small` is used in 24 views and `.price` in 6, and
   resizing a utility moves two dozen screens that nobody asked to change.
   ⛔ WEIGHTS DO NOT MOVE («RULING 2»): .price stays 700, the other two stay 400.
   Not one of these rules sets font-weight, deliberately.
   ⛔ `div.placeholder` (EI KUVAA) IS EXCLUDED BY «RULING 4» — it is a stand-in
   for an image, not small print about the product. Ruled out, not overlooked. */
.product-detail .price { font-size: 1rem; }
.product-detail p.muted.small { font-size: 1rem; }
/* 🔴 FOUR classes, and the fourth is load-bearing. `.add-form.detail .qty-label`
   (styles.css:439+) is (0,3,0) at .9rem; the natural `.product-detail .qty-label`
   is (0,2,0) and LOSES REGARDLESS OF SOURCE ORDER. A rule that loses on
   specificity is not a weaker version of the right rule — it is NO RULE, and it
   renders as success. «72#R1-B1», and the trap sits on the one element this
   drawing holds up as its own model. */
.product-detail .add-form.detail .qty-label { font-size: 1rem; }

/* Accounts */
.op-results { list-style: none; padding: 0; margin: 6px 0; }
.op-results li { margin: 4px 0; }
.op-results button {
  width: 100%; text-align: left; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--ink);
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.op-results button:hover { border-color: var(--accent); }
.operator-pick { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 10px 0; }
.operator-pick legend { color: var(--muted); padding: 0 6px; }
.chosen { font-size: .9rem; }
.users { width: 100%; border-collapse: collapse; font-size: .9rem; }
.users th, .users td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.users th { color: var(--muted); font-weight: 700; }
.preview-bar .small { margin-top: 8px; }

/* Per-row account actions (Take role / Delete) */
.row-actions { display: flex; gap: 6px; white-space: nowrap; }
.row-actions form { display: inline; margin: 0; }
.row-actions button {
  font-size: .78rem; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
}
.row-actions .take-role:hover { border-color: var(--accent); color: var(--accent); }
.row-actions .delete { color: var(--err); }
.row-actions .delete:hover { background: var(--err); color: #fff; border-color: var(--err); }

/* Impersonation banner — shown on every page while an admin acts as someone */
.impersonation-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; max-width: 1080px; margin: 12px auto 0; padding: 8px 14px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  border: 1px solid var(--accent); border-left: 4px solid var(--accent);
  border-radius: 8px; font-size: .88rem;
}
.impersonation-banner .imp-msg { color: var(--ink); }
.impersonation-banner form { margin: 0; }
.impersonation-banner button {
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 6px; padding: 4px 12px; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.impersonation-banner button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Cart link + count badge in the top bar */
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700;
}

/* Add-to-cart button on tiles + product detail */
.add-form { padding: 0 12px 12px; }
.add-form .small-btn { width: 100%; margin-top: 0; padding: 10px 10px; font-size: .85rem; }
.add-form.detail { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.add-form.detail .qty { width: 120px; margin: 0; }
/* Brief inline feedback after an AJAX add (orange, like the brand). */
button.primary.added { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* Quantity stepper (− [n] +) — shared by tiles, product detail, and cart.
   Big tap targets for mobile; the number field stays writable in the middle. */
.qty-stepper { display: inline-flex; align-items: stretch; gap: 0; margin: 6px 0; }
.qty-stepper .step {
  flex: 0 0 auto; width: 44px; min-height: 44px;
  background: var(--panel-2); color: var(--accent);
  border: 1px solid var(--line); cursor: pointer;
  font-size: 1.25rem; line-height: 1; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.qty-stepper .step:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.qty-stepper .step:active { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.qty-stepper .step-dec { border-radius: 8px 0 0 8px; }
.qty-stepper .step-inc { border-radius: 0 8px 8px 0; }
.qty-stepper .qty-input {
  width: 56px; min-height: 44px; margin: 0; text-align: center;
  border-radius: 0; border-left: none; border-right: none;
  padding: 8px 4px; -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper .qty-input:focus { outline: none; border-color: var(--accent); box-shadow: none; }
/* «PREP-01-B2» LT-B2 row 2 — the OPTIONAL visible quantity label. Rendered only
   when a caller passes `label` to partials/qty-stepper (today: the cart alone), so
   the catalogue tile and product detail are untouched. Sits centred beside the − / +
   group rather than stretching with it. */
.qty-stepper .qty-field-label {
  align-self: center; margin-right: 6px; white-space: nowrap;
  font-size: .9rem; color: var(--muted);
}
/* On a catalogue tile the stepper centres above the full-width Add button. */
.add-form .qty-stepper { display: flex; justify-content: center; }
/* Product detail: a small "Quantity" label sits above the stepper. */
.add-form.detail .qty { margin: 0; width: auto; }
.add-form.detail .qty-label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }

/* Admin operator picker (searchable) — catalogue dropdown only.
   Scoped to .op-picker so these absolute/dropdown rules don't leak onto the
   accounts page, which reuses .op-results as a plain inline list. */
.op-picker { position: relative; margin: 8px 0; max-width: 420px; }
.op-picker input { width: 100%; }
.op-picker .op-results {
  list-style: none; margin: 4px 0 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  position: absolute; left: 0; right: 0; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.op-picker .op-results li { padding: 0; }
.op-picker .op-results li a { display: block; padding: 8px 10px; border-radius: 6px; }
.op-picker .op-results li a:hover { background: var(--panel-2); text-decoration: none; }
.op-picker .op-results li.op-empty { padding: 8px 10px; }
.op-quick-label { margin-top: 12px; }
.op-quicklist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.op-quicklist a {
  display: inline-block; padding: 6px 12px; font-size: .85rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
}
.op-quicklist a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Cart + checkout lists */
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
/* Cart line thumbnail — same photo-first look as the catalogue, sized small (64px)
   so it never dominates the row. Reuses .photo/.photo img/.placeholder. */
.cart-thumb {
  flex: 0 0 auto; width: 64px; height: 64px;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.cart-thumb .placeholder { font-size: .6rem; text-align: center; line-height: 1.1; }
.cart-name { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.cart-list.compact .cart-row { padding: 6px 0; }
.cart-qty { display: flex; align-items: center; gap: 6px; margin: 0; }
.cart-qty input { width: 80px; margin: 0; }
.cart-qty button, .cart-remove button {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; cursor: pointer; font-size: .85rem;
  font-family: var(--font-head); font-weight: 600; min-height: 44px;
}
.cart-qty button:hover, .cart-remove button:hover { color: var(--accent); border-color: var(--accent); }
.cart-remove { margin: 0; }

/* Calls to action */
a.cta, .cta { display: inline-block; text-decoration: none; }
.cta { margin-top: 8px; }
.sub { font-size: 1.05rem; margin: 4px 0 12px; }

/* Picture Loader */
.rb-hero img { max-width: 320px; width: 100%; border-radius: var(--radius); display: block; }
.drop-zone {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 16px; margin: 10px 0; transition: border-color .15s ease, background .15s ease;
}
.drop-zone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dz-hint { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.camera-controls { margin: 10px 0; }
.camera-controls video { width: 100%; max-width: 360px; border-radius: var(--radius); margin: 8px 0; background: #000; }
.cam-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost-btn {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; cursor: pointer; font-size: .85rem; margin-top: 6px;
  font-family: var(--font-head); font-weight: 600; min-height: 44px;
}
.ghost-btn:hover { color: var(--accent); border-color: var(--accent); }
.ghost-btn.danger:hover { color: var(--err); border-color: var(--err); }
.staged { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.staged li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.rule { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.loader-gallery .tile.is-hero { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tile-actions form { margin: 0; }
.push-form { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.push-form button { margin: 0; }

/* Picture Loader landing — show-all grid + instant filter */
.loader-filter-bar input { width: 100%; box-sizing: border-box; }
.loader-group { margin-top: 18px; }
.group-title { font-size: 1.05rem; margin: 0 0 10px; }
.loader-cta { margin-top: 4px; font-weight: 700; color: var(--accent); font-size: .82rem; }
.tile[hidden], .loader-group[hidden] { display: none; }

/* Catalogue mini-gallery (extra netpit angles under the hero) */
.angles { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.angles img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Delivery address picker */
.addr-pick {
  display: flex; align-items: flex-start; gap: 10px; margin: 8px 0;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  color: var(--ink); cursor: pointer;
}
.addr-pick:hover { border-color: var(--accent); }
/* «DRAWING-57 · RULING 3» — ⚠ A THIRD LOCAL PATCH, WHICH THE DRAWING'S TABLE DOES NOT
   LIST. `width: auto` stood here for the same reason as the two it does list, and it is
   gone for the same reason: the root is fixed above. MEASURED: this is why the checkout
   address radio was already 13px while every other tick on the site was ~1000px — the
   screen looked fine and said nothing about the eleven that did not. The margin is a real
   spacing choice for the address card and stays. */
.addr-pick input { margin: 4px 0 0; }
.addr-body { font-size: .92rem; line-height: 1.4; }
.ship-to { font-style: normal; line-height: 1.5; color: var(--ink); }

/* Areas (admin org-chart / area tree, GET /areas) -------------------------- */
/* Two conscience indicators in the brand's orange-warning style. */
.warn-line {
  margin: 8px 0; padding: 8px 12px; font-size: .9rem;
  background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid var(--accent); border-left: 4px solid var(--accent); border-radius: 8px;
}
.callout-warn {
  margin: 10px 0; padding: 10px 14px; font-size: .9rem;
  background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid var(--accent); border-left: 4px solid var(--accent); border-radius: 8px;
}
.callout-warn .warn-list { margin: 6px 0 0; padding-left: 18px; }

/* Mobile-first: panes stack; side-by-side from 760px up. */
.area-layout { display: grid; gap: 18px; }
@media (min-width: 760px) { .area-layout { grid-template-columns: minmax(260px, 360px) 1fr; align-items: start; } }

/* The tree (permanent left org chart) */
.area-tree .tree-root, .area-tree .node-children { list-style: none; margin: 0; padding: 0; }
.area-tree .node-children { margin-left: 16px; border-left: 1px solid var(--line); padding-left: 6px; }
.tree-node { margin: 2px 0; }
.node-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; flex-wrap: wrap; }
.node-row.is-selected { background: color-mix(in srgb, var(--accent) 12%, white); box-shadow: inset 0 0 0 1px var(--accent); }
.node-toggle, .node-toggle-spacer {
  width: 22px; min-height: 22px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
}
.node-toggle {
  background: var(--panel-2); color: var(--accent); border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer; font-size: .8rem; padding: 0;
}
.node-toggle:hover { border-color: var(--accent); }
.node-name { color: var(--ink); font-weight: 700; }
.node-name:hover { color: var(--accent); text-decoration: none; }
.node-badge { flex: 0 0 auto; }
.node-sys { font-size: .68rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.node-mgr { font-size: .78rem; color: var(--muted); }
.node-mgr.none { color: var(--accent); font-style: italic; }
.level-labels { margin-top: 14px; }
.level-labels summary { cursor: pointer; color: var(--muted); font-size: .85rem; }

/* Detail pane */
.area-detail h3 { margin: 14px 0 6px; font-size: 1rem; }
.chip-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px;
}
.chip form { margin: 0; }
.chip-x {
  background: var(--panel); color: var(--err); border: 1px solid var(--line);
  border-radius: 999px; width: 22px; height: 22px; line-height: 1; cursor: pointer; padding: 0; font-size: 1rem;
}
.chip-x:hover { background: var(--err); color: #fff; border-color: var(--err); }
.shop-list { list-style: none; margin: 6px 0; padding: 0; }
.shop-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.shop-row .shop-name { font-weight: 600; }
.shop-row form { margin: 0 0 0 auto; }
.add-shops { margin-top: 8px; }
.add-shops summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .85rem; }
.shop-pick-row label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
/* «DRAWING-57 · RULING 3» — `.shop-pick-row input[type=checkbox] { width: auto }` STOOD
   HERE AND IS GONE. It was a LOCAL patch for a GLOBAL rule: the `input` selector above made
   EVERY tick box full-width, and this line took it back for exactly one list. That is why
   the symptom kept reappearing under a new address — each patch only ever covered the list
   its author was looking at. The root is fixed above; nothing is left to take back.
   ⚠ The `margin: 0` half DID do work of its own and is kept, on its own line. */
.shop-pick-row input[type=checkbox] { margin: 0; }
.shop-pick-row[hidden] { display: none; }

/* Audit log (admin activity viewer, GET /audit) */
.audit-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.audit-filter label { display: flex; flex-direction: column; font-size: .82rem; gap: 4px; }
.audit-filter select, .audit-filter input { min-width: 160px; }
.audit-table code { font-size: .82rem; }
.audit-details .kv { display: inline-block; margin-right: 10px; white-space: nowrap; }
.audit-details .k { color: var(--muted); }
.audit-details .v { font-weight: 600; }
.role.acting-as { color: var(--accent); }
.audit-pager { display: flex; gap: 10px; margin-top: 12px; }


/* ==========================================================================
   «DRAWING-13 — THE LANDING PAGE» · THE LOOK
   "Read the reference, write our own." ⛔ "Do not copy their stylesheet."
   Georg: "Don't copy the page but only how it looks."

   ⚠ SCOPE: everything below is scoped to .doors / .door / .contact-copy — the
   surfaces Drawing 13 draws. It deliberately does NOT restyle the existing app
   (product tiles, cards, buttons keep --radius and their current treatment).
   The whole-app aesthetics pass is register item O1 and is UNRULED; widening
   this beyond the drawn page would be a builder taking that decision.

   ⛔ THE ACCENT IS THE TENANT'S OWN (--accent, set inline in <head> from
   db.getBranding — Drawing 09 T1). No colour is hard-coded here, and in
   particular the reference's own yellow accent — the hex Drawing 13 names and
   forbids — appears NOWHERE in this codebase: "That is InVue's brand, and
   copying it would put another company's colour on btec's front page."
   test/landing-page.test.js sweeps every src/ file for that literal, which is
   why it is not spelled out here.
   ========================================================================== */

/* The door grid. Four on a wide screen, one on a phone.

   «DRAWING-13 · R50 — THE LANDING PAGE IS THE LOGGED-IN PAGE WITH FEWER TILES»
   Georg: "the landing page should look identical to the logged in page. just
   that you are logged out and see only those two boxes you see now on the
   landing page."
   ⛔ RETRACTED — "A HALF-FILLED GRID, NOT A SMALLER GRID" WAS NEVER HIS.
   Georg, correcting us 2026-08-30: "possibly but i wrote something like: 'two
   boxes instead of four'. NOT SAME GRID, HALF FILLED." His words were only
   "showing either two boxes or four boxes depending if you're logged in or not"
   — nothing about preserving the grid's shape. The four-cell reservation was an
   interpretation that reached the build wearing his voice.
   ⇒ ROWS FOLLOW THE TILE COUNT. There is no `grid-template-rows` here, at any
   breakpoint, on purpose: two tiles make a TWO-TILE block, not two tiles beside
   two reserved empty cells. Only the COLUMNS are declared, and the implicit rows
   are however many the tiles need.

   ⭐ THE OTHER HALF OF R50 STANDS, AND IT IS THE REAL DEFECT — see the cell-height
   reservation below. It is independent of the row count: what made the public
   page read as "two SMALL cards" was every card losing a LINE, not the grid
   losing rows.
   ⇒ THE RULE, CORRECTED: rows follow the tile count. CELL HEIGHT DOES NOT.
   ⛔ AND NOTHING ELSE CHANGES. R50 says "look like OUR logged-in page"; it does
   NOT say "look like InVue", and only the first is ruled. The gap, the border,
   the radius, the padding, the type and the empty space above and below the
   tiles are all exactly as they were — that space is a separate question the
   product owner has not been asked.

   🔴 SUPERSEDED IN PART BY «DRAWING-13 · THE LOOK — THE SPEC (R55)», 2026-08-31.
   The paragraph above was right about its own ruling and wrong about the world:
   "look like InVue" was never an open question — btec's paying customer had
   already asked for it ("make it look like that InVue page"). R55 therefore
   supersedes FOUR of the declarations it pinned — the gap, the tile's border,
   the tile's radius and the title's size — plus the icon scale and the empty
   space ABOVE the tiles (which is now the hero band). Every one of them is
   re-pointed in place below, with the sentence of R55 that supersedes it.
   ⛔ WHAT R55 DOES NOT TOUCH, AND WHAT THEREFORE STANDS UNCHANGED: the padding,
   the tile's min-height, the line weight, the column counts, the single
   focus-ring box-shadow, the four icons, the two/four tile counts — and the
   THREE-LINE CELL RESERVATION, see the note on --door-lines-reserved above and
   on .door-lines below. R55 changes what SEPARATES the tiles and how big the
   icon and title are; it says nothing about how tall a cell is or which tiles
   are present, so the defect that reservation fixes is untouched by it.
   ⬜ And "below the tiles" is still genuinely unasked and still empty. */
.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 🔴 RE-POINTED BY «DRAWING-13 · THE LOOK — THE SPEC (R55)», not deleted.
     `gap: 12px` was pinned three times (R50, R51, R53) as "same gutters, same
     furniture". R55 supersedes that pin and only that pin: "tiles EDGE-TO-EDGE,
     divided by HAIRLINES — not boxed cards." A gutter is the thing that makes a
     tile read as a card floating on the page, so edge-to-edge is literally
     `gap: 0` and the only thing left between two tiles is a rule.
     ⛔ THE GUARD STILL EXISTS — test/landing-page.test.js asserts this value and
     its reason, exactly as it asserted 12px before. Re-pointed, never removed. */
  gap: 0;
  grid-template-columns: 1fr;
  /* «R50 · SAME CELL SIZE» — the other half of the same defect, and the one that
     makes the public page's cards visibly SMALLER. The tallest tile carries
     THREE of Georg's lines (Sopimustuotteet); the two public tiles carry two
     each. A grid row is as tall as its content, so dropping the three-line tile
     shrank every remaining card by a line. Reserving room for three lines in
     EVERY tile makes a tile the same height whether it prints one line, two or
     three — so the cell is the same size on both pages.
     ⚠ It is a RESERVATION, never a clamp: a tile whose text ever grew past three
     lines still grows. And it changes nothing on the signed-in page, where the
     three-line tile already set that height for the whole row. */
  --door-line-size: .92rem;
  --door-line-height: 1.35;
  --door-lines-reserved: 3;

  /* «DRAWING-13 · THE LOOK (R55)» — ONE VALUE EACH, the same idiom as
     --buyer-logo-flow, so the three things R55 changed can be moved without a
     hunt through rules:
       --door-hairline   the rule BETWEEN two tiles ("divided by hairlines")
       --door-icon-size  "icons ~4× ours" — ours were 28px, so 4× is 112px
       --door-name-size  "titles centred and LARGE" */
  --door-hairline: 1px solid var(--line);
  --door-icon-size: 112px;
  --door-name-size: 1.5rem;
  /* The band's own bottom edge. With the tiles' own top rules (below) the block
     reads as ONE hairline-divided surface with a top and a bottom, rather than
     as loose rows — which is what "edge-to-edge" looks like on their page.
     ⚠ Not a height and not a margin: the R50 guard on this rule still holds. */
  border-bottom: var(--door-hairline);
}
@media (min-width: 620px)  { .doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .doors { grid-template-columns: repeat(4, 1fr); } }
/* «DRAWING-16 ⑦» — two tiles: centred, side by side, kept together.
   ⚠ It reads the TILE COUNT, not the session: no rule here names signed-in or
   signed-out, so it is still one component («R53 §5b»). Two columns across half
   the width is the SAME cell width as one of the four, so the block moves and the
   tile does not resize. Delete this rule and the pair returns to the left. */
@media (min-width: 1000px) {
  .doors:has(> .door:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 50%;
    margin-inline: auto;
  }
}

/* «DRAWING-13 · THE LOOK» — FLAT CARDS, THIN BORDERS.
   ⚠ "corrects my readout — the 'soft shadows' were inferred from markup and are
   wrong. Shadows on FOCUS RINGS only." So: no box-shadow here, none on :hover,
   and no translate. The only shadow in this whole block is the focus ring. */
.door {
  background: var(--panel);
  /* 🔴 RE-POINTED BY «R55» — THE BOX IS GONE, AND WITH IT THE RADIUS. Both were
     pinned by R50/R51 as "the border, the radius ... exactly as they were";
     R55 supersedes exactly those two declarations: "tiles edge-to-edge, divided
     by hairlines RATHER THAN BOXED CARDS." An outline round each tile is what
     makes it a card; a single rule between tiles is what makes them a divided
     surface. So what is left is a DIVIDER, never an outline:
       · one rule ABOVE every tile — which draws the line between two rows and,
         on the first row, frames the top of the band;
       · from 620px up, one rule down the LEFT of every tile that is not first
         in its row — the line between two columns.
     Two tiles or four, at every breakpoint, the tiles touch and every meeting
     edge carries exactly one hairline (never two stacked).
     ⛔ RE-POINTED, NOT DELETED — the guard now asserts the hairlines. */
  border-top: var(--door-hairline);
}
/* The between-columns rule, per breakpoint, because "which tile starts a row"
   is a function of the column count and nothing else.
   2 columns: every 2nd tile starts the right-hand column.
   4 columns: at most four tiles, so one row — every tile after the first.
   (Both selectors match at the widest breakpoint and agree; the union is tiles
   2·3·4, which is exactly "not first in its row".) */
@media (min-width: 620px)  { .door:nth-child(2n) { border-left: var(--door-hairline); } }
@media (min-width: 1000px) { .door + .door       { border-left: var(--door-hairline); } }
.door > a {
  display: flex;
  flex-direction: column;
  /* «R55» — "icons ~4× ours, CENTRED" and "titles CENTRED, large". One pair of
     declarations centres the icon, the title and Georg's lines together, so
     there is no per-element alignment to drift. */
  align-items: center;
  text-align: center;
  gap: 10px;
  /* ⭐ PIN STANDS — R55 says nothing about a tile's inner padding, and
     "edge-to-edge" is about the space BETWEEN tiles, not inside one. */
  padding: 20px 18px 22px;
  color: var(--ink);
  text-decoration: none;
  min-height: 150px;
}
.door > a:hover { text-decoration: none; }
/* 🔴 RE-POINTED BY «R55» — hover used to light the CARD'S border. There is no
   card and no border to light, and lighting a hairline would move a rule that
   belongs to two tiles at once (the tile below would appear to change too). So
   the hover lands on the tile's own title: «R55 · accent used SPARINGLY, on
   white» — one word of accent, on the thing you are about to click.
   ⛔ Still flat: no lift, no fill, no shadow. That half of the pin is unchanged. */
.door:hover .door-name { color: var(--accent); }

/* «DRAWING-13 · THE LOOK» — "shadows on focus rings only". This is that one
   place, and it is on the focusable element so a keyboard user can see it. */
.door > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-flat);
}

/* «DRAWING-13 · THE LOOK» — "one SVG icon per tile". Inherits the accent.
   🔴 RE-POINTED BY «R55» — "icons ~4× ours, centred". Ours were 28px; 4× is the
   112px held in --door-icon-size above, so the scale is ONE value.
   ⭐ THE SVG MARKUP IS UNTOUCHED. A viewBox scales, so growing the icon costs no
   glyph work at all: they are the same four shapes, four times the size. */
.door-icon { display: block; color: var(--accent); }
.door-icon svg { width: var(--door-icon-size); height: var(--door-icon-size); display: block; }

.door-name {
  font-family: var(--font-head);
  font-weight: 500;              /* IBM Plex Sans Medium */
  /* 🔴 RE-POINTED BY «R55» — "titles centred and LARGE". 1.05rem was pinned by
     R50/R51 as untouched furniture; R55 supersedes that one declaration. The
     centring is not here — it is the one `text-align` on .door > a, so the icon
     and the title cannot be centred differently from each other. */
  font-size: var(--door-name-size);
  color: var(--heading);
  letter-spacing: -.005em;
}

/* ⛔ «DRAWING-13 · THE TILES» — GEORG'S LINE BREAKS, AS GIVEN.
   Each of his lines is its own key printed into its own .door-line element, so
   the break is MARKUP. `display: block` is what makes each one occupy its own
   line; nothing here may become `inline` or the breaks would collapse and his
   text would silently reflow — which is the same defect as editing it. */
/* «DRAWING-13 · R50 · SAME CELL SIZE» — the reservation declared on .doors above,
   applied. The height is derived from the very values the lines are drawn with, so
   the two can never drift apart.

   ⭐ DOES IT STILL APPLY UNDER R55's HAIRLINE ROWS? YES — ANSWERED FROM THE
   DRAWING, NOT FROM TASTE, AND THE PIN STANDS.
   The defect it fixes is «DRAWING-13 · ⚠ THE DEFECT IS THE LAYOUT DEPENDING ON
   THE TILE COUNT»: a grid row is as tall as its content, the three-line tile
   (Sopimustuotteet) is the tallest, and it is one of the two tiles that are
   ABSENT when signed out — so without a reservation every remaining tile loses
   a line of height and the public page reads as "two SMALL cards". That
   mechanism has three parts: content-driven row height, a three-line tile, and
   that tile being absent signed out.
   R55 changes NONE OF THEM. Its spec table changes the hero, what SEPARATES the
   tiles, the icon scale, the title size, the type, the surfaces, the radii and
   how much accent is used. It does not mention cell height; and its own fence —
   "their BREADTH does not follow ... the dropdown still holds exactly four" —
   keeps the tile count at two-or-four, which is the very thing that makes the
   three-line tile disappear.
   ⚠ AND R55 MAKES IT MORE VISIBLE, NOT LESS. With gutters, a short tile floated
   in its own box and the shortfall showed as a smaller card. With hairlines the
   tiles share edges, so an unreserved shortfall would show as the whole band
   changing height between the signed-out and signed-in page — a bigger version
   of the same defect. ⛔ Deleting this to make a suite green would re-open R50. */
.door-lines {
  display: block;
  min-height: calc(var(--door-lines-reserved) * var(--door-line-size) * var(--door-line-height));
}
.door-line {
  display: block;
  font-weight: 300;              /* IBM Plex Sans Light */
  color: var(--muted);
  font-size: var(--door-line-size);
  line-height: var(--door-line-height);
}

/* ═══════════════════════════════════════════════════════════════════════════
   «DRAWING-13 · R54 — THE IMAGE PAIR» + «DRAWING-13 · THE LOOK — THE SPEC (R55)»
   THE HERO BAND, and its POSITION DIAL.

   «R55»: "a full-width hero photo anchoring the top, with the name and one line
   of copy over it." «R54 · WHERE IT SITS — THE HERO BAND. No longer
   provisional»: "Place it provisionally above the tiles, full width, and put the
   placement in ONE CSS value — exactly as --buyer-logo-flow already does for the
   buyer logo. Then the placement is not a decision, it is a default he can move
   on sight." Georg: "i haven't seen it how it looks like so be ready to move it
   to a random direction.."

   ⭐ THIS IS THE ONE PLACE THE HERO MOVES FROM:
     --hero-order    -1  the hero is ABOVE the tiles   ← today
                      1  the hero is BELOW the tiles
     --hero-height   the depth of the band
     --hero-focus    which part of the photo survives the crop (object-position)

   🔴 NOTHING HERE DEPENDS ON THE TWO PLACEHOLDER FILES. «R54»: "MEANWHILE means
   these are PLACEHOLDERS ... nothing may assume these particular files." So:
     · the band's height is declared HERE, never taken from the image, so the
       page does not reflow when a differently-proportioned photo replaces one;
     · object-fit: cover + object-position make ANY aspect ratio fill the band —
       a tall portrait, a wide panorama or a square all crop rather than
       distort or letterbox, and --hero-focus re-frames a crop in one value;
     · no width/height attribute, no aspect-ratio, no srcset and no <picture>
       type= anywhere — so a .png and a .jpg are the same thing to this page,
       which they must be, because today one of them is each;
     · the copy sits on a SCRIM, not on the photograph, so a bright new picture
       cannot make the name unreadable — the legibility is the band's property,
       not the file's.
   ⇒ replacing a picture stays a PUT to the Bunny zone: no code change, no ship.

   ⛔ THE ACCENT IS THE TENANT'S. Not one colour below is a literal: the scrim is
   mixed from --heading and the name is --accent-ink, both existing tokens. The
   reference's own yellow is not here and is not anywhere («R55 · THE ACCENT IS
   STILL OURS» — "the transferable measurement is 'sparingly', which is about HOW
   MUCH accent, not WHICH").

   ⚠ "FULL WIDTH" IS THE PAGE COLUMN'S FULL WIDTH, edge to edge, achieved by
   cancelling .container's own 16px padding. Deliberately NOT a 100vw bleed: on a
   window with a visible scrollbar 100vw is WIDER than the layout viewport and
   costs a horizontal scrollbar, and the only clean fixes (overflow-x on html or
   body) reach outside this drawing's scope — «DRAWING-13 · THE LOOK» is scoped
   to the page it draws and "deliberately does NOT restyle the existing app".
   Below ~1130px the container IS the window, so there the band is edge to edge
   of the screen. Widening it further is one declaration, here, if he asks.
   ═══════════════════════════════════════════════════════════════════════════ */
.landing {
  --hero-order: -1;
  --hero-height: clamp(200px, 34vh, 400px);
  --hero-focus: 50% 50%;
  /* «DRAWING-16 ⑦» — the space above the picture, matching the space below it.
     One value, like the three above. Set it to 0 and the band is flush again. */
  --hero-gap: 24px;

  display: flex;
  flex-direction: column;
}
.landing-hero {
  order: var(--hero-order);
  position: relative;
  /* Cancel the container's 16px side padding so the band runs edge to edge.
     The top and the bottom are the same dial, --hero-gap; the `- 16px` is the
     container's own top padding, cancelled before the gap is added. */
  margin: calc(var(--hero-gap) - 16px) -16px var(--hero-gap);
  height: var(--hero-height);
  overflow: hidden;
  /* ⚠ THE FAILURE CASE IS A DESIGNED ONE. «R54 · HOSTING»: "the page stays usable
     if an image fails to load — the tiles are the page; the image sits above
     them." If the CDN is unreachable the band is this flat panel with the name
     still legible on it, and the tiles below are untouched. */
  background: var(--panel-2);
}
.landing-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  /* ⭐ THE WHOLE ANSWER TO "A SWAPPED FILE OF DIFFERENT PROPORTIONS": the image
     is told to fill a band whose size it does not get to choose. */
  object-fit: cover;
  object-position: var(--hero-focus);
}
.landing-hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 16px;
  color: var(--accent-ink);
  /* The scrim. Mixed from an existing token so no colour is written here, and it
     is what makes the copy legible over a photograph nobody has seen yet.
     ⛔ Not a shadow — «R55 · surfaces» "flat; shadows on focus rings only", and
     the focus ring above is still the only box-shadow on this page. */
  background: linear-gradient(to top,
    color-mix(in srgb, var(--heading) 78%, transparent),
    color-mix(in srgb, var(--heading) 40%, transparent) 55%,
    transparent);
}
/* 🇫🇮 ⛔ THE NAME IS THE TENANT'S BRAND RECORD, NOT A STRING ANYONE WROTE HERE —
   the same two words the banner's wordmark renders, from db.getBranding() (T1,
   Drawing 09), in the same two-span shape so there is one wordmark structure and
   not a second one that can drift when the brand words change.
   🔴 RE-POINTED BY «DRAWING-16 ⑦»: both halves used to inherit the band's ink.
   He asked for the banner's black/orange colouring here too, and the mark is OUR
   overlay (the same two spans, in landing.ejs) — so it is these two declarations,
   from the same two tokens the banner brandmark reads, and not a new photograph.
   Delete them and both halves inherit the band's ink again. */
.landing-hero-name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.landing-hero-name .bm-1 { color: var(--ink); }
.landing-hero-name .bm-2 { color: var(--accent); }
.landing-hero-line {
  margin: 6px 0 0;
  font-weight: 300;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  line-height: 1.35;
}

/* «DRAWING-13 · OTA YHTEYTTÄ (R38)» — Georg's copy block, VERBATIM.
   `pre-line` is load-bearing, not decoration: it is what carries the break
   inside his first sentence and the blank lines between the address parts to
   the screen. Without it the browser collapses them and reflows his text. */
.contact-copy {
  white-space: pre-line;
  margin: 0;
  line-height: 1.55;
}
.contact-card { border-radius: var(--radius-flat-lg); }

/* «DRAWING-15 · TILINAVAUSKAAVAKE (R58/R59)» — the account-opening form.
   ⛔ ADDITIVE ONLY, and scoped to this form's own classes: nothing here changes
   an existing selector, so `.topbar { flex-wrap: wrap }`, `.contact-copy`'s
   `pre-line` and every other pinned rule above are untouched.
   ⚠ The red checksum warning deliberately gets NO rule of its own — it renders in
   the site's existing `.alert.error`, so "red text" (R59) is the red this site
   already uses and this change adds no colour decision. */
#account-request-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}
#account-request-form legend { color: var(--muted); font-size: .9rem; padding: 0 6px; }
#account-request-form .small-btn { margin: 4px 0 12px; }

/* 🔴🔴 «DRAWING-54 · RULING 1» — THE SETTINGS SUB-TABS. ⛔ APPEARANCE ONLY.
   ⛔⛔ THERE IS DELIBERATELY NO RULE IN THIS SHEET THAT HIDES `.settings-panel`, AND
   ADDING ONE WOULD BREAK THE DRAWING'S NO-JAVASCRIPT CLAUSE. The panels are hidden by
   the `hidden` PROPERTY, set at runtime by src/public/settings-tabs.js and by nothing
   else — so a stylesheet that loads without its script leaves every section on screen
   and saveable. A `display:none` here would hide eight of the nine sections from a
   no-JS admin AND LOOK LIKE IT WORKED, which is exactly the failure «PROOF 5» exists
   to catch. (`hidden` keeps the browser's own display:none; no rule below sets
   `display` on a panel, so nothing overrides it.)
   ⛔ ADDITIVE AND SCOPED to two new class names: no selector above is touched. */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.settings-tab {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: .9rem;
}
.settings-tab:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
/* The selected state only means anything once the script is driving the strip — until
   then every panel is on screen and no tab is "the" one. */
.settings-tabs[data-tabs-ready] .settings-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* «DRAWING-55 · BLOCK BEGIN» ---------------------------------------------------------
   🔴🔴 «DRAWING-55 · SETTINGS-03-ROWS» — THE PRICE LISTS READ AS ONE LINE PER ROW.
   Georg, verbatim: "there are two lines per group (and individual customers alike). a dot
   and the tickbox are on the upper line and then the customer name on the second. it is
   visually impairing for a human to read. can they show on a single line or have some kind
   of a separator between the groups/customers. a box drawn around or a continuous line or
   something?"

   «DRAWING-55 · RULING 1» — ⛔ `.inline` ABOVE IS NOT TOUCHED. It is used in SIX templates,
   and the comment beside `.field-grid` names why the wrap matters: Matti's attribute search
   is ~49 boxes and "one per line is a page nobody scrolls to the bottom of". A build that
   simply deleted `flex-wrap: wrap` from `.inline` would fix this screen and break that one,
   in another feature, in another file. So the wrap is stopped by a SCOPED OVERRIDE rooted at
   the two price-list classes and by nothing else — every selector below begins with
   `.price-group-list` or `.price-override-list`.

   «DRAWING-55 · RULING 2» — ⛔ BOTH, NOT EITHER. One line alone is still a wall of text at
   eighteen groups; a separator alone draws a line through the middle of a wrapped row. The
   `nowrap` half and the `border-bottom` half are one change.

   «DRAWING-55 · RULING 3» — ⭐ WHEN A ROW IS TOO LONG THE **META** YIELDS, ⛔ NEVER THE NAME.
   «DRAWING-47» keys the tick on the group id and RENDERS THE NAME, so the name is the only
   handle a human has: it gets `flex: 0 0 auto` — it never shrinks, never wraps and carries no
   `text-overflow`, so it can never be clipped. The `· id · n customers · state` meta is the
   one thing allowed to shrink and ellipsise.

   «DRAWING-55 · RULING 4» — ⛔ NOTHING HERE MAY REACH THE «DRAWING-54» TAB PANELS. No
   selector below mentions, or can match, `.settings-panel`; no `display`, `visibility` or
   `height` is set on anything outside the two lists.
   ✅ «R6» — this block adds NO word to any screen, and NO box here gains a caption.
   ⛔ APPEARANCE ONLY, AND ADDITIVE: no selector above this line is edited. */

/* The container. The "dot" Georg names is the browser's own `<li>` marker — `.plain` has
   never carried a rule — and it sits outside the row it belongs to. */
.price-group-list,
.price-override-list { list-style: none; margin: 6px 0 0; padding: 0; }

/* «RULING 2 · THE SEPARATOR» — "a continuous line". A rule BETWEEN rows, so the last row
   does not draw one into the white space under the list. */
.price-group-list > li,
.price-override-list > li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.price-group-list > li:last-child,
.price-override-list > li:last-child { border-bottom: 0; }

/* «RULING 1 · THE SCOPED OVERRIDE» — the group row IS a `.inline` label (tick · name ·
   meta); the customer row is the `<li>` itself (name · meta · YES label · NO label). Both
   become ONE flex line here and nowhere else. */
.price-group-list > li > .inline { flex-wrap: nowrap; align-items: baseline; }
.price-override-list > li { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 12px; }
.price-override-list > li > .inline { flex: 0 0 auto; flex-wrap: nowrap; align-items: baseline; white-space: nowrap; }

/* «DRAWING-57 · RULING 3» — «55»'s `.price-group-list input[type=checkbox] { flex: 0 0
   auto }` STOOD HERE AND IS GONE. ⛔ MEASURED INEFFECTIVE: `flex: 0 0 auto` sets
   `flex-basis: auto`, which defers to `width` — and `width` was `100%`. It read as a fix,
   it passed review, and the tick was still 983px wide. A fix that looks right and changes
   nothing is worse than no fix: it would have been cited as evidence this list was handled.
   The tick is now intrinsically sized by the root rule at the top of this sheet. */

/* «RULING 3 · THE NAME NEVER YIELDS» — no shrink, no wrap, and deliberately no
   `overflow`/`text-overflow`, so there is no mechanism here that could clip it. */
.price-group-list .name,
.price-override-list > li > .name { flex: 0 0 auto; white-space: nowrap; }

/* «RULING 3 · THE META IS WHAT YIELDS» — it shrinks first and ellipsises. */
.price-group-list .muted,
.price-override-list > li > .muted {
  flex: 0 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* «DRAWING-55 · BLOCK END» ----------------------------------------------------------- */

/* 🔴 «104» — ⛔ DELIBERATELY **BELOW** «55»'s BLOCK END, same reason «86»'s rule two
   blocks down is: «55 · CLAUSE 4a» hashes everything BEFORE «55»'s own BEGIN marker
   byte-for-byte, and this rule is a different drawing's addition, not part of that
   fence. It first landed above, inside the pinned prefix, and reddened CLAUSE 4a —
   moved here instead of re-pinning the hash.
   «104 · look» — a thumbnail is a <button> now (keyboard-reachable), reset so it still
   looks exactly like the bare <img> it wraps: no UA border/padding/background,
   `display: flex` so the img is the button's only flex item (no inline baseline gap,
   so its box stays the img's own 72x72 — «104 · PROOF 2»), and a visible focus ring
   kept for the keyboard. */
.angles button.angle {
  display: flex; margin: 0; padding: 0; border: none; background: none; cursor: pointer;
}
.angles button.angle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 🔴 «DRAWING-86» — ⛔ DELIBERATELY **BELOW** «55»'s BLOCK END. «55 · CLAUSE 4b» parses
   that block and requires every rule in it to match ONLY inside a price list; this rule
   is a DIFFERENT drawing's scoped override for a DIFFERENT list, and leaving it inside
   «55»'s fence would have attributed it to «55» and made that clause's message a lie.
   ⚠ MEASURED: it did, until this was moved.
   «DRAWING-86» — THE GROUP ROW NOW CARRIES **TWO** TICKS (listing · Katalogi) AND THE
   NAME, so it gets the SAME scoped override its price-list twin has had since «55»: ONE
   flex line, baseline-aligned, and the tick label does not grow. ⛔ Without it the two
   labels and the name wrap on a narrow screen — "a dot and the tickbox are on the upper
   line and then the customer name on the second. it is visually impairing for a human to
   read." ⚠ SCOPED, exactly as its neighbours are: `.inline` is used in six templates and
   «RULING 1» forbids touching the root rule. */
.group-tick-list > li > .inline { flex-wrap: nowrap; align-items: baseline; }
.group-tick-list > li > .inline > .tick { flex: 0 0 auto; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }

/* 🔴 «101» T3/T1 — THE KARMA BOX GETS THE SAME `.tick` SCOPED SIZING ONE RULE UP (it carries
   both classes, `class="tick karma"`), PLUS ITS OWN EXPLICIT WIDTH. ⛔ Reusing `.tick` alone
   is not enough for a TEXT box the way it is for a checkbox: the root rule two screens up
   (`input:not([type=checkbox]):not([type=radio]) { width: 100% }`) still targets a text
   input, and `.tick`'s own `flex: 0 0 auto` only sizes the LABEL, not the input inside it —
   an intrinsic-sized flex container around a 100%-wide child is «57»'s 983px checkbox
   defect wearing a text box. An explicit width is what actually stops it, measured.
   ⛔ `input[type=text]`, NOT bare `input` («DRAWING-57 · RULING 1»'s own shape): this selector
   must never be able to size a checkbox or a radio, so the TYPE is in the selector rather than
   relied on by convention. */
.group-tick-list > li > .inline > .tick.karma input[type=text] { width: 4.5em; flex: none; }

/* «DRAWING-90 · PIC-01-GROUPTILE» — the group picture layers OVER the EI KUVAA placeholder,
   which stays in the markup. `onerror="this.remove()"` then reveals it again when the CDN
   has no object for that group — measured in headless Chrome; without it the tile shows a
   broken-image icon. `object-fit: contain` because the nine pictures are not one shape. */
.group-tile .photo { position: relative; }
.group-tile .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* «112 · C1» — the hero's link to the full picture. No new visual chrome: the <img>
   inside already carries `.hero img`'s own sizing (styles.css:342) and this adds
   none, just the click affordance. */
.hero-link { display: block; cursor: zoom-in; }

/* «112 · C2/C3/C3b» — the full-screen zoomable dialog. `max-width`/`max-height:
   100%` on the picture (with NO explicit width/height) is what "opens FITTED"
   actually is: a picture bigger than the dialog shrinks to fit it; a picture
   smaller than the dialog renders at its own natural size and is never stretched
   up — the `scale()` transform below only ever ADDS zoom on top of that baseline. */
dialog.lightbox {
  border: none; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; background: rgba(10, 10, 10, 0.92);
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog.lightbox .lightbox-img {
  position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%;
  touch-action: none; /* «112 · C3b» — pinch zooms the PICTURE only, never the page */
  transform-origin: center center; cursor: grab;
}
dialog.lightbox button {
  position: absolute; border: none; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 999px;
  width: 44px; height: 44px;
}
dialog.lightbox .lightbox-close { top: 12px; right: 12px; }
dialog.lightbox .lightbox-prev { top: 50%; left: 12px; transform: translateY(-50%); }
dialog.lightbox .lightbox-next { top: 50%; right: 12px; transform: translateY(-50%); }
dialog.lightbox .lightbox-zoom {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
dialog.lightbox .lightbox-zoom button { position: static; }

/* «112 · C3b» — while the dialog is open the page behind never scrolls. */
body.lightbox-open { overflow: hidden; }
