:root {
  color-scheme: light;
  --ink: #1c2520;
  --muted: #657069;
  --line: #d8ded6;
  --paper: #f8f2e3;
  --panel: #fffdf7;
  --field: #eef7ef;
  --green: #257653;
  --amber: #d08a1d;
  --red: #c0443e;
  --blue: #286b99;
  --violet: #6f4aa8;
  --coral: #e66745;
  --sun: #f5c24b;
  --teal: #159a8c;
  --shadow: 0 18px 50px rgba(52, 42, 25, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(245, 194, 75, 0.18), transparent 34%),
    linear-gradient(225deg, rgba(40, 107, 153, 0.13), transparent 38%),
    repeating-linear-gradient(0deg, rgba(40, 107, 153, 0.045) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(208, 138, 29, 0.04) 0 1px, transparent 1px 42px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.is-beta-locked .app-shell {
  display: none;
}

.beta-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(245, 194, 75, 0.18), transparent 34%),
    linear-gradient(225deg, rgba(21, 154, 140, 0.14), transparent 38%),
    var(--paper);
}

.beta-gate[hidden] {
  display: none;
}

.beta-gate-card {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.beta-gate-card h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.beta-gate-copy,
.beta-gate-message {
  color: var(--muted);
  line-height: 1.5;
}

.beta-gate-message {
  min-height: 1.4em;
  margin-bottom: 0;
  font-weight: 800;
}

.setup-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: rgba(252, 251, 246, 0.92);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 34px rgba(52, 42, 25, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-hero-brand,
.mobile-view-actions,
.filter-close {
  display: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), var(--blue) 56%, var(--sun));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(40, 107, 153, 0.24);
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.eyebrow,
.meta,
.checklist li,
.hero-copy span,
.threshold-panel span {
  color: var(--muted);
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab,
.segmented button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.nav-tab {
  position: relative;
  min-height: 42px;
  border-radius: 8px;
  text-align: left;
  padding: 0 12px;
  overflow: hidden;
}

.nav-tab.is-active,
.segmented button.is-active {
  background: #fff7df;
  color: var(--ink);
  border-color: rgba(208, 138, 29, 0.42);
  box-shadow: inset 4px 0 0 var(--amber);
}

.nav-tab.is-active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coral);
  transform: translateY(-50%);
}

.filter-toggle {
  color: var(--green);
  border-color: rgba(21, 154, 140, 0.32);
  background: rgba(21, 154, 140, 0.1);
  font-weight: 900;
}

.big-intent-button {
  display: none;
}

.setup-shortcut {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(111, 74, 168, 0.24);
  border-radius: 8px;
  background: rgba(111, 74, 168, 0.08);
  color: var(--violet);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.threshold-panel,
.tool-panel,
.deal-card,
.protocol-card,
.contest-board,
.watchlist-card,
.queue-summary,
.beta-notice,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 28px rgba(35, 45, 38, 0.06);
}

.threshold-panel {
  padding: 16px;
  display: grid;
  gap: 18px;
}

.icon-action {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.beta-notice {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-color: rgba(192, 68, 62, 0.2);
  background: #fff;
}

.beta-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.panel-heading,
.metric-row,
.deal-head,
.section-title,
.topbar,
.status-strip,
.comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading output {
  min-width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff0bd;
  color: var(--green);
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

label strong {
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.voice-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.voice-field-row textarea {
  min-height: 116px;
}

.voice-action {
  min-width: 84px;
  min-height: 44px;
  border: 1px solid rgba(40, 107, 153, 0.22);
  border-radius: 8px;
  background: rgba(40, 107, 153, 0.08);
  color: var(--blue);
  padding: 0 12px;
  font-weight: 900;
}

.voice-action.is-listening {
  border-color: rgba(192, 68, 62, 0.35);
  background: rgba(192, 68, 62, 0.09);
  color: var(--red);
}

.voice-status {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.45;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.98;
  max-width: 760px;
}

h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.status-strip {
  flex-wrap: wrap;
}

.status-strip span,
.pill,
.confidence,
.source {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  padding: 7px 10px;
  color: var(--muted);
  white-space: nowrap;
}

.status-strip span:nth-child(2) {
  border-color: rgba(111, 74, 168, 0.28);
  background: rgba(111, 74, 168, 0.08);
}

.status-strip span:nth-child(3) {
  border-color: rgba(230, 103, 69, 0.28);
  background: rgba(230, 103, 69, 0.08);
}

.hero-band {
  position: relative;
  min-height: 260px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow), 0 0 0 1px rgba(245, 194, 75, 0.22);
}

.hero-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 25, 22, 0.82), rgba(18, 25, 22, 0.18) 60%, rgba(18, 25, 22, 0.05));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 430px;
  padding: 32px;
  color: #fff;
}

.hero-copy p {
  margin: 10px 0 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.field-check-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(40, 107, 153, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 194, 75, 0.2), transparent 48%),
    #fffdf7;
  box-shadow: var(--shadow);
}

.field-check-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.field-check-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.32fr) minmax(140px, 0.34fr) auto;
  gap: 10px;
  align-items: end;
}

.photo-picker {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.photo-action-row {
  display: flex;
  gap: 8px;
}

.photo-action {
  min-height: 44px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(40, 107, 153, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.photo-action-camera {
  border-color: rgba(21, 154, 140, 0.32);
  background: rgba(21, 154, 140, 0.1);
  color: var(--green);
}

.photo-action input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.camera-mark {
  width: 18px;
  height: 14px;
  display: inline-block;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.camera-mark::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  left: 3px;
  top: -5px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
}

.camera-mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 4px;
  top: 3px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.photo-preview {
  grid-column: 2 / -1;
}

.tool-panel .photo-preview {
  grid-column: auto;
}

.photo-preview:empty {
  display: none;
}

.photo-preview-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(40, 107, 153, 0.18);
  border-radius: 8px;
  background: #fff;
}

.photo-preview-card img {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.photo-preview-copy {
  min-width: 0;
}

.photo-preview-card strong,
.photo-preview-card span {
  display: block;
  overflow-wrap: anywhere;
}

.photo-preview-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.photo-preview-card em {
  display: block;
  margin-top: 5px;
  color: var(--violet);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.photo-preview-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.photo-identify-action {
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.quick-clue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-check-submit {
  min-width: 150px;
  padding: 0 16px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-title.compact {
  margin-bottom: 8px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented button {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 12px;
}

.deal-grid,
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deal-card,
.protocol-card {
  padding: 16px;
}

.deal-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  background: #fff;
  border-color: #dfe6dd;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.deal-card:nth-child(3n + 1) {
  border-top: 4px solid var(--amber);
}

.deal-card:nth-child(3n + 2) {
  border-top: 4px solid var(--blue);
}

.deal-card:nth-child(3n + 3) {
  border-top: 4px solid var(--coral);
}

.item-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #cfd8d1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.item-photo.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.deal-card.is-muted {
  opacity: 1;
  border-color: #e2e8df;
  box-shadow: 0 10px 24px rgba(35, 45, 38, 0.05);
}

.deal-card.is-muted .item-photo {
  filter: none;
  opacity: 1;
}

.deal-title {
  min-width: 0;
}

.deal-title h3 {
  overflow-wrap: anywhere;
}

.source {
  font-size: 0.78rem;
  border-color: rgba(40, 107, 153, 0.25);
  background: rgba(40, 107, 153, 0.08);
  color: var(--blue);
  font-weight: 800;
}

.metric-row {
  align-items: stretch;
}

.metric {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde6df;
  box-shadow: 0 1px 0 rgba(35, 45, 38, 0.03);
}

.metric.has-disclaimer {
  cursor: help;
  outline: none;
}

.metric span,
.comp-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric strong,
.comp-row strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.price-disclaimer-popover {
  position: fixed;
  z-index: 20;
  width: min(320px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  border-top: 4px solid var(--sun);
}

.absorption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.absorption::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.absorption.steady::before {
  background: var(--amber);
}

.absorption.slow::before {
  background: var(--red);
}

.confidence {
  width: fit-content;
  font-size: 0.8rem;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  line-height: 1.35;
}

.checklist li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border: 1px solid var(--green);
  border-radius: 2px;
}

.lookup-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
}

.radar-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.radar-stack,
.radar-grid {
  display: grid;
  gap: 12px;
}

.queue-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.queue-stack,
.watchlist-grid,
.saved-find-grid {
  display: grid;
  gap: 12px;
}

.queue-summary,
.safety-summary,
.empty-state {
  padding: 16px;
}

.queue-summary p,
.safety-summary p,
.empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.safety-summary {
  border: 1px solid rgba(192, 68, 62, 0.22);
  border-radius: 8px;
  background: #fff8f5;
  box-shadow: 0 10px 24px rgba(192, 68, 62, 0.06);
}

.pill.danger {
  border-color: rgba(192, 68, 62, 0.3);
  background: rgba(192, 68, 62, 0.08);
  color: var(--red);
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tool-panel {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.setup-shell {
  width: min(980px, 100%);
  padding: 0;
}

.setup-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.setup-form {
  box-shadow: none;
}

.setup-form h1 {
  font-size: clamp(1.8rem, 5vw, 3.1rem);
}

.setup-form p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.setup-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(21, 154, 140, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setup-status {
  padding: 12px 14px;
  border: 1px solid rgba(40, 107, 153, 0.24);
  border-radius: 8px;
  background: rgba(40, 107, 153, 0.08);
  color: var(--blue);
  font-weight: 800;
  line-height: 1.4;
}

.secondary-link {
  width: fit-content;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(21, 154, 140, 0.2);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-action,
.fact-action,
.save-action {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  padding: 0 12px;
  font-weight: 800;
}

.live-listing-link {
  text-decoration: none;
}

.save-action {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 24px rgba(40, 107, 153, 0.18);
}

.save-action:disabled {
  cursor: default;
  opacity: 0.78;
}

.fact-action {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  box-shadow: 0 10px 24px rgba(111, 74, 168, 0.18);
}

.fact-action::before {
  content: "?";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.comp-links {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comp-links p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.comp-links ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.comp-links a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.why-price {
  padding: 12px;
  border: 1px solid rgba(208, 138, 29, 0.3);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(208, 138, 29, 0.35);
}

.why-price summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.why-price p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.5;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.why-grid span {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f8faf7;
  border: 1px solid rgba(35, 45, 38, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.why-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.condition-panel,
.photo-review-panel,
.seller-question-panel,
.trust-panel,
.verification-panel,
.cost-panel,
.walk-away-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(21, 154, 140, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(21, 154, 140, 0.22);
}

.trust-panel {
  border-color: rgba(208, 138, 29, 0.28);
  box-shadow: inset 4px 0 0 rgba(208, 138, 29, 0.28);
}

.trust-panel.is-good {
  border-color: rgba(21, 154, 140, 0.28);
  box-shadow: inset 4px 0 0 rgba(21, 154, 140, 0.25);
}

.trust-panel.is-skip {
  border-color: rgba(192, 68, 62, 0.24);
  box-shadow: inset 4px 0 0 rgba(192, 68, 62, 0.24);
}

.verification-panel {
  border-color: rgba(111, 74, 168, 0.22);
  box-shadow: inset 4px 0 0 rgba(111, 74, 168, 0.2);
}

.photo-review-panel {
  border-color: rgba(111, 74, 168, 0.22);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(111, 74, 168, 0.2);
}

.seller-question-panel {
  border-color: rgba(230, 103, 69, 0.2);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(230, 103, 69, 0.2);
}

.cost-panel {
  border-color: rgba(40, 107, 153, 0.2);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(40, 107, 153, 0.2);
}

.cost-panel.is-good {
  border-color: rgba(21, 154, 140, 0.28);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(21, 154, 140, 0.25);
}

.cost-panel.is-maybe {
  border-color: rgba(208, 138, 29, 0.28);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(208, 138, 29, 0.3);
}

.cost-panel.is-skip {
  border-color: rgba(192, 68, 62, 0.22);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(192, 68, 62, 0.24);
}

.walk-away-panel {
  border-color: rgba(192, 68, 62, 0.24);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(192, 68, 62, 0.24);
}

.condition-panel span,
.photo-review-panel span,
.seller-question-panel span,
.trust-panel span,
.verification-panel span,
.cost-panel span,
.walk-away-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.condition-panel strong,
.photo-review-panel strong,
.seller-question-panel strong,
.trust-panel strong,
.verification-panel strong,
.cost-panel strong,
.walk-away-panel strong {
  display: block;
  margin-top: 3px;
}

.condition-panel p,
.seller-question-panel p,
.cost-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.trust-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-panel li,
.verification-panel li {
  padding: 8px;
  border: 1px solid rgba(35, 45, 38, 0.06);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.verification-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cost-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cost-panel-head strong {
  font-size: 1.15rem;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.cost-grid span {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f8faf7;
  border: 1px solid rgba(35, 45, 38, 0.06);
}

.walk-away-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.walk-away-panel li {
  line-height: 1.4;
}

.condition-panel ul,
.photo-review-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.condition-panel li,
.photo-review-panel li {
  padding: 8px;
  border-radius: 8px;
  background: #f8faf7;
  border: 1px solid rgba(35, 45, 38, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.seller-question-panel ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.seller-question-panel .secondary-action {
  width: fit-content;
}

.seller-question-panel li {
  padding-left: 4px;
  line-height: 1.4;
}

.comp-review {
  padding: 12px;
  border: 1px solid rgba(40, 107, 153, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(40, 107, 153, 0.18);
}

.comp-review summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.comp-review-group {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.comp-review-list {
  display: grid;
  gap: 8px;
}

.comp-review-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(21, 154, 140, 0.2);
  border-radius: 8px;
  background: #fff;
}

.comp-review-photo {
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid #d8e1da;
  border-radius: 8px;
  background: #f8faf7;
  object-fit: cover;
}

.comp-review-photo.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.comp-review-item.is-rejected {
  border-color: rgba(192, 68, 62, 0.2);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(192, 68, 62, 0.18);
}

.comp-review-item strong,
.comp-review-item span,
.comp-review-item em {
  display: block;
}

.comp-review-item strong {
  overflow-wrap: anywhere;
}

.comp-review-item span,
.comp-review-item em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.comp-review-item em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.photo-match-badge {
  width: fit-content;
  padding: 4px 7px;
  border: 1px solid rgba(40, 107, 153, 0.2);
  border-radius: 999px;
  background: rgba(40, 107, 153, 0.08);
  color: var(--blue) !important;
  font-weight: 800;
}

.rare-fact-popover {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 37, 32, 0.38);
  backdrop-filter: blur(2px);
}

.rare-fact-popover[hidden] {
  display: none;
}

.rare-fact-card {
  position: relative;
  width: min(440px, 100%);
  padding: 22px;
  border: 2px solid rgba(245, 194, 75, 0.7);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: var(--shadow);
}

.rare-fact-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), var(--coral), var(--violet));
}

.rare-fact-card h3 {
  margin-bottom: 10px;
}

.rare-fact-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rare-fact-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.lookup-result .deal-card {
  min-height: 100%;
}

.lookup-feedback-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(99, 102, 241, 0.18);
}

.lookup-feedback-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.lookup-feedback-panel span {
  font-size: 0.76rem;
  color: var(--muted);
}

.lookup-feedback-panel strong {
  font-family: var(--display);
  font-size: 1rem;
}

.lookup-feedback-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.lookup-feedback-panel textarea {
  min-height: 62px;
}

.protocol-card p,
.contest-summary p {
  color: var(--muted);
  line-height: 1.55;
}

.protocol-card {
  display: grid;
  gap: 14px;
}

.watchlist-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.radar-summary-card,
.radar-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6fbfa);
  box-shadow: 0 10px 24px rgba(35, 45, 38, 0.06);
}

.radar-summary-card {
  border-top: 4px solid var(--teal);
}

.radar-card {
  border-top: 4px solid var(--violet);
}

.radar-card:nth-child(3n) {
  border-top-color: var(--amber);
}

.radar-card:nth-child(3n + 1) {
  border-top-color: var(--coral);
}

.radar-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.radar-card h3 {
  overflow-wrap: anywhere;
}

.radar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.radar-comp-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(40, 107, 153, 0.2);
  border-radius: 8px;
  background: #fff;
}

.verdict-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(37, 118, 83, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(37, 118, 83, 0.25);
}

.verdict-card.is-maybe {
  border-color: rgba(208, 138, 29, 0.34);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(208, 138, 29, 0.32);
}

.verdict-card.is-skip {
  border-color: rgba(192, 68, 62, 0.28);
  background: #fff;
  box-shadow: inset 4px 0 0 rgba(192, 68, 62, 0.26);
}

.verdict-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.verdict-card strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.verdict-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.deal-verdict {
  padding: 12px;
}

.deal-verdict strong {
  font-size: 1.18rem;
}

.deal-verdict p {
  font-size: 0.92rem;
}

.field-advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.field-advice-grid div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(40, 107, 153, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6fbff);
}

.field-advice-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-advice-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.25;
}

.radar-comp-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--muted);
  font-weight: 800;
}

.radar-comp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.simple-number {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(37, 118, 83, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--field));
}

.simple-number span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.simple-number strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

.detail-button {
  border: 1px solid rgba(40, 107, 153, 0.2);
  border-radius: 8px;
  background: #fbfdff;
}

.detail-button summary {
  cursor: pointer;
  padding: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.detail-button[open] {
  padding-bottom: 12px;
}

.detail-button[open] summary {
  margin-bottom: 4px;
}

.decision-detail {
  background: #fff;
}

.decision-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.decision-detail summary::after {
  content: "+";
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(40, 107, 153, 0.08);
  color: var(--blue);
  font-weight: 900;
}

.decision-detail[open] summary::after {
  content: "−";
}

.decision-detail > .cost-panel,
.decision-detail > .walk-away-panel,
.decision-detail > .seller-question-panel,
.decision-detail > .photo-review-panel,
.decision-detail > .condition-panel,
.decision-detail > .lookup-feedback-panel,
.decision-detail > .comp-review {
  margin: 0 12px;
  box-shadow: none;
}

.source-notes p {
  margin: 0;
  padding: 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.exchange-safety {
  background: #fffaf6;
  border-color: rgba(192, 68, 62, 0.22);
}

.safety-callout {
  display: grid;
  gap: 6px;
  margin: 0 12px 12px;
  padding: 12px;
  border: 1px solid rgba(192, 68, 62, 0.22);
  border-radius: 8px;
  background: #fff;
}

.safety-callout strong {
  color: var(--red);
  line-height: 1.35;
}

.safety-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px;
}

.payment-option-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-option-grid span,
.payment-option-grid strong,
.payment-option-grid p {
  display: block;
}

.payment-option-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-option-grid strong {
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.35;
}

.payment-option-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.radar-score {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sun), var(--coral));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(230, 103, 69, 0.18);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.signal-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(111, 74, 168, 0.08);
  border: 1px solid rgba(111, 74, 168, 0.2);
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 800;
}

.beta-workspace-summary,
.saved-find-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbf5);
  box-shadow: 0 10px 24px rgba(35, 45, 38, 0.06);
}

.beta-workspace-summary {
  border-top: 4px solid var(--teal);
}

.status-count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-count-row span {
  padding: 8px 10px;
  border: 1px solid rgba(40, 107, 153, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.status-count-row strong {
  color: var(--ink);
}

.beta-review-grid {
  display: grid;
  gap: 12px;
}

.beta-review-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 45, 38, 0.06);
}

.beta-review-card h3,
.beta-review-card p {
  margin: 0;
}

.beta-review-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.beta-copy-action {
  justify-self: start;
}

.beta-review-card .match-list strong {
  display: block;
  color: var(--ink);
}

.beta-review-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.beta-review-metrics span {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(111, 74, 168, 0.18);
  border-radius: 8px;
  background: rgba(111, 74, 168, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.beta-review-metrics strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.readiness-grid {
  display: grid;
  gap: 12px;
}

.readiness-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 45, 38, 0.06);
}

.readiness-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.readiness-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.readiness-card.is-ready {
  border-top: 4px solid var(--teal);
}

.readiness-card.needs-work {
  border-top: 4px solid var(--amber);
}

.readiness-summary {
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, #fff, #f6fbff);
}

.readiness-summary > div:first-child {
  display: grid;
  gap: 4px;
}

.readiness-summary h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
}

.readiness-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--amber);
}

.readiness-card.is-ready .readiness-dot {
  background: var(--teal);
}

.readiness-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(40, 107, 153, 0.12);
}

.readiness-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.saved-find-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.saved-find-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tester-status-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(40, 107, 153, 0.18);
  border-radius: 999px;
  background: rgba(40, 107, 153, 0.08);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.tester-status-badge.is-bought {
  border-color: rgba(21, 154, 140, 0.28);
  background: rgba(21, 154, 140, 0.1);
  color: var(--green);
}

.tester-status-badge.is-passed {
  border-color: rgba(192, 68, 62, 0.22);
  background: rgba(192, 68, 62, 0.08);
  color: var(--red);
}

.beta-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(111, 74, 168, 0.18);
  border-radius: 8px;
  background: #fff;
}

.beta-controls textarea {
  min-height: 84px;
}

.beta-feedback-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-action.is-selected {
  border-color: rgba(21, 154, 140, 0.36);
  background: rgba(21, 154, 140, 0.1);
  color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(21, 154, 140, 0.12);
}

.watchlist-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.watchlist-head h3 {
  overflow-wrap: anywhere;
}

.icon-action {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.icon-action:hover {
  color: var(--red);
  border-color: rgba(184, 76, 61, 0.35);
}

.rule-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rule-row span {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--field);
  color: var(--muted);
  font-size: 0.78rem;
}

.rule-row strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.match-count {
  color: var(--green);
  font-weight: 800;
}

.match-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.match-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.contest-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 18px;
}

.leaderboard {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.leaderboard li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 18, 15, 0.46);
}

.tour-card {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 82;
  width: min(440px, calc(100vw - 28px));
  display: grid;
  gap: 14px;
  padding: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(245, 194, 75, 0.45);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.tour-card h2 {
  font-size: 1.35rem;
}

.tour-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tour-target {
  position: relative;
  z-index: 81;
  outline: 4px solid var(--sun);
  outline-offset: 5px;
  box-shadow: 0 0 0 9999px rgba(12, 18, 15, 0.12);
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .nav-tab {
    text-align: center;
  }

  .deal-grid,
  .protocol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(135deg, rgba(245, 194, 75, 0.14), transparent 38%),
      linear-gradient(225deg, rgba(21, 154, 140, 0.12), transparent 42%),
      #fffdf7;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
  }

  main,
  .sidebar {
    padding: 18px;
  }

  main {
    order: 1;
    padding-top: 14px;
  }

  .sidebar {
    order: 2;
    padding: 0;
    border-right: 0;
    background: transparent;
    box-shadow: none;
  }

  .sidebar > .brand,
  .sidebar > .nav-tabs,
  .setup-shortcut,
  .beta-notice,
  .topbar,
  .hero-copy {
    display: none;
  }

  .mobile-hero-brand {
    display: block;
    margin-bottom: 14px;
  }

  .mobile-hero-brand .brand {
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(35, 45, 38, 0.08);
  }

  .topbar,
  .section-title,
    .field-check-panel,
    .lookup-layout,
    .radar-layout,
    .queue-layout,
    .setup-grid,
    .contest-board {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: 250px;
    margin-bottom: 12px;
    box-shadow: 0 12px 30px rgba(35, 45, 38, 0.12);
  }

  .hero-band::after {
    background: linear-gradient(180deg, transparent 58%, rgba(18, 25, 22, 0.34));
  }

  .mobile-view-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }

  .big-intent-button {
    min-height: 92px;
    display: grid;
    gap: 4px;
    align-content: center;
    justify-items: start;
    padding: 16px;
    border: 1px solid rgba(40, 107, 153, 0.18);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    box-shadow: 0 12px 28px rgba(35, 45, 38, 0.08);
  }

  .big-intent-button:first-child {
    border-color: rgba(245, 194, 75, 0.56);
    background: linear-gradient(135deg, rgba(245, 194, 75, 0.22), #fff 58%);
  }

  .big-intent-button:nth-child(2) {
    border-color: rgba(21, 154, 140, 0.34);
    background: linear-gradient(135deg, rgba(21, 154, 140, 0.14), #fff 60%);
  }

  .big-intent-button:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 76px;
    border-color: rgba(111, 74, 168, 0.3);
    background: linear-gradient(135deg, rgba(111, 74, 168, 0.11), #fff 62%);
  }

  .big-intent-button strong {
    font-size: 1.08rem;
  }

  .big-intent-button span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .mobile-view-actions .nav-tab {
    min-height: 48px;
    text-align: center;
    background: #fff;
    border-color: rgba(40, 107, 153, 0.16);
    color: var(--ink);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(35, 45, 38, 0.06);
  }

  .mobile-view-actions .nav-tab.is-active {
    background: #fff7df;
    border-color: rgba(208, 138, 29, 0.48);
  }

  .mobile-view-actions .nav-tab.is-active::after {
    right: 12px;
  }

  .mobile-view-actions .filter-toggle {
    grid-column: 1 / -1;
    background: rgba(21, 154, 140, 0.1);
    color: var(--green);
    border-color: rgba(21, 154, 140, 0.3);
  }

  .threshold-panel {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 70;
    max-height: min(78vh, 520px);
    overflow: auto;
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
    box-shadow: 0 20px 60px rgba(12, 18, 15, 0.28);
  }

  .filters-open .threshold-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .filter-close {
    display: inline-grid;
  }

  .filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 69;
    background: rgba(12, 18, 15, 0.32);
  }

  .deal-grid,
  .protocol-grid,
  .sidebar .nav-tabs {
    grid-template-columns: 1fr;
  }

  .saved-find-head {
    display: grid;
  }

  .tester-status-badge {
    justify-self: start;
  }

  .metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .photo-preview-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .photo-preview-card img {
    width: 72px;
  }

  .photo-preview-actions,
  .photo-preview-card .icon-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .form-pair,
  .field-check-form,
  .rule-row,
  .voice-field-row,
    .why-grid,
    .comp-review-item,
    .trust-panel ul,
    .verification-panel ul,
    .condition-panel ul,
  .photo-review-panel ul,
  .cost-grid,
  .cost-panel-head,
  .field-advice-grid,
  .simple-number-grid,
  .payment-option-grid,
  .beta-review-metrics {
    grid-template-columns: 1fr;
  }

  .lookup-result:not(:empty) {
    order: -1;
  }

  .tour-card {
    bottom: 12px;
  }
}
