/* Catalog Composer — the specification sheet. Tokens and rules: ../DESIGN.md. Shared by index.html and laying.html. */
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-var-latin-tr.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #edeeea;
  --sheet: #f6f6f3;
  --ink: #1c1d1b;
  --ink-2: #474843;
  --ink-3: #62635e;
  --hair: rgba(28, 29, 27, .14);
  --rule: rgba(28, 29, 27, .36);
  --ctl: #7e7f7a;                       /* control boundaries (select, stepper, icon buttons, size strings): >= 3:1 on ground, sheet and tint */
  --frame: #1c1d1b;
  --redline: #b3261e;
  --redline-wash: rgba(179, 38, 30, .06);
  --ok: #2f5d3a;
  --sun: #d99a1e;
  --shade: #b8b9b3;
  --night: #3b3c38;
  --tint: #e4e1da;
  --notice: #8a5a00;                    /* amber notice (MOQ short, retired colour): outline + icon, 5:1 on ground */
  --notice-wash: rgba(217, 154, 30, .14);

  --font: "Jost", ui-sans-serif, system-ui, sans-serif;
  --t-13: .8125rem; --t-14: .875rem; --t-15: .9375rem; --t-16: 1rem; --t-18: 1.125rem; --t-20: 1.25rem; --t-21: 1.3125rem; --t-26: 1.625rem;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r: 2px;
  --tap: 44px;
  --gutter: 16px;
  --dimcol: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 96px; }          /* the fixed dock must never cover a focused control */
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--t-16)/1.45 var(--font);
  font-feature-settings: "tnum" 1, "kern" 1;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--ink); color: var(--sheet); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button, select, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
.h { font-size: var(--t-15); font-weight: 600; letter-spacing: .01em; margin: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  height: 52px; padding: 0 var(--gutter); border-bottom: 1px solid var(--hair);
}
.mark { font-size: var(--t-15); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.lang { display: flex; }
.lang button {
  min-width: var(--tap); height: var(--tap); border: 0; background: none; cursor: pointer; padding: 0;
  font-size: var(--t-14); font-weight: 500; letter-spacing: .06em; color: var(--ink-3);
  text-decoration: underline 1px transparent; text-underline-offset: 6px;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--ink); }
.lede { margin: var(--s-3) var(--gutter) 0; font-size: var(--t-15); color: var(--ink-2); max-width: 60ch; }
.notice { margin: var(--s-3) var(--gutter) 0; padding: var(--s-3); color: var(--redline); background: var(--redline-wash);
  outline: 1px solid var(--redline); font-size: var(--t-14); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.notice.soft { color: var(--ink); background: var(--notice-wash); outline-color: var(--notice); }
.notice .btn { margin: 0; }

/* ------------------------------------------------------------------ frame */
.frame { padding: 0 var(--gutter); }
.stage { padding-top: var(--s-4); min-width: 0; }

/* sheet index (A-01 / A-02 / A-03) */
.sheets-nav { display: flex; gap: 0; margin: -4px calc(-1 * var(--gutter)); padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }   /* 4 px of padding: the scroller clips overflow, the focus ring (2 + 2) lives inside it */
.sheets-nav::-webkit-scrollbar { display: none; }
.sheets-nav { scroll-padding: 0 12px; }                  /* a focused item scrolled into view keeps room for its ring inside the scroller */
.sheets-nav button, .sheets-nav a {
  flex: none; min-height: var(--tap); padding: 0 var(--s-3); border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-3); font-size: var(--t-14);
  border-bottom: 1px solid var(--hair);
}
.sheets-nav button:first-child, .sheets-nav a:first-child { padding-left: 0; }
.sheets-nav button b, .sheets-nav a b { font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.sheets-nav a { text-decoration: none; }
.sheets-nav button:hover, .sheets-nav a:hover { color: var(--ink); }
.sheets-nav button[aria-current="true"], .sheets-nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.sheetbar-nav { padding: var(--s-4) var(--gutter) 0; max-width: 1180px; }
.sheetbar-nav .sheets-nav { margin: -4px; padding: 4px; }
.sheets-nav .fill { flex: 1 1 auto; border-bottom: 1px solid var(--hair); }

/* the swipeable set */
.strip {
  display: flex; align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter));
}
.strip::-webkit-scrollbar { display: none; }
.pane { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: var(--s-4) var(--gutter) var(--s-2); }

/* A-01: sideways drags on the wall, the dimension strings, the scrub and Detail A belong to them, not to the sheet strip */
.scrub, .wallbox, .dim, .detail, .sun-sel { touch-action: pan-y; }

/* A-01: the elevation */
.elev { display: grid; grid-template-columns: var(--wall-w, minmax(0, 1fr)) var(--dimcol); grid-template-areas: "wall dimv" "dimh ." "mod ." "rel ."; column-gap: 0; }
.wallbox {
  grid-area: wall; position: relative; width: 100%; aspect-ratio: var(--aspect, 2);
  background: var(--tint); isolation: isolate; outline: 1px solid var(--frame);
}
.wallbox canvas { display: block; width: 100%; height: 100%; mix-blend-mode: multiply; }
.wallbox.loading canvas { opacity: .4; }
.native-tint .wallbox, .native-tint .detail-box { background: transparent; }       /* the light view tints itself (setTint): no CSS multiply overlay */
.native-tint .wallbox canvas, .native-tint .detail-box canvas { mix-blend-mode: normal; }
.wallbox.off canvas { visibility: hidden; }
.callout { position: absolute; outline: 1px dashed var(--sheet); outline-offset: 0; box-shadow: 0 0 0 1px var(--ink), 0 0 0 2px var(--sheet); pointer-events: none; }   /* two-tone ring (ink inside, sheet outside): reads on the light and on the dark wall */
.callout b { position: absolute; right: -1px; bottom: 100%; padding: 0 4px 1px; font-size: var(--t-13); font-weight: 600; line-height: 1.3;
  background: var(--ink); color: var(--sheet); }
.callout.top b { bottom: auto; top: 100%; }
.dim { position: relative; color: var(--ink-2); font-size: var(--t-14); font-weight: 500; }
.dim input, .dim output {
  font-size: var(--t-16); font-weight: 500; color: var(--ink); background: var(--ground); border: 0; padding: 0 4px;   /* 16 px: iOS WebKit zooms the page on focus below it */
  text-align: center; min-height: var(--tap); width: 7ch; border-radius: var(--r);
  text-decoration: underline 1px dashed var(--ctl); text-underline-offset: 5px; cursor: text;
}
.dim output { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: default; width: auto; }
.dim input:hover { text-decoration-color: var(--ink); }
.dim input:focus { outline: 2px solid var(--ink); text-decoration: none; background: var(--sheet); }
.dim input[aria-invalid="true"] { text-decoration-color: var(--redline); text-decoration-style: solid; }
/* horizontal string: line with oblique architect's ticks; the value sits on it */
.dim-h { grid-area: dimh; height: var(--tap); margin-top: 6px; display: flex; justify-content: center; align-items: center; }
.dim-h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink-2); }
.dim-h::after, .dim-h .tk {
  content: ""; position: absolute; top: calc(50% - 6px); width: 1px; height: 12px; background: var(--ink-2); transform: rotate(45deg);
}
.dim-h::after { left: 0; }
.dim-h .tk { right: 0; }
.dim-h input, .dim-h output { position: relative; }
/* vertical string: line on the left of the column, value set horizontally beside it */
.dim-v { grid-area: dimv; display: flex; align-items: center; padding-left: 6px; }
.dim-v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; border-left: 1px solid var(--ink-2); }
.dim-v::after, .dim-v .tk {
  content: ""; position: absolute; left: 12px; width: 1px; height: 12px; background: var(--ink-2); transform: translateY(-6px) rotate(45deg);
}
.dim-v::after { top: 0; }
.dim-v .tk { top: 100%; }
.dim-v input, .dim-v output { position: relative; width: 6ch; padding: 0 2px; }
.dim-err { margin: var(--s-2) 0 0; font-size: var(--t-14); color: var(--redline); font-weight: 500; }
.dim-fit { margin: var(--s-2) 0 0; font-size: var(--t-14); color: var(--ink-2); display: grid; gap: 2px; }
.dim-mod { grid-area: mod; margin: 2px 0 0; text-align: center; font-size: var(--t-14); color: var(--ink-3); }
.elev-cap { width: var(--wall-w, 100%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: var(--s-3) 0 0; font-size: var(--t-14); color: var(--ink-3); }
.elev-cap b { color: var(--ink); font-weight: 500; }

/* A-01 phone: design + colour right under the size, above the sun panel (desktop has them in the sheet column) */
.quick { margin-top: var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
.q-designs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.q-designs .seg { flex: 1 1 calc(50% - var(--s-2)); min-width: 0; padding: 0 var(--s-2); }   /* four names: two rows of two, each >= 44 px wide at 390 px */
.q-colours-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.q-colours { display: flex; gap: 10px; }
.q-colours .chip { min-width: var(--tap); }
.q-colours .chip b { width: var(--tap); height: var(--tap); }
.q-name { font-size: var(--t-14); color: var(--ink-2); font-weight: 500; }
.client-by { margin-top: var(--s-2); color: var(--ink-2); }
.client-by b { color: var(--ink); font-weight: 600; }
.client-next { margin: var(--s-4) 0 0; font-size: var(--t-16); color: var(--ink); max-width: 60ch; }
.broken-link .frame, .broken-link .client-by { display: none; }        /* a broken client link shows the message only, never an example wall under the architect's name */
.client-lede { margin: var(--s-3) 0 0; width: var(--wall-w, 100%); font-size: var(--t-18); line-height: 1.4; color: var(--ink); }

/* Detail A */
.detail { margin: var(--s-5) 0 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: end; }
.detail-box { width: var(--detail-w, 140px); aspect-ratio: 1; position: relative; background: var(--tint); isolation: isolate;
  outline: 1px dashed var(--ink); outline-offset: 5px; }
.detail-box canvas { display: block; width: 100%; height: 100%; mix-blend-mode: multiply; }
.detail-cap { font-size: var(--t-14); color: var(--ink-3); margin: 0; }
.depth-copy { display: none; margin-top: var(--s-2); font-size: inherit; }
@media (max-width: 959px) { .depth-copy { display: block; } }
.detail-cap b { display: block; color: var(--ink); font-weight: 600; font-size: var(--t-15); margin-bottom: 2px; }

/* the sun instrument */
.sun { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--hair); }
.sun-head { display: flex; align-items: baseline; justify-content: space-between; }
.sun-time { font-size: var(--t-26); font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.scrub { position: relative; margin-top: var(--s-2); height: 78px; }
.runs { position: absolute; left: 11px; right: 11px; top: 0; height: 18px; font-size: var(--t-13); color: var(--ink-2); }
.runs span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.band { position: absolute; left: 11px; right: 11px; top: 30px; height: 6px; display: flex; overflow: hidden; outline: 1px solid var(--ink-2); }   /* the outline carries the 3:1 boundary the light segments lack */
.band i { display: block; height: 100%; flex: 1 1 0; }
.band i + i { box-shadow: inset 1px 0 0 var(--ink-2); }                       /* a divider wherever the state changes */
.band .b-sun { background: var(--sun); } .band .b-night { background: var(--night); }
.band .b-shade { background: var(--shade) repeating-linear-gradient(135deg, transparent 0 3px, rgba(28, 29, 27, .5) 3px 4px); }   /* hatched: shade is not told from sun by colour alone */
.scrub input[type="range"] {
  -webkit-appearance: none; appearance: none; position: absolute; left: 0; right: 0; top: 10px; width: 100%; height: 46px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.scrub input::-webkit-slider-runnable-track { height: 46px; background: transparent; }
.scrub input::-moz-range-track { height: 46px; background: transparent; }
.scrub input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 30px; margin-top: 8px; border-radius: var(--r);
  background: var(--sheet); border: 1px solid var(--frame); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08);
}
.scrub input::-moz-range-thumb { width: 22px; height: 30px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--frame); }
.ticks { position: absolute; left: 11px; right: 11px; top: 48px; height: 20px; font-size: var(--t-13); color: var(--ink-3); }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks span::before { content: ""; position: absolute; left: 50%; top: -6px; height: 4px; border-left: 1px solid var(--rule); }
.sun-sel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
.sel { display: block; min-width: 0; }
.sel-l { display: block; font-size: var(--t-14); color: var(--ink-3); margin-bottom: 4px; }
.sel-box { position: relative; display: block; }
.sel-box .ic { position: absolute; right: 10px; top: 12px; pointer-events: none; }
select {
  -webkit-appearance: none; appearance: none; width: 100%; height: var(--tap); padding: 0 36px 0 12px;
  border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); cursor: pointer;
}
select:hover { border-color: var(--ink); }
.sun-read, .note { margin: var(--s-3) 0 0; font-size: var(--t-14); color: var(--ink-3); }
.note:empty { display: none; }

/* A-02 / A-03 panes */
.pane-head { margin: 0 0 var(--s-2); font-size: var(--t-20); font-weight: 500; }
.pane-lede { margin: 0 0 var(--s-4); font-size: var(--t-15); color: var(--ink-2); max-width: 52ch; }
.idx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--frame); }
.idx li { border-bottom: 1px solid var(--hair); }
.idx a { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; text-decoration: none; }
.idx a:hover { background: var(--sheet); }
.idx a b { font-weight: 600; letter-spacing: .04em; font-size: var(--t-14); width: 3.6em; flex: none; white-space: nowrap; }
.idx-thumb { width: 80px; height: 45px; object-fit: cover; flex: none; outline: 1px solid var(--hair); }
.pane .pieces { margin-top: var(--s-3); }
.idx a span { flex: 1 1 auto; }
.idx a .ic { color: var(--ink-3); }
.lay-mini { width: 100%; height: auto; display: block; max-height: 46vh; }
.open-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); margin-top: var(--s-3); font-weight: 500; }

/* ------------------------------------------------------------------ the sheet */
.sheet { padding-bottom: 120px; min-width: 0; }
.field { padding: var(--s-5) 0; border-top: 1px solid var(--hair); }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--s-3); }
.field-val { font-size: var(--t-14); color: var(--ink-3); }
.sub { font-size: var(--t-14); color: var(--ink-3); margin: var(--s-4) 0 var(--s-2); }
.sub:first-child { margin-top: 0; }

/* design field: a ruled list of rows, sheet-native */
.rows-pick { border-top: 1px solid var(--rule); }
.pick {
  width: 100%; min-height: 56px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: var(--s-3);
  padding: 0 2px; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; cursor: pointer;
}
.pick:hover { background: var(--sheet); }
.pick .ic { visibility: hidden; }
.pick[aria-pressed="true"] .ic { visibility: visible; }
.pick[aria-pressed="true"] .pick-n { font-weight: 600; }
.pick-m { font-size: var(--t-14); color: var(--ink-3); }

/* segmented options (bond / rotation) */
.segs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg {
  min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); cursor: pointer;
  transition: border-color .15s var(--ease);
}
.seg:hover { border-color: var(--ink); }
.seg[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); font-weight: 500; }
.seg:disabled, .ib:disabled, .step:disabled { cursor: not-allowed; color: var(--ink-3); border-style: dashed; background: transparent; }
.btn { min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--ink); border-radius: var(--r); background: var(--sheet); cursor: pointer; margin-top: var(--s-3); }
.btn:hover { background: var(--ground); }

/* colour chips: square, like a cast sample chip */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip { display: grid; gap: 6px; justify-items: start; border: 0; background: none; padding: 0; cursor: pointer; min-width: 56px; }
.chip b { width: 56px; height: 56px; display: block; background: var(--sw); border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.chip span { font-size: var(--t-13); color: var(--ink-3); }
.chip[aria-pressed="true"] b { outline: 1px solid var(--ink); outline-offset: 4px; }
.chip[aria-pressed="true"] span { color: var(--ink); font-weight: 500; }
.colours-note { margin: var(--s-3) 0 0; font-size: var(--t-13); color: var(--ink-3); }
.internal { display: inline-block; margin-top: var(--s-3); padding: 2px 8px; border: 1px dashed var(--rule); font-size: var(--t-13); color: var(--ink-3); }

/* icon buttons (ramp presets) + offset stepper */
.ibs { display: flex; gap: var(--s-2); }
.ib { width: 52px; height: var(--tap); display: grid; place-items: center; border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); cursor: pointer; }
.ib:hover { border-color: var(--ink); }
.ib[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.ib:disabled .ic { opacity: .45; }
.row-step { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.row-step .sub { margin: 0; }
.ctl { display: flex; border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); height: calc(var(--tap) + 2px); width: 150px; }   /* +2: the buttons inside stay 44 */
.step { width: var(--tap); border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.step:disabled { border: 0; }
.ctl output { flex: 1 1 auto; display: grid; place-items: center; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); font-size: var(--t-18); }

/* schedule (quantities + price) */
.sched { width: 100%; border-collapse: collapse; font-size: var(--t-15); }
.sched th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 7px 0; }
.sched td { text-align: right; padding: 7px 0; }
.sched tr + tr th, .sched tr + tr td { border-top: 1px solid var(--hair); }
.sched tr:last-child th, .sched tr:last-child td { border-bottom: 1px solid var(--rule); }
.sched.dim td { color: var(--ink-3); }
.sched tr.sample th, .sched tr.sample td { color: var(--ink-2); }
.pieces { font-size: var(--t-13); color: var(--ink-3); margin: var(--s-2) 0 0; word-spacing: 4px; }
.moq { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 var(--s-4); font-size: var(--t-15); }
.moq .ic { width: 18px; height: 18px; margin-top: 2px; }
.moq.ok { color: var(--ok); }
.moq.short { flex-wrap: wrap; color: var(--ink); background: var(--notice-wash); padding: var(--s-3); outline: 1px solid var(--notice); font-weight: 500; }
.moq.short .ic { color: var(--notice); }
.moq.short span { flex: 1 1 calc(100% - 30px); }
.moq .btn.go { margin: 0 0 0 28px; background: var(--ink); color: var(--sheet); border-color: var(--ink); font-weight: 500; }
.moq .btn.go:hover { background: #33342f; }
.sched tr.total th, .sched tr.total td { font-size: var(--t-18); font-weight: 600; color: var(--ink); border-top: 1px solid var(--frame); }
.terms { list-style: none; margin: var(--s-4) 0 0; padding: 0; font-size: var(--t-14); color: var(--ink-2); }
.terms li { padding: 6px 0; border-top: 1px solid var(--hair); }
.speeds { border: 0; margin: var(--s-4) 0 0; padding: 0; }
.speeds legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--t-14); color: var(--ink-3); }
.speed { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--hair); cursor: pointer; }
.speed:last-of-type { border-bottom: 1px solid var(--hair); }
.speed input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; border: 1px solid var(--ink-2); border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer; }
.speed input:checked { border-color: var(--ink); }
.speed input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.speed em { margin-left: auto; font-style: normal; font-size: var(--t-14); color: var(--ink-3); text-align: right; }
.lead { margin: var(--s-4) 0 0; font-size: var(--t-15); }

/* ------------------------------------------------------------------ the title block (antet) */
.antet { border: 1px solid var(--frame); background: var(--sheet); }
.antet dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.cell { padding: 10px 12px 12px; border-top: 1px solid var(--rule); min-width: 0; }
.cell.r, .lay .antet .cell:nth-child(2n) { border-left: 1px solid var(--rule); }
.cell.span, .lay .antet .cell.span { grid-column: 1 / -1; border-left: 0; }
.seeds-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: var(--wall-w, 100%); margin: var(--s-2) 0 0; }
.seeds-bar[hidden] { display: none; }
.seeds-bar .note { margin: 0; }
@media (min-width: 960px) { .seeds-bar { display: none !important; } }   /* desktop: the editor sits beside the sticky wall */
.cell.maker dd { font-size: var(--t-14); color: var(--ink-2); }
.maker-foot { padding: var(--s-5) var(--gutter) calc(104px + env(safe-area-inset-bottom)); font-size: var(--t-14); color: var(--ink-3); border-top: 1px solid var(--hair); }
.maker-foot b { color: var(--ink-2); font-weight: 500; }
.maker-foot .cookie-link { margin-left: 1em; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* The website's cookie banner (consent.js, injected by the site copy only) styles its buttons with shared.css tokens the Composer does not load. */
#sl-consent { --btn-fs: 11px; --btn-ls: 0.22em; --cta-bg: #8E4426; --cta-bg-hover: #A5532F; --cta-fg: #F6F1E6; }
.broken-link .maker-foot { border-top: 0; }
.lay.room .antet .cell:not(.r) { border-left: 0; }   /* A-02 marks its right-hand cell with .r; the A-03 2n rule does not apply */
.cell:first-child { border-top: 0; }
.cell dt { font-size: var(--t-13); color: var(--ink-3); margin: 0 0 2px; }
.cell dd { margin: 0; font-size: var(--t-15); font-weight: 500; overflow-wrap: anywhere; }
.cell.code dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cell.code dd { container-type: inline-size; }
.cell.code .code-v { font-size: clamp(14px, calc((100cqi - 52px) / 17.2), 18px); letter-spacing: .04em; min-width: 0; flex: 1 1 0; min-height: 24px; line-height: 1.3; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }   /* a long code (4 relief seeds) wraps at its hyphens, never sideways into the copy icon; it stays one selectable string */
.cell.code button { width: var(--tap); height: var(--tap); margin: -8px -8px -8px 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.cell.code button:hover { color: var(--ink); }
.cell.total dd { font-size: var(--t-21); font-weight: 600; }
.cell.total.void dd { color: var(--ink-3); font-size: var(--t-15); font-weight: 500; }
.cell .swatch-dd { display: flex; align-items: center; gap: 8px; }
.cell .swatch-dd i { width: 14px; height: 14px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.cell .set { display: flex; flex-wrap: wrap; gap: 0 14px; font-weight: 400; font-size: var(--t-14); }
.cell .set a, .cell .set button { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); }
.cell .set a:hover, .cell .set button:hover { text-decoration: underline; }
.cell .set b { font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.antet-act { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-top: 1px solid var(--frame); }
.antet-act > * { background: var(--sheet); }
.act {
  min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; text-align: center;
  border: 0; text-decoration: none; color: var(--ink); font-size: var(--t-15); font-weight: 500; cursor: pointer;
}
.act:hover { background: var(--ground); }
.act.primary { grid-column: 1 / -1; background: var(--ink); color: var(--sheet); font-size: var(--t-16); min-height: 56px; }
.act.primary:hover { background: #33342f; }
.act.wide, .by.wide { grid-column: 1 / -1; }
.by { display: grid; gap: 4px; padding: 10px 12px; font-size: var(--t-14); color: var(--ink-3); }
.by input { height: var(--tap); padding: 0 12px; border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); color: var(--ink); }
.by input:hover { border-color: var(--ink); }
.act .ic { width: 18px; height: 18px; }
.story { max-width: 60ch; font-size: var(--t-16); line-height: 1.5; margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ dock: the antet in one line */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--sheet); border-top: 1px solid var(--frame);
  transition: transform .2s var(--ease), visibility .2s;
}
.dock.away { transform: translateY(110%); visibility: hidden; }
.dock-sum { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.dock-sum b { display: block; font-size: var(--t-18); font-weight: 600; }
.dock-sum span { font-size: var(--t-13); color: var(--ink-3); }
.dock-sum.short b { font-size: var(--t-15); }
.dock .act { min-height: var(--tap); padding: 0 20px; background: var(--ink); color: var(--sheet); flex: none; }
.dock .act.ghost { background: var(--sheet); color: var(--ink); outline: 1px solid var(--ink); }
.dock .act.ghost:focus-visible { outline-width: 2px; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 6; background: var(--ink); color: var(--sheet);
  padding: 10px 16px; border-radius: var(--r); font-size: var(--t-14); max-width: calc(100vw - 32px); }

/* ------------------------------------------------------------------ desktop: elevation left, sheet right */
@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .bar { height: 64px; }
  .frame { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 56px; align-items: start; }
  .stage { position: sticky; top: var(--stage-top, 0px); padding-top: var(--s-4); padding-bottom: var(--s-5); }      /* a stage taller than the screen scrolls until its foot is in view, then sticks (app.js sets --stage-top) */
  .a01 { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "elev elev" "sun detail"; column-gap: var(--s-6); align-items: start; }
  .a01 .elev-wrap { grid-area: elev; min-width: 0; }
  .a01 .detail { grid-area: detail; margin: var(--s-5) 0 0; padding-top: var(--s-4); grid-template-columns: 1fr; align-items: start; width: var(--detail-w, 200px); }
  .a01 .sun { grid-area: sun; }
  .sheet { padding-top: var(--s-2); padding-bottom: var(--s-8); }
  .sheet > section:first-of-type > .field:first-child { border-top: 0; }
  .quick { display: none; }                                         /* design and colour are in the sheet column here, above the fold */
  html { scroll-padding-top: 88px; }
  .sheet > .dock { position: sticky; top: 0; left: auto; right: auto; bottom: auto; width: auto; margin-bottom: var(--s-4); border: 1px solid var(--frame); padding: 14px 16px; }
  .sheet > .dock.away { transform: translateY(-110%); }
  .toast { bottom: 24px; }
}
@media (min-width: 1280px) {
  .frame { grid-template-columns: minmax(0, 1fr) 420px; gap: 0 72px; }
}

@media (max-width: 400px) { .sheets-nav button, .sheets-nav a { padding: 0 var(--s-2); } .cell.code .code-v { font-size: var(--t-16); letter-spacing: .03em; } }

@media (max-width: 959px) {
  /* phone: the wall takes the full gutter width. Both size strings share ONE dimension string under it: [3,2 m] x [1,6 m] (width x height) */
  :root { --dimcol: 0px; }
  .dim input, .dim output { width: 68px; min-width: 68px; }
  .dim-h { padding-right: 88px; }                                   /* the width field sits left of centre, the height field right of it, the pair centred */
  .dim-v { grid-area: dimh; align-self: start; justify-self: center; height: var(--tap); margin: 6px 0 0 88px; padding: 0; }
  .dim-v::before { border-left: 0; top: 0; bottom: 0; left: -20px; width: 20px; display: grid; place-items: center; content: "\00d7"; background: var(--ground); font-size: var(--t-16); }
  .dim-v::after, .dim-v .tk { display: none; }
  .dim-v input, .dim-v output { width: 68px; padding: 0 4px; }
  /* phone order: elevation, Detail A beside the depth caption (the relief close up, above the fold), design and colour, then the sun instrument */
  .a01 { display: flex; flex-direction: column; }
  .a01 .elev-wrap { display: contents; }                            /* its lines join the pane's order below */
  .a01 .detail { order: 1; margin-top: var(--s-4); }
  .a01 .quick { order: 2; }
  .a01 .ramp-cap, .a01 .hours-row, .a01 #light-status { order: 3; }
  .a01 .sun { order: 4; }
  .print-row { display: none; }                                       /* phones, and Instagram's browser, do not print */
  /* the sheet index: only the open sheet shows its name; the others keep it for screen readers */
  .sheets-nav > a, .sheets-nav > button { min-width: var(--tap); }   /* a number alone still makes a 44 px target */
  .sheets-nav > :not([aria-current="true"]) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .elev-cap #depth-out { display: none; }
  .cell .set a, .cell .set button { min-height: var(--tap); }
  input:not([type="range"]):not([type="radio"]):not([type="checkbox"]), select, textarea { font-size: max(16px, 1em); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* the dock on A-02 / A-03 (sheetbar.js mountDock): fixed at the foot at every width */
.dock.dock-page { position: fixed; left: 0; right: 0; bottom: 0; width: auto; border: 0; border-top: 1px solid var(--frame); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
.scroll-cue { margin: 0 0 var(--s-2); font-size: var(--t-14); color: var(--ink-2); display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.scroll-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }

/* ------------------------------------------------------------------ A-03 laying map page (laying.html) */
.lay { padding: 0 var(--gutter) 112px; max-width: 1180px; }
.lay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) 0 var(--s-3); }
.lay-head h1 { font-size: var(--t-20); font-weight: 500; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.lay-head h1 b { font-size: var(--t-14); font-weight: 600; letter-spacing: .04em; }
.tools { display: flex; gap: var(--s-2); }
.tools button, .tools a { min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; font-size: var(--t-15); }
.tools button:hover, .tools a:hover { border-color: var(--ink); }
.lay .antet { margin: var(--s-2) 0 var(--s-5); }
.lay .antet dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-wrap { background: var(--sheet); border: 1px solid var(--frame); padding: var(--s-3); overflow: hidden; }
.grid { width: 100%; height: auto; max-height: 70vh; display: block; }
.grid .cellr { fill: var(--sheet); stroke: var(--ink); stroke-width: 1; }
.lay .grid-wrap { overflow-x: auto; }
.lay .grid { max-height: none; min-width: calc(var(--cols, 1) * 80px); }   /* a cell never renders below 80 px: the text stays >= 11 CSS px (12 / 13 / 11 user units at 1:1); a narrow screen scrolls the frame, not the page */
.lay .grid-wrap:focus-visible { outline-offset: -2px; }
.grid .n { font-size: 13px; fill: var(--ink-2); font-family: var(--font); }
.grid .m { font-size: 13px; font-weight: 600; fill: var(--ink); font-family: var(--font); }
.grid .cut { font-size: 11px; font-weight: 600; fill: var(--redline); font-family: var(--font); }
.grid .arrow { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.notes { font-size: var(--t-14); color: var(--ink-3); max-width: 75ch; margin: var(--s-3) 0 0; }
.err { color: var(--redline); }
table.pieces { border-collapse: collapse; width: 100%; max-width: 560px; font-size: var(--t-15); margin-top: var(--s-2); }
table.pieces th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: var(--t-14); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--frame); }
table.pieces td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--hair); }
table.pieces tr:last-child td { border-top: 1px solid var(--frame); font-weight: 600; }
.lay h2 { font-size: var(--t-15); font-weight: 600; margin: var(--s-6) 0 0; }
@media (min-width: 960px) { .lay:not(.room) .antet dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lay:not(.room) .antet .cell:not(.span) { border-left: 1px solid var(--rule); } .lay:not(.room) .antet .cell.span + .cell:not(.span) { border-left: 0; } }   /* A-03 only (A-02 shares .lay): the two full-width rows (code, design) come first; the four figures share one row below */
/* ------------------------------------------------------------------ A-02 room page (room.html) */
.room #stage { position: relative; width: 100%; background: var(--night); outline: 1px solid var(--frame); line-height: 0; }
.room #stage img, .room #stage canvas { display: block; width: 100%; height: auto; }
.room #stage canvas { position: absolute; left: 0; top: 0; height: 100%; }
.room #stage svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.cue-case path, .cue-ink path { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.cue-case path { stroke: var(--sheet); stroke-width: 3; }          /* keyline: the ink line has to read on a dark plate */
.cue-ink path { stroke: var(--ink); stroke-width: 1; }
.cue-case path.fade, .cue-ink path.fade { opacity: .4; }          /* the 1.8 m figure steps back where it stands over the composition */
.cue-tag { position: absolute; padding: 0 4px; background: var(--sheet); color: var(--ink); font-size: var(--t-13); line-height: 18px; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: none; }
.cue-tag.r { transform: translate(-100%, -50%); }
.room-note { margin: var(--s-3) 0 0; padding-top: var(--s-2); border-top: 1px solid var(--hair); font-size: var(--t-14); color: var(--ink-2); max-width: 75ch; }
.room-cap { margin: var(--s-3) 0 0; font-size: var(--t-14); color: var(--ink-2); max-width: 75ch; }
.room-grid { display: grid; gap: 0 var(--s-6); margin-top: var(--s-2); }
.room #rooms { display: block; }
.room #rooms a { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; text-decoration: none; border-bottom: 1px solid var(--hair); }
.room #rooms a:hover { background: var(--sheet); }
.room #rooms a b { font-weight: 600; letter-spacing: .04em; font-size: var(--t-14); width: 4.4em; flex: none; color: var(--ink-3); }
.room #rooms a[aria-current="true"] b, .room #rooms a[aria-current="true"] span { color: var(--ink); font-weight: 600; }
.room #rooms a[aria-current="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; background: var(--ink); }
.room .err { color: var(--redline); }
@media (min-width: 960px) { .room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .room .field { border-top: 0; } }

/* ------------------------------------------------------------------ Frame the ramp, relief hours (A-01, under the elevation) */
.relief-dim { grid-area: rel; margin-top: var(--s-2); }
.rd-bar { position: relative; display: flex; height: 8px; margin-top: 6px; }
.rd-bar i { position: relative; display: block; height: 100%; }
.rd-bar::before, .rd-bar i::after { content: ""; position: absolute; top: -3px; width: 1px; height: 14px; background: var(--ink-2); transform: rotate(45deg); }   /* the architect's oblique terminators, as on the strings above */
.rd-bar::before { left: 0; }
.rd-bar i::after { right: 0; }
.rd-relief { background: var(--ink-2); }                              /* filled = the relief zone, hollow = flat: told apart by form, not colour */
.rd-flat { box-shadow: inset 0 0 0 1px var(--ink-2); }
.rd-text { margin: 4px 0 0; text-align: center; font-size: var(--t-14); color: var(--ink-2); }
.ramp-cap, .relief-hours { max-width: min(62ch, 100%); }
.relief-hours { color: var(--ink-2); margin-top: var(--s-2); flex: 1 1 auto; }
.hours-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); width: var(--wall-w, 100%); }     /* the print button shares the relief-hours row */
.print-row { flex: none; margin-top: var(--s-2); }
.print-row .btn { margin-top: 0; }

/* phone: one home per decision. Design and colour live once, in the quick row under the elevation; the sheet column's copies are for desktop */
@media (max-width: 959px) { .field.dc { display: none; } }

/* ------------------------------------------------------------------ A-00 material and fixing (material.html) */
.lay.mat .antet dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lay.mat .antet { max-width: 640px; }
.spec { width: 100%; max-width: 640px; border-collapse: collapse; font-size: var(--t-15); margin: 0 0 var(--s-5); }
.spec th { width: 42%; text-align: left; font-weight: 400; color: var(--ink-2); padding: 9px 12px 9px 0; vertical-align: top; }
.spec td { padding: 9px 0; font-weight: 500; vertical-align: top; }
.spec td.open { color: var(--ink-3); font-weight: 400; }
.spec tr + tr th, .spec tr + tr td { border-top: 1px solid var(--hair); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--frame); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--rule); }
.fix-digest { margin: calc(-1 * var(--s-3)) 0 var(--s-4); font-size: var(--t-14); color: var(--ink-2); }
.fix-digest a { display: inline-flex; align-items: center; min-height: 24px; }
.lay-tables { display: block; }

/* ------------------------------------------------------------------ print: A-01 one A4 portrait sheet, A-03 one A4 landscape sheet, A-00 portrait */
@page { size: A4 portrait; margin: 10mm; }
@page land { size: A4 landscape; margin: 10mm; }
.lay:not(.mat) { page: land; }                  /* A-03 and A-02 print landscape; A-01 and A-00 portrait (the default page) */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }       /* the wall's tint is a CSS background under the multiplied canvas */
  html { font-size: 15px; }
  body { background: #fff; }
  .noprint, .dock, .toast, #sheetbar, .maker-foot, .scroll-cue { display: none !important; }
  /* A-03 */
  .lay { padding: 0; max-width: none; }
  .lay-head { padding: 0 0 2mm; }
  .lay .grid { max-height: 112mm; min-width: 0; }
  .lay .grid-wrap { border: 0; padding: 0; overflow: visible; }
  .lay .antet { margin: 0 0 3mm; }
  .lay:not(.room):not(.mat) .antet dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lay:not(.room):not(.mat) .antet .cell.span { grid-column: span 2; }
  .lay:not(.room):not(.mat) .antet .cell.maker { grid-column: 1 / -1; }
  .lay:not(.room):not(.mat) .antet .cell:not(.span) { border-left: 1px solid var(--rule); }
  .lay:not(.room):not(.mat) .antet .cell { padding: 5px 8px 6px; }
  .lay:not(.room):not(.mat) .antet .cell:nth-child(2) { border-left: 1px solid var(--rule); }
  .lay:not(.room):not(.mat) .antet .cell:nth-child(n+3):nth-child(-n+6) { border-top: 1px solid var(--rule); }
  .fix-digest { margin: -1mm 0 2mm; font-size: 12px; }
  .lay .notes { margin-top: 2mm; font-size: 11px; max-width: none; }
  /* A-03: the title block across the top, then the map (left) beside the piece list and the cut list (right) */
  .lay:not(.room):not(.mat) { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 8mm; align-items: start;
    grid-template-areas: "head head" "antet antet" "dig dig" "map lists" "note lists"; }
  .lay:not(.room):not(.mat) > .lay-head { grid-area: head; }
  .lay:not(.room):not(.mat) > .antet { grid-area: antet; }
  .lay:not(.room):not(.mat) > .fix-digest { grid-area: dig; }
  .lay:not(.room):not(.mat) > .grid-wrap { grid-area: map; }
  .lay:not(.room):not(.mat) > .notes { grid-area: note; }
  .lay:not(.room):not(.mat) > .lay-tables { grid-area: lists; }
  .lay-tables h2:first-child { margin-top: 0; }
  .lay-tables > div + div { margin-top: 3mm; }
  .lay h2 { margin-top: 3mm; font-size: 13px; }
  table.pieces { font-size: 12px; margin-top: 1mm; max-width: none; }
  table.pieces th, table.pieces td { padding: 2px 8px 2px 0; }
  .lay-tables .notes { margin-top: 1.5mm; }
  /* A-00 */
  .lay.mat .antet { max-width: none; }
  .spec { max-width: none; font-size: 14px; }
  .spec th, .spec td { padding: 6px 12px 6px 0; }
  /* A-01: one sheet. Title, then the elevation with its strings (left) and Detail A + the hour (right), then price + terms (left) and the title block (right) */
  .bar { height: auto; border: 0; padding: 0 0 3mm; }
  .bar .lang, .lede, #notice, .sheets-nav, .quick, #a02, #a03 { display: none !important; }
  .frame { display: grid !important; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "title title" "elev detail" "elev sun" "price send"; gap: 3mm 8mm; padding: 0; }
  .stage, .strip, .a01, .sheet { display: contents !important; }
  #a01-h { grid-area: title; position: static !important; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; margin: 0; font-size: 20px; font-weight: 500; }
  #a01-h { padding-bottom: 2mm; border-bottom: 1px solid var(--frame); }
  .elev-wrap { grid-area: elev; --wall-w: min(100mm, calc(78mm * var(--aspect, 2))) !important; min-width: 0; }
  .elev { margin: 0; }
  .detail { grid-area: detail; margin: 0 !important; display: block !important; width: auto !important; padding: 0 !important; }
  .detail-box { width: 40mm; }
  .detail-cap { margin-top: 3mm; font-size: 12px; }
  .depth-copy { display: block; }
  .sun { grid-area: sun; align-self: start; margin: 0; padding-top: 3mm; border-top: 1px solid var(--hair); }
  .sun .h { display: block; font-size: 13px; }
  .sun-time { font-size: 20px; }
  .scrub, .sun-sel, #light-note, .light-basis { display: none !important; }
  .sun-read { margin-top: 1mm; font-size: 12px; }
  .pr-price { display: block !important; grid-area: price; min-width: 0; }
  .pr-send { display: block !important; grid-area: send; min-width: 0; }
  .field { padding: 0; border: 0; }
  .field-head { margin-bottom: 2mm; }
  #send .field-head { display: none; }
  .sched { font-size: 13px; }
  .sched th, .sched td { padding: 3px 0; }
  .terms { margin-top: 3mm; font-size: 11px; }
  .terms li { padding: 3px 0; }
  .moq { margin-bottom: 2mm; font-size: 12px; }
  .moq .btn, .speeds, .antet-act, #flag-dm, .set-cell { display: none !important; }
  .lead { font-size: 12px; margin-top: 2mm; }
  .antet dl { grid-template-columns: 1fr 1fr; }
  .cell { padding: 5px 8px 6px; }
  .cell dd { font-size: 13px; }
  .cell.total dd { font-size: 17px; }
  .cell.code .code-v { font-size: 13px; }
  .cell.code button { display: none; }
  .dim input, .dim output { text-decoration: none; background: #fff; }
  /* print is under 960 px wide, so the phone's shared string ("3,6 m × 2,4 m" on one line) would apply: the sheet keeps each size on its own string,
     width under the wall, height on a vertical string beside it */
  :root { --dimcol: 17mm; }
  .elev-wrap { --wall-w: min(78mm, calc(58mm * var(--aspect, 2))) !important; }
  .dim-h { padding-right: 0; }
  .dim-v { grid-area: dimv; align-self: stretch; justify-self: stretch; height: auto; margin: 0; padding: 0 0 0 4px; }
  .dim-v::before { content: ""; display: block; top: 0; bottom: 0; left: 6px; width: 0; border-left: 1px solid var(--ink-2); background: transparent !important; font-size: inherit; }
  .dim-v::after, .dim-v .tk { display: block; left: 6px; }
  .dim-v input, .dim-v output { min-width: 0; width: auto; font-size: 14px; padding: 0 1px; margin-left: 4px; background: #fff; }
  .dim-v::before { background: transparent !important; }
  .hours-row { width: auto; min-width: 0; }                        /* its screen width (the wall's) would run past the right column of the sheet */
  .elev-cap, .relief-hours, .ramp-cap, .dim-fit, .dim-mod { font-size: 12px; }
  .client-lede { font-size: 14px; }
}

/* Relief points (corners designs): the tap layer over the wall, and the list under Layout. Marks are drawn by app.js as sheet-and-ink squares
   (a sheet fill with an ink edge reads on a bone wall and on an ink one); nothing here is a circle, nothing animates. */
.seed-layer { position: absolute; inset: 0; z-index: 2; cursor: crosshair; touch-action: pan-y; }
.seed-layer[hidden] { display: none; }
.seed-layer svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.seeds { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--hair); }
.seeds .sub { margin-top: 0; }
.seeds-lede { margin: 0; }
.seeds-toggle[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.seeds-panel .note { margin-top: var(--s-3); }
.seeds-status { color: var(--ink); font-weight: 500; }
.seeds-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.seeds-list li { display: flex; gap: var(--s-2); }
.seed-btn { flex: 1 1 auto; min-width: 0; min-height: var(--tap); display: grid; align-content: center; text-align: left; padding: 4px var(--s-3);
  border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); color: var(--ink); font: inherit; cursor: pointer; }
.seed-btn:hover { border-color: var(--ink); }
.seed-btn small { font-size: var(--t-13); color: inherit; }
.seed-btn[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.seed-rm { flex: none; min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); color: var(--ink); font: inherit; cursor: pointer; }
.seed-rm:hover { border-color: var(--ink); }
.seed-rm[aria-disabled="true"], #seed-add[aria-disabled="true"] { border-style: dashed; color: var(--ink-2); }
#seed-add { margin-top: var(--s-3); }
@media print { .seed-layer { display: none !important; } }

/* ------------------------------------------------------------------ boxes (box.js): supporting detail folds into a ruled summary line
   A box reads like a drawing-sheet section: the heading line, the CURRENT VALUE at the right, one hairline rule, a small plus / minus drawn in
   two strokes (no chevron, no card, no fill). The summary is a 44 px target and carries the ordinary focus ring (inset, so no scroller clips it). */
.box { border-bottom: 1px solid var(--hair); }
.box > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: 6px 0; cursor: pointer; }
.box > summary::-webkit-details-marker { display: none; }
.box > summary > .h { flex: none; margin: 0; }
.box > summary > .box-sum { flex: 1 1 auto; min-width: 0; margin-left: auto; text-align: right; font-size: var(--t-14); color: var(--ink-3); }
.box > summary::after {
  content: ""; flex: none; width: 12px; height: 12px; color: var(--ink-2);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
}
.box[open] > summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat; }
.box > summary:hover { background: var(--sheet); }
.box > summary:focus-visible { outline-offset: -2px; }
.box-body { padding: var(--s-1) 0 var(--s-4); }
.box-body > :first-child { margin-top: 0; }
.field.box { padding: 0; }                                            /* the Layout section is itself a box */
.field.box > .box-body { padding-top: var(--s-2); }
.sun > .box { margin-top: var(--s-3); border-top: 1px solid var(--hair); }
.sun > .box .sun-sel { margin-top: 0; }
.sched-total { margin-bottom: var(--s-3); }
.box-body > .terms, .box-body > .speeds { margin-top: 0; }
.box-body > .sched { margin-top: 0; }
.lay .box > summary > .h { margin: 0; }
.lay-tables .box-body { padding-bottom: var(--s-3); }
@media print {
  details.box::details-content { content-visibility: visible; display: block; }       /* an engine that prints without firing beforeprint still shows every box open */
  .box { border-bottom: 0; }
  .box > summary { min-height: 0; padding: 1mm 0; gap: 3mm; }
  .box > summary::after { display: none; }
  .box > summary:hover { background: none; }
  .box > summary > .box-sum { font-size: 12px; }
  .box-body { padding: 0 0 2mm; }
  .sun > .box { margin-top: 1mm; border-top: 0; }
  .lay .box > summary > .h { font-size: 13px; }
}

/* Hemiola is a face preview of an open screen: the label is a visible note, not fine print */
.pick-p { grid-column: 2 / -1; padding-bottom: var(--s-2); font-size: var(--t-13); color: var(--ink-2); }
.pick { grid-template-rows: auto; }
.preview-note { color: var(--ink); font-weight: 500; }
.preview-copy { display: block; margin-top: var(--s-2); font-size: var(--t-13); font-weight: 500; color: var(--ink-2); }

/* ---- the quote screen: design, wall size, contact. The rest of the composer waits behind the explore button. */
html[data-mode="quote"] [data-full] { display: none !important; }
html[data-mode="full"] [data-quote] { display: none !important; }
#quote:focus, #q-done:focus, #q-status:focus { outline: none; }
#quote-maker { margin-top: 4px; font-size: var(--t-14); }
/* The size fields come first: on a phone the designs sit in one scrolling line (4 px above and below, and scroll padding, keep the focus ring whole).
   Narrower than a phone, and on a zoomed desktop, they wrap: nobody there has to scroll sideways (WCAG 1.4.10). On a desktop they move under the wall, so the form starts at the top. */
@media (min-width: 341px) and (max-width: 599px) {
  html[data-mode="quote"] .q-designs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -4px calc(var(--gutter) * -1); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter); }
  html[data-mode="quote"] .q-designs::-webkit-scrollbar { display: none; }
  html[data-mode="quote"] .q-designs .seg { flex: 0 0 auto; padding: 0 var(--s-4); }
}
@media (min-width: 600px) {
  html[data-mode="quote"] .q-designs .seg { flex: 1 1 calc(25% - var(--s-2)); padding: 0 var(--s-2); }
}
@media (min-width: 960px) {
  html[data-mode="quote"] .quick { display: grid; }
  html[data-mode="quote"] .field.dc { display: none; }
  html[data-mode="quote"] #quote { padding-top: 0; border-top: 0; }
}
.q-wall { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-3); }
.q-wall[hidden] { display: none; }
.q-form { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.q-form[hidden], .q-done[hidden] { display: none; }
.qf { display: grid; gap: 4px; font-size: var(--t-14); color: var(--ink-2); min-width: 0; }
.qf input, .qf textarea { width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--ctl); border-radius: var(--r); background: var(--sheet); color: var(--ink); font: inherit; font-size: 16px; }
.qf textarea { resize: vertical; }
.qf input:hover, .qf textarea:hover { border-color: var(--ink); }
.qf input[aria-invalid="true"] { border-color: var(--redline); }
.qf-err { color: var(--redline); font-size: var(--t-13); }
.qf-err[hidden] { display: none; }
.qf-buyer { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); margin: 0; padding: 0; border: 0; font-size: var(--t-14); color: var(--ink-2); }
.qf-buyer legend { padding: 0; margin-bottom: 4px; }
.qf-buyer label { display: flex; align-items: center; gap: 8px; min-height: var(--tap); color: var(--ink); cursor: pointer; }
.qf-buyer input { flex: none; width: 24px; height: 24px; margin: 0; }
.qf-buyer .qf-err { flex-basis: 100%; }
.qf-check { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; font-size: var(--t-14); color: var(--ink); cursor: pointer; }
.qf-check input { width: 24px; height: 24px; margin: 0; }
.qf-check a, #q-privacy a { display: inline-block; min-height: 24px; line-height: 24px; }
.qf-hint { margin: 0; }
.q-submit { width: 100%; }
.q-submit[aria-disabled="true"] { opacity: .6; cursor: progress; }
.q-done { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-4); border: 1px solid var(--rule); border-radius: var(--r); }
.q-done p { margin: 0; }
.q-done .btn { justify-self: start; }
.q-explore { display: grid; gap: 2px; width: 100%; margin-top: var(--s-4); padding: var(--s-3) 0; background: none; border: 0; border-top: 1px solid var(--hair); text-align: left; color: var(--ink); font: inherit; font-size: var(--t-15); font-weight: 500; cursor: pointer; }
.q-explore span { text-decoration: underline; text-underline-offset: 3px; }
.q-explore small { font-size: var(--t-13); font-weight: 400; color: var(--ink-3); }
