/* quote-setup.css: Set Up This Quote and the Pricing Setup sections of lane rw-setup (card P4100; the Fable round of 11/21/2026 after the Opus review). Every selector is under qs-; every color is a token of the theme (no hex, no raw color).
   THE LAYOUT: the worksheet is padded like the Desk's other worksheets. Two columns (the cards, 836; what the picked setup sets, the rest) over ONE bar that spans both.
   A selling setup fills the worksheet with the bar at its foot. My Own Project is short, so there (.qs-own) the first row is only as tall as its content and the bar sits
   right under it, never pinned far below empty columns. A column that is too tall scrolls inside itself. The bar is also the preview band, so a card click moves nothing. */
.qs-ws{display:grid;grid-template-columns:minmax(0,836px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px 20px;width:100%;max-width:1436px;height:100%;min-height:0;padding:12px 16px 8px;box-sizing:border-box}
/* THE TWO TINTS (lane qf-setup, card P4051). shared/theme.css keeps --accent-soft and --warn-soft light in BOTH themes, so in Midnight Oak the page's light --text sat on a
   light fill (1.18 to 1 on a previewed card, the band and the Previewing chip; 1.02 to 1 on the replace line). These two follow the theme instead: the hue mixed into the
   surface, light on Linen Ink and dark on Midnight Oak, the way desk.css draws its frozen band. var(--text), var(--text-muted) and var(--accent-deep) read on them at 4.5 to 1
   or better in both themes (worked out: text 12.5 and 10.3, muted 5.4 and 5.5, accent-deep 5.9 and 6.2 on the preview tint; text 13.3 and 10.7 on the warn tint). The dashed
   accent and the warn border keep the mark, each at 3 to 1 or better against the surface (accent 4.4 and 5.6, warn 3.7 and 7.4). Colors only: nothing changes size. */
.qs-ws{--qs-preview-fill:color-mix(in srgb, var(--accent) 18%, var(--surface));--qs-warn-fill:color-mix(in srgb, var(--warn) 14%, var(--surface))}
.qs-ws.qs-own{grid-template-rows:minmax(0,max-content) auto;align-content:start}
.qs-left,.qs-right{min-height:0;min-width:0;display:flex;flex-direction:column;gap:10px}
/* THE RIGHT COLUMN FITS AT 1920 BY 940 (card P4051): Builder Spec scrolled 25 px and Closet 20 px. The space comes from the rhythm, never from the type: 6 between the two
   sections, a 24 px heading row (its chips are 24), rows padded 2 over and under, receipt rows on the 18 px line the price steps already use (R-14: never tighter than the
   tightest good row on the page), and the per-foot line on that same 18 px line. No font size changes. */
.qs-right{overflow:auto;padding-right:4px;gap:6px}
.qs-head{display:flex;align-items:center;gap:8px;min-height:32px}
.qs-title{margin:0;font-size:var(--type-h2-size);line-height:var(--type-h2-lh);white-space:nowrap}
.qs-project{display:flex;align-items:center;gap:8px 14px;min-height:44px;box-sizing:border-box;padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-hi)}
.qs-project-line{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.qs-project-line b{font-weight:700}
.qs-project-line span{font-size:13px}
.qs-jt-pick{display:flex;align-items:center;gap:6px;flex:none}
.qs-jt-pick .q-select{height:30px}
.qs-units{display:flex;align-items:center;gap:6px;flex:none}
.qs-units .q-field{position:relative;flex-direction:row;align-items:center;gap:6px}
.qs-units .q-field .q-input{width:72px;height:30px}
.qs-units .q-field > div{position:absolute;top:calc(100% + 4px);right:0;min-height:0 !important;white-space:nowrap;z-index:var(--layer-step-3);background:var(--surface);border-radius:var(--radius-sm)}
.qs-units .q-field > div:not(:empty){padding:2px 6px;box-shadow:0 0 0 1px var(--danger)}
/* the progress list: one quiet line at the heading's right; a tick per phrase done, the words of the one being worked */
.qs-progress{margin-left:auto;min-width:0}
.qs-progress ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:6px;white-space:nowrap}
.qs-progress li{display:inline-flex;align-items:center;gap:6px;color:var(--text-muted);font-size:var(--type-fine-size)}
.qs-progress li i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;border:1px solid var(--border-strong);color:transparent}
.qs-progress li.qs-done i{border-color:var(--ok);background:var(--ok-soft);color:var(--ok)}
.qs-progress li.qs-now i{border-color:var(--accent)}
.qs-progress li span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.qs-progress li.qs-now span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;color:var(--text);font-weight:600}
/* the cards: two columns of 412 by 128. Only a setup is a card (his item 1, lane q1125-his-six): Manage Setups And Rates and Show Selling Setups are buttons in their own row under the grid. */
.qs-cards{display:grid;grid-template-columns:repeat(2,minmax(0,412px));grid-auto-rows:minmax(128px,168px);gap:12px;overflow:auto;min-height:0;flex:1 1 auto;align-content:start;padding:3px;margin:-3px}
.qs-own .qs-cards{grid-auto-rows:minmax(128px,auto)}
.qs-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;text-align:left;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);cursor:pointer;font:inherit;min-width:0}
.qs-card:hover{border-color:var(--border-strong)}
.qs-card:focus-visible,.qs-default-pick:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the manage row: a plain row of bordered buttons under the last card, spanning both columns, with no card border */
.qs-manage-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:none;padding:2px 0 0}
.qs-card-applied{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.qs-card-preview{border:1px dashed var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--qs-preview-fill)}
.qs-card[aria-disabled="true"]{cursor:default}
.qs-card-top{display:flex;align-items:flex-start;gap:8px}
.qs-card-name{font-weight:700;flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
.qs-card-mark{display:inline-flex;align-items:center;gap:4px;flex:none;font-size:var(--type-fine-size);font-weight:600;white-space:nowrap}
.qs-applied-mark{color:var(--text)}
.qs-preview-mark{color:var(--accent-deep)}
.qs-card-chips{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.qs-card-sum{white-space:normal;overflow-wrap:anywhere}
/* a changed choice: the words in --warn-text (--warn-ink on Linen Ink, the amber made for words on dark in Midnight Oak, as desk.css .qd-setupchanged reads it); --warn itself
   is 3.7 to 1 on the light surface, too low for words. The chip keeps the amber in its border and the warn tint. */
.qs-changed{border-color:var(--warn);background:var(--qs-warn-fill);color:var(--warn-text)}
/* the right column: What This Setup Sets, then What Your Customer Sees */
.qs-h{display:flex;align-items:center;gap:8px;margin:0 0 2px;font-size:inherit;font-weight:700;min-height:24px}
.qs-previewing{border-style:dashed;border-color:var(--accent);background:var(--qs-preview-fill)}
.qs-rows{margin:0;display:flex;flex-direction:column;border-top:1px solid var(--border-strong)}
.qs-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:2px 10px;align-items:start;padding:2px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:18px}
.qs-row dt{display:flex;align-items:center;gap:6px;color:var(--text-muted);min-width:0;white-space:nowrap}
.qs-row dt .q-info{width:16px;height:16px}
.qs-row dd{margin:0;display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;min-width:0}
.qs-row-stack{grid-template-columns:minmax(0,1fr)}
.qs-row-tape dd{display:contents}
.qs-row-tape .qs-tape,.qs-row-tape .qs-terms-more,.qs-row-tape .qs-rate-links{grid-column:1 / -1}
/* his item 2: under the tape, the two buttons to the rates (the card, for every quote that uses it; this job only) */
.qs-rate-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0 2px}
.qs-job-only{height:20px;padding:0 8px;font-size:11px}
.qs-row-changed dt{color:var(--warn-text)}
.qs-val{overflow-wrap:anywhere;flex:1 1 auto;min-width:0}
.qs-val-strong{font-weight:600}
.qs-terms-more{flex:1 1 100%}
.qs-price{font-weight:700;white-space:nowrap}
.qs-changed-word{color:var(--warn-text);white-space:nowrap}
/* S07 of the three-seat review (11/21/2026): a changed key wraps, and "Changed For This Job" takes its own line under the key, so it never overprints the value beside it */
.qs-row-changed dt{flex-wrap:wrap;white-space:normal;row-gap:0}
.qs-row-changed dt>span:first-child{white-space:nowrap}
.qs-row-changed dt .qs-changed-word{flex-basis:100%}
/* the price as arithmetic: an operator, the words, the amount; the price under a rule */
.qs-tape{flex:1 1 100%;display:flex;flex-direction:column;padding:2px 10px;border-radius:var(--radius-sm);background:var(--surface-hi)}
.qs-tape-row{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:6px;align-items:center;line-height:18px}
.qs-tape .q-info{width:15px;height:15px}
.qs-op{color:var(--text-muted);font-weight:600;text-align:center}
.qs-tape-w{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.qs-tape-total{border-top:1px solid var(--border-strong);margin-top:2px;padding-top:2px;font-weight:700}
/* the rows as controls (Change It For This Job Only): a control sits under its label at the row's full width, and a row of choices wraps before it is ever cut */
.qs-editing .qs-row{padding:8px 0 10px;font-size:14px;line-height:20px}
.qs-editing .qs-row dt{color:var(--text);font-weight:700}
.qs-editing .qs-row dd{gap:8px 12px;align-items:flex-start}
.qs-ws .q-seg{flex-wrap:wrap;max-width:100%}
.qs-f{display:flex;flex-direction:column;gap:4px;flex:1 1 100%;min-width:0}
.qs-f-l{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-muted)}
.qs-f > .q-seg{align-self:flex-start}
.qs-f .q-select{width:100%}
.qs-f-inline{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;flex:1 1 calc(50% - 6px);min-height:32px}
.qs-f-third{flex:1 1 calc(33.333% - 8px)}
.qs-f-third .q-field > div{min-height:0 !important}
.qs-f-third .q-seg button{padding:0 10px}
.qs-thirds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.qs-thirds .q-field > div{min-height:0 !important}
.qs-rules{display:flex;flex-direction:column;gap:6px}
.qs-rule{display:grid;grid-template-columns:132px minmax(0,1fr);gap:8px;align-items:center}
.qs-rule-name{display:flex;align-items:center;gap:6px;color:var(--text)}
.qs-rule .q-seg{justify-self:start}
.qs-scope{gap:0}
.qs-scope-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:4px 0;border-top:1px solid var(--border)}
.qs-scope-row:first-child{border-top:0;padding-top:0}
.qs-scope-name{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.qs-scope-row .q-seg button{padding:0 9px;height:30px}
.qs-ctl-row{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.qs-ctl-row .q-select{width:auto;flex:1 1 200px;min-width:0}
/* What Your Customer Sees: a small receipt whose rows add up to its total */
.qs-receipt .qs-h{margin-bottom:2px}
.qs-preview-btn{margin-left:auto}
.qs-paper{display:flex;flex-direction:column;gap:2px;padding:3px 12px;font-size:13px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-hi)}
.qs-rtable{width:100%;border-collapse:collapse}
.qs-rtable td{padding:0;line-height:18px;vertical-align:top}
.qs-perfoot{line-height:18px}
.qs-rtable td + td{text-align:right;white-space:nowrap;padding-left:12px}
.qs-rtotal td{font-weight:700;border-top:1px solid var(--border-strong)}
/* the bar: the setup's own actions and Use This Setup; with a card previewed it is the band */
.qs-bar{grid-column:1 / -1;display:flex;align-items:center;gap:12px 20px;min-height:52px;padding:5px 12px;box-sizing:border-box;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-hi)}
.qs-bar-preview{border:1px dashed var(--accent);background:var(--qs-preview-fill)}
.qs-bar-left{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
.qs-bar-right{display:flex;align-items:center;gap:8px;flex:none}
.qs-bar-note{overflow-wrap:anywhere}
.qs-band{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;min-width:0;line-height:20px}
.qs-band-words{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.qs-band-price{white-space:nowrap}
.qs-replace{display:flex;align-items:flex-start;gap:8px;padding:6px 10px;border:1px solid var(--warn);border-radius:var(--radius-sm);background:var(--qs-warn-fill);color:var(--text);font-size:13px;line-height:18px}
.qs-replace .q-icon{color:var(--warn);margin-top:2px}
.qs-sent{display:flex;align-items:center;gap:8px;font-weight:600}
/* Make Default (his item 6): one bordered button per target whose label is the whole action; a target that already is the default is the same button drawn off, with a check */
.qs-default-set{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.qs-default-pick{gap:8px;white-space:normal;text-align:left;height:auto;min-height:36px;padding-top:4px;padding-bottom:4px}
.qs-gray{cursor:default;border-style:dashed;background:transparent;color:var(--text-muted)}
.qs-gray:hover{background:transparent;border-color:var(--border)}
.qs-undo{margin-left:10px}
.qs-none{display:flex;flex-direction:column;gap:12px;align-items:flex-start;padding:24px}
.qs-dlg{display:flex;flex-direction:column;gap:10px}
/* Who Do You Build For? (project.js) */
.qs-who{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.qs-who-pick{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:18px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;min-height:120px}
.qs-who-pick:hover,.qs-who-pick:focus-visible{border-color:var(--accent);outline:none;box-shadow:0 0 0 2px var(--accent)}
.qs-who-name{font-weight:700;font-size:var(--type-h2-size)}
/* Pricing Setup: Quote Setups, How You Measure And Rate, For Myself (setup.js) */
.qs-setsec{display:flex;flex-direction:column;gap:12px}
.qs-table{width:100%;border-collapse:collapse}
.qs-table th,.qs-table td{text-align:left;padding:6px 8px;border-top:1px solid var(--border);vertical-align:middle}
.qs-table th{color:var(--text-muted);font-weight:600}
.qs-setcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qs-setcard{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.qs-samplejob{border-color:var(--accent)}
.qs-moves{color:var(--text-muted)}
.qs-nym{opacity:.55;cursor:default}
/* his item 3: the way back, first on Pricing Setup, top left above the title */
.qs-back-row{display:flex;align-items:center;margin-bottom:10px}
/* his items 2, 4 and 5 on Pricing Setup: a sentence at body size (14 on 20, the page's own text, never the fine size), a card's heading row, its one line, its Used By line and its actions */
.qs-body-line{margin:0;font-size:14px;line-height:20px;color:var(--text)}
.qs-setcard-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.qs-setcard-head .q-h{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.qs-setcard-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.qs-ratecard:target,.qs-ratecard[data-here="1"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.qs-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px;border:1px dashed var(--border-strong);border-radius:var(--radius-md)}
.qs-empty a{color:var(--accent-deep);font-weight:600}
/* the setup editor (his items 4 and 5): a dialog with the same seven groups of controls Set Up This Quote uses */
.qs-editor{display:flex;flex-direction:column;gap:12px}
.qs-editor-head{display:grid;grid-template-columns:minmax(0,1fr) 200px 180px;gap:10px;align-items:end}
.qs-editor-head .q-field .q-input,.qs-editor-head .q-field .q-select{width:100%}
.qs-editor .q-seg{flex-wrap:wrap;max-width:100%}
.qs-editor .qs-rows{border-top:1px solid var(--border-strong)}
.qs-editor .qs-row{grid-template-columns:minmax(0,1fr)}
.qs-cat-rule{display:flex;flex-wrap:wrap;gap:6px 14px}
.qs-cat-rule label{display:inline-flex;align-items:center;gap:6px;font-size:14px;line-height:20px}
/* THE CATEGORIES OF A RATE CARD (the fix round on his six, 11/25/2026). Each row: its name, what it catches, its rate, then Edit and Remove; the rate box keeps one width so the four
   columns line up down the card, and its empty refusal line takes no room. */
.qs-ratecard .qs-table td.qs-cat-rate{width:132px}
.qs-ratecard .qs-table td.qs-cat-rate .q-input{width:120px}
.qs-ratecard .qs-table td.qs-cat-rate .q-field > div:empty{min-height:0 !important}
.qs-ratecard .qs-table td.qs-cat-acts{width:1%;white-space:nowrap}
.qs-cat-acts .qs-setcard-acts{flex-wrap:nowrap;justify-content:flex-end;gap:6px}
/* the open quote keeps the card as it was: one line and the button that takes the card as it is now, in the warn tint (the hue mixed into the surface, so the page's text reads on it in
   both themes), on the rate card in Pricing Setup (.qs-hold) and under the rate buttons on Set Up This Quote (.qs-rate-held) */
.qs-hold,.qs-rate-held{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 10px;border:1px solid var(--warn);border-radius:var(--radius-sm);background:color-mix(in srgb, var(--warn) 14%, var(--surface));color:var(--text);font-size:14px;line-height:20px}
.qs-hold-words,.qs-rate-held-words{display:inline-flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;font-weight:600}
.qs-hold-words .q-icon,.qs-rate-held-words .q-icon{color:var(--warn-text, var(--warn));flex:none}
.qs-rate-held{flex:1 1 100%}
/* the Add A Category and Edit dialog: the name, then the room and the place side by side, the types, what it catches in words, the rate, the one line, and the refusal in its own line */
.qs-catdlg .q-field .q-input,.qs-catdlg .q-field .q-select{width:100%}
.qs-cat-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.qs-cat-label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-muted)}
.qs-cat-line{display:flex;align-items:center;gap:6px}
.qs-cat-catches{font-weight:600}
.qs-cat-why{margin:0;padding:8px 10px;border:1px solid var(--danger);border-radius:var(--radius-sm);background:color-mix(in srgb, var(--danger) 12%, var(--surface));color:var(--text);font-size:14px;line-height:20px;font-weight:600}
.qs-cat-why:empty{display:none}
