/* 2026-05-14 guided-red-inline-results-v1
   Keep price discovery inside the guided symptom checker instead of moving users to a separate results screen. */
.altored-search-app[data-app-stage="guided"] {
  min-height: 100svh !important;
  overflow-y: auto !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.24) 0 8%, transparent 24%),
    radial-gradient(circle at 88% 20%, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(148deg, #40152f 0%, #9e1f43 44%, #dc1e37 100%) !important;
}
.altored-search-app[data-app-stage="guided"]::before {
  border-radius: 0 !important;
}
.altored-search-app[data-app-stage="guided"] .search-experience {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(28px, 5vh, 58px) clamp(18px, 5vw, 72px) !important;
}
.altored-search-app[data-app-stage="guided"] .guided-stage {
  width: min(980px, 100%) !important;
}
.altored-search-app[data-app-stage="guided"] .guided-panel {
  width: 100% !important;
  min-height: min(790px, calc(100svh - clamp(56px, 10vh, 116px))) !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto auto !important;
  align-content: center !important;
  justify-items: stretch !important;
  gap: clamp(18px, 3vh, 34px) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.altored-search-app[data-app-stage="guided"] .guided-brand {
  justify-self: center !important;
  width: clamp(144px, 14vw, 198px) !important;
  margin: 0 !important;
}
.altored-search-app[data-app-stage="guided"] .guided-back {
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 12px !important;
  color: rgba(255,255,255,0.78) !important;
  background: transparent !important;
}
.altored-search-app[data-app-stage="guided"] .guided-back:hover,
.altored-search-app[data-app-stage="guided"] .guided-back:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,0.14) !important;
}
.altored-search-app[data-app-stage="guided"] .guided-panel h2 {
  max-width: 930px !important;
  margin: 0 auto !important;
  color: #fff !important;
  font-size: clamp(2.65rem, min(6.8vw, 8.5vh), 6.15rem) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.08em !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-shadow: 0 22px 58px rgba(45, 5, 24, 0.26) !important;
  text-wrap: balance;
}
.altored-search-app[data-app-stage="guided"] .guided-options,
.altored-search-app[data-app-stage="guided"] .guided-form,
.altored-search-app[data-app-stage="guided"] .guided-price-action,
.altored-search-app[data-app-stage="guided"] .guided-price-flow {
  width: min(720px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.altored-search-app[data-app-stage="guided"] .guided-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
.altored-search-app[data-app-stage="guided"] .guided-option,
.altored-search-app[data-app-stage="guided"] .guided-submit,
.altored-search-app[data-app-stage="guided"] .guided-price-action,
.altored-search-app[data-app-stage="guided"] .guided-all-head button,
.altored-search-app[data-app-stage="guided"] .guided-clinic-row {
  border-radius: 0 !important;
}
.altored-search-app[data-app-stage="guided"] .guided-option {
  width: 100% !important;
  min-height: 56px !important;
  justify-content: flex-start !important;
  border: 1px solid rgba(255,255,255,0.46) !important;
  background: rgba(255,255,255,0.94) !important;
  box-shadow: 0 18px 44px rgba(52,6,27,0.15) !important;
}
.altored-search-app[data-app-stage="guided"] .guided-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
}
.altored-search-app[data-app-stage="guided"] .guided-form textarea {
  min-height: 64px !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255,255,255,0.52) !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 18px 44px rgba(52,6,27,0.15) !important;
}
.altored-search-app[data-app-stage="guided"] .guided-submit,
.altored-search-app[data-app-stage="guided"] .guided-price-action {
  min-height: 64px !important;
  border: 0 !important;
  background: #fff !important;
  color: var(--brand-primary) !important;
  box-shadow: 0 18px 44px rgba(52,6,27,0.16) !important;
}
.altored-search-app[data-app-stage="guided"] .guided-price-flow {
  display: grid;
  gap: 14px;
}
.altored-search-app[data-app-stage="guided"] .guided-price-flow[hidden] {
  display: none !important;
}
.guided-price-scan,
.guided-best-result,
.guided-all-clinics {
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 24px 70px rgba(52,6,27,0.22);
  backdrop-filter: blur(18px);
}
.guided-price-scan,
.guided-best-result {
  padding: clamp(14px, 2.4vw, 22px);
}
.guided-flow-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(31,24,35,0.62);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.guided-scan-list,
.guided-all-list {
  display: grid;
  gap: 8px;
}
.guided-scan-row,
.guided-clinic-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(31,24,35,0.10);
  background: #fff;
  color: var(--ink-2);
}
.guided-scan-row i {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(220,30,55,0.22);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: altoredGuidedScanSpin 760ms linear infinite;
}
.guided-scan-row[data-state="done"] i {
  border: 0;
  border-radius: 0;
  background: var(--brand-primary);
  animation: altoredGuidedCheckPop 220ms ease both;
}
.guided-scan-row[data-state="done"] i::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}
.guided-scan-row[data-state="pending"] i {
  border-color: rgba(31,24,35,0.14);
  animation: none;
}
.guided-scan-row span,
.guided-clinic-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}
.guided-scan-row b,
.guided-clinic-row b {
  color: var(--brand-primary);
  font-weight: 950;
  white-space: nowrap;
}
.guided-all-head button {
  min-height: 52px;
  border: 1px solid rgba(31,24,35,0.14);
  background: #fff;
  color: var(--ink-2);
  font-weight: 950;
  letter-spacing: -0.02em;
}
.guided-all-clinics {
  max-height: min(420px, 52vh);
  overflow: hidden;
}
.guided-all-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(31,24,35,0.10);
}
.guided-all-head span {
  color: var(--ink-2);
  font-weight: 950;
}
.guided-all-head button {
  min-height: 38px;
  padding: 0 12px;
}
.guided-all-list {
  max-height: min(300px, 36vh);
  overflow: auto;
  padding: 10px;
}
.guided-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-top: 1px solid rgba(31,24,35,0.10);
  background: rgba(255,255,255,0.96);
}
.guided-pagination[hidden] {
  display: none;
}
.guided-pagination span {
  color: rgba(31,24,35,0.62);
  font-size: 0.76rem;
  font-weight: 820;
}
.guided-pagination button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 920;
  cursor: pointer;
}
.guided-pagination button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.search-feedback-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 24px;
  padding: 20px 24px 20px 28px;
  border: 1px solid rgba(220,30,55,0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.99), rgba(255,247,249,0.98));
  color: var(--ink-2);
  box-shadow: 0 18px 44px rgba(52,6,27,0.12);
}
.search-feedback-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  border-radius: 18px 0 0 18px;
  background: #2953ea;
  content: "";
}
.search-feedback-card[hidden] {
  display: none !important;
}
.search-feedback-card--details {
  box-shadow: 0 14px 34px rgba(35,23,41,0.09);
}
.search-feedback-question {
  display: grid;
  gap: 5px;
}
.search-feedback-question span {
  color: #a12b40;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.search-feedback-question strong {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.2;
}
.search-feedback-question small {
  color: rgba(31,24,35,0.6);
  font-size: 0.76rem;
  font-weight: 700;
}
.search-feedback-ratings {
  display: flex;
  gap: 12px;
}
.search-feedback-ratings button,
.search-feedback-actions button {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(31,24,35,0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 920;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.search-feedback-ratings button::before {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  vertical-align: -2px;
}
.search-feedback-ratings button[data-search-feedback-rating="yes"] {
  border-color: #168a5b;
  background: #168a5b;
  color: #fff;
  box-shadow: 0 7px 16px rgba(22,138,91,0.2);
}
.search-feedback-ratings button[data-search-feedback-rating="yes"]::before {
  content: "✓";
}
.search-feedback-ratings button[data-search-feedback-rating="no"] {
  border-color: #d43c49;
  background: #d43c49;
  color: #fff;
  box-shadow: 0 7px 16px rgba(212,60,73,0.2);
}
.search-feedback-ratings button[data-search-feedback-rating="no"]::before {
  content: "×";
}
.search-feedback-ratings button:hover,
.search-feedback-ratings button:focus-visible {
  filter: brightness(0.94);
  transform: translateY(-1px);
  outline: 3px solid rgba(41,83,234,0.24);
  outline-offset: 2px;
}
.search-feedback-ratings button.is-selected {
  border-color: #2953ea;
  box-shadow: 0 0 0 4px rgba(41,83,234,0.2), 0 8px 18px rgba(35,23,41,0.18);
}
.search-feedback-cue {
  position: absolute;
  z-index: 2;
  top: -22px;
  right: -124px;
  width: 110px;
  height: 94px;
  pointer-events: none;
}
.search-feedback-cue svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 3px rgba(23,54,165,0.24));
}
.search-feedback-cue g {
  transform-box: fill-box;
  transform-origin: center;
  animation: feedback-arrow-squash 1.55s cubic-bezier(.45,0,.2,1) infinite;
}
.search-feedback-cue path {
  fill: none;
  stroke: #2953ea;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.search-feedback-followup {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(31,24,35,0.10);
}
.search-feedback-followup[hidden] {
  display: none !important;
}
.search-feedback-followup label {
  display: grid;
  gap: 6px;
  color: rgba(31,24,35,0.68);
  font-size: 0.74rem;
  font-weight: 850;
}
.search-feedback-followup textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border: 1px solid rgba(31,24,35,0.16);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 10px 12px;
}
.search-feedback-followup textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(220,30,55,0.10);
  outline: none;
}
.search-feedback-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-feedback-actions button {
  min-height: 36px;
  border-color: var(--brand-primary);
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
}
.search-feedback-actions button:disabled {
  cursor: default;
  opacity: 0.48;
}
.search-feedback-actions small {
  color: rgba(31,24,35,0.62);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.35;
}
@keyframes feedback-arrow-squash {
  0%, 100% { transform: scale(1, 1); }
  42% { transform: scale(.94, 1.035); }
  68% { transform: scale(1.018, .988); }
}
.guided-clinic-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
  cursor: pointer;
}
.guided-clinic-row small {
  display: block;
  margin-top: 3px;
  color: rgba(31,24,35,0.54);
  font-size: 0.72rem;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guided-empty-inline {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(31,24,35,0.12);
}
.guided-empty-inline strong { color: var(--ink-2); }
.guided-empty-inline small { color: rgba(31,24,35,0.58); font-weight: 760; }
@keyframes altoredGuidedScanSpin { to { transform: rotate(1turn); } }
@keyframes altoredGuidedCheckPop { from { transform: scale(0.72); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 760px) {
  .altored-search-app[data-app-stage="guided"] .search-experience { padding: 70px 18px 30px !important; place-items: start center !important; }
  .altored-search-app[data-app-stage="guided"] .guided-panel { min-height: auto !important; gap: 18px !important; }
  .altored-search-app[data-app-stage="guided"] .guided-brand { justify-self: start !important; width: min(154px, 48vw) !important; }
  .altored-search-app[data-app-stage="guided"] .guided-panel h2 { text-align: left !important; font-size: clamp(2.05rem, 11vw, 3.95rem) !important; }
  .altored-search-app[data-app-stage="guided"] .guided-form { grid-template-columns: 1fr !important; }
  .guided-scan-row { grid-template-columns: 24px minmax(0, 1fr); }
  .guided-scan-row b { grid-column: 2; justify-self: start; }
  .search-feedback-card { grid-template-columns: 1fr; }
  .search-feedback-card { padding: 18px 18px 18px 23px; }
  .search-feedback-ratings { width: 100%; }
  .search-feedback-ratings button { flex: 1; }
  .search-feedback-cue { display: none; }
  .search-feedback-followup { grid-column: 1; }
  .search-feedback-actions { align-items: stretch; flex-direction: column; }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .search-feedback-cue {
    top: -34px;
    right: 20px;
    width: 70px;
    height: 60px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-feedback-cue g {
    animation: none;
  }
  .search-feedback-ratings button {
    transition: none;
  }
}

/* 2026-05-14 guided-inline-stream-polish-v1
   Keep the red guided flow centered, stream clinic rows in place, and prevent mobile price overlap. */
.altored-search-app[data-app-stage="guided"] .guided-brand {
  justify-self: center !important;
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}
.altored-search-app[data-app-stage="guided"] .guided-panel h2 {
  max-width: min(900px, 100%) !important;
  overflow-wrap: normal !important;
}
.guided-scan-list {
  overflow: hidden;
}
.guided-scan-row {
  animation: guidedRowEnter 260ms ease both;
}
.guided-scan-row[data-state="pending"] b,
.guided-scan-row[data-state="running"] b,
.guided-scan-row--ghost b {
  opacity: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
}
.guided-scan-row[data-state="done"] b {
  opacity: 1;
}
.guided-clinic-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(12px, 2.8vw, 18px) !important;
  min-height: 78px !important;
  overflow: hidden !important;
}
.guided-clinic-copy {
  min-width: 0 !important;
  display: block !important;
}
.guided-clinic-copy strong {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.guided-clinic-price {
  display: grid !important;
  justify-items: end !important;
  align-content: center !important;
  gap: 2px !important;
  min-width: 72px !important;
  max-width: 42vw !important;
  text-align: right !important;
}
.guided-clinic-price small {
  display: block !important;
  color: rgba(31,24,35,0.48) !important;
  font-size: 0.58rem !important;
  font-weight: 920 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
.guided-clinic-price b {
  display: block !important;
  color: var(--brand-primary) !important;
  font-family: "Archivo", "Manrope", sans-serif !important;
  font-size: clamp(1.55rem, 4.8vw, 2.25rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.055em !important;
  white-space: nowrap !important;
}
@keyframes guidedRowEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .guided-all-clinics {
    max-height: none !important;
    overflow: visible !important;
  }
  .guided-all-list {
    max-height: min(280px, 34vh) !important;
  }
  .altored-search-app[data-app-stage="guided"] .guided-brand {
    justify-self: center !important;
    width: min(148px, 46vw) !important;
  }
  .altored-search-app[data-app-stage="guided"] .guided-panel h2 {
    text-align: center !important;
    font-size: clamp(2.05rem, 10.2vw, 3.55rem) !important;
    letter-spacing: -0.075em !important;
  }
  .guided-all-list {
    padding: 9px !important;
  }
  .guided-clinic-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 76px !important;
    padding: 12px 10px !important;
  }
  .guided-clinic-row small {
    font-size: 0.70rem !important;
  }
  .guided-clinic-price {
    min-width: 62px !important;
    max-width: 28vw !important;
  }
  .guided-clinic-price small {
    display: none !important;
  }
  .guided-clinic-price b {
    font-size: clamp(1.52rem, 7.2vw, 2.08rem) !important;
  }
}


/* 2026-05-14 guided-price-mobile-stability-v2
   Price discovery stays inside the red guided flow, but the content must never clip or overlap on mobile. */
html,
body,
.altored-search-app,
.altored-search-app .search-experience,
.altored-search-app .dashboard-hero {
  max-width: 100vw !important;
}
html,
body {
  overflow-x: hidden !important;
}
.altored-search-app[data-app-stage="guided"] {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}
.altored-search-app[data-app-stage="guided"] .search-experience {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}
.altored-search-app[data-app-stage="guided"] .guided-stage,
.altored-search-app[data-app-stage="guided"] .guided-panel,
.altored-search-app[data-app-stage="guided"] .guided-price-flow,
.altored-search-app[data-app-stage="guided"] .guided-price-scan,
.altored-search-app[data-app-stage="guided"] .guided-best-result,
.altored-search-app[data-app-stage="guided"] .guided-all-clinics {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.altored-search-app[data-app-stage="guided"] .guided-panel {
  position: relative !important;
}
.altored-search-app[data-app-stage="guided"] .guided-back {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 4 !important;
  font-size: 0 !important;
}
.altored-search-app[data-app-stage="guided"] .guided-back::before {
  content: "←" !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}
.altored-search-app[data-app-stage="guided"] .guided-brand {
  justify-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.altored-search-app[data-app-stage="guided"] .guided-brand img {
  display: block !important;
  margin-inline: auto !important;
}
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="preparing"] .search-experience,
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="checking"] .search-experience,
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="done"] .search-experience,
.altored-search-app[data-app-stage="guided"]:has(.guided-price-flow:not([hidden])) .search-experience {
  place-items: start center !important;
  align-items: start !important;
}
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="preparing"] .guided-panel,
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="checking"] .guided-panel,
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="done"] .guided-panel,
.altored-search-app[data-app-stage="guided"]:has(.guided-price-flow:not([hidden])) .guided-panel {
  align-content: start !important;
}
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="checking"] .guided-panel h2,
.altored-search-app[data-app-stage="guided"][data-guided-price-phase="done"] .guided-panel h2,
.altored-search-app[data-app-stage="guided"]:has(.guided-price-flow:not([hidden])) .guided-panel h2 {
  max-width: min(760px, 100%) !important;
  overflow-wrap: anywhere !important;
}
.guided-scan-row,
.guided-clinic-row {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.guided-scan-row span,
.guided-clinic-copy,
.guided-clinic-copy strong,
.guided-clinic-row small {
  min-width: 0 !important;
}
.guided-scan-row b,
.guided-clinic-price,
.guided-clinic-price b {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  max-width: none !important;
}
@media (max-width: 760px) {
  .altored-search-app[data-app-stage="guided"] .search-experience {
    padding: 26px 18px 30px !important;
  }
  .altored-search-app[data-app-stage="guided"] .guided-panel {
    gap: 16px !important;
    padding-top: 2px !important;
  }
  .altored-search-app[data-app-stage="guided"] .guided-brand {
    width: min(140px, 42vw) !important;
    transform: none !important;
  }
  .altored-search-app[data-app-stage="guided"] .guided-panel h2 {
    font-size: clamp(1.78rem, 8.8vw, 3rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.06em !important;
  }
  .altored-search-app[data-app-stage="guided"][data-guided-price-phase="checking"] .guided-panel h2,
  .altored-search-app[data-app-stage="guided"][data-guided-price-phase="done"] .guided-panel h2,
  .altored-search-app[data-app-stage="guided"]:has(.guided-price-flow:not([hidden])) .guided-panel h2 {
    font-size: clamp(1.55rem, 7.4vw, 2.35rem) !important;
    line-height: 1.02 !important;
    margin-top: 2px !important;
  }
  .altored-search-app[data-app-stage="guided"] .guided-price-flow {
    width: 100% !important;
  }
  .guided-price-scan,
  .guided-best-result {
    padding: 14px !important;
  }
  .guided-scan-row {
    grid-template-columns: 24px minmax(0, 1fr) max-content !important;
    gap: 9px !important;
    min-height: 54px !important;
    padding: 10px !important;
  }
  .guided-scan-row span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .guided-scan-row b {
    grid-column: auto !important;
    justify-self: end !important;
    font-size: 1rem !important;
    line-height: 1 !important;
  }
  .guided-scan-row[data-state="pending"] b,
  .guided-scan-row[data-state="running"] b,
  .guided-scan-row--ghost b {
    display: none !important;
  }
  .guided-clinic-row {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 12px !important;
    min-height: 72px !important;
    padding: 11px 10px !important;
  }
  .guided-clinic-price {
    min-width: max-content !important;
    max-width: none !important;
    justify-items: end !important;
  }
  .guided-clinic-price b {
    font-size: clamp(1.18rem, 5.8vw, 1.72rem) !important;
    letter-spacing: -0.035em !important;
  }
  .guided-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .guided-pagination button {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .altored-search-app[data-app-stage="guided"] .search-experience {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .guided-all-head {
    padding: 10px !important;
  }
  .guided-all-head button {
    min-width: 84px !important;
  }
}


/* 2026-05-14 auth-mobile-width-stability-v1
   Keep the beta gate viewport-safe while the primary rebuild app is gated. */
@media (max-width: 680px) {
  .altored-search-app[data-auth-state="signed-out"],
  .altored-search-app[data-auth-state="checking"] {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .altored-search-app[data-auth-state="signed-out"] .search-experience,
  .altored-search-app[data-auth-state="checking"] .search-experience,
  .altored-search-app[data-auth-state="signed-out"] .dashboard-hero,
  .altored-search-app[data-auth-state="checking"] .dashboard-hero,
  .altored-search-app[data-auth-state="signed-out"] .auth-gate,
  .altored-search-app[data-auth-state="checking"] .auth-gate {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .altored-search-app[data-auth-state="signed-out"] .auth-gate,
  .altored-search-app[data-auth-state="checking"] .auth-gate {
    width: min(318px, calc(100vw - 54px)) !important;
  }
  .altored-search-app[data-auth-state="signed-out"] .auth-gate h1,
  .altored-search-app[data-auth-state="checking"] .auth-gate h1 {
    max-width: 10.5ch !important;
    margin-inline: auto !important;
    font-size: clamp(1.8rem, 8.4vw, 2.34rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.052em !important;
    text-wrap: balance !important;
    overflow-wrap: normal !important;
  }
  .altored-search-app[data-auth-state="signed-out"] .auth-gate-copy,
  .altored-search-app[data-auth-state="checking"] .auth-gate-copy {
    max-width: 29ch !important;
    margin-inline: auto !important;
  }
  .altored-search-app[data-auth-state="signed-out"] .auth-gate-actions,
  .altored-search-app[data-auth-state="checking"] .auth-gate-actions {
    width: 100% !important;
    max-width: 100% !important;
  }
  .altored-search-app[data-auth-state="signed-out"] .auth-gate-primary,
  .altored-search-app[data-auth-state="signed-out"] .auth-gate-secondary,
  .altored-search-app[data-auth-state="checking"] .auth-gate-primary,
  .altored-search-app[data-auth-state="checking"] .auth-gate-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
