@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --bg: #f6f4ef; --card: #ffffff; --line: #d9d4c7; --text: #1f2328; --muted: #6b6f76; --accent: #c8781a; --accent-fg: #fff; --ok: #2f8f4e; --sky: #8befff; --sky-soft: #e4f8f9; --sky-ink: #071b30; --glass: #ffdf9a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14171a; --card: #1c2024; --line: #2f353b; --text: #e4e7ea; --muted: #8b949c; --accent: #f5a524; --accent-fg: #111; --ok: #5cb85c; --sky: #61f2ff; --sky-soft: #14303a; --sky-ink: #071b30; --glass: #ffdf9a; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.45 Inter, system-ui, sans-serif; }
.wrap { max-width: 640px; margin: 0 auto; padding-block: 16px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header .home img { vertical-align: -8px; margin-right: 8px; }
header .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lang { display: flex; gap: 2px; font-size: .8rem; letter-spacing: .04em; }
.lang a { padding: 4px 6px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.lang a:hover { color: var(--text); background: var(--card); }
.lang a[aria-current] { color: var(--sky-ink); background: var(--sky); font-weight: 600; }
header .home { display: inline-block; color: var(--accent); text-decoration: none; font-weight: 700; margin-bottom: 6px; }
header h1 { font-size: 1.5rem; margin: 0 0 4px; text-wrap: balance; }
header p { margin: 0 0 16px; color: var(--muted); }
.steps { display: flex; gap: 4px; margin-bottom: 16px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; border-top: 3px solid var(--sky); }
.card h2 { font-size: 1.15rem; margin: 0 0 10px; }
.card p.help { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
label { display: block; font-size: .95rem; margin-bottom: 10px; }
label span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 2px; }
input[type=text], input[type=number], input[type=email], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
}
textarea { min-height: 90px; resize: vertical; }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.num { display: flex; align-items: stretch; }
.num button { width: 40px; flex: none; }
.num input { text-align: center; border-radius: 0; -moz-appearance: textfield; }
.num input::-webkit-inner-spin-button { display: none; }
.num button:first-child { border-radius: 6px 0 0 6px; } .num button:last-child { border-radius: 0 6px 6px 0; }
button, .btn { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
button:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row .spacer { flex: 1; }
.room { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.room:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.room h3 { font-size: 1rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.room h3 input { flex: 1; }
.room h3 button { padding: 6px 10px; }
.choice { display: grid; gap: 6px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { margin-top: 3px; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.total { font-size: 1.6rem; font-weight: 700; margin: 6px 0; text-wrap: balance; }
.total small { font-size: .95rem; font-weight: 400; color: var(--muted); display: block; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
td.q { white-space: nowrap; width: 3em; color: var(--muted); }
td.r { text-align: right; white-space: nowrap; }
td .why { color: var(--muted); font-size: .85rem; }
ul.assump { padding-left: 18px; margin: 6px 0; color: var(--muted); font-size: .9rem; }
.msg { color: var(--ok); margin-top: 8px; }
.warn { color: var(--accent); margin-top: 8px; }
footer { color: var(--muted); font-size: .85rem; margin-top: 24px; }
[hidden] { display: none !important; }
.choice.brands { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice.brands label.note { grid-column: 1 / -1; display: grid; gap: 4px; cursor: default; }
.choice.brands label.note input { width: 100%; }
.card h2 small { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 6px; }
.card h2.next { margin-top: 14px; }
.card h3.sub { font-size: 1rem; margin: 14px 0 6px; }
.card p.help.after { margin: 10px 0 0; }
p.help.where { color: var(--muted); margin: 0 0 8px; font-size: .95rem; }
/* 2026-11-23, the page in the owner's order: answers as cards (two to a row where they are short), a notice, and the room step */
.choice.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
.choice.cards label, .choice.two label { min-height: 44px; }
.choice.cards.pics label { flex-direction: column; align-items: center; text-align: center; position: relative; }
.choice.cards.pics input { position: absolute; top: 8px; left: 10px; margin: 0; }
.pic { width: 96px; max-width: 100%; height: auto; color: var(--text); }
.notice { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--sky); border-radius: 6px; background: var(--sky-soft); color: var(--text); font-size: .92rem; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li + li { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button { min-height: 44px; padding: 6px 12px; border-radius: 22px; font-size: .9rem; }
.chips button[aria-current] { background: var(--sky); border-color: var(--sky); color: var(--sky-ink); font-weight: 600; }
.q { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.q h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 8px; }
.q h3 .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sky); color: var(--sky-ink); font-size: .8rem; font-weight: 700; }
.q h4 { font-size: .95rem; margin: 16px 0 6px; }
.q > label:last-child, .q .choice:last-child { margin-bottom: 0; }
/* a wall box drawn: a frame around its positions. A position is --w cells wide (set on it by the page) and a cell is --cell, so the same drawing is a
   card, a picked box and a line of the result; the positions shrink together where a long frame meets a narrow phone */
.frame { --cell: 28px; display: inline-flex; max-width: 100%; min-width: 0; gap: 3px; padding: 4px; border: 1.5px solid var(--muted); border-radius: 8px; background: var(--bg); color: var(--text); }
.frame.units { gap: 0; }
.pos { flex: 0 1 auto; width: calc(var(--w) * var(--cell)); min-width: 0; padding: 0; margin: 0; display: flex; align-items: center; border: 0; border-radius: 5px; background: none; color: inherit; }
.pos svg, .ico svg { display: block; width: 100%; height: auto; }
.boxrow { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
/* a picked box is one frame: one outline around its positions, a thin line between them (two outlined tiles read as two single frames, owner
   2026-11-26); what is done with the box is said in words under it */
.boxtop { display: flex; align-items: center; }
.boxtop .frame { --cell: 46px; gap: 0; padding: 5px; border: 2px solid var(--text); border-radius: 10px; background: var(--card); }
.boxacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.boxacts button { min-height: 44px; padding: 0 12px; }
.boxrow .pos + .pos { box-shadow: -1px 0 0 var(--line); }
.boxrow button.pos { min-height: 44px; cursor: pointer; background: none; border-radius: 0; }
.boxrow button.pos[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 5px; }
.boxrow button.pos.lacks { color: var(--muted); }
.boxrow p.boxnote { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .92rem; }
.tools > b { flex: 1 0 100%; }
.tools button { min-height: 44px; }
.tools .gangs { display: inline-flex; align-items: center; gap: 8px; }
.tools .gangs button { width: 44px; padding: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; flex: 1 1 88px; max-width: calc(50% - 4px); min-height: 44px; min-width: 0; padding: 10px 6px; font-size: .82rem; line-height: 1.25; text-align: center; }
.pick[aria-pressed="true"] { border-color: var(--accent); }
.kinds { flex: 1 0 100%; }
.kinds .kindsq { flex: 1 0 100%; color: var(--muted); }
.kinds .pick { flex: 1 1 72px; max-width: calc(33.3% - 6px); font-size: .74rem; }
.kinds .pick b { max-width: 100%; overflow-wrap: anywhere; }
.pick.wide { flex: 2 1 150px; max-width: 100%; }
.pick .frame { pointer-events: none; margin-bottom: 2px; }
.pick b { font-weight: 600; }
.pick small { color: var(--muted); }
.card p.lacking { margin: 10px 0 0; }
.pick:hover, .pick:focus-visible { border-color: var(--accent); }
button:focus-visible, .choice label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fit { display: flex; align-items: flex-start; gap: 8px; }
.fit > div { min-width: 0; }
.ico { --cell: 22px; flex: none; display: inline-flex; color: var(--text); }
.ico svg { width: calc(var(--w) * var(--cell)); }
.card p.boxsum { margin: 10px 0 0; }

/* a room set up like another one */
.same { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 2px; }
.same select { flex: 1 1 160px; min-width: 0; }
/* the estimate on paper or as a PDF: the result alone, without the form, the buttons and the page's own chrome */
@media print {
  header nav, #steps, .where, .row, #contact, footer a, .lang { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 0; box-shadow: none; padding: 0; break-inside: auto; }
  tr, li { break-inside: avoid; }
}
/* the visitor's say-so before the enquiry is sent */
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; }
.agree input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; }
.agree span { flex: 1; }
/* the visitor's photographs on the enquiry form */
.photobox { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.photobox p { margin: 0 0 6px; }
.photobox ul { list-style: none; margin: 0 0 8px; padding: 0; }
.photobox li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.photobox li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
