/* ============================================================
   THE CREATIVITY LAB — Contact
   A private client-qualification system. Multi-step onboarding.
   Same tokens as the studio: Inter, --mg-orange, glass, dark.
   ============================================================ */
:root { --cq-ease: cubic-bezier(0.22, 1, 0.36, 1); }
html, body { overflow-x: hidden; }
.cq { position: relative; min-height: 100svh; max-width: 100%; overflow-x: hidden; }
.cq-amb { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 75% at 50% -10%, rgba(237,70,9,0.12), transparent 55%); }
.cq-shell { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px); }

/* ---------- console ---------- */
.cq-stage { padding: clamp(22px, 4vw, 56px) 0 clamp(40px, 6vw, 90px); }
.cq-console { position: relative; display: grid; grid-template-columns: 1fr; border-radius: 24px; overflow: hidden;
  background: linear-gradient(168deg, rgba(18,16,18,0.92) 0%, rgba(9,9,11,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 60px 150px -60px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,255,255,0.04); }
@media (min-width: 940px) { .cq-console { grid-template-columns: 360px 1fr; min-height: 640px; } }
.cq-console::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(237,70,9,0.6), transparent); opacity: 0.7; }

/* ---------- left rail ---------- */
.cq-rail { display: none; position: relative; flex-direction: column; padding: clamp(30px, 3vw, 46px); border-right: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(237,70,9,0.05), transparent 40%); }
@media (min-width: 940px) { .cq-rail { display: flex; } }
.cq-rail__tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-label); font-size: 11.5px; font-weight: var(--fw-semibold); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.cq-rail__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--mg-orange); box-shadow: 0 0 9px 1px rgba(237,70,9,0.7); animation: cqPulse 3s var(--cq-ease) infinite; }
@keyframes cqPulse { 0%,100% { opacity: 0.5; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.16); } }
.cq-rail__h { margin-top: clamp(22px, 2.4vw, 32px); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.5rem, 1.9vw, 1.95rem); line-height: 1.06; letter-spacing: var(--tracking-tight); color: var(--text-primary); }
.cq-rail__steps { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cq-rs { display: flex; align-items: center; gap: 13px; padding: 9px 0; color: var(--text-faint); transition: color 0.4s var(--cq-ease); }
.cq-rs__dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; font-family: var(--font-label); font-size: 10px; font-weight: var(--fw-semibold); color: var(--text-faint); transition: all 0.4s var(--cq-ease); }
.cq-rs__name { font-size: 0.92rem; letter-spacing: -0.01em; }
.cq-rs.is-done { color: var(--text-muted); }
.cq-rs.is-done .cq-rs__dot { border-color: rgba(237,70,9,0.5); color: var(--mg-orange); background: rgba(237,70,9,0.08); }
.cq-rs.is-active { color: var(--text-primary); }
.cq-rs.is-active .cq-rs__dot { border-color: var(--mg-orange); background: var(--mg-orange); color: #fff; box-shadow: 0 0 18px -4px rgba(237,70,9,0.8); }
.cq-rail__foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-subtle); font-size: 0.86rem; line-height: 1.5; color: var(--text-faint); }

/* ---------- main ---------- */
.cq-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cq-bar { height: 2px; background: rgba(255,255,255,0.07); position: relative; flex: none; }
.cq-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #c41f1a, var(--mg-orange)); box-shadow: 0 0 12px -2px rgba(237,70,9,0.8); transition: width 0.6s var(--cq-ease); }
.cq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(24px, 2.8vw, 38px) clamp(24px, 3vw, 48px) clamp(6px, 1vw, 12px); }
.cq-count { font-family: var(--font-label); font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.cq-count b { color: var(--mg-orange); }
.cq-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: clamp(8px, 1.4vw, 16px) clamp(24px, 3vw, 48px) clamp(18px, 2vw, 26px); scrollbar-width: thin; }
.cq-body::-webkit-scrollbar { width: 6px; } .cq-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.cq-step { animation: cqIn 0.5s var(--cq-ease) both; }
@keyframes cqIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cq-q { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.08; letter-spacing: var(--tracking-tight); color: var(--text-primary); text-wrap: balance; max-width: 20ch; }
.cq-q .accent { color: var(--mg-orange); }
.cq-qsub { margin-top: 12px; max-width: 52ch; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.5; color: var(--text-muted); }

/* ---------- selection cards ---------- */
.cq-cards { display: grid; grid-template-columns: 1fr; gap: clamp(10px, 1.2vw, 14px); margin-top: clamp(22px, 2.6vw, 32px); }
@media (min-width: 560px) { .cq-cards { grid-template-columns: 1fr 1fr; } }
.cq-cards--wide { grid-template-columns: 1fr; }
@media (min-width: 560px) { .cq-cards--wide { grid-template-columns: 1fr; } }
.cq-opt { position: relative; display: flex; align-items: center; gap: 15px; text-align: left; cursor: pointer; width: 100%;
  padding: clamp(15px, 1.5vw, 19px) clamp(16px, 1.6vw, 20px); min-height: 64px; border-radius: 14px;
  background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.08); -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--cq-ease), border-color 0.4s var(--cq-ease), background 0.4s var(--cq-ease), box-shadow 0.4s var(--cq-ease); }
.cq-opt:hover { transform: translateY(-3px); border-color: rgba(237,70,9,0.4); background: linear-gradient(165deg, rgba(237,70,9,0.07), rgba(237,70,9,0.015)); box-shadow: 0 22px 46px -28px rgba(0,0,0,0.8), 0 0 32px -16px rgba(237,70,9,0.5); }
.cq-opt.is-sel { border-color: var(--mg-orange); background: linear-gradient(165deg, rgba(237,70,9,0.1), rgba(237,70,9,0.02)); box-shadow: 0 0 34px -14px rgba(237,70,9,0.6); }
.cq-opt__ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 10px; color: var(--mg-orange); border: 1px solid rgba(237,70,9,0.26); background: rgba(237,70,9,0.06); }
.cq-opt__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cq-opt__t { display: block; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--text-primary); }
.cq-opt__d { display: block; font-size: 0.86rem; line-height: 1.35; color: var(--text-muted); }
.cq-opt__ck { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; color: transparent; transition: all 0.35s var(--cq-ease); }
.cq-opt.is-sel .cq-opt__ck { background: var(--mg-orange); border-color: var(--mg-orange); color: #fff; }

/* ---------- fields ---------- */
.cq-fields { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(22px, 2.6vw, 32px); }
@media (min-width: 620px) { .cq-fields { grid-template-columns: 1fr 1fr; } .cq-field--full { grid-column: 1 / -1; } }
.cq-field { position: relative; }
.cq-field__l { display: block; font-family: var(--font-label); font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 9px; }
.cq-field__l span { color: var(--text-faint); text-transform: none; letter-spacing: 0; opacity: 0.7; }
.cq-input { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; letter-spacing: -0.01em; outline: none; transition: border-color 0.35s var(--cq-ease), box-shadow 0.35s var(--cq-ease), background 0.35s var(--cq-ease); }
.cq-input::placeholder { color: var(--text-faint); }
.cq-input:focus { border-color: rgba(237,70,9,0.5); background: rgba(237,70,9,0.04); box-shadow: 0 0 0 3px rgba(237,70,9,0.1); }
/* Neutralize the browser autofill light-blue: keep the studio's dark field + light text */
.cq-input:-webkit-autofill,
.cq-input:-webkit-autofill:hover,
.cq-input:-webkit-autofill:active { -webkit-text-fill-color: var(--text-primary); caret-color: var(--text-primary); -webkit-box-shadow: 0 0 0 1000px #16151a inset; box-shadow: 0 0 0 1000px #16151a inset; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; transition: background-color 600000s 0s, color 600000s 0s; }
.cq-input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text-primary); -webkit-box-shadow: 0 0 0 1000px #16151a inset, 0 0 0 3px rgba(237,70,9,0.1); box-shadow: 0 0 0 1000px #16151a inset, 0 0 0 3px rgba(237,70,9,0.1); border-color: rgba(237,70,9,0.5); }
.cq-input:autofill { -webkit-text-fill-color: var(--text-primary); box-shadow: 0 0 0 1000px #16151a inset; }
textarea.cq-input { min-height: clamp(150px, 22vh, 230px); resize: vertical; line-height: 1.55; }

/* ---------- chips ---------- */
.cq-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 2.6vw, 32px); }
.cq-chip { cursor: pointer; padding: 11px 18px; border-radius: 999px; font-size: 0.95rem; color: var(--text-secondary);
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); -webkit-tap-highlight-color: transparent;
  transition: all 0.3s var(--cq-ease); }
.cq-chip:hover { border-color: rgba(237,70,9,0.4); color: var(--text-primary); }
.cq-chip.is-sel { background: rgba(237,70,9,0.12); border-color: var(--mg-orange); color: var(--text-primary); box-shadow: 0 0 22px -10px rgba(237,70,9,0.6); }

/* ---------- calendar ---------- */
.cq-cal { margin-top: clamp(20px, 2.4vw, 30px); }
.cq-cal__lbl { font-family: var(--font-label); font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.cq-days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.cq-days::-webkit-scrollbar { height: 5px; } .cq-days::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.cq-day { flex: none; scroll-snap-align: start; cursor: pointer; width: 70px; padding: 13px 0; border-radius: 13px; text-align: center;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s var(--cq-ease); -webkit-tap-highlight-color: transparent; }
.cq-day:hover { border-color: rgba(237,70,9,0.4); transform: translateY(-2px); }
.cq-day.is-sel { border-color: var(--mg-orange); background: rgba(237,70,9,0.1); box-shadow: 0 0 24px -12px rgba(237,70,9,0.7); }
.cq-day__dow { font-family: var(--font-label); font-size: 10.5px; font-weight: var(--fw-semibold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.cq-day__num { margin-top: 5px; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.4rem; color: var(--text-primary); line-height: 1; }
.cq-day__mon { margin-top: 3px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.cq-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 22px; }
.cq-slot { cursor: pointer; padding: 13px 0; border-radius: 11px; text-align: center; font-family: var(--font-label); font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--text-secondary);
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s var(--cq-ease); -webkit-tap-highlight-color: transparent; }
.cq-slot:hover { border-color: rgba(237,70,9,0.4); color: var(--text-primary); }
.cq-slot.is-sel { background: var(--mg-orange); border-color: var(--mg-orange); color: #fff; box-shadow: 0 0 24px -10px rgba(237,70,9,0.8); }
.cq-cal__note { margin-top: 18px; font-size: 0.86rem; line-height: 1.5; color: var(--text-faint); }
.cq-cal__note b { color: var(--text-secondary); font-weight: var(--fw-medium); }

/* ---------- foot nav ---------- */
.cq-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: clamp(16px, 2vw, 24px) clamp(24px, 3vw, 48px); border-top: 1px solid var(--border-subtle); }
.cq-back { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; cursor: pointer; font-family: var(--font-label); font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); background: none; border: 1px solid var(--border-subtle); transition: all 0.35s var(--cq-ease); }
.cq-back:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); }
.cq-back[hidden] { visibility: hidden; }
.cq-next { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; cursor: pointer; font-family: var(--font-label); font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; border: none;
  background: var(--mg-orange); box-shadow: 0 0 36px -12px rgba(237,70,9,0.7); transition: transform 0.35s var(--cq-ease), box-shadow 0.35s var(--cq-ease), opacity 0.35s var(--cq-ease); }
.cq-next:hover { transform: translateY(-2px); box-shadow: 0 0 50px -10px rgba(237,70,9,0.85); }
.cq-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.cq-next svg { transition: transform 0.35s var(--cq-ease); }
.cq-next:hover:not(:disabled) svg { transform: translate(2px, -2px); }

/* ---------- close (exit the application flow) — lives in the progress header ---------- */
.cq-close { flex: none; align-self: center; width: 40px; height: 40px; margin: -8px -6px -8px 8px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
  color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  transition: color 0.35s var(--cq-ease), border-color 0.35s var(--cq-ease), background 0.35s var(--cq-ease), transform 0.35s var(--cq-ease); }
.cq-close:hover { color: var(--text-primary); border-color: rgba(237,70,9,0.5); background: rgba(237,70,9,0.08); transform: rotate(90deg); }
.cq-close:active { transform: scale(0.9); }

/* ---------- intro + success ---------- */
.cq-hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 50px); max-width: 24ch; }
.cq-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-label); font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }
.cq-hero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--mg-orange); box-shadow: 0 0 9px 1px rgba(237,70,9,0.7); }
.cq-hero__h { margin-top: clamp(20px, 2.6vw, 34px); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: 0.95; letter-spacing: var(--tracking-display); color: var(--text-primary); }
.cq-hero__h .accent { color: var(--mg-orange); }
.cq-hero__sub { margin-top: clamp(20px, 2.4vw, 32px); max-width: 56ch; font-size: clamp(1.08rem, 1.35vw, 1.4rem); line-height: 1.5; color: var(--text-secondary); }

.cq-done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 48px); min-height: 480px; }
.cq-done__mark { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--mg-orange); box-shadow: 0 0 50px -10px rgba(237,70,9,0.8); animation: cqPop 0.6s var(--cq-ease) both; }
@keyframes cqPop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.cq-done__h { margin-top: 26px; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.04; letter-spacing: var(--tracking-display); color: var(--text-primary); }
.cq-done__p { margin-top: 18px; max-width: 46ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--text-muted); }
.cq-done__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.cq-done__chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-family: var(--font-label); font-size: 11px; font-weight: var(--fw-medium); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.cq-done__chip b { color: var(--mg-orange); font-weight: var(--fw-semibold); }

/* ---------- mobile: native app flow, page scrolls, no nested scroll ---------- */
@media (max-width: 939px) {
  .cq { min-height: auto; }
  .cq-shell { padding: 0 clamp(14px, 4vw, 22px); }
  .cq-stage { padding: clamp(16px, 4vw, 28px) 0 clamp(20px, 5vw, 32px); }
  /* overflow visible so the page is the only scroller and sticky works */
  .cq-console { border-radius: 18px; overflow: visible; }
  .cq-main { min-height: 0; }

  /* the form body defines its own height and scrolls WITH the page; extra
     bottom padding clears the sticky CTA bar so the last field is never hidden */
  .cq-body { overflow: visible; min-height: 0; max-height: none; flex: 0 0 auto;
    padding: 6px clamp(16px, 5vw, 22px) calc(34px + env(safe-area-inset-bottom)); }
  .cq-body::-webkit-scrollbar { display: none; }
  /* when a field is focused, leave room above the sticky header and below the
     sticky footer so the active input is always fully visible while typing */
  .cq-input, .cq-day, .cq-slot { scroll-margin-top: 84px; scroll-margin-bottom: 116px; }

  /* progress header pinned at the top of the card (below the OS strip) */
  .cq-bar { position: sticky; top: var(--cl-os-h, 0px); z-index: 7; border-radius: 18px 18px 0 0; }
  .cq-head { position: sticky; top: calc(var(--cl-os-h, 0px) + 2px); z-index: 6;
    padding: 14px clamp(16px, 5vw, 22px) 11px;
    background: linear-gradient(180deg, rgba(15,14,16,0.97) 0%, rgba(15,14,16,0.86) 100%);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

  /* navigation buttons pinned at the bottom of the viewport */
  .cq-foot { position: sticky; bottom: 0; z-index: 170; gap: 12px;
    padding: 13px clamp(16px, 5vw, 22px);
    padding-bottom: calc(13px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.08); border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(12,11,13,0.35) 0%, rgba(9,9,11,0.96) 55%);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .cq-next { flex: 1; justify-content: center; min-height: 50px; padding: 13px 20px; }
  .cq-back { min-height: 50px; }

  /* step rhythm: calmer vertical spacing */
  .cq-q { font-size: clamp(1.5rem, 6.4vw, 1.95rem); }
  .cq-qsub { margin-top: 8px; }
  textarea.cq-input { min-height: 132px; }

  /* compact, app-like option cards */
  .cq-cards { gap: 12px; margin-top: 20px; }
  .cq-opt { min-height: 60px; gap: 14px; padding: 14px 16px; border-radius: 18px; }
  .cq-opt:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.08); background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)); }
  .cq-opt.is-sel { border-color: var(--mg-orange); background: linear-gradient(165deg, rgba(237,70,9,0.1), rgba(237,70,9,0.02)); }
  .cq-opt:active { transform: scale(0.985); }
  .cq-opt__ic { width: 42px; height: 42px; border-radius: 12px; }
  .cq-opt__ic svg { width: 19px; height: 19px; }
  .cq-opt__t { font-size: 16px; }
  .cq-opt__d { font-size: 13px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 460px) {
  .cq-cards { grid-template-columns: 1fr; }
}
/* ACTIVE application flow on mobile (cq-open on <html>): a fully ISOLATED,
   OPAQUE, fixed full-screen panel. Everything behind it (top bar, page footer,
   ambient glow) is removed so nothing can bleed through; scroll is hard-locked;
   only the step body scrolls. svh/dvh + safe-area keep it stable under the iOS
   toolbar/keyboard, with no layout jump and no horizontal overflow. */
@media (max-width: 939px) {
  html.cq-open, html.cq-open body { overflow: hidden !important; height: 100%; }
  /* true isolation: take the page behind the overlay out, so it cannot show through */
  html.cq-open .cq-shell--top, html.cq-open .footer, html.cq-open .cq-amb { display: none !important; }

  html.cq-open .cq-stage { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 0; overflow: hidden;
    height: 100vh; height: 100svh; height: 100dvh; background: #0a0a0b; }
  html.cq-open .cq-console { height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none;
    background: linear-gradient(168deg, #141117 0%, #0a0a0c 100%); }
  html.cq-open .cq-main { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  html.cq-open .cq-bar { position: relative; flex: none; border-radius: 0; }
  html.cq-open .cq-head { position: static; flex: none; padding-top: max(env(safe-area-inset-top), 14px);
    background: #141117; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.cq-open .cq-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-top: 6px; padding-bottom: 22px; }
  html.cq-open .cq-foot { position: static; flex: none;
    padding-bottom: max(env(safe-area-inset-bottom), 14px); }
  html.cq-open .cq-done { min-height: 0; height: 100%; }
}
/* the floating chat launcher (terminal cl-ai, or 3D cl-cbtn from cl-chat3d) is
   redundant on the application page and collides with the sticky CTA bar on
   mobile — hide on small screens. .cl-cbtn is the real 3D launcher class. */
@media (max-width: 939px) {
  .cl-ai, .cl-c3d, .cl-cbtn { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cq-step, .cq-done__mark { animation: none; }
  .cq-rail__tag i { animation: none; }
  .cq-bar__fill { transition: none; }
}
