/* ============================================================================
   Quick Quote v2 (#/quick-quote) — one screen: input strip, Good·Better·Best
   comparison grid (photo + per-column pickers + specs/costs), Add-ons &
   Accessories collapsible pickers, sticky dock, See-cost-lines + Import slide-
   overs. Scoped under .qq. Uses ProAirs design-system tokens (design-system.css).
   grep: qq-, ModuloQuickQuote, cmp, picker.
   ============================================================================ */
.qq {
  --navy: var(--ds-accent, #1E2E56); --steel: #5E7F9F; --leaf: var(--ds-good, #46663A); --leaf-bg: var(--ds-good-bg, #E8F0E1);
  --brick: var(--ds-bad, #B23A32); --brass: #C9A13F; --brass-bg: #F6EDD6; --amber: var(--ds-warn, #8F5B0C);
  --surface: var(--ds-surface, #fff); --raised: var(--ds-raised, #E4EBF1); --raised-2: #D9E2EA;
  --line: var(--ds-line, #D5DBE3); --ink: var(--ds-ink, #141C33); --ink-2: var(--ds-ink-2, #4D586E); --ink-3: var(--ds-ink-3, #6b7489);
  --ui: var(--ds-font-ui, "Archivo", system-ui, sans-serif);
  --shadow-sm: var(--ds-shadow-sm, 0 1px 2px rgba(30,46,86,.06));
  --shadow-lg: var(--ds-shadow-lg, 0 18px 40px -22px rgba(30,46,86,.32));
  --ease: cubic-bezier(.32,.72,0,1);
  color: var(--ink); padding-bottom: 96px;
}
.qq *, .qq *::before, .qq *::after { box-sizing: border-box; }

/* header */
.qq .qq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.qq h1 { font-family: var(--ds-font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.qq .sub { color: var(--ink-2); font-size: 13px; margin: 0; max-width: 62ch; line-height: 1.5; }
.qq .qq-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qq .qq-tbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.qq .qq-costmeta { font-size: 11.5px; color: var(--ink-3); text-align: right; line-height: 1.6; }
.qq .btn2 { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 15px; font: 600 12.5px var(--ui);
  background: var(--surface); color: var(--ink); border: 1px solid var(--steel); cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.qq .btn2:hover { background: var(--raised); border-color: var(--navy); }
.qq .btn2:active { transform: scale(.97); }
.qq .btn2.ghost { background: var(--surface); }
.qq .btn2 svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.qq .qq-reopen { background: var(--ds-accent-soft); color: var(--navy); border-radius: 12px; padding: 9px 14px; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }

/* double-bezel tray + plates */
.qq .qq-tray { background: rgba(30,46,86,.05); border: 1px solid rgba(30,46,86,.08); border-radius: 24px; padding: 6px; }
.qq .qq-plate { background: var(--surface); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-sm); }
.qq .qq-plate + .qq-plate, .qq .qq-tray .pickers { margin-top: 8px; }

/* input strip */
.qq .qq-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; padding: 18px 20px; }
.qq .qq-in { min-width: 0; }
.qq .qq-in > label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.qq .qq-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.45; }
.qq .qq-steppers { display: flex; gap: 14px; align-items: flex-end; }
.qq .qq-k { font-size: 11px; color: var(--ink-3); display: block; margin-bottom: 5px; }
.qq .qq-xs { align-self: center; color: var(--ink-3); padding: 0 2px 6px; }
.qq .srow { display: inline-flex; align-items: center; border: 1px solid var(--steel); border-radius: 10px; overflow: hidden; }
.qq .srow button { width: 32px; height: 34px; border: 0; background: var(--raised); color: var(--ink); font-size: 17px; cursor: pointer; transition: background .2s var(--ease); }
.qq .srow button:hover { background: var(--raised-2); }
.qq .srow .v { width: 48px; text-align: center; font: 600 15px var(--ui); font-variant-numeric: tabular-nums; }

.qq .selin { width: 100%; border: 1.5px solid var(--brick); border-radius: 10px; padding: 8px 32px 8px 10px; font: 500 14px var(--ui); color: var(--brick);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B23A32' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  appearance: none; -webkit-appearance: none; transition: box-shadow .2s var(--ease); }
.qq .selin.quiet { border-color: var(--steel); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235E7F9F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.qq .selin:hover { box-shadow: 0 0 0 3px rgba(178,58,50,.10); }
.qq .selin.quiet:hover { box-shadow: 0 0 0 3px rgba(94,127,159,.16); }
.qq .selin:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.qq .numin { width: 100%; border: 1px solid var(--steel); border-radius: 10px; padding: 8px 10px; font: 500 14px var(--ui); color: var(--ink); background: var(--surface); }

/* comparison grid */
.qq .qq-cmp-wrap { overflow-x: auto; }
.qq table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; font-size: 14px; }
.qq .cmp th, .qq .cmp td { padding: 9px 12px; text-align: left; vertical-align: middle; }
.qq .cmp thead th { background: var(--navy); color: #fff; font-weight: 700; padding: 14px 12px 12px; vertical-align: bottom; }
.qq .cmp thead th:first-child { background: transparent; }
.qq .cmp thead th.tier { border-left: 1px solid rgba(255,255,255,.14); }
.qq .cmp thead th.tier:first-of-type { border-left: 0; border-radius: 18px 0 0 0; }
.qq .cmp thead th:last-child { border-radius: 0 18px 0 0; }
.qq .cmp thead th.tier.lead { background: #26396A; box-shadow: inset 0 -3px 0 var(--brass); }
.qq .photo { height: 112px; border-radius: 12px; background: #F3F6F9; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(30,46,86,.08); }
.qq .photo img { width: 100%; height: 100%; object-fit: contain; }
.qq .photo svg { width: 120px; height: 80px; }
.qq .tierline { display: flex; align-items: center; gap: 9px; }
.qq .tierline .name { font-size: 15px; font-weight: 700; }
.qq .tierline small { display: block; font-size: 11px; font-weight: 500; color: #A9C1D8; }
.qq .cmp thead th.tier.lead small { color: var(--brass); }
.qq .cmp tbody th { font-weight: 500; color: var(--ink-2); font-size: 13.5px; width: 210px; background: var(--surface); }
.qq .cmp tbody td { background: var(--raised); border-bottom: 1px solid #fff; }
.qq .cmp tbody td.leadcol { background: #DCE5EE; }
.qq .cmp tbody td:nth-child(2) { border-left: 2px solid #fff; }
.qq .cmp tr.gap td, .qq .cmp tr.gap th { height: 12px; padding: 0; background: var(--surface); border: 0; }
.qq .cmp tr.in td { background: var(--surface); padding-top: 6px; padding-bottom: 6px; }
.qq .cmp tr.in td.leadcol { background: #F1F5F9; }
.qq .cmp b.model { font-weight: 700; }
.qq .cmp .muted { color: var(--ink-3); font-weight: 400; }
.qq .cmp .desc { display: block; font-size: 12.5px; color: var(--ink-2); }
.qq .cmp tr.money td { font-variant-numeric: tabular-nums; }
.qq .cmp tr.total th, .qq .cmp tr.total td { font-weight: 700; background: var(--raised-2); }
.qq .cmp tr.price th { background: var(--navy); color: #fff; border-radius: 0 0 0 18px; }
.qq .cmp tr.price td { background: var(--navy); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; border-bottom: 0; }
.qq .cmp tr.price td:last-child { border-radius: 0 0 18px 0; }
.qq .cmp tr.price td small { display: block; font-size: 11px; font-weight: 500; color: #A9C1D8; letter-spacing: 0; }
.qq .cmp tr.margin td { color: var(--leaf); font-weight: 600; }
.qq .cmp tr.margin .low { color: var(--brick); }
.qq .cmp .selin { font-size: 13.5px; padding: 7px 28px 7px 9px; }
.qq .radio { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.qq .radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qq .radio .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; flex: 0 0 18px; transition: border-color .2s var(--ease); }
.qq .radio .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); transform: scale(0); transition: transform .3s var(--ease); }
.qq .radio input:checked + .dot { border-color: var(--brass); }
.qq .radio input:checked + .dot::after { transform: scale(1); }
.qq .radio input:focus-visible + .dot { outline: 2px solid var(--brass); outline-offset: 2px; }

/* collapsible pickers */
.qq .pickers { display: grid; gap: 12px; }
.qq .picker { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.qq .picker.open { border-color: var(--steel); box-shadow: 0 10px 28px -20px rgba(30,46,86,.35); }
.qq .phead { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; background: transparent; border: 0; text-align: left; color: var(--ink); cursor: pointer; }
.qq .phead:hover { background: var(--raised); }
.qq .ptitle { font-size: 15px; font-weight: 700; }
.qq .pdesc { font-size: 12px; color: var(--ink-3); }
.qq .pcount { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--raised); border-radius: 999px; padding: 4px 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qq .picker.open .pcount { background: var(--brass-bg); color: var(--amber); }
.qq .box { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--steel); display: grid; place-items: center; background: var(--surface); transition: background .2s var(--ease), border-color .2s var(--ease); }
.qq .box svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--ease) .05s; }
.qq .phead.on > .box, .qq .addon.on > .box { background: var(--navy); border-color: var(--navy); }
.qq .phead.on > .box svg, .qq .addon.on > .box svg { stroke-dashoffset: 0; }
.qq .chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .35s var(--ease); flex: 0 0 18px; }
.qq .picker.open .chev { transform: rotate(180deg); }
.qq .pbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.qq .picker.open .pbody { grid-template-rows: 1fr; }
.qq .pbody > div { overflow: hidden; }
.qq .pinner { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.qq .addons, .qq .accs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; }
.qq .addon { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px 12px; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.qq .addon:hover, .qq .acc:hover { border-color: var(--steel); }
.qq .addon:active, .qq .acc:active { transform: scale(.985); }
.qq .addon.on, .qq .acc.on { border-color: var(--navy); background: rgba(94,127,159,.14); }
.qq .addon .box { width: 18px; height: 18px; flex-basis: 18px; border-radius: 6px; }
.qq .addon .box svg { width: 11px; height: 11px; }
.qq .nm { font-size: 13px; flex: 1; font-weight: 500; min-width: 0; }
.qq .ct { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qq .acc { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 9px 12px; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.qq .pt { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--steel); display: grid; place-items: center; background: var(--surface); transition: border-color .2s var(--ease); }
.qq .pt::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .3s var(--ease); }
.qq .acc.on .pt { border-color: var(--navy); }
.qq .acc.on .pt::after { transform: scale(1); }
.qq .acc .an { font-size: 13px; font-weight: 500; display: block; }
.qq .acc .ad { font-size: 11px; color: var(--ink-3); display: block; }
.qq .acc .txt { flex: 1; min-width: 0; }
.qq .pick { border: 1px solid var(--steel); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 12px var(--ui); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.qq .pick:hover { background: var(--raised); }
.qq .pick:active { transform: scale(.95); }
.qq .rm { border: 0; background: transparent; color: var(--ink-3); font-size: 16px; padding: 0 2px; line-height: 1; cursor: pointer; }
.qq .rm:hover { color: var(--brick); }
.qq .other { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.qq .other .numin { padding: 7px 10px; font-size: 13px; }
.qq .other-lab { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); font-weight: 600; margin-bottom: -2px; }
.qq .picker.open .stag { animation: qq-stag .4s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes qq-stag { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* sticky dock */
.qq .qq-dock { position: sticky; bottom: 12px; z-index: 30; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: 18px; padding: 12px 18px; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08); }
.qq .qq-dock-info { font-size: 13px; }
.qq .qq-dock-info b { font-weight: 700; }
.qq .qq-dock-info .dim { color: #A9C1D8; }
.qq .qq-dock-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.qq .btn { border: 0; border-radius: 999px; padding: 10px 16px; font: 600 13px var(--ui); cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); text-decoration: none; display: inline-flex; align-items: center; }
.qq .btn:active { transform: scale(.97); }
.qq .btn.brass { background: var(--brass); color: #121C38; }
.qq .btn.brass:hover { background: #D5AE50; }
.qq .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(169,193,216,.6); }
.qq .btn.ghost:hover { background: rgba(169,193,216,.14); }
.qq .btn:disabled { opacity: .55; cursor: not-allowed; }

/* slide-overs (cost lines + import) */
.qq .qq-slide-bd { position: fixed; inset: 0; z-index: 60; background: rgba(20,28,51,.38); display: flex; justify-content: flex-end; }
.qq .qq-slide { width: min(580px, 96vw); background: var(--surface); height: 100%; overflow: auto; padding: 22px 24px 40px; box-shadow: -20px 0 50px -24px rgba(30,46,86,.5); }
.qq .qq-slide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.qq .qq-slide h2 { font-family: var(--ds-font-display); font-size: 18px; font-weight: 700; margin: 0; }
.qq .qq-slide h3 { font-size: 13px; font-weight: 700; margin: 22px 0 6px; }
.qq .qq-slide .sub2, .qq .sub2 { font-size: 12px; color: var(--ink-3); margin: 0 0 14px; }
.qq .qq-x { border: 0; background: var(--raised); color: var(--ink); width: 32px; height: 32px; border-radius: 10px; font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.qq .qq-slide table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qq .qq-slide th { text-align: left; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.qq .qq-slide td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.qq .qq-slide td.num, .qq .qq-slide th.num { text-align: right; font-variant-numeric: tabular-nums; }
.qq .qq-slide .ref { font-size: 11px; color: var(--ink-3); }
.qq .qq-slide tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--steel); }
.qq .qq-slide tfoot tr.price td { font-family: var(--ds-font-display); font-size: 16px; }
.qq .m-ok { color: var(--leaf); } .qq .m-bad { color: var(--brick); }
.qq .qq-slide-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.qq .cols { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; padding-left: 18px; }
.qq .cols li { margin: 3px 0; } .qq .cols code { font: 11.5px var(--ds-font-mono, ui-monospace, monospace); color: var(--navy); }
.qq .drop { border: 1.5px dashed var(--steel); border-radius: 16px; padding: 18px; background: var(--raised); display: grid; gap: 10px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.qq .drop.over { border-color: var(--brass); background: var(--brass-bg); }
.qq .drop-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qq .drop-row input[type=file] { font-size: 12px; max-width: 100%; }

/* source tags */
.qq .src { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.qq .src-pb { background: rgba(94,127,159,.16); color: #35506b; }
.qq .src-imp { background: var(--ds-bad-bg, #F6E6E4); color: var(--brick); }
.qq .src-crew { background: var(--leaf-bg); color: var(--leaf); }
.qq .src-set { background: var(--raised); color: var(--ink-3); }
.qq .src-acc { background: var(--brass-bg); color: var(--amber); }

.qq .qq-empty { color: var(--ink-3); padding: 40px 10px; text-align: center; }

/* ---- Settings ------------------------------------------------------------- */
.qq .qq-set-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.qq .qq-set-link:hover { text-decoration: underline; }
.qq .qq-back { display: inline-block; color: var(--navy); font-size: 12.5px; font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.qq .qq-back:hover { text-decoration: underline; }
.qq .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.qq .qq-set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; align-items: start; }
.qq .qq-settings .panel h2, .qq .qq-matchups h2 { font-family: var(--ds-font-display); font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.qq .qq-set-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.qq .qq-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.qq .qq-set-row > span:first-child { min-width: 0; }
.qq .qq-set-sep { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-top: 6px; }
.qq .qq-inwrap { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--steel); border-radius: 9px; padding: 0 8px; background: var(--surface); flex: 0 0 auto; }
.qq .qq-inwrap i { font-style: normal; color: var(--ink-3); font-size: 12px; }
.qq .qq-inwrap input { border: 0; outline: 0; background: transparent; width: 68px; text-align: right; font: 500 14px var(--ui); color: var(--ink); padding: 7px 0; font-variant-numeric: tabular-nums; }
.qq .qq-inwrap input:disabled { color: var(--ink-3); }
.qq .qq-inwrap.sm input { width: 54px; }
.qq .qq-set-row select, .qq .qq-addset select, .qq .tag-in { border: 1px solid var(--steel); border-radius: 9px; padding: 7px 8px; font: 500 13px var(--ui); color: var(--ink); background: var(--surface); }
.qq .tag-in { width: 220px; max-width: 55%; text-align: left; }
.qq .qq-save { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font: 600 13px var(--ui); cursor: pointer; }
.qq .qq-save:hover { background: #121C38; }
.qq .qq-save.sm { padding: 6px 12px; font-size: 12px; }
.qq .qq-add { background: var(--surface); color: var(--ink); border: 1px dashed var(--steel); border-radius: 999px; padding: 8px 14px; font: 600 12.5px var(--ui); cursor: pointer; margin-right: 8px; }
.qq .qq-add:hover { border-color: var(--navy); color: var(--navy); }
.qq .qq-add.has { box-shadow: inset 0 0 0 1px var(--leaf); color: var(--leaf); }
.qq .qq-add.xs { font-size: 12px; padding: 4px 9px; }

/* item rows (add-ons / accessories editor) + permits */
.qq .qq-item-row, .qq .qq-permit-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.qq .qq-item-row .it-name, .qq .qq-permit-row .pm-name { flex: 1; min-width: 120px; border: 1px solid var(--steel); border-radius: 9px; padding: 7px 10px; font: 500 13px var(--ui); color: var(--ink); background: var(--surface); }
.qq .it-fee, .qq .it-active { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.qq .it-fee input, .qq .it-active input { width: 16px; height: 16px; accent-color: var(--navy); }
.qq .ex-del, .qq .pm-del { border: 0; background: var(--raised); color: var(--ink-2); width: 30px; height: 30px; border-radius: 9px; font-size: 16px; cursor: pointer; flex: 0 0 auto; }
.qq .ex-del:hover, .qq .pm-del:hover { background: var(--ds-bad-bg); color: var(--brick); }

/* matchups editor */
.qq .qq-addset { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.qq .qq-mgroup { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.qq .qq-mgroup-h { font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 10px; }
.qq .qq-mrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.qq .qq-mrow:first-of-type { border-top: 0; }
.qq .qq-mrow-tier { flex: 0 0 56px; font-weight: 700; font-size: 12.5px; color: var(--ink-2); padding-top: 8px; }
.qq .qq-mrow-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 7px; align-items: center; }
.qq .qq-mrow-fields input:not([type]), .qq .qq-mrow-fields input[type="text"] { border: 1px solid var(--steel); border-radius: 9px; padding: 7px 9px; font: 500 12.5px var(--ui); color: var(--ink); background: var(--surface); min-width: 0; }
.qq .qq-mrow-fields .m-outd, .qq .qq-mrow-fields .m-ind, .qq .qq-mrow-fields .m-heat { grid-column: 1 / -1; }
.qq .qq-mrow-fields .m-active { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.qq .qq-mrow-fields .m-active input { width: 16px; height: 16px; accent-color: var(--navy); }
.qq .qq-mmedia { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; border: 1px dashed transparent; border-radius: 10px; padding: 4px; transition: border-color .15s, background .15s; }
.qq .qq-mmedia.drag { border-color: var(--brass); background: var(--ds-accent-soft); }
.qq .qq-mthumb { width: 54px; height: 54px; border-radius: 8px; background: var(--raised); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.qq .qq-mthumb img { width: 100%; height: 100%; object-fit: cover; }
.qq .qq-mmedia-ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qq .qq-msource { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 8px; }
.qq .qq-msource.s-manual { background: var(--ds-accent-soft); color: var(--navy); }
.qq .qq-msource.s-csv { background: var(--leaf-bg); color: var(--leaf); }
.qq .qq-msource.s-seed { background: var(--raised); color: var(--ink-3); }
.qq .qq-mbroch { font-size: 12px; color: var(--navy); text-decoration: none; }
.qq .qq-mphoto-none { font-size: 11.5px; color: var(--ink-3); }

/* matchups CSV import (settings) */
.qq .qq-import { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 0 14px; }
.qq .qq-import .hint { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.qq .qq-import code { background: var(--raised); padding: 1px 5px; border-radius: 5px; font-size: 11px; font-family: var(--ds-font-mono, monospace); }
.qq .qq-import-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qq .qq-import-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.qq .qq-import-files { display: flex; flex-wrap: wrap; gap: 6px; }
.qq .qq-filechip { font-size: 12px; background: var(--raised); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.qq .qq-preview-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.qq .qq-preview-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qq .qq-preview-counts .pc { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 11px; }
.qq .pc.new { background: var(--leaf-bg); color: var(--leaf); }
.qq .pc.upd { background: var(--ds-accent-soft); color: var(--navy); }
.qq .pc.skip { background: var(--raised); color: var(--ink-2); }
.qq .pc.err { background: var(--ds-bad-bg); color: var(--brick); }
.qq .qq-preview-total { font-size: 12.5px; color: var(--ink-3); }
.qq .qq-preview-errors { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--brick); max-height: 160px; overflow: auto; }

/* Send-to-HCP modal */
.qq .qq-modal-bd { align-items: flex-start; justify-content: center; }
.qq .qq-modal { width: min(560px, 94vw); margin-top: 6vh; background: var(--surface); border-radius: 20px; padding: 22px 24px 24px; box-shadow: var(--shadow-lg); max-height: 88vh; overflow: auto; }
.qq .qq-modal h2 { font-family: var(--ds-font-display); font-size: 18px; font-weight: 700; margin: 0; }
.qq .qq-test { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); background: var(--ds-warn-bg); border-radius: 12px; padding: 10px 14px; margin: 4px 0 14px; }
.qq .qq-test input { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 1px; flex: 0 0 auto; }
.qq .qq-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.qq .qq-mfield { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.qq .qq-mfield.wide { grid-column: 1 / -1; }
.qq .qq-mfield label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.qq .qq-mfield input, .qq .qq-mfield select { border: 1px solid var(--steel); border-radius: 9px; padding: 8px 10px; font: 500 13.5px var(--ui); color: var(--ink); background: var(--surface); }
.qq .qq-mfield input:disabled { background: var(--raised); color: var(--ink-3); }
.qq .btn2.ghost { border-color: var(--steel); }

/* saved quotes */
.qq .qq-qsearch { width: 100%; border: 1px solid var(--steel); border-radius: 10px; padding: 9px 12px; font: 500 14px var(--ui); color: var(--ink); background: var(--surface); margin-bottom: 14px; }
.qq .qq-qtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.qq .qq-qtable th { text-align: left; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 7px 8px; border-bottom: 1px solid var(--line); }
.qq .qq-qtable td { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.qq .qq-qtable td.num, .qq .qq-qtable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.qq .qq-qtable .ref { font-size: 11px; color: var(--ink-3); }
.qq .qq-open { color: var(--navy); font-weight: 600; text-decoration: none; }
.qq .qq-open:hover { text-decoration: underline; }

/* toast */
.qq-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(14px); z-index: 90;
  background: var(--ds-ink, #141C33); color: #fff; padding: 10px 18px; border-radius: 999px; font: 600 13px var(--ds-font-ui, sans-serif);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
.qq-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.qq-toast.bad { background: var(--ds-bad, #B23A32); }

/* ---- responsive ----------------------------------------------------------- */
@media (min-width: 861px) and (max-width: 1100px) {
  .qq .addons, .qq .accs { grid-template-columns: repeat(2, 1fr); }
  .qq .qq-tools { align-items: flex-start; }
  .qq .qq-costmeta { text-align: left; }
}
@media (max-width: 860px) {
  .qq .addons, .qq .accs { grid-template-columns: 1fr; }
  .qq .cmp tbody th { width: 150px; }
  .qq .other { grid-template-columns: 1fr 100px auto; }
  .qq .qq-tools { align-items: flex-start; }
  .qq .qq-costmeta { text-align: left; }
  .qq .qq-set-grid { grid-template-columns: 1fr; }
  .qq .srow button, .qq .btn, .qq .btn2, .qq .qq-save, .qq .qq-add, .qq .addon, .qq .acc { min-height: 44px; }
  .qq .srow button { min-width: 44px; }
  .qq .qq-dock { flex-direction: column; align-items: stretch; text-align: center; }
  .qq .qq-dock-btns { justify-content: center; }
  .qq .qq-mgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .qq *, .qq *::before, .qq *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Comparison grid, lineup style: three column cards + icon rail (2026-10-17) ---- */
.qq table.cmp { border-spacing: 10px 0; min-width: 800px; }
.qq .cmp thead th.tier { position: relative; background: var(--navy); border-left: 0; border-radius: 16px 16px 0 0 !important; padding: 16px 14px 12px; text-align: center; vertical-align: top; }
.qq .cmp thead th.tier.lead { background: var(--navy); box-shadow: 0 0 0 2px var(--brass); }
.qq .cmp thead th.corner { background: transparent; }
.qq .cmp .tname { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.qq .cmp .lead-badge { position: absolute; top: -10px; right: 12px; display: inline-flex; align-items: center; gap: 4px; background: var(--brass); color: var(--navy); font: 700 10.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.qq .cmp .lead-badge svg { width: 12px; height: 12px; }
.qq .cmp thead .photo { background: #fff; height: 132px; margin-bottom: 8px; border-radius: 10px; }
.qq .cmp .hmodel { font-size: 18px; font-weight: 800; letter-spacing: .02em; color: #fff; margin: 2px 0 10px; }
.qq .cmp .hmodel .muted { color: #A9C1D8; font-size: 13px; font-weight: 500; }
.qq .cmp thead .tierline { justify-content: center; }
.qq .cmp thead .tierline .name { font-size: 12.5px; font-weight: 600; color: #DCE5EE; }
.qq .cmp thead th.tier.lead .tierline .name { color: var(--brass); }

/* rail */
.qq .cmp tbody th.rail { width: 190px; background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; padding: 10px 12px; vertical-align: middle; }
.qq .cmp tbody th.rail.sec { display: table-cell; }
.qq .cmp tbody th.rail.sub { background: #26396A; font-weight: 500; color: #DCE5EE; padding-top: 7px; padding-bottom: 7px; }
.qq .cmp tbody th.rail .rico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); margin-right: 10px; vertical-align: middle; }
.qq .cmp tbody th.rail .rico svg { width: 17px; height: 17px; }
.qq .cmp tbody th.rail .rlab { display: inline-block; vertical-align: middle; }
.qq .cmp tbody th.rail .rlab small { display: block; font-size: 11px; font-weight: 400; color: #A9C1D8; }
.qq .cmp tbody th.rail .muted { color: #A9C1D8; }
.qq .cmp tr.gap th.rail { background: transparent; }
.qq .cmp tr.price th.rail { border-radius: 0 0 16px 16px; }

/* cells as card segments */
.qq .cmp tbody td { background: #fff; border-bottom: 1px solid var(--line, #E4EBF1); border-left: 1px solid var(--line, #E4EBF1); border-right: 1px solid var(--line, #E4EBF1); padding: 11px 14px; }
.qq .cmp tbody td.leadcol { background: #F4F7FB; border-color: #C9D5E3; }
.qq .cmp tbody td:nth-child(2) { border-left: 1px solid var(--line, #E4EBF1); }
.qq .cmp tr.in td { background: #fff; }
.qq .cmp tr.in td.leadcol { background: #F4F7FB; }
.qq .cmp tr.gap td { background: transparent; border: 0; height: 10px; }
.qq .cmp tr.gap + tr td { border-top: 1px solid var(--line, #E4EBF1); border-radius: 10px 10px 0 0; }
.qq .cmp tr.gap + tr th.rail { border-radius: 10px 10px 0 0; }
.qq .cmp tr.in:first-child td, .qq .cmp tr.in:first-child th.rail { border-radius: 10px 10px 0 0; }
.qq .cmp tr.has-next-gap td { border-radius: 0 0 10px 10px; }
.qq .cmp .icell { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.qq .cmp .cico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; }
.qq .cmp .cico svg { width: 20px; height: 20px; }
.qq .cmp .mlist > div { padding: 3px 0; }
.qq .cmp .mlist .mk { display: inline-block; min-width: 48px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.qq .cmp .mlist b.model { font-size: 15px; }
.qq .cmp .mlist b.model.sm { font-size: 13.5px; font-weight: 600; }
.qq .cmp ul.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.qq .cmp ul.benefits li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.qq .cmp ul.benefits li svg { width: 18px; height: 18px; flex: 0 0 18px; padding: 3px; border-radius: 50%; background: var(--navy); color: #fff; }
.qq .cmp tr.total td { background: var(--raised-2); }
.qq .cmp tr.price td { border-radius: 0 0 16px 16px !important; border: 0; padding: 14px; text-align: center; }
.qq .cmp tr.price td.leadcol { box-shadow: 0 0 0 2px var(--brass); }
@media (max-width: 860px) {
  .qq table.cmp { border-spacing: 6px 0; min-width: 700px; }
  .qq .cmp tbody th.rail { width: 140px; }
  .qq .cmp tbody th.rail .rico { display: none; }
}
/* imagen sin marco: la foto o el dibujo van directo sobre la columna, sin cuadro alrededor */
.qq .cmp thead .photo { background: transparent; box-shadow: none; border-radius: 0; height: 124px; margin-bottom: 6px; }
.qq .cmp thead .photo img { background: transparent; }
.qq .cmp thead .photo svg { width: 132px; height: 88px; }
.qq .cmp thead .photo svg [stroke="#5E7F9F"] { stroke: #DCE5EE; }
.qq .cmp thead .photo svg [fill="#5E7F9F"] { fill: #DCE5EE; }
/* cabecera: franja azul solo con el nombre; debajo, cuadro blanco sin marco con la imagen de la unidad */
.qq .cmp thead th.tier { background: #fff; color: var(--ink); padding: 0 0 12px; overflow: hidden; }
.qq .cmp thead th.tier.lead { background: #fff; }
.qq .cmp .tname { background: var(--navy); color: #fff; padding: 14px 10px 12px; margin: 0 0 12px; }
.qq .cmp thead .photo { width: 70%; max-width: 190px; aspect-ratio: 1 / 1; height: auto; margin: 0 auto 10px; background: transparent; }
.qq .cmp thead .photo img { width: 100%; height: 100%; object-fit: contain; }
.qq .cmp thead .photo svg { width: 78%; height: 78%; opacity: .55; }
.qq .cmp thead .photo svg [stroke="#5E7F9F"] { stroke: #5E7F9F; }
.qq .cmp thead .photo svg [fill="#5E7F9F"] { fill: #5E7F9F; }
.qq .cmp .hmodel { color: var(--ink); }
.qq .cmp .hmodel .muted { color: var(--ink-3); }
.qq .cmp thead .tierline .name { color: var(--ink-2); }
.qq .cmp thead th.tier.lead .tierline .name { color: var(--navy); font-weight: 700; }
.qq .cmp thead .radio .dot { border-color: var(--navy); }
.qq .cmp thead .radio .dot::after { background: var(--brass); }
/* contorno fino para que la cabecera blanca se lea como tarjeta también cuando no hay foto */
.qq .cmp thead th.tier { box-shadow: inset 0 0 0 1px var(--line, #D5DBE3); }
.qq .cmp thead th.tier.lead { box-shadow: 0 0 0 2px var(--brass), inset 0 0 0 1px var(--line, #D5DBE3); }
/* nombre del nivel: solo texto, sin franja azul */
.qq .cmp .tname { background: transparent; color: var(--navy); padding: 18px 10px 4px; margin: 0 0 6px; }
.qq .cmp .lead-badge { top: 8px; right: 8px; }
/* la insignia "Leading" va centrada arriba del nombre, sin taparlo */
.qq .cmp .lead-badge { top: 8px; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.qq .cmp thead th.tier.lead .tname { padding-top: 36px; }
