/* =====================================================================
   public/css/quickQuoteApp.css - the standalone Quick Quote product
   ---------------------------------------------------------------------
   Three prefixes, one system (public/css/tokens.css):

     .qqa-*  the roofer's dashboard (/app). The dashboard shell loads
             tokens.css, admin.css, adminSettings.css, modal.css and
             toast.css FIRST, so the sidebar (.admin-*), every shared
             component (.wk-*, .btn, .settings-*, .lead-pill, .lead-action)
             and the toasts and modals are the Walkable ones. This file holds
             only what the product adds on top: the page-header voice, the
             status row in the sidebar, the lead table, the setup checklist,
             the usage meter, snippets, the preview frame, the plan card.
     .qqm-*  the auth pages' additions to the Walkable signup shell
             (auth.css + platformSignup.css), at the end of this file. The
             marketing site itself (/, /legal, …) is NOT here: it loads the
             Walkable marketing sheet (platformMarketing.css, .wkm-*) plus
             quickQuoteMarketing.css (.qqm-*).
     .qq-*   the product mark, shared by the dashboard surfaces.

   Product-branded throughout (paper / asphalt / safety). The roofer's own
   colors appear only on their public quote page, which uses
   quickQuoteRoof.css + quickQuoteAppQuote.css instead.

   Selector note: admin.css styles inputs as `.admin-body input[type=...]`
   (specificity 0,2,1). Anything here that adjusts an input must match that
   weight, hence the `.admin-body` prefix on those rules.
   ===================================================================== */

/* ─── Shared mark ─────────────────────────────────────────────────── */
.qq-mark { display: block; flex: 0 0 auto; }

.qq-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}
.qq-brand__svg { display: block; height: 32px; width: auto; overflow: visible; }
.qq-brand__by {
  font-family: var(--brand-font-body, var(--font-body));
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  line-height: 1;
}
.qq-brand--dark .qq-brand__by { color: var(--fg-3); }

/* The sidebar and the mobile header size the wordmark exactly as the
   Walkable admin shell sizes "walkable" (admin.css .admin-brand__walkable). */
.admin-sidebar .qq-brand__svg { height: 32px; }
.admin-mobile-header__brand .qq-brand__svg { height: 26px; }

/* =====================================================================
   DASHBOARD (.qqa-*)
   ===================================================================== */

/* Body base. The dashboard gets the same values from admin.css; the
   signed-out error page loads only tokens.css and this file. */
.qqa-body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper-50);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
.qqa-body *, .qqa-body *::before, .qqa-body *::after { box-sizing: border-box; }

/* [hidden] must beat component display rules (.lead-action is inline-grid,
   .wk-tab-panel is block); the script toggles the attribute on both. */
.qqa-body [hidden] { display: none !important; }

.qqa-body .btn { gap: 6px; line-height: 1.5; }
.qqa-body .btn svg { flex: 0 0 auto; }
.qqa-body .btn.btn-sm svg { width: 14px; height: 14px; }

.qqa-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--asphalt-900);
  color: var(--paper-50);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
}
.qqa-skip:focus { left: 8px; }

/* ─── Sidebar: quote page status row ──────────────────────────────── */
.admin-sidebar__link--status { font-weight: 500; }
.admin-sidebar__link--status .admin-sidebar__icon { opacity: 1; transition: color var(--dur-fast) var(--ease-out); }
.qqa-status--ok .admin-sidebar__icon { color: var(--moss-500); }
.qqa-status--warn .admin-sidebar__icon { color: var(--sun-500); }
.qqa-status--off .admin-sidebar__icon { color: var(--slate-500); }
.qqa-status__ring { transform-origin: 12px 12px; transform-box: view-box; }

/* A live page breathes: the halo around the dot swells and fades, once
   every few seconds, the way a status light does. Off and warning states
   hold still. */
@media (prefers-reduced-motion: no-preference) {
  .qqa-status--ok .qqa-status__ring { animation: qqa-ping 2.8s var(--ease-out) infinite; }
}
@keyframes qqa-ping {
  0%   { transform: scale(0.55); opacity: 0.35; }
  70%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ─── Page chrome ─────────────────────────────────────────────────── */
/* Same voice as the Walkable list pages (leads-page / customers-page in
   admin.css): micro-caps eyebrow, 28px display h1, 13px slate sub. */
.qqa-page { display: flex; flex-direction: column; gap: 22px; }

.qqa-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.qqa-page__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qqa-eyebrow {
  font-family: var(--brand-font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--fg-3);
}
.qqa-h1 {
  font-family: var(--brand-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  margin: 0;
  line-height: var(--lh-snug);
  text-wrap: balance;
}
.qqa-sub {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  color: var(--fg-3);
  max-width: 56ch;
  line-height: var(--lh-normal);
  text-wrap: pretty;
}
.qqa-page__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .qqa-h1 { font-size: 24px; }
  .qqa-page__actions { width: 100%; }
}

/* Content enters with a short rise, staggered top to bottom, so a page
   settles in rather than popping. 360ms out, 40ms between blocks. */
@media (prefers-reduced-motion: no-preference) {
  .qqa-page > * { animation: qqa-rise 360ms var(--ease-out) both; }
  .qqa-page > :nth-child(2) { animation-delay: 40ms; }
  .qqa-page > :nth-child(3) { animation-delay: 80ms; }
  .qqa-page > :nth-child(4) { animation-delay: 120ms; }
  .qqa-page > :nth-child(5) { animation-delay: 160ms; }
  .qqa-page > :nth-child(n + 6) { animation-delay: 200ms; }
  .wk-tab-panel.is-active { animation: qqa-fade 180ms var(--ease-out); }
  /* The lead detail page sits directly in .admin-content, like the Walkable
     customer hub; give its three blocks the same rise. */
  .admin-content > .wk-detail-back,
  .admin-content > .wk-detail-header,
  .admin-content > .qqa-grid { animation: qqa-rise 360ms var(--ease-out) both; }
  .admin-content > .wk-detail-header { animation-delay: 40ms; }
  .admin-content > .qqa-grid { animation-delay: 80ms; }
}
@keyframes qqa-rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes qqa-fade { from { opacity: 0; } to { opacity: 1; } }

/* The tab rail scrolls sideways on phones instead of pushing the page
   wider once counts reach two digits; tabs grow to thumb height, as the
   Walkable list pages do at 640px and below. */
.qqa-body .wk-tabs {
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.qqa-body .wk-tabs::-webkit-scrollbar { display: none; }
.qqa-body .wk-tabs .wk-tab { flex: 0 0 auto; }
@media (max-width: 640px) {
  .qqa-body .wk-tabs .wk-tab { padding: 11px 16px; }
  .qqa-anchors .wk-chip { padding: 11px 14px; }
}

/* Inline text link (section-head actions, table footers). */
.qqa-link {
  font-family: var(--brand-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.qqa-link:hover { color: var(--fg-1); text-decoration: underline; }
.qqa-link svg { vertical-align: -2px; margin-left: 2px; }

/* Body copy inside a section that is not a form. */
.qqa-prose { margin: 0; font-size: 14px; color: var(--fg-2); line-height: var(--lh-normal); max-width: 64ch; text-wrap: pretty; }
.qqa-prose + .qqa-prose { margin-top: 8px; }
.qqa-prose code, .qqa-hint code {
  font-family: var(--brand-font-mono);
  font-size: 12.5px;
  color: var(--fg-1);
  background: var(--paper-100);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}
.qqa-hint { font-size: 12.5px; color: var(--fg-3); line-height: var(--lh-normal); }
.qqa-body p.qqa-hint { margin: 0; }
.qqa-contact-actions + .qqa-hint,
.qqa-invoice + .qqa-hint,
.qqa-meter + .qqa-hint,
.qqa-kv + .qqa-hint { margin-top: 12px; }
.qqa-snippet__label code { font-family: var(--brand-font-mono); font-size: 12.5px; color: var(--fg-1); background: var(--paper-100); padding: 1px 5px; border-radius: var(--radius-xs); }

/* admin.css makes every link inherit its color; inside copy a link has to
   read as one. */
.qqa-body .qqa-prose a,
.qqa-body .qqa-hint a,
.qqa-body .wk-banner__hint a,
.qqa-body .wk-section__sub a,
.qqa-body .wk-empty a {
  color: var(--fg-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.qqa-body .qqa-prose a:hover,
.qqa-body .qqa-hint a:hover,
.qqa-body .wk-banner__hint a:hover,
.qqa-body .wk-section__sub a:hover,
.qqa-body .wk-empty a:hover { color: var(--sky-500); }

/* Vertical rhythm between blocks that share a section body. */
.qqa-kv + .wk-banner,
.qqa-kv + .qqa-contact-actions,
.wk-banner + .qqa-kv,
.wk-banner + .qqa-contact-actions { margin-top: 16px; }
.qqa-meter + .qqa-invoice { margin-top: 18px; }

/* Pills that carry a sentence ("Payment failed") keep their case; the
   design system capitalizes single-word stage labels. */
.wk-section__actions .wk-pill { text-transform: none; }

/* Banner asides wrap under the text on narrow screens instead of
   squeezing the copy. */
@media (max-width: 640px) {
  .qqa-page .wk-banner { flex-wrap: wrap; }
  .qqa-page .wk-banner__aside { width: 100%; padding-left: 34px; }
}

/* ─── Stat cards ──────────────────────────────────────────────────── */
/* Walkable's pulse cards, with a numeric variant: a count deserves the
   display face at a size that reads from across the room. */
.qqa-stats { margin-bottom: 0; }
a.wk-stat-card { text-decoration: none; color: inherit; }
div.wk-stat-card { cursor: default; }
div.wk-stat-card:hover { border-color: var(--border-subtle); box-shadow: none; }
.wk-stat-card--num .wk-stat-card__value {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.wk-stat-card--num .wk-stat-card__value small {
  font-family: var(--brand-font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0;
  margin-left: 4px;
}

@media (max-width: 1023px) {
  .qqa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qqa-stats > .wk-stat-card:first-child { grid-column: auto; }
}

/* ─── Sections ────────────────────────────────────────────────────── */
.qqa-grid { display: grid; gap: 18px; align-items: start; }
.qqa-grid--main { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
.qqa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .qqa-grid--main, .qqa-grid--2 { grid-template-columns: 1fr; } }

.wk-section__body.wk-section__body--flush { padding: 0; }

/* An empty state that lives inside a section body needs no second frame. */
.wk-section .wk-empty { border: 0; border-radius: 0; background: transparent; padding: 44px 24px; }
.wk-empty strong { color: var(--fg-1); font-weight: 600; font-size: 14px; }
.wk-empty p { max-width: 44ch; text-wrap: pretty; }

/* ─── Setup checklist (overview) ──────────────────────────────────── */
.qqa-setup__progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--paper-200);
  overflow: hidden;
  margin: 0 0 14px;
}
.qqa-setup__bar {
  height: 100%;
  background: var(--moss-500);
  border-radius: inherit;
  transform-origin: left center;
  transition: width var(--dur-slow) var(--ease-out);
}
.qqa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qqa-step {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.qqa-steps li:last-child .qqa-step { border-bottom: 0; padding-bottom: 2px; }
.qqa-step:hover { color: var(--brand-primary); text-decoration: none; }
.qqa-step__mark {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  border: 1.5px solid var(--slate-300);
  font-variant-numeric: tabular-nums;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.qqa-step.is-done .qqa-step__mark { background: var(--moss-500); border-color: var(--moss-500); color: #fff; }
.qqa-step.is-done { color: var(--fg-3); }
.qqa-step.is-done .qqa-step__label { text-decoration: line-through; text-decoration-color: var(--slate-300); }
.qqa-step.is-next .qqa-step__mark {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}
.qqa-step__arrow {
  color: var(--slate-300);
  display: inline-flex;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.qqa-step:hover .qqa-step__arrow { color: var(--brand-primary); transform: translateX(2px); }

/* ─── Usage meter (billing, overview) ─────────────────────────────── */
.qqa-meter { display: flex; flex-direction: column; gap: 10px; }
.qqa-meter__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.qqa-meter__big {
  font-family: var(--brand-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.qqa-meter__big small {
  font-family: var(--brand-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0;
  margin-left: 4px;
}
.qqa-meter__track { height: 8px; border-radius: var(--radius-pill); background: var(--paper-200); overflow: hidden; }
.qqa-meter__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand-primary);
  transform-origin: left center;
  transition: width var(--dur-slow) var(--ease-out);
}
.qqa-meter__fill.is-over { background: var(--sun-500); }
.qqa-meter__note { font-size: 12.5px; color: var(--fg-3); }

/* Bars grow into place on load. */
@media (prefers-reduced-motion: no-preference) {
  .qqa-meter__fill, .qqa-setup__bar { animation: qqa-grow 640ms var(--ease-out) both; animation-delay: 120ms; }
}
@keyframes qqa-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ─── Lead table ──────────────────────────────────────────────────── */
/* A wk-table with fixed column widths so long addresses ellipsize inside
   the card instead of widening it. The wrap scrolls sideways if it must. */
.qqa-table--leads { table-layout: fixed; min-width: 640px; }
.qqa-table--leads col.is-grow { width: auto; }
/* Inside a section (the overview's recent leads) the table is fluid: four
   columns fit any width the column gives it, and the address ellipsizes. */
.wk-section__body--flush .qqa-table--leads { min-width: 0; }
/* !important for the same reason as the mobile rule below: admin.css's
   legacy table selector outranks anything class-based. */
.wk-section__body--flush .wk-table__head th:first-child,
.wk-section__body--flush .wk-table__body td:first-child { padding-left: 22px !important; }
.wk-section__body--flush .wk-table__head th:last-child,
.wk-section__body--flush .wk-table__body td:last-child { padding-right: 22px !important; }
.wk-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-body table.wk-table thead th.is-num { text-align: right !important; }
.qqa-lead__name {
  display: block;
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.qqa-lead__name:hover { color: var(--brand-primary); text-decoration: none; }
.qqa-lead__meta {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qqa-lead__addr {
  display: block;
  color: var(--fg-2);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qqa-lead__amount { font-weight: 600; }
.qqa-lead__amount--manual { color: var(--fg-3); font-weight: 500; }
.qqa-lead__time { color: var(--fg-3); font-size: 13px; }
.qqa-row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }

/* Rows leave to the left and arrive with a brief brand tint when the
   script moves them between buckets. */
.wk-table__body tr.is-leaving {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.wk-table__body tr.is-entering td { animation: qqa-row-in 320ms var(--ease-out); }
@keyframes qqa-row-in {
  from { background: var(--brand-primary-soft); }
  to   { background: transparent; }
}

@media (max-width: 768px) {
  /* Stack each row into a card: label on the left, value on the right. */
  .qqa-table--leads { min-width: 0; table-layout: auto; }
  .qqa-table--leads colgroup,
  .qqa-table--leads thead { display: none; }
  .qqa-table--leads,
  .qqa-table--leads tbody,
  .qqa-table--leads tr,
  .qqa-table--leads td { display: block; }
  .qqa-table--leads tr { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
  .qqa-table--leads tr:last-child { border-bottom: 0; }
  /* !important: admin.css has a legacy `.admin-body table:not(...)x4 tbody td`
     rule at specificity (0,5,3) that no sane selector here can outrank. */
  .qqa-table--leads .wk-table__body td { padding: 3px 0 !important; border-bottom: 0 !important; border-radius: 0; }
  .qqa-table--leads td.is-num { text-align: left; }
  .qqa-table--leads td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 76px;
    margin-right: 8px;
    color: var(--fg-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--tracking-cap);
    text-transform: uppercase;
  }
  .qqa-lead__addr, .qqa-lead__meta { white-space: normal; }
  .qqa-table--leads td[data-label]:not([data-label=""]) { display: flex; align-items: baseline; gap: 8px; }
  .qqa-table--leads td[data-label]:not([data-label=""])::before { flex: 0 0 76px; margin-right: 0; }
  .qqa-table--leads .qqa-lead__addr { display: inline; }
  .wk-section__body--flush .qqa-table--leads .wk-table__body td:first-child,
  .wk-section__body--flush .qqa-table--leads .wk-table__body td:last-child { padding-left: 0 !important; padding-right: 0 !important; }
  .qqa-row-actions { justify-content: flex-start; margin-top: 8px; }
}

/* Lead detail on phones and tablets: Walkable hides the header actions and
   swaps in a quick bar; this page keeps its actions, wrapped under the name. */
@media (max-width: 1024px) {
  .qqa-body .wk-detail-header__actions { display: inline-flex; flex-wrap: wrap; width: 100%; }
  .qqa-body .wk-detail-header { margin-bottom: 20px; }
  .settings-fieldset[id] { scroll-margin-top: 76px; }
}

/* ─── Key / value facts (lead detail, billing) ────────────────────── */
.qqa-kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0;
  font-size: 14px;
  align-items: baseline;
}
.qqa-kv dt {
  font-family: var(--brand-font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--fg-3);
}
.qqa-kv dd { margin: 0; color: var(--fg-1); font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qqa-kv dd.is-muted { color: var(--fg-3); font-weight: 400; }
.qqa-kv a { color: var(--fg-link); text-decoration: none; }
.qqa-kv a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .qqa-kv { grid-template-columns: 1fr; gap: 4px; }
  .qqa-kv dd + dt { margin-top: 10px; }
}

/* ─── Lead detail ─────────────────────────────────────────────────── */
.qqa-estimate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--paper-100);
}
.qqa-estimate__label {
  font-family: var(--brand-font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--fg-3);
}
.qqa-estimate__amount {
  font-family: var(--brand-font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.qqa-estimate__amount--manual { font-size: 22px; color: var(--fg-2); }
.qqa-estimate__range { font-size: 13px; color: var(--fg-3); }
.qqa-map {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 420;
  object-fit: cover;
  background: var(--asphalt-800);
}
.qqa-note { white-space: pre-wrap; font-size: 14px; color: var(--fg-2); margin: 0; line-height: var(--lh-normal); }
.qqa-contact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ─── Forms (quote page settings, account) ────────────────────────── */
/* Fields use adminSettings.css (.settings-form, .settings-fieldset,
   .settings-form__grid, .settings-form__group). Below: adornments and the
   product's own rows. */

/* "$" before and "per square" after a number input. */
.qqa-affix { position: relative; }
.qqa-affix__pre,
.qqa-affix__post {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-3);
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
}
.qqa-affix__pre { left: 12px; }
.qqa-affix__post { right: 12px; }
.admin-body .qqa-affix--pre input { padding-left: 26px; }
.admin-body .qqa-affix--post input { padding-right: 96px; }
.admin-body .qqa-affix input { font-variant-numeric: tabular-nums; }
.admin-body .settings-form__group input[type="number"],
.admin-body .settings-form__group input[type="tel"] { padding-top: 10px; padding-bottom: 10px; min-height: 44px; }
.admin-body .settings-form__group input[aria-invalid="true"],
.admin-body .wk-form__field input[aria-invalid="true"] {
  border-color: var(--brick-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brick-500) 14%, transparent);
}
.admin-body .wk-form__field input[disabled],
.admin-body .wk-form__field input[readonly] {
  background: var(--paper-100);
  color: var(--fg-3);
  cursor: not-allowed;
}
.admin-body .wk-form__field input { min-height: 44px; padding: 10px 12px; }

/* A settings row with a switch on the right: the whole row is the label. */
.qqa-switchrows { display: flex; flex-direction: column; }
.qqa-switchrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  margin: 0;
}
.qqa-switchrow:first-child { padding-top: 2px; }
.qqa-switchrow:last-child { border-bottom: 0; padding-bottom: 2px; }
.qqa-switchrow__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qqa-switchrow__title { font-size: 14px; font-weight: 600; color: var(--fg-1); }
.qqa-switchrow__desc { font-size: 12.5px; color: var(--fg-3); max-width: 56ch; line-height: var(--lh-normal); }
.qqa-switchrow .settings-switch { min-height: 0; margin-top: 1px; }
.qqa-switchrow.is-disabled { cursor: not-allowed; }
.qqa-switchrow .settings-switch input:disabled + .settings-switch__track { opacity: 0.5; }

/* Contact-field modes: a label + segmented radio per field. */
.qqa-modes { display: flex; flex-direction: column; }
.qqa-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.qqa-mode:first-child { padding-top: 0; }
.qqa-mode:last-child { border-bottom: 0; padding-bottom: 0; }
.qqa-mode__label { font-size: 14px; font-weight: 500; color: var(--fg-1); }
.qqa-mode .settings-field-error { flex-basis: 100%; }
@media (max-width: 480px) {
  .qqa-mode { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qqa-mode .wk-segmented { width: 100%; }
  .qqa-mode .wk-segmented__opt { flex: 1 1 0; }
}
.qqa-segment .wk-segmented__opt { position: relative; }
.qqa-segment .wk-segmented__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.qqa-segment .wk-segmented__opt:has(input:checked) { background: var(--bg-surface); color: var(--fg-1); box-shadow: var(--shadow-xs); }
.qqa-segment .wk-segmented__opt:has(input:focus-visible) { box-shadow: var(--shadow-xs), 0 0 0 3px var(--brand-primary-soft); }
.qqa-segment .wk-segmented__opt:has(input:disabled) { opacity: 0.4; }
.qqa-segment .wk-segmented__opt:has(input:disabled) input { cursor: not-allowed; }

/* Section jump chips on the quote page settings. */
.qqa-anchors { align-self: flex-start; }
.qqa-anchors .wk-chip { text-decoration: none; }
.settings-fieldset[id] { scroll-margin-top: 24px; }

/* ─── Snippets (add to website) ───────────────────────────────────── */
.qqa-snippets { display: flex; flex-direction: column; gap: 12px; }
.qqa-snippet__label { margin: 0; font-size: 13px; color: var(--fg-2); }
.qqa-snippet { position: relative; }
.qqa-snippet pre {
  margin: 0;
  padding: 14px 104px 14px 16px;
  border-radius: var(--radius-md);
  background: var(--asphalt-900);
  color: var(--paper-50);
  font-family: var(--brand-font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.qqa-snippet__copy { position: absolute; top: 10px; right: 10px; }
@media (max-width: 560px) {
  .qqa-snippet pre { padding-right: 16px; }
  .qqa-snippet__copy { position: static; margin-top: 8px; display: flex; justify-content: flex-end; }
}
.admin-body .qqa-snippet__copy .btn {
  background: var(--asphalt-800) !important;
  color: var(--paper-50) !important;
  border-color: var(--asphalt-700) !important;
}
.admin-body .qqa-snippet__copy .btn:hover {
  background: var(--asphalt-700) !important;
  border-color: var(--asphalt-600) !important;
}
/* Copied state for any copy button (the script sets data-copied). */
.admin-body .btn[data-copied="true"],
.admin-body .qqa-snippet__copy .btn[data-copied="true"] {
  background: var(--status-success-bg) !important;
  color: var(--status-success-fg) !important;
  border-color: transparent !important;
}

/* Read-only link with its actions. */
.qqa-linkrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.qqa-linkrow__actions { display: inline-flex; gap: 8px; }
.admin-body .qqa-linkrow input[readonly] {
  font-family: var(--brand-font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
  background: var(--paper-50);
  cursor: text;
  min-height: 38px;
  text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .qqa-linkrow { grid-template-columns: 1fr; }
}

/* ─── Preview frame ───────────────────────────────────────────────── */
.qqa-preview { display: flex; flex-direction: column; gap: 14px; }
.qqa-preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qqa-frame {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: min(880px, calc(100vh - 220px));
  min-height: 560px;
  border-radius: var(--radius-lg);
  background: var(--paper-100);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: max-width var(--dur-slow) var(--ease-out);
}
.qqa-frame--mobile { max-width: 400px; }
.qqa-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── Billing ─────────────────────────────────────────────────────── */
.qqa-plan { display: flex; flex-direction: column; gap: 14px; }
.qqa-plan__price { display: flex; align-items: baseline; gap: 6px; }
.qqa-plan__amount {
  font-family: var(--brand-font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.qqa-plan__per { font-size: 14px; color: var(--fg-3); }
.qqa-plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-1); }
.qqa-plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.qqa-plan__list svg { flex: 0 0 auto; color: var(--moss-500); margin-top: 3px; }
.qqa-plan__list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.qqa-invoice { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; margin: 0; }
.qqa-invoice dt { color: var(--fg-2); }
.qqa-invoice dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.qqa-invoice .is-total { padding-top: 8px; border-top: 1px solid var(--border-subtle); font-weight: 700; color: var(--fg-1); }

/* ─── Error pages ─────────────────────────────────────────────────── */
.qqa-errorpage { padding: 64px 24px; gap: 6px; }
.qqa-errorpage__code {
  display: block;
  font-family: var(--brand-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-cap);
  color: var(--brand-primary);
}
.qqa-errorpage__title { margin: 4px 0 2px; font-size: 24px; font-weight: 700; }
.qqa-errorpage .btn { margin-top: 12px; }


/* ─── Auth pages (signup, login, reset) ───────────────────────────── */
/* The shell is the Walkable signup shell (platformSignup.css, .wks-*);
   these are the Quick Quote additions: the mark in the bar, the card
   width, the quote-page address preview, the optional-field label. */
.qqm-auth .wks-brand svg { display: block; height: 28px; width: auto; aspect-ratio: 214 / 44; overflow: visible; }
.qqm-auth .auth-card--wide { max-width: 560px; }
.qqm-auth .auth-card--wide + .wks-foot { max-width: 560px; }
.qqm-auth .auth-slug { font-size: var(--fs-small); color: var(--fg-3); }
.qqm-auth .auth-slug code { font-family: var(--font-mono); color: var(--fg-1); font-size: 12.5px; }
.qqm-auth .auth-label-optional { font-weight: 500; color: var(--fg-3); }

/* ─── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .qqa-step,
  .qqa-step__mark,
  .qqa-step__arrow,
  .qqa-meter__fill,
  .qqa-setup__bar,
  .qqa-frame,
  .qqa-link,
  .qqa-lead__name,
  .admin-sidebar__link--status .admin-sidebar__icon,
  .wk-table__body tr.is-leaving { transition: none; }
  .wk-table__body tr.is-entering td { animation: none; }
}
