/* AJ Workspace: "Field Spec" identity (design B, chosen 2026-11-23: Field Spec character with softer cards). Mobile first.
   Obsidian and warm stone, hi-vis lime only as a fill with dark ink (or on the dark), 45-degree cut corners on the main buttons,
   Space Grotesk for headings, IBM Plex Mono for prices, numbers and small labels (both self-hosted, SIL OFL, see static/ws/fonts/LICENSES.md).
   No external requests. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/SpaceGrotesk-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-latin-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexMono-latin-600.woff2") format("woff2"); }
:root {
  /* Field Spec palette (2026-11-23): obsidian and warm stone, hi-vis lime as the brand accent (a fill, with dark ink: 13.7:1), orange and brick
     as supporting tones, the old yellow only in the logo. The name --yellow is kept so every rule below still works; its value is the lime.
     Lime and orange are never text on a light background; accent text on light is --orange-ink (#b3400a, 5.1:1 on the stone). */
  --night: #121512;
  --night-2: #1c211c;
  --night-3: #2a312a;
  --paper: #f4f1ea;
  --card: #ffffff;
  --field: #f2efe9;
  --ink: #121512;
  --muted: #4a524a;
  --line: #d5d0c5;
  --edge: #8c8878;
  --yellow: #c4ee1f;
  --yellow-ink: #121512;
  --logo: #ffd23f;
  --orange: #ff6f1a;
  --orange-ink: #b3400a;
  --brick: #c8472b;
  --w: 640px;
  --ok: #1d8a58;
  --warn: #9a5b00;
  --blue: #2a5b9a;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --tap: 56px;
  --cut: 16px;
  --bw: 1.5px;      /* card and button outlines: thinner than the first identity (Caks, 2026-11-23) */
  --radius: 14px;   /* softer cards (the Pro Field Edition concept) */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 92px;
}
a { color: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 16px; }
.small { font-size: 14px; color: var(--muted); }
.hide { display: none !important; }

h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 32px; line-height: 1.1; margin: 8px 0 8px; }
/* a section heading is a small mono label with a ruler line after it, like the label on a drawing */
h2 { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
h2::after { content: ""; flex: 1; height: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 8px); opacity: .22; }
p.lead { color: var(--muted); margin: 0 0 14px; }

/* ---- top bar: obsidian, a small lime square and the name in mono (no hazard stripe) ---- */
.top { background: var(--night); color: #fff; position: relative; padding: 10px 0 8px; }
.top .wrap { padding: 4px 16px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: .25em; font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.brand::before { content: ""; width: 14px; height: 14px; background: var(--yellow); margin-right: 10px; flex: none; }
.brand b { color: inherit; font-weight: 600; }
.chip-phone { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #c3ccc2; border: 1px solid #4a554a; border-radius: 999px; padding: 4px 10px; }

.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
/* ---- the first screen: what is the job? ---- */
.start { margin: 14px 0 0; }
.start h1 { font-size: 34px; margin: 0 0 6px; }
.boardline { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.boardline b { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 17px; }

/* ---- buttons: cut-corner signage ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px; font: inherit; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .01em; cursor: pointer; text-decoration: none;
  background: var(--yellow); color: var(--yellow-ink); border: 0; border-bottom: 4px solid #8fae17;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform .1s ease, border-bottom-width .1s ease, filter .12s ease; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; filter: brightness(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
/* primary = lime with a solid edge and a cut corner, secondary = outlined, danger = outlined in brick: three clear levels */
.btn.secondary { background: var(--card); color: var(--ink); border: var(--bw) solid var(--ink); border-bottom-width: 3px; clip-path: none; border-radius: 10px; }
.btn.danger { background: var(--card); color: var(--brick); border: var(--bw) solid #e5b7ac; border-bottom: 3px solid #d9a092; clip-path: none; border-radius: 10px; }
.btn.secondary:active, .btn.danger:active { border-bottom-width: var(--bw); }
.btn.block { width: 100%; }
.btn.home-blank { font-size: 15px; padding: 0 12px; }
.btn.big { min-height: 62px; font-size: 18px; letter-spacing: .03em; text-transform: uppercase; }
/* the main action takes the first line of a button row; the lesser one sits beside it only when there is room for both */
.btn-row .btn.big { flex: 2 1 220px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.btn-row .btn { flex: 1 1 140px; }
/* the lime (main) button gets the larger share of a row, so its words need two lines at most on a 360 px phone */
.btn-row .btn:not(.secondary):not(.danger):not(.big) { flex: 3 1 150px; padding: 0 14px; }
.link-btn { display: inline-flex; align-items: center; vertical-align: middle; min-height: 44px; background: none; border: 0; color: var(--ink); text-decoration: underline; font: inherit; padding: 0 4px; cursor: pointer; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* a visible keyboard focus on every link, button and card (the form fields keep their own) */
a:focus-visible, button:focus-visible, summary:focus-visible, .tile:focus-visible, .tpl:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---- tiles ---- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 14px 0; }
.tile { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; min-height: 84px; padding: 14px 16px; text-decoration: none;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--radius); position: relative; transition: transform .12s ease; }
.tile:active { transform: translateY(2px); }
.tile .ico { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--night); color: var(--yellow); border-radius: 10px; }
.tile strong { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1.1; align-self: end; }
.tile span.d { color: var(--muted); font-size: 15px; align-self: start; }
.tile.has-go { grid-template-columns: 44px minmax(0, 1fr) 24px; }
.tile.has-go .ico { grid-column: 1; grid-row: 1 / span 2; }
.tile.has-go strong { grid-column: 2; grid-row: 1; }
.tile.has-go .d { grid-column: 2; grid-row: 2; }
.tile .go { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 24px; height: 24px; color: var(--ink); transition: transform .15s ease; }
.tile:hover .go { transform: translateX(3px); }
.tile:hover { border-color: var(--orange-ink); }
.tile.quiet { background: transparent; border-style: dashed; border-color: #8c8878; }
.tile.quiet .ico { background: #c9c6ba; color: var(--ink); }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* ---- forms ---- */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
/* a field has a stone fill and an edge you can see on white and on the page (3:1 or better) */
input, select, textarea { width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--field); border: var(--bw) solid var(--edge); border-radius: 10px; }
input[type="number"], input[inputmode="decimal"], input[inputmode="numeric"] { font-family: var(--mono); font-weight: 500; }
input:focus, select:focus, textarea:focus { outline: 3px solid #ffe28a; border-color: var(--ink); background: #fff; }
/* the grey hint text stays in the phone's own font: it is longer than the mono numbers and has to fit the narrow fields */
input::placeholder, textarea::placeholder { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 400; }
textarea { min-height: 96px; }
.row { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; }
.check { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 700; }
.check input { width: 26px; min-height: 26px; height: 26px; accent-color: var(--night); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label-row label { margin-bottom: 6px; }
.speak { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--yellow); color: var(--yellow-ink); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 0 18px 0 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; min-height: 44px; min-width: 44px; }
.speak .icon { width: 20px; height: 20px; }
.speak.listening { background: var(--night); color: var(--yellow); }
.speak.starting { opacity: .6; }
/* ---- Get paid (2026-11-24): a card on the job page once the job is Completed ---- */
.gp .pilot-choice { margin: 6px 0; }
.gp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.gp-grid > div { min-width: 0; }
.gp-grid label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.gp-grid .gp-rate { grid-column: 1 / -1; }
.gp-h { font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 4px; }
.gp-msg { border-top: 1px solid var(--line); padding: 10px 0 2px; }
.gp-text { margin: 6px 0 0; font-size: 15px; background: var(--field); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.speak:disabled { cursor: progress; }
.no-speech [data-speak], .no-speech .speech-note { display: none; }
/* (2026-11-25) iPhone: "press the microphone on your keyboard". Dark block, large words and a drawing of the keyboard with its microphone marked, so it is not missed. */
.mic-hint { display: flex; align-items: center; gap: 12px; background: var(--night); color: #fff; border: 3px solid var(--yellow); border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; font-size: 19px; line-height: 1.25; font-weight: 800; scroll-margin-top: 76px; animation: mic-call 900ms ease-in-out 3; }
.mic-hint small { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--yellow); }
.mic-kb { flex: 0 0 96px; width: 96px; height: 76px; margin-left: auto; }
.mic-kb .kb { fill: #e6e8e4; }
.mic-kb .keys { fill: #8b928b; }
.mic-kb .spot { fill: var(--yellow); stroke: var(--night); stroke-width: 2.5; transform-origin: 80px 63px; animation: mic-spot 900ms ease-in-out 6; }
.mic-kb .spot-mic { fill: none; stroke: var(--night); stroke-width: 2; stroke-linecap: round; }
.speak.waiting { opacity: .3; }
@keyframes mic-spot { 50% { transform: scale(1.2); } }
@keyframes mic-call { 50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(196, 238, 31, .45); } }
select { appearance: auto; }

/* ---- cards ---- */
.card { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.line { border-top: 2px dotted var(--line); padding-top: 10px; margin-top: 10px; }
.line:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
/* an empty list shows a picture and the next step, not only a sentence */
.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 24px 18px 20px; margin: 12px 0; border: 2px dashed rgba(18, 21, 18, .35); border-radius: 16px; }
.empty-state .es-art { width: 76px; height: 76px; display: grid; place-items: center; background: var(--night); border-radius: 50%; }
.empty-state .es-art .i3 { width: 46px; height: 46px; }
.empty-state strong { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; line-height: 1.15; }
.empty-state p { margin: 0; color: var(--muted); max-width: 30ch; }
.empty-state .btn { margin-top: 4px; }
.empty-state .es-up { width: 28px; height: 28px; transform: rotate(-90deg); color: var(--ink); }
.note { border-left: 5px solid var(--orange); background: #fbf3df; padding: 10px 12px; border-radius: 4px 10px 10px 4px; margin: 12px 0; font-size: 15px; }
.note.bad { border-color: var(--brick); background: #fbe9e4; }

/* ---- totals ---- */
.totals { position: relative; background: var(--night); color: #fff; padding: 18px 16px; margin: 16px 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.totals .big { font-family: var(--mono); font-weight: 600; font-size: 40px; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--yellow); }
.totals dl { margin: 12px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 16px; }
.totals dt { color: #c3ccc2; }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
dl.plain { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 16px; }
dl.plain dd { margin: 0; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
dl.plain dd.low { color: #9b1c1c; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- honest tags on every figure ---- */
.steps { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; }
.steps li { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; border: 1.5px solid var(--line); white-space: normal; max-width: 100%; align-self: start; }   /* a long source note wraps inside its card instead of running off the screen */
.tag.you { color: #167046; border-color: #9fd3b8; }   /* the tag text is darker than the status green: 5.4:1 on the stone page, 6.1:1 on white */
.tag.calculated { color: var(--blue); border-color: #b7cdea; }
.tag.assumption { color: var(--warn); border-color: #ecc98a; }
.tag.unknown { color: #b53d22; border-color: #e5b7ac; }

/* ---- the job board: status chips, progress, job cards ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; border: var(--bw) solid var(--ink); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 44px; }
.chip .c { background: var(--night); color: var(--yellow); border-radius: 999px; min-width: 22px; padding: 0 7px; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--night); color: #fff; }
.chip[aria-pressed="true"] .c { background: var(--yellow); color: var(--yellow-ink); }
.jobcard { display: block; text-decoration: none; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 14px 16px 12px; margin: 12px 0; position: relative; animation: rise .45s ease both; }
.jobcard .top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.jobcard h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.jobcard .amount { font-family: var(--mono); font-weight: 600; font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the status is an outlined pill; the finished and the early ones get a quiet fill */
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: transparent; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
.badge.s-quote { color: var(--orange-ink); border-color: var(--orange-ink); }
.badge.s-paid, .badge.s-completed { background: var(--ok); border-color: var(--ok); color: #fff; }
.badge.s-enquiry, .badge.s-visit { background: #44566b; border-color: #44566b; color: #fff; }
.progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 12px; }
.progress i { display: block; height: 7px; background: #dcd9cf; border-radius: 2px; }
.progress i.on { background: var(--night); }
.progress i.now { background: var(--yellow); box-shadow: 0 0 0 2px var(--night) inset; }
.jobcard .meta { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.stepper button { border: var(--bw) solid var(--ink); background: var(--card); border-radius: 10px; min-height: 52px; padding: 4px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .02em; cursor: pointer; color: var(--ink); }
.stepper button .n { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.stepper button.done { background: var(--night); color: #fff; }
.stepper button.now { background: var(--yellow); color: var(--yellow-ink); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.timeline li { padding: 4px 0 4px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }

/* ---- photos ---- */
.thumbs, .photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.thumb { position: relative; aspect-ratio: 1; background: #e7e4da; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.photo-grid img { aspect-ratio: 1; }
.thumb .x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(14,23,34,.85); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* ---- timing sheet ---- */
.clockcard { text-align: center; }
.clock { font-family: var(--mono); font-weight: 600; font-size: 64px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }

/* ---- bottom navigation: obsidian, the current tab in lime ---- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--night); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--night-3); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 66px; text-decoration: none; color: #a4b1a4; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative; }
.nav a[aria-current="page"] { color: var(--yellow); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--yellow); }

/* On a phone the keyboard pushes the fixed bottom menu up over the form (seen on an iPhone, 2026-11-23): while a text or number field is being typed in,
   the menu steps aside and the live total bar drops to the bottom edge. Checkboxes and buttons do not count. */
@media (hover: none) and (pointer: coarse) {
  body:has(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="file"]):focus, textarea:focus, select:focus) .nav { display: none; }
  body:has(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="file"]):focus, textarea:focus, select:focus) .totbar { bottom: env(safe-area-inset-bottom, 0px); }
}

/* ---- customer view: clean, printable ---- */
.paper { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 20px; }
.paper h1 { font-size: 28px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 15px; }
.paper th, .paper td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.paper td.num, .paper th.num { text-align: right; font-variant-numeric: tabular-nums; }
.paper .grand { font-size: 22px; font-weight: 800; }
.paper ul.excl { margin: 6px 0 10px; padding-left: 20px; }

/* ---- what is in the price: quick buttons wrap; a payment is its name on one line, then amount, unit and remove ---- */
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.lab-sub { font-weight: 700; margin: 14px 0 6px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 84px 48px; gap: 8px; align-items: center; margin-bottom: 12px; }
.stage [data-s="label"] { grid-column: 1 / -1; }
.stage .rm { justify-content: center; min-height: 48px; padding: 0; }

/* ---- motion: gentle, and off when the phone asks for less ---- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s ease both; }
.rise:nth-child(2) { animation-delay: .06s; } .rise:nth-child(3) { animation-delay: .12s; } .rise:nth-child(4) { animation-delay: .18s; } .rise:nth-child(5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media print {
  .top, .nav, .no-print, .site-foot { display: none !important; }
  body { background: #fff; padding: 0; }
  .paper { border: 0; padding: 0; }
}

/* ---- customer page: opened by a customer from a link, no account ---- */
.cust-top { background: var(--night); position: relative; padding: 18px 0 14px; color: #fff; }
.cust-top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--yellow); }
.cust-biz { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; display: block; padding: 6px 16px 0; max-width: var(--w); margin: 0 auto; }
.cust { padding-bottom: 40px; }
.eyebrow.dark { color: var(--muted); }
.centre { text-align: center; }
.note.ok { border-color: var(--ok); background: #e5f5ec; }
.answer { margin-top: 18px; }
.answer .btn { margin-top: 12px; }
details.ask summary { list-style: none; cursor: pointer; margin-top: 12px; }
details:not(.ask):not(.whours) > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 700; }
details.ask summary::-webkit-details-marker { display: none; }

/* ================= 3D identity: icons, template cards, material rows, total bar ================= */
/* One icon construction (side, face, accent, ink, highlight); the colours come from variables set where it is used. */
.i3s { fill: var(--i-side); stroke: var(--i-ink); stroke-width: var(--i-sw); stroke-linejoin: round; }
.i3f { fill: var(--i-face); stroke: var(--i-ink); stroke-width: var(--i-sw); stroke-linejoin: round; }
.i3a { fill: var(--i-acc); stroke: var(--i-ink); stroke-width: var(--i-swa); stroke-linejoin: round; }
.i3k { fill: none; stroke: var(--i-ink); stroke-width: var(--i-swk); stroke-linecap: round; stroke-linejoin: round; }
.i3h { fill: none; stroke: var(--i-hi); stroke-width: 2.6; stroke-linecap: round; }
.i3 { width: 30px; height: 30px; flex: none; overflow: visible;
  --i-face: var(--yellow); --i-side: #7d9a0c; --i-ink: #0d130e; --i-acc: #2f3a32; --i-hi: rgba(255,255,255,.75);
  --i-sw: 2.4; --i-swa: 2; --i-swk: 3; }
.btn .i3 { width: 28px; height: 28px; --i-face: #fff; --i-side: #7a5d00; --i-ink: var(--yellow-ink); --i-acc: #8fae17; }
.tile .ico .i3 { width: 34px; height: 34px; }

.nav .i3 { width: 32px; height: 32px; --i-face: #98a698; --i-side: #3a423a; --i-acc: #3a423a; --i-ink: #050806; --i-hi: rgba(255,255,255,.35); transition: transform .18s ease; }
.nav a[aria-current="page"] .i3 { --i-face: var(--yellow); --i-side: #7d9a0c; --i-acc: #2f3a32; --i-hi: rgba(255,255,255,.75); transform: translateY(-2px) scale(1.08); }

/* ---- template cards ---- */
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0 4px; }
@media (min-width: 560px) { .tpl-grid { grid-template-columns: repeat(4, 1fr); } }
.tpl { position: relative; display: grid; gap: 8px; justify-items: start; text-align: left; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 10px 10px 12px;
  transition: transform .1s ease, border-bottom-width .1s ease, background .2s ease; }
.tpl .art { width: 100%; height: 76px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(160deg, #f4f1e8, #e3dfd2); }
.tpl .art .i3 { width: 62px; height: 62px; }
.tpl b { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.1; }
.tpl small { color: var(--muted); font-size: 13px; margin-top: -4px; }
.tpl.added { background: #fff7d6; animation: pop .45s cubic-bezier(.2,1.5,.4,1) both; }
.tpl.added::after { content: "Added"; position: absolute; top: 14px; right: 14px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; animation: tick .4s ease both; }
.art-bathroom-tiling { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #ffffff; --i-side: #9db4c8; --i-acc: #4aa3df; }
.art-kitchen-splashback { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #fbfaf5; --i-side: #b8b4a4; --i-acc: #7fc8a9; }
.art-paint-room { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #e8664b; --i-side: #9a3a26; --i-acc: #fff; }
.art-floor-laying { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #e2a766; --i-side: #94622b; --i-acc: #fff; }
.art-plasterboard-wall { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #f3f1ea; --i-side: #aaa697; --i-acc: #6b8fb5; }

/* ---- material rows: a numbered card with the line total at the foot ---- */
/* (2026-11-23, design A group) compact: the number sits in the header row, Speak is a microphone inside the field, Remove is a 44 px button in the header,
   the line total only takes a row when there is a figure. About 190 px a line instead of about 265. */
.mat { position: relative; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 2px 10px 10px 12px; margin: 12px 0 8px; }
.mat.fresh { animation: slidein .35s ease both; }
.mat-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mat .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--yellow);
  font-family: var(--mono); font-weight: 600; font-size: 14px; }
.mat-head label { flex: 1; margin: 0; font-size: 14px; color: var(--muted); }
.rm { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; background: none; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.rm:hover, .rm:active { color: var(--brick); }
.rm .icon { width: 20px; height: 20px; }
.descbox { position: relative; }
.descbox .desc { padding-right: 54px; }
.descbox .speak { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; }
.mat .desc { font-weight: 800; font-size: 18px; min-height: 48px; }
.mat label { margin: 8px 0 3px; font-size: 14px; color: var(--muted); }
.mat input, .mat select { min-height: 48px; padding: 8px 6px 8px 8px; }
.mat select { padding-right: 2px; }
.mat input::placeholder { font-size: 15px; }
.mat .row3 { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 8px; }   /* the unit column is wide enough for "litre", "each" and "pack" with the arrow */
.mat .sum { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; padding-top: 6px; border-top: 2px dotted var(--line); }
.mat .sum:has(.tot:empty) { display: none; }
.mat .sum .tot { font-family: var(--mono); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.mat .sum .tot.waits { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); }
.mat .sum .tot.pop { animation: pop .35s cubic-bezier(.2,1.5,.4,1) both; }

/* ---- the live total bar: always in sight while pricing ---- */
.totbar { position: fixed; left: 0; right: 0; bottom: calc(69px + env(safe-area-inset-bottom)); z-index: 4; padding: 0 10px; pointer-events: none; }
.totbar .in { max-width: 620px; margin: 0 auto; pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--night); color: #fff; padding: 8px 12px 8px 16px; border: 0; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -8px 22px rgba(0,0,0,.28); animation: slidein .3s ease both; }
.totbar .lab { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #c3ccc2; }
.totbar .amt { font-family: var(--mono); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.totbar .why { font-size: 12px; color: #c3ccc2; }
.totbar .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.totbar.away { display: none; }
body[data-page="quote"] { padding-bottom: 168px; }
.totals .big { font-size: 44px; }

/* ---- motion that tells you something happened (all off when the phone asks for less) ---- */
@keyframes pop { 0% { transform: scale(.92); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tick { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.stepper button.pop { animation: pop .45s cubic-bezier(.2,1.5,.4,1) both; }
.progress i.now { transform-origin: left; animation: grow .5s ease both; }
.btn.saved { animation: pop .4s cubic-bezier(.2,1.5,.4,1) both; background: var(--ok); color: #fff; border-bottom-color: #0f5a38; }
/* an outlined button keeps a yellow icon (the default icon on a button is white, for the yellow one) */
.btn.secondary .i3 { --i-face: var(--yellow); --i-side: #7d9a0c; --i-ink: #0d130e; --i-acc: #2f3a32; }

.jobcard .next { margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jobcard .next::before { content: "\2192\00a0"; color: var(--ink); }
.jobcard .next b { color: var(--ink); }

/* ---- the strip that says where the jobs are (each pill opens the job board, filtered) ---- */
.pulse { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 4px 16px 8px; scrollbar-width: none; }
.pulse::-webkit-scrollbar { display: none; }
.pill { flex: none; display: flex; align-items: center; gap: 10px; background: var(--card); color: var(--ink); text-decoration: none;
  border: var(--bw) solid var(--ink); border-bottom-width: 3px; border-radius: 12px; padding: 6px 14px 6px 8px;
  transition: transform .1s ease, border-bottom-width .1s ease; animation: rise .45s ease both; }
.pill:active { transform: translateY(2px); border-bottom-width: var(--bw); }
.pill .pn { font-family: var(--mono); font-weight: 600; font-size: 22px; line-height: 1; min-width: 34px; text-align: center; background: var(--night); color: var(--yellow); border-radius: 8px; padding: 6px; }
.pill .pl { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }

/* enquiry link: the field only bots see, and the owner's inbox cards */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.card.enq { animation: slidein .3s ease both; }

/* the pilot's limit card (work package 2): the same card, buttons and tones as the rest, with one lime edge so it reads as a friendly note and not as an alert */
.pilot-count { margin: 12px 0 0; font-weight: 700; }
.pilot-card { border-top: 6px solid var(--yellow); padding-top: 12px; scroll-margin-top: 12px; animation: slidein .3s ease both; }
.pilot-card:focus { outline: 3px solid #ffe28a; outline-offset: 2px; }
.pilot-eyebrow { color: var(--orange-ink); }
.pilot-card h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; font-size: 22px; line-height: 1.15; margin: 6px 0 8px; }
.pilot-lead { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.pilot-fs { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.pilot-fs legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.pilot-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 8px 0; padding: 8px 14px; background: #fff;
  border: var(--bw) solid var(--edge); border-radius: 10px; font-weight: 700; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.pilot-choice input { width: 24px; min-height: 24px; height: 24px; flex: none; accent-color: var(--night); }
.pilot-choice:has(input:checked) { border-color: var(--ink); background: #f3fbd2; }
.pilot-choice:focus-within { outline: 3px solid #ffe28a; }

/* ---- photographs on the starting-list cards (when a photo file exists) and the three newer trades ---- */
.tpl .art.has-photo { padding: 0; overflow: hidden; height: 96px; background: #cfcabb; }
.tpl .art.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-roof-tiling { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #d9784a; --i-side: #8f4222; --i-acc: #5c3a2a; }
.art-bricklaying { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #c2553a; --i-side: #7a2f1c; --i-acc: #e8dcc8; }
.art-plumbing { --i-sw: 1.5; --i-swa: 1.3; --i-swk: 2; --i-face: #c8d2dc; --i-side: #7b8997; --i-acc: #3a8fd9; }

/* every card picture has the same height, photo or drawn icon, so a row stays level while photos are added one by one */
.tpl .art, .tpl .art.has-photo { height: 88px; }

/* ---- picture-first cards: the photograph is the card, the job name sits on it (the entry path's main visual) ---- */
.tpl-grid { gap: 12px; margin: 14px 0 6px; }
/* Field Spec: a wide photo card with a solid obsidian label bar and a small lime marker; eight cards fit in four short rows */
.tpl { display: block; padding: 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--night); aspect-ratio: 16 / 10;
  transition: transform .12s ease, box-shadow .12s ease; }
.tpl:active { transform: scale(.98); border-bottom-width: var(--bw); }
.tpl .art, .tpl .art.has-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: var(--night-2); }
.tpl .art.has-photo img { transition: transform .4s ease; }
.tpl:hover .art.has-photo img { transform: scale(1.04); }
.tpl b { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 6px 12px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.005em; text-transform: none; line-height: 1.1;
  background: var(--night); }
.tpl b::after { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

/* ---- character: a clear heading and one reaction when a card is tapped ---- */
.start h1, #picker h1 { font-size: 34px; line-height: 1.08; }
.start .lead, #picker .lead { font-size: 17px; margin-top: 8px; }
.tpl:focus-visible b::after { box-shadow: 0 0 0 3px var(--yellow); }
.jobcard .next b { color: var(--orange-ink); }

/* ---- wide screens: the app is a framed sheet on a darker backdrop, and the home page uses the width instead of leaving it empty ---- */
@media (min-width: 900px) {
  :root { --w: 780px; }
  body[data-page="home"] { --w: 1100px; }
  body { background: #e4dfd2; }
  main.wrap { background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 28px 70px rgba(18, 21, 18, .16); min-height: calc(100vh - 110px); padding: 26px 30px 120px; }
  .nav { left: 50%; right: auto; width: min(var(--w), 100%); transform: translateX(-50%); border-radius: 18px 18px 0 0; }
  .start h1, #picker h1 { font-size: 52px; }
  .start .lead, #picker .lead { font-size: 19px; }
  .tpl b { font-size: 19px; min-height: 42px; padding: 8px 16px; }
  .tpl-grid { gap: 16px; }
}

/* ---- the home page on a wide screen is its own composition: the cards (with a ninth "something else" tile) beside your jobs ---- */
.tpl-more { display: none; }
@media (min-width: 900px) {
  body[data-page="home"] { --w: 1180px; }
  .home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; align-items: start; }
  .home-main .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .home-blank { display: none; }
  .tpl-more { display: grid; place-content: center; justify-items: center; gap: 4px; aspect-ratio: 16 / 10; border-radius: var(--radius); text-align: center; text-decoration: none; color: var(--ink);
    border: 2px dashed rgba(18, 21, 18, .4); transition: border-color .15s ease, background .15s ease; }
  .tpl-more:hover, .tpl-more:focus-visible { border-color: var(--orange-ink); background: rgba(255, 111, 26, .07); }
  .tpl-more .plus { font-family: var(--mono); font-size: 44px; line-height: 1; color: var(--orange-ink); }
  .tpl-more b { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
  .tpl-more small { color: var(--muted); font-size: 15px; }
  .home-side { position: sticky; top: 16px; background: var(--card); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 4px 18px 18px; box-shadow: 0 10px 26px rgba(18, 21, 18, .12); }
  .home-side h2 { margin-top: 14px; }
  .home-side .pulse { margin: 10px 0 0; padding: 4px 0 8px; flex-wrap: wrap; overflow: visible; }
}

/* ---- coming up: the next bank holiday and a seasonal date, quiet and useful ---- */
.ahead { margin-top: 18px; }
.ahead-row { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 2px solid var(--line); }
.ahead-row .n { font-family: var(--mono); font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); border-left: 5px solid var(--yellow); padding-left: 10px; }
.ahead-row[data-tone="orange"] .n { border-left-color: var(--orange); }
.ahead-row[data-tone="brick"] .n { border-left-color: var(--brick); }
.ahead-row[data-tone="tax"] .n { border-left-color: var(--blue); }
.ahead-tax { margin: 6px 0 0; border-top: 2px solid var(--line); }
.ahead-tax summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; font-size: 15px; }
.ahead-tax .check { min-height: 44px; margin: 4px 0; font-weight: 600; font-size: 15px; }
.ahead-row .t b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1.15; }
.ahead-row .t small { color: var(--muted); font-size: 13px; }
.ahead-note { margin: 8px 0 0; }

/* ---- weather card (drawn only when the weather module is on): the working day in figures, no verdict ---- */
.weather { margin: 22px 0 0; padding: 2px 16px 16px; }
.weather h2 { margin-top: 12px; }
.weather .wmsg { margin: 8px 0; padding: 8px 10px; border-left: 6px solid var(--orange); background: #fff3e6; border-radius: 4px 10px 10px 4px; font-size: 15px; }
.wform label { margin-top: 6px; }
.wrow { display: flex; gap: 8px; }
.wrow input { flex: 1; min-width: 0; }
.wrow .btn { flex: 0 0 auto; min-width: 0; padding: 0 16px; }
.wrow input::placeholder { font-size: 16px; }
@media (max-width: 380px) { .wrow { flex-wrap: wrap; } .wrow input { flex: 1 1 100%; } .wrow .btn { flex: 1 1 100%; } }   /* on a 360 px phone the Show button drops under the field, so the hint text fits */
.wgps { width: 100%; margin-top: 10px; }
.wnote { margin: 10px 0 0; }
.wplace { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 8px; }
.wchange { background: none; border: 0; padding: 0 2px; min-height: 44px; font: inherit; font-weight: 700; text-decoration: underline; color: var(--ink); cursor: pointer; }
.wnow { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 2px solid var(--line); }
.wicon { width: 40px; height: 40px; flex: none; color: var(--ink); }
.wicon.lg { width: 64px; height: 64px; }
.wicon.sm { width: 32px; height: 32px; }
.wicon .occl { fill: var(--card); }
.wbig { font-family: var(--mono); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.wfeels { color: var(--muted); font-size: 15px; margin-left: 6px; }
.wtext { color: var(--muted); font-size: 15px; }
.whead { margin: 6px 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wday { padding: 12px 0; border-top: 2px solid var(--line); }
.wday-top { display: flex; align-items: center; gap: 10px; }
.wday-top b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.wday-top .wtext { margin-left: auto; text-align: right; }
.wfrom { font: 700 12px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: none; color: var(--muted); }
.wfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 10px 0 10px; }
.wfacts small { display: block; color: var(--muted); font-size: 12px; }
.wfacts b { font-family: var(--mono); font-weight: 600; font-size: 19px; }
.wbars { display: flex; align-items: flex-end; gap: 3px; height: 46px; border-bottom: 2px solid var(--ink); }
.wbars i { flex: 1; min-height: 3px; border-radius: 2px 2px 0 0; background: var(--line); }
.wbars i[data-lvl="lo"] { background: #b5cc8c; }
.wbars i[data-lvl="mid"] { background: var(--orange); }
.wbars i[data-lvl="hi"] { background: var(--brick); }
.wscale { display: flex; justify-content: space-between; margin-top: 3px; font-size: 12px; color: var(--muted); }
.wwhen { margin: 8px 0 2px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.whours summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.whours table { width: 100%; border-collapse: collapse; font-size: 14px; }
.whours th, .whours td { padding: 5px 6px; text-align: right; border-top: 1px solid var(--line); }
.whours th:first-child { text-align: left; }
.whours thead th { color: var(--muted); font-size: 12px; font-weight: 700; border-top: 0; }
.wcredit { margin: 12px 0 2px; }
.wdisc { margin: 4px 0 0; }
@media (min-width: 900px) {
  .weather { padding: 4px 24px 20px; }
  .wdays { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }   /* 3 days across; 2 fill the width in the evening */
  .wnow { border-top: 0; }
}

/* ---- wide screens, every main page: the width is used for something, never one narrow column with empty sides ---- */
@media (min-width: 900px) {
  body[data-page] { --w: 1180px; }
  body[data-page="view"], body[data-page="timing"], body[data-page="enquiries"], body[data-page="legal"] { --w: 780px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tools-tiles { grid-template-columns: repeat(4, 1fr); }
  .info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
  .info-grid .card { margin: 0; }
  .jobs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .jobs-main #job-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
  .jobs-main #job-list > p, .jobs-main #job-list > .empty { grid-column: 1 / -1; }
  .jobs-main #job-list .jobcard { margin: 0; }
  .jobs-side { position: sticky; top: 16px; background: var(--card); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 4px 18px 18px; box-shadow: 0 10px 26px rgba(18, 21, 18, .12); }
  .jobs-side h2 { margin-top: 14px; }
  .quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 44px; align-items: start; }
  .quote-side { position: sticky; top: 16px; }
  .totbar { display: none !important; }
  body[data-page="quote"] { padding-bottom: 120px; }
  .tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  #tool-out { position: sticky; top: 16px; }
  .job-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
}
@media (min-width: 1100px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  #tool-out:empty::before { content: "Your answer and the working will appear here."; display: grid; place-items: center; min-height: 200px; text-align: center; padding: 20px;
    color: var(--muted); border: 2px dashed rgba(18, 21, 18, .35); border-radius: 16px; }
}

/* ---- privacy and terms (design A group, 2026-11-23): the same look as the rest of the app; a "to confirm" marker shows what is still to be settled ---- */
.legal { padding-bottom: 24px; }
.legal h2 { font-family: var(--display); font-weight: 700; text-transform: none; letter-spacing: -.01em; font-size: 20px; }
.legal h2::after { display: none; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal .short { background: var(--card); border: var(--bw) solid var(--ink); border-left: 7px solid var(--yellow); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.legal .short ul { margin: 4px 0; }
.legal .tablewrap { overflow-x: auto; margin: 10px 0; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
mark.tbc { background: #fff3c4; color: var(--ink); padding: 1px 6px; border: 1px dashed var(--orange-ink); border-radius: 4px; }
.legal-links { display: flex; justify-content: center; gap: 4px; margin: 4px 0 0; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
/* the bottom of every page (2026-11-24): Privacy, Terms, Feedback, and the quiet credit */
.site-foot { margin: 22px 0 0; padding-top: 6px; border-top: 1px solid var(--line); text-align: center; }
.site-foot .legal-links { margin: 0; }
.site-foot .built { margin: 0; }
.site-foot .built a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 700; }
.btn { text-align: center; }
.link44 { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
/* the table of what is kept: on a phone each row is a small card with its column names, so nothing needs a sideways scroll */
@media (max-width: 640px) {
  .legal .tablewrap { overflow: visible; }
  .legal table, .legal tbody { display: block; min-width: 0; }
  .legal thead { position: absolute; left: -9999px; }
  .legal tr { display: block; background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 6px 12px; margin: 10px 0; }
  .legal td { display: block; border: 0; padding: 5px 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
