
/* ==========================================================================
   One Kind Express — Core Design System Tokens & Modern Web Primitives
   Faithfully grounded in onekindexpress.com brand palette & Schibsted Grotesk
   ========================================================================== */

.oke-q {
  color-scheme: light dark;

  
  

  /* Brand Constants */
  --oke-ink: #101311;
  --oke-ink-2: #141815;
  --oke-ink-3: #1b201c;
  --oke-ink-4: #242a25;
  --oke-obsidian: #0b0d0c;
  --oke-cream: #f3f1eb;
  --oke-paper: #fbfaf6;
  --oke-white: #ffffff;

  --oke-gold: #f0c419;
  --oke-gold-deep: #d9ac0b;
  --oke-gold-soft: rgba(240, 196, 25, 0.14);
  --oke-gold-text-light: #7a5d00;

  --oke-emerald: #1f8a5b;
  --oke-emerald-dark: #34c786;
  --oke-coral: #c93b2b;
  --oke-coral-dark: #f06e60;
  --oke-sky: #2563eb;
  --oke-sky-dark: #60a5fa;

  /* Adaptive Semantic Tokens via light-dark() */
  --bg-page: light-dark(#f3f1eb, #0b0d0c);
  --bg-surface: light-dark(#ffffff, #141815);
  --bg-surface-2: light-dark(#fbfaf6, #1b201c);
  --bg-surface-3: light-dark(#ebe7dd, #242a25);
  --bg-header: light-dark(rgba(251, 250, 246, 0.88), rgba(11, 13, 12, 0.86));

  --text-primary: light-dark(#101311, #fbfaf6);
  --text-secondary: light-dark(#4a524b, #b6bcb6);
  --text-muted: light-dark(#646d65, #89918a);
  --text-accent: light-dark(#7a5d00, #f0c419);
  --text-on-gold: #101311;

  --border-subtle: light-dark(rgba(16, 19, 17, 0.11), rgba(251, 250, 246, 0.11));
  --border-strong: light-dark(rgba(16, 19, 17, 0.22), rgba(251, 250, 246, 0.22));
  --border-accent: light-dark(rgba(196, 152, 0, 0.55), rgba(240, 196, 25, 0.55));

  --status-ok: light-dark(#176f48, #3ad08e);
  --status-ok-bg: light-dark(rgba(23, 111, 72, 0.09), rgba(58, 208, 142, 0.13));
  --status-err: light-dark(#b92d20, #ff7b6d);
  --status-err-bg: light-dark(#fdf1ef, rgba(240, 110, 96, 0.13));
  --status-warn: light-dark(#8a6400, #f0c419);
  --status-warn-bg: light-dark(rgba(240, 196, 25, 0.16), rgba(240, 196, 25, 0.14));

  --shadow-sm: light-dark(
    0 1px 2px rgba(16, 19, 17, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.35)
  );
  --shadow-md: light-dark(
    0 10px 30px rgba(16, 19, 17, 0.07),
    0 14px 36px rgba(0, 0, 0, 0.45)
  );
  --shadow-lg: light-dark(
    0 24px 64px rgba(16, 19, 17, 0.12),
    0 32px 84px rgba(0, 0, 0, 0.65)
  );

  /* High-contrast brand accent for native form inputs (>12:1 against both surfaces) */
  --control-accent: light-dark(#101311, #f0c419);

  /* Typography — Pure One Kind Express Schibsted Grotesk (no generic monospace) */
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sig: "Caveat", "Segoe Script", cursive;

  --track-display: -0.038em;
  --track-heading: -0.025em;
  --track-label: 0.1em;

  /* Radii — Crisp Swiss-Industrial */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);

  --container: 1320px;
}

.oke-q *, .oke-q *::before, .oke-q *::after {
  box-sizing: border-box;
}

.oke-q {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.oke-q {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  accent-color: var(--control-accent);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.oke-q img, .oke-q svg {
  display: block;
  max-width: 100%;
}

.oke-q :is(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

.oke-q a {
  color: inherit;
}

/* Visually hidden accessible utility */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.tnum {
  font-variant-numeric: lining-nums;
}

.mono {
  font-family: var(--font-mono);
}

/* Focus visibility */
.oke-q :focus-visible {
  outline: 2px solid var(--oke-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Site Shell Header & Showcase View Switcher
   ========================================================================== */

.oke-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.oke-topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.72rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.oke-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.oke-brand__svg {
  width: 44px;
  height: 27px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.oke-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.oke-brand__name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oke-brand__sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Primary Deliverable Switcher */
.showcase-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.showcase-nav__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  padding: 0.5rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.showcase-nav__btn:hover {
  color: var(--text-primary);
}

.showcase-nav__btn[aria-selected="true"] {
  background: var(--oke-ink);
  color: var(--oke-paper);
}

/* Invert active pill in dark mode */



.showcase-nav__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.75;
}

.oke-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost-pill:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
}

.btn-gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 1.05rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--oke-gold);
  color: var(--oke-ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.btn-gold-pill:hover {
  background: #f5ce33;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-gold-pill:active {
    transform: scale(0.97);
  }
}

/* Dark mode toggle button (pure CSS branching for active option) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--border-strong);
}

.theme-toggle-btn .opt-to-light {
  display: none;
}
.theme-toggle-btn .opt-to-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}






/* View Panels */
.view-panel[hidden] {
  display: none;
}

/* ==========================================================================
   Native Accordion (<details>::details-content) with intrinsic size motion
   ========================================================================== */

details.oke-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  overflow: clip;
  transition: border-color 0.2s ease;
}

details.oke-accordion[open] {
  border-color: var(--border-strong);
}

details.oke-accordion > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.05rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  color: var(--text-primary);
  transition: background-color 0.18s ease;
}

details.oke-accordion > summary::-webkit-details-marker {
  display: none;
}

details.oke-accordion > summary:hover {
  background: var(--bg-surface-3);
}

details.oke-accordion > summary::before {
  content: "";
  inline-size: 0.95rem;
  block-size: 0.95rem;
  flex-shrink: 0;
  background-color: var(--text-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

details.oke-accordion[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  details.oke-accordion > summary::before {
    transition: rotate 0.24s var(--ease-out);
  }
}

details.oke-accordion::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

details.oke-accordion:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  details.oke-accordion::details-content {
    transition-property: block-size, content-visibility, display;
    transition-duration: 0.32s;
    transition-timing-function: var(--ease-out);
    transition-behavior: allow-discrete;
  }
}

.oke-accordion__body {
  padding: 0 1.05rem 1.05rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Native Modal <dialog> with Top-Layer Animation & Scroll Containment
   ========================================================================== */

dialog.oke-dialog {
  width: min(640px, calc(100vw - 2rem));
  max-height: min(86dvh, 760px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.oke-dialog {
    transform: translateY(14px) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.oke-dialog {
    transition-duration: 0.1s;
  }
}

dialog.oke-dialog:modal {
  overscroll-behavior: contain;
}

dialog.oke-dialog::backdrop {
  background-color: rgba(11, 13, 12, 0);
  backdrop-filter: blur(0px);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

:is(dialog.oke-dialog[open]):where(:not([data-closing])) {
  display: flex;
  flex-direction: column;
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    transform: translateY(0) scale(1);

    @starting-style {
      transform: translateY(14px) scale(0.97);
    }
  }

  &::backdrop {
    background-color: rgba(11, 13, 12, 0.62);
    backdrop-filter: blur(6px);

    @starting-style {
      background-color: rgba(11, 13, 12, 0);
      backdrop-filter: blur(0px);
    }
  }
}

.oke-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.oke-dialog__head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: var(--track-heading);
}

.oke-dialog__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.oke-dialog__close:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-3);
}

.oke-dialog__body {
  padding: 1.4rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.oke-dialog__body h3 {
  color: var(--text-primary);
  font-size: 0.96rem;
  margin: 1.15rem 0 0.35rem;
}

.oke-dialog__body h3:first-child {
  margin-top: 0;
}

.oke-dialog__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

/* ==========================================================================
   Brand-Consistent Form Controls Fallback (@supports not accent-color)
   ========================================================================== */

@supports not (accent-color: #101311) {
  .oke-check-wrap input[type="checkbox"] {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .oke-check-wrap {
    position: relative;
    padding-left: 1.85rem;
  }

  .oke-check-wrap > span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18rem;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg-surface);
  }

  .oke-check-wrap input[type="checkbox"]:checked + span::before {
    background: var(--oke-ink);
    border-color: var(--oke-ink);
  }

  .oke-check-wrap input[type="checkbox"]:checked + span::after {
    content: "✓";
    position: absolute;
    left: 0.22rem;
    top: 0.08rem;
    color: var(--oke-gold);
    font-size: 0.85rem;
    font-weight: 700;
  }

  .oke-check-wrap input[type="checkbox"]:focus-visible + span::before {
    outline: 2px solid var(--oke-gold);
    outline-offset: 2px;
  }
}

@media (max-width: 820px) {
  .oke-topbar__inner {
    justify-content: center;
  }
  .oke-brand {
    margin-right: auto;
  }
  .showcase-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .showcase-nav__btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
  }
}

.oke-stop-marker { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.oke-stop-dot { width:22px; height:22px; border-radius:50%; background:#141715; color:#fff; border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.28); display:grid; place-items:center; font-family:var(--font-mono); font-size:10px; font-weight:700; flex-shrink:0; }
.oke-stop-marker.is-current .oke-stop-dot { background:#101311; border-color:#f0c419; width:24px; height:24px; }
.oke-stop-label { padding:2px 7px; border-radius:4px; background:rgba(255,255,255,.94); border:1px solid rgba(17,20,18,.14); box-shadow:0 2px 6px rgba(0,0,0,.1); color:#111412; font-size:10.5px; font-weight:600; }
.oke-stop-marker.is-current .oke-stop-label { background:#f0c419; border-color:#d9ac0b; color:#101311; font-weight:700; }
/* ==========================================================================
   Deliverable 2 — Dynamic Delivery Quote & Confirmation Experience
   Tactile architectural proposal aesthetic (warm paper light / obsidian dark)
   ========================================================================== */

.quote-page {
  padding-block: clamp(1.4rem, 3vw, 2.5rem) clamp(4rem, 7vw, 6rem);
}

.quote-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2.25rem);
}

/* Quiet Handoff Context Bar */
.handoff-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-bottom: 1.25rem;
}

.handoff-banner__left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-primary);
}

.handoff-banner__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-surface-3);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.handoff-banner__left span {
  color: var(--text-secondary);
}

.handoff-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Step Progress Rail */
.quote-progress-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.q-step-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.q-step-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.q-step-pill.is-done {
  border-color: var(--status-ok);
  color: var(--text-primary);
}

.q-step-pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.q-step-pill.is-done .q-step-pill__dot {
  background: var(--status-ok);
}

.q-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.q-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.q-section-head .q-card__title {
  margin: 0;
}

.q-section-note {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Always-Accessible Floating Context-Aware Quote Chat Dock */
.floating-chat-root {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.floating-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 1rem 0.62rem 0.72rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(251, 250, 246, 0.14);
  background: #101311;
  color: #fbfaf6;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.floating-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.floating-chat-launcher__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0c419;
  color: #101311;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-chat-launcher__text {
  text-align: left;
  line-height: 1.2;
}

.floating-chat-launcher__text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}

.floating-chat-launcher__text span {
  font-size: 0.71rem;
  color: #b4bbb5;
}

.floating-chat-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  background: #f0c419;
  color: #101311;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.floating-chat-badge[hidden] {
  display: none;
}

.floating-chat-panel {
  width: min(378px, calc(100vw - 2rem));
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.floating-chat-panel[hidden] {
  display: none;
}

/* Main 2-Column Workspace */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) 368px;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.quote-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Architectural Dossier Cards */
.q-card {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: clamp(1.35rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.q-card.is-prefill-flash {
  border-color: var(--oke-gold);
  box-shadow: 0 0 0 4px rgba(240, 196, 25, 0.18), var(--shadow-md);
}

.q-card__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.55rem;
}

.q-card__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: var(--track-heading);
  color: var(--text-primary);
  line-height: 1.18;
}

.q-card__lead {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Hero Proposal Card */
.q-hero {
  overflow: hidden;
}

.q-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--oke-gold) 0%, #f5d24c 60%, transparent 100%);
}

.q-hero__title {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: var(--track-display);
  color: var(--text-primary);
}

.q-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--status-warn-bg);
  color: var(--text-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.q-status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oke-gold);
}

.q-status-badge.is-confirmed {
  background: var(--status-ok-bg);
  color: var(--status-ok);
}

.q-status-badge.is-confirmed::before {
  background: var(--status-ok);
}

.q-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.q-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: var(--r-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.q-meta-pill strong {
  color: var(--text-primary);
}

/* Real Calgary Leaflet Route Preview inside Quote Dossier */
.q-route-map-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-surface-2);
  margin-bottom: 1.35rem;
}

#quote-leaflet-map {
  width: 100%;
  height: 178px;
  background: #eef1f3;
}

#quote-leaflet-map .leaflet-tile-pane {
  filter: saturate(0.72) brightness(1.03) contrast(0.97);
}





.summary-secondary-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

.summary-print-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-print-btn:hover {
  color: var(--text-primary);
}

@media print {
  .oke-topbar,
  .handoff-banner,
  .quote-progress-rail,
  .convo-card,
  .chatbot-drawer,
  .q-submit-btn,
  .q-submit-note,
  .summary-secondary-actions,
  .btn-gold-pill,
  .btn-ghost-pill {
    display: none !important;
  }
  .quote-grid {
    grid-template-columns: 1fr !important;
  }
  .q-card,
  .summary-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}

.q-route-map-card .leaflet-control-attribution {
  font-size: 9px;
  opacity: 0.75;
}

.q-route-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.88rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.q-route-node small {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.18rem;
}

.q-route-node strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.q-route-node span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.q-route-node--right {
  text-align: right;
}

.q-route-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  min-width: 136px;
}

.q-route-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--border-strong), var(--oke-gold), var(--border-strong));
  border-radius: 99px;
}

.q-route-dot {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oke-gold);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 2px rgba(240, 196, 25, 0.35);
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: no-preference) {
  .q-route-dot {
    animation: route-glide 5.5s var(--ease-out) infinite;
  }
}

@keyframes route-glide {
  0% { left: 8%; opacity: 0.6; }
  50% { left: 92%; opacity: 1; }
  100% { left: 8%; opacity: 0.6; }
}

.q-route-dist {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Prepared For / By */
.q-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.q-party small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.q-party strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.q-party span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Step 01 — Shipment Schedule, Dates & Accordion Specs
   ========================================================================== */

.q-schedule-grid {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.q-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.q-date-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.q-date-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.72rem 0.8rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.q-date-chip:hover {
  border-color: var(--border-strong);
}

.q-date-chip.is-selected {
  border-color: var(--oke-gold);
  background: var(--status-warn-bg);
}

@media (prefers-reduced-motion: no-preference) {
  .q-date-chip:active {
    transform: scale(0.98);
  }
}

.q-date-chip__day {
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.q-date-chip__num {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.q-date-chip__tag {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--text-accent);
  margin-top: 3px;
}

.q-window-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.q-window-chip {
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.q-window-chip:hover {
  border-color: var(--border-strong);
}

.q-window-chip.is-selected {
  border-color: var(--oke-gold);
  background: var(--status-warn-bg);
}

.q-window-chip strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.q-window-chip span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Specs Grid inside Accordion */
.q-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.95rem;
  margin-bottom: 0.95rem;
}

.q-spec-tile {
  padding: 0.75rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.q-spec-tile small {
  display: block;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.q-spec-tile strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Step 02 — Interactive Service Tier Cards & Add-On Toggles
   ========================================================================== */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.05rem;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  cursor: pointer;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--ease-out);
}

.tier-card:hover {
  border-color: var(--border-strong);
}

@media (prefers-reduced-motion: no-preference) {
  .tier-card:hover {
    transform: translateY(-2px);
  }
}

.tier-card:has(input:checked) {
  border-color: var(--oke-gold);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(240, 196, 25, 0.2), var(--shadow-md);
}

.tier-card:has(input:focus-visible) {
  outline: 2px solid var(--oke-gold);
  outline-offset: 2px;
}

.tier-card__radio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.tier-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 0.18rem 0.52rem;
  border-radius: var(--r-xs);
  background: var(--bg-surface-3);
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.tier-card:has(input:checked) .tier-card__badge {
  background: var(--oke-gold);
  color: var(--oke-ink);
}

.tier-card__name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.tier-card__price {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.tier-card__price small {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.tier-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tier-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.tier-card__list li::before {
  content: "✓";
  color: var(--text-accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* Optional Add-On Cards */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.95rem;
}

.addon-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.82rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.addon-row:hover {
  border-color: var(--border-strong);
}

.addon-row:has(input:checked) {
  border-color: var(--oke-gold);
  background: var(--status-warn-bg);
}

.addon-row.is-included {
  border-color: var(--status-ok);
  background: var(--status-ok-bg);
  cursor: default;
}

.addon-row__left {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.addon-row__left input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.addon-row__title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.addon-row__desc {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.38;
}

.addon-row__price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.addon-row.is-included .addon-row__price {
  color: var(--status-ok);
}

/* ==========================================================================
   Itemized Estimate Ledger
   ========================================================================== */

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ledger-table th {
  text-align: left;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ledger-table th:last-child,
.ledger-table td:last-child {
  text-align: right;
}

.ledger-table td {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.ledger-table td:first-child strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ledger-table tr.ledger-total td {
  border-bottom: 0;
  padding-top: 1rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ledger-tag-included {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--status-ok-bg);
  color: var(--status-ok);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==========================================================================
   Step 03 — Valuation Protection & Service Terms
   ========================================================================== */

.valuation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.val-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.val-card:has(input:checked) {
  border-color: var(--oke-gold);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(240, 196, 25, 0.18);
}

.val-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.val-card__top strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.val-card__rate {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
}

.val-card__desc {
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.terms-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Step 04 — Confirmation Form, Validation, Digital Signature & Payment
   ========================================================================== */

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.q-field {
  display: flex;
  flex-direction: column;
}

.q-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.22rem;
}

.q-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.36rem;
}

.q-input,
.q-textarea {
  width: 100%;
  padding: 0.72rem 0.88rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.q-textarea {
  min-height: 82px;
  resize: vertical;
  line-height: 1.45;
}

.q-input:focus,
.q-textarea:focus {
  outline: none;
  border-color: var(--oke-gold);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(240, 196, 25, 0.22);
}

/* Deferred Validation: :user-invalid + fallback via :is() */
:is(.q-input, .q-textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--status-err);
  background: var(--status-err-bg);
}

:is(.q-input, .q-textarea):is(:user-valid, .user-valid-fallback) {
  border-color: var(--status-ok);
}

.q-error-msg {
  display: none;
  margin-top: 0.34rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--status-err);
}

:is(.q-input, .q-textarea):is(:user-invalid, .user-invalid-fallback) + .q-error-msg {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Interactive Digital Signature Pad */
.sig-section {
  margin: 1.3rem 0;
  padding: 1.15rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.sig-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.sig-header strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.sig-mode-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--bg-surface-3);
}

.sig-mode-btn {
  padding: 0.3rem 0.78rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.sig-mode-btn.is-active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.sig-pad-wrap {
  position: relative;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-surface);
  height: 146px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sig-pad-wrap.has-signature {
  border-style: solid;
  border-color: var(--status-ok);
}

.sig-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.sig-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.sig-pad-wrap.has-signature .sig-placeholder {
  opacity: 0;
}

.sig-baseline {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 28px;
  height: 1px;
  background: var(--border-subtle);
  pointer-events: none;
}

.sig-type-box[hidden],
.sig-draw-box[hidden] {
  display: none;
}

.sig-typed-preview {
  height: 92px;
  margin-top: 0.65rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sig);
  font-size: 2.35rem;
  color: var(--text-primary);
}

.sig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.sig-status-chip {
  font-weight: 700;
  color: var(--status-ok);
}

/* Consent Checkboxes */
.consent-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.oke-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--text-secondary);
  cursor: pointer;
}

.oke-check-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 0.16rem;
  flex-shrink: 0;
  cursor: pointer;
}

/* Payment Method Selector */
.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 0.9rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-2);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pay-option:has(input:checked) {
  border-color: var(--oke-gold);
  background: var(--status-warn-bg);
}

.pay-detail-panel {
  padding: 1rem 1.05rem;
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.4rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.pay-detail-panel[hidden] {
  display: none;
}

/* Primary Submit Button */
.q-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.5rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--oke-gold);
  color: var(--oke-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(240, 196, 25, 0.28);
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.q-submit-btn:hover {
  background: #f5ce33;
  box-shadow: 0 14px 32px rgba(240, 196, 25, 0.36);
}

@media (prefers-reduced-motion: no-preference) {
  .q-submit-btn:active {
    transform: scale(0.99);
  }
}

.q-submit-note {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Right Sticky Command Sidebar (Summary + Live Quote Conversation)
   ========================================================================== */

.quote-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.summary-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-md);
}

.summary-card__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.summary-card__tier {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-card__total {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 0.25rem 0 0.2rem;
}

.summary-card__tax {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.summary-schedule-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0.78rem;
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  font-size: 0.79rem;
  margin-bottom: 1rem;
}

.summary-schedule-chip strong {
  color: var(--text-primary);
}

.summary-schedule-chip span {
  color: var(--text-secondary);
}

/* Readiness Checklist */
.readiness-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.readiness-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.readiness-item.is-done {
  color: var(--text-primary);
  font-weight: 600;
}

.readiness-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  flex-shrink: 0;
}

.readiness-item.is-done .readiness-dot {
  border-color: var(--status-ok);
  background: var(--status-ok);
  color: #ffffff;
}

/* Live Quote Conversation Panel */
.convo-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.convo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.convo-agent {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.convo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--oke-ink);
  color: var(--oke-gold);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.convo-agent strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.convo-agent span {
  font-size: 0.73rem;
  color: var(--status-ok);
  font-weight: 600;
}

.convo-thread {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 256px;
  overflow-y: auto;
}

.msg-bubble {
  max-width: 88%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.msg-bubble--ae {
  align-self: flex-start;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.msg-bubble--user {
  align-self: flex-end;
  background: var(--oke-ink);
  color: var(--oke-paper);
  border-bottom-right-radius: 4px;
}

.msg-bubble__meta {
  display: block;
  font-size: 0.67rem;
  opacity: 0.68;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.convo-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  padding: 0 1.1rem 0.75rem;
}

.quick-ask-chip {
  padding: 0.28rem 0.62rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.quick-ask-chip:hover {
  border-color: var(--oke-gold);
  color: var(--text-primary);
}

.convo-composer {
  padding: 0.8rem 1.1rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.convo-input-row {
  display: flex;
  gap: 0.45rem;
}

.convo-input {
  flex: 1;
  min-width: 0;
  padding: 0.56rem 0.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.82rem;
}

.convo-send {
  padding: 0 0.88rem;
  border-radius: var(--r-md);
  border: 0;
  background: var(--oke-gold);
  color: var(--oke-ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.convo-attach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.convo-attach-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Interactive Chatbot-to-Quote Handoff Preview Widget (Bottom-Right Drawer)
   ========================================================================== */

.chatbot-drawer {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: min(370px, calc(100vw - 2rem));
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.chatbot-drawer[hidden] {
  display: none;
}

.chatbot-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: #101311;
  color: #fbfaf6;
}

.chatbot-drawer__head strong {
  display: block;
  font-size: 0.88rem;
}

.chatbot-drawer__head small {
  font-size: 0.72rem;
  color: #f0c419;
}

.chatbot-drawer__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-surface-2);
}

.chatbot-extract-card {
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  font-size: 0.78rem;
}

.chatbot-extract-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.chatbot-extract-card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

/* Confirmation Receipt Dialog Details */
.receipt-hero {
  text-align: center;
  padding: 0.5rem 0 1.2rem;
}

.receipt-check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--status-ok-bg);
  color: var(--status-ok);
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.receipt-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--r-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  margin: 1rem 0;
}

.receipt-summary-grid small {
  display: block;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.receipt-summary-grid strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Breakpoints for Quote Experience
   ========================================================================== */

@media (max-width: 1020px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .quote-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .quote-progress-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tier-grid,
  .valuation-grid,
  .form-grid-2,
  .addons-grid,
  .payment-tabs,
  .q-parties {
    grid-template-columns: 1fr;
  }
  .q-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .q-window-row {
    grid-template-columns: 1fr;
  }
  .q-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .q-route-visual {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .q-route-node--right {
    text-align: left;
  }
  .q-route-track {
    align-items: flex-start;
  }
}

  
/* site integration (23 Nov 2026) */
.oke-q { color-scheme: light; min-height: 0; padding: clamp(1.5rem, 4vw, 3rem) 0 4rem; }
[data-theme="dark"] .oke-q { color-scheme: dark; }
.oke-q .q-select { appearance: auto; }
.oke-q .q-spec-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.oke-q .q-spec-inputs .q-field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .oke-q .q-spec-inputs { grid-template-columns: 1fr; } }
.oke-q .q-files { font-size: 0.85rem; }
.oke-q .q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oke-q .q-sent { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.oke-q .q-sent h2 { margin: 0.8rem 0 0.4rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: var(--track-heading); }
.oke-q .q-sent p { margin: 0 auto; max-width: 34rem; color: var(--text-secondary); }
.oke-q .q-form-error { margin: 0.75rem 0 0; font-weight: 600; color: var(--status-err); }
