/* desk.css: the Estimating Desk of the Quoting System Mockup (desk lane, card P4051).
   The Desk frame, the Money Bar and Margin Gauge, the Data Grid, the Edited Mark, the Change Card, the Inspector, the Assistant tab,
   and the Brief, Cost and Price tabs. Tokens only (shared/theme.css and quote-tokens.css); every selector is under the qd- prefix.
   The soft fills of the theme stay light in both themes, so text set on one always takes that family's ink token. */

/* ---------- the root, the density bands ---------- */
.qd-root{ --qd-row:32px; --qd-pad:12px; }
.qd-root.qd-d-compact, .qd-root .qd-d-compact{ --qd-row:28px; --qd-pad:8px; }
.qd-root.qd-d-roomy, .qd-root .qd-d-roomy{ --qd-row:40px; --qd-pad:16px; }
.qd-root .q-chip-ok{ color:var(--ok-ink); } .qd-root .q-chip-warn{ color:var(--warn-ink); } .qd-root .q-chip-danger{ color:var(--danger-ink); } .qd-root .q-chip-accent{ color:var(--accent-ink); }
.qd-root .q-was{ color:var(--danger-ink); } .qd-root .q-now{ color:var(--ok-ink); }
.qd-root .q-band{ color:var(--accent-ink); } .qd-root .q-band-warn{ color:var(--warn-ink); } .qd-root .q-band-danger{ color:var(--danger-ink); } .qd-root .q-band-ok{ color:var(--ok-ink); }
.qd-root .q-seg button[aria-pressed="true"]{ color:var(--accent-ink); }
.qd-root button.q-chip[aria-pressed="true"]{ color:var(--accent-ink); }
.qd-root .q-fig{ background:none; border-top:0; border-left:0; border-right:0; color:inherit; font-size:inherit; font-weight:600; line-height:inherit; }
.qd-root .q-fig:hover, .qd-root .q-fig[aria-expanded="true"]{ color:var(--accent-ink); }
.qd-root .q-fig:focus-visible, .qd-root .q-info:focus-visible, .qd-root .q-toggle:focus-visible, .qd-root .q-select:focus-visible{ outline:var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--accent)); outline-offset:2px; }
.qd-ink-ok{ color:var(--ok-text, var(--ok)); } .qd-ink-warn{ color:var(--warn-text, var(--warn)); } .qd-ink-danger{ color:var(--danger-text, var(--danger)); }
.qd-hide{ display:none !important; }
.qd-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.qd-off{ opacity:.5; cursor:not-allowed; }
.qd-gap{ flex:1 1 auto; }
.qd-ic{ display:inline-flex; flex:none; }

/* ---------- the frame: title row 48, Money Bar 80, tabs 44, worksheet, right panel 420 ---------- */
.qd-desk{ display:grid; grid-template-rows:48px 80px 44px minmax(0, 1fr); gap:8px; height:100%; padding:0 24px 16px; min-width:1920px; background:var(--bg); color:var(--text); }
.qd-title{ display:flex; align-items:center; gap:12px; min-width:0; }
.qd-back{ width:36px; height:36px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); color:var(--text); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transform:scaleX(-1); }
.qd-back:hover{ background:var(--surface-hi); border-color:var(--border-strong); }
.qd-back:focus-visible, .qd-tab:focus-visible, .qd-ptab:focus-visible, .qd-tile:focus-visible, .qd-x:focus-visible, .qd-rowbtn:focus-visible, .qd-cc:focus-visible, .qd-sug:focus-visible, .qd-send:focus-visible, .qd-twist:focus-visible, .qd-ghbtn:focus-visible{ outline:var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--accent)); outline-offset:2px; }
.qd-qname{ font:650 20px/28px var(--font); letter-spacing:-.01em; white-space:nowrap; }
.qd-qname b{ font-family:var(--font-num); font-weight:650; }
.qd-cust{ color:var(--text-muted); font-size:14px; white-space:nowrap; }
.qd-time{ color:var(--text-muted); font-size:13px; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; }
.qd-time b{ font-family:var(--font-num); font-variant-numeric:tabular-nums; font-weight:600; color:var(--text); min-width:44px; text-align:right; display:inline-block; }
.qd-title .qd-frozenband{ flex:none; }
.qd-vers{ display:inline-flex; align-items:center; gap:6px; }

/* ---------- the Money Bar (DESIGN 5.7.2): seven tiles reading as the arithmetic ---------- */
.qd-money{ display:grid; grid-template-rows:64px 16px; }
.qd-tiles{ display:flex; align-items:stretch; height:64px; }
/* The one column is the tile's own width and never grows with its words: a caption too long for the tile once widened the column and pushed the label, the figure
   and the info icon out over the next tile. Every row is held to that column, and every caption is short enough to sit inside it with room to spare. */
.qd-tile{ position:relative; flex:none; width:216px; height:64px; padding:3px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); display:grid; grid-template-columns:minmax(0, 1fr); grid-template-rows:16px 24px 16px; text-align:right; cursor:pointer; color:var(--text); transition:border-color var(--bws-motion), background var(--bws-motion); }
.qd-tile:hover{ border-color:var(--border-strong); }
.qd-tile[aria-current="true"]{ border-color:var(--accent-deep); box-shadow:inset 0 0 0 1px var(--accent-deep); }
/* Profit Guard gave 28 px to the Showing select (the second audit, item 2a), so the select holds its longest option at the smallest fit The Walk draws the Desk at */
.qd-tile-mm{ width:264px; } .qd-tile-guard{ width:220px; text-align:left; }
.qd-tl{ font:600 12px/16px var(--font); color:var(--text-muted); display:flex; align-items:center; justify-content:flex-end; gap:6px; white-space:nowrap; min-width:0; height:16px; }
.qd-tl .q-info{ width:14px; height:14px; font-size:10px; }
.qd-tile-guard .qd-tl{ justify-content:flex-start; }
/* The value row clips: nothing in it, a figure, a field or a ring, can ever lie over the label above or the caption below, whatever a page-wide rule does to a button or a
   field. It reaches 6 px into the tile's padding on each side so the focus ring, 6 px wider than the figure, is not cut. */
.qd-tv{ font:600 20px/24px var(--font-num); font-variant-numeric:tabular-nums lining-nums; white-space:nowrap; display:flex; align-items:center; justify-content:flex-end; gap:6px; min-width:0; height:24px; overflow:hidden; margin:0 -6px; padding:0 6px; }
.qd-tile-mm .qd-tv{ gap:10px; }
.qd-tile-guard .qd-tv{ justify-content:flex-start; font-size:16px; font-family:var(--font); }
.qd-tc{ font:500 12px/16px var(--font); color:var(--text-muted); white-space:nowrap; display:flex; align-items:center; justify-content:flex-end; gap:4px; min-width:0; height:16px; }
.qd-tile-guard .qd-tc{ justify-content:flex-start; }
.qd-tc-after{ background:var(--q-diff-new); color:var(--ok-ink); border-radius:4px; padding:0 6px; font-family:var(--font-num); font-variant-numeric:tabular-nums; font-weight:600; }
.qd-op{ flex:none; width:16px; display:flex; align-items:center; justify-content:center; font:600 15px/1 var(--font-num); color:var(--text-muted); }
.qd-op-none{ visibility:hidden; }
/* A linked box is 24 px tall, the height of the tile's middle row, in all three of its states, so nothing of it ever lies over the label above or the caption below.
   At rest it is the figure with a rule under it. With the keyboard on it, the ring is drawn inside the row (6 px wider than the figure on each side, no taller).
   While it is typed, the field takes exactly the ring's place, so the figure does not move and no neighbor shifts. The sizes are held against any page-wide
   rule for a button or a field, which is what made the field and its ring taller than the row. */
.qd-edit{ position:relative; flex:none; box-sizing:border-box; font:inherit; line-height:24px; color:var(--accent-deep); background:none; border:0; border-bottom:1px solid var(--accent-deep); padding:0 1px; margin:0; cursor:text; min-width:64px; text-align:right; height:24px; min-height:0; max-height:24px; border-radius:0; }
.qd-tile-mm .qd-edit{ min-width:72px; }
/* the figure at rest is held to the row as firmly as the field is: a rule for every button on the page once made it taller than the row, and its underline then sat on the caption */
.qd-root .qd-edit{ height:24px !important; min-height:0 !important; max-height:24px !important; margin:0 !important; padding:0 1px !important; line-height:24px !important; border-top:0 !important; border-left:0 !important; border-right:0 !important; border-bottom-width:1px !important; border-bottom-style:solid !important; }
.qd-edit:hover{ background:var(--accent-soft); color:var(--accent-ink); }
.qd-root .qd-edit:focus-visible{ outline:0 !important; outline-offset:0 !important; border-bottom-color:transparent; }
.qd-root .qd-edit:focus-visible::after{ content:""; position:absolute; left:-6px; right:-6px; top:0; bottom:0; border:2px solid var(--focus-ring-color, var(--accent)); border-radius:5px; pointer-events:none; }
.qd-root .qd-edit-in{ flex:none; box-sizing:border-box; font:600 20px/24px var(--font-num); font-variant-numeric:tabular-nums lining-nums; color:var(--text); background:var(--surface); text-align:right; border-radius:5px; appearance:none; -webkit-appearance:none;
  height:24px !important; min-height:0 !important; max-height:24px !important; margin:0 -6px !important; padding:0 7px !important; border:0 !important; outline:0 !important; outline-offset:0 !important; box-shadow:inset 0 0 0 2px var(--focus-ring-color, var(--accent)) !important; }
.qd-tile.qd-pv .qd-edit{ color:var(--text-muted); border-bottom-color:transparent; }
.qd-tile.qd-frozen .qd-edit{ color:var(--text); border-bottom-color:transparent; cursor:default; pointer-events:none; }
.qd-tile.qd-s-warn{ background:var(--warn-soft); border-color:var(--warn-edge, var(--warn)); color:var(--warn-ink); }
.qd-tile.qd-s-danger{ background:var(--danger-soft); border-color:var(--danger-edge, var(--danger)); color:var(--danger-ink); }
.qd-tile.qd-s-warn .qd-tl, .qd-tile.qd-s-warn .qd-tc, .qd-tile.qd-s-warn .qd-edit{ color:var(--warn-ink); border-bottom-color:var(--warn-ink); }
.qd-tile.qd-s-danger .qd-tl, .qd-tile.qd-s-danger .qd-tc, .qd-tile.qd-s-danger .qd-edit{ color:var(--danger-ink); border-bottom-color:var(--danger-ink); }
.qd-tile.qd-s-ok .qd-tv{ color:var(--ok-text, var(--ok)); }
.qd-why{ position:absolute; left:0; right:0; top:66px; z-index:var(--layer-step-6); background:var(--danger-soft); color:var(--danger-ink); border:1px solid var(--danger-edge, var(--danger)); border-radius:6px; padding:2px 8px; font:600 12px/16px var(--font); text-align:left; white-space:normal; }
.qd-sep{ color:var(--text-muted); font-weight:500; }
/* Not Priced Yet: while a line has no price, the Profit and Net Margin tiles read these words in place of a figure (spec section 3 leaves both blank). A glyph and the words, never color alone. */
.qd-npw{ display:none; align-items:center; gap:5px; font:600 14px/24px var(--font); color:var(--text-muted); white-space:nowrap; }
.qd-tile.qd-np .qd-npw{ display:inline-flex; }
.qd-tile.qd-np .qd-edit, .qd-tile.qd-np .qd-sep{ display:none; }
/* 196 px: Signature (Recommended) needs about 145 px of words, its padding and the arrow 24 more, and at The Walk's smallest fit (0.8125) a 168 px box cut the last letter */
.qd-showing{ flex:none; width:196px; margin-left:16px; display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; }
.qd-showing > span{ font:600 12px/16px var(--font); color:var(--text-muted); }
.qd-showing .q-select{ width:196px; height:32px; font-size:11.5px; padding:0 2px; letter-spacing:-.01em; }
.qd-showing b{ font:600 14px/20px var(--font); }
/* a quote never started: the bar has its labels and no figures, and nothing in it opens */
.qd-money.qd-none .qd-tile{ color:var(--text-muted); cursor:default; }
.qd-money.qd-none .qd-tile:hover{ border-color:var(--border); }
.qd-money.qd-none .qd-edit{ border-bottom-color:transparent; cursor:default; pointer-events:none; }
.qd-money.qd-none .qd-sep{ display:none; }
/* a quote never started has no margin to place: the whole gauge (track, loss zone, ticks and words) is hidden and its 16 px held, so nothing shifts when the quote starts (third audit, item 5) */
.qd-money.qd-none .qd-gauge > *{ visibility:hidden; }
/* the Undo link on the Price tile's caption line reads in the caption's size */
.qd-tc .q-link{ font:inherit; font-weight:600; }
.qd-ask{ margin:0; font-size:15px; line-height:22px; }

/* the Margin Gauge: a 6 px track from Break-Even to 50 percent margin, a 48 px zone at the left for a loss */
.qd-gauge{ position:relative; width:1688px; height:16px; }
.qd-g-track{ position:absolute; left:0; right:0; bottom:1px; height:6px; border-radius:3px; background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--border); }
.qd-g-loss{ position:absolute; left:0; bottom:1px; width:48px; height:6px; border-radius:3px 0 0 3px; background:var(--danger-soft); box-shadow:inset 0 0 0 1px var(--danger-edge, var(--danger)); }
.qd-g-band{ position:absolute; bottom:1px; height:6px; background:var(--accent-soft); box-shadow:inset 0 0 0 1px var(--accent); border-radius:3px; }
.qd-g-tick{ position:absolute; bottom:0; width:2px; height:10px; background:var(--border-strong); border-radius:1px; }
.qd-g-word{ position:absolute; top:0; font:600 10px/10px var(--font); color:var(--text-muted); white-space:nowrap; }
.qd-g-mark{ position:absolute; bottom:-2px; width:12px; height:12px; margin-left:-6px; border-radius:50%; background:var(--accent-deep); box-shadow:0 0 0 2px var(--bg); transition:left 300ms cubic-bezier(.2, .7, .2, 1); z-index:var(--layer-step-2); }
.qd-g-mark.qd-s-warn{ background:var(--warn); border-radius:2px; transform:rotate(45deg) scale(.86); }
.qd-g-mark.qd-s-danger{ background:var(--danger); border-radius:2px; }
.qd-g-ghost{ position:absolute; bottom:-2px; width:12px; height:12px; margin-left:-6px; border-radius:50%; border:2px solid var(--text-muted); background:var(--bg); z-index:var(--layer-step-3); }

/* ---------- the tabs row, with the tab's own toolbar at the right ---------- */
.qd-tabrow{ display:flex; align-items:center; gap:16px; border-bottom:1px solid var(--border); min-width:0; }
.qd-tabs{ display:flex; align-items:stretch; height:44px; gap:4px; flex:none; }
.qd-tab{ position:relative; display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 14px; border:0; background:none; color:var(--text-muted); font:600 14px/20px var(--font); cursor:pointer; white-space:nowrap; border-radius:var(--radius-xs) var(--radius-xs) 0 0; }
.qd-tab:hover{ color:var(--text); background:var(--surface-hi); }
.qd-tab[aria-selected="true"]{ color:var(--text); }
.qd-tab[aria-selected="true"]::after{ content:""; position:absolute; left:8px; right:8px; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:var(--accent-deep); }
.qd-badge{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:10px; font:600 12px/1 var(--font-num); background:var(--warn-soft); color:var(--warn-ink); box-shadow:inset 0 0 0 1px var(--warn-edge, var(--warn)); }
.qd-badge-ok{ background:var(--ok-soft); color:var(--ok-ink); box-shadow:inset 0 0 0 1px var(--ok-edge, var(--ok)); padding:0 4px; }
/* The toolbar shares the row with seven tabs once the quote is sent, so it holds only what must be there: Expand All and Collapse All are in the grid's Item
   header, and the frozen band is in the title row. */
.qd-toolbar{ flex:1 1 auto; min-width:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 8px; min-height:44px; padding:4px 0; }
.qd-toolbar > *{ flex:none; }
.qd-toolbar .q-seg button{ height:28px; padding:0 10px; font-size:12px; }
.qd-toolbar .q-btn{ height:28px; padding:0 10px; font-size:12px; }
.qd-toolbar .q-chip{ height:28px; }
.qd-tlabel{ font:600 12px/16px var(--font); color:var(--text-muted); white-space:nowrap; }
/* The band's fill follows the theme (the accent mixed into the surface), so in Midnight Oak it is not a pale block with links nobody can read (the second audit, item 13): its words
   and its links are --accent-deep, which reads at 5.9 to 1 on the light fill and 6.2 to 1 on the dark one. */
.qd-frozenband{ display:flex; align-items:center; gap:10px; height:32px; padding:0 12px; border-radius:var(--radius-sm); background:color-mix(in srgb, var(--accent) 18%, var(--surface)); color:var(--accent-deep); border:1px solid var(--accent); font:500 13px/18px var(--font); white-space:nowrap; }
.qd-root .qd-frozenband .q-link{ color:var(--accent-deep); }

/* ---------- the worksheet and the right panel ---------- */
.qd-body{ display:flex; gap:16px; min-height:0; }
.qd-ws{ flex:1 1 auto; min-width:0; width:1436px; height:100%; background:var(--surface); border-radius:var(--radius-md); box-shadow:0 0 0 1px var(--border); overflow:auto; position:relative; }
.qd-ws-host{ height:100%; min-height:0; }
/* THE REWORK FRAME (card P4101). The tracker is the 44 px row's only content; each step's toolbar is its worksheet's first row, 44 px and sticky, so under a toolbar the
   content is the worksheet less 44 (584 of 628 at 940, 544 of 588 at 900). The worksheet column holds the Customer Beside Me band over the worksheet when it shows. */
.qd-tabrow-trk{ gap:0; }
.qd-trkhost{ flex:1 1 auto; min-width:0; }
.qd-wscol{ flex:1 1 auto; min-width:0; width:1436px; display:flex; flex-direction:column; gap:8px; min-height:0; }
.qd-wswrap{ position:relative; flex:1 1 0px; min-height:0; display:flex; }
.qd-wswrap > .qd-ws{ flex:1 1 auto; width:auto; height:100%; min-height:0; }
.qd-wscol > .qd-frozenband{ flex:none; }
.qd-ws > .qd-toolbar-row{ position:sticky; top:0; z-index:var(--layer-step-3); height:44px; min-height:44px; flex-wrap:nowrap; justify-content:flex-start; padding:0 12px; background:var(--surface); border-bottom:1px solid var(--border); border-radius:var(--radius-md) var(--radius-md) 0 0; overflow:hidden; }
.qd-ws[data-toolbar] > .qd-ws-host{ height:calc(100% - 44px); }
/* the title row under the tracker: the quote's name over its customer, so the chips and switches keep their full words at 1920 (nothing in this row truncates) */
.qd-title-trk{ gap:10px; }
.qd-title-trk > *{ flex:none; }
.qd-title-trk > .qd-gap{ flex:1 1 auto; min-width:0; }
.qd-ident{ display:flex; flex-direction:column; justify-content:center; min-width:0; }
.qd-ident .qd-qname{ font:650 18px/22px var(--font); }
.qd-ident .qd-cust{ font-size:12px; line-height:16px; }
.qd-title-trk .qd-frozenband{ gap:6px; padding:0 10px; }
.qd-setupchip{ cursor:pointer; height:28px; white-space:nowrap; }
.qd-setupchip:hover{ border-color:var(--border-strong); }
.qd-setupchip:focus-visible, .qd-beside:focus-visible, .qd-ownchip:focus-visible{ outline:var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--accent)); outline-offset:2px; }
/* S27 of the three-seat review (11/21/2026): --warn-ink is a dark ink in both themes, about 1.4 to 1 on the dark title row. The chip reads the theme's own ink for warning words, --warn-text: on
   linen-ink it IS --warn-ink (nothing moves in light), on midnight-oak it is the amber made for words on dark (#e8c067 in shared/theme.css, about 9 to 1 on the title row). theme.css is not touched. */
.qd-setupchanged{ color:var(--warn-text, var(--warn-ink)); font-weight:600; }
/* S04: on the Buy List step the worksheet has nothing to scroll; the list scrolls inside its own box (price-steps.css) */
.qd-ws:has(> .qp-buy){ overflow:hidden; }
.qd-ownchip{ cursor:pointer; height:28px; }
/* Customer Beside Me: an eye-off switch, its knob at the left when off and at the right when on, so the state reads by shape as well as fill */
.qd-beside{ display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 10px 0 12px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); color:var(--text); font:600 13px/16px var(--font); cursor:pointer; white-space:nowrap; }
.qd-beside:hover{ border-color:var(--border-strong); }
.qd-eyeoff{ display:inline-flex; color:var(--text-muted); }
.qd-sw{ position:relative; flex:none; width:28px; height:16px; border-radius:8px; border:1.5px solid var(--border-strong); background:var(--surface); transition:background 160ms ease, border-color 160ms ease; }
.qd-sw-k{ position:absolute; top:1.5px; left:1.5px; width:10px; height:10px; border-radius:50%; background:var(--text-muted); transition:transform 160ms ease, background 160ms ease; }
.qd-beside[aria-checked="true"]{ border-color:var(--accent); background:color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.qd-beside[aria-checked="true"] .qd-eyeoff{ color:var(--accent-deep); }
.qd-beside[aria-checked="true"] .qd-sw{ background:var(--accent); border-color:var(--accent); }
.qd-beside[aria-checked="true"] .qd-sw-k{ transform:translateX(12px); background:var(--surface); }
@media (prefers-reduced-motion: reduce){ .qd-sw, .qd-sw-k{ transition:none; } }
.qd-besideband{ display:flex; align-items:center; gap:8px; flex:none; height:32px; padding:0 12px; border-radius:var(--radius-sm); background:var(--surface-hi); color:var(--text-muted); font:500 13px/16px var(--font); }
.qd-besideband .q-link{ margin-left:4px; }
.qd-offcard{ margin:48px auto; max-width:560px; }
.qd-offmark{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border:1.5px dotted var(--text-muted); border-radius:50%; color:var(--text-muted); }
/* Customer Beside Me (DESIGN 6.2): the Money Bar draws only Price (with the customer's total under it), the Inspector hides every cost line (the Mini View stays), the Cost grid hides
   Unit Cost to % Of Job, and Review's Profit Guard column draws only its count */
.qd-desk[data-beside] .qd-money .qd-tile:not([data-tile="price"]), .qd-desk[data-beside] .qd-money .qd-op, .qd-desk[data-beside] .qd-gauge{ visibility:hidden; }
.qd-desk[data-beside] [data-tile="price"] .qd-edit{ pointer-events:none; border-bottom-color:transparent; }
.qd-ibeside{ display:none; }
.qd-desk[data-beside] .qd-imodes, .qd-desk[data-beside] .qd-iscroll{ display:none; }
.qd-desk[data-beside] .qd-ibeside{ display:flex; flex-direction:column; gap:4px; padding:16px; font-size:13px; line-height:18px; color:var(--text-muted); }
.qd-desk[data-beside] .qd-ibeside b{ color:var(--text); font-weight:600; }
.qd-desk[data-beside] [data-col="unitCost"], .qd-desk[data-beside] [data-col="materials"], .qd-desk[data-beside] [data-col="bought"], .qd-desk[data-beside] [data-col="hours"], .qd-desk[data-beside] [data-col="labor"], .qd-desk[data-beside] [data-col="machine"], .qd-desk[data-beside] [data-col="direct"], .qd-desk[data-beside] [data-col="pct"]{ visibility:hidden; }
/* My Own Project's Money Bar: five tiles, Project Cost the sum, in the same 64 px row the seven sat in */
.qd-ownbar{ display:grid; grid-template-rows:64px 16px; }
.qd-owntiles .qd-owntile{ width:300px; cursor:default; }
.qd-owntiles .qd-owntile:hover{ border-color:var(--border); }
.qd-owntiles .qd-owntotal{ width:340px; }
.qd-ownhours{ align-self:center; margin-left:16px; font:500 12px/16px var(--font); color:var(--text-muted); }
/* the rate price as arithmetic, in the Inspector under Price (spec 6.3) */
.qd-rm-head{ margin-top:6px; font:600 12px/16px var(--font); color:var(--text-muted); }
.qd-rm-row{ display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:12px; font-size:13px; line-height:20px; padding:2px 0; }
.qd-rm-l{ min-width:0; }
.qd-rm-c{ text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.qd-rm-how{ grid-column:1 / -1; font-size:12px; line-height:16px; color:var(--text-muted); font-family:var(--font-num); font-variant-numeric:tabular-nums; }
.qd-atmost{ font:500 12px/16px var(--font); color:var(--text-muted); margin-right:-4px; }
.qd-rm-sum{ border-top:1px solid var(--border); margin-top:4px; padding-top:2px; font-weight:600; }
.qd-panel{ flex:none; width:420px; height:100%; background:var(--surface); border-radius:var(--radius-md); box-shadow:0 0 0 1px var(--border); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.qd-panel.qd-rail{ width:48px; }
.qd-panel.qd-rail .qd-ptabs{ flex-direction:column; height:auto; border-bottom:0; padding:8px 4px; gap:8px; }
.qd-panel.qd-rail .qd-ptab{ writing-mode:vertical-rl; height:auto; padding:12px 0; width:40px; flex:none; }
.qd-panel.qd-rail .qd-ptab[aria-selected="true"]::after{ display:none; }
.qd-panel.qd-rail .qd-pbody{ display:none; }
.qd-ptabs{ display:flex; height:44px; flex:none; border-bottom:1px solid var(--border); padding:0 8px; gap:4px; }
.qd-ptab{ position:relative; flex:1 1 0; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; background:none; color:var(--text-muted); font:600 14px/20px var(--font); cursor:pointer; }
.qd-ptab:hover{ color:var(--text); }
.qd-ptab[aria-selected="true"]{ color:var(--text); }
.qd-ptab[aria-selected="true"]::after{ content:""; position:absolute; left:16px; right:16px; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:var(--accent-deep); }
.qd-dot{ width:8px; height:8px; border-radius:50%; background:var(--accent-deep); box-shadow:0 0 0 2px var(--surface); }
.qd-pbody{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.qd-pane{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }

/* ---------- the Inspector ---------- */
.qd-mini{ flex:none; padding:16px 16px 10px; border-bottom:1px solid var(--border); }
.qd-mini-view{ width:388px; height:176px; border-radius:8px; overflow:hidden; background:var(--surface-hi); position:relative; }
.qd-mini-note{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--surface-hi) 88%, transparent); font:600 13px/18px var(--font); color:var(--text-muted); text-align:center; padding:0 24px; }
.qd-mini-bar{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; min-height:28px; }
.qd-mini-bar .q-seg button{ height:26px; padding:0 10px; font-size:12px; }
.qd-mini-what{ font:600 12px/16px var(--font); color:var(--text-muted); text-align:right; }
.qd-imodes{ flex:none; padding:10px 16px 0; }
.qd-imodes .q-seg{ width:100%; } .qd-imodes .q-seg button{ flex:1 1 0; height:28px; font-size:12px; padding:0 6px; }
.qd-iscroll{ flex:1 1 auto; min-height:0; overflow:auto; padding:12px 16px 16px; display:flex; flex-direction:column; gap:14px; }
.qd-sec h3{ margin:0 0 6px; font:600 13px/18px var(--font); display:flex; align-items:center; gap:8px; }
.qd-proof{ font:500 14px/20px var(--font); }
.qd-proof b{ font-family:var(--font-num); font-variant-numeric:tabular-nums; font-weight:600; }
/* A category row is as tall as its name: a long name (Countertops And Outside Work) wraps inside its own row, which grows, and never runs into the rows around it. */
.qd-cats{ display:grid; grid-template-columns:minmax(0, 1fr) 78px 46px; column-gap:6px; row-gap:0; align-items:stretch; }
.qd-catrow{ display:contents; }
.qd-catrow > *{ min-height:26px; padding:5px 0; display:flex; align-items:center; }
.qd-catname{ gap:6px; min-width:0; position:relative; }
.qd-catname i{ width:10px; height:10px; border-radius:50%; flex:none; }
.qd-catname b{ font:600 11px/1 var(--font-num); color:var(--text-muted); width:18px; flex:none; }
.qd-catname span{ font-size:13px; line-height:16px; min-width:0; overflow-wrap:break-word; }
.qd-catbar{ position:absolute; left:0; bottom:0; height:2px; border-radius:2px; opacity:.6; }
.qd-catv{ justify-content:flex-end; font:500 13px/16px var(--font-num); font-variant-numeric:tabular-nums; }
.qd-catp{ justify-content:flex-end; font:500 12px/16px var(--font-num); font-variant-numeric:tabular-nums; color:var(--text-muted); }
.qd-kv{ display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:12px; row-gap:2px; }
.qd-kv > span{ font-size:13px; line-height:24px; } .qd-kv > span:nth-child(even){ text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; white-space:nowrap; }
.qd-kv .qd-kv-sum{ font-weight:600; border-top:1px solid var(--border); }
.qd-kv .qd-kv-note{ grid-column:1 / -1; font-size:12px; line-height:16px; color:var(--text-muted); text-align:left !important; font-family:var(--font) !important; white-space:normal !important; }
.qd-strip{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.qd-strip > div{ border:1px solid var(--border); border-radius:var(--radius-xs); padding:6px 8px; text-align:right; }
.qd-strip span{ display:block; font:600 11px/14px var(--font); color:var(--text-muted); }
.qd-strip b{ display:block; font:600 14px/20px var(--font-num); font-variant-numeric:tabular-nums; }
.qd-ifoot{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
/* Why This Number: the name of what the Inspector shows for a selected figure, in plain sight above it */
.qd-whyhead{ display:flex; align-items:center; gap:8px; margin-bottom:-6px; font:650 16px/22px var(--font); letter-spacing:-.005em; color:var(--text); }
.qd-guardrow{ display:grid; grid-template-columns:auto minmax(0, 1fr); gap:6px 10px; padding:10px 0; border-bottom:1px solid var(--border); align-items:start; }
.qd-guardrow:last-child{ border-bottom:0; }
.qd-guardrow p{ margin:0; font-size:13px; line-height:18px; }
.qd-guardrow .qd-gact{ grid-column:2; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.qd-guardrow .q-input{ height:28px; font-size:13px; flex:1 1 140px; min-width:0; }
.qd-muted{ color:var(--text-muted); } .qd-fine{ font-size:12px; line-height:16px; }

/* ---------- the Data Grid (DESIGN 5.7.1) ---------- */
.qd-grid{ position:relative; height:100%; overflow-y:auto; overflow-x:hidden; outline:none; border-radius:inherit; font-size:13px; line-height:18px; }
.qd-grid-in{ min-height:100%; display:flex; flex-direction:column; }
.qd-gr{ display:grid; grid-template-columns:var(--qd-cols); align-items:stretch; min-height:var(--qd-row); border-bottom:1px solid var(--border); background:var(--surface); }
.qd-gr:hover{ background:var(--surface-hi); }
.qd-gh{ position:sticky; top:0; z-index:var(--layer-step-4); min-height:36px; height:36px; background:var(--surface); border-bottom:1px solid var(--border-strong); }
.qd-gh:hover{ background:var(--surface); }
.qd-gh .qd-gc{ font:600 12px/16px var(--font); color:var(--text-muted); }
/* a numeric column's head may take two lines of its 36 px (Machine And Other, the second audit, item 6), right-aligned over its figures */
.qd-gh .qd-gc.qd-n > span:first-child{ white-space:normal; line-height:14px; text-align:right; overflow-wrap:normal; }
.qd-gh-acts{ display:inline-flex; align-items:center; gap:2px; margin-left:auto; }
.qd-ghbtn{ display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 8px; border:1px solid transparent; border-radius:var(--radius-xs); background:none; color:var(--text-muted); font:600 12px/16px var(--font); white-space:nowrap; cursor:pointer; }
.qd-ghbtn:hover{ background:var(--surface-hi); border-color:var(--border); color:var(--text); }
.qd-gt{ position:sticky; bottom:0; z-index:var(--layer-step-4); min-height:36px; height:36px; background:var(--surface); border-top:2px solid var(--border-strong); border-bottom:0; font-weight:600; }
.qd-gt:hover{ background:var(--surface); }
.qd-gfill{ flex:1 1 auto; }
.qd-gc{ display:flex; align-items:center; gap:6px; padding:2px var(--qd-pad); min-width:0; position:relative; }
.qd-d-compact .qd-gc{ padding-top:0; padding-bottom:0; }
.qd-d-compact .qd-pct{ gap:1px; }
.qd-d-compact .qd-twist{ height:18px; }
.qd-gc.qd-n{ justify-content:flex-end; text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums lining-nums; white-space:nowrap; }
.qd-l1{ min-height:calc(var(--qd-row) + 4px); background:var(--surface-hi); font-weight:600; }
.qd-l1:hover{ background:var(--surface-2); }
.qd-l2{ font-weight:600; }
.qd-l2 .qd-item{ padding-left:calc(var(--qd-pad) + 24px); }
.qd-l3 .qd-item{ padding-left:calc(var(--qd-pad) + 48px); }
.qd-item{ cursor:default; }
.qd-item .qd-name{ min-width:0; overflow-wrap:anywhere; }
.qd-item .qd-count{ color:var(--text-muted); font-weight:500; white-space:nowrap; }
.qd-twist{ width:20px; height:20px; flex:none; border:0; background:none; color:var(--text-muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; border-radius:4px; padding:0; transition:transform var(--bws-motion); }
.qd-twist:hover{ background:var(--surface-2); color:var(--text); }
.qd-open > .qd-item .qd-twist{ transform:rotate(90deg); }
.qd-twist-none{ width:20px; flex:none; }
.qd-grid:focus .qd-cur{ outline:var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--accent)); outline-offset:-2px; border-radius:3px; }
.qd-grid:not(:focus) .qd-cur{ box-shadow:inset 0 0 0 1px var(--accent); border-radius:3px; }
.qd-gr.qd-ring{ box-shadow:inset 0 0 0 1px var(--accent), inset 3px 0 0 var(--accent-deep); }
.qd-gr.qd-isopen{ box-shadow:inset 3px 0 0 var(--accent-deep); }
.qd-ed{ color:var(--accent-deep); cursor:text; }
.qd-frozen .qd-ed{ color:var(--text); cursor:default; }
.qd-mut{ color:var(--text-muted); }
.qd-f-notpriced{ background:var(--danger-soft); color:var(--danger-ink); font-weight:600; font-family:var(--font) !important; }
.qd-f-outofspec{ background:var(--warn-soft); color:var(--warn-ink); }
.qd-f-edited{ background:var(--accent-soft); color:var(--accent-ink); font-weight:600; }
.qd-f-edited.qd-ed{ color:var(--accent-ink); }
.qd-gr.qd-f-new{ background:var(--q-diff-new); color:var(--ok-ink); }
.qd-gr.qd-f-new .qd-mut{ color:var(--ok-ink); }
.qd-gr.qd-f-gone{ background:var(--q-diff-old); color:var(--danger-ink); text-decoration:line-through; }
/* A mark sits beside its number with a gap of its own (the cell's 6 px and 2 more), and neither can shrink or grow: a glyph is 14 px against any rule for a button on the page, and
   the number keeps its full width. The Hours and Unit Cost columns are wide enough for a glyph, the gap and the number at Roomy, so the pencil never sits on a digit. */
.qd-glyphs{ display:inline-flex; align-items:center; gap:3px; flex:none; color:inherit; }
.qd-gc.qd-n .qd-glyphs{ margin-right:2px; }
.qd-gc.qd-n > .qd-glyphs + span:not(.qd-pct){ flex:none; }
.qd-root .qd-glyph{ display:inline-flex; align-items:center; justify-content:center; width:14px !important; height:14px !important; min-width:0 !important; min-height:0 !important; padding:0 !important; margin:0 !important; border:0; background:none; color:inherit; cursor:pointer; border-radius:3px; flex:none; line-height:1; }
.qd-root .qd-glyph-t{ border:1px solid currentColor; border-radius:50%; font:700 8px/1 var(--font); width:12px !important; height:12px !important; }
.qd-root .qd-glyph-more{ font:600 10px/1 var(--font-num); width:auto !important; padding:0 2px !important; }
.qd-cellin{ width:100%; height:calc(var(--qd-row) - 8px); min-height:20px; border:0; box-shadow:inset 0 0 0 2px var(--accent); border-radius:3px; background:var(--surface); color:var(--text); font:500 13px/18px var(--font-num); font-variant-numeric:tabular-nums; text-align:right; padding:0 6px; outline:none; }
.qd-split{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; line-height:14px; font-size:12px; }
.qd-split .q-was, .qd-split .q-now{ padding:0 4px; display:inline-flex; align-items:center; gap:3px; }
.qd-pct{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; width:100%; }
.qd-bar{ width:100%; height:4px; border-radius:2px; background:var(--surface-2); overflow:hidden; }
.qd-bar i{ display:block; height:4px; border-radius:2px; }
.qd-roll{ display:inline-flex; align-items:center; gap:3px; font:600 12px/16px var(--font-num); color:var(--accent-deep); white-space:nowrap; }
.qd-state{ display:inline-flex; align-items:center; gap:5px; font:600 12px/16px var(--font); white-space:normal; min-width:0; }
.qd-state-plain{ color:var(--text-muted); font-weight:500; }
.qd-rowbtn{ border:0; background:none; padding:0; margin:0; font:inherit; color:inherit; cursor:pointer; text-align:inherit; border-bottom:1px dotted var(--text-muted); }
.qd-rowbtn:hover{ border-bottom-style:solid; color:var(--accent-deep); }
/* The Job Lines row keeps its name and its three calculator chips on one line: the Item column is 300 px since Machine And Other took its place, so the chips run on over the
   row's own blank Qty, Unit and Unit Cost cells (a group row prints nothing there), above them so every part of a chip takes its click. */
.qd-jobsrow .qd-name{ flex:none; }
.qd-calcs{ display:inline-flex; flex:none; gap:6px; margin-left:8px; position:relative; z-index:var(--layer-step-1); }
.qd-calcs .q-chip{ height:22px; padding:0 8px; font-size:11px; }

/* the Build-Up Row: the full width of the grid, three columns of 444 with 20 gaps */
.qd-bu{ grid-column:1 / -1; background:var(--surface); box-shadow:inset 0 0 0 1px var(--border), inset 3px 0 0 var(--accent-deep); padding:10px 16px 10px 20px; }
.qd-burow{ display:block; min-height:0; border-bottom:1px solid var(--border-strong); background:var(--surface); }
.qd-burow:hover{ background:var(--surface); }
.qd-bu-cols{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; align-items:start; }
.qd-bu-cols.qd-bu-2{ grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); }
.qd-bu-col h4{ margin:0 0 6px; font:600 12px/18px var(--font); color:var(--text-muted); letter-spacing:.02em; display:flex; justify-content:space-between; gap:8px; border-bottom:1px solid var(--border); padding-bottom:3px; }
.qd-bl{ display:grid; grid-template-columns:minmax(0, 1fr) 64px 76px; column-gap:8px; font-size:12.5px; line-height:17px; }
.qd-bl > span:nth-child(n+2){ text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; white-space:nowrap; }
.qd-bl.qd-bl-sub{ font-weight:600; margin-top:2px; }
.qd-bl.qd-bl-sum{ font-weight:600; border-top:1px solid var(--border); margin-top:3px; padding-top:2px; }
.qd-bl.qd-bl-big{ font-weight:650; font-size:14px; line-height:24px; border-top:2px solid var(--border-strong); margin-top:3px; }
.qd-bnote{ font-size:11.5px; line-height:13px; color:var(--text-muted); padding-left:12px; }
.qd-bops{ font-size:11.5px; line-height:14px; color:var(--text-muted); padding-left:12px; }
.qd-gr.qd-allow{ color:var(--text-muted); box-shadow:inset 3px 0 0 var(--warn); border-bottom-style:dashed; }
.qd-gc[data-col="unit"]{ padding-left:6px; padding-right:6px; }
.qd-gr.qd-allow .qd-ed{ color:var(--accent-deep); }
.qd-bu-acts{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
/* a three-way switch in a build-up column wraps inside the column rather than running past the grid's edge (the Sheets calculator, the second audit, item 9) */
.qd-bu-col .q-seg{ flex-wrap:wrap; max-width:100%; }
.qd-bu-col .q-seg button{ padding-left:8px; padding-right:8px; }
.qd-bu-acts .q-btn{ height:28px; padding:0 10px; font-size:12px; }
.qd-bu-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; min-height:20px; }
.qd-bu-head .qd-x{ width:20px; height:20px; }
.qd-bu-head b{ font:600 14px/20px var(--font); }
.qd-x{ width:24px; height:24px; border:0; background:none; border-radius:6px; color:var(--text-muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.qd-x:hover{ background:var(--surface-hi); color:var(--text); }
.qd-bu{ position:relative; }
.qd-bu-x{ position:absolute; top:8px; right:10px; z-index:var(--layer-step-1); }
.qd-reason{ grid-column:1 / -1; display:flex; align-items:center; gap:8px; padding:6px 16px 6px calc(var(--qd-pad) + 48px); background:var(--accent-soft); color:var(--accent-ink); font:600 12px/16px var(--font); flex-wrap:wrap; }
.qd-reason .q-chip{ height:24px; }
.qd-ctable{ width:100%; border-collapse:collapse; font-size:12.5px; }
.qd-ctable th{ text-align:left; font:600 12px/18px var(--font); color:var(--text-muted); padding:3px 8px; border-bottom:1px solid var(--border); white-space:nowrap; }
.qd-ctable td{ padding:3px 8px; border-bottom:1px solid var(--border); line-height:19px; }
.qd-ctable .qd-n{ text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; white-space:nowrap; }
.qd-ctable tfoot td{ font-weight:600; border-bottom:0; border-top:1px solid var(--border-strong); }
.qd-ctable .q-select{ height:28px; font-size:12.5px; }
.qd-pctin{ width:64px; height:26px; text-align:right; font:600 13px/18px var(--font-num); border:0; border-bottom:1px solid var(--accent-deep); background:none; color:var(--accent-deep); padding:0 2px; border-radius:0; }
.qd-pctin:focus{ outline:none; box-shadow:inset 0 0 0 2px var(--accent); border-radius:3px; background:var(--surface); color:var(--text); border-bottom-color:transparent; }

/* ---------- the Edited Mark's popover (DESIGN 5.7.3) and the picker ---------- */
.qd-pop{ position:fixed; z-index:var(--layer-popover); width:320px; padding:14px; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--elev-2); display:flex; flex-direction:column; gap:8px; font-size:13px; line-height:18px; }
.qd-pop h4{ margin:0; font:600 14px/20px var(--font); display:flex; align-items:center; gap:8px; }
.qd-pop-row{ display:grid; grid-template-columns:44px minmax(0, 1fr); gap:8px; align-items:start; }
.qd-pop-row > span:first-child{ font:600 12px/20px var(--font); color:var(--text-muted); }
.qd-pop-chips{ display:flex; gap:6px; flex-wrap:wrap; }
.qd-pop-chips .q-chip{ height:22px; padding:0 8px; font-size:11px; }
.qd-pop-foot{ display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
.qd-pop-foot .q-btn{ height:30px; font-size:13px; }
/* The picker is one grid, so the amount column and the button column are each as wide as their widest cell in any row: a long button (On This Quote · Remove)
   widens its own column and can never lie over the amount beside it. */
.qd-pick{ display:grid; grid-template-columns:minmax(0, 1fr) max-content max-content; column-gap:0; row-gap:0; }
.qd-pickrow{ display:contents; }
.qd-pickrow > *{ display:flex; align-items:center; min-width:0; padding:10px 0 10px 16px; border-bottom:1px solid var(--border); }
.qd-pickrow > :first-child{ display:block; padding-left:0; }
.qd-pickrow:last-child > *{ border-bottom:0; }
.qd-pickrow b{ display:block; font:600 14px/20px var(--font); } .qd-pickrow small{ display:block; font-size:12px; line-height:16px; color:var(--text-muted); }
.qd-pickrow > .q-num{ justify-content:flex-end; min-width:104px; font:600 14px/20px var(--font-num); font-variant-numeric:tabular-nums; white-space:nowrap; }
.qd-pickact{ justify-content:flex-end; }
.qd-pickact .q-btn{ flex:none; height:30px; font-size:13px; white-space:nowrap; }
.qd-pickhead{ grid-column:1 / -1; font:600 12px/16px var(--font); color:var(--text-muted); padding:12px 0 2px; letter-spacing:.02em; }
/* Type A Line (card P4195): the form under Blank Line, and in a typed line's Build-Up Row. A long name wraps; nothing is cut. */
.qd-pickrow b, .qd-pickrow small{ overflow-wrap:anywhere; }
.qd-typed{ grid-column:1 / -1; display:flex; flex-direction:column; gap:10px; padding:12px 14px; margin:4px 0 10px; border:1px solid var(--border-strong); border-radius:var(--radius-md); background:var(--surface-2); }
.qd-bu-cols + .qd-typed{ margin:10px 0 0; }
.qd-typed-row{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 16px; }
.qd-tf{ display:flex; flex-direction:column; gap:4px; font:600 12px/16px var(--font); color:var(--text-muted); }
.qd-ti{ height:32px; padding:0 8px; border:1px solid var(--border-strong); border-radius:var(--radius-sm); background:var(--surface); color:var(--text); font:400 14px/20px var(--font); }
.qd-tf-name{ flex:1 1 240px; min-width:0; } .qd-tf-name .qd-ti{ width:100%; }
.qd-tf-qty .qd-ti{ width:80px; text-align:right; font-family:var(--font-num); } .qd-tf-unit .qd-ti{ width:96px; } .qd-tf-cents .qd-ti{ width:128px; text-align:right; font-family:var(--font-num); }
.qd-tsw{ display:inline-flex; align-items:center; gap:6px; font:600 13px/20px var(--font); color:var(--text); height:32px; }
.qd-tread{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 22px; font:400 13px/22px var(--font); color:var(--text); }
.qd-tread:empty{ display:none; }
.qd-twn{ display:inline-flex; align-items:center; gap:8px; } .qd-twn > b{ font-weight:600; color:var(--text-muted); } .qd-twn .q-num{ font:600 14px/20px var(--font-num); font-variant-numeric:tabular-nums; }
.qd-twn .ql-wasnow{ display:inline-flex; align-items:center; gap:6px; font-family:var(--font-num); font-variant-numeric:tabular-nums; }
.qd-tchoice{ display:flex; flex-direction:column; gap:6px; } .qd-tchoice:empty{ display:none; }
.qd-tchoice label{ display:flex; align-items:center; gap:8px; font:400 13px/20px var(--font); color:var(--text); cursor:pointer; }
.qd-twhy{ color:var(--danger-ink); font:600 13px/18px var(--font); }
.qd-tacts{ display:flex; gap:8px; justify-content:flex-end; }
.qd-tacts .q-btn[disabled]{ opacity:.6; cursor:not-allowed; }

/* ---------- the Change Card (DESIGN 5.7.4) ---------- */
.qd-cc{ border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); display:flex; flex-direction:column; outline:none; transition:box-shadow var(--bws-motion), border-color var(--bws-motion); }
.qd-cc.qd-cc-pv{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.qd-cc-head{ min-height:40px; display:flex; align-items:center; gap:8px; padding:6px 12px; border-bottom:1px solid var(--border); }
.qd-cc-head b{ font:600 13.5px/18px var(--font); flex:1 1 auto; min-width:0; }
.qd-cc-rows{ display:flex; flex-direction:column; }
.qd-cc-row{ display:grid; grid-template-columns:minmax(0, 1fr); gap:3px; padding:7px 12px; border-bottom:1px solid var(--border); font-size:12.5px; line-height:18px; }
.qd-cc-row > div{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.qd-cc-row .q-was, .qd-cc-row .q-now{ display:inline-flex; align-items:center; gap:4px; }
.qd-cc-money{ display:grid; grid-template-columns:minmax(0, 1fr) auto 14px auto; column-gap:8px; row-gap:2px; padding:8px 12px; font-size:12.5px; line-height:20px; border-bottom:1px solid var(--border); align-items:center; }
.qd-cc-money span:nth-child(4n+2), .qd-cc-money span:nth-child(4n){ text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; white-space:nowrap; }
.qd-cc-money span:nth-child(4n){ font-weight:600; }
.qd-cc-money span:nth-child(4n+3){ color:var(--text-muted); display:inline-flex; }
.qd-cc-note{ padding:6px 12px; font-size:12px; line-height:16px; color:var(--text-muted); border-bottom:1px solid var(--border); }
.qd-cc-foot{ min-height:48px; display:flex; align-items:center; gap:8px; padding:8px 12px; }
.qd-cc-foot .q-btn{ height:32px; font-size:13px; }
.qd-cc-sm .qd-cc-head{ min-height:34px; padding:4px 12px; }
.qd-cc-sm .qd-cc-foot{ min-height:40px; padding:4px 12px; }
.qd-cc-sm .qd-cc-foot .q-btn{ height:28px; }
.qd-msg .qd-cc-sm{ margin:6px 0 12px; }
.qd-cc-fold{ min-height:40px; display:flex; align-items:center; gap:8px; padding:6px 12px; font-size:13px; line-height:18px; }
.qd-cc-fold span{ flex:1 1 auto; min-width:0; }
.qd-cc.qd-cc-fold{ flex-direction:row; }

/* ---------- the Assistant tab ---------- */
.qd-as{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.qd-as-head{ flex:none; padding:10px 16px; border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:4px; }
.qd-as-head > div{ display:flex; align-items:center; gap:8px; }
.qd-as-head b{ font:600 14px/20px var(--font); }
.qd-as-ctx{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; font:600 12px/16px var(--font); color:var(--text-muted); }
.qd-as-thread{ flex:1 1 auto; min-height:0; overflow:auto; padding:14px 16px; display:flex; flex-direction:column; gap:12px; }
.qd-msg{ display:flex; flex-direction:column; gap:8px; max-width:100%; font-size:13.5px; line-height:20px; }
.qd-msg p{ margin:0; }
.qd-msg-you{ align-self:flex-end; background:var(--accent-soft); color:var(--accent-ink); padding:8px 12px; border-radius:14px 14px 4px 14px; max-width:320px; }
.qd-msg-who{ font:600 11px/14px var(--font); color:var(--text-muted); display:flex; align-items:center; gap:6px; letter-spacing:.02em; }
.qd-tool{ font-size:12px; line-height:16px; color:var(--text-muted); display:flex; align-items:center; gap:6px; }
.qd-inl{ border:1px solid var(--border); border-radius:var(--radius-xs); padding:8px 10px; background:var(--surface-hi); }
.qd-inl .q-btn{ height:28px; font-size:12px; margin-top:6px; }
.qd-as-sugs{ flex:none; display:flex; gap:6px; flex-wrap:wrap; padding:8px 16px 0; }
.qd-sug{ height:28px; padding:0 10px; border-radius:var(--radius-pill); border:1px solid var(--border); background:var(--surface); color:var(--text); font:600 12px/16px var(--font); cursor:pointer; white-space:nowrap; }
.qd-sug:hover{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent-ink); }
.qd-as-in{ flex:none; display:flex; gap:8px; padding:10px 16px 14px; }
.qd-as-in .q-input{ flex:1 1 auto; min-width:0; }
.qd-send{ width:36px; height:36px; flex:none; border-radius:var(--radius-sm); border:1px solid var(--accent-deep); background:var(--accent-deep); color:var(--on-accent, var(--surface)); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }

/* ---------- the Brief ---------- */
.qd-brief{ display:grid; grid-template-columns:664px 756px; gap:16px; height:100%; min-height:0; }
.qd-plan{ padding:16px; display:flex; flex-direction:column; gap:10px; min-height:0; border-right:1px solid var(--border); }
/* The drawing takes every pixel the column has left after the view chips, the three wall views and the proof line, so a taller window gives a larger plan and never a blank
   column. brief.js measures this box and draws the plan to it; at 1920 by 940 it is about 632 by 398, and at a 1080 page about 632 by 540. */
.qd-plan-draw{ width:632px; flex:1 1 0px; min-height:280px; border-radius:10px; overflow:hidden; background:var(--surface-hi); position:relative; }
/* the floor plan has its own height at a width (brief.js sets it inline): the box is cut to it and does not grow, so the view chips sit under the drawing and the column's spare
   height goes under the wall views (third audit, item 6). The chips come 4 px closer, so the plan's lower edge and the chips are never more than about 22 px apart. */
.qd-plan-draw.qd-fit{ flex:0 0 auto; }
.qd-plan-draw + .qd-views{ margin-top:-4px; }
.qd-views{ flex:none; display:flex; gap:6px; flex-wrap:wrap; align-items:center; min-height:24px; }
/* the three wall views under the plan: small elevations of the same kitchen, lit by the same highlight, each a button that puts its wall in the big drawing */
.qd-walls{ flex:none; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.qd-wall{ display:flex; flex-direction:column; gap:4px; min-width:0; padding:0; border:0; background:none; color:inherit; cursor:pointer; border-radius:10px; text-align:left; font:inherit; }
.qd-wall-pic{ height:96px; border-radius:8px; overflow:hidden; background:var(--surface-hi); box-shadow:inset 0 0 0 1px var(--border); position:relative; }
.qd-wall:hover .qd-wall-pic{ box-shadow:inset 0 0 0 1px var(--border-strong); }
.qd-wall[aria-pressed="true"] .qd-wall-pic{ box-shadow:inset 0 0 0 2px var(--accent-deep); }
.qd-wall:focus-visible{ outline:var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--accent)); outline-offset:2px; }
.qd-wall-cap{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 2px; font:600 12px/16px var(--font); color:var(--text); min-width:0; }
.qd-wall-cap b{ font-weight:600; white-space:nowrap; }
.qd-wall-cap span{ display:inline-flex; align-items:center; gap:4px; color:var(--text-muted); font-weight:500; white-space:nowrap; }
.qd-wall[aria-pressed="true"] .qd-wall-cap span{ color:var(--accent-ink); font-weight:600; }
.qd-wall-pic .qd-calm{ padding:8px; font:600 12px/16px var(--font); }
/* At this size a Not Priced mark is as wide as a cabinet and sat on its tag (B5, B2 and B3 read as a question mark). A wall view keeps the hatching, which the legend
   names, and leaves the mark to the big drawing above it. */
.qd-wall-pic [data-badge]{ display:none; }
.qd-legend{ display:flex; gap:14px; align-items:center; font:500 12px/16px var(--font); color:var(--text-muted); margin-left:auto; }
.qd-legend span{ display:inline-flex; align-items:center; gap:6px; }
.qd-legend i{ width:12px; height:12px; border-radius:3px; }
.qd-leg-hatch{ background:var(--danger-soft); box-shadow:inset 0 0 0 1px var(--danger-edge, var(--danger)); }
.qd-leg-pin{ background:var(--danger); border-radius:50% !important; }
.qd-lede{ font:500 19px/28px var(--font); letter-spacing:-.005em; margin:0; }
.qd-lede b{ font-family:var(--font-num); font-variant-numeric:tabular-nums; font-weight:650; }
.qd-bcol{ display:flex; flex-direction:column; min-height:0; height:100%; }
.qd-cards{ flex:1 1 auto; min-height:0; overflow:auto; padding:16px 16px 16px 0; display:flex; flex-direction:column; gap:12px; }
.qd-card{ border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); flex:none; }
.qd-card > header{ display:flex; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid var(--border); border-radius:var(--radius-md) var(--radius-md) 0 0; }
.qd-card > header h3{ margin:0; font:600 15px/22px var(--font); flex:1 1 auto; }
.qd-card > header .qd-n{ width:22px; height:22px; border-radius:50%; background:var(--surface-hi); display:inline-flex; align-items:center; justify-content:center; font:600 12px/1 var(--font-num); color:var(--text-muted); flex:none; }
/* fix 3 of card P4195 (F6): in Midnight Oak the band was the light theme's pink (243, 224, 219), because theme.css keeps soft fills light in dark. quote-tokens.css's Midnight Oak block
   sets --q-danger-band (the danger hue laid thinly on the dark surface) and --q-danger-band-ink (the page's own text, well over 4.5 to 1); light has neither, so it reads as before. */
.qd-card-danger > header{ background:var(--q-danger-band, var(--danger-soft)); color:var(--q-danger-band-ink, var(--danger-ink)); border-bottom-color:var(--danger-edge, var(--danger)); }
.qd-card-danger{ border-color:var(--danger-edge, var(--danger)); }
.qd-card-ok{ border-color:var(--ok-edge, var(--ok)); background:var(--ok-soft); color:var(--ok-ink); padding:10px 14px; display:flex; align-items:center; gap:8px; font:600 14px/20px var(--font); }
.qd-crow{ display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:4px 12px; align-items:center; padding:9px 14px; border-bottom:1px solid var(--border); }
.qd-crow:last-child{ border-bottom:0; border-radius:0 0 var(--radius-md) var(--radius-md); }
.qd-crow:hover{ background:var(--surface-hi); }
.qd-crow p{ margin:0; font-size:14px; line-height:20px; }
.qd-crow small{ display:block; font-size:12px; line-height:16px; color:var(--text-muted); }
.qd-crow .qd-amt{ font:600 15px/20px var(--font-num); font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; min-width:112px; }
.qd-crow .qd-acts{ display:flex; gap:8px; align-items:center; justify-content:flex-end; }
.qd-crow .q-btn{ height:30px; font-size:13px; padding:0 10px; }
.qd-crow-open{ grid-column:1 / -1; display:flex; gap:16px; flex-wrap:wrap; align-items:flex-end; padding:6px 0 2px; }
.qd-crow-open .q-field > span{ font-size:11px; }
.qd-crow-open .q-select{ height:32px; font-size:13px; }
.qd-pinn{ width:20px; height:20px; border-radius:50%; background:var(--danger); color:var(--surface); display:inline-flex; align-items:center; justify-content:center; font:700 11px/1 var(--font-num); flex:none; margin-right:8px; vertical-align:-4px; }
.qd-bfoot{ flex:none; display:flex; align-items:center; gap:12px; padding:12px 16px 12px 0; border-top:1px solid var(--border); min-height:64px; }
.qd-bfoot p{ margin:0; flex:1 1 auto; min-width:0; font-size:13px; line-height:18px; color:var(--text-muted); }
.qd-progress{ height:100%; display:flex; align-items:center; justify-content:center; }
.qd-progress ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; width:420px; }
.qd-progress li{ display:flex; align-items:center; gap:12px; font:500 17px/24px var(--font); color:var(--text-muted); transition:color 200ms; }
.qd-progress li i{ width:24px; height:24px; border-radius:50%; border:2px solid var(--border); display:inline-flex; align-items:center; justify-content:center; flex:none; color:transparent; }
.qd-progress li.qd-done{ color:var(--text); }
.qd-progress li.qd-done i{ background:var(--ok-soft); border-color:var(--ok); color:var(--ok-ink); }
.qd-progress h2{ margin:0 0 18px; font:650 22px/28px var(--font); letter-spacing:-.01em; }

/* ---------- the Price tab ---------- */
.qd-price{ display:grid; grid-template-columns:860px 560px; gap:16px; height:100%; min-height:0; }
.qd-ladder{ padding:14px 16px 16px; overflow:auto; min-height:0; border-right:1px solid var(--border); }
.qd-lhead{ display:flex; align-items:flex-start; gap:12px; margin-bottom:8px; }
.qd-lhead p{ margin:0; flex:1 1 auto; font-size:13px; line-height:18px; color:var(--text-muted); }
.qd-lrow{ display:grid; grid-template-columns:220px minmax(0, 1fr) 132px 28px; align-items:center; column-gap:12px; min-height:34px; padding:3px 8px; border-radius:6px; font-size:14px; line-height:20px; }
.qd-lrow:hover{ background:var(--surface-hi); }
.qd-lrow > span:nth-child(2){ color:var(--text-muted); font-size:13px; }
.qd-lrow > span:nth-child(3){ text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; white-space:nowrap; }
.qd-lrow.qd-l-rule{ border-top:1px solid var(--border-strong); border-radius:0; margin-top:4px; padding-top:7px; }
.qd-lrow.qd-l-strong{ font-weight:600; }
.qd-lrow.qd-l-price{ font-weight:650; font-size:18px; line-height:28px; }
.qd-lrow.qd-l-sub{ padding-left:28px; font-size:13px; min-height:26px; }
/* the Price Adjustment row's fill follows the theme, as the frozen band's does (the second audit, item 13): its words and links are --accent-deep in both themes */
.qd-lrow.qd-l-adj{ background:color-mix(in srgb, var(--accent) 18%, var(--surface)); color:var(--accent-deep); align-items:start; }
.qd-lrow.qd-l-adj > span:nth-child(2){ color:var(--accent-deep); }
.qd-root .qd-l-adj .q-link{ color:var(--accent-deep); }
.qd-lrow.qd-l-adj .q-input{ height:28px; font-size:13px; width:100%; }
.qd-lrow.qd-l-prop{ color:var(--text-muted); }
.qd-ladj-acts{ display:flex; gap:12px; margin-top:4px; flex-wrap:wrap; }
.qd-terms{ padding:14px 16px 16px 0; overflow:auto; min-height:0; display:grid; grid-template-columns:1fr 1fr; gap:12px; align-content:start; }
.qd-tcard{ border:1px solid var(--border); border-radius:var(--radius-md); padding:12px 14px; display:flex; flex-direction:column; gap:6px; min-width:0; }
.qd-tcard.qd-wide{ grid-column:1 / -1; }
.qd-tcard h3{ margin:0; font:600 14px/20px var(--font); display:flex; align-items:center; gap:8px; }
.qd-tcard p{ margin:0; font-size:13px; line-height:18px; color:var(--text-muted); }
.qd-tcard .qd-big{ font:600 18px/24px var(--font-num); font-variant-numeric:tabular-nums; color:var(--text); }
.qd-tcard .q-field{ flex-direction:row; align-items:center; gap:8px; }
.qd-tcard .q-field .q-input{ width:112px; height:32px; }
.qd-tcard .q-field > div{ min-height:0 !important; }
/* the typed field of the amended rule (QDesk.field): its why stays in words beside or under the box until he types again */
.qd-field-why{ font:500 12px/16px var(--font); color:var(--danger-text, var(--danger)); min-height:16px; flex:1 1 auto; min-width:0; }
.qd-tcard .qd-field .qd-field-why{ min-height:0; }
/* a refusal under a terms card's box takes the place of the card's own line (two lines of 18 px), so the card keeps its height and the cards under it stay where they are */
.qd-fstack{ display:grid; min-height:36px; }
.qd-fstack > *{ grid-area:1 / 1; }
.qd-fstack > .qd-field-why{ font:500 13px/18px var(--font); }
.qd-fstack:has(.qd-field-why:not(:empty)) > p{ visibility:hidden; }
.qd-cmp{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.qd-cmp > div{ border:1px solid var(--border); border-radius:var(--radius-xs); padding:6px 10px; text-align:right; }
.qd-cmp span{ display:block; font:600 11px/14px var(--font); color:var(--text-muted); } .qd-cmp b{ display:block; font:600 15px/22px var(--font-num); font-variant-numeric:tabular-nums; }
.qd-reach{ display:flex; flex-direction:column; gap:12px; }
.qd-reach-top{ display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.qd-reach-row{ display:grid; grid-template-columns:24px minmax(0, 1fr) 96px 150px; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); font-size:14px; line-height:20px; }
.qd-reach-row input{ width:18px; height:18px; accent-color:var(--accent-deep); }
.qd-reach-row .q-num{ font-weight:600; }
/* the row Priced Together, Rounded Once: drawn when the ticked rows do not add up to the selected figure, and held empty at the same height when they do, so the dialog never jumps */
.qd-reach-row.qd-reach-gap, .qd-reach-row.qd-reach-hold{ box-sizing:border-box; height:38px; }
.qd-reach-row.qd-reach-gap{ color:var(--text-muted); }
.qd-reach-row.qd-reach-hold{ visibility:hidden; }
.qd-reach-row .q-info{ flex:none; width:16px; height:16px; font-size:11px; }
.qd-reach-line{ font-size:14px; line-height:24px; padding:10px 12px; border-radius:var(--radius-sm); background:var(--surface-hi); }
.qd-reach-head{ display:grid; grid-template-columns:24px minmax(0, 1fr) 96px 150px; gap:10px; font:600 12px/16px var(--font); color:var(--text-muted); padding-bottom:4px; border-bottom:1px solid var(--border-strong); }

/* ---------- Preview As Client ---------- */
.qd-pac{ position:fixed; inset:0; z-index:var(--layer-dialog); background:color-mix(in srgb, var(--text) 55%, transparent); display:flex; flex-direction:column; }
.qd-pac-bar{ flex:none; height:56px; display:flex; align-items:center; gap:14px; padding:0 24px; background:var(--surface); border-bottom:1px solid var(--border); color:var(--text); }
.qd-pac-bar b{ font:600 15px/22px var(--font); }
.qd-pac-stage{ flex:1 1 auto; min-height:0; overflow:auto; display:flex; justify-content:center; padding:24px; }
.qd-pac-frame{ flex:none; transform-origin:top center; background:var(--surface); border-radius:12px; box-shadow:var(--elev-3); overflow:hidden; }
.qd-pac-calm{ height:520px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--text-muted); text-align:center; padding:40px; }
.qd-pac-calm b{ font:650 22px/28px var(--font); color:var(--text); }
.qd-calm{ height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--text-muted); text-align:center; padding:40px; }
.qd-calm b{ font:650 18px/26px var(--font); color:var(--text); }

@media (prefers-reduced-motion: reduce){ .qd-root *, .qd-g-mark{ transition:none !important; animation:none !important; } }
/* Check The Job under the tracker (card P4101; spec 6.4): a warning card for Cost Not Known and for the prices a DIY project does not have yet, the From Setup tag, an inline price */
.qd-card-warn > header{ background:var(--warn-soft); color:var(--warn-ink); border-bottom-color:var(--warn-edge, var(--warn)); }
.qd-card-warn{ border-color:var(--warn-edge, var(--warn)); }
.qd-fromsetup{ height:22px; padding:0 8px; font-weight:500; color:var(--text-muted); }
.qd-pricerow .qd-acts{ flex-wrap:nowrap; }
.qd-addprice{ flex-direction:row !important; align-items:center; gap:6px; }
.qd-addprice > span{ font:600 12px/16px var(--font); color:var(--text-muted); white-space:nowrap; }
.qd-addprice .q-input{ width:112px; height:28px; }
.qd-addprice > .q-fine{ display:none; }
.qd-fixcost{ font-weight:500; opacity:.85; }
/* Activity's Make It A Firm Quote card (card P4101; spec 6.10): what the Budget Estimate left open, each with its fix */
.qd-desk .ql-firm-rows{ width:100%; margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.qd-desk .ql-firm-rows li{ display:flex; justify-content:space-between; gap:12px; font-size:13px; line-height:18px; padding:6px 0; border-bottom:1px solid var(--border); }
.qd-desk .ql-present-lead{ margin-bottom:8px; align-items:center; }
/* Customer Beside Me over Price and Options, and the Proposal's Cash Check (card P4101; DESIGN 6.2: every shop-only figure in the worksheet) */
.qd-wscover{ display:none; position:absolute; inset:0; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; background:var(--surface); border-radius:var(--radius-md); box-shadow:0 0 0 1px var(--border); color:var(--text-muted); font-size:13px; line-height:18px; padding:24px; }
.qd-wscover b{ color:var(--text); font:600 15px/22px var(--font); }
.qd-desk[data-beside][data-cover] .qd-wscover{ display:flex; }
.qd-desk[data-beside][data-cover] .qd-ws{ visibility:hidden; }
.qd-desk[data-beside] .ql-cash{ visibility:hidden; }

/* ---- round 2 of the tracker lane (card P4101; the Opus review of 11/21) ---- */
/* My Own Project: a figure with nothing priced in it reads No Price Yet in the warning ink with the text font, never a zero */
.qd-owntiles .qd-ownnone .qd-tv .q-num{ font:600 17px/24px var(--font); color:var(--text-muted); }
.qd-owntiles .qd-owntile .qd-tc{ min-height:16px; }
.qd-cats.qd-owncats{ grid-template-columns:minmax(0, 1fr) 104px 46px; }
.qd-catv.qd-ownnp{ font-family:var(--font); color:var(--text-muted); }
.qd-ownmiss{ display:flex; align-items:flex-start; gap:6px; margin:0; color:var(--text); }
.qd-ownmiss .q-icon{ color:var(--warn); flex:none; margin-top:2px; }
.qd-amt.qd-amt-np{ font:500 13px/18px var(--font); color:var(--text-muted); text-align:right; }
.qd-amt small{ display:block; font:400 11px/14px var(--font); color:var(--text-muted); text-align:right; }
/* Customer Beside Me on Cost: the grid keeps only the price column, so its totals row is the total price. The row's label is cost.js's ("Total Direct Cost"); while the customer is
   beside him it is replaced here, in the frame that hides the costs, so the customer is never told the shop's cost is the price. */
.qd-desk[data-beside] .qd-gt [data-col="item"] b{ font-size:0; }
.qd-desk[data-beside] .qd-gt [data-col="item"] b::after{ content:"Total Price"; font:600 13px/18px var(--font); }
/* the Project Cost tile is the warning tile while prices are missing: its words take the tile's own ink, which is readable on the tile in both themes (the muted ink is not, in the dark one) */
.qd-owntiles .qd-owntotal.qd-ownnone .qd-tv .q-num{ color:inherit; }
/* W2 of lane quotes-finish-1123 (card P4254): Keep beside a move of the price you set, on the Money Bar's Price label and under the Price step's Price Adjustment. A long name wraps. */
.qd-tl .qd-movekeep{ font:600 12px/16px var(--font); padding:0; height:16px; white-space:nowrap; }
.qd-lrow.qd-l-move > span:first-child{ white-space:normal; overflow-wrap:anywhere; }
.qd-lrow .qd-movekeep{ display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
