/* addons.css — ADD-1 (2026-10-20): the add-ons' office-side surfaces —
 * Kickstart with Addie (kickstart.js), the quote rail's Rooms / Plans /
 * Versions (quote-rail.js), the contractor-portal panel on a sub's record
 * (professionals.js) and the contractor portal itself (sub-portal.js).
 * Tokens only (--ds-*), so the Navy appearance re-points it. Gold stays on
 * each surface's one main action. */

/* ---------- Kickstart with Addie ---------- */
body.skin-billdr .ks-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--ds-line); border-left: 3px solid var(--ds-navy, #1b2b44); border-radius: var(--ds-r, 10px); background: var(--ds-card); }
body.skin-billdr .ks-card-main { flex: 1 1 320px; min-width: 0; }
body.skin-billdr .ks-card-h { margin: 0 0 4px; font-weight: 700; }
body.skin-billdr .ks-card p { margin: 0 0 4px; }
body.skin-billdr .ks-usage { font-size: var(--ds-fs-sm, 13px); margin: 4px 0 0; }
body.skin-billdr .ks-warn { color: var(--ds-warn-ink, #8a5a12); }
body.skin-billdr .ks-stop { color: var(--ds-bad-ink, #a3361f); font-weight: 600; }
body.skin-billdr .ks-tabs { display: flex; gap: 6px; margin: 0 0 6px; }
body.skin-billdr .ks-tab { border: 1px solid var(--ds-line); background: var(--ds-card); color: var(--ds-ink); border-radius: var(--ds-r-pill, 999px); padding: 6px 14px; font: inherit; cursor: pointer; }
body.skin-billdr .ks-tab.active { background: var(--ds-navy, #1b2b44); border-color: var(--ds-navy, #1b2b44); color: #fff; }
body.skin-billdr .ks-h { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--ds-ink); }
body.skin-billdr .ks-plans { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; }
body.skin-billdr .ks-drop { padding: 14px; border: 1.5px dashed var(--ds-line-strong, #cbd5e1); border-radius: var(--ds-r, 10px); color: var(--ds-muted); font-size: var(--ds-fs-sm, 13px); text-align: center; }
body.skin-billdr .ks-drop.over { border-color: #7c3aed; background: rgba(124, 58, 237, .06); }
body.skin-billdr .ks-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
body.skin-billdr .ks-chip { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm, 6px); cursor: pointer; position: relative; padding-left: 32px; }
body.skin-billdr .ks-chip input { position: absolute; left: 10px; top: 11px; }
body.skin-billdr .ks-chip span { color: var(--ds-muted); font-size: var(--ds-fs-xs, 12px); }
body.skin-billdr .ks-chip.on { border-color: var(--ds-navy, #1b2b44); }
body.skin-billdr .ks-instr textarea { width: 100%; box-sizing: border-box; }
body.skin-billdr .ks-review ul { margin: 4px 0 10px 18px; padding: 0; }

/* wave488 (2026-11-08): the Addie dialog restyle — the house AI
 * doorway head (✦ in a violet gradient tile, "Meet Addie", the
 * caveat quiet in the same line), the two mode doors on the chooser
 * card, one Describe-the-job field up top, compact plans, context
 * as toggle chips in one row, and the allowance + promise lines
 * quiet. The .ks-tabs rules above stand unused (the in-dialog mode
 * toggle is gone) — kept for the rollback, nothing renders them. */
body.skin-billdr .ks-card-doors { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
body.skin-billdr .ks-head { align-items: flex-start; gap: 12px; }
body.skin-billdr .ks-mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; line-height: 1; background: linear-gradient(135deg, #5b3fd6, #8b5cf6); box-shadow: 0 4px 12px rgba(91, 63, 214, .25); }
body.skin-billdr .ks-head h3 { margin: 1px 0 3px; }
body.skin-billdr .ks-head p { margin: 0; font-size: 13px; line-height: 1.45; }
body.skin-billdr .ks-quiet { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; margin: 10px 0 0; }
body.skin-billdr .ks-quiet .ks-usage { margin: 0; font-size: 12.5px; }
body.skin-billdr .ks-quiet .ks-promise { margin: 0; font-size: 12.5px; color: var(--ds-muted); }
body.skin-billdr .ks-desc { display: block; margin: 6px 0 2px; }
body.skin-billdr .ks-desc textarea, body.skin-billdr .ks-instr textarea { width: 100%; box-sizing: border-box; }
body.skin-billdr .ks-drop { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; border-radius: 12px; }
body.skin-billdr .ks-attach { flex: none; }
body.skin-billdr .ks-drop-cap { font-size: 12.5px; line-height: 1.4; }
body.skin-billdr .ks-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.skin-billdr .ks-chip { flex-direction: row; align-items: center; gap: 5px; padding: 5px 10px 5px 6px; border-radius: 999px; white-space: nowrap; }
body.skin-billdr .ks-chip input { left: 0; top: 0; opacity: 0; pointer-events: none; }
body.skin-billdr .ks-chip b { font-weight: 600; font-size: 12.5px; color: var(--ds-ink); }
body.skin-billdr .ks-chip .ks-chip-ck { display: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ds-navy, #1b2b44); color: #fff; font-size: 10px; line-height: 1; align-items: center; justify-content: center; }
body.skin-billdr .ks-dialog .rk-field { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ds-ink); }
body.skin-billdr .ks-dialog .rk-field input[type="file"] { display: block; margin-top: 6px; }
body.skin-billdr .ks-chip.on { border-color: var(--ds-navy, #1b2b44); background: var(--ds-tint, #f5f7fb); }
body.skin-billdr .ks-chip.on .ks-chip-ck { display: inline-flex; }
body.skin-billdr .ks-chip:focus-within { outline: 2px solid #7c3aed; outline-offset: 1px; }
body.skin-billdr .ks-flags li { color: var(--ds-warn-ink, #8a5a12); }

/* wave529 (2026-11-09): the dialog head becomes the house AI doorway
 * banner — a violet gradient card (the .ks-mark gradient, full-width),
 * white headline, the what-it-does line + review caveat in soft white,
 * the ✦ in a translucent tile, the close button readable on violet.
 * It sits as a card at the top of the dialog body (no bleed into the
 * fxDialog shell). The dialog's textareas take the house field look
 * with the AI-violet focus ring — never the browser's heavy black
 * border or monospace placeholder. */
body.skin-billdr .ks-dialog .ks-head { background: linear-gradient(135deg, #5b3fd6, #8b5cf6); border-radius: 14px; padding: 16px 18px; color: #fff; box-shadow: 0 6px 18px rgba(91, 63, 214, .22); }
body.skin-billdr .ks-dialog .ks-head h3 { color: #fff; }
body.skin-billdr .ks-dialog .ks-head p { color: rgba(255, 255, 255, .88); }
body.skin-billdr .ks-dialog .ks-mark { background: rgba(255, 255, 255, .18); box-shadow: none; }
body.skin-billdr .ks-dialog .ks-head [data-fx-close] { color: #fff; }
body.skin-billdr .ks-dialog .ks-head [data-fx-close]:hover { background: rgba(255, 255, 255, .16); }
body.skin-billdr .ks-dialog textarea { font: inherit; font-size: 14px; line-height: 1.5; color: var(--ds-ink); border: 1px solid var(--ds-line-strong, #cbd5e1); border-radius: 10px; padding: 10px 12px; background: #fff; margin-top: 6px; }
body.skin-billdr .ks-dialog textarea::placeholder { color: var(--ds-muted); }
body.skin-billdr .ks-dialog textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .16); }

/* ---------- the quote rail: Summary · Rooms · Plans · Versions ---------- */
body.skin-billdr #app .qr-tabs { display: flex; gap: 4px; margin: 0 0 10px; flex-wrap: wrap; }
body.skin-billdr #app .qr-tab { border: 1px solid var(--ds-line); background: var(--ds-card); color: var(--ds-ink); border-radius: var(--ds-r-pill, 999px); padding: 4px 11px; font: inherit; font-size: var(--ds-fs-sm, 13px); cursor: pointer; }
body.skin-billdr #app .qr-tab.active { background: var(--ds-navy, #1b2b44); border-color: var(--ds-navy, #1b2b44); color: #fff; }
body.skin-billdr #app .qr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.skin-billdr #app .qr-room { padding: 8px 0; border-top: 1px solid var(--ds-hair, var(--ds-line)); }
body.skin-billdr #app .qr-room-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
body.skin-billdr #app .qr-acts { margin-left: auto; display: inline-flex; gap: 10px; }
body.skin-billdr #app .qr-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--ds-gold-tint, #fbf6e9); color: var(--ds-gold-ink, #7a5a12); }
body.skin-billdr #app .qr-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; margin: 6px 0 0; }
body.skin-billdr #app .qr-dims dt { font-size: 11px; color: var(--ds-muted); }
body.skin-billdr #app .qr-dims dd { margin: 0; font-variant-numeric: tabular-nums; }
body.skin-billdr #app .qr-note { font-size: var(--ds-fs-xs, 12px); margin: 8px 0 0; }
body.skin-billdr #app .qr-plan-list, body.skin-billdr #app .qr-ver { list-style: none; margin: 0; padding: 0; }
body.skin-billdr #app .qr-plan-list li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--ds-hair, var(--ds-line)); }
body.skin-billdr #app .qr-ver li { display: grid; grid-template-columns: 1.3fr 1.4fr auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--ds-hair, var(--ds-line)); font-size: var(--ds-fs-sm, 13px); }
body.skin-billdr #app .qr-ver li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- the contractor-portal panel on a sub's record ---------- */
body.skin-billdr .pp-box { padding: 10px 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-r, 10px); }
body.skin-billdr .pp-status { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
body.skin-billdr .pp-status p { margin: 0; }
body.skin-billdr .pp-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
body.skin-billdr .pp-h { margin: 12px 0 6px; font-size: 13px; }
body.skin-billdr .pp-table { width: 100%; border-collapse: collapse; font-size: var(--ds-fs-sm, 13px); }
body.skin-billdr .pp-table th, body.skin-billdr .pp-table td { padding: 6px 8px; border-bottom: 1px solid var(--ds-hair, var(--ds-line)); text-align: left; }
body.skin-billdr .pp-table th { font-weight: 600; color: var(--ds-muted); font-size: var(--ds-fs-xs, 12px); }
body.skin-billdr .pp-add { margin: 8px 0 0; }
body.skin-billdr .pp-note { font-size: var(--ds-fs-xs, 12px); margin: 8px 0 0; }

/* ---------- the contractor portal (a signed-in subtrade) ---------- */
body.sub-portal-on > *:not(#sub-portal):not(script):not(#dw4-viewas-banner):not(.fx-overlay) { display: none !important; }
.sub-portal { min-height: 100vh; background: var(--ds-page, #f6f7f8); color: var(--ds-ink, #1c2733); }
.sub-portal[hidden] { display: none !important; }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ds-navy, #12283f); border-bottom: 3px solid var(--ds-gold, #b08d3e); color: #fff; }
.sp-brand { margin: 0; font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.sp-title { margin: 2px 0 0; color: #c9d4de; font-size: 13px; }
.sp-head .btn { color: #fff; border-color: rgba(255,255,255,.45); }
.sp-head-acts { display: inline-flex; gap: 8px; align-items: center; }
/* wave478: the account chip in the contractor portal's header. */
.sp-acct { display: inline-flex; align-items: center; gap: 7px; margin-right: 2px; }
.sp-acct-av { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ds-gold, #b08d3e); color: #12283f; font-size: 11.5px; font-weight: 700; flex: none; }
.sp-acct-name { font-size: 13px; color: #e7edf3; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .sp-acct-name { display: none; } }
.sp-main { max-width: 820px; margin: 0 auto; padding: 18px 16px 40px; }
.sp-plain, .sp-loading { background: #fff; border: 1px solid var(--ds-line, #dde3e8); border-radius: 10px; padding: 18px; text-align: center; color: var(--ds-muted, #66727e); }
.sp-proj { background: #fff; border: 1px solid var(--ds-line, #dde3e8); border-radius: 10px; margin: 0 0 12px; overflow: hidden; }
.sp-proj-h { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.sp-proj-h b { display: block; font-size: 16px; }
.sp-addr { display: block; color: var(--ds-muted, #66727e); font-size: 13px; }
.sp-count { color: var(--ds-muted, #66727e); font-size: 13px; white-space: nowrap; }
.sp-proj-b { padding: 0 16px 14px; border-top: 1px solid var(--ds-line, #dde3e8); }
.sp-h { font-size: 14px; margin: 14px 0 6px; color: var(--ds-navy, #12283f); }
.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-list li { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ds-line, #dde3e8); font-size: 14px; }
.sp-sched li { grid-template-columns: 150px 1fr; }
.sp-when { color: var(--ds-muted, #66727e); font-size: 13px; }
.sp-st { color: var(--ds-muted, #66727e); font-size: 13px; white-space: nowrap; }
.sp-muted { color: var(--ds-muted, #66727e); }
.sp-note { margin: 12px 0 0; padding: 8px 10px; border: 1px dashed var(--ds-line, #dde3e8); border-radius: 8px; color: var(--ds-muted, #66727e); font-size: 13px; }
@media (max-width: 600px) { .sp-list li, .sp-sched li { grid-template-columns: 1fr; gap: 2px; } }
.sub-portal-back { position: fixed; left: 16px; bottom: 16px; z-index: 9999; }
body.skin-billdr .ks-dialog .fx-dlg-actions .ks-mode { margin-right: auto; }

/* wave489 (2026-11-08): the New-quote chooser's Quote type cards stand
 * at the top of the LEFT RAIL (designflow-panel.js dfChooserKindHtml →
 * quotes.js qc-nav): stacked, one card per kind, the picked one marked;
 * a hairline under them separates the kinds from the shelves. */
.qc-nav .df-kind { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--ds-line, #e3e6ea); min-width: 0; }
.qc-nav .df-kind-lead { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ds-muted, #6b7280); margin: 0 0 2px; }
.qc-nav .df-kind-opts { display: flex; flex-direction: column; gap: 6px; }
.qc-nav .df-kind-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--ds-line, #e3e6ea); border-radius: var(--ds-r, 10px); background: var(--ds-card, #fff); cursor: pointer; }
.qc-nav .df-kind-opt:has(input:checked) { border-color: var(--ds-navy, #1b2b44); box-shadow: inset 3px 0 0 var(--ds-navy, #1b2b44); }
.qc-nav .df-kind-opt input { margin: 0; flex: 0 0 auto; accent-color: var(--ds-navy, #1b2b44); }
.qc-nav .df-kind-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.qc-nav .df-kind-t { font-weight: 600; font-size: var(--ds-fs-sm, 13px); }
.qc-nav .df-kind-s { font-size: 12px; color: var(--ds-muted, #6b7280); }

/* wave540 (2026-11-09): Addie learns walkthroughs — the Kickstart
 * source row + walkthrough tag, and the site/scope report dialog. */
.ks-source { border: 1px solid rgba(124,58,237,.35); background: rgba(124,58,237,.07); border-radius: 10px; padding: 8px 12px; margin: 10px 0 2px; font-size: var(--ds-fs-sm, 13px); }
.ks-vtag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(124,58,237,.12); color: #5b21b6; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.wt-frames { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.wt-frames figure { margin: 0; width: 148px; }
.wt-frames img, .wt-thumb { display: block; width: 100%; border-radius: 8px; border: 1px solid rgba(15,23,42,.12); }
.wt-frames figcaption { font-size: 11px; color: var(--ds-muted, #6b7280); margin-top: 3px; }
.wt-room { border-top: 1px solid rgba(15,23,42,.08); padding-top: 6px; margin-top: 10px; }
.wt-cond-h { font-weight: 600; font-size: var(--ds-fs-sm, 13px); margin: 8px 0 2px; }
.wt-scope { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: var(--ds-fs-sm, 13px); }
.wt-scope th { text-align: left; font-weight: 600; padding: 4px 8px 4px 0; border-bottom: 1px solid rgba(15,23,42,.14); }
.wt-scope td { padding: 5px 8px 5px 0; border-bottom: 1px solid rgba(15,23,42,.06); vertical-align: top; }
.wt-scope .wt-thumb { width: 84px; }
.wt-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(15,23,42,.08); font-size: 11px; font-weight: 600; white-space: nowrap; }
.wt-badge.wt-seen { background: rgba(22,101,52,.14); color: #166534; }
.wt-badge.wt-verify { background: rgba(180,83,9,.15); color: #92400e; margin-right: 6px; }
.wt-note { align-self: center; margin-right: auto; font-size: 12px; }
