/* Furniture Zoo page layout: what the design system's components do not cover.
   Needs tokens.css and components.css, loaded before this file.
   Colours come from the tokens only. There is one breakpoint, 820px (--narrow). */

/* Base */
html{-webkit-text-size-adjust:100%}
body{margin:0}
.fz img{max-width:100%}
.fz dl,.fz dd{margin:0}
.muted{color:var(--muted)}

/* Skip link: off screen until it takes keyboard focus */
.skip-link{position:absolute;left:var(--space-4);top:var(--space-2);z-index:10;display:inline-flex;align-items:center;min-height:var(--tap-min);padding:0 var(--space-4);border-radius:var(--radius-pill);background:var(--surface);border:2px solid var(--green);font-weight:700;transform:translateY(-200%)}
.skip-link:focus{transform:none}

/* Centred column with side gutters */
.wrap{box-sizing:content-box;max-width:var(--content-max);margin:0 auto;padding-inline:clamp(var(--space-4),4vw,var(--space-12))}

/* ---------- Website ---------- */

.site{display:flex;flex-direction:column;min-height:100vh;font-size:16px}
.site-main{flex:1 0 auto}

.site-header{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) clamp(var(--space-3),2.4vw,var(--space-8));padding:var(--space-3) clamp(var(--space-4),4vw,var(--space-12));background:var(--surface);border-bottom:1px solid var(--line)}
.site-header__logo{display:flex;align-items:center;min-height:var(--tap-min);flex-shrink:0}
.logo{display:block;width:auto;height:40px}
.site-nav{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-6);flex-grow:1}
.site-nav a,.site-header__link{display:flex;align-items:center;min-width:var(--tap-min);min-height:var(--tap-min);font-weight:500;text-decoration:none}
.site-nav a:hover,.site-header__link:hover{text-decoration:underline}
.site-nav a[aria-current]{font-weight:700;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.site-header__account{display:flex;align-items:center;gap:var(--space-4);margin-left:auto}

/* Home: headline */
.hero{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-5);padding-block:clamp(var(--space-8),5vw,56px) clamp(var(--space-6),3vw,var(--space-10))}
.hero__title{max-width:20ch;font-size:clamp(32px,4.4vw,50px);line-height:1.08;font-weight:800;letter-spacing:-0.02em}
.hero__intro{max-width:46ch;font-size:clamp(17px,1.5vw,19px);color:var(--muted)}

/* Sections of a page */
.section{display:flex;flex-direction:column;gap:var(--space-6);padding-block:clamp(var(--space-5),3vw,var(--space-10))}
.section--last{padding-bottom:clamp(var(--space-10),6vw,var(--space-18))}
.section__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:var(--space-1) var(--space-6)}
.section__title{font-size:clamp(24px,3vw,34px);line-height:1.1;font-weight:800;letter-spacing:-0.02em}

/* Catalogue and category pages */
.page{display:flex;flex-direction:column;gap:clamp(var(--space-5),2.4vw,28px);padding-block:clamp(var(--space-4),3vw,var(--space-8)) clamp(var(--space-10),6vw,var(--space-18))}
.page__head{display:flex;flex-direction:column;gap:var(--space-1)}
.page__title{font-size:clamp(30px,3.8vw,42px);line-height:1.08;font-weight:800;letter-spacing:-0.02em}
.page__intro{max-width:60ch;padding-top:6px;font-size:17px;color:var(--muted)}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);font-size:14px;color:var(--muted)}
.crumbs a{display:flex;align-items:center;min-width:var(--tap-min);min-height:var(--tap-min)}

/* Category cards */
.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-5);margin:0;padding:0;list-style:none}
.category-grid>li{display:grid}
.category-grid .fz-card__name{font-size:17px;line-height:1.3;overflow-wrap:anywhere}

/* Custom design strip and the empty state */
.custom-design{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3) var(--space-8);padding:var(--space-5) var(--space-6)}
.custom-design__text{flex:1 1 320px;display:flex;flex-direction:column;gap:var(--space-1)}
.custom-design__lead{font-size:18px;line-height:1.3;font-weight:700}
.empty-state{align-items:flex-start;max-width:720px}
.empty-state__action{margin-top:var(--space-2)}

/* Footer */
.site-footer{background:var(--surface);border-top:1px solid var(--line);font-size:15px;color:var(--muted)}
.site-footer__cols{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-6) var(--space-18);padding-block:var(--space-8) var(--space-6)}
.site-footer__col{flex:1 1 200px;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1)}
.site-footer__col--brand{flex-basis:260px;gap:var(--space-3)}
.fz .site-footer__title{font-family:var(--font-text);font-size:15px;line-height:1.5;font-weight:700}
.site-footer__link{display:inline-flex;align-items:center;min-height:var(--tap-min)}
.site-footer__base{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-1) var(--space-6);min-height:var(--tap-min);padding-block:var(--space-2);border-top:1px solid var(--line);font-size:13px}

/* ---------- Sign-in and message pages ---------- */

.guest{display:flex;flex-direction:column;min-height:100vh;font-size:16px}
.guest__main{flex:1 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);padding:var(--space-8) var(--space-4)}
.guest__panel{align-items:flex-start;gap:var(--space-5);width:100%;max-width:420px;padding:var(--space-8) var(--space-6)}
.guest__logo{display:flex;align-items:center;min-height:var(--tap-min)}
.guest__back{display:inline-flex;align-items:center;min-height:var(--tap-min);font-size:14px}
.form{display:flex;flex-direction:column;gap:var(--space-4);width:100%}
.form .fz-btn{align-self:flex-start;margin-top:var(--space-2)}

/* ---------- Back office ---------- */

.office__shell{display:flex;min-height:100vh}
.office__side{flex-shrink:0;position:sticky;top:0;align-self:flex-start;height:100vh;overflow-y:auto}
.office__logo{display:flex;align-items:center;min-height:var(--tap-min);align-self:flex-start;flex-shrink:0}
.office__name{color:var(--green)}
.office__signout{padding:0 var(--space-3)}
.office__account{padding:0 var(--space-3);font-weight:500}
.office__account[aria-current]{font-weight:700}
.office__main{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:var(--space-5);padding:clamp(var(--space-5),3vw,var(--space-8)) clamp(var(--space-4),3vw,var(--space-10)) var(--space-10)}
.office__head{display:flex;flex-direction:column;gap:var(--space-1)}
.office__head p{max-width:80ch}
.office__whoami{display:none;font-size:13px;color:var(--muted)}

/* Overview panels */
.office-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:var(--space-5);align-items:start}
.rows{display:flex;flex-direction:column;gap:var(--space-2)}
.office-grid__action{align-self:flex-start;margin-top:var(--space-2)}

/* Panel heading with a status beside it */
.panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-4)}

/* Tables. A wide table scrolls inside its own box; the page never scrolls sideways. */
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.table-scroll--panel{border-radius:var(--radius-lg)}
.office-table{width:100%;border-collapse:collapse}
.office-table th,.office-table td{height:var(--tap-min);padding:6px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--sand-tint)}
.office-table thead th{font-size:13px;font-weight:500;color:var(--muted);white-space:nowrap;border-bottom-color:var(--line)}
.office-table tbody th{font-weight:700;color:var(--green)}
.office-table .num{text-align:right;white-space:nowrap}
.office-table tbody:last-of-type tr:last-child>*{border-bottom:0}
.office-table__stage>*{background:var(--ground)}
.office-table td.office-table__sub{padding-left:var(--space-8)}
.office-table__name{margin-right:var(--space-2)}
.office-table tfoot th,.office-table tfoot td{border-top:1px solid var(--line);border-bottom:0;background:var(--sand-tint);font-weight:700;color:var(--green)}
.office-table--template{min-width:520px}
.office-table--categories{min-width:820px}
.office-table th.office-table__pick,.office-table td.office-table__pick{width:44px;padding-right:0}
.office-table__pick input{width:22px;height:22px;margin:0;vertical-align:middle;accent-color:var(--green);cursor:pointer}
/* Categories: the action on the ticked rows (Enable, Disable, Delete). */
.bulk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);margin-bottom:var(--space-3)}
.bulk-bar__label{font-weight:500;color:var(--green)}
.bulk-bar__select{width:auto;min-width:16rem;max-width:100%}
/* Visible or Hidden on the website: an eye with its word. */
.visibility{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-weight:500}
.visibility__icon{width:20px;height:20px;flex-shrink:0;stroke:currentColor}
.visibility--on{color:var(--green)}
.visibility--off{color:var(--muted)}
.strip-line{display:block}
.office-table__designs{white-space:nowrap}

/* ---------- Shared parts ---------- */

/* Read by screen readers, not shown: the status line public/js/app.js announces "Copied" in. */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* Progress bar fill. The design system sets the width with an inline style, which the
   Content-Security-Policy forbids, so x-fz.progress writes data-percent and the width
   comes from here: one rule for each whole percentage. */
.fz-progress__fill{width:0}
.fz-progress__fill[data-percent="0"]{width:0%}
.fz-progress__fill[data-percent="1"]{width:1%}.fz-progress__fill[data-percent="2"]{width:2%}.fz-progress__fill[data-percent="3"]{width:3%}.fz-progress__fill[data-percent="4"]{width:4%}.fz-progress__fill[data-percent="5"]{width:5%}
.fz-progress__fill[data-percent="6"]{width:6%}.fz-progress__fill[data-percent="7"]{width:7%}.fz-progress__fill[data-percent="8"]{width:8%}.fz-progress__fill[data-percent="9"]{width:9%}.fz-progress__fill[data-percent="10"]{width:10%}
.fz-progress__fill[data-percent="11"]{width:11%}.fz-progress__fill[data-percent="12"]{width:12%}.fz-progress__fill[data-percent="13"]{width:13%}.fz-progress__fill[data-percent="14"]{width:14%}.fz-progress__fill[data-percent="15"]{width:15%}
.fz-progress__fill[data-percent="16"]{width:16%}.fz-progress__fill[data-percent="17"]{width:17%}.fz-progress__fill[data-percent="18"]{width:18%}.fz-progress__fill[data-percent="19"]{width:19%}.fz-progress__fill[data-percent="20"]{width:20%}
.fz-progress__fill[data-percent="21"]{width:21%}.fz-progress__fill[data-percent="22"]{width:22%}.fz-progress__fill[data-percent="23"]{width:23%}.fz-progress__fill[data-percent="24"]{width:24%}.fz-progress__fill[data-percent="25"]{width:25%}
.fz-progress__fill[data-percent="26"]{width:26%}.fz-progress__fill[data-percent="27"]{width:27%}.fz-progress__fill[data-percent="28"]{width:28%}.fz-progress__fill[data-percent="29"]{width:29%}.fz-progress__fill[data-percent="30"]{width:30%}
.fz-progress__fill[data-percent="31"]{width:31%}.fz-progress__fill[data-percent="32"]{width:32%}.fz-progress__fill[data-percent="33"]{width:33%}.fz-progress__fill[data-percent="34"]{width:34%}.fz-progress__fill[data-percent="35"]{width:35%}
.fz-progress__fill[data-percent="36"]{width:36%}.fz-progress__fill[data-percent="37"]{width:37%}.fz-progress__fill[data-percent="38"]{width:38%}.fz-progress__fill[data-percent="39"]{width:39%}.fz-progress__fill[data-percent="40"]{width:40%}
.fz-progress__fill[data-percent="41"]{width:41%}.fz-progress__fill[data-percent="42"]{width:42%}.fz-progress__fill[data-percent="43"]{width:43%}.fz-progress__fill[data-percent="44"]{width:44%}.fz-progress__fill[data-percent="45"]{width:45%}
.fz-progress__fill[data-percent="46"]{width:46%}.fz-progress__fill[data-percent="47"]{width:47%}.fz-progress__fill[data-percent="48"]{width:48%}.fz-progress__fill[data-percent="49"]{width:49%}.fz-progress__fill[data-percent="50"]{width:50%}
.fz-progress__fill[data-percent="51"]{width:51%}.fz-progress__fill[data-percent="52"]{width:52%}.fz-progress__fill[data-percent="53"]{width:53%}.fz-progress__fill[data-percent="54"]{width:54%}.fz-progress__fill[data-percent="55"]{width:55%}
.fz-progress__fill[data-percent="56"]{width:56%}.fz-progress__fill[data-percent="57"]{width:57%}.fz-progress__fill[data-percent="58"]{width:58%}.fz-progress__fill[data-percent="59"]{width:59%}.fz-progress__fill[data-percent="60"]{width:60%}
.fz-progress__fill[data-percent="61"]{width:61%}.fz-progress__fill[data-percent="62"]{width:62%}.fz-progress__fill[data-percent="63"]{width:63%}.fz-progress__fill[data-percent="64"]{width:64%}.fz-progress__fill[data-percent="65"]{width:65%}
.fz-progress__fill[data-percent="66"]{width:66%}.fz-progress__fill[data-percent="67"]{width:67%}.fz-progress__fill[data-percent="68"]{width:68%}.fz-progress__fill[data-percent="69"]{width:69%}.fz-progress__fill[data-percent="70"]{width:70%}
.fz-progress__fill[data-percent="71"]{width:71%}.fz-progress__fill[data-percent="72"]{width:72%}.fz-progress__fill[data-percent="73"]{width:73%}.fz-progress__fill[data-percent="74"]{width:74%}.fz-progress__fill[data-percent="75"]{width:75%}
.fz-progress__fill[data-percent="76"]{width:76%}.fz-progress__fill[data-percent="77"]{width:77%}.fz-progress__fill[data-percent="78"]{width:78%}.fz-progress__fill[data-percent="79"]{width:79%}.fz-progress__fill[data-percent="80"]{width:80%}
.fz-progress__fill[data-percent="81"]{width:81%}.fz-progress__fill[data-percent="82"]{width:82%}.fz-progress__fill[data-percent="83"]{width:83%}.fz-progress__fill[data-percent="84"]{width:84%}.fz-progress__fill[data-percent="85"]{width:85%}
.fz-progress__fill[data-percent="86"]{width:86%}.fz-progress__fill[data-percent="87"]{width:87%}.fz-progress__fill[data-percent="88"]{width:88%}.fz-progress__fill[data-percent="89"]{width:89%}.fz-progress__fill[data-percent="90"]{width:90%}
.fz-progress__fill[data-percent="91"]{width:91%}.fz-progress__fill[data-percent="92"]{width:92%}.fz-progress__fill[data-percent="93"]{width:93%}.fz-progress__fill[data-percent="94"]{width:94%}.fz-progress__fill[data-percent="95"]{width:95%}
.fz-progress__fill[data-percent="96"]{width:96%}.fz-progress__fill[data-percent="97"]{width:97%}.fz-progress__fill[data-percent="98"]{width:98%}.fz-progress__fill[data-percent="99"]{width:99%}.fz-progress__fill[data-percent="100"]{width:100%}
/* The same for the fill of the staff countdown (the order page's Production tab). */
.fz-countdown__fill{width:0}
.fz-countdown__fill[data-percent="0"]{width:0%}.fz-countdown__fill[data-percent="1"]{width:1%}.fz-countdown__fill[data-percent="2"]{width:2%}.fz-countdown__fill[data-percent="3"]{width:3%}.fz-countdown__fill[data-percent="4"]{width:4%}
.fz-countdown__fill[data-percent="5"]{width:5%}.fz-countdown__fill[data-percent="6"]{width:6%}.fz-countdown__fill[data-percent="7"]{width:7%}.fz-countdown__fill[data-percent="8"]{width:8%}.fz-countdown__fill[data-percent="9"]{width:9%}
.fz-countdown__fill[data-percent="10"]{width:10%}.fz-countdown__fill[data-percent="11"]{width:11%}.fz-countdown__fill[data-percent="12"]{width:12%}.fz-countdown__fill[data-percent="13"]{width:13%}.fz-countdown__fill[data-percent="14"]{width:14%}
.fz-countdown__fill[data-percent="15"]{width:15%}.fz-countdown__fill[data-percent="16"]{width:16%}.fz-countdown__fill[data-percent="17"]{width:17%}.fz-countdown__fill[data-percent="18"]{width:18%}.fz-countdown__fill[data-percent="19"]{width:19%}
.fz-countdown__fill[data-percent="20"]{width:20%}.fz-countdown__fill[data-percent="21"]{width:21%}.fz-countdown__fill[data-percent="22"]{width:22%}.fz-countdown__fill[data-percent="23"]{width:23%}.fz-countdown__fill[data-percent="24"]{width:24%}
.fz-countdown__fill[data-percent="25"]{width:25%}.fz-countdown__fill[data-percent="26"]{width:26%}.fz-countdown__fill[data-percent="27"]{width:27%}.fz-countdown__fill[data-percent="28"]{width:28%}.fz-countdown__fill[data-percent="29"]{width:29%}
.fz-countdown__fill[data-percent="30"]{width:30%}.fz-countdown__fill[data-percent="31"]{width:31%}.fz-countdown__fill[data-percent="32"]{width:32%}.fz-countdown__fill[data-percent="33"]{width:33%}.fz-countdown__fill[data-percent="34"]{width:34%}
.fz-countdown__fill[data-percent="35"]{width:35%}.fz-countdown__fill[data-percent="36"]{width:36%}.fz-countdown__fill[data-percent="37"]{width:37%}.fz-countdown__fill[data-percent="38"]{width:38%}.fz-countdown__fill[data-percent="39"]{width:39%}
.fz-countdown__fill[data-percent="40"]{width:40%}.fz-countdown__fill[data-percent="41"]{width:41%}.fz-countdown__fill[data-percent="42"]{width:42%}.fz-countdown__fill[data-percent="43"]{width:43%}.fz-countdown__fill[data-percent="44"]{width:44%}
.fz-countdown__fill[data-percent="45"]{width:45%}.fz-countdown__fill[data-percent="46"]{width:46%}.fz-countdown__fill[data-percent="47"]{width:47%}.fz-countdown__fill[data-percent="48"]{width:48%}.fz-countdown__fill[data-percent="49"]{width:49%}
.fz-countdown__fill[data-percent="50"]{width:50%}.fz-countdown__fill[data-percent="51"]{width:51%}.fz-countdown__fill[data-percent="52"]{width:52%}.fz-countdown__fill[data-percent="53"]{width:53%}.fz-countdown__fill[data-percent="54"]{width:54%}
.fz-countdown__fill[data-percent="55"]{width:55%}.fz-countdown__fill[data-percent="56"]{width:56%}.fz-countdown__fill[data-percent="57"]{width:57%}.fz-countdown__fill[data-percent="58"]{width:58%}.fz-countdown__fill[data-percent="59"]{width:59%}
.fz-countdown__fill[data-percent="60"]{width:60%}.fz-countdown__fill[data-percent="61"]{width:61%}.fz-countdown__fill[data-percent="62"]{width:62%}.fz-countdown__fill[data-percent="63"]{width:63%}.fz-countdown__fill[data-percent="64"]{width:64%}
.fz-countdown__fill[data-percent="65"]{width:65%}.fz-countdown__fill[data-percent="66"]{width:66%}.fz-countdown__fill[data-percent="67"]{width:67%}.fz-countdown__fill[data-percent="68"]{width:68%}.fz-countdown__fill[data-percent="69"]{width:69%}
.fz-countdown__fill[data-percent="70"]{width:70%}.fz-countdown__fill[data-percent="71"]{width:71%}.fz-countdown__fill[data-percent="72"]{width:72%}.fz-countdown__fill[data-percent="73"]{width:73%}.fz-countdown__fill[data-percent="74"]{width:74%}
.fz-countdown__fill[data-percent="75"]{width:75%}.fz-countdown__fill[data-percent="76"]{width:76%}.fz-countdown__fill[data-percent="77"]{width:77%}.fz-countdown__fill[data-percent="78"]{width:78%}.fz-countdown__fill[data-percent="79"]{width:79%}
.fz-countdown__fill[data-percent="80"]{width:80%}.fz-countdown__fill[data-percent="81"]{width:81%}.fz-countdown__fill[data-percent="82"]{width:82%}.fz-countdown__fill[data-percent="83"]{width:83%}.fz-countdown__fill[data-percent="84"]{width:84%}
.fz-countdown__fill[data-percent="85"]{width:85%}.fz-countdown__fill[data-percent="86"]{width:86%}.fz-countdown__fill[data-percent="87"]{width:87%}.fz-countdown__fill[data-percent="88"]{width:88%}.fz-countdown__fill[data-percent="89"]{width:89%}
.fz-countdown__fill[data-percent="90"]{width:90%}.fz-countdown__fill[data-percent="91"]{width:91%}.fz-countdown__fill[data-percent="92"]{width:92%}.fz-countdown__fill[data-percent="93"]{width:93%}.fz-countdown__fill[data-percent="94"]{width:94%}
.fz-countdown__fill[data-percent="95"]{width:95%}.fz-countdown__fill[data-percent="96"]{width:96%}.fz-countdown__fill[data-percent="97"]{width:97%}.fz-countdown__fill[data-percent="98"]{width:98%}.fz-countdown__fill[data-percent="99"]{width:99%}
.fz-countdown__fill[data-percent="100"]{width:100%}

/* ---------- Products: category page and product page ---------- */

/* Product cards: whole-card links, three across (two on a phone). */
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-5);margin:0;padding:0;list-style:none}
.product-grid>li{display:grid}
.product-card__photo{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:var(--sand-tint)}
.product-card__name{font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.product-card__summary{font-size:14px;color:var(--muted)}
.product-card__price{margin-top:var(--space-1);font-size:15px;white-space:nowrap}

/* Previous and next page links */
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3)}
.pager__gap{min-width:1px}

/* The product page: photos on the left; the steps, the total and the
   "Add to quotation" bar on the right. One column on a phone, where the bar
   stays at the bottom of the window. */
.product{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:var(--space-6) var(--space-12);align-items:start;padding-block:clamp(var(--space-3),2.4vw,28px) clamp(var(--space-8),5vw,64px)}
.product__gallery{grid-column:1;grid-row:1 / span 3;display:flex;flex-direction:column;gap:var(--space-3);min-width:0}
/* Product photos are squares everywhere (2026-10-26): 1:1, cropped to fill. */
.product__photo{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-lg);background:var(--sand-tint)}
.product__photo--empty{display:flex;align-items:center;justify-content:center;padding:var(--space-6);color:var(--muted);text-align:center}
/* The gallery: the large photo keeps its 4:3 box whichever photo shows, so
   nothing below it moves; the thumbnails are one row of squares that scrolls
   sideways inside its own box when there are many. */
.product__gallery{scroll-margin-top:var(--space-4)}
.gallery__stage{position:relative}
.product__thumbs{display:flex;gap:10px;margin:0;padding:6px;list-style:none;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.product__thumbs li{flex:0 0 auto}
.product__thumb-link{display:block;width:76px;height:76px;padding:2px;border:2px solid transparent;border-radius:var(--radius-md)}
.product__thumb-link:hover{border-color:var(--line)}
.product__thumb-link[aria-current="true"]{border-color:var(--green);background:var(--sand-tint)}
.product__thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:calc(var(--radius-md) - 2px);background:var(--sand-tint)}
.gallery__step{position:absolute;top:50%;display:flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);margin-top:calc(var(--tap-min) / -2);border-radius:var(--radius-pill);background:rgba(255,255,255,.88);color:var(--green)}
.gallery__step--prev{left:var(--space-3)}
.gallery__step--next{right:var(--space-3)}
.gallery__step svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gallery__count{position:absolute;right:var(--space-3);bottom:var(--space-3);margin:0;padding:2px 10px;border-radius:var(--radius-pill);background:rgba(255,255,255,.88);font-size:13px;color:var(--ink)}
.product__info{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:22px;min-width:0}
.product__title{font-size:clamp(28px,3.4vw,38px)}
.product__description{display:flex;flex-direction:column;gap:var(--space-2);max-width:60ch}
/* The description's bullets, numbered steps, headings and links (written by the editor in Office › Products). */
.product__description ul,.product__description ol{margin:0;padding-left:1.25em}
.product__description h2,.product__description h3{margin:var(--space-2) 0 0;font-size:inherit;font-weight:700;line-height:1.3}
.product__description a{text-decoration:underline}
.product__links{grid-column:2;grid-row:3;display:flex;flex-wrap:wrap;gap:0 var(--space-6)}
.product__links a{display:inline-flex;align-items:center;min-height:var(--tap-min);font-weight:500}

/* A numbered step */
.option-step__legend{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1) var(--space-2)}
.fz .option-step__chosen{font-family:var(--font-text);font-size:16px;font-weight:400;color:var(--muted)}

/* Swatches: real radio buttons laid over the swatch and its name. The colour
   is an SVG fill attribute (an inline style would break the CSP). */
.swatches{display:flex;flex-wrap:wrap;gap:var(--space-4) var(--space-5);padding:5px}
.swatch{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:var(--tap-min);max-width:104px;text-align:center;cursor:pointer}
.swatch__input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.swatch__colour{display:block;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-sm);outline:2px solid transparent;outline-offset:3px}
.swatch__shape{stroke:var(--line);stroke-width:1}
.swatch__shape--blank{fill:var(--sand-tint)}
.swatch__name{font-size:14px;line-height:1.3}
.swatch__price{font-size:13px;color:var(--muted);white-space:nowrap}
.swatch:has(.swatch__input:checked) .swatch__colour{outline-color:var(--green)}
.swatch:has(.swatch__input:checked) .swatch__name{font-weight:700;color:var(--green)}
.swatch:has(.swatch__input:focus-visible) .swatch__colour{outline:3px solid var(--green)}
.swatch:has(.swatch__input:focus-visible) .swatch__name{text-decoration:underline}

/* Option buttons: the design system's option card, chosen through a radio laid over it. */
.option-buttons{display:flex;flex-wrap:wrap;gap:10px}
.option-button{position:relative}
.option-button__input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fz-option:has(.option-button__input:checked){background:var(--sand-tint);border-color:var(--green)}
.fz-option:has(.option-button__input:focus-visible){outline:3px solid var(--green);outline-offset:2px}

/* Quantity, with minus and plus buttons once the script is running */
.quantity{display:flex;flex-direction:column;gap:6px}
.fz .quantity__label{font-family:var(--font-display);font-size:18px;line-height:1.3;font-weight:700;color:var(--green)}
.quantity__control{display:flex;align-items:center;gap:var(--space-2)}
.quantity__input{width:96px;text-align:center}
.quantity__step{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--control-height);height:var(--control-height);padding:0;border:1px solid var(--control-border);border-radius:var(--radius-pill);background:var(--surface);cursor:pointer}
.quantity__step:hover{background:var(--sand-tint)}
.quantity__step svg{width:18px;height:18px;fill:none;stroke:var(--green);stroke-width:2.4;stroke-linecap:round}

/* Total and deposit */
.product-total__main{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:var(--space-3)}
.product-total__label{font-weight:700;color:var(--green)}
.product-total__amount{font-family:var(--font-display);font-size:28px;font-weight:800;color:var(--green);white-space:nowrap}
.product-total__update{align-self:flex-start}

/* "Add to quotation": under the total on a wide screen, a bar along the bottom on a phone */
.product-bar{grid-column:2;grid-row:2;display:flex;align-items:center;gap:var(--space-3)}
.product-bar__total{display:none}
.product-bar__add{flex:1 1 auto;min-height:52px;font-size:17px}

/* ---------- Back office: products ---------- */

.list-filters{display:flex;flex-direction:column;gap:var(--space-3)}
.list-filters__fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-3)}
.list-filters__fields>.fz-field{flex:1 1 220px}
.filter-row{display:flex;flex-wrap:wrap;gap:var(--space-2)}
/* Keeps a visually hidden header inside its scrolling box, so it cannot widen the page. */
.table-scroll{position:relative}
.office-table--products{min-width:760px}
.office-table--options{min-width:600px}

.editor{display:flex;flex-direction:column;gap:var(--space-5);max-width:960px}
.editor__section{display:flex;flex-direction:column;gap:var(--space-4)}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:var(--space-4)}
.form-grid__wide{grid-column:1 / -1}
.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
.form .form-actions .fz-btn{margin-top:0}
.tap-link{display:inline-flex;align-items:center;min-height:var(--tap-min)}
.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.problems{margin:var(--space-1) 0 0;padding-left:var(--space-5)}
.fz-input[type="color"]{padding:4px;cursor:pointer}

.option-name{display:flex;align-items:center;gap:var(--space-2)}
.option-name__swatch{width:24px;height:24px;flex-shrink:0}
.option-name__note{display:block;font-size:13px;font-weight:400;color:var(--muted)}

.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:var(--space-4);margin:0;padding:0;list-style:none}
.photo-card{display:flex;flex-direction:column;gap:var(--space-2)}
.photo-card .fz-tile{aspect-ratio:1}
.photo-card__image{display:block;width:100%;height:100%;object-fit:cover}
.photo-card__alt{font-size:13px;color:var(--muted);overflow-wrap:anywhere}

/* ---------- Quotation, checkout and the customer's order pages ---------- */

/* "Quotation (n)" in the header: pushed to the right, with the account links after it. */
.site-header__quotation{margin-left:auto;font-weight:700;white-space:nowrap}
.site-header__quotation[aria-current]{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.site-header__quotation+.site-header__account{margin-left:0}
.nowrap{white-space:nowrap}

/* What changed since the visitor agreed to the quotation, and "Accept the new total". */
.changes{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}
.changes__list{margin:0;padding-left:var(--space-5)}

/* The quotation page: the lines, and the totals beside them on a wide screen. */
.quotation{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:var(--space-6);align-items:start}
.quotation__lines{display:flex;flex-direction:column;gap:var(--space-4);margin:0;padding:0;list-style:none}
.quote-line{flex-direction:row;align-items:flex-start;gap:var(--space-5)}
/* width and min-width: a photo in a flex row never shrinks below its own pixel width (900px), which pushed the line's text out of the card. */
.quote-line__photo{display:block;flex:0 0 140px;width:140px;min-width:0;max-width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-md);background:var(--sand-tint)}
.quote-line__body{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:var(--space-3)}
.quote-line__price{padding-top:var(--space-2);border-top:1px solid var(--line)}
.quote-line__actions{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--space-5)}
.quantity-form{display:flex;flex-direction:column;gap:6px}
.quantity-form__control{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.quantity-form__input{width:96px;text-align:center}
.quotation__totals{position:sticky;top:var(--space-4)}
.quotation__checkout{align-self:stretch;margin-top:var(--space-2)}

/* Checkout: the quotation summary first, then the form. */
.checkout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:var(--space-6) var(--space-12);align-items:start}
.checkout__main{display:flex;flex-direction:column;gap:var(--space-5);min-width:0}
.summary-lines,.order-lines{display:flex;flex-direction:column;gap:var(--space-3);margin:0;padding:0;list-style:none}
.summary-line,.order-line{display:flex;flex-direction:column;gap:var(--space-1)}
.summary-line__head,.order-line__head{display:flex;justify-content:space-between;gap:var(--space-3)}
.summary-line__name,.order-line__name{font-weight:700;color:var(--green);overflow-wrap:anywhere}
.summary-line__options{font-size:14px;color:var(--muted)}
.checkout__form{gap:var(--space-5)}
.checkout__choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:var(--space-2)}
.checkout__pay{display:flex;flex-direction:column;gap:var(--space-2)}
.checkout__terms{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:var(--space-3) var(--space-6);padding-block:var(--space-4);border-block:1px solid var(--line);font-size:15px}
.checkout__terms dt{font-weight:700;color:var(--green)}
/* The two ways out of checkout: a quotation (nothing ordered, nothing to pay) or the order itself. */
.checkout__paths{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:var(--space-4);align-items:start}
.checkout__path{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.checkout__path p{margin:0}
.checkout__path--order{border:2px solid var(--green)}
.checkout__path-tag{align-self:flex-start;padding:2px 10px;border-radius:var(--radius-pill);background:var(--sand-tint);color:var(--sand-ink);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.checkout__path--order .checkout__path-tag{background:var(--green);color:var(--on-green)}
.order-head__docs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
.checkout__path-title{margin:0;font:700 20px/1.25 var(--font-display);color:var(--green)}
.checkout__terms dd{color:var(--muted)}
.form .checkout__place{min-height:52px;font-size:17px}

/* Order confirmation and tracking page */
.order-page{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-5);align-items:start}
.order-page__track{align-self:flex-start}
.tracking-link{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.tracking-link__input{flex:1 1 240px;min-width:0}

/* A long line total (seven figures and more) goes under its label rather than past the edge. */
.quote-line .fz-row,.summary-line__head,.order-line__head{flex-wrap:wrap}
@media (max-width:480px){
  .quote-line{flex-direction:column}
  .quote-line__photo{flex:0 0 auto;width:120px}
  .quote-line__body{width:100%}
}

/* ---------- Back office: orders ---------- */

.office-table--orders{min-width:760px}
.office-table--materials{min-width:520px}

/* The order page's head: breadcrumb, number and customer, status chips, the staff-only countdown */
/* Names, areas and notes come from customers and can be one long unbroken word:
   break them anywhere rather than let them widen the page (min-content follows too). */
.order-head,.order-tab,.sales-order,.print-page__bar{overflow-wrap:anywhere}
.order-head{display:flex;flex-direction:column;gap:var(--space-1)}
.order-head__title{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) 14px}
.order-head__customer{font-weight:600;color:var(--muted)}
.order-head__countdown strong{color:var(--green)}

/* A tab's content: one column, or two on a wide screen (Details) */
.order-tab{display:flex;flex-direction:column;gap:var(--space-5);max-width:760px}
.order-customer__name{font-weight:700;color:var(--green)}
.order-typed__hint{display:block;margin-top:var(--space-1)}

/* The history on the Details tab, newest first */
.history{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding:0;list-style:none}
.history__item{display:flex;flex-direction:column;gap:2px;padding-bottom:var(--space-2);border-bottom:1px solid var(--sand-tint)}
.history__item:last-child{padding-bottom:0;border-bottom:0}
.history__meta{font-size:13px;color:var(--muted)}

/* Payments: one per line; a voided payment stays, struck through, with its reason under it */
.payments{display:flex;flex-direction:column;gap:var(--space-3);margin:0;padding:0;list-style:none}
.payment{display:flex;flex-direction:column;gap:var(--space-2);padding-bottom:var(--space-3);border-bottom:1px solid var(--sand-tint)}
.payment__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:var(--space-1) var(--space-3)}
.payment__what{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-2);min-width:0}
.payment__method{font-weight:700;color:var(--green)}
.payment__meta{flex-basis:100%;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.payment__amount{font-weight:700;white-space:nowrap}
.payment--voided .payment__method,.payment--voided .payment__amount{color:var(--muted)}
.void>summary{cursor:pointer;font-weight:500;color:var(--green);text-decoration:underline}
.void__form{max-width:480px;padding-top:var(--space-2)}

/* The sales order sheet: the preview on its tab and the print view (print.css for paper) */
.sales-order-tab{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-6)}
.sales-order-tab>.sales-order{flex:1 1 360px}
.sales-order-tab__side{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3)}
.sales-order{display:flex;flex-direction:column;gap:14px;min-width:0;max-width:600px;padding:clamp(18px,2.2vw,28px);background:var(--surface);border:1px solid var(--control-border)}
.sales-order__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:var(--space-4)}
.sales-order__logo{display:block;width:auto;height:40px}
.sales-order__id{text-align:right}
.fz .sales-order__title{font-size:18px;font-weight:800;letter-spacing:0.02em}
.sales-order__number{font-weight:700;color:var(--green)}
.sales-order__for{padding-block:var(--space-3);border-block:1px solid var(--line)}
.sales-order__items{display:flex;flex-direction:column;gap:var(--space-4);margin:0;padding:0;list-style:none}
.sales-order__item{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-4);padding-bottom:var(--space-4);border-bottom:1px solid var(--sand-tint)}
.sales-order__photo{display:block;flex:0 0 180px;width:180px;max-width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-md);background:var(--sand-tint)}
.sales-order__photo--empty{display:flex;align-items:center;justify-content:center;padding:var(--space-3);font-size:13px;color:var(--muted);text-align:center}
.sales-order__spec{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:var(--space-2)}
.sales-order__name{font-size:18px;font-weight:700;color:var(--green)}
.sales-order__note{display:flex;flex-direction:column;gap:var(--space-1)}
.sales-order__estimate{padding-top:var(--space-3);border-top:1px solid var(--line)}
.sales-order__business{display:flex;flex-direction:column;gap:2px;min-width:0}
.sales-order__business-name{font-weight:700;color:var(--green)}
.sales-order__parties{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:var(--space-4);padding-block:var(--space-3);border-block:1px solid var(--line)}
.sales-order__block{display:flex;flex-direction:column;gap:var(--space-2);min-width:0}
.fz .sales-order__label{font-size:15px;font-weight:700;color:var(--green)}
.sales-order__block dt{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.sales-order__money{display:flex;flex-direction:column;gap:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--line)}
.sales-order__payments{width:100%;border-collapse:collapse;font-size:14px}
.sales-order__payments th,.sales-order__payments td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.sales-order__payments .num{text-align:right}
.sales-order__voided{color:var(--muted)}
.sales-order__issued{font-size:13px}
.sales-order__estimate dt{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}

/* The print view on screen: the sheet on the page ground, a bar above it */
.print-page{min-height:100vh;padding:var(--space-5) var(--space-4) var(--space-10)}
.print-page__bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-5);max-width:794px;margin:0 auto var(--space-5)}
.print-page__hint{flex-basis:100%}
.print-page__sheet{max-width:794px;margin:0 auto}
.print-page .sales-order{max-width:none}

/* ---------- Production: the board, the weekly update, the order's Production tab ---------- */

/* The board (staff only) */
/* Fits the tablet (about 860px beside the menu); below 820px each item becomes a stacked row. */
.office-table--board th,.office-table--board td{padding-inline:10px}
.board-progress{min-width:110px}
.board-progress .fz-progress__track{max-width:80px}
.board-time--watch{font-weight:700;color:var(--watch)}
.board-time--late{font-weight:700;color:var(--late)}
.fz-filter.board-filter--late{color:var(--late)}
.board-calls{display:flex;flex-direction:column;gap:var(--space-2)}
.fz .board-calls__title{font-family:var(--font-text);font-size:15px;font-weight:700;color:var(--late)}
.board-calls__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2)}
.board-calls__close{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap-min);padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--green);font-weight:700;cursor:pointer}
.board-calls__close:hover{background:var(--sand-tint)}
.board-calls-closed{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);font-size:14px;color:var(--muted)}
.board-calls__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:var(--space-3);margin:0;padding:0;list-style:none}
.board-call{display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-3) var(--space-4);border-left:4px solid var(--late);border-radius:var(--radius-md);background:var(--late-tint)}
.board-call__lead{font-weight:700;color:var(--late)}
.board-call__text{font-size:14px}
.board-call__actions{display:flex;flex-wrap:wrap;gap:0 var(--space-4)}
.board-call__actions a{display:inline-flex;align-items:center;min-height:var(--tap-min);font-weight:500}
.board-calls__more{font-size:14px;color:var(--muted)}
.board-key{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-5);font-size:14px}
.board-key>span{display:inline-flex;align-items:center;gap:var(--space-2)}
.board-order{min-width:150px}
.board-order__customer{display:block;color:var(--muted)}

/* The order page's Production tab */
.production-items{display:flex;flex-direction:column;gap:var(--space-3);margin:0;padding:0;list-style:none}
.production-item{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-4)}
.production-item__text{flex:1 1 220px;min-width:0}
.production-item__name{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) 10px;font-weight:700;color:var(--green)}
.production-item__note{font-size:14px;color:var(--muted)}
.production-item__progress{flex:0 1 180px}
.production-item__link{flex-basis:100%}

/* The weekly update: the list beside the open item on a tablet, one column on a phone */
.weekly{display:grid;grid-template-columns:minmax(240px,316px) minmax(0,1fr);gap:var(--space-5);align-items:start}
.weekly__aside{display:flex;flex-direction:column;gap:var(--space-3);min-width:0}
.weekly__main{display:flex;flex-direction:column;gap:var(--space-4);min-width:0;overflow-wrap:anywhere}
.weekly__back{display:none}
.weekly-index{max-width:640px}
.weekly-list{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.weekly-list__text{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.weekly-list .fz-item__note.weekly-list__reviewed{font-weight:700;color:var(--good)}
.weekly-list__percent{font-weight:700;color:var(--green)}
.weekly-list__left{font-size:13px;color:var(--muted)}
.weekly-list__left--over{font-weight:700;color:var(--watch)}

.tick-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--space-3) var(--space-5)}
.tick-head__text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 320px}
.tick-head__stage,.tick-head__lead{color:var(--green)}
.tick-head__side{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4) var(--space-5)}
.fz .tick-head__figure{color:var(--green)}
.tick-bar{flex:none;height:10px}

.tick-form{display:flex;flex-direction:column;gap:var(--space-3)}
.tick-stages{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding:0;list-style:none}
.tick-stage{border-radius:var(--radius-md)}
.tick-stage__head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);min-height:var(--tap-min)}
.fz .tick-stage__name{flex:1 1 120px;min-width:0;font-family:var(--font-text);font-size:16px;font-weight:700;color:var(--green)}
.fz h2.tick-stage__name{font-family:var(--font-display);font-size:17px}
.tick-stage__summary{font-size:14px;color:var(--muted)}
.tick-stage__weight{min-width:44px;text-align:right;font-size:14px;color:var(--muted)}
.tick-stage--done{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);min-height:var(--tap-min);padding:0 var(--space-4);background:var(--sand-tint)}
.tick-icon{width:20px;height:20px;flex-shrink:0;stroke:var(--good)}
.tick-stage--skipped{padding:2px var(--space-2) 2px var(--space-4);background:var(--sand-tint)}
.tick-stage--current,.tick-stage--open{padding:6px var(--space-4) var(--space-2);background:var(--surface);border:2px solid var(--line)}
.tick-stage--current{border-color:var(--green)}
.tick-stage--later{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:0 var(--space-2);padding:2px var(--space-2) 2px var(--space-4);background:var(--surface);border:1px solid var(--line)}
.tick-stage--later>.tick-skip{margin-top:2px}
.tick-stage__details>summary{cursor:pointer;list-style:none}
.tick-stage__details>summary::-webkit-details-marker{display:none}
.tick-stage__open{display:inline-flex;align-items:center;min-height:var(--tap-min);padding:0 var(--space-2);font-size:14px;font-weight:700;color:var(--green);text-decoration:underline}
.tick-stage__open-open,.tick-stage__details[open] .tick-stage__open-closed{display:none}
.tick-stage__details[open] .tick-stage__open-open{display:inline}
.tick-stage__section{display:flex;flex-direction:column}
.tick-tasks{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.tick-tasks__row{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--space-2)}
.tick-task{flex:1 1 260px;display:flex;align-items:center;gap:var(--space-3);min-height:46px;cursor:pointer}
.tick-skip--task{padding:0 10px;font-size:13px}
.tick-task input{width:26px;height:26px;margin:0;flex-shrink:0;accent-color:var(--green)}
.tick-task__name{flex:1 1 0;min-width:0;font-size:16px}
.tick-task--locked{cursor:default}
.tick-task--locked .tick-task__name{color:var(--muted)}
.tick-task__tag{font-size:13px;font-weight:700;color:var(--muted)}
.tick-task__weight{min-width:44px;text-align:right;font-size:14px;color:var(--muted)}
.tick-skip{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--tap-min);padding:0 14px;border-radius:var(--radius-pill);border:1px solid var(--green);background:var(--surface);font-size:14px;font-weight:700;color:var(--green);cursor:pointer}
.tick-skip:has(input:checked){background:var(--sand-tint)}
.tick-skip:has(input:disabled){cursor:default}
.tick-skip input{width:20px;height:20px;margin:0;accent-color:var(--green)}
.tick-extra{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-3)}
.tick-extra__note{flex:1 1 320px}
.tick-extra__photo{flex:1 1 300px}
.tick-save{position:sticky;bottom:0;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--space-3) var(--space-4);padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--line)}
.tick-save__words{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.tick-save__text{font-size:17px;color:var(--green)}
.tick-save__text[data-down="true"]{color:var(--late)}
.tick-save__actions{display:flex;flex-wrap:wrap;gap:10px}
.tick-note__photo{display:block;width:100%;max-width:320px;aspect-ratio:4 / 3;object-fit:cover;border-radius:var(--radius-md);background:var(--sand-tint)}

/* Whatever takes keyboard focus stops above the save bar, not under it. */
html:has(.tick-save){scroll-padding-bottom:calc(var(--control-height) * 3)}

@media (max-width:820px){
  .office-table--board thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .office-table--board,.office-table--board tbody,.office-table--board tr,.office-table--board th,.office-table--board td{display:block;width:auto;height:auto}
  .office-table--board tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--space-3);padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--sand-tint)}
  .office-table--board tr>*{padding:0;border:0}
  .office-table--board td[data-label="Status"]{grid-column:2;grid-row:1}
  .office-table--board th[data-label="Item"]{grid-column:1;grid-row:1}
  .office-table--board td:not([data-label="Status"]){grid-column:1 / -1}
  .office-table--board td[data-label]:not([data-label="Status"])::before{content:attr(data-label) ": ";color:var(--muted)}
  .office-table--board .board-empty{display:none}
  .table-scroll .office-table--board{min-width:0}
}

/* On a phone a bar that stays on screen would hide half the stages: it sits after the form instead.
   (After .tick-save above, so it wins.) */
@media (max-width:480px){
  .tick-save{position:static}
  html:has(.tick-save){scroll-padding-bottom:0}
}

/* ---------- The customer's tracking page: stage and percentage only ---------- */

.track-overall{display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px;padding:clamp(var(--space-4),2.2vw,28px);border-radius:var(--radius-lg);background:var(--sand)}
.track-overall__figure{font-family:var(--font-display);font-size:clamp(44px,6vw,64px);line-height:1;font-weight:800;color:var(--green)}
.track-overall__text{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:var(--space-2)}
.fz .track-overall__title{font-family:var(--font-text);font-size:18px;font-weight:700}
.fz-progress__track.track-overall__bar{flex:none;height:10px;background:var(--ground)}
.track-items,.track-side{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.track-item{gap:14px;overflow-wrap:anywhere}
.track-item__head{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3)}
.track-item__percent{font-family:var(--font-display);font-size:30px;line-height:1.1;font-weight:800;color:var(--green)}
.track-item__stage strong{color:var(--green)}
/* The item's percent is the large figure beside its name: the bar under it carries no second copy. */
.track-item__progress .fz-progress__value{display:none}
.track-stages{display:flex;gap:6px;margin:0;padding:0;list-style:none}
.track-stages__stage{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.track-stages__stage::before{content:"";height:8px;border-radius:var(--radius-pill);background:var(--sand-tint)}
.track-stages__stage--done{color:var(--green)}
.track-stages__stage--done::before{background:var(--green)}
.track-stages__stage--current{font-weight:700;color:var(--green)}
.track-stages__stage--current::before{background:var(--sand);outline:2px solid var(--green);outline-offset:-2px}
.track-stages__name{overflow-wrap:anywhere;hyphens:auto}

/* ---------- Finished work: the tablet's photo screen, the catalogue, the order tab ---------- */

/* Four photo slots across on the tablet, two on a phone. */
.finished-photos{display:flex;flex-direction:column;gap:var(--space-3)}
.photo-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:var(--space-5) 14px;margin:0;padding:0;list-style:none}
.photo-slot{display:flex;flex-direction:column;gap:6px;min-width:0}
.photo-slot__tile{background:var(--sand-tint)}
.photo-slot__tile:not(.fz-tile--cover){border-color:var(--sand-tint)}
.photo-slot__image{display:block;width:100%;height:100%;object-fit:cover}
.photo-slot__none{display:flex;align-items:center;justify-content:center;color:var(--muted)}
.photo-slot__form{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.photo-slot__form--empty{flex-direction:column;align-items:stretch}
.photo-slot__take{position:relative;aspect-ratio:4 / 3;text-align:center}
.photo-slot__take:has(input:focus-visible),.photo-slot__retake:has(input:focus-visible){outline:3px solid var(--green);outline-offset:2px}
.photo-slot__retake{position:relative}
.photo-slot__camera{width:30px;height:30px;stroke:var(--green)}
.photo-slot__words{display:flex;flex-direction:column;padding:0 2px;line-height:1.35}
.photo-slot__label{color:var(--green)}
.photo-slot__hint{font-size:13px;color:var(--muted)}
.photo-slot__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1)}
.photo-slot__actions .fz-btn--quiet{font-size:14px}

/* "Where should these photos go?": the name and agreement only when it goes on the website. */
.finished-send{display:flex;flex-direction:column;gap:var(--space-4)}
.finished-dest{display:flex;flex-direction:column;gap:var(--space-3)}
.finished-dest__choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.finished-web{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-1) 2px 0}
.finished-web__name{max-width:420px}
.finished-dest:has(input[name="destination"][value="internal"]:checked) .finished-web{display:none}
.tick-save__text[data-blocked="true"]{color:var(--watch)}
.finished-prompt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-4)}

/* The catalogue: the grid beside the selected piece's panel; one column below 1100px. */
.finished-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:var(--space-3) var(--space-6)}
.finished-head .office__head{flex:1 1 320px;min-width:0}
.finished-search{max-width:360px}
.finished-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,400px);gap:var(--space-6);align-items:start}
.finished-list{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.finished-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:14px;margin:0;padding:0;list-style:none}
.finished-grid>li{display:grid}
.finished-card{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 10px var(--space-3);border-radius:var(--radius-lg);background:var(--surface);border:2px solid var(--line);color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.finished-card:hover{border-color:var(--green);color:var(--ink)}
.finished-card--current{background:var(--sand-tint);border-color:var(--green)}
.finished-card__photo{display:block;width:100%;aspect-ratio:4 / 3;margin-bottom:var(--space-2);object-fit:cover;border-radius:var(--radius-md);background:var(--sand-tint)}
.finished-card__photo--empty{display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--muted)}
.finished-card__name{font-weight:700;color:var(--green)}
.finished-card__meta{font-size:13px}
.finished-card__note{margin-bottom:6px;font-size:13px;color:var(--muted)}

/* One piece: photos, then the website decision (beside each other when the panel is wide). */
.piece-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);overflow-wrap:anywhere}
.order-tab .piece-panel{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:var(--space-6)}
.piece-panel__photos,.piece-panel__body{display:flex;flex-direction:column;gap:var(--space-2);min-width:0}
.piece-panel__body{gap:10px}
.piece-panel__cover{display:block;width:100%;aspect-ratio:16 / 10;object-fit:cover;border-radius:var(--radius-md);background:var(--sand-tint)}
.piece-panel__cover--empty{display:flex;align-items:center;justify-content:center;color:var(--muted)}
.piece-panel__thumbs{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0;padding:0;list-style:none}
.piece-panel__thumb{display:block;width:72px;aspect-ratio:4 / 3;object-fit:cover;border-radius:var(--radius-sm);background:var(--sand-tint)}
.piece-panel__head{display:flex;flex-wrap:wrap;align-items:center;gap:6px var(--space-3)}
.fz .piece-panel__title{font-size:20px;line-height:1.25;font-weight:700}
.fz .piece-panel__subtitle{font-family:var(--font-text);font-size:16px;font-weight:700}
.piece-panel__state{font-weight:500}
.piece-panel__state--good{color:var(--good)}
.piece-panel__state--watch{color:var(--watch)}
.piece-panel__form{gap:var(--space-3)}
.piece-panel__save{order:1}

.finished-waiting{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding:0;list-style:none}
.finished-waiting__item{flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--sand-tint)}
.finished-waiting__name{font-weight:700;color:var(--green)}

/* Past projects (public) and the "Made in our workshop" strip on a category page. */
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-5);margin:0;padding:0;list-style:none}
.project-grid>li{display:grid}
.project-card__photo{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover;background:var(--sand-tint)}
.project-card__name{font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.project-card__caption{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.project{display:flex;flex-direction:column;gap:var(--space-3);max-width:960px}
.project__photo{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:var(--radius-lg);background:var(--sand-tint)}
.project__photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3);margin:0;padding:0;list-style:none}
.project__thumb{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:var(--radius-md);background:var(--sand-tint)}
.project__links{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-6)}
.made-here{padding-block:var(--space-2) 0}

@media (max-width:1100px){
  .finished-split{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:820px){
  .photo-slots,.finished-dest__choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-slots{gap:var(--space-4) var(--space-3)}
  .project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
  .project-card__name{font-size:16px}
}

@media (max-width:480px){
  .finished-dest__choices{grid-template-columns:minmax(0,1fr)}
  .project-grid{grid-template-columns:minmax(0,1fr)}
}

/* ---------- Customers and enquiries (staff only) ---------- */

.customers-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:var(--space-3) var(--space-6)}
.customers-head .office__head{flex:1 1 320px;min-width:0}
.customers-today{display:flex;flex-direction:column;gap:var(--space-1);overflow-wrap:anywhere}
.fz .customers-today__title{font-family:var(--font-text);font-size:15px;font-weight:700}
.customers-today__list{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-5);margin:0;padding:0;list-style:none}
.customers-today__list a{display:inline-flex;align-items:center;min-height:var(--tap-min)}
.customers-today__late,.customers-today__overdue{font-weight:700;color:var(--late)}
.customer-matches{display:flex;flex-wrap:wrap;gap:0 var(--space-5);margin:0;padding:0;list-style:none}

/* The board: one lane per column, side by side. When the lanes do not fit, the board scrolls sideways inside its own box; the page never does. */
.board{display:flex;flex-direction:column;gap:var(--space-3);min-width:0}
.pipeline{display:flex;align-items:stretch;gap:var(--space-3);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding:var(--space-3);padding-bottom:var(--space-2)}
.pipeline__column{display:flex;flex-direction:column;gap:10px;flex:1 1 212px;min-width:212px;max-width:380px;padding:var(--space-3);border-radius:var(--radius-md);border:2px solid transparent;background:var(--sand-tint);scroll-snap-align:start}
.fz .pipeline__title{font-size:16px;line-height:1.3}
.fz .pipeline__subtitle{padding-top:var(--space-2);font-family:var(--font-text);font-size:14px;font-weight:700}
.pipeline__empty{font-size:14px}
.pipeline__cards{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.board-item{display:flex;flex-direction:column;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--line);overflow-wrap:anywhere}
.board-item:hover,.board-item:focus-within{border-color:var(--green)}
.board-item[draggable="true"]{cursor:grab}
.board-item.is-dragging{opacity:.45}
.pipeline-card{display:flex;flex-direction:column;gap:2px;padding:var(--space-3) 14px;border-radius:var(--radius-md);color:var(--ink);text-decoration:none}
.pipeline-card:hover{color:var(--ink)}
.pipeline-card__name{font-weight:700;color:var(--green)}
.pipeline-card__meta{font-size:13px;color:var(--muted)}
.pipeline-card__flag{font-size:13px;font-weight:700;color:var(--sand-ink)}
.pipeline-card__flag--late{color:var(--late)}
.pipeline .pager{flex-direction:column;align-items:stretch;gap:var(--space-1)}
/* While a card is dragged: the lanes it can go to get a dashed green edge, the one under it fills. */
.pipeline__column.can-drop{border-color:var(--green);border-style:dashed}
.pipeline__column.is-over{border-style:solid;background:var(--sand)}
/* A card's Move menu: a row under the card that opens the list of its moves. */
.card-menu{border-top:1px solid var(--line)}
.card-menu>summary{display:flex;align-items:center;gap:var(--space-2);min-height:var(--tap-min);padding:0 14px;cursor:pointer;list-style:none;font-size:13px;font-weight:700;color:var(--green)}
.card-menu>summary::-webkit-details-marker{display:none}
.card-menu>summary::after{content:"";width:7px;height:7px;margin-left:auto;border-right:2px solid var(--green);border-bottom:2px solid var(--green);transform:translateY(-2px) rotate(45deg)}
.card-menu[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.card-menu__list{display:flex;flex-direction:column;margin:0;padding:0 var(--space-2) var(--space-2);list-style:none}
.card-menu__item{display:flex;align-items:center;min-height:var(--tap-min);padding:0 var(--space-2);border-radius:var(--radius-sm);color:var(--green);font-weight:500;text-decoration:none}
.card-menu__item:hover{background:var(--sand-tint);color:var(--green)}
.card-menu__blocked{display:flex;align-items:center;min-height:var(--tap-min);padding:0 var(--space-2);font-size:13px;color:var(--muted)}
/* The dialog a move opens. Open without a script (after a refused move) it sits in the page as a box. */
.move-dialog{width:min(480px,calc(100vw - 2 * var(--space-4)));padding:var(--space-5) 22px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink)}
.move-dialog::backdrop{background:rgba(27,63,58,.4)}
.move-dialog[open]:not(:modal){position:static;width:100%;max-width:640px;margin:0}
.fz .move-dialog__title{font-family:var(--font-display);font-size:18px;line-height:1.3;font-weight:700;color:var(--green);margin:0}
.move-dialog__what{color:var(--muted);white-space:pre-line}
.move-dialog__actions .move-dialog__page{margin-left:auto}
/* The tray for "lost", shown at the foot of the window while a card is dragged. */
.board-tray{position:fixed;left:50%;bottom:var(--space-5);z-index:5;transform:translateX(-50%);max-width:calc(100vw - 2 * var(--space-4));padding:var(--space-3) var(--space-6);border-radius:var(--radius-pill);border:2px dashed var(--late);background:var(--late-tint);color:var(--late);text-align:center}
.board-tray.is-over{border-style:solid;background:var(--surface)}

/* A customer's record and an enquiry: two columns of panels on a wide screen. */
.customer-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-5);align-items:start;overflow-wrap:anywhere}
.customer-record__notes{grid-column:1 / -1}
.record-list{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding:0;list-style:none}
.record-list__item{display:flex;flex-direction:column;gap:2px;padding-bottom:var(--space-2);border-bottom:1px solid var(--sand-tint)}
.record-list__item:last-child{padding-bottom:0;border-bottom:0}
.record-list__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--space-1) var(--space-3)}
.record-list__head>a{display:inline-flex;align-items:center;min-height:var(--tap-min);font-weight:700}
.record-list__meta{font-size:13px;color:var(--muted)}
.record-list__voided{color:var(--muted);text-decoration:line-through}
.enquiry-form{max-width:760px}
.enquiry-summary{white-space:pre-line}
.enquiry-photo{display:block;width:100%;max-width:420px;aspect-ratio:4 / 3;object-fit:cover;border-radius:var(--radius-md);background:var(--sand-tint)}

/* The public custom-design request */
.custom-request{max-width:760px}

@media (max-width:820px){
  .customer-record{grid-template-columns:minmax(0,1fr)}
  /* On a phone each lane is nearly the width of the screen; swipe the board sideways from lane to lane. */
  .pipeline__column{flex:0 0 min(84vw, 320px);max-width:none}
}

/* The hidden attribute wins over the display of the components (.fz-btn is inline-flex). */
.fz [hidden]{display:none !important}

/* ---------- Narrow screens ---------- */

@media (max-width:1100px){
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:820px){
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
  .category-grid .fz-card__name{font-size:16px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
  .product-card__name{font-size:16px}

  .quotation,.checkout,.order-page,.weekly{grid-template-columns:minmax(0,1fr)}
  /* On a phone the open item comes first; the list is one tap away. */
  .weekly__aside{display:none}
  .weekly__back{display:inline-flex}
  .track-stages__name{display:none}
  .sales-order__id{text-align:left}
  .quotation__totals{position:static}
  .quote-line__photo{flex-basis:96px;width:96px}

  .product{grid-template-columns:minmax(0,1fr);grid-template-rows:none;padding-bottom:var(--space-4)}
  .product__gallery,.product__info,.product-bar,.product__links{grid-column:1;grid-row:auto}
  .product-bar{position:sticky;bottom:0;z-index:1;justify-content:space-between;margin-inline:calc(-1 * clamp(var(--space-4),4vw,var(--space-12)));padding:10px clamp(var(--space-4),4vw,var(--space-12));background:var(--surface);border-top:1px solid var(--line)}
  .product-bar__total{display:flex;flex-direction:column;line-height:1.25}
  /* Whatever is scrolled to (a focused field, a button) stops above the bar, not under it. */
  html:has(.product-bar){scroll-padding-bottom:calc(var(--control-height) + var(--space-10))}
  .product-bar__label{font-size:13px;color:var(--muted)}
  .product-bar__amount{font-family:var(--font-display);font-size:19px;font-weight:800;color:var(--green);white-space:nowrap}
  .product-bar__add{flex:0 0 auto;min-height:var(--control-height);font-size:15px}
  .site-footer__cols{gap:var(--space-5)}

  /* The side menu becomes a strip across the top: logo and sign-out on the
     first line, the menu on the second, so nothing is hidden off to the side. */
  .office__shell{flex-direction:column}
  .office__side{position:static;align-self:stretch;flex-wrap:wrap;gap:var(--space-1) var(--space-3);height:auto;overflow-y:visible}
  .office__side>*{flex-shrink:0}
  .office__logo{align-self:center}
  .office__account{margin-left:auto;padding:0}
  .office__signout{padding:0}
  .office__side .fz-nav{order:1;flex-basis:100%}
  .office__whoami{display:block}
}

/* Step 8: finance, settings, users, categories and templates */
.office-table--finance{min-width:980px}
.office-table--received{min-width:560px}
.office-table--users{min-width:640px}
.office-table--roles{min-width:640px}
.office-table--subtasks{min-width:600px}
.office-table--subtasks td{vertical-align:top}
.office-table tfoot th{font-weight:700;color:var(--green)}
.finance-ready{display:flex;flex-direction:column;gap:var(--space-2)}
.finance-ready__item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-1) var(--space-4)}
.finance-received strong{color:var(--green);white-space:nowrap}
.settings{display:flex;flex-direction:column;gap:var(--space-5)}
.settings__week{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-4)}
.settings__days{display:flex;flex-wrap:wrap;gap:0 var(--space-5)}
.save-head{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3)}
.save-head__bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
.save-head__state{font-size:14px;color:var(--muted)}
.form .save-head__bar .fz-btn{margin-top:0}
.choice-list{display:flex;flex-direction:column;gap:var(--space-2)}
.parts{display:flex;flex-direction:column;gap:var(--space-4)}
.part-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));align-items:end;gap:var(--space-3);padding-bottom:var(--space-4);border-bottom:1px solid var(--line)}
.part-row:last-child{padding-bottom:0;border-bottom:0}
.stage-edit .form-grid{margin-bottom:var(--space-1)}
.cell-field .fz-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cell-field--number .fz-input{width:88px;text-align:right}
.template-total{font-weight:700;color:var(--green)}
.template-total[data-total-ok="false"]{color:var(--late)}
.production-item__choose{flex-basis:100%}

/* ---------- Back office: the overview (staff only) ---------- */

/* The page head: the title, and today's date beside it. */
.overview-head{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--space-1) var(--space-4)}
.panel-link{color:inherit;text-decoration:none}
.panel-link:hover{color:var(--green-deep);text-decoration:underline}

/* A chart's key: a mark, line or swatch beside each word. */
.legend{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);margin:0;padding:0;list-style:none;font-size:13px;color:var(--muted)}
.legend__item{display:inline-flex;align-items:center;gap:6px}
.legend__mark{width:14px;height:14px;flex-shrink:0;overflow:visible}
.legend__tick{display:inline-block;width:2px;height:14px;margin:0 4px;border-radius:1px;background:var(--green)}
.legend__hatch{display:inline-block;width:18px;height:10px;border-radius:2px;background:repeating-linear-gradient(135deg,var(--sand-ink) 0 2px,transparent 2px 6px);opacity:.6}
.legend__skipped{display:inline-block;width:18px;height:10px;border-radius:2px;background:var(--sand-tint);border:1px dashed var(--sand-deep)}
.legend__key{display:inline-block;width:12px;height:12px;border-radius:3px}
.legend__key--started{background:var(--sand-deep)}
.legend__key--ready{background:var(--green)}
.legend__key--over{background:var(--watch)}

/* The marks for the bands, in SVG: the shape says the band as much as the colour. */
.mark{stroke:var(--surface);stroke-width:3px;paint-order:stroke}
.mark--good{fill:var(--good)}
.mark--watch{fill:var(--watch)}
.mark--late{fill:var(--late)}
.mark--ready{fill:var(--surface);stroke:var(--sand-ink);stroke-width:2px}

/* The production line: one lane per template, one row per item. A lane that
   does not fit scrolls sideways in its own box, with the order column kept in view. */
.line-panel{gap:var(--space-3)}
.line-defs{position:absolute;width:0;height:0;overflow:hidden}
.line-hatch{fill:var(--sand-ink);opacity:.55}
.line-lane{display:flex;flex-direction:column;gap:var(--space-1);--line-label:180px;--line-num:44px}
.line-lane+.line-lane{margin-top:var(--space-3)}
.line-lane__head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-2)}
.fz .line-lane__name{font-size:15px;line-height:1.3;font-weight:700}
.line-lane__count{font-size:13px;color:var(--muted)}
.line-lane__scroll{min-width:0;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:2px}
.line-grid{min-width:680px}
.line-orders,.line-items{margin:0;padding:0;list-style:none}
.line-order{border-top:1px solid var(--line);padding:1px 0}
.line-row{position:relative;display:grid;grid-template-columns:var(--line-label) minmax(0,1fr) var(--line-num);align-items:center;column-gap:var(--space-3);min-height:30px;border-radius:var(--radius-sm)}
.line-row--head{align-items:end;min-height:0}
.line-row__label{position:sticky;left:0;z-index:2;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0;padding-right:var(--space-1);background:var(--surface);font-size:13px;line-height:1.25}
.line-order__number{font-weight:700;color:var(--ink);white-space:nowrap}
a.line-order__number{color:var(--green)}
.line-order__customer{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}
.line-row__num{position:sticky;right:0;z-index:2;align-self:stretch;display:flex;align-items:center;justify-content:flex-end;background:var(--surface);font-family:var(--font-display);font-size:13px;font-weight:800;color:var(--green)}
.line-item:hover,.line-item:hover .line-row__label,.line-item:hover .line-row__num{background:var(--ground)}
.line-stages{display:block}
.line-stages__rule{stroke:var(--line);stroke-width:1px}
.line-stages__name{font-size:12px;fill:var(--muted);stroke:var(--surface);stroke-width:4px;stroke-linejoin:round;paint-order:stroke}
.line-track{display:block;overflow:visible}
.line-track__ground{fill:var(--surface);stroke:var(--line);stroke-width:1px}
.line-track__done{fill:var(--sand)}
.line-track__skipped{fill:var(--sand-tint);stroke:var(--sand-deep);stroke-width:1px;stroke-dasharray:3 2}
.line-track__behind{fill:url(#line-hatch)}
.line-track__rule{stroke:var(--line);stroke-width:1px}
.line-track__name{font-size:12px;fill:var(--sand-ink);stroke:var(--surface);stroke-width:3px;stroke-linejoin:round;paint-order:stroke}
.line-track__tick{stroke:var(--green);stroke-width:2px;stroke-linecap:round}
.line-track__mark{overflow:visible}
.line-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);font-size:13px;color:var(--muted)}
.line-foot__chip{text-decoration:none;border:1px dashed var(--control-border);background:var(--ground)}
.line-foot__chip:hover{background:var(--sand-tint)}

/* The tabs under the line: the open one's figures below them. */
.overview-tabs{display:flex;flex-direction:column;gap:var(--space-4);scroll-margin-top:var(--space-4)}

/* Summary: one band of numbers divided by hairlines, not a row of tiles. */
.stats{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.stats__item{display:flex;flex:1 1 auto;min-width:130px;margin:0 0 -1px -1px;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
.stat{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-height:var(--tap-min);padding:var(--space-3) 18px;color:var(--ink);text-decoration:none}
.stat:hover{background:var(--sand-tint);color:var(--ink)}
.stat__num{font-family:var(--font-display);font-size:24px;line-height:1.15;font-weight:800;color:var(--green);white-space:nowrap}
.stat--late .stat__num{color:var(--late)}
.stat--watch .stat__num{color:var(--watch)}
.stat__label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.fz-progress__track.stat__bar{flex:none;display:block;max-width:120px;height:4px;margin-top:var(--space-1)}

/* A chart in a panel. A chart scales with its box between two sizes, so its
   words stay readable; the figures are also in the table under it. */
.chart-panel{gap:var(--space-3);max-width:760px}
.chart-panel__sub{font-size:13px;color:var(--muted)}
.fz .chart-panel__title{margin:0;font-family:var(--font-text);font-size:14px;font-weight:700;color:var(--green)}
.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:var(--space-4);align-items:start}
.chart-grid .chart-panel{max-width:none}
.chart{display:block;width:100%;height:auto;overflow:visible}
.chart--scatter{max-width:400px}
.chart--columns{max-width:470px}
.chart--line{max-width:400px}
.chart__behind{fill:var(--watch);opacity:.08}
.chart__grid{stroke:var(--line);stroke-width:1px}
.chart__base{stroke:var(--control-border);stroke-width:1px}
.chart__pace{stroke:var(--sand-ink);stroke-width:1.5px}
.chart__tick{font-size:12px;fill:var(--muted)}
.chart__note{font-size:12px;fill:var(--sand-ink)}
.chart__axis{font-size:12px;font-weight:500;fill:var(--ink)}
.chart__label{font-size:12px;font-weight:700;fill:var(--ink);stroke:var(--surface);stroke-width:3px;stroke-linejoin:round;paint-order:stroke}
.chart__hit{fill:transparent}
.chart__col--started{fill:var(--sand-deep)}
.chart__col--ready{fill:var(--green)}
.chart__line{fill:none;stroke:var(--green);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}
.chart__dot{fill:var(--green);stroke:var(--surface);stroke-width:2px}
.chart-table summary{display:inline-flex;align-items:center;min-height:var(--tap-min);color:var(--green);font-weight:500;cursor:pointer}
.chart-table[open] summary{margin-bottom:var(--space-2)}
.chart-table__tables{display:flex;flex-direction:column;gap:var(--space-3)}

/* Bars across: the label, the bar, the number. */
.hbars{display:grid;grid-template-columns:minmax(0,max-content) minmax(60px,1fr) max-content;align-items:center;gap:var(--space-2) var(--space-3);margin:0;padding:0;list-style:none}
.hbars__row{display:contents}
.hbars__label{min-width:0;max-width:200px;overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.hbars__value{font-size:14px;font-weight:700;color:var(--green);text-align:right;white-space:nowrap}
.hbars__over{font-weight:700;color:var(--watch)}
.hbar{display:block;overflow:visible}
.hbar__track{fill:var(--sand-tint)}
.hbar__fill{fill:var(--sand-deep)}
.hbar__fill--em{fill:var(--green)}
.hbar__fill--over{fill:var(--watch)}
.hbar__guide{stroke:var(--green);stroke-width:2px}
.facts{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-5);margin:0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.facts strong{color:var(--green);white-space:nowrap}

/* Due in two weeks: each order with its countdown and progress. */
.due-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.due-list__item{display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-3) 0;border-top:1px solid var(--line)}
.due-list__item:first-child{padding-top:0;border-top:0}
.due-list__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-1) var(--space-3)}
.due-list__order{font-weight:700;color:var(--green);overflow-wrap:anywhere}
.due-list__when{font-size:14px;color:var(--muted)}

/* The tip public/js/app.js shows beside whatever carries data-tip. */
.tip{position:fixed;z-index:20;max-width:320px;padding:6px 10px;border-radius:var(--radius-sm);background:var(--green-deep);color:var(--on-green);font-size:13px;line-height:1.35;pointer-events:none;opacity:0;transition:opacity .12s}
.tip[data-show]{opacity:1}
@media (prefers-reduced-motion:reduce){.tip{transition:none}}

@media (max-width:820px){
  .line-lane{--line-label:124px;--line-num:40px}
  .stats__item{flex-basis:45%}
}

/* Customers: the table view and the details form */
.customers-views{margin-top:var(--space-2)}
.office-table--customers{min-width:1080px}
.sort-link{color:inherit;text-decoration:none;white-space:nowrap}
.sort-link:hover{text-decoration:underline}
th[aria-sort="ascending"] .sort-link::after{content:" ↑"}
th[aria-sort="descending"] .sort-link::after{content:" ↓"}
.customer-edit{max-width:760px}

/* Trade program (back office) */
.office-table--trade{min-width:860px}
.trade-message{margin-top:var(--space-4);padding:var(--space-3) var(--space-4);border-left:3px solid var(--sand);background:var(--sand-tint);white-space:pre-line}
.trade-decision{margin-top:var(--space-5);display:flex;flex-direction:column;gap:var(--space-3);align-items:flex-start}
.trade-code__value{font-family:var(--font-display);letter-spacing:.06em}
.adjustment-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-4)}

/* Website pages (back office) */
.office-table--pages{min-width:720px}
.page-editor__body textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.6}
.page-editor__checks{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-6);margin-top:var(--space-4)}

/* Category photo picker (back office) */
.cover-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--space-3);border:0;padding:0;margin:0}
.cover-picker__option{position:relative;display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);cursor:pointer;font-size:14px}
.cover-picker__option img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-sm,6px);background:var(--sand-tint)}
.cover-picker__option input{position:absolute;top:var(--space-3);left:var(--space-3);width:20px;height:20px;accent-color:var(--green)}
.cover-picker__option:has(input:checked){border-color:var(--green);box-shadow:0 0 0 2px var(--green)}
.cover-picker__option--auto{justify-content:center;min-height:120px;padding-left:40px}
.featured-toggle{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);margin-top:var(--space-4);padding-top:var(--space-4);border-top:1px solid var(--line)}
.featured-toggle p{margin:0}

/* Settings: its tabs above each part */
.settings-tabs{display:flex;flex-direction:column;gap:var(--space-3);margin-bottom:var(--space-5)}
/* The order's Details tab: the next-step band and the customer's note across the top, then what was
   ordered and the history (wide column) beside the customer, the order's facts and the tracking link
   (narrow column). The narrow column comes first in the page, so below 1040px the one column reads in
   the same order as the page: band, note, customer, order, tracking link, what was ordered, history. */
.details{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);grid-template-areas:"next next" "note note" "main aside";gap:var(--space-5);align-items:start;overflow-wrap:anywhere}
.details__next{grid-area:next}
.details__note{grid-area:note}
.details__main{grid-area:main;display:flex;flex-direction:column;gap:var(--space-5);min-width:0}
.details__aside{grid-area:aside;display:flex;flex-direction:column;gap:var(--space-5);min-width:0}
.panel-head__meta{font-size:14px;color:var(--muted)}

.next-step{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(200px,1fr) auto;align-items:center;gap:var(--space-4) var(--space-8);padding:18px 22px;border-radius:var(--radius-lg);background:var(--sand-tint);border:1px solid var(--line)}
.next-step--done{background:var(--surface)}
.next-step__text{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
.next-step__head{font-family:var(--font-display);font-size:22px;line-height:1.2;font-weight:700}
.next-step__sub{color:var(--muted)}
.next-step__meter{display:flex;flex-direction:column;gap:6px;min-width:0}
.next-step__figures,.next-step__scale{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-1) var(--space-3)}
.next-step__figures strong{color:var(--green)}
.next-step__scale{font-size:13px;color:var(--muted)}
.next-step__actions{display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:flex-end}
.next-step__error{grid-column:1 / -1}
.meter{display:block;width:100%;height:10px;border-radius:var(--radius-pill);overflow:hidden}
.meter__track{fill:var(--surface)}
.next-step--done .meter__track{fill:var(--sand-tint)}
.meter__fill{fill:var(--green)}
.meter__tick{stroke:var(--sand-ink);stroke-width:3px}

.details__note{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1) var(--space-3);padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--watch-tint)}
.details__note-lead{font-weight:700;color:var(--watch)}
.details__note-text{font-size:16px}

.lines{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.line{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:var(--space-2) var(--space-4);padding:14px 0;border-top:1px solid var(--sand-tint)}
.line:first-child{padding-top:var(--space-1);border-top:0}
.line__photo{display:block;width:76px;height:76px;max-width:100%;border-radius:var(--radius-md);object-fit:cover;background:var(--sand-tint)}
.line__body{display:flex;flex-direction:column;gap:6px;min-width:0}
.line__name{font-size:16px;font-weight:700;color:var(--green)}
.line__qty{font-weight:500;color:var(--muted)}
.line__options{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.line__option{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border:1px solid var(--line);border-radius:var(--radius-pill);font-size:13px}
.line__swatch{width:14px;height:14px;flex-shrink:0;margin-left:-4px;border-radius:4px;outline:1px solid var(--line)}
.line__group{color:var(--muted)}
.line__tracked{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);font-size:13px;color:var(--muted)}
.line__progress{flex:1 1 160px;max-width:260px}
.line__price{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.line__total{font-weight:700}
.line__unit{font-size:13px;color:var(--muted)}

.money{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-3);margin:0;padding-top:14px;border-top:1px solid var(--line)}
.money__cell{display:flex;flex-direction:column;gap:2px;min-width:0}
.money__cell dt{font-size:13px;color:var(--muted)}
.money__cell dd{margin:0}
.money__value{font-size:16px;font-weight:700;color:var(--green)}
.money__tag{font-size:13px;color:var(--muted)}
.money__tag--good{font-weight:700;color:var(--good)}
.money__tag--due{font-weight:700;color:var(--watch)}

.details .history{gap:0}
.history__day{display:grid;grid-template-columns:96px minmax(0,1fr);gap:var(--space-4)}
.history__date{padding-top:10px;font-size:13px;font-weight:700;color:var(--muted);line-height:1.3}
.history__date span{display:block;font-weight:400}
.history__events{margin:0;padding:0;list-style:none;border-left:2px solid var(--sand-tint)}
.details .history__item{position:relative;padding:10px 0 10px 20px;border-bottom:0}
.details .history__item::before{content:"";position:absolute;left:-7px;top:16px;width:12px;height:12px;border-radius:50%;background:var(--surface);border:2px solid var(--sand-deep)}
.details .history__item[data-kind="payment"]::before{background:var(--good);border-color:var(--good)}
.details .history__item[data-kind="production"]::before,.details .history__item[data-kind="finished-work"]::before{background:var(--sand);border-color:var(--sand-ink)}
.details .history__item[data-kind="customer"]::before{border-color:var(--green)}
.history__kind{font-weight:700;color:var(--sand-ink)}
.history__item[data-kind="payment"] .history__kind{color:var(--good)}

.contact{display:flex;flex-direction:column;margin:0}
.contact__row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);min-height:var(--tap-min);border-top:1px solid var(--sand-tint)}
.contact__row:first-child{border-top:0}
.contact__row dd{margin:0}
.contact__value{min-width:0}
.contact__phone{display:inline-flex;align-items:center;min-height:var(--tap-min);font-size:16px;font-weight:700;color:var(--ink);text-decoration:none}
.contact__phone:hover{text-decoration:underline}
.customer-links{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-2);font-size:14px;color:var(--muted)}
.customer-links a{display:inline-flex;align-items:center;min-height:var(--tap-min);font-weight:700}
.contact-form{display:flex;flex-direction:column;gap:var(--space-4)}
.contact-form__scope{font-size:14px}
.contact-form__actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.contact-form__actions .fz-btn{flex:1 1 120px}

@media (max-width:1180px){
  .next-step{grid-template-columns:minmax(0,1fr) minmax(200px,1fr)}
  .next-step__actions{grid-column:1 / -1;justify-content:flex-start}
}
@media (max-width:1040px){
  .details{grid-template-columns:minmax(0,1fr);grid-template-areas:"next" "note" "aside" "main"}
}
@media (max-width:820px){
  .next-step{grid-template-columns:minmax(0,1fr)}
  .money{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
  .next-step{padding:var(--space-4)}
  .next-step__actions .fz-btn,.next-step__actions form{flex:1 1 100%}
  .next-step__actions form .fz-btn{width:100%}
  .line{grid-template-columns:56px minmax(0,1fr)}
  .line__photo{width:56px;height:56px}
  .line__price{grid-column:2;flex-direction:row;align-items:baseline;gap:var(--space-2);text-align:left}
  .history__day{grid-template-columns:minmax(0,1fr);gap:0}
  .history__date{padding-top:var(--space-1)}
  .history__date span{display:inline}
}

/* The back-office menu: a picture before each label, a count after some (Production board, Orders),
   a line between the groups, and a stronger mark on the open page. */
.fz-nav a{position:relative;gap:10px}
/* Wide enough for an icon, "Production board" and its count on one line. */
.office__side.fz-side{width:252px}
.fz-nav__icon{flex-shrink:0;width:20px;height:20px;color:var(--sand-ink)}
.fz-nav a[aria-current] .fz-nav__icon,.fz-nav a:hover .fz-nav__icon{color:var(--green)}
.fz-nav__label{min-width:0}
.fz-nav__count{margin-left:auto;min-width:24px;padding:1px 8px;border-radius:var(--radius-pill);background:var(--sand-tint);color:var(--green);font-size:13px;font-weight:700;text-align:center}
.fz-nav a[aria-current]{box-shadow:inset 3px 0 0 var(--green)}
.fz-nav a[aria-current] .fz-nav__count{background:var(--surface)}
.fz-nav__group{padding-top:var(--space-3);border-top:1px solid var(--line)}
.fz-nav__heading{padding-bottom:2px}
@media (max-width:820px){
  .fz-nav__group{padding-top:0;border-top:0}
  .fz-nav a[aria-current]{box-shadow:inset 0 -3px 0 var(--green)}
  .fz-nav__count{margin-left:0}
  .office__side.fz-side{width:auto}
}

/* The order confirmation pop-up at checkout (a <dialog>; public/js/app.js opens it). */
.confirm-order{width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink)}
.confirm-order::backdrop{background:rgba(15,42,38,.45)}
.confirm-order__inner{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-6)}
.confirm-order__lines{display:flex;flex-direction:column;gap:var(--space-1);margin:0;padding:0;list-style:none}
.confirm-order__lines li{display:flex;justify-content:space-between;gap:var(--space-3);font-weight:700;color:var(--green)}
.confirm-order__rows{display:flex;flex-direction:column;gap:6px;margin:0;padding-top:var(--space-3);border-top:1px solid var(--line)}
.confirm-order__rows>div{display:flex;justify-content:space-between;gap:var(--space-3)}
.confirm-order__rows dt{color:var(--muted)}
.confirm-order__rows dd{margin:0;text-align:right;overflow-wrap:anywhere}
.confirm-order__total{font-weight:700;color:var(--green)}
.confirm-order__total dt{color:var(--green)}
.confirm-order__actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.confirm-order__actions .fz-btn{flex:1 1 180px}
/* The same pop-up in the back office: cancelling an order, deleting the ticked orders. */
.confirm-order__what,.confirm-order__list{display:flex;flex-direction:column;gap:var(--space-1);margin:0;padding-left:1.25em}
.confirm-order__list{max-height:40vh;overflow-y:auto;overflow-wrap:anywhere}

/* Customer accounts (/account): one narrow card for sign-in, sign-up and passwords; a list of orders. */
.account-page{display:flex;justify-content:center}
.account-card{width:100%;max-width:480px;gap:var(--space-4);overflow-wrap:anywhere}
.account-card .form{display:flex;flex-direction:column;gap:var(--space-4)}
.account-card__links{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-5);font-size:15px}
.account-card__links a{display:inline-flex;align-items:center;min-height:var(--tap-min);font-weight:700}
.account-orders{overflow-wrap:anywhere}
.account-orders__head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--space-4)}
.account-orders__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:var(--space-4);margin:0;padding:0;list-style:none}
.account-order__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2)}
.account-order__items{color:var(--muted);overflow-wrap:anywhere}
.checkout__account{font-size:15px;color:var(--muted)}

/* The page editor's WYSIWYG (Toast UI Editor, public/vendor/toastui): our fonts, colours and corners. */
.wysiwyg .toastui-editor-defaultUI{border:1px solid var(--control-border);border-radius:var(--radius-md);font-family:var(--font-text);background:var(--surface)}
.wysiwyg .toastui-editor-defaultUI-toolbar{border-radius:var(--radius-md) var(--radius-md) 0 0;background:var(--sand-tint);border-bottom-color:var(--line)}
.wysiwyg .toastui-editor-contents,.wysiwyg .ProseMirror{font-family:var(--font-text);font-size:16px;line-height:1.6;color:var(--ink)}
.wysiwyg .toastui-editor-contents h1,.wysiwyg .toastui-editor-contents h2,.wysiwyg .toastui-editor-contents h3{font-family:var(--font-display);color:var(--green);border-bottom:0}
.wysiwyg .toastui-editor-contents blockquote{border-left:4px solid var(--sand);background:var(--sand-tint);color:var(--ink)}
.wysiwyg .toastui-editor-contents a{color:var(--green)}
.wysiwyg .toastui-editor-mode-switch{border-radius:0 0 var(--radius-md) var(--radius-md);background:var(--surface)}
.wysiwyg .toastui-editor-defaultUI .ProseMirror:focus-visible{outline:none}
.wysiwyg:focus-within .toastui-editor-defaultUI{outline:3px solid var(--green);outline-offset:2px}


/* ---------- Arranging lists by dragging (public/js/sortable.js) ---------- */

/* The handle: six dots, shown only when the script runs. touch-action:none lets a finger drag instead of scroll. */
.drag-handle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--tap-min);height:var(--tap-min);padding:0;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--muted);cursor:grab;touch-action:none}
.drag-handle:hover{background:var(--sand-tint);color:var(--green)}
.drag-handle:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.drag-handle svg{width:20px;height:20px}
.drag-handle[hidden]{display:none}
.is-dragging{position:relative;z-index:2;background:var(--surface);box-shadow:0 6px 20px rgba(27,63,58,.18);outline:2px solid var(--sand-deep)}
.is-dragging .drag-handle{cursor:grabbing;color:var(--green)}
.is-dragging-in{user-select:none;-webkit-user-select:none}
.is-saving{opacity:.75}
/* Move up / Move down: the way to arrange without the script, and from the keyboard. */
.move-buttons{display:inline-flex;gap:2px}
.move-buttons form{display:contents}
.move-buttons .fz-btn{min-width:var(--tap-min);padding-inline:var(--space-2)}
.move-buttons svg{width:18px;height:18px}
/* What the server said about a drag, at the foot of the window. */
.sort-status{position:fixed;left:50%;bottom:var(--space-5);z-index:50;max-width:min(560px,calc(100% - 32px));margin:0;padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--green);color:var(--on-green);font-size:15px;transform:translate(-50%,calc(100% + 40px));transition:transform .2s ease}
.sort-status--problem{background:var(--late);color:#fff}
.sort-status.is-shown{transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.sort-status{transition:none}}

/* The option groups on the product editor: a handle and move buttons in each group's head. */
.group-head{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
.group-head .fz-panel__title{flex:1 1 auto;margin:0}
.office-table--options .drag-cell{width:1%;white-space:nowrap}

/* The template editor's stages: a handle, the title, the arrows and Remove in each stage's head.
   While a stage is dragged every stage folds to its head, so a long template is easy to cross. */
.stage-list{display:flex;flex-direction:column;gap:var(--space-5)}
.stage-head{justify-content:flex-start;flex-wrap:wrap}
.stage-head .fz-panel__title{flex:1 1 auto;margin:0}
.stage-head__tools{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4)}
.stage-list[data-sortable-ready] .stage-head{cursor:grab}
.stage-list[data-sortable-ready] .stage-head :is(input,label,button){cursor:pointer}
.stage-list.is-dragging-in .stage-edit>:not(.stage-head):not([type="hidden"]){display:none}
.stage-list.is-dragging-in .stage-edit:not(.is-dragging){border-style:dashed}
.stage-list.is-dragging-in .stage-head{cursor:grabbing}
/* The form's first button, so Enter in a field saves rather than moves a stage; never seen. */
.default-submit{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;opacity:0}

/* Products › Arrange: one row per product in the website's order. */
.arrange-list{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding:0;list-style:none}
.arrange-row{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.arrange-row__number{min-width:2ch;font-variant-numeric:tabular-nums;color:var(--muted);text-align:right}
.arrange-row__photo{width:56px;height:56px;flex-shrink:0;border-radius:var(--radius-sm);object-fit:cover;background:var(--sand-tint)}
.arrange-row__name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.arrange-row__name small{display:block;color:var(--muted);font-size:13px}

/* Website › Website menu: one box per room, its categories as arrange rows inside. */
.menu-rooms{display:flex;flex-direction:column;gap:var(--space-4);margin:0;padding:0;list-style:none}
.menu-room{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--ground)}
.menu-room__head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3)}
.menu-room__name{margin:0;overflow-wrap:anywhere}
.menu-room__count{flex:1 1 auto}
.menu-room__rename{display:flex;flex-direction:column;gap:var(--space-3);max-width:520px}
.menu-room__why{font-size:14px}
.menu-category{flex-wrap:wrap}
.menu-category__room{display:flex;align-items:center;gap:var(--space-2);flex:0 1 300px;min-width:0}
.menu-category__room .fz-input{height:var(--tap-min);min-width:0}
.menu-category__error{flex-basis:100%;margin:0}

/* ---------- The fabric library (Catalogue › Fabrics) and the fabric picker ---------- */

.fabric-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:var(--space-4);margin:0;padding:0;list-style:none}
.fabric-card{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.fabric-card__top{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}
.fabric-card__photo{display:block;width:100%;aspect-ratio:1;border-radius:var(--radius-sm);object-fit:cover;background:var(--sand-tint)}
.fabric-card__name{margin:0;font-weight:700;overflow-wrap:anywhere}
.fabric-card__use{margin:0;font-size:13px;color:var(--muted)}
.fabric-card .form{display:flex;flex-direction:column;gap:var(--space-3)}

/* The picker on a fabric option: real radio buttons over each photo, as on the product page. */
.fabric-picker{margin:0;padding:0;border:0;min-width:0}
.fabric-picker legend{padding:0;margin-bottom:var(--space-2);font-weight:700}
.fabric-picker__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:var(--space-3);max-height:360px;overflow-y:auto;padding:4px}
.fabric-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:13px;line-height:1.3;cursor:pointer}
.fabric-choice__input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fabric-choice__photo{display:block;width:64px;height:64px;border-radius:var(--radius-sm);object-fit:cover;outline:2px solid transparent;outline-offset:3px;background:var(--sand-tint)}
.fabric-choice__plain{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border:1px dashed var(--control-border);border-radius:var(--radius-sm);color:var(--muted)}
.fabric-choice:has(.fabric-choice__input:checked) .fabric-choice__photo,.fabric-choice:has(.fabric-choice__input:checked) .fabric-choice__plain{outline-color:var(--green)}
.fabric-choice:has(.fabric-choice__input:checked) .fabric-choice__name{font-weight:700;color:var(--green)}
.fabric-choice:has(.fabric-choice__input:focus-visible) .fabric-choice__photo,.fabric-choice:has(.fabric-choice__input:focus-visible) .fabric-choice__plain{outline:3px solid var(--green)}
.fabric-choice__name{overflow-wrap:anywhere}

/* A fabric photo as a swatch: the editor's option table, the product page, the cards, order lines. */
.option-name__photo{width:24px;height:24px;flex-shrink:0;border-radius:5px;object-fit:cover;outline:1px solid var(--line)}
.swatch__photo{object-fit:cover;outline:1px solid var(--line);outline-offset:0}
.swatch:has(.swatch__input:checked) .swatch__photo{outline:2px solid var(--green);outline-offset:3px}
.swatch:has(.swatch__input:focus-visible) .swatch__photo{outline:3px solid var(--green);outline-offset:3px}
.swatch__photo--round{border-radius:50%}
.line__swatch--photo{object-fit:cover}
/* At the ends of a list the blocked arrow is faded, not outlined. */
.move-buttons .fz-btn[aria-disabled="true"]{opacity:.3;border-color:transparent;box-shadow:none;background:transparent}
/* The option rows keep their buttons on one line; the table scrolls sideways on a phone. */
.office-table--options .row-actions{flex-wrap:nowrap}
.office-table--options td,.office-table--options th{white-space:nowrap}
.fabric-picker legend.fz-label{font-weight:700}
@media (max-width:480px){
    .arrange-row{gap:var(--space-2);padding:var(--space-2)}
    .arrange-row__photo{display:none}
}

/* Wood stains (Catalogue › Wood stains) share the fabric library's look; on a timber finish option the photos are round, as customers see them. */
.fabric-picker--round .fabric-choice__photo,.fabric-picker--round .fabric-choice__plain{border-radius:50%}
.option-name__photo--round{border-radius:50%}

/* Website › Home page: the large photo shown now, above the field for a new one. */
.hero-photo{display:flex;flex-direction:column;gap:var(--space-3)}
.hero-photo__preview{display:block;width:100%;max-width:480px;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--sand-tint)}

/* Office › Pages: the pictures in the text, each with its description and position. */
.page-images__list{display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-4)}
.page-images__list ul{display:flex;flex-direction:column;gap:var(--space-3);margin:0;padding:0;list-style:none}
.page-images__item{display:flex;align-items:flex-start;gap:var(--space-4);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md)}
.page-images__thumb{flex:0 0 96px;width:96px;height:96px;object-fit:cover;border-radius:var(--radius-sm);background:var(--sand-tint)}
.page-images__fields{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--space-2) var(--space-3);flex:1;min-width:0}

/* Website › Footer: the links of a column, one row each. */
.footer-editor__switches{display:flex;flex-direction:column;gap:var(--space-2);margin:var(--space-4) 0;padding:0;border:0}
.footer-editor__links{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-2)}
.footer-editor__table{width:100%;border-collapse:collapse}
.footer-editor__table th{padding:6px 8px 6px 0;font-size:13px;font-weight:500;color:var(--muted);text-align:left}
.footer-editor__table td{padding:4px 8px 4px 0;vertical-align:top}
.footer-editor__order{width:72px}
@media (max-width:760px){
  .footer-editor__table thead{display:none}
  .footer-editor__table,.footer-editor__table tbody,.footer-editor__table tr,.footer-editor__table td{display:block;width:100%}
  .footer-editor__table tr{padding:var(--space-3) 0;border-top:1px solid var(--line)}
  .footer-editor__table td>label.visually-hidden{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:normal;font-size:13px;color:var(--muted)}
}

/* Sales › Abandoned checkouts: the last 30 days in figures, then one panel per checkout:
   who, the cart, and following up. */
.abandoned-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--space-3);margin:0}
.abandoned-summary>div{padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.abandoned-summary dt{font-size:13px;color:var(--muted)}
.abandoned-summary dd{margin:2px 0 0;font-size:20px;font-weight:700}
.abandoned-summary__note{margin-top:calc(-1 * var(--space-2));font-size:13px}
.abandoned-list{display:flex;flex-direction:column;gap:var(--space-3);margin:0;padding:0;list-style:none}
.abandoned-item{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1fr);gap:var(--space-5);align-items:start}
.abandoned-item p{margin:0}
.abandoned-item__who{display:flex;flex-direction:column;gap:4px}
.abandoned-item__name{font-weight:700;font-size:16px}
.abandoned-item__cart ul{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}
.abandoned-item__cart li,.abandoned-item__total{display:flex;justify-content:space-between;gap:var(--space-3)}
.abandoned-item__total{margin-top:var(--space-2)!important;padding-top:var(--space-2);border-top:1px solid var(--line)}
.abandoned-item__follow{display:flex;flex-direction:column;gap:var(--space-2)}
.abandoned-item__form{display:flex;flex-direction:column;gap:var(--space-2)}
.abandoned-item__note{padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--sand-tint);font-size:14px}
@media (max-width:860px){
  .abandoned-item{grid-template-columns:minmax(0,1fr)}
}

/* The app switcher, top right of the back office (config office.apps): Furniture Zoo, People,
   and CRM and Books greyed out as coming soon. A <details>: it opens without JavaScript. */
.office__topbar{display:flex;justify-content:flex-end;margin-bottom:calc(-1 * var(--space-3))}
.office__app-name{margin:calc(-1 * var(--space-2)) 0 var(--space-2);padding:0 var(--space-3);font-family:var(--font-display);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.app-switcher{position:relative}
.app-switcher__button{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--tap-min);padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font-weight:600;font-size:14px;list-style:none;cursor:pointer}
.app-switcher__button::-webkit-details-marker{display:none}
.app-switcher__button svg{width:18px;height:18px;fill:currentColor;color:var(--green)}
.app-switcher[open] .app-switcher__button{border-color:var(--green)}
.app-switcher__panel{position:absolute;top:calc(100% + 6px);right:0;z-index:40;width:min(320px,calc(100vw - 32px));padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 12px 28px rgba(30,42,39,.16)}
.app-switcher__heading{margin:0 0 var(--space-2);padding:0 var(--space-2);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.app-switcher__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);margin:0;padding:0;list-style:none}
.app-switcher__app{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:84px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);color:var(--ink);text-decoration:none}
a.app-switcher__app:hover{border-color:var(--green);background:var(--sand-tint)}
.app-switcher__app[aria-current]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.app-switcher__icon{width:22px;height:22px;color:var(--green);margin-bottom:var(--space-1)}
.app-switcher__label{font-weight:700}
.app-switcher__note{font-size:12px;color:var(--muted)}
.app-switcher__app--soon{opacity:.45;cursor:not-allowed;filter:grayscale(1)}
.app-switcher__app--soon .app-switcher__icon{color:var(--muted)}

/* People (HR, leave, payroll). */
.people-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:var(--space-4);align-items:start}
.people-list{display:flex;flex-direction:column;gap:var(--space-2);margin:0 0 var(--space-3);padding:0;list-style:none}
.people-add{margin-top:var(--space-4)}
.people-add>summary{cursor:pointer}
.people-add form{margin-top:var(--space-3)}
.inline-form{display:inline;margin-left:var(--space-2)}
.link-button{padding:0;border:0;background:none;color:var(--green);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
.leave-item{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:var(--space-5);align-items:start}
.leave-item p{margin:0 0 4px}
.leave-item__actions{display:flex;flex-direction:column;gap:var(--space-2)}
.payroll-new{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-3)}
.payroll-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.payslip-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-6);margin-top:var(--space-4)}
.payslip-lines{margin-left:0!important;width:100%!important}
@media (max-width:760px){
  .leave-item,.payslip-cols{grid-template-columns:minmax(0,1fr)}
}

/* Back office, 2026-11-16 design pass. */
/* Confirm step (public/js/app.js): a <details> that shows what happens and the real button; with the script, a pop-up. */
.office .confirm-step{align-self:flex-start;max-width:100%}
.office .confirm-step>summary{list-style:none;max-width:100%;white-space:normal;text-align:left}
.office .confirm-step>summary::-webkit-details-marker{display:none}
.office .confirm-step[open]>summary{text-decoration:none}
.office .confirm-step__body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3);margin-top:var(--space-2);padding:var(--space-3) 14px;border-radius:var(--radius-md);background:var(--watch-tint)}
.office .form-actions--split{justify-content:space-between}
/* A heading inside a panel, set at label size so it never outranks the panel title. */
.office .label-heading{margin:var(--space-2) 0 0;font-family:var(--font-text);font-size:14px;line-height:1.5;font-weight:700;letter-spacing:0;color:var(--ink)}
/* Words to type as they are ({customer}): a small chip in the text face, never monospace.
   Only where marked (<code class="token">); any other <code> keeps the browser's look. */
.office .token{padding:1px 8px;border-radius:var(--radius-pill);background:var(--sand-tint);font-family:var(--font-text);font-size:14px;font-weight:700;color:var(--green)}
/* "Ready to buy" in the product list: a piece already made, apart from the publishing chips. */
.office .fz-chip--ready{background:var(--green);color:var(--on-green)}
/* On a phone the menu row scrolls on its own, so bringing the current entry into view keeps the logo line in place. */
@media (max-width:820px){
  .office .office__side .fz-nav{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin}
}

/* ---------- Reviews, back office (2026-11-16) ---------- */
.office-table--reviews{min-width:900px}
.review-excerpt{min-width:240px;max-width:420px;overflow-wrap:anywhere}
.office .stars__row{color:var(--sand-ink);letter-spacing:.06em}

/* ---------- Newsletter, back office (2026-11-16) ---------- */
.office-table--subscribers{min-width:560px}
.story-cover-preview{display:block;max-width:100%;height:auto;margin-bottom:var(--space-4);border-radius:var(--radius-md)}

/* ---------- Website › Past projects (2026-12-03) ---------- */
.arrange-row__photo.project-list__cover{width:75px;height:56px}
.project-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:var(--space-6) var(--space-5);margin:0;padding:0;list-style:none}
.project-photo{display:flex;flex-direction:column;gap:var(--space-3);min-width:0;scroll-margin-top:var(--space-6)}
.project-photo__image{display:block;width:100%;height:100%;object-fit:cover}
.project-photo__actions{gap:var(--space-1) var(--space-2)}
.project-photo-errors{margin:var(--space-1) 0 0;padding-left:1.2em}
.project-chosen{display:flex;flex-direction:column;gap:var(--space-1);margin:0;padding:0;list-style:none;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.project-chosen__bad{color:var(--late)}
/* "Made in our workshop" on a category page: the cards are figures, not links, since 2026-12-03. */
figure.project-card{margin:0}
