/* customer.css: the customer side of the Quoting System Mockup (card P4051, customer lane). The shop's paper, not CabDesign's screen.
   Tokens only, from shared/theme.css and quote-tokens.css: no hex value here. Every selector is under the lane's prefix qc-.
   The three layouts hang on data-width (desktop 1440, tablet 1180 by 820, phone 390) on the root, never on a media query, because the shop
   page draws this page inside a scaled box. The only media rules are print and prefers-reduced-motion. */

/* ---- the root, the brand and the paper ---- */
.qc{ position:relative; width:100%; min-height:100%; background:var(--bg); color:var(--text); font-size:var(--type-body-size); line-height:var(--type-body-lh);
  --qc-btn-bg:var(--q-accent); --qc-btn-ink:var(--q-accent-ink); --qc-link:var(--q-accent);
  --q-diff-old:var(--danger-soft); --q-diff-old-ink:var(--danger); --q-diff-new:var(--ok-soft); --q-diff-new-ink:var(--ok);
  --qc-gap:96px; --qc-side:24px; --qc-story:800px; --qc-aside:380px; --qc-col:1240px; --qc-colgap:60px; --qc-target:40px; --qc-hero-h:620px; }
.qc[data-width="tablet"]{ --qc-gap:72px; --qc-story:716px; --qc-col:1132px; --qc-colgap:36px; --qc-target:44px; --qc-hero-h:480px; }
.qc[data-width="phone"]{ --qc-gap:56px; --qc-side:16px; --qc-story:100%; --qc-col:100%; --qc-target:44px; --qc-hero-h:300px; font-size:1rem; }
.qc[data-present]{ font-size:1.0625rem; }
.qc *{ box-sizing:border-box; }
.qc a, .qc .q-link{ color:var(--qc-link); }
.qc .q-btn-primary, .qc .qc-btn-brand{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); color:var(--qc-btn-ink); }
.qc .q-btn-primary:hover, .qc .qc-btn-brand:hover{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); filter:brightness(1.08); }
.qc .q-btn{ min-height:var(--qc-target); }
.qc .q-btn-lg{ height:48px; min-height:48px; }
.qc .q-btn:focus-visible, .qc button:focus-visible, .qc [tabindex]:focus-visible, .qc input:focus-visible, .qc select:focus-visible, .qc textarea:focus-visible, .qc summary:focus-visible, .qc a:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.qc .q-num{ display:inline-block; min-width:9ch; }
.qc .qc-num-wide{ min-width:11ch; }
.qc .qc-money{ font-family:var(--font-num); font-variant-numeric:tabular-nums lining-nums; text-align:right; white-space:nowrap; }
.qc .q-chip{ height:28px; }
.qc[data-width="phone"] .q-chip, .qc[data-width="tablet"] .q-chip{ min-height:var(--qc-target); height:auto; padding:8px 14px; }
.qc .q-info{ width:22px; height:22px; }

/* ---- the device frames the harness and the customer side draw when the page is not the whole window ---- */
.qc-device{ margin:0 auto; background:var(--bg); }
.qc-device[data-width="desktop"]{ width:1440px; }
.qc-device[data-width="tablet"]{ width:1180px; height:820px; overflow:auto; border:1px solid var(--border); border-radius:var(--radius-lg); margin:16px auto; box-shadow:var(--elev-2); }
.qc-device[data-width="phone"]{ width:390px; height:844px; overflow:auto; border:1px solid var(--border); border-radius:28px; margin:16px auto; box-shadow:var(--elev-2); }

/* ---- the top bar: 64 px, white, the shop's mark and name, the proposal label, three actions ---- */
.qc-top{ position:sticky; top:0; z-index:var(--layer-docked-sub); height:64px; display:flex; align-items:center; gap:16px; padding:0 var(--qc-side); background:var(--surface); border-bottom:1px solid var(--border); }
.qc-top-shop{ display:flex; align-items:center; gap:12px; font-weight:700; font-size:1.0625rem; white-space:nowrap; }
.qc-mark{ width:36px; height:36px; border-radius:10px; background:var(--q-accent); color:var(--q-accent-ink); display:inline-flex; align-items:center; justify-content:center; font:700 15px/1 var(--font); letter-spacing:.02em; flex:none; }
.qc-mark-lg{ width:56px; height:56px; border-radius:14px; font-size:22px; }
.qc-top-label{ color:var(--text-muted); font-size:var(--type-fine-size); white-space:nowrap; }
.qc-top-grow{ flex:1 1 auto; min-width:0; }
.qc-top-actions{ display:flex; gap:8px; align-items:center; }
.qc[data-width="phone"] .qc-top{ gap:10px; }
.qc[data-width="phone"] .qc-top-label, .qc[data-width="phone"] .qc-top-actions .qc-top-wide{ display:none; }
.qc[data-width="phone"] .qc-top-shop span{ font-size:.95rem; }

/* ---- the present bar ---- */
.qc-present-bar{ height:56px; display:flex; align-items:center; gap:12px; padding:0 16px; background:var(--text); color:var(--bg); font:600 13px/1 var(--font); position:sticky; top:0; z-index:var(--layer-docked-sub-top); }
.qc-present-bar .q-btn{ height:44px; min-height:44px; min-width:44px; background:transparent; color:var(--bg); border-color:var(--text-muted); }
/* the tag on the dark bar reads in the bar's own light color: in the shared muted color the words Draft, Not Sent could hardly be read there (seen 11/20/2026) */
.qc-present-bar .q-mock-tag{ color:var(--bg); border-color:var(--bg); }
.qc[data-present] .qc-top{ top:56px; }

/* ---- the hero and the Picture Stage ---- */
/* See It scrolls the hero into view: it stops under the 64 px top bar that stays on screen, so the label over the drawing is not behind the bar (measured 11/20/2026: the label sat at 48 px, under the bar) */
.qc-hero{ position:relative; width:100%; background:var(--surface-hi); scroll-margin-top:64px; }
.qc-stage{ position:relative; width:100%; }
.qc-stage-box{ position:relative; width:100%; overflow:hidden; background:var(--surface-hi); }
.qc-stage-pic, .qc-stage-draw, .qc-stage-left{ position:absolute; inset:0; }
.qc-stage-draw{ display:flex; align-items:center; justify-content:center; background:var(--surface); padding:24px; }
.qc-stage-draw svg{ max-width:100%; max-height:100%; }
.qc-stage-draw[hidden]{ display:none; }
.qc-stage-left{ z-index:var(--layer-step-2); overflow:hidden; }
.qc-stage-left img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.qc-stage-line{ position:absolute; top:0; bottom:0; width:2px; background:var(--surface); z-index:var(--layer-step-3); transform:translateX(-1px); box-shadow:0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
.qc-stage-handle{ position:absolute; top:50%; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%; background:var(--surface); color:var(--text); border:1px solid var(--border-strong); z-index:var(--layer-step-4); display:flex; align-items:center; justify-content:center; cursor:ew-resize; box-shadow:var(--elev-1); touch-action:none; padding:0; }
.qc-stage-tag{ position:absolute; z-index:var(--layer-step-5); top:16px; padding:6px 12px; border-radius:var(--radius-pill); background:color-mix(in srgb, var(--text) 72%, transparent); color:var(--bg); font:600 13px/1 var(--font); display:flex; align-items:center; gap:8px; }
.qc-stage-tag-left{ left:16px; } .qc-stage-tag-right{ right:16px; }
.qc-stage-tag .q-mock-tag{ color:var(--bg); border-color:var(--bg); }
.qc-stage-scrim{ position:absolute; inset:auto 0 0 0; z-index:var(--layer-step-6); padding:40px var(--qc-side) 28px; background:linear-gradient(to top, color-mix(in srgb, var(--text) 78%, transparent), color-mix(in srgb, var(--text) 35%, transparent) 60%, transparent); color:var(--bg); display:flex; flex-direction:column; gap:14px; pointer-events:none; }
.qc-stage-scrim > *{ pointer-events:auto; }
/* the picture itself always fills its box, whatever else is on the page (a dialog, a focus move): the hero can never jump to a crop of its own still */
.qc-stage-pic img{ position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; display:block; }
/* the title band is the same band on every view (the third audit's eleventh item): a view chip changes the picture and nothing else, so the title, the total and Approve And Sign
   keep their place and their height on the whole kitchen, the Floor Plan and each wall; the drawings are given the band's height as room below (fitDraw in customer.js) */
.qc-stage-box[data-view="plan"] .qc-stage-draw{ padding:20px var(--qc-side) 24px; }
.qc-stage-box[data-view="sink"] .qc-stage-pic img, .qc-stage-box[data-view="range"] .qc-stage-pic img, .qc-stage-box[data-view="island"] .qc-stage-pic img{ object-position:50% 30%; }
.qc-stage-chips{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:12px var(--qc-side); background:var(--surface); border-bottom:1px solid var(--border); }
.qc-stage-chips .qc-chips-grow{ flex:1 1 auto; }
.qc-stage-wait{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-weight:600; }
.qc-hero-title{ margin:0; font-size:clamp(2.5rem, 4.4vw, 3.7rem); line-height:1.04; font-weight:700; letter-spacing:-.015em; max-width:900px; text-wrap:balance; }
.qc[data-width="phone"] .qc-hero-title{ font-size:1.9rem; }
.qc[data-width="tablet"] .qc-hero-title{ font-size:2.6rem; }
.qc-hero-sub{ margin:0; font-size:var(--type-lede-size); line-height:1.4; opacity:.92; }
.qc-hero-row{ display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; }
.qc-hero-row .q-btn{ background:var(--surface); color:var(--text); border-color:var(--surface); }
.qc-facts{ display:flex; flex-wrap:wrap; gap:8px; padding:14px var(--qc-side); background:var(--surface); border-bottom:1px solid var(--border); }
.qc-facts .q-chip{ background:var(--surface-hi); border-color:var(--border); font-size:13px; }
.qc[data-width="phone"] .qc-stage-scrim{ padding:24px 16px 16px; gap:10px; }
.qc[data-width="phone"] .qc-stage-scrim .qc-hero-sub{ font-size:1rem; }
/* the slider on the phone (the before photo, 11/20): each label keeps to its own half, with the Sample Photo tag under Your Kitchen Today, so the two never sit across
   each other; and the handle rides in the clear band between the labels and the title, where a thumb can hold it (at the middle it sat under the title) */
.qc[data-width="phone"] .qc-stage-tag{ top:12px; max-width:calc(50% - 18px); padding:6px 10px; border-radius:var(--radius-md); font-size:12px; line-height:1.25; flex-wrap:wrap; gap:5px 8px; }
.qc[data-width="phone"] .qc-stage-tag-left{ left:12px; } .qc[data-width="phone"] .qc-stage-tag-right{ right:12px; }
.qc[data-width="phone"] .qc-stage-handle{ top:34%; }
/* the shop's mark keeps to its own width in the title band: as a full-width row it lay, unseen, over the slider's handle wherever the two were level */
.qc-stage-scrim > div:first-child{ align-self:flex-start; }

/* ---- the body: a story column and the sticky aside ---- */
.qc-body{ width:var(--qc-col); max-width:100%; margin:0 auto; display:grid; grid-template-columns:var(--qc-story) var(--qc-aside); column-gap:var(--qc-colgap); align-items:start; padding:0 0 var(--qc-gap); }
.qc[data-width="phone"] .qc-body{ grid-template-columns:100%; padding:0 var(--qc-side) 120px; }
.qc-story{ min-width:0; display:flex; flex-direction:column; gap:var(--qc-gap); padding-top:var(--qc-gap); }
.qc-aside{ position:sticky; top:88px; align-self:start; padding-top:32px; }
.qc[data-present] .qc-aside{ top:144px; }
.qc[data-width="phone"] .qc-aside{ display:none; }
.qc-section{ display:flex; flex-direction:column; gap:20px; scroll-margin-top:96px; }
.qc-section-title{ margin:0; font-size:var(--type-h2-size); line-height:var(--type-h2-lh); font-weight:700; letter-spacing:-.015em; }
.qc-section-lede{ margin:0; font-size:var(--type-lede-size); line-height:var(--type-lede-lh); color:var(--text-muted); }
.qc-lede{ font-size:var(--type-lede-size); line-height:var(--type-lede-lh); }
.qc-fine{ font-size:var(--type-fine-size); line-height:1.45; color:var(--text-muted); }
.qc-flash{ animation:qc-flash 900ms ease-out 1; }
@keyframes qc-flash{ 0%{ background:var(--q-accent-soft); } 100%{ background:transparent; } }
.qc-eyebrow{ font:600 13px/1 var(--font); letter-spacing:.08em; text-transform:uppercase; color:var(--q-accent); }
.qc[data-contrast="too-light"] .qc-eyebrow{ color:var(--text-muted); }

/* ---- the note ---- */
.qc-note{ display:grid; grid-template-columns:64px 1fr; gap:20px; align-items:start; }
.qc-note-face{ width:64px; height:64px; border-radius:50%; background:var(--q-accent-soft); color:var(--q-accent); display:flex; align-items:center; justify-content:center; font:700 22px/1 var(--font); border:1px solid var(--border); }
.qc[data-contrast="too-light"] .qc-note-face{ color:var(--text); }
.qc-note p{ margin:0 0 12px; font-size:var(--type-lede-size); line-height:var(--type-lede-lh); }
.qc-note-sign{ font-style:italic; color:var(--text-muted); }
.qc[data-width="phone"] .qc-note{ grid-template-columns:1fr; }
.qc[data-width="phone"] .qc-note-face{ display:none; }

/* ---- rows: a priced row is a name in the lede size over one muted line, 72 px or more tall ---- */
.qc-rows{ display:flex; flex-direction:column; border-top:1px solid var(--border); }
.qc-row{ display:grid; grid-template-columns:1fr auto; gap:8px 24px; align-items:center; min-height:72px; padding:16px 0; border-bottom:1px solid var(--border); }
.qc-row-name{ font-size:var(--type-lede-size); line-height:1.35; font-weight:600; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.qc-row-sub{ color:var(--text-muted); margin-top:4px; }
.qc-row-amt{ font-family:var(--font-num); font-variant-numeric:tabular-nums lining-nums; font-size:1.125rem; font-weight:600; text-align:right; white-space:nowrap; min-width:11ch; }
.qc-row-amt .q-num{ min-width:11ch; }
.qc-row-actions{ grid-column:1 / -1; display:flex; gap:8px; flex-wrap:wrap; }
.qc-heard li{ font-size:var(--type-lede-size); line-height:var(--type-lede-lh); padding:12px 0; border-bottom:1px solid var(--border); list-style:none; display:flex; gap:14px; align-items:baseline; }
.qc-heard{ margin:0; padding:0; border-top:1px solid var(--border); }
.qc-heard .q-link{ font-size:var(--type-fine-size); white-space:nowrap; }
.qc-dot{ width:10px; height:10px; border-radius:50%; background:var(--q-accent); display:inline-block; flex:none; }
.qc[data-contrast="too-light"] .qc-dot{ background:var(--text); }

/* ---- Option Cards: three share the story column; stack on a phone. The three cards share one set of rows (subgrid), so the price, the difference line,
   the lead time and the button sit at the same height on every card whatever the length of its words (the walk's eighth item). ---- */
.qc-cards{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); grid-template-rows:repeat(9, auto); gap:16px; }
.qc[data-width="phone"] .qc-cards{ grid-template-columns:1fr; grid-template-rows:none; }
.qc-card{ position:relative; display:grid; grid-template-rows:subgrid; grid-row:span 9; row-gap:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; cursor:pointer; outline:none; transition:border-color var(--bws-motion), box-shadow var(--bws-motion); }
.qc-card:hover .qc-card-pic{ box-shadow:inset 0 0 0 2px var(--q-accent); }
.qc-card[aria-checked="true"]{ box-shadow:0 0 0 2px var(--q-accent); border-color:var(--q-accent); }
.qc-card:focus-visible{ outline:2px solid var(--text); outline-offset:3px; }
.qc-card-pic{ position:relative; aspect-ratio:4 / 3; background:var(--surface-hi); overflow:hidden; }
.qc-card-pic > div{ position:absolute; inset:0; }
.qc-card-pic[data-pantry] img{ object-position:62% 50%; }   /* with the Pantry Wall on, the kitchen runs to the right edge of the still: the crop follows it */
.qc-card-band{ height:32px; display:flex; align-items:center; gap:8px; padding:0 16px; background:var(--q-accent-soft); color:var(--text); font:600 13px/1 var(--font); }
.qc-card-band-empty{ background:transparent; }
.qc-card-check{ position:absolute; top:12px; right:12px; width:32px; height:32px; border-radius:50%; background:var(--q-accent); color:var(--q-accent-ink); display:none; align-items:center; justify-content:center; z-index:var(--layer-step-2); }
.qc-card[aria-checked="true"] .qc-card-check{ display:flex; }
.qc-card-body{ display:grid; grid-template-rows:subgrid; grid-row:span 7; row-gap:10px; padding:16px; align-items:start; }
.qc-card-name{ margin:0; font-size:1.4rem; line-height:1.2; font-weight:700; letter-spacing:-.01em; }
.qc-card-sentence{ margin:0; color:var(--text-muted); line-height:1.5; min-height:3lh; }
.qc-card-bullets{ margin:0; padding:0 0 0 18px; color:var(--text); line-height:1.55; min-height:4lh; }   /* the four bullets the shop wrote, none cut (the second audit's twentieth item) */
.qc-card-bullets li{ margin:0; }
.qc-card-price{ font-family:var(--font-num); font-variant-numeric:tabular-nums; font-size:1.7rem; line-height:1.1; font-weight:700; text-align:right; }
.qc-card-diff{ text-align:right; color:var(--text-muted); font-weight:600; min-height:1.5em; }
.qc-card-lead{ color:var(--text-muted); font-size:var(--type-fine-size); display:flex; align-items:center; gap:6px; }
.qc-card-choose{ margin-top:auto; width:100%; align-self:end; }
.qc-card-price, .qc-card-diff, .qc-card-lead{ align-self:end; }
.qc-card-choose[aria-pressed="true"]{ background:var(--q-accent-soft); color:var(--text); border-color:var(--q-accent); }
.qc-compare-row{ display:flex; justify-content:flex-end; }

/* ---- Compare dialog ---- */
.qc-compare{ display:flex; flex-direction:column; gap:16px; }
.qc-compare-pics{ position:relative; width:100%; aspect-ratio:1440 / 620; overflow:hidden; border-radius:var(--radius-sm); background:var(--surface-hi); }
.qc-compare-head{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; align-items:end; }
.qc-compare-head > div{ display:flex; flex-direction:column; gap:4px; }
.qc-compare-picks{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap:16px; align-items:start; }
.qc-compare-views{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; min-height:40px; }
.qc-compare-side{ position:absolute !important; inset:0; overflow:hidden; }
.qc-compare-side img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.qc-compare-pics .qc-stage-tag{ pointer-events:none; }
.qc-compare table td:first-child{ font-weight:600; }
.qc-compare .qc-differs{ background:var(--q-accent-soft); }

/* ---- add-ons: the list never reflows ---- */
.qc-addon{ display:grid; grid-template-columns:var(--qc-target) 96px 1fr auto; gap:16px; align-items:center; min-height:88px; padding:14px 0; border-bottom:1px solid var(--border); }
.qc[data-width="phone"] .qc-addon{ grid-template-columns:var(--qc-target) 1fr auto; }
.qc[data-width="phone"] .qc-addon-pic{ display:none; }
.qc-addon-pic{ width:96px; height:72px; border-radius:var(--radius-xs); overflow:hidden; background:var(--surface-hi); position:relative; }
.qc-addon-pic > div{ position:absolute; inset:0; }
.qc-tick{ width:var(--qc-target); height:var(--qc-target); border-radius:8px; border:2px solid var(--border-strong); background:var(--surface); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; color:var(--q-accent-ink); flex:none; }
.qc-tick[aria-checked="true"]{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); }
.qc-tick[aria-disabled="true"]{ cursor:not-allowed; opacity:.55; }
.qc-tick svg{ display:none; } .qc-tick[aria-checked="true"] svg{ display:block; }
.qc-addon-words{ min-width:0; }
.qc-addon-name{ font-size:var(--type-lede-size); font-weight:600; line-height:1.3; }
.qc-addon-sentence{ color:var(--text-muted); margin-top:2px; }
.qc-addon-right{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.qc-addon-price{ font-family:var(--font-num); font-variant-numeric:tabular-nums; font-size:1.125rem; font-weight:600; white-space:nowrap; min-width:9ch; text-align:right; }
.qc-addon-state{ font-size:var(--type-fine-size); color:var(--text-muted); font-weight:600; display:flex; align-items:center; gap:6px; }
.qc-addon[data-gray]{ color:var(--text-muted); }
.qc-addon[data-gray] .qc-addon-name{ color:var(--text-muted); }

/* ---- Also Available: the Pantry Wall as a wide card. The picture is a full-width band on top at the hero's own proportions, so the whole kitchen with the
   pantry wall is in frame and nothing can sit over the words or the button under it (the walk's first and third items, and the 4:20 AM fix). ---- */
.qc-wide{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.qc-wide-pic{ position:relative; width:100%; flex:none; aspect-ratio:1440 / 620; min-height:0; background:var(--surface-hi); overflow:hidden; }
.qc-wide-pic > div{ position:absolute; inset:0; }
.qc-wide-pic img{ position:absolute !important; inset:0; width:100% !important; height:100% !important; max-width:none; object-fit:cover; object-position:50% 50%; display:block; }
.qc-wide-body{ position:relative; z-index:var(--layer-step-1); padding:24px; display:flex; flex-direction:column; gap:10px; background:var(--surface); }
.qc[data-width="phone"] .qc-wide-body{ padding:16px; }
.qc-wide-price{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; }
.qc-wide-price .qc-money{ font-size:1.7rem; font-weight:700; }
.qc-wide-price .q-num{ min-width:0; text-align:left; }   /* a headline figure at the card's left edge, not right-aligned inside a reserved box */

/* ---- included and not ---- */
.qc-two{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.qc[data-width="phone"] .qc-two{ grid-template-columns:1fr; }
.qc-col-title{ margin:0 0 8px; font-size:1.125rem; font-weight:700; display:flex; align-items:center; gap:8px; }
.qc-list{ margin:0; padding:0; list-style:none; border-top:1px solid var(--border); }
.qc-list li{ display:flex; align-items:center; gap:10px; min-height:48px; padding:10px 0; border-bottom:1px solid var(--border); line-height:1.45; }
.qc-list-muted li{ color:var(--text-muted); }
.qc-badge{ display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 8px; border-radius:var(--radius-pill); border:1px solid var(--border); font:600 11px/1 var(--font); color:var(--text-muted); white-space:nowrap; margin-left:auto; }
.qc-checklist td{ vertical-align:top; }

/* ---- room by room ---- */
.qc-room{ display:grid; grid-template-columns:1fr 240px; gap:20px; align-items:center; padding:20px 0; border-bottom:1px solid var(--border); }
.qc[data-width="phone"] .qc-room{ grid-template-columns:1fr; }
.qc-room-pic{ position:relative; width:240px; height:150px; border-radius:var(--radius-xs); overflow:hidden; background:var(--surface-hi); }
.qc[data-width="phone"] .qc-room-pic{ width:100%; height:auto; aspect-ratio:16 / 10; }
.qc-cabs-draws{ display:flex; flex-direction:column; gap:14px; }
.qc-cabs-draw{ display:flex; align-items:center; justify-content:center; }
.qc-cabs-draw svg{ max-width:100%; height:auto; }
.qc-room-head{ display:flex; justify-content:space-between; gap:16px; align-items:baseline; }
.qc-room-name{ font-size:var(--type-lede-size); font-weight:600; }
.qc-room-sentence{ color:var(--text-muted); margin-top:2px; }
/* Approve Now / Hold For Later is a two-button group as wide as its words, never a bar across the row with an empty strip beside it */
.qc-hold{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin-top:10px; }
.qc-hold > .q-seg{ width:auto; flex:none; }
.qc-hold-words{ color:var(--text-muted); font-size:var(--type-fine-size); line-height:1.5; }
.qc-cabs li{ display:grid; grid-template-columns:1fr auto; gap:12px; }
/* what the customer added, under the rooms: its badge sits beside the name, and the list is not drawn at all while nothing is added */
.qc-row-name .qc-badge{ margin-left:0; }
.qc-added:empty{ display:none; }

/* ---- timeline ---- */
.qc-track{ display:flex; gap:0; position:relative; padding:8px 0; }
.qc-track[data-vertical]{ flex-direction:column; gap:0; }
.qc-step{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:8px; position:relative; padding:0 8px 0 0; }
.qc-track[data-vertical] .qc-step{ flex-direction:row; gap:16px; align-items:flex-start; padding:0 0 20px; }
.qc-step-line{ position:absolute; top:11px; left:24px; right:-8px; height:2px; background:var(--border); }
.qc-step:last-child .qc-step-line{ display:none; }
.qc-track[data-vertical] .qc-step-line{ top:24px; left:11px; right:auto; bottom:-4px; width:2px; height:auto; }
.qc-step-mark{ width:24px; height:24px; border-radius:50%; border:2px solid var(--border-strong); background:var(--surface); display:flex; align-items:center; justify-content:center; color:var(--q-accent-ink); flex:none; position:relative; z-index:var(--layer-step-1); }
.qc-step[data-state="done"] .qc-step-mark{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); }
.qc-step[data-state="now"] .qc-step-mark, .qc-step[data-state="waiting"] .qc-step-mark{ border-color:var(--q-accent); box-shadow:0 0 0 3px var(--q-accent-soft); }
.qc-step[data-state="now"] .qc-step-mark::after, .qc-step[data-state="waiting"] .qc-step-mark::after{ content:""; width:8px; height:8px; border-radius:50%; background:var(--q-accent); }
.qc-step-words{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.qc-step-name{ font-weight:600; line-height:1.3; }
.qc-step-date{ color:var(--text-muted); font-size:var(--type-fine-size); }
.qc-step-state{ font-size:var(--type-fine-size); color:var(--text-muted); display:flex; align-items:center; gap:4px; }
/* a Mockup tag inside a step wraps inside its own column: the shared tag never wraps, and under the Deposit step it ran across the next step's date (seen 11/20/2026 on the project page) */
.qc-step-words .q-mock-tag{ white-space:normal; height:auto; min-height:20px; padding:3px 8px; line-height:1.25; border-radius:var(--radius-md); align-self:flex-start; max-width:100%; flex:0 1 auto; margin:2px 0; }

/* ---- payments ---- */
.qc-pay{ display:grid; grid-template-columns:1fr auto; gap:6px 24px; align-items:center; min-height:72px; padding:14px 0; border-bottom:1px solid var(--border); }
.qc-pay-event{ color:var(--text-muted); }

/* ---- fine print ---- */
.qc-details{ border-top:1px solid var(--border); }
.qc-details details{ border-bottom:1px solid var(--border); }
.qc-details summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; padding:14px 0; font-size:var(--type-lede-size); font-weight:600; }
.qc-details summary::-webkit-details-marker{ display:none; }
.qc-details summary .q-icon{ transition:transform var(--bws-motion); }
.qc-details details[open] summary .q-icon{ transform:rotate(180deg); }
.qc-details details > div{ padding:0 0 18px; color:var(--text-muted); line-height:1.6; max-width:680px; }

/* ---- about the shop: the shop's facts as four small tiles and the person behind the proposal; nothing staged ---- */
.qc-about{ display:flex; flex-direction:column; gap:20px; }
.qc-about-facts{ margin:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
.qc[data-width="phone"] .qc-about-facts{ grid-template-columns:1fr 1fr; }
.qc-about-fact{ padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); display:flex; flex-direction:column; gap:4px; min-width:0; }
.qc-about-fact dt{ font-size:var(--type-fine-size); font-weight:600; color:var(--text-muted); }
.qc-about-fact dd{ margin:0; font-size:1.125rem; font-weight:700; text-align:left; line-height:1.3; }
.qc-about-who{ display:flex; align-items:center; gap:14px; }
.qc-about-who .qc-note-face{ width:48px; height:48px; font-size:17px; }

/* ---- bands in the shop's color ---- */
.qc-band{ background:var(--q-accent); color:var(--q-accent-ink); padding:56px var(--qc-side); }
.qc-band-inner{ width:var(--qc-col); max-width:100%; margin:0 auto; display:flex; flex-direction:column; gap:24px; }
.qc-band .qc-section-title{ color:inherit; font-size:2.1rem; }
.qc-band .q-btn{ background:var(--surface); color:var(--text); border-color:var(--surface); }
.qc-band .q-btn-quiet{ background:transparent; color:inherit; border-color:transparent; text-decoration:underline; text-underline-offset:3px; }
.qc-band .q-btn-quiet:hover{ background:color-mix(in srgb, var(--q-accent-ink) 12%, transparent); }
.qc-band-grid{ display:grid; grid-template-columns:1fr auto; gap:24px 48px; align-items:center; }
.qc[data-width="phone"] .qc-band-grid{ grid-template-columns:1fr; }
.qc-band-figures{ display:flex; gap:40px; flex-wrap:wrap; }
.qc-band-fig{ display:flex; flex-direction:column; gap:4px; }
.qc-band-fig .qc-money{ font-size:2rem; font-weight:700; line-height:1.1; }
.qc-band-fig span:first-child{ font-size:var(--type-fine-size); opacity:.85; font-weight:600; }
.qc-band-actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.qc-band-picks{ font-size:var(--type-lede-size); line-height:var(--type-lede-lh); max-width:720px; }
.qc-band-quiet{ opacity:.85; font-size:var(--type-fine-size); }
.qc-notice{ display:flex; align-items:center; gap:12px; padding:14px var(--qc-side); background:var(--q-accent-soft); border-bottom:1px solid var(--border); font-weight:600; flex-wrap:wrap; }
.qc-notice-warn{ background:var(--warn-soft); }
.qc-notice .q-btn{ margin-left:auto; }

/* ---- footer ---- */
.qc-foot{ padding:28px var(--qc-side) 40px; color:var(--text-muted); font-size:var(--type-fine-size); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; border-top:1px solid var(--border); }

/* ---- the Price Summary (Your Selection): a fixed eight rows, about 420 px tall ---- */
.qc-sum{ width:var(--qc-aside); background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; display:flex; flex-direction:column; gap:12px; }
.qc-sum-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:24px; }
.qc-sum-head h3{ margin:0; font-size:1.0625rem; font-weight:700; }
.qc-sum-saved{ font-size:var(--type-fine-size); color:var(--ok); font-weight:600; display:inline-flex; align-items:center; gap:4px; opacity:0; transition:opacity var(--bws-motion); }
.qc-sum-saved[data-on]{ opacity:1; }
.qc-sum-rows{ display:flex; flex-direction:column; }
/* a long row (an allowance carried per unit, "Cabinet Pulls Allowance, 33 Each × 24 Units") is drawn tall enough for its second line, with the divider under the text, never through it
   (round 2 of card P4134): a one-line row stays 40 px, and a row's height is set by its own words, which do not change while she clicks, so the card keeps its height for the version */
.qc-sum-row{ display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; min-height:40px; padding:6px 0; border-bottom:1px solid var(--border); }
.qc-sum-row-label{ display:flex; align-items:center; gap:6px; min-width:0; color:var(--text); }
.qc-sum-row-label .q-btn{ height:28px; min-height:28px; padding:0 6px; }
.qc-sum-row .q-num{ min-width:11ch; font-size:1rem; }
.qc-sum-row[data-row="total"]{ height:56px; padding:0; border-bottom:0; }
.qc-sum-row[data-row="total"] .qc-sum-row-label{ font-weight:700; font-size:1.0625rem; }
.qc-sum-row[data-row="total"] .q-num{ font-size:1.85rem; font-weight:700; line-height:1; }
/* the due row is two lines (Due At Signing, then the payments still to come): it is drawn to its own two lines, never under them (round 2 of card P4134: at 52 px its second line ran
   4 px past the row, 10 px on the tablet's larger type); its words do not change while she clicks, so its height holds for the version */
.qc-sum-row[data-row="due"]{ height:auto; min-height:52px; align-items:start; padding-top:6px; padding-bottom:4px; border-bottom:0; }
.qc-sum-row[data-row="due"] .qc-sum-row-label{ flex-direction:column; align-items:flex-start; gap:2px; }
.qc-sum-row[data-row="due"] .q-num{ font-weight:600; }
.qc-sum-muted{ color:var(--text-muted); font-size:var(--type-fine-size); }
.qc-sum-actions{ display:flex; flex-direction:column; gap:8px; }
.qc-sum-actions .q-btn{ width:100%; }
.qc-sum-actions .qc-fine{ text-align:center; }
.qc-sum-links{ display:flex; gap:8px; }
.qc-sum-links .q-btn{ flex:1 1 0; }
.qc-sum[data-locked] .qc-sum-actions{ display:none; }
.qc-sum[data-faint] .q-num{ opacity:.4; }
.qc-flyout{ position:absolute; z-index:var(--layer-popover); width:360px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--elev-2); padding:12px; }
.qc-flyout-row{ display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; min-height:44px; padding:6px 0; border-bottom:1px solid var(--border); }
.qc-flyout-row:last-child{ border-bottom:0; }

/* ---- the phone's Bottom Bar and its sheet ---- */
.qc-bottom{ display:none; }
.qc[data-width="phone"] .qc-bottom{ display:flex; position:sticky; bottom:0; z-index:var(--layer-docked-sub); height:64px; align-items:center; gap:12px; padding:0 12px; background:var(--surface); border-top:1px solid var(--border); box-shadow:var(--elev-2); }
/* the bar fits a 390 px phone: the total takes its own width, the button shares what is left, the lift button keeps its 44 px (the walk's eighteenth item) */
.qc-bottom > .q-stack{ flex:none; min-width:0; }
.qc-bottom .q-num{ font-size:1.125rem; font-weight:700; min-width:0; }
.qc-bottom .q-btn{ height:44px; min-height:44px; flex:1 1 0; min-width:0; padding:0 12px; }
.qc-bottom .qc-bottom-lift{ width:44px; flex:0 0 44px; padding:0; }
.qc-sheet-scrim{ position:absolute; inset:0; z-index:var(--layer-panel-sheet); background:color-mix(in srgb, var(--text) 40%, transparent); display:flex; align-items:flex-end; }
.qc-sheet{ width:100%; background:var(--bg); border-radius:20px 20px 0 0; padding:12px 16px 24px; max-height:92%; overflow:auto; }
.qc-sheet .qc-sum{ width:100%; border:0; padding:8px 0 0; }
.qc-sheet-grab{ width:48px; height:5px; border-radius:3px; background:var(--border-strong); margin:0 auto 8px; }

/* ---- the focused view: Review, Sign, Deposit, Done ---- */
.qc-focus{ width:min(800px, 100%); margin:0 auto; padding:40px var(--qc-side) var(--qc-gap); display:flex; flex-direction:column; gap:40px; }
.qc-stepper{ display:flex; gap:8px; align-items:center; }
.qc-stepper > div{ flex:1 1 0; display:flex; align-items:center; gap:10px; padding:10px 0; border-top:3px solid var(--border); color:var(--text-muted); font-weight:600; }
.qc-stepper > div[data-state="now"]{ border-top-color:var(--q-accent); color:var(--text); }
.qc-stepper > div[data-state="done"]{ border-top-color:var(--qc-btn-bg); color:var(--text); }
.qc-stepper i{ width:24px; height:24px; border-radius:50%; border:2px solid currentColor; display:inline-flex; align-items:center; justify-content:center; font:700 12px/1 var(--font); font-style:normal; flex:none; }
.qc-stepper > div[data-state="done"] i{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); color:var(--qc-btn-ink); }
.qc-focus-title{ margin:0; font-size:var(--type-h1-size); line-height:var(--type-h1-lh); font-weight:700; letter-spacing:-.015em; }
.qc-focus-pic{ width:100%; aspect-ratio:1440 / 620; border-radius:var(--radius-md); overflow:hidden; position:relative; background:var(--surface-hi); }
.qc-focus-pic > div{ position:absolute; inset:0; }
.qc-box{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:24px; display:flex; flex-direction:column; gap:14px; }
.qc-box h3{ margin:0; font-size:1.125rem; font-weight:700; }
.qc-box-warn{ border-color:var(--warn); background:var(--warn-soft); }
.qc-field{ display:flex; flex-direction:column; gap:6px; }
.qc-field > span{ font-weight:600; font-size:var(--type-fine-size); color:var(--text-muted); }
.qc-field .q-input{ height:48px; font-size:1rem; }
.qc-fields{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.qc[data-width="phone"] .qc-fields{ grid-template-columns:1fr; }
.qc-consent{ display:grid; grid-template-columns:var(--qc-target) 1fr; gap:14px; align-items:start; padding:16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-hi); line-height:1.55; }
.qc-missing{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:4px; color:var(--text-muted); font-size:var(--type-fine-size); min-height:24px; }
.qc-missing li{ display:flex; align-items:center; gap:6px; }
.qc-missing li::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--text-muted); }
.qc-cta{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.qc-cta .q-btn-lg{ min-width:240px; }

/* ---- the Signature Pad ---- */
.qc-sig{ display:flex; flex-direction:column; gap:12px; }
.qc-sig-tabs{ display:flex; gap:8px; }
.qc-sig-area{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.qc-sig-canvas{ display:block; touch-action:none; cursor:crosshair; }
.qc-sig-typed{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font:italic 600 2.4rem/1.1 var(--font); color:var(--text); padding:0 48px 24px; text-align:center; pointer-events:none; white-space:nowrap; overflow:hidden; }
.qc-sig-typed[data-empty]{ color:var(--text-faint); font-size:1.125rem; font-style:normal; font-weight:500; }
.qc-sig-line{ position:absolute; left:32px; right:32px; bottom:36px; height:2px; background:var(--text); pointer-events:none; }
.qc-sig-x{ position:absolute; left:14px; bottom:30px; font:600 16px/1 var(--font); color:var(--text-muted); pointer-events:none; }
.qc-sig-clear{ position:absolute; right:8px; top:8px; }
.qc-sig-row{ display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--text-muted); font-size:var(--type-fine-size); }

/* ---- deposit ---- */
.qc-radio{ display:grid; grid-template-columns:var(--qc-target) 1fr auto; gap:14px; align-items:center; padding:16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); cursor:pointer; min-height:72px; }
.qc-radio[aria-checked="true"]{ border-color:var(--q-accent); box-shadow:0 0 0 1px var(--q-accent); }
.qc-radio-dot{ width:24px; height:24px; border-radius:50%; border:2px solid var(--border-strong); display:flex; align-items:center; justify-content:center; margin:0 auto; }
.qc-radio[aria-checked="true"] .qc-radio-dot{ border-color:var(--qc-btn-bg); }
.qc-radio[aria-checked="true"] .qc-radio-dot::after{ content:""; width:12px; height:12px; border-radius:50%; background:var(--qc-btn-bg); }
.qc-radio-name{ font-weight:600; font-size:1.0625rem; }
.qc-radio-sub{ color:var(--text-muted); font-size:var(--type-fine-size); }
.qc-provider{ border:1px dashed var(--border-strong); border-radius:var(--radius-sm); padding:20px; display:flex; flex-direction:column; gap:12px; background:var(--surface); }
.qc-provider .q-input{ height:44px; }
.qc-provider-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.qc-switch{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; color:var(--text-muted); font-size:var(--type-fine-size); font-weight:600; }

/* ---- done ---- */
.qc-done{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px; }
.qc-done-check{ width:96px; height:96px; border-radius:50%; background:var(--qc-btn-bg); color:var(--qc-btn-ink); display:flex; align-items:center; justify-content:center; }
.qc-done-check path{ stroke-dasharray:40; stroke-dashoffset:40; animation:qc-draw 700ms ease-out 200ms forwards; }
@keyframes qc-draw{ to{ stroke-dashoffset:0; } }
.qc-done-lines{ display:flex; flex-direction:column; gap:6px; color:var(--text-muted); }
.qc-next{ display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; text-align:left; }
.qc[data-width="phone"] .qc-next{ grid-template-columns:1fr; }
.qc-next > div{ padding:14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); display:flex; flex-direction:column; gap:4px; }
.qc-next b{ display:block; }

/* ---- the project page ---- */
.qc-project{ width:min(1240px, 100%); margin:0 auto; padding:40px var(--qc-side) var(--qc-gap); display:grid; grid-template-columns:1fr var(--qc-aside); gap:40px var(--qc-colgap); align-items:start; }
.qc[data-width="phone"] .qc-project, .qc[data-width="tablet"] .qc-project{ grid-template-columns:1fr; }
.qc-project-main{ display:flex; flex-direction:column; gap:48px; min-width:0; }
.qc-project-side{ display:flex; flex-direction:column; gap:24px; }
.qc-nextstep{ background:var(--q-accent-soft); border:1px solid var(--border); border-radius:var(--radius-md); padding:24px; display:grid; grid-template-columns:1fr auto; gap:16px 32px; align-items:center; }
.qc[data-width="phone"] .qc-nextstep{ grid-template-columns:1fr; }
.qc-nextstep h2{ margin:0; font-size:1.5rem; font-weight:700; }
.qc-docs li{ justify-content:space-between; }
/* a document's name and its chip are two things with a gap between them, never one run of text (the 7:45 AM walk's third item) */
.qc-docs .q-grow{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }
.qc-lights li{ gap:12px; }
.qc-light{ width:24px; height:24px; border-radius:50%; border:2px solid var(--border-strong); display:inline-flex; align-items:center; justify-content:center; color:var(--q-accent-ink); flex:none; }
.qc-light[data-on]{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); }
.qc-kitchen{ position:relative; width:100%; aspect-ratio:1440 / 620; border-radius:var(--radius-md); overflow:hidden; background:var(--surface-hi); }
.qc-kitchen > div{ position:absolute; inset:0; }
.qc-kitchen .q-btn{ position:absolute; right:16px; bottom:16px; z-index:var(--layer-step-3); }

/* ---- Change Row ---- */
.qc-change{ display:grid; grid-template-columns:4px 24px 1fr auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); }
.qc-change-bar{ width:4px; height:100%; min-height:40px; border-radius:2px; background:var(--border); }
.qc-change[data-kind="removed"] .qc-change-bar{ background:var(--q-diff-old-ink); }
.qc-change[data-kind="added"] .qc-change-bar, .qc-change[data-kind="nocharge"] .qc-change-bar{ background:var(--q-diff-new-ink); }
.qc-change-glyph{ width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--surface-hi); }
.qc-change[data-kind="removed"] .qc-change-glyph{ background:var(--q-diff-old); color:var(--q-diff-old-ink); }
.qc-change[data-kind="added"] .qc-change-glyph, .qc-change[data-kind="nocharge"] .qc-change-glyph{ background:var(--q-diff-new); color:var(--q-diff-new-ink); }
.qc-change-words{ min-width:0; }
.qc-change-name{ font-weight:600; }
.qc-change-reason{ color:var(--text-muted); font-size:var(--type-fine-size); margin-top:2px; }

/* ---- the Ask panel, Share, Decline ---- */
.qc-panel{ display:flex; flex-direction:column; gap:14px; }
.qc-tabs{ display:flex; gap:8px; }
.qc-tabs .q-btn[aria-pressed="true"]{ background:var(--q-accent-soft); border-color:var(--q-accent); }
.qc-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.qc-thread{ display:flex; flex-direction:column; gap:10px; }
.qc-msg{ padding:12px 14px; border-radius:var(--radius-sm); background:var(--surface-hi); line-height:1.5; }
.qc-msg[data-from="shop"]{ background:var(--q-accent-soft); }
.qc-msg b{ display:block; font-size:var(--type-fine-size); color:var(--text-muted); margin-bottom:4px; }
.qc-answer{ padding:14px 16px; border-radius:var(--radius-sm); border:1px dashed var(--border-strong); display:flex; flex-direction:column; gap:10px; line-height:1.55; }
.qc-reasons{ display:flex; flex-direction:column; gap:8px; }
.qc-reasons .qc-radio{ min-height:52px; padding:10px 14px; }

/* ---- the email ---- */
.qc-email-ground{ padding:40px var(--qc-side) var(--qc-gap); background:var(--surface-hi); display:flex; flex-direction:column; align-items:center; gap:24px; }
.qc-email{ width:min(600px, 100%); background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.qc-email-head{ padding:16px 24px; border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:4px; font-size:var(--type-fine-size); color:var(--text-muted); }
.qc-email-head b{ color:var(--text); font-size:1.0625rem; }
.qc-email-pic{ position:relative; width:100%; aspect-ratio:1440 / 620; background:var(--surface-hi); }
.qc-email-pic > div{ position:absolute; inset:0; }
.qc-email-body{ padding:28px 24px; display:flex; flex-direction:column; gap:16px; line-height:1.6; }
.qc-email-body h2{ margin:0; font-size:1.5rem; }
.qc-email-foot{ padding:16px 24px; border-top:1px solid var(--border); color:var(--text-muted); font-size:var(--type-fine-size); }
.qc-sms{ width:min(360px, 100%); padding:14px 18px; border-radius:20px; background:var(--surface); border:1px solid var(--border); line-height:1.5; align-self:center; }

/* ---- the PDF ---- */
.qc-pdf-ground{ background:var(--surface-2); padding:32px var(--qc-side) var(--qc-gap); display:flex; flex-direction:column; align-items:center; gap:24px; }
.qc-pdf-bar{ width:min(816px, 100%); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.qc-sheet-letter{ width:816px; min-height:1056px; max-width:100%; background:var(--surface); box-shadow:var(--elev-2); padding:72px 64px; display:flex; flex-direction:column; gap:28px; color:var(--text); page-break-after:always; }
.qc-sheet-letter h1{ margin:0; font-size:2.4rem; line-height:1.1; font-weight:700; letter-spacing:-.015em; }
.qc-sheet-letter h2{ margin:0; font-size:1.4rem; font-weight:700; }
.qc-sheet-letter .qc-pdf-pic{ position:relative; width:100%; aspect-ratio:1440 / 620; background:var(--surface-hi); }
.qc-sheet-letter .qc-pdf-pic > div{ position:absolute; inset:0; }
.qc-sheet-letter table{ width:100%; border-collapse:collapse; }
.qc-sheet-letter td, .qc-sheet-letter th{ padding:8px 10px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.qc-sheet-letter td.qc-money, .qc-sheet-letter th.qc-money{ text-align:right; }
.qc-pdf-band{ background:var(--q-accent); color:var(--q-accent-ink); padding:16px 20px; font-weight:700; }
.qc-pdf-tick{ display:inline-block; width:16px; height:16px; border:1.5px solid var(--text); border-radius:3px; vertical-align:middle; margin-right:8px; text-align:center; font:700 11px/13px var(--font); }
.qc-pdf-sig{ display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-top:24px; }
.qc-pdf-sig > div{ border-top:2px solid var(--text); padding-top:8px; font-size:var(--type-fine-size); color:var(--text-muted); min-height:80px; }
.qc-pdf-sig .qc-sig-typed-print{ font:italic 600 1.8rem/1.1 var(--font); color:var(--text); }

/* ---- states ---- */
.qc[data-state="expired"] .qc-money, .qc[data-state="expired"] .q-num, .qc[data-state="expired"] .qc-card-price, .qc[data-state="expired"] .qc-addon-price{ opacity:.4; }
.qc-plain{ min-height:60vh; display:flex; align-items:center; justify-content:center; padding:64px var(--qc-side); text-align:center; color:var(--text-muted); font-size:var(--type-lede-size); }
.qc-empty{ padding:96px var(--qc-side); text-align:center; display:flex; flex-direction:column; gap:16px; align-items:center; font-size:var(--type-lede-size); }
.qc-diff-list li{ display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; }
.qc-grayed{ opacity:.5; cursor:not-allowed; }

/* ---- motion off ---- */
@media (prefers-reduced-motion: reduce){ .qc *{ animation:none !important; transition:none !important; } .qc-done-check path{ stroke-dashoffset:0; } }
@media print{ .qc-top, .qc-pdf-bar, .qc-present-bar, .qc-bottom, .qc-aside{ display:none !important; } .qc-pdf-ground{ background:transparent; padding:0; } .qc-sheet-letter{ box-shadow:none; width:100%; } }

/* ---- fixes from the first browser walk (card P4051) ---- */
.qc .qc-back svg{ transform:scaleX(-1); }
.qc-sig-tabs .q-btn[aria-pressed="true"]{ background:var(--q-accent-soft); border-color:var(--q-accent); }
.qc .q-chip[hidden]{ display:none; }
/* every target is 44 px or more on the tablet and the phone; the drawn size of a small mark stays, its box grows around it */
.qc[data-width="phone"] .q-link, .qc[data-width="tablet"] .q-link{ display:inline-flex; align-items:center; justify-content:center; min-height:var(--qc-target); min-width:var(--qc-target); }
.qc[data-width="phone"] .q-fig, .qc[data-width="tablet"] .q-fig{ display:inline-flex; align-items:center; justify-content:center; min-height:var(--qc-target); min-width:var(--qc-target); }
.qc[data-width="phone"] .q-info, .qc[data-width="tablet"] .q-info{ width:var(--qc-target); height:var(--qc-target); margin:-11px; border-color:transparent; background:radial-gradient(circle, transparent 10px, var(--border-strong) 10px, var(--border-strong) 11px, transparent 11.5px); }
.qc[data-width="phone"] .qc-sum-row, .qc[data-width="tablet"] .qc-sum-row{ min-height:48px; }
.qc[data-width="phone"] .qc-sum-row[data-row="total"], .qc[data-width="tablet"] .qc-sum-row[data-row="total"]{ height:48px; }
.qc[data-width="phone"] .qc-sum-row .q-btn-sm, .qc[data-width="tablet"] .qc-sum-row .q-btn-sm{ min-width:var(--qc-target); min-height:var(--qc-target); }
.qc .qc-num-tight{ min-width:0; }

/* ---- fixes from the final audit (card P4051): the pictures sit in their boxes themselves, the after lane's screens draw inside the frame ---- */
.qc-card-pic img, .qc-addon-pic img, .qc-wide-pic img, .qc-room-pic img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.qc-room-pic > div{ position:absolute; inset:0; }
.qc-wide-pic{ overflow:hidden; }
.qc-guest{ width:100%; }
.qc[data-width="tablet"] .qc-focus{ width:min(928px, 100%); }   /* 880 inside the padding: the pad spans the column, like the fields above it */
/* the after lane's screens inside this frame: this frame's reserved width for a figure must not reach their pins and counts, which are round marks (the 4:20 AM fix) */
.qc .qc-guest .q-num{ min-width:0; display:inline; }
.qc .qc-guest .qa-c-pin{ display:inline-flex; width:26px; min-width:26px; height:26px; aspect-ratio:1 / 1; border-radius:50%; flex:none; }
.qc .qc-guest .qa-c-count{ display:inline-flex; min-width:20px; height:20px; }
.qc .qc-guest .qa-c-total .q-num{ display:inline-block; }

/* ---- fixes from the second adversarial audit (card P4051, 11/20/2026) ---- */
/* the title band keeps to the bottom quarter of the stage, so it never lies over the island; the shop's mark stays in the top bar (item 2) */
.qc-stage-box .qc-stage-scrim > div:first-child{ display:none; }
/* The band holds the title alone, on one line where the stage is wide enough for it (a longer name still wraps), and the address line sits under the picture with the facts:
   the band is then short enough that the island stands clear above it (seen 11/20/2026: two lines of title and the address lay over the island's lower left corner). */
.qc-stage-box .qc-stage-scrim{ padding:14px var(--qc-side) 12px; gap:0; background:linear-gradient(to top, color-mix(in srgb, var(--text) 82%, transparent), color-mix(in srgb, var(--text) 64%, transparent) 72%, transparent); }
.qc[data-width="desktop"] .qc-stage-box .qc-hero-title, .qc[data-width="tablet"] .qc-stage-box .qc-hero-title{ max-width:none; line-height:1.1; }
.qc[data-width="desktop"] .qc-stage-box .qc-hero-title{ font-size:2.1rem; }
.qc[data-width="tablet"] .qc-stage-box .qc-hero-title{ font-size:1.8rem; }
.qc[data-width="phone"] .qc-stage-box .qc-stage-scrim{ padding:14px 16px 12px; gap:4px; }
.qc[data-width="phone"] .qc-stage-box .qc-hero-title{ font-size:1.2rem; line-height:1.15; }
.qc[data-width="phone"] .qc-stage-box .qc-hero-sub{ font-size:.8rem; }
/* Your Kitchen Today with no matched view: the photo and the design side by side, each in its own part of the stage, with their labels and no handle (item 2).
   Both pictures are as wide as the stage is, so two whole ones cannot stand side by side at full height. The design gets the larger part, six tenths, placed so the
   whole kitchen is in it (at one half the refrigerator and the island's end were cut off; measured 11/20/2026); the photo fills the other four tenths, cut to its
   middle and never stretched. The design's host carries its own position and aspect ratio from the kitchen's picture call, so both are set here by force. On the
   phone, where no part beside the photo is wide enough for the kitchen, the photo sits over the design, each across the full width, and the title band steps aside. */
.qc-stage-box[data-side] .qc-stage-left{ right:60%; clip-path:none !important; }
.qc-stage-box[data-side] .qc-stage-left img{ object-position:58% 50%; }
.qc-stage-box[data-side] .qc-stage-pic{ position:absolute !important; inset:0 0 0 40% !important; aspect-ratio:auto !important; box-shadow:-2px 0 0 var(--surface); z-index:var(--layer-step-1); }
.qc-stage-box[data-side] .qc-stage-pic img{ object-position:60% 50% !important; }
.qc[data-width="phone"] .qc-stage-box[data-side] .qc-stage-left{ right:0; bottom:50%; }
.qc[data-width="phone"] .qc-stage-box[data-side] .qc-stage-pic{ inset:50% 0 0 0 !important; box-shadow:0 -2px 0 var(--surface); }
.qc[data-width="phone"] .qc-stage-box[data-side] .qc-stage-pic img{ object-position:50% 50% !important; }
.qc[data-width="phone"] .qc-stage-box[data-side] .qc-stage-tag-right{ top:calc(50% + 12px); right:auto; left:12px; }
.qc[data-width="phone"] .qc-stage-box[data-side] .qc-stage-scrim{ display:none; }
.qc-stage-box[data-side] .qc-stage-line, .qc-stage-box[data-side] .qc-stage-handle{ display:none; }
/* a wall still fits whole in the stage (item 9); See It draws that wall with its label over the drawing */
.qc-stage-box[data-view="sink"] .qc-stage-pic img, .qc-stage-box[data-view="range"] .qc-stage-pic img, .qc-stage-box[data-view="island"] .qc-stage-pic img{ object-fit:contain !important; object-position:50% 50% !important; }
.qc-stage-draw-label{ position:absolute; top:12px; left:50%; transform:translateX(-50%); z-index:var(--layer-canvas-overlay); padding:8px 14px; border-radius:var(--radius-pill); background:var(--q-accent-soft); color:var(--text); font:600 13px/1.3 var(--font); max-width:calc(100% - 32px); text-align:center; }
.qc-stage-draw-label[hidden]{ display:none; }
.qc-stage-box[data-draw] .qc-stage-draw{ background:var(--surface); }
/* the shop's address and license in the facts strip, the header of the paper (item 13) */
.qc-facts-shop{ margin-left:auto; align-self:center; color:var(--text-muted); font-size:var(--type-fine-size); }
.qc[data-width="phone"] .qc-facts-shop{ margin-left:0; width:100%; }
.qc-facts-site{ width:100%; margin:0 0 2px; color:var(--text); font-size:var(--type-body-size, 1rem); font-weight:600; }
.qc[data-width="phone"] .qc-facts-site{ font-size:var(--type-fine-size); }
.qc-shop-line{ margin:-24px 0 0; }
/* on You're All Set the column's gap is 16 px, not 40: the line keeps 8 px clear of the headline instead of sitting 8 px into it (the 3:55 PM check's fourth item) */
.qc-done .qc-shop-line{ margin:-8px 0 0; }
.qc-done .qc-cta-why{ margin:-8px 0 0; }
.qc-notice-title{ margin:14px 0 4px; font-size:1rem; font-weight:700; color:var(--text); }
/* About The Shop: three sample photos in reserved boxes, each tagged; a missing file leaves its tile out and an empty row is not drawn (item 29) */
.qc-about-photos{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.qc-about-photos:empty{ display:none; }
.qc[data-width="phone"] .qc-about-photos{ grid-template-columns:1fr; }
.qc-about-photo{ margin:0; position:relative; aspect-ratio:4 / 3; border-radius:var(--radius-sm); overflow:hidden; background:var(--surface-hi); }
.qc-about-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.qc-about-photo .q-mock-tag{ position:absolute; left:10px; bottom:10px; z-index:var(--layer-step-1); }
/* a dialog opened from the customer page is the shop's paper: its primary button and its links carry the shop's color (item 23) */
.qc-dialog{ --qc-btn-bg:var(--q-accent); --qc-btn-ink:var(--q-accent-ink); --qc-link:var(--q-accent); }
.qc-dialog .q-btn-primary{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); color:var(--qc-btn-ink); }
.qc-dialog .q-btn-primary:hover{ background:var(--qc-btn-bg); border-color:var(--qc-btn-bg); filter:brightness(1.08); }
.qc-dialog .q-link{ color:var(--qc-link); }
/* the Progress Track's step tag and the project page's payment tag (item 12) */
.qc-step-words .q-mock-tag{ align-self:flex-start; }
/* the deposit she pays the shop directly, said back on Done (item 27) */
.qc-due-direct{ display:flex; flex-direction:column; gap:8px; align-items:center; width:100%; }
.qc-due-direct .qc-list{ width:100%; max-width:520px; text-align:left; }
.qc-email-host{ width:min(600px, 100%); display:flex; justify-content:center; }
.qc-email-host .qc-email{ width:100%; }
/* the first screen carries the price and the action: the hero's title band is the title on the left and the total with Approve And Sign on the right (the 3:55 PM
   check's eighth item), on every view (the third audit's eleventh item); the phone's Bottom Bar carries both already. */
.qc-stage-box .qc-stage-scrim{ display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:end; column-gap:32px; row-gap:0; }
.qc-hero-buy{ display:flex; align-items:center; gap:20px; }
.qc-hero-buy-fig{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.qc-hero-buy-label{ font-size:var(--type-fine-size); font-weight:600; opacity:.92; white-space:nowrap; }
.qc-hero-buy .qc-hero-total{ font-size:1.75rem; line-height:1.1; font-weight:700; color:inherit; text-align:right; }
.qc-hero-buy .qc-hero-approve{ box-shadow:0 0 0 1px color-mix(in srgb, var(--bg) 55%, transparent); white-space:nowrap; }
.qc[data-width="tablet"] .qc-hero-buy .qc-hero-total{ font-size:1.5rem; }
.qc[data-width="phone"] .qc-hero-buy, .qc-stage-box[data-side] .qc-hero-buy{ display:none; }
.qc[data-width="phone"] .qc-stage-box .qc-stage-scrim{ display:flex; }
/* See The Cabinets speaks in plain names: the shop's tags (B1, W3, T1) that kitchen.js draws over each cabinet are left out of this dialog's drawings; the list beside
   them names each cabinet and where it stands (the 3:55 PM check's sixth item) */
.qc-cabs-draw [data-cab] > g:nth-of-type(2){ display:none; }

/* ---- the third adversarial audit (card P4051, 11/20/2026, the 8:53 PM block) ---- */
/* Present In The Room: the hero is the live 3D, over the still and under the slider and the title band; the title is one step larger than the desktop page's (item 5) */
.qc-stage-live{ position:absolute; inset:0; z-index:var(--layer-step-1); touch-action:none; }
.qc-stage-live[hidden]{ display:none; }
.qc[data-present] .qc-stage-box .qc-hero-title{ font-size:2.4rem; line-height:1.1; }
/* Every Line: what a cabinet is made of, under its name, and the lines add up to its price (item 10) */
.qc-cab-lines{ margin:8px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:2px; }
.qc-cabs .qc-cab-lines li{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; min-height:0; padding:2px 0; border:0; font-size:var(--type-fine-size); color:var(--text-muted); }
.qc-cab-lines .qc-row-amt{ min-width:7ch; text-align:right; }
/* an add-on that came back after a package pick said so in words beside its state (item 8) */
.qc-addon-back{ margin-left:6px; font-weight:600; color:var(--text); }
/* the paper she signs: an included add-on says Included in its price column; her drawn signature is her own strokes on the line; the shop's column is plain type (items 3 and 6) */
.qc-pdf-included{ font-weight:600; color:var(--text-muted); }
.qc-pdf-sig-draw{ height:72px; display:flex; align-items:flex-end; color:var(--text); }
.qc-pdf-sig-draw .qc-sig-draw-print{ height:100%; width:auto; max-width:100%; }
.qc-pdf-shop-col{ line-height:1.6; }
.qc-pdf-budget{ margin-top:24px; }
/* the Updated band and the Budget Estimate list sit under the top bar like the other notices (items 1 and 7) */
.qc-updated .qc-diff-list{ margin:0; }
.qc-budget-list .qc-list{ margin:0; }
/* P4103: the per-foot figure under Your Total, each room's and cabinet's measure, By Rate's rate sheet, units, and the calm On The Way line */
.qc-hero-perfoot{ font-size:var(--type-fine-size); font-weight:500; opacity:.92; white-space:nowrap; font-variant-numeric:tabular-nums; }
.qc-hero-perfoot[hidden]{ display:none; }
.qc-room-measure, .qc-cab-measure{ color:var(--text-muted); margin-top:2px; font-size:var(--type-fine-size); font-variant-numeric:tabular-nums; }
.qc-rate-sheet{ display:flex; flex-direction:column; border-top:1px solid var(--border); }
/* By Rate: one grid for the head and every category line, so the measures, the rates and the amounts stand in columns a builder can run a finger down */
.qc-rate-head, .qc-rate-row{ display:grid; grid-template-columns:minmax(0, 1fr) 9ch minmax(14ch, auto) minmax(11ch, auto); column-gap:24px; align-items:baseline; }
.qc-rate-head{ padding:10px 0 8px; color:var(--text-muted); font-size:var(--type-fine-size); font-weight:600; border-bottom:1px solid var(--border); }
.qc-rate-head > :nth-child(n+2), .qc-rate-qty, .qc-rate-x{ text-align:right; }
.qc-rate-room{ display:flex; flex-direction:column; padding:14px 0 12px; border-bottom:1px solid var(--border); }
.qc-rate-roomhead{ display:grid; grid-template-columns:1fr auto; gap:8px 24px; align-items:baseline; margin-bottom:6px; }
.qc-rate-row{ padding:5px 0 5px 16px; font-variant-numeric:tabular-nums lining-nums; }
.qc-rate-row .qc-row-amt{ font-size:1rem; font-weight:500; }
.qc-rate-cat{ font-weight:500; }
.qc-rate-qty, .qc-rate-x{ font-family:var(--font-num); white-space:nowrap; }
.qc-rate-times{ color:var(--text-muted); margin-right:8px; }
.qc-rate-units{ color:var(--text-muted); margin-left:8px; }
.qc-rate-sub{ display:flex; align-items:center; gap:8px; padding:14px 0 2px; color:var(--text-muted); font-size:var(--type-fine-size); font-weight:600; }
.qc-rate-plain{ min-height:0; padding:10px 0; }
.qc-rate-plain .qc-row-name{ font-size:1rem; }
.qc-rate-total{ border-bottom:0; border-top:2px solid var(--text); }
.qc-rate-total .qc-row-name{ font-weight:700; }
.qc-rate-total .qc-row-amt{ font-weight:700; }
.qc-rate-sheet + .qc-added:empty{ display:none; }
.qc[data-width="phone"] .qc-rate-head{ display:none; }
.qc[data-width="phone"] .qc-rate-row{ grid-template-columns:1fr auto; row-gap:2px; padding-left:0; }
.qc[data-width="phone"] .qc-rate-cat{ grid-column:1 / -1; }
.qc[data-width="phone"] .qc-rate-qty{ text-align:left; }
.qc[data-width="phone"] .qc-rate-x{ grid-column:1; text-align:left; }
.qc[data-width="phone"] .qc-rate-row .qc-row-amt{ grid-column:2; grid-row:2 / span 2; align-self:end; }
.qc-units .qc-rate-total{ border-top:2px solid var(--text); }
/* reveal: the ring a section wears for a moment when the shop's choice changed it (customer.js reveal) */
.qc-reveal{ animation:qc-reveal 2200ms ease-out 1; outline:3px solid transparent; outline-offset:14px; border-radius:2px; }
@keyframes qc-reveal{ 0%{ outline-color:var(--q-accent); box-shadow:0 0 0 14px var(--q-accent-soft); background:var(--q-accent-soft); } 60%{ outline-color:var(--q-accent); box-shadow:0 0 0 14px transparent; background:transparent; } 100%{ outline-color:transparent; box-shadow:0 0 0 14px transparent; background:transparent; } }
@media (prefers-reduced-motion: reduce){ .qc-reveal{ animation:none; outline-color:var(--q-accent); } }
/* a dialog of the page inside the shop's preview: its scrim is the preview's panel, never the whole Desk (customer.js dialog) */
.q-scrim.qc-scrim-inpanel{ inset:auto; }
.qc-units-each{ display:flex; align-items:center; gap:8px; margin:0 0 8px; color:var(--text-muted); font-weight:600; }
.qc-on-the-way{ background:var(--surface); align-items:flex-start; gap:10px; }
.qc-on-the-way b{ display:block; }
/* Room By Room at By Cabinet and Every Line (the three-seat review of 11/21/2026, S21): each room's cabinets drawn open with their amounts, and at Every Line each cabinet's parts under it */
.qc-room-cabs{ margin:12px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; border-top:1px solid var(--border); }
.qc-room-cab{ padding:7px 0; border-bottom:1px solid var(--border); }
.qc-room-cab-head{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.qc-room-cab-name{ min-width:0; }
.qc-room-cab-name b{ font-weight:600; }
.qc-room-cab .qc-row-amt{ min-width:9ch; text-align:right; font-variant-numeric:tabular-nums; }
.qc-room-parts{ margin:4px 0 0 14px; padding:0; list-style:none; display:flex; flex-direction:column; gap:1px; }
.qc-room-parts li{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:var(--type-fine-size); color:var(--text-muted); }
.qc-room-parts .qc-row-amt{ min-width:9ch; text-align:right; }
/* P4103 fix E: the hero's picture takes the screen's height less what stands above it, where the screen is shorter than the picture's own shape, so the headline, Your Total and
   Approve And Sign are on the first screen (customer.js fitHero sets --qc-hero-fit on the page root; with none set the picture keeps its own shape). It wins over any inline height. */
.qc-hero .qc-stage-box{ height:var(--qc-hero-fit, auto) !important; }
.qc-room-cabs.qc-reveal, .qc-room-parts.qc-reveal, .qc-room-head.qc-reveal, .qc-room-cab-head.qc-reveal{ outline-offset:4px; border-radius:4px; }
