/* Arrow Wood palette - sampled from the brand site header: teal #4c706e,
   sand #c6af9a, warm off-white #f7f4f2, white type on teal. */
:root {
  --brand-teal: #4c706e; --brand-teal-dark: #3d5b59; --brand-teal-light: #e6eeed;
  --brand-sand: #c6af9a; --brand-sand-dark: #7a5f44; --brand-sand-light: #f0e8df;
  --bg: #f7f4f2; --panel: #fff; --ink: #1f2b2a; --muted: #6b7775;
  --line: #e3dfda; --accent: var(--brand-teal); --accent-ink: #fff;
  --danger: #b42318; --danger-bg: #fdf1ef; --ok: #2f7a4f;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
code, .sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px; background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar .who { color: var(--muted); font-size: 13px; }
.topbar a { color: var(--accent); text-decoration: none; font-size: 14px; }

.container { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }
h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 16px; margin: 6px 0 2px; }
h3 { font-size: 14px; margin: 0 0 12px; text-transform: uppercase;
     letter-spacing: 0.06em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.crumb { margin: 0 0 12px; } .crumb a { color: var(--accent); text-decoration: none; }
.error { color: var(--danger); }

.card { background: var(--panel); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 20px; }
/* sign-in: the block sits at the vertical centre of the VIEWPORT - the main
   area starts below the 56px topbar, so the same 56px of bottom padding puts
   its centre at 50vh. Auto margins, not justify-content: on a short viewport
   the block overflows downwards and scrolls instead of clipping its top. */
main.container:has(> .auth-wrap) { min-height: calc(100vh - 56px); display: flex; flex-direction: column; padding-top: 0; padding-bottom: 56px; }
.auth-wrap { max-width: 380px; width: 100%; margin: auto; }
.auth { margin: 0; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 22px; background: var(--brand-teal); border-radius: var(--radius); padding: 22px 28px; margin-bottom: 14px; }
.auth-logo img { display: block; height: 46px; width: auto; max-width: 100%; }
/* the tenant beside the mark, behind a light rule: sand, letters bold, digits regular */
.auth-logo__tenant { display: flex; align-items: center; color: var(--brand-sand); font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; max-width: 190px; }
/* the rule trails the tenant; its spacing belongs to it alone, so "GW" and "24" stay one word */
.auth-logo__tenant::after { content: ""; flex: none; width: 1px; height: 44px; margin-left: 22px; background: rgba(255,255,255,.32); }
.auth-logo__num { font-weight: 400; }
.auth h1 { margin-bottom: 16px; }
.auth label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.auth input { display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
              border: 1px solid var(--line); border-radius: 7px; font-size: 15px; color: var(--ink); }

.price { font-weight: 600; margin: 8px 0 0; }
.price.big { font-size: 19px; }
.cta { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; }

/* Product page: options left, the panel on the right, standing off the page
   on the light brand teal. Sticky, so it rides along past long option lists
   and the components table. */
.cfg { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; margin-top: 18px; }   /* the panel widened from 340 (2026-09-13): add-on rows and long accessory names need the room */
.cfg > .config-panel { position: sticky; top: 20px;
  background: var(--brand-teal-light); border-color: #c9d9d7; }
@media (max-width: 820px) { .cfg { grid-template-columns: 1fr; } .cfg > .config-panel { position: static; } }
.cfg-options { display: grid; gap: 14px; }

.cfg-summary { background: var(--panel); border: 1px solid var(--line);
               border-radius: var(--radius); padding: 18px; position: sticky; top: 20px; }
.cfg-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; }
.cfg-summary dt { color: var(--muted); font-size: 13px; }
.cfg-summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.violations { background: var(--danger-bg); border: 1px solid #fecdca;
              border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.violations ul { margin: 6px 0 0; padding-left: 18px; }

button.primary { width: 100%; padding: 10px 14px; border: 0; border-radius: 8px;
                 background: var(--accent); color: var(--accent-ink);
                 font-size: 15px; font-weight: 550; cursor: pointer; }
button.primary:disabled { background: #c7ccd4; cursor: not-allowed; }

/* htmx request indicator: visible only while a re-price is in flight. */
.busy { opacity: 0; font-weight: 400; text-transform: none; letter-spacing: 0;
        color: var(--accent); transition: opacity .12s; }
.htmx-request .busy, .htmx-request.busy { opacity: 1; }

/* ---- specification display ---------------------------------------------- */
.cap { text-transform: capitalize; }
.notice { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
          border-radius: var(--radius); padding: 12px 16px; margin: 16px 0 0; color: var(--muted); }

/* Both tracks need minmax(0,...) or a long value ("External Octa M (galima
   upgrade į Octa L)") expands the auto track and collapses the label to zero
   width. Card specs stay one line each; the product page shows them in full. */
.spec-mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
             gap: 3px 10px; margin: 10px 0 0;
             font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 9px; }
.spec-mini dt, .spec-mini dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-mini dt { color: var(--muted); }
.spec-mini dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
             margin-top: 12px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 999px;
         background: #eef4ff; color: #2c4d9c; border: 1px solid #d6e2fb; }

.specs { margin-top: 28px; }
.specs h2 { font-size: 18px; margin: 0 0 2px; }
.spec-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
              padding: 14px 18px; margin-top: 12px; }
.spec-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
                 color: var(--muted); margin: 0 0 10px; }
.spec-list { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 6px 20px; margin: 0; }
@media (max-width: 640px) { .spec-list { grid-template-columns: 1fr; gap: 2px 0; } }
.spec-list dt { color: var(--muted); font-size: 13.5px; }
.spec-list dd { margin: 0; font-size: 14px; }
.spec-list dd.spec-lines { display: flex; flex-direction: column; gap: 4px; }
/* A bullet with a hanging indent: a part that wraps lines up under its own
   text, not under the dot, so two parts never read as one. */
.spec-line { display: block; position: relative; padding-left: 14px; line-height: 1.35; }
.spec-line::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--brand-teal); }
.rawnote { color: var(--muted); font-size: 12px; margin-left: 8px; }

.tone-yes { color: var(--ok); font-weight: 550; }
.tone-no { color: var(--muted); }
.tone-optional { color: #8a5a00; font-weight: 550; }
.tone-value { color: var(--ink); }

/* ---- orders ------------------------------------------------------------- */
.topbar nav a { color: var(--accent); text-decoration: none; font-size: 14px; }
.flash { background: #eef3ff; border: 1px solid #c9d8fb; color: #1f3f8f; border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }
.order-cta { display: grid; gap: 6px; }
.order-cta .added { color: var(--ok); font-weight: 600; }
.order-cta .added a { color: var(--accent); margin-left: 4px; }
.linkish { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; font-size: 13px; }
.linkish.danger { color: var(--danger); }
.order-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.order-table th, .order-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.order-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f9fafb; }
.order-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-table tfoot td { border-bottom: none; }
.order-table .opt { display: inline-block; margin-right: 10px; }
.qty-form { display: inline-flex; gap: 6px; align-items: center; }
.qty-form input { width: 64px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; text-align: right; }
.submit-form { margin-top: 18px; max-width: 560px; display: grid; gap: 12px; }
.submit-form h2 { margin: 0; font-size: 16px; }
.submit-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.submit-form input, .submit-form textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; color: var(--ink); }
.status { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: #f3f4f6; text-transform: capitalize; }
.status-submitted { background: #eef3ff; border-color: #c9d8fb; color: #1f3f8f; }
.status-confirmed, .status-in_production { background: #fff7e0; border-color: #f1dc9a; color: #7a5a00; }
.status-shipped { background: #e7f6ec; border-color: #bfe3cb; color: var(--ok); }
.status-cancelled { background: var(--danger-bg); border-color: #fecdca; color: var(--danger); }

/* ---- catalogue card, design 1f (design/product-card-1f.html) --------------- */
:root {
  --c-text: #1f2b2a; --c-text-muted: #6b7775; --c-text-faint: #9aa4a2; --c-text-disabled: #c3c9c7;
  --c-border: #e3dfda; --c-border-input: #d3cdc6; --c-border-subtle: #ebe7e2;
  --c-surface: #fff; --c-surface-subtle: #f6f3ef;
  --c-primary: var(--brand-teal); --c-primary-bg: var(--brand-teal-light); --c-disabled-bg: #e6e2dd;
  --r-card: 10px; --r-panel: 8px; --r-input: 6px;
}
/* Type filter pills above the catalogue: plain links carrying ?type=,
   so the filter is server-side, deep-linkable and needs no script. */
/* catalogue search: server-side ?q=, results swapped by htmx */
.catalog-search { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.catalog-search input[type="search"] { flex: 1 1 260px; }
.catalog-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--c-text); cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap; }
.catalog-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-teal); cursor: pointer; }
.catalog-search input[type="search"] { width: 100%; max-width: 430px; padding: 10px 16px; font-size: 14px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.catalog-search input:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 2px var(--brand-teal-light); }
#catalog-results { transition: opacity .12s; }
#catalog-results.htmx-request { opacity: .55; }
.catalog-count { margin: 14px 0 -6px; font-size: 13px; color: var(--muted); }
.catalog-count a { color: var(--accent); }

.type-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; user-select: none; -webkit-user-select: none; }
.pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); font-size: 13px; font-weight: 600; color: var(--c-text); text-decoration: none; }
.pill:hover { background: var(--c-surface-subtle); }
.pill.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pill__count { font-size: 11px; font-weight: 500; color: var(--c-text-faint); }
.pill.is-active .pill__count { color: rgba(255, 255, 255, .75); }

.catalog-list { display: grid; gap: 16px; margin-top: 18px; }
/* The card is a flex row so the cover thumb (rendered outside .card-body,
   the htmx swap target) sits beside the form; a card without a cover simply
   has one flex child and looks as before. */
.product-card { display: flex; gap: 20px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 24px 28px; }
.product-card .card-body { flex: 1; min-width: 0; }
.card-thumb { flex: none; width: 64px; height: 64px; border: 1px solid var(--c-border); border-radius: var(--r-panel); overflow: hidden; background: var(--c-surface-subtle); cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-thumb:hover { border-color: var(--c-text); }
.product-card__form { display: flex; gap: 32px; }
.product-card__main { flex: 1; min-width: 0; }
.product-card__aside { width: 320px; flex: none; display: flex; flex-direction: column; gap: 12px; }
/* Plain variant: a product without option groups is one row - name left,
   price / quantity / CTA right - no panel, no filler. */
.product-card__form--plain { align-items: center; gap: 24px; }
/* The same surface as the product page's panel: light brand teal, so the
   buy area reads as one thing across the catalogue and the product page.
   FIXED grid columns (total | stepper | CTA), so every card's box has the
   same width and the three controls align vertically down the page -
   priced or not (the empty total column keeps its space). */
.product-card__buy { display: grid; grid-template-columns: 118px auto 160px; align-items: center; gap: 14px; flex: none;
  background: var(--brand-teal-light); border: 1px solid #c9d9d7;
  border-radius: var(--r-panel); padding: 10px 14px; }
.product-card__buy-total { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.product-card__buy .price { margin: 0; white-space: nowrap; }
.product-card__buy-each { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; }
.product-card__buy .config-panel__cta { margin-top: 0; width: 100%; min-width: 0; padding: 10px 0; white-space: nowrap; }
/* While a re-price (or the add itself) is in flight, the CTA is the
   indicator: its label gives way to "updating…" - no dedicated element.
   font-size 0 hides the text node; the ::after carries the message. */
.product-card__buy .order-cta.htmx-request .config-panel__cta,
.product-card__buy .config-panel__cta.htmx-request { font-size: 0; }
.product-card__buy .order-cta.htmx-request .config-panel__cta::after,
.product-card__buy .config-panel__cta.htmx-request::after { content: "updating…"; font-size: 13px; font-weight: 400; }
/* The config panel (product page + configurable card) uses the same trick -
   its .order-cta wrapper is the form's hx-indicator target. */
.config-panel .order-cta.htmx-request .config-panel__cta,
.config-panel .config-panel__cta.htmx-request { font-size: 0; }
.config-panel .order-cta.htmx-request .config-panel__cta::after,
.config-panel .config-panel__cta.htmx-request::after { content: "updating…"; font-size: 13px; font-weight: 400; }
.product-card__buy .order-cta { display: block; }
.product-card__buy .added { white-space: nowrap; }

.product-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product-header__name, .configure-title { font-size: 20px; font-weight: 600; letter-spacing: .01em; color: #111827; text-decoration: none; }
.configure-title { margin: 0 0 4px; }
.configure-title .sku { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; margin-left: 6px; }
.product-header__name:hover { color: var(--c-primary); }
.product-header__sku { font: 500 11px ui-monospace, Menlo, monospace; letter-spacing: .06em; color: var(--c-text-faint); }
.badge--configurable { font-size: 11px; font-weight: 600; color: var(--brand-sand-dark); background: var(--brand-sand-light); border-radius: 999px; padding: 3px 10px; }

.option-group__label { margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--c-text); }
.option-group__step { color: var(--c-text-faint); font-weight: 700; }
.option-group__optional { font-weight: 500; color: var(--c-text-faint); }
.option-group__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }   /* full width of the main column */
.option-group__numeric { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.option-group__numeric input { width: 120px; font-size: 13px; color: var(--c-text); border: 1px solid var(--c-border-input); border-radius: var(--r-input); padding: 7px 10px; }
.option-group__range { font-size: 12px; color: var(--c-text-faint); }
.option-group__error { margin: 6px 0 0; font-size: 12px; color: var(--danger); }
.option-group.has-error .option-group__numeric input { border-color: var(--danger); }

/* A step with a "none" option: that tile spans the row, a dashed line under
   it, the rest laid out as usual - the 2-up grid (client, 2026-09-18: the
   stove step's two models). Only a LONG list of short labels (--dense, more
   than 8 other options: gw24's 18 filter clock positions) packs 4-up. */
.option-group__tiles--split .option-tile--none { grid-column: 1 / -1; margin-bottom: 10px; }   /* plain weight, like every other tile (client, 2026-09-18) */
.option-group__tiles--split .option-tile--none::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; border-bottom: 1px dashed var(--c-border-input); }
.option-group__tiles--dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option-group__tiles--dense .option-tile { padding: 8px 10px; font-size: 13px; }
.option-group__tiles--dense .option-tile--none { padding: 10px 12px; font-size: 14px; }
@media (max-width: 640px) { .option-group__tiles--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option-tile { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--c-border-input); border-radius: var(--r-panel); padding: 10px 12px; cursor: pointer; background: var(--c-surface); user-select: none; -webkit-user-select: none; }
/* Hover must read against the page: the subtle surface (#f6f3ef) was three
   tones off the page ground (#f7f4f2) and the tile seemed to vanish. The teal
   tint + border says "this one" without pretending to be selected (selected
   keeps its 1px ring; hovering a selected tile only tints). */
.option-tile:hover:not(.is-disabled) { background: var(--brand-teal-light); border-color: var(--brand-teal); }
.option-tile input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.option-tile.is-selected, .option-tile:has(input:checked) { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.option-tile.is-disabled { opacity: .5; cursor: not-allowed; }
.option-tile__name { font-size: 13px; color: var(--c-text); }
/* staff-only keys beside labels (tenant_admin sessions): quiet monospace */
.option-tile__id, .option-group__key, .config-panel__id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--c-text-faint); font-weight: 400; }
.option-tile__id { margin-left: auto; }
.option-group__key { margin-left: 6px; }
.option-tile__price { margin-left: auto; font-size: 12px; color: var(--c-text-faint); white-space: nowrap; }
.option-tile__price--delta { color: var(--brand-sand-dark); font-weight: 600; }
.swatch { width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--c-border-input); flex: none; }
/* The tile's photo (option_images): a square thumb; click = the lightbox, not the radio. */
.option-tile__photo { flex: none; width: 96px; height: 96px; border-radius: 6px; overflow: hidden; border: 1px solid var(--c-border-input); background: var(--c-surface-subtle); cursor: zoom-in; }
.option-tile__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.addon__steps .option-tile__photo { width: 64px; height: 64px; }

.config-panel__row--qty { align-items: center; margin-top: 4px; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--c-border-input); border-radius: var(--r-input); background: var(--c-surface); overflow: hidden; }
.qty-stepper__btn { width: 30px; border: none; background: transparent; color: var(--c-text-muted); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.qty-stepper__btn:hover { background: var(--c-surface-subtle); color: var(--c-text); }
.qty-stepper input { width: 36px; border: none; border-left: 1px solid var(--c-border-subtle); border-right: 1px solid var(--c-border-subtle); font-size: 13px; color: var(--c-text); text-align: center; padding: 6px 0; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; background: var(--c-primary-bg); }

.config-panel { background: var(--c-surface-subtle); border: 1px solid var(--c-border-subtle); border-radius: var(--r-panel); padding: 16px 18px; position: static; }
.config-panel__title { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--c-text-muted); display: flex; justify-content: space-between; }
.config-panel__rows { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.config-panel__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.config-panel__key { font-size: 12.5px; color: var(--c-text-muted); flex: none; white-space: nowrap; }
.config-panel__val { font-size: 12.5px; color: var(--c-text); text-align: right; }
.config-panel__val--empty { font-size: 12.5px; color: var(--brand-sand-dark); }  /* #7a5f44: "not selected" reads as a prompt, not as disabled */
/* breaks land on the <wbr> after each hyphen (see config-panel.eta); anywhere is only the backstop for a hyphenless overlong token */
.config-panel__val--sku { font: 500 12px ui-monospace, Menlo, monospace; color: var(--c-text-faint); text-align: right; overflow-wrap: anywhere; }
.config-panel__total { border-top: 1px solid var(--c-border); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.config-panel__total-label { font-size: 13px; color: var(--c-text-muted); }
.config-panel__unit { font-size: 12px; color: var(--c-text-faint); }
.config-panel__total-value { font-size: 16px; font-weight: 700; color: var(--c-text); margin: 0; }
.config-panel__total-value .por { font-size: 13px; font-weight: 600; color: var(--c-text-muted); }
/* With add-ons ticked the product's total becomes one line of a breakdown
   (lighter), the add-ons row follows, and the order total is the big one. */
.config-panel__total--line .config-panel__total-value { font-size: 14px; font-weight: 600; }
.config-panel__rows--addons { margin-top: 8px; gap: 4px; }
.config-panel__row--addon .config-panel__key { white-space: normal; flex: 1 1 auto; }   /* accessory names are long; let them wrap */
.config-panel__row--addon .config-panel__val { font-weight: 600; color: var(--brand-sand-dark); white-space: nowrap; }
.config-panel__total--order { margin-top: 10px; }
.config-panel .violations { margin: 12px 0 0; }
.config-panel .violations ul { margin: 0; padding-left: 18px; }
.config-panel__cta { margin-top: 14px; width: 100%; font-size: 13px; font-weight: 600; border: none; border-radius: var(--r-panel); padding: 11px 0; cursor: pointer; color: #fff; background: var(--c-primary); }
.config-panel__cta:disabled { color: var(--c-text-faint); background: var(--c-disabled-bg); cursor: not-allowed; }
.config-panel__hint { margin-top: 8px; font-size: 11.5px; color: var(--c-text-faint); text-align: center; }
.config-panel .order-cta { display: block; }
.config-panel .order-cta .added { display: block; text-align: center; margin-top: 14px; color: var(--ok); font-weight: 600; }
.config-panel .order-cta .linkish { display: block; margin: 6px auto 0; }

/* product page: the same tiles and panel in the full configurator - the
   panel-left grid itself is declared once, at the top (.cfg, ~line 66). */

@media (max-width: 860px) {
  .product-card { padding: 16px; }
  .product-card__form { flex-direction: column; gap: 16px; }
  .product-card__aside { width: 100%; }
  .product-card__form--plain { align-items: stretch; }
  /* Narrow screens: total left, stepper right, CTA full-width below. */
  .product-card__buy { grid-template-columns: 1fr auto; }
  .product-card__buy .order-cta { grid-column: 1 / -1; }
  .product-card__buy-total { align-items: flex-start; }
  .option-group__tiles { grid-template-columns: 1fr; }
}

/* ---- brand chrome: the header as on the Arrow Wood site ------------------- */
.topbar { background: var(--brand-teal); border-bottom: none; }
.brand, .topbar a, .topbar nav a { color: #fff; }
.topbar .who { color: rgba(255,255,255,.72); }
.brand { display: inline-flex; align-items: baseline; gap: 8px; }
.brand__for { color: rgba(255,255,255,.45); font-weight: 300; }
.brand__tenant { color: var(--brand-sand); font-weight: 600; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav__link { font-size: 14px; }
.nav__link:hover { text-decoration: underline; }

/* the orders unit: draft pill + history, one segmented control */
.order-nav { display: inline-flex; align-items: stretch; border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px; overflow: hidden; }
.order-nav a { font-size: 13px; padding: 4px 12px; text-decoration: none; }
.order-badge { border: none; border-radius: 0; color: #fff !important; }
.order-badge.has-lines { background: var(--brand-sand); color: var(--brand-teal-dark) !important; font-weight: 600; }
.order-nav__history { border-left: 1.5px solid rgba(255,255,255,.55); color: rgba(255,255,255,.9) !important; }
.order-nav a:hover { background: rgba(255,255,255,.12); }
.order-badge.has-lines:hover { background: #d4bfa9; }

/* account menu: native <details> */
.account { position: relative; }
.account__summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.85); padding: 4px 2px; }
.account__summary::-webkit-details-marker { display: none; }
.account__email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__caret { font-size: 10px; }
.account[open] .account__summary { color: #fff; }
.account__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--panel); color: var(--ink);
                  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(31,43,42,.14); padding: 8px; z-index: 20; }
.account__row { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--muted); }
.account__row strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.account__action { display: block; padding: 8px 10px; border-radius: 6px; color: var(--brand-teal) !important; font-size: 14px; text-decoration: none; }
.account__action:hover { background: var(--brand-teal-light); text-decoration: none; }
.account__form { margin: 0; }
button.account__action { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
button.primary { background: var(--brand-teal); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--brand-teal-dark); }
button.primary:disabled { background: #d9d4ce; color: #8b8f8d; }
.config-panel__cta:hover:not(:disabled) { background: var(--brand-teal-dark); }
.flash { background: var(--brand-teal-light); border-color: #c5d8d6; color: var(--brand-teal-dark); }
.notice { border-left-color: var(--brand-sand); }
.tone-optional { color: var(--brand-sand-dark); }
.sheet-optional, .tone-optional-bg { background: var(--brand-sand-light); }
.status-submitted { background: var(--brand-teal-light); border-color: #c5d8d6; color: var(--brand-teal-dark); }
.status-confirmed, .status-in_production { background: var(--brand-sand-light); border-color: #e3d3c2; color: var(--brand-sand-dark); }
.auth input:focus, .submit-form input:focus, .submit-form textarea:focus, .qty-form input:focus { outline: 2px solid var(--brand-teal-light); border-color: var(--brand-teal); }

/* page header: the title and its lead in the same surface as the cards */
.page-head { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 20px 28px; }
.page-head__title { margin: 0; font-size: 22px; letter-spacing: -0.01em; color: var(--c-text); }
.page-head__lead { margin: 6px 0 0; color: var(--c-text-muted); font-size: 14.5px; }
.page-head + .catalog-list { margin-top: 16px; }

/* controls and their labels are clicked, not read: no text selection on them.
   The DATA stays selectable - chosen values, configured SKU, prices - a buyer
   copies those into mails and POs. */
.qty-stepper__btn, .config-panel__cta, button.primary, .order-nav a, .account__summary,
.option-group__label, .badge--configurable, .config-panel__title, .config-panel__key,
.config-panel__hint { user-select: none; -webkit-user-select: none; }

/* Product page top: photos left, standard specification right. One half
   alone (no photos yet, or no spec) takes the full width; narrow screens
   stack. The spec column keeps its own vertical rhythm, so its section
   margin is reset here. */
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 14px; }
.product-top--single { grid-template-columns: 1fr; }
.product-top__spec.specs { margin-top: 0; }
.product-top .gallery { margin: 0; }
/* The gallery stays in view while the (longer) specification scrolls past it
   and leaves with its row at the "Configure" rule; the grid's align-items:
   start is what lets a sticky child move. Stacked on narrow screens, so no
   sticky there. */
.product-top__media { position: sticky; top: 16px; }
@media (max-width: 900px) { .product-top { grid-template-columns: 1fr; } .product-top__media { position: static; } }
/* The seam between the two halves of the product page. */
.section-rule { border: 0; border-top: 1px solid var(--c-border); margin: 28px 0 18px; }
.section-title { font-size: 18px; margin: 0 0 -6px; }
.specs--after-rule { margin-top: 0; }   /* the rule carries the gap */
/* A collapsible section: the heading is the toggle, a chevron says so. */
.specs--collapsible > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; user-select: none; -webkit-user-select: none; }
.specs--collapsible > summary::-webkit-details-marker { display: none; }
.specs--collapsible > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--c-text-faint); border-bottom: 2px solid var(--c-text-faint); transform: rotate(-45deg); transition: transform .15s; flex: none; margin-top: -2px; }
.specs--collapsible[open] > summary::before { transform: rotate(45deg); margin-top: -5px; }
.specs--collapsible > summary h2 { margin: 0; }
.specs--collapsible > summary:hover h2 { color: var(--c-primary); }   /* the configurator's own top margin (.cfg, 18px) supplies the rest */

/* product gallery (product page only; cards stay text) - cover large, thumbs below */
.gallery { margin: 14px 0 4px; }
.gallery__main { display: block; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 12px; cursor: zoom-in; }
.gallery__main img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.gallery__thumb { flex: none; width: 72px; height: 72px; border: 1px solid var(--c-border-input); border-radius: var(--r-panel); overflow: hidden; background: var(--c-surface); user-select: none; -webkit-user-select: none; }
.gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--c-text); }
.gallery__thumb.is-current { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }

/* Lightbox (partials/foot.eta): one overlay for card thumbs and the gallery.
   display:flex would beat the UA's [hidden] { display:none }, so the hidden
   state is restated explicitly. */
#lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(20, 24, 23, .85); cursor: zoom-out; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--r-panel); box-shadow: 0 12px 48px rgba(0, 0, 0, .5); background: var(--c-surface); }

/* product description: a short prose box under the title (card + product page) */
.product-desc { margin: 12px 0 0; padding: 10px 14px; max-width: 72ch; font-size: 13.5px; line-height: 1.5; color: var(--c-text); background: var(--c-surface-subtle); border: 1px solid var(--c-border-subtle); border-left: 3px solid var(--brand-sand); border-radius: var(--r-panel); }
/* Odoo BOM component list (attrs.odooComponents) under the product name on
   the card: clamped to two lines, the Details link opens the product page's
   full table. */
.product-components { margin: 6px 0 0; max-width: 72ch; font-size: 12px; line-height: 1.5; color: var(--c-text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-components__qty { font-variant-numeric: tabular-nums; color: var(--c-text); }
.product-components__more { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 600;
  color: var(--accent); text-decoration: none; }
.product-components__more:hover { text-decoration: underline; }
/* The product page shows the same data as a table, one row per component. */
.product-components__table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.product-components__table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); padding: 2px 12px 8px 0; border-bottom: 1px solid var(--line); }
.product-components__table td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); }
.product-components__table tr:last-child td { border-bottom: none; }
.product-components__table .code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.product-components__table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-desc--page { margin: 10px 0 14px; }

/* staff-only nav link, in the tenant's accent like the brand line */
.topbar nav a.nav__link--admin { color: var(--brand-sand); font-weight: 600; }
.topbar nav a.nav__link--admin:hover { color: var(--brand-sand-light); }

/* sign-in: a 2px line of the palette flowing under the button - the one moving
   thing on the page. Seamless because the gradient starts and ends on the same
   colour and the slide is exactly one tile. Still under reduced motion. */
.auth__flow { height: 2px; margin-top: 12px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-teal-light) 0%, var(--brand-teal) 35%, var(--brand-sand) 65%, var(--brand-teal-light) 100%);
  background-size: 200% 100%; background-repeat: repeat-x;
  animation: auth-flow 4s linear infinite; }
@keyframes auth-flow { from { background-position: 0 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .auth__flow { animation: none; } }

/* Per-choice quantity (options.qty > 1): "×6" beside the option's name. */
.option-tile__qty, .config-panel__qty { opacity: .65; font-size: .85em; margin-left: .25em; white-space: nowrap; }

/* Copyable, on purpose: the tile blocks text selection so a drag picks an
   option rather than text, but an option's NAME is data, and the staff-only
   keys (#771, h-201-…-a29) exist to be pasted somewhere else. A drag that
   selects text does not toggle the radio (foot.eta), and a click on a key
   copies it. */
.option-tile__name, .config-panel__val { user-select: text; -webkit-user-select: text; cursor: text; }
.option-tile__id, .option-group__key, .config-panel__id { user-select: text; -webkit-user-select: text; cursor: copy; }
.option-tile__id:hover, .option-group__key:hover, .config-panel__id:hover { color: var(--c-text); }
.option-tile__id[data-copied]::after, .option-group__key[data-copied]::after, .config-panel__id[data-copied]::after { content: " copied"; color: var(--brand-teal); }

/* Add-ons under the configurator: products offered alongside this one, each
   its own order line. The tick enables the quantity; a configurable add-on
   links to its own page instead. */
.addons { border-top: 1px solid var(--c-border); padding-top: 12px; }
.addons__hint { margin: 2px 0 8px; font-size: 12px; color: var(--c-text-faint); }
.addons__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.addon { border: 1px solid var(--c-border-input); border-radius: var(--r-panel); padding: 8px 12px; background: var(--c-surface); }
.addon.is-picked { border-color: var(--brand-teal); }
.addon__row { display: flex; align-items: center; gap: 12px; }
.addon__tick { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; cursor: pointer; min-width: 0; }
.addon__tick input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-teal); }
.addon__tick.is-waiting { cursor: default; }
.addon__tick.is-waiting input { opacity: .4; }
.addon__name { flex: 1 1 auto; min-width: 0; }
.addon__name-tail { font-style: italic; font-weight: 400; }
.addon__price { white-space: nowrap; font-weight: 600; color: var(--brand-sand-dark); }
.addon__qty { display: flex; align-items: center; gap: 4px; }
.addon__qty input { width: 56px; padding: 4px 6px; border: 1px solid var(--c-border-input); border-radius: 6px; }
.addon__qty input:disabled { opacity: .5; }
.addon__hint { white-space: nowrap; font-size: 12px; color: var(--c-text-faint); }
/* An add-on's own steps, inline under its row: the same tiles as the
   product's steps, one size down, so the add-on reads as a small
   configurator of its own inside the block. */
.addon__steps { margin-top: 4px; padding: 0 0 4px 26px; }
.addon__steps .option-group__label { margin-top: 10px; font-size: 12px; }
.addon__steps .option-group__tiles { margin-top: 6px; gap: 6px; }
.addon__steps .option-tile { padding: 7px 10px; font-size: 13px; }
.addon__steps .option-group__numeric input { padding: 5px 8px; }

/* The simplified catalogue card (2026-09-11): header + components on the
   left, the price on the right, the whole price block a link to the product
   page. No form on the card any more. */
.product-card__row { display: flex; align-items: center; gap: 24px; }
.product-card__price { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: inherit; min-width: 140px; }
.product-card__price .price.big { margin: 0; white-space: nowrap; }
.product-card__from { font-size: 11px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.product-card__price:hover .price.big { color: var(--brand-teal); }
@media (max-width: 640px) { .product-card__row { flex-direction: column; align-items: stretch; } .product-card__price { align-items: flex-start; } }

/* Catalogue review marks (catalog/reviews.ts, pre-launch, shown only while
   the tenant setting is on): one row per check under the card's
   components - the label, a two-button control (tick / bang), the state. */
.review { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--c-border, #e4dfda); display: flex; flex-direction: column; gap: 4px; }
.review__row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-text-muted); }
.review__label { min-width: 0; }
.review__ctl { display: inline-flex; gap: 4px; flex: none; }
.review__btn { width: 26px; height: 26px; border: 1px solid var(--c-border, #d9d2cb); border-radius: 6px; background: #fff; color: #9a938c; font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.review__btn:hover { border-color: var(--brand-teal); color: var(--brand-teal); }
.review__btn--ok.is-on { background: #2f8f5b; border-color: #2f8f5b; color: #fff; }
.review__btn--fix.is-on { background: #d9534f; border-color: #d9534f; color: #fff; }
.review__row.is-ok .review__label, .review__row.is-ok .review__state { color: #2f8f5b; }
.review__row.is-fix .review__label, .review__row.is-fix .review__state { color: #d9534f; font-weight: 600; }
.review__state { font-size: 12px; }
.review-summary { margin: 0 0 12px; font-size: 13px; color: var(--c-text-muted); }
.review-summary__ok { color: #2f8f5b; font-weight: 600; }
.review-summary__fix { color: #d9534f; font-weight: 600; }

/* Add-on variant chips (product_addons.variant_group): one row, one chip
   per member - "juodas" | "baltas" - the chosen one filled. */
.addon__variants { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 10px; }
.addon__chip { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--c-border-input); border-radius: 999px; font-size: 12px; cursor: pointer; background: var(--c-surface); user-select: none; }
.addon__chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.addon__chip:hover { border-color: var(--brand-teal); }
.addon__chip.is-on { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }
.addon__chip { position: relative; }
.addon__row:has(.addon__variants) .addon__tick { flex: 0 1 auto; }
.addon__row:has(.addon__variants) .addon__variants { margin-right: auto; }

/* ---- language switch (src/i18n): EN | CS in the top bar, only on a tenant whose
   language has a dictionary. Inside the nav when signed in; alone on the login
   page, pushed to the right. The current language reads bold. ---------------- */
.lang { display: inline-flex; align-items: center; gap: 2px; }
.topbar > .lang { margin-left: auto; }
.lang__link { font-size: 12px; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; opacity: .78; text-decoration: none; }
.lang__link:hover { opacity: 1; text-decoration: underline; }
.lang__link.is-on { opacity: 1; font-weight: 700; background: rgba(255,255,255,.14); }
