/* ============================================================
   Premium Quotes workspace (Phase 9.3). A midnight workspace for the Quotes page: hero + search, a glass composer,
   the real workflow (Job details → Clarify → Review), details and a light quote preview side by side on desktop, one
   at a time behind a Details / Quote switch on phones. Scoped to #quotesPage #qtWorkspace — the quote builder sheet and the customer
   document stay light. Colours meet WCAG AA on the midnight surface (body text ≥ 7:1, muted ≥ 4.5:1).
   ============================================================ */
#qtWorkspace{
  --qx-bg:#070b16; --qx-bg2:#0c1324; --qx-line:rgba(160,180,230,.16); --qx-line2:rgba(160,180,230,.28);
  --qx-ink:#eef2fb; --qx-ink2:#b9c3dc; --qx-muted:#9aa6c4; --qx-blue:#7aa2ff; --qx-violet:#a48bff;
  --qx-glass:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  position:relative; isolation:isolate; overflow:hidden;
  margin:4px 0 24px; padding:clamp(20px, 4vw, 44px) clamp(16px, 4vw, 44px) clamp(24px, 4vw, 40px);
  border-radius:26px; border:1px solid var(--qx-line);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(88,120,255,.22), transparent 62%),
    radial-gradient(700px 380px at 96% 8%, rgba(150,110,255,.16), transparent 60%),
    linear-gradient(180deg, var(--qx-bg2), var(--qx-bg) 520px);
  color:var(--qx-ink); box-shadow:0 30px 80px -40px rgba(4,8,20,.7);
}
#quotesPage #qtWorkspace :focus-visible{outline:2px solid var(--qx-blue); outline-offset:2px}
#quotesPage #qtWorkspace a{color:#a9c1ff}

/* ---------- hero ---------- */
#quotesPage #qtWorkspace .qx-hero{max-width:880px}
#quotesPage #qtWorkspace .qx-eyebrow{margin:0 0 10px; font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--qx-blue)}
#quotesPage #qtWorkspace .qx-title{margin:0; font-size:clamp(30px, 6.2vw, 58px); line-height:1.02; font-weight:800; letter-spacing:-.025em; text-transform:uppercase;
  background:linear-gradient(180deg, #ffffff, #c9d5f5); -webkit-background-clip:text; background-clip:text; color:transparent}
#quotesPage #qtWorkspace .qx-lead{margin:14px 0 0; max-width:640px; font-size:15.5px; line-height:1.55; color:var(--qx-ink2)}
#quotesPage #qtWorkspace .qt-sub-manual{display:none}
#quotesPage #qtWorkspace.no-assist .qt-sub-assist{display:none}
#quotesPage #qtWorkspace.no-assist .qt-sub-manual{display:block}
#quotesPage #qtWorkspace .qx-toolbar{display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:22px}
#quotesPage #qtWorkspace .qx-search{flex:1 1 280px; position:relative; display:flex; align-items:center}
#quotesPage #qtWorkspace .qx-search svg{position:absolute; left:14px; color:var(--qx-muted); pointer-events:none}
#quotesPage #qtWorkspace .qx-search input{width:100%; min-height:46px; padding:0 14px 0 40px; border-radius:14px; border:1px solid var(--qx-line2);
  background:rgba(8,13,28,.62); color:var(--qx-ink); font:inherit; font-size:15px; backdrop-filter:blur(10px)}
#quotesPage #qtWorkspace .qx-search input::placeholder{color:var(--qx-muted)}
#quotesPage #qtWorkspace .qx-search input:focus{border-color:var(--qx-blue); outline:none; box-shadow:0 0 0 3px rgba(122,162,255,.25)}
#quotesPage #qtWorkspace .qx-btn{display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 18px; border-radius:14px; border:1px solid transparent;
  background:linear-gradient(180deg, #f4f7ff, #d9e3ff); color:#0b1430; font:inherit; font-size:14.5px; font-weight:700; cursor:pointer; text-decoration:none; white-space:nowrap}
#quotesPage #qtWorkspace .qx-btn:hover{filter:brightness(1.04)}
#quotesPage #qtWorkspace .qx-btn.ghost{background:rgba(255,255,255,.04); color:var(--qx-ink); border-color:var(--qx-line2)}
#quotesPage #qtWorkspace .qx-btn.ghost:hover{background:rgba(255,255,255,.08)}
#quotesPage #qtWorkspace .qx-link{background:none; border:0; padding:8px 0; color:#a9c1ff; font:inherit; font-weight:600; cursor:pointer; min-height:44px}
#quotesPage #qtWorkspace .qx-results{margin-top:12px; padding:12px; border-radius:16px; border:1px solid var(--qx-line); background:rgba(6,10,22,.7)}
#quotesPage #qtWorkspace .qx-results-h{margin:2px 4px 10px; font-size:13px; color:var(--qx-ink2)}

/* ---------- composer (glass) ---------- */
#quotesPage #qtWorkspace .qt-create{margin-top:28px; padding:0; border:0; background:none; box-shadow:none}
#quotesPage #qtWorkspace .qa-card{padding:0; border:0; background:none; box-shadow:none; color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-head{display:none}
#quotesPage #qtWorkspace .qa-steps{list-style:none; display:flex; gap:8px; margin:0 0 14px; padding:0; counter-reset:none; flex-wrap:wrap}
#quotesPage #qtWorkspace .qa-step{display:flex; align-items:center; gap:10px; flex:1 1 150px; min-height:52px; padding:8px 14px; border-radius:14px; border:1px solid var(--qx-line); background:rgba(255,255,255,.025); color:var(--qx-muted)}
#quotesPage #qtWorkspace .qa-step b{display:block; font-size:13.5px; color:var(--qx-ink2); font-weight:650}
#quotesPage #qtWorkspace .qa-step small{display:block; font-size:12px; color:var(--qx-muted)}
#quotesPage #qtWorkspace .qa-step-n{display:grid; place-items:center; width:26px; height:26px; border-radius:50%; border:1px solid var(--qx-line2); font-size:12.5px; font-weight:700; flex-shrink:0}
#quotesPage #qtWorkspace .qa-step.is-current{border-color:rgba(122,162,255,.55); background:linear-gradient(180deg, rgba(122,162,255,.14), rgba(122,162,255,.05))}
#quotesPage #qtWorkspace .qa-step.is-current b{color:#fff}
#quotesPage #qtWorkspace .qa-step.is-current .qa-step-n{background:var(--qx-blue); border-color:var(--qx-blue); color:#071030}
#quotesPage #qtWorkspace .qa-step.is-done .qa-step-n{background:rgba(94,214,180,.16); border-color:rgba(94,214,180,.5); color:#8ff0cf}
#quotesPage #qtWorkspace .qa-input-wrap{position:relative; border-radius:20px; border:1px solid var(--qx-line2); background:var(--qx-glass), rgba(10,16,34,.55);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 20px 50px -30px rgba(0,0,0,.6); padding:6px 6px 0}
#quotesPage #qtWorkspace .qa-input-wrap:hover{border-color:rgba(160,180,230,.38)}
#quotesPage #qtWorkspace .qa-input-wrap:focus-within{border-color:rgba(122,162,255,.7); box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 3px rgba(122,162,255,.18)}
#quotesPage #qtWorkspace .qa-input-wrap.drag{border-style:dashed; border-color:var(--qx-violet); background:rgba(164,139,255,.08)}
#quotesPage #qtWorkspace .qa-text{display:block; width:100%; min-height:96px; max-height:420px; resize:none; overflow:auto; padding:14px 14px 8px; border:0; background:transparent;
  color:var(--qx-ink); font:inherit; font-size:16px; line-height:1.5}
#quotesPage #qtWorkspace .qa-text::placeholder{color:var(--qx-muted)}
#quotesPage #qtWorkspace .qa-text:focus{outline:none}
#quotesPage #qtWorkspace .qa-actions{display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:8px; border-top:1px solid var(--qx-line)}
#quotesPage #qtWorkspace .qa-tool{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border-radius:12px; border:1px solid transparent; background:transparent; color:var(--qx-ink2); font:inherit; font-size:14px; font-weight:600; cursor:pointer}
#quotesPage #qtWorkspace .qa-tool:hover{background:rgba(255,255,255,.07); color:#fff}
#quotesPage #qtWorkspace .qa-tool:focus-within{outline:2px solid var(--qx-blue); outline-offset:1px}
#quotesPage #qtWorkspace .qa-analyse, #quotesPage #qtWorkspace .qa-cl-acts .btn:not(.secondary), #quotesPage #qtWorkspace .qa-refine .btn{min-height:46px; padding:0 20px; border-radius:13px; border:0;
  background:linear-gradient(180deg, #8eb0ff, #5f83f5); color:#06102e; font-weight:750; box-shadow:0 10px 26px -12px rgba(95,131,245,.8)}
#quotesPage #qtWorkspace .qa-analyse:disabled, #quotesPage #qtWorkspace .qa-refine .btn:disabled{opacity:.6; box-shadow:none}
#quotesPage #qtWorkspace .qa-hint{margin:10px 4px 0; font-size:13px; color:var(--qx-muted)}
#quotesPage #qtWorkspace .qa-error{color:#ffb4b4}
#quotesPage #qtWorkspace .qa-chips{display:flex; flex-wrap:wrap; gap:8px; padding:0 8px 8px}
#quotesPage #qtWorkspace .qa-chips:empty{display:none}
#quotesPage #qtWorkspace .qa-chip{display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:44px; padding:4px 4px 4px 4px; border-radius:12px; border:1px solid var(--qx-line2); background:rgba(255,255,255,.05); color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-chip.is-pdf, #quotesPage #qtWorkspace .qa-chip.email, #quotesPage #qtWorkspace .qa-chip.is-pending{padding-left:10px}
#quotesPage #qtWorkspace .qa-thumb{width:40px; height:40px; border-radius:8px; object-fit:cover; flex-shrink:0; background:#0e1730}
#quotesPage #qtWorkspace .qa-chip-ic{color:var(--qx-violet); display:inline-flex}
#quotesPage #qtWorkspace .qa-chip-name{font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:220px}
#quotesPage #qtWorkspace .qa-chip-size{font-size:12px; color:var(--qx-muted)}
#quotesPage #qtWorkspace .qa-chip button{display:grid; place-items:center; width:36px; height:36px; border-radius:9px; border:0; background:transparent; color:var(--qx-ink2); cursor:pointer}
#quotesPage #qtWorkspace .qa-chip button:hover{background:rgba(255,255,255,.1); color:#fff}
#quotesPage #qtWorkspace .qa-outlook{margin-top:10px; padding:14px; border-radius:14px; border:1px solid var(--qx-line); background:rgba(255,255,255,.04); color:var(--qx-ink2)}
#quotesPage #qtWorkspace .qa-resume{margin-top:12px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border-radius:14px; border:1px solid var(--qx-line2); background:rgba(122,162,255,.08); color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-resume[hidden]{display:none}
#quotesPage #qtWorkspace .qa-link{color:#a9c1ff; min-height:44px}

/* ---------- conversation ---------- */
#quotesPage #qtWorkspace .qa-thread{margin-top:18px}
#quotesPage #qtWorkspace .qa-msg{gap:12px}
#quotesPage #qtWorkspace .qa-bubble-user{background:rgba(122,162,255,.12); border:1px solid rgba(122,162,255,.3); color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-bubble-user small{color:var(--qx-ink2)}
#quotesPage #qtWorkspace .qa-avatar{background:linear-gradient(180deg, #8eb0ff, #a48bff); color:#08102b}
#quotesPage #qtWorkspace .qa-working{color:var(--qx-ink2)}
#quotesPage #qtWorkspace .qa-reply{min-width:0; flex:1}

/* ---------- details + quote panes ---------- */
#quotesPage #qtWorkspace .qa-work{display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr); gap:18px; align-items:start}
#quotesPage #qtWorkspace .qa-switch{display:none}
#quotesPage #qtWorkspace .qa-pane-details{min-width:0; color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-pane-quote{position:sticky; top:84px; min-width:0}
#quotesPage #qtWorkspace .qa-cl-head{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px}
#quotesPage #qtWorkspace .qa-cl-sub{color:var(--qx-ink2); font-size:14px}
#quotesPage #qtWorkspace .qa-cl-sec{margin-top:14px; padding:16px; border-radius:18px; border:1px solid var(--qx-line); background:rgba(255,255,255,.035)}
#quotesPage #qtWorkspace .qa-cl-sec h4{margin:0 0 10px; font-size:14px; letter-spacing:.02em; color:#fff}
#quotesPage #qtWorkspace .qa-cl-sec summary{cursor:pointer; list-style:none; min-height:32px}
#quotesPage #qtWorkspace .qa-cl-sec summary h4{display:inline}
#quotesPage #qtWorkspace .qa-qgroup + .qa-qgroup{margin-top:14px; padding-top:14px; border-top:1px solid var(--qx-line)}
#quotesPage #qtWorkspace .qa-qgroup h5{margin:0 0 8px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--qx-blue)}
#quotesPage #qtWorkspace .qa-q{border:1px solid var(--qx-line); border-radius:14px; padding:12px 12px 6px; margin:0 0 10px; background:rgba(6,10,22,.45)}
#quotesPage #qtWorkspace .qa-q legend{padding:0 4px; font-weight:650; color:#fff; font-size:14.5px}
#quotesPage #qtWorkspace .qa-q-why{color:var(--qx-ink2); font-size:13px}
#quotesPage #qtWorkspace .qa-opt{display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:44px; padding:4px 6px; border-radius:10px; color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-opt:hover{background:rgba(255,255,255,.05)}
#quotesPage #qtWorkspace .qa-opt input[type=radio]{width:20px; height:20px; accent-color:var(--qx-blue)}
#quotesPage #qtWorkspace .qa-q-num, #quotesPage #qtWorkspace .qa-q-text{min-height:40px; padding:0 10px; border-radius:10px; border:1px solid var(--qx-line2); background:rgba(4,8,20,.7); color:var(--qx-ink); font:inherit}
#quotesPage #qtWorkspace .qa-q-err{color:#ffb4b4; font-size:13px}
#quotesPage #qtWorkspace .qa-cl-acts{display:flex; justify-content:flex-end; margin-top:10px}
#quotesPage #qtWorkspace .qa-cl-acts .btn.secondary{min-height:44px; border-radius:12px; background:rgba(255,255,255,.06); color:var(--qx-ink); border:1px solid var(--qx-line2)}
#quotesPage #qtWorkspace .qa-scope-wrap{overflow-x:auto}
#quotesPage #qtWorkspace .qa-scope{width:100%; border-collapse:collapse; font-size:13px; color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-scope th{text-align:left; font-weight:650; color:var(--qx-muted); padding:6px 8px; border-bottom:1px solid var(--qx-line)}
#quotesPage #qtWorkspace .qa-scope td{padding:8px; border-bottom:1px solid var(--qx-line); vertical-align:top}
#quotesPage #qtWorkspace .qa-scope small{display:block; color:var(--qx-muted); margin-top:2px}
#quotesPage #qtWorkspace .qa-change{margin-top:6px; padding:14px 16px; border-radius:16px; border:1px solid rgba(94,214,180,.35); background:rgba(94,214,180,.08); color:var(--qx-ink)}
#quotesPage #qtWorkspace .qa-change-head{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
#quotesPage #qtWorkspace .qa-change ul{margin:8px 0 0; padding-left:18px; color:var(--qx-ink2); font-size:13.5px}
#quotesPage #qtWorkspace .qa-versions ol{list-style:none; margin:0; padding:0}
#quotesPage #qtWorkspace .qa-versions li{display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:44px; border-bottom:1px solid var(--qx-line); font-size:13.5px; color:var(--qx-ink2)}
#quotesPage #qtWorkspace .qa-versions em{font-style:normal; color:#8ff0cf; font-size:12.5px}
#quotesPage #qtWorkspace .qa-cl-raw{margin-top:14px; color:var(--qx-ink2)}
#quotesPage #qtWorkspace .qa-cl-raw summary{cursor:pointer; min-height:44px; display:flex; align-items:center}
#quotesPage #qtWorkspace .qa-badge{display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:#ffcf6b; color:#2a1b00; font-size:12px; font-weight:800}

/* the customer document: light and readable */
#quotesPage #qtWorkspace .qa-doc{border-radius:20px; background:#fbfcff; color:#16203a; border:1px solid #dfe5f3; box-shadow:0 30px 60px -30px rgba(0,0,0,.55); padding:20px 20px 16px}
#quotesPage #qtWorkspace .qa-doc-head{display:flex; flex-direction:column; gap:2px; padding-bottom:12px; border-bottom:1px solid #e5eaf5}
#quotesPage #qtWorkspace .qa-doc-kicker{font-size:11.5px; font-weight:750; letter-spacing:.12em; text-transform:uppercase; color:#4a5f9c}
#quotesPage #qtWorkspace .qa-doc-head b{font-size:18px}
#quotesPage #qtWorkspace .qa-doc-head small{color:#56607a}
#quotesPage #qtWorkspace .qa-doc-lines{list-style:none; margin:0; padding:0}
#quotesPage #qtWorkspace .qa-doc-line{display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid #edf0f7}
#quotesPage #qtWorkspace .qa-doc-line b{display:block; font-size:13.5px; font-weight:650}
#quotesPage #qtWorkspace .qa-doc-line small{display:block; font-size:12.5px; color:#5a6480; margin-top:2px}
#quotesPage #qtWorkspace .qa-doc-line .tnum{font-weight:700; white-space:nowrap}
#quotesPage #qtWorkspace .qa-doc-line.is-extra{color:#56607a}
#quotesPage #qtWorkspace .qa-doc-h{margin:14px 0 4px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#56607a}
#quotesPage #qtWorkspace .qa-doc-x{margin:0; padding-left:18px; color:#56607a; font-size:13px}
#quotesPage #qtWorkspace .qa-doc-empty{color:#56607a; font-size:14px; margin:14px 0}
#quotesPage #qtWorkspace .qa-doc-total{display:flex; justify-content:space-between; align-items:baseline; margin-top:14px; padding-top:12px; border-top:2px solid #16203a}
#quotesPage #qtWorkspace .qa-doc-total b{font-size:24px; letter-spacing:-.01em}
#quotesPage #qtWorkspace .qa-doc-total.is-partial{border-top-style:dashed; border-top-color:#9aa6c4}
#quotesPage #qtWorkspace .qa-doc-total.is-partial b{color:#4a5675}
#quotesPage #qtWorkspace .qa-doc-gst{margin:4px 0 0; font-size:12.5px; color:#56607a}
#quotesPage #qtWorkspace .qa-doc .qa-warn{margin:12px 0 0; padding:10px 12px 10px 28px; border-radius:12px; background:#fff6e5; border:1px solid #f2d79b; color:#6b4500; font-size:13px}
#quotesPage #qtWorkspace .qa-doc-pending{margin:10px 0 0; padding:8px 12px 10px; border-radius:12px; background:#fff6e5; border:1px solid #f2d79b; color:#6b4500; font-size:13px}
#quotesPage #qtWorkspace .qa-doc-pending .qa-doc-h{margin:0 0 4px; color:#6b4500}
#quotesPage #qtWorkspace .qa-doc-pending ul{margin:0; padding-left:18px}
#quotesPage #qtWorkspace .qa-doc .qa-rv-work{color:#4a5f9c}
#quotesPage #qtWorkspace .qa-doc .qa-cl-acts .btn{width:100%}
#quotesPage #qtWorkspace .qa-refine{margin-top:16px; padding-top:14px; border-top:1px solid #e5eaf5}
#quotesPage #qtWorkspace .qa-refine h4{margin:0 0 8px; font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:#4a5f9c}
#quotesPage #qtWorkspace .qa-refine-box{border-radius:14px; border:1px solid #d5dcee; background:#fff}
#quotesPage #qtWorkspace .qa-refine-box:focus-within{border-color:#5f83f5; box-shadow:0 0 0 3px rgba(95,131,245,.18)}
#quotesPage #qtWorkspace .qa-refine-box.drag{border-style:dashed; border-color:#8a6cf0}
#quotesPage #qtWorkspace .qa-refine-text{display:block; width:100%; min-height:52px; resize:none; border:0; padding:12px; background:transparent; color:#16203a; font:inherit; font-size:15px}
#quotesPage #qtWorkspace .qa-refine-text:focus{outline:none}
#quotesPage #qtWorkspace .qa-refine-acts{display:flex; align-items:center; gap:4px; padding:6px; border-top:1px solid #edf0f7; flex-wrap:wrap}
#quotesPage #qtWorkspace .qa-refine .qa-tool{color:#34416a; min-height:44px}
#quotesPage #qtWorkspace .qa-refine .qa-tool:hover{background:#eef2fb; color:#16203a}
#quotesPage #qtWorkspace .qa-refine .qa-chips{padding:0 8px 8px}
#quotesPage #qtWorkspace .qa-refine .qa-chip{border-color:#d5dcee; background:#f4f6fc; color:#16203a}
#quotesPage #qtWorkspace .qa-refine .qa-chip-size{color:#5a6480}
#quotesPage #qtWorkspace .qa-refine .qa-chip button{color:#34416a}
#quotesPage #qtWorkspace .qa-refine-note{margin:8px 2px 0; font-size:12.5px; color:#5a6480}
#quotesPage #qtWorkspace .qa-refine-err{margin:6px 2px 0; font-size:13px; color:#a1261a}
#quotesPage #qtWorkspace .qa-refine-err:empty{display:none}
#quotesPage #qtWorkspace .qa-spacer{flex:1}

/* ---------- your quotes ---------- */
#quotesPage #qtWorkspace .qt-yours{margin-top:34px}
#quotesPage #qtWorkspace .qt-yours-h{margin:0 0 12px; font-size:13px; font-weight:750; letter-spacing:.14em; text-transform:uppercase; color:var(--qx-blue)}
#quotesPage #qtWorkspace .qt-tabs{border-color:var(--qx-line)}
#quotesPage #qtWorkspace .qt-tab{color:var(--qx-ink2); min-height:44px}
#quotesPage #qtWorkspace .qt-tab.on{color:#fff; border-color:var(--qx-blue)}
#quotesPage #qtWorkspace .qt-tab-count{background:rgba(255,255,255,.1); color:var(--qx-ink)}
#quotesPage #qtWorkspace .qt-list, #quotesPage #qtWorkspace .qt-list.qt-list{border:1px solid var(--qx-line); border-radius:18px; background:rgba(255,255,255,.03); box-shadow:none; overflow:hidden}
#quotesPage #qtWorkspace .qt-row{color:var(--qx-ink); border-bottom-color:var(--qx-line); min-height:64px; background:transparent}
#quotesPage #qtWorkspace .qt-row:hover{background:rgba(255,255,255,.05)}
#quotesPage #qtWorkspace .qt-row-name{color:#fff}
#quotesPage #qtWorkspace .qt-row-amt{color:#fff}
#quotesPage #qtWorkspace .qt-row-sub, #quotesPage #qtWorkspace .qt-row-site{color:var(--qx-muted)}
#quotesPage #qtWorkspace .qt-chev{color:var(--qx-muted)}
#quotesPage #qtWorkspace .qt-empty, #quotesPage #qtWorkspace .qt-loading{color:var(--qx-ink2); background:transparent}
#quotesPage #qtWorkspace .qt-empty b{color:#fff}
#quotesPage #qtWorkspace .inline-error{color:#ffb4b4}

/* ---------- phones: one pane at a time ---------- */
@media (max-width:899px){
  #quotesPage #qtWorkspace .qa-work{grid-template-columns:minmax(0, 1fr)}
  #quotesPage #qtWorkspace .qa-switch{display:flex; position:sticky; top:calc(env(safe-area-inset-top, 0px) + 60px); z-index:3; gap:4px; padding:4px; border-radius:14px; border:1px solid var(--qx-line2); background:rgba(8,13,28,.92); backdrop-filter:blur(12px)}
  #quotesPage #qtWorkspace .qa-switch button{flex:1; min-height:44px; border-radius:11px; border:0; background:transparent; color:var(--qx-ink2); font:inherit; font-weight:650; font-size:14.5px; display:inline-flex; align-items:center; justify-content:center; gap:8px}
  #quotesPage #qtWorkspace .qa-switch button[aria-selected="true"]{background:rgba(122,162,255,.18); color:#fff}
  #quotesPage #qtWorkspace .qa-switch button{white-space:nowrap; padding:0 8px}
  #quotesPage #qtWorkspace #qaTabQuote{flex:1.25; font-size:14px; gap:6px}
  #quotesPage #qtWorkspace .qa-work[data-pane="details"] .qa-pane-quote, #quotesPage #qtWorkspace .qa-work[data-pane="quote"] .qa-pane-details{display:none}
  #quotesPage #qtWorkspace .qa-pane-quote{position:static}
  #quotesPage #qtWorkspace .qa-msg{gap:0}
  #quotesPage #qtWorkspace .qa-avatar{display:none}
}
@media (max-width:640px){
  #qtWorkspace{margin:0 -16px 20px; border-radius:0; border-left:0; border-right:0; padding:26px 16px 28px}
  #quotesPage #qtWorkspace .qx-toolbar .qx-btn{flex:1 1 auto}
  #quotesPage #qtWorkspace .qa-step{flex:1 1 30%; padding:8px 10px; min-height:48px}
  #quotesPage #qtWorkspace .qa-step small{display:none}
  #quotesPage #qtWorkspace .qa-chip-name{max-width:150px}
  #quotesPage #qtWorkspace .qa-doc{padding:16px 14px 14px}
}
@media (prefers-reduced-motion:reduce){ #quotesPage #qtWorkspace *{transition:none !important; animation:none !important} }
/* the light theme's decorative wash on the create card doesn't belong on the midnight workspace */
#quotesPage #qtWorkspace .qt-create::before, #quotesPage #qtWorkspace .qt-create::after{content:none; display:none}
#quotesPage #qtWorkspace .qa-thread, #quotesPage #qtWorkspace .qa-thread.show{background:transparent; border:0; box-shadow:none; padding:0}
/* state chips and status pills on the midnight surface (labels carry the meaning; colour only supports them) */
#quotesPage #qtWorkspace .qa-state{border:1px solid transparent; font-weight:750; letter-spacing:.06em}
#quotesPage #qtWorkspace .qa-st-ready{background:rgba(94,214,180,.14); border-color:rgba(94,214,180,.45); color:#8ff0cf}
#quotesPage #qtWorkspace .qa-st-need{background:rgba(255,196,94,.12); border-color:rgba(255,196,94,.45); color:#ffd58a}
#quotesPage #qtWorkspace .qa-st-draft{background:rgba(122,162,255,.14); border-color:rgba(122,162,255,.45); color:#b8ccff}
#quotesPage #qtWorkspace .qa-pill{background:rgba(255,255,255,.08); color:var(--qx-ink2); border:1px solid var(--qx-line)}
#quotesPage #qtWorkspace .qa-pill-ok{background:rgba(94,214,180,.12); color:#8ff0cf; border-color:rgba(94,214,180,.35)}
#quotesPage #qtWorkspace .qa-pill-need{background:rgba(255,196,94,.1); color:#ffd58a; border-color:rgba(255,196,94,.35)}
#quotesPage #qtWorkspace .qa-pill-x{background:rgba(255,255,255,.05); color:var(--qx-muted)}
#quotesPage #qtWorkspace .qa-basis{color:var(--qx-muted)}
#quotesPage #qtWorkspace :is(.qa-basis-estimate, .qa-basis-missing, .qa-basis-unchecked){color:#ffd58a !important}
#quotesPage #qtWorkspace :is(.qa-basis-confirmed, .qa-basis-printed){color:#8ff0cf !important}
#quotesPage #qtWorkspace .qa-evid{color:var(--qx-muted)}
#quotesPage #qtWorkspace .qa-excl{color:#ffb4a8}
/* "what the assistant read": a reference dump, kept as a light card for legibility */
#quotesPage #qtWorkspace .qa-cl-raw .qa-answer{border-radius:16px; margin-top:8px}
#quotesPage #qtWorkspace .qa-cl-raw > summary{color:var(--qx-ink2); font-size:13.5px; font-weight:600}
#quotesPage #qtWorkspace .qa-cl-sec > summary::marker, #quotesPage #qtWorkspace .qa-cl-raw > summary::marker{color:var(--qx-muted)}

#quotesPage #qtWorkspace .qa-compose{padding:0; border:0; background:none}
#quotesPage #qtWorkspace .qa-text:focus, #quotesPage #qtWorkspace .qa-refine-text:focus{box-shadow:none}
#quotesPage #qtWorkspace .qx-search svg{z-index:1}
@media (max-width:640px){
  #quotesPage #qtWorkspace .qa-steps{flex-wrap:nowrap; gap:6px}
  #quotesPage #qtWorkspace .qa-step{flex:1 1 0; min-width:0; gap:6px; padding:8px; justify-content:center}
  #quotesPage #qtWorkspace .qa-step b{font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  #quotesPage #qtWorkspace .qa-step-n{width:22px; height:22px; font-size:11.5px}
  #quotesPage #qtWorkspace .qa-input-wrap{padding:4px 4px 0}
  #quotesPage #qtWorkspace .qa-tool{padding:0 10px}
}
/* phones: the midnight workspace meets the header (no strip of page background above it) */
@media (max-width:640px){ #quotesPage.overview-page{padding-top:0} #quotesPage #qtWorkspace{margin-top:0; border-top:0} }
