/* "Request a quote" (ADR-034) — Portal tokens only; light theme like the Portal. */
.cq { max-width: 880px; margin: 0 auto; padding: 8px 0 48px; color: var(--fg, #1a1a1a); }
.cq-head h1 { font-family: var(--ff-display, serif); font-size: var(--fs-h1, 2rem); margin: 4px 0 12px; }
.cq-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-caption, .75rem); color: var(--fg-muted, #666); margin: 0; }
.cq-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: cq; }
.cq-steps li { counter-increment: cq; font-size: var(--fs-body-sm, .875rem); padding: 4px 10px; border-radius: var(--r-pill, 999px); border: 1px solid var(--border, #ddd); color: var(--fg-muted, #666); }
.cq-steps li::before { content: counter(cq) " · "; }
.cq-steps li.is-current { background: var(--ip-slate-900, #1c2430); color: #fff; border-color: transparent; }
.cq-steps li.is-done { color: var(--fg, #1a1a1a); border-color: var(--border-strong, #999); }
.cq-card { background: var(--bg-card, #fff); border: 1px solid var(--border-hair, #e5e5e5); border-radius: var(--r-lg, 12px); padding: 24px; margin-bottom: 16px; }
.cq-card h2 { font-size: var(--fs-h3, 1.35rem); margin: 0 0 8px; }
.cq-lead { margin: 0 0 16px; }
.cq-hint { display: block; color: var(--fg-muted, #666); font-size: var(--fs-body-sm, .875rem); margin: 4px 0 0; }
.cq-alert { background: var(--ip-red-100, #fdecea); color: var(--ip-red-900, #5a0f0f); border-radius: var(--r-md, 8px); padding: 12px 14px; margin-bottom: 12px; }
/* Live quote audit 2026-10-01: a `display` rule (.cq-grid, the www button styles)
   must never show an element the page hid — the Pickup address and the artwork
   Continue button showed through `hidden`. */
.cq [hidden] { display: none !important; }
.cq-grid, .cq-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.cq-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 0; padding: 0; margin: 0; }
.cq-field--wide { grid-column: 1 / -1; }
.cq-field[hidden] { display: none; }
.cq-field label, .cq-field legend, .cq-label { font-weight: 600; font-size: var(--fs-body-sm, .875rem); }
.cq-field input, .cq-field select, .cq-field textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--border, #ccc); border-radius: var(--r-md, 8px); background: #fff; width: 100%; box-sizing: border-box; }
.cq-section { border: 0; border-top: 1px solid var(--border-hair, #eee); padding: 14px 0 0; margin: 14px 0 0; }
.cq-section > legend { font-family: var(--ff-display, serif); font-weight: 700; padding: 0 8px 0 0; }
.cq-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; }
.cq-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.cq-check[hidden] { display: none; }
.cq-check--solo { font-weight: 400; }
.cq-check input { width: auto; margin-top: 3px; }
.cq-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.cq-actions > :only-child { margin-left: auto; }
.cq-link { background: none; border: 0; color: var(--link, #0b5cad); cursor: pointer; padding: 4px 0; font: inherit; text-align: left; }
.cq-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .cq-choice { grid-template-columns: 1fr; } .cq-card { padding: 16px; } }
.cq-drop, .cq-skip { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 2px dashed var(--border-strong, #999); border-radius: var(--r-lg, 12px); cursor: pointer; background: var(--ip-cream-100, #faf7f0); text-align: left; font: inherit; }
.cq-skip { border-style: solid; border-color: var(--border, #ccc); background: #fff; }
.cq-drop { position: relative; } /* keeps the 1px input inside the card */
.cq-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* The real control is the hidden input, so show keyboard focus on the card
   (audit WWW-021: focus was invisible). */
.cq-drop:has(input:focus-visible) { outline: 3px solid var(--ip-red-cta, #D62A22); outline-offset: 2px; }
.cq-drop span, .cq-skip span { color: var(--fg-muted, #666); font-size: var(--fs-body-sm, .875rem); }
.cq-files { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.cq-file { border: 1px solid var(--border-hair, #e5e5e5); border-radius: var(--r-md, 8px); padding: 12px; }
.cq-file__head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.cq-file__head span { color: var(--fg-muted, #666); font-size: var(--fs-body-sm, .875rem); }
.cq-file__head .cq-link { margin-left: auto; }
.cq-file--checked { border-color: var(--ip-green, #2e7d32); }
.cq-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: var(--fs-body-sm, .875rem); }
.cq-facts dt { color: var(--fg-muted, #666); }
.cq-facts dd { margin: 0; }
.cq-previews { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.cq-previews img { height: 88px; border: 1px solid var(--border-hair, #e5e5e5); border-radius: 4px; background: #fff; }
.cq-suggestion, .cq-detected { background: var(--ip-cream-100, #faf7f0); border-left: 4px solid var(--ip-amber, #e0a100); border-radius: var(--r-md, 8px); padding: 12px 14px; margin-bottom: 14px; }
.cq-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cq-kind { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px; border: 1px solid var(--border, #ccc); border-radius: var(--r-lg, 12px); background: #fff; cursor: pointer; font: inherit; text-align: left; }
.cq-kind:hover { border-color: var(--ip-slate-700, #333); }
.cq-kind.is-suggested { border: 2px solid var(--ip-green, #2e7d32); }
.cq-kind__template { color: var(--fg-muted, #666); font-size: var(--fs-caption, .75rem); }
.cq-kind__tag { background: var(--ip-green, #2e7d32); color: #fff; border-radius: var(--r-pill, 999px); padding: 2px 8px; font-size: var(--fs-caption, .75rem); }
.cq-template-name { font-weight: 400; color: var(--fg-muted, #666); font-size: var(--fs-body-sm, .875rem); }
.cq-evidence { display: inline-block; font-weight: 500; font-size: var(--fs-caption, .75rem); border-radius: var(--r-pill, 999px); padding: 1px 8px; background: #e8f3ea; color: #1b5e20; }
.cq-evidence[data-status="inferred"] { background: #fff4d6; color: #7a4f00; }
.cq-evidence[data-status="changed"] { background: var(--ip-slate-100, #eef0f3); color: var(--ip-slate-700, #333); }
.cq-evidence[hidden] { display: none; }
.cq-qty-options { display: flex; flex-wrap: wrap; gap: 6px; }
.cq-qty-options input { width: 110px; }
.cq-review__section { border-top: 1px solid var(--border-hair, #eee); padding: 10px 0; }
.cq-review__section h3 { font-size: var(--fs-body, 1rem); margin: 0 0 6px; }
.cq-review__section dl { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 4px 16px; margin: 0; }
.cq-review__section dt { color: var(--fg-muted, #666); }
.cq-review__section dd { margin: 0; }
.cq-hp { position: absolute; left: -9999px; }
.cq-done { border-color: var(--ip-green, #2e7d32); }
.cq-fact--warn { color: var(--warning-fg, #92400e); font-weight: 600; }
.cq-fact--warn .cq-hint { font-weight: 400; }
.cq-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 16px; border-bottom: 1px solid var(--border-hair, #e5e5e5); margin-bottom: 16px; flex-wrap: wrap; }
.cq-brand__logo { height: 40px; width: auto; display: block; }
.cq-brand__links { font-size: var(--fs-body-sm, .875rem); color: var(--fg-muted, #666); }
.cq-consent { margin: 4px 0 8px; font-size: var(--fs-body-sm, .875rem); }
.cq-evidence[data-status="entered"] { background: #e9eefc; color: #1f3a8a; }
/* Portal/daisyUI resets strip native checkboxes; the page's checkboxes stay real, tappable boxes. */
.cq input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; min-width: 18px; flex: 0 0 18px; margin: 2px 0 0; }
/* ADR-039: saved-work notices, the account choice, and the page mounted on www. */
.cq-notice { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: #eef6ff; color: #12355b; border-radius: var(--r-md, 8px); padding: 10px 14px; margin-bottom: 12px; }
.cq-notice[hidden] { display: none; }
.cq-notice--warn { background: #fff4d6; color: #5c3b00; }
.cq-notice__actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.cq-account { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: var(--ip-cream-100, #faf7f0); border-radius: var(--r-md, 8px); padding: 12px 14px; margin-bottom: 16px; }
.cq-account span { flex: 1 1 260px; color: var(--fg-muted, #555); font-size: var(--fs-body-sm, .875rem); }
.cq-account-hint { margin: -8px 0 12px; }
.cq-account-hint .cq-link { display: inline; padding: 0; }
.cq--embed { font-family: inherit; text-align: left; }
.cq--embed .ip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-md, 8px); border: 1px solid var(--border-strong, #999); background: #fff; color: var(--fg, #1a1a1a); font: inherit; font-weight: 600; cursor: pointer; }
.cq--embed .ip-btn--primary { background: var(--ip-slate-900, #1c2430); border-color: transparent; color: #fff; }
.cq--embed .ip-btn[disabled] { opacity: .6; cursor: progress; }
.cq-qty-option { display: inline-flex; align-items: center; gap: 2px; }
.cq-qty-option .cq-link { padding: 4px 6px; line-height: 1; font-size: 1.1rem; color: var(--fg-muted, #666); }

/* The file as the finished piece (ADR-070, Artwork step). */
.cq-piece { margin-top: 10px; border: 1px solid var(--border-hair, #e5e5e5); border-radius: 8px; overflow: hidden; background: #fff; }
.cq-piece__note { margin: 0; padding: 0 12px 10px; font-size: 12px; }
.cq-piece__head { margin: 0; padding: 8px 12px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border-hair, #e5e5e5); }
.cq-piece__stage { height: 320px; background: radial-gradient(ellipse at 50% 38%, #fbfaf6 0%, #f1ece0 60%, #e7e0cf 100%); }
.cq-piece__controls { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 12px 0; }
.cq-piece__arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-hair, #e5e5e5); background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.cq-piece__arrow:disabled { opacity: .35; cursor: default; }
.cq-piece__label { min-width: 160px; text-align: center; font-size: 13px; }
.cq-piece__caption { text-align: center; margin: 6px 12px 10px; }
@media (max-width: 560px) { .cq-piece__stage { height: 260px; } .cq-piece__label { min-width: 110px; } }

/* Andy 2026-10-08: how the files go together, products, roles, versions, preview of choices */
[data-cq-shared] { display: none !important; }
.cq-grouping, .cq-structure, .cq-product-box { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border-hair, #e5e5e5); border-radius: 10px; background: var(--surface-2, #fafafa); }
.cq-option { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; cursor: pointer; }
.cq-option input { margin: 0; }
.cq-option .cq-hint { grid-column: 2; margin: 0; }
.cq-structure__sub { margin-top: 6px; }
.cq-assign { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cq-assign li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cq-product-head { margin: 0 0 6px; }
.cq-product-box__title { margin: 0; font-weight: 600; }
.cq-roles, .cq-versions { display: flex; flex-direction: column; gap: 6px; }
.cq-roles__row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.cq-versions__row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.cq-piece__provisional { margin: 0; padding: 0 12px; font-size: 12px; }
@media (max-width: 560px) { .cq-roles__row { grid-template-columns: 1fr; } }
.cq-versions input, .cq-roles select, .cq-assign select { border: 1px solid var(--border, #cfcfcf); border-radius: 6px; padding: 6px 8px; font: inherit; background: #fff; }

/* A printed size as Width (in) and Height (in) boxes (ADR-182). */
.cq-field .size-pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 8px; }
.cq-field .size-pair__side { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.cq-field .size-pair__side input { width: 7.5em; }
.cq-field .size-pair__by { padding-bottom: 10px; }
.cq-field .size-pair__legacy { flex-basis: 100%; }

/* A book's Closed and Open size drawn, and whether the binding can make it (ADR-184). */
.book-geometry { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; margin: 4px 0 12px; grid-column: 1 / -1; }
.book-geometry__shape { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .8125rem; }
.book-geometry__page { fill: #fff; stroke: #2E3440; stroke-width: 1.5; }
.book-geometry__fold { stroke: #5A6478; stroke-width: 1; stroke-dasharray: 3 2; }
.book-geometry__fit { flex-basis: 100%; margin: 0; }
.book-geometry__fit[data-fits="false"] { color: #C8281F; font-weight: 600; }
