:root {
  --bg: #070b12;
  --panel: #101722;
  --panel-2: #151f2d;
  --ink: #f7fbff;
  --muted: #a9b5c3;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d6ad54;
  --blue: #46a6ff;
  --green: #3fd19b;
  --red: #ff6b6b;
  --paper: #eef3f8;
  --dark-text: #17212c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #071017;
  background: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 26px);
  flex: 1;
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button { display: none; }

.page-band {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; opacity: 0.78; }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.96), rgba(7, 11, 18, 0.72) 48%, rgba(7, 11, 18, 0.15)),
    linear-gradient(0deg, rgba(7, 11, 18, 0.64), rgba(7, 11, 18, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 34px));
  padding: clamp(86px, 13vh, 150px) 0 110px clamp(17px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 22px; font-size: clamp(3rem, 7.3vw, 6.8rem); line-height: 0.94; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1; letter-spacing: 0; }
h3 { margin-bottom: 9px; font-size: 1.15rem; line-height: 1.15; }
p { line-height: 1.6; }
.hero p:not(.eyebrow) { max-width: 720px; color: #d9e2ec; font-size: 1.16rem; }
.muted { color: var(--muted); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button, .small-button, .danger-button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 11px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
}
.button.primary, .small-button.primary { border-color: transparent; color: #051019; background: var(--gold); }
.button.ghost { color: #fff; }
.small-button { min-height: 36px; padding: 8px 12px; font-size: 0.88rem; }
.danger-button { border-color: rgba(255, 107, 107, 0.35); color: #ffd1d1; background: rgba(255, 107, 107, 0.12); }
.text-link { border: 0; padding: 0; color: var(--blue); background: transparent; }

.metric-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 34px));
  margin: -58px auto 0;
  border: 1px solid var(--line);
  background: rgba(16, 23, 34, 0.94);
  box-shadow: var(--shadow);
}
.metric-strip div { padding: 24px; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong { display: block; margin-bottom: 5px; font-size: clamp(1.35rem, 3vw, 2.2rem); }
.metric-strip span { color: var(--muted); }

.section {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 110px) 0;
}
.section.compact { padding-top: 38px; }
.split { display: grid; grid-template-columns: 0.82fr 1fr; gap: 42px; align-items: start; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }

.tool-grid, .listing-grid, .dashboard-grid, .plan-row, .compare-grid, .academy-grid {
  display: grid;
  gap: 16px;
}
.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.academy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

article, .panel, .form-card, .result-card, .table-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: 0 16px 42px rgba(0,0,0,0.18);
}
article, .panel, .form-card, .result-card { padding: 22px; }

.listing-card { display: grid; min-height: 330px; align-content: space-between; }
.listing-top { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 18px; color: var(--gold); font-weight: 900; }
.listing-card dl, .mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
dt, .mini-stats span { color: var(--muted); font-size: 0.76rem; }
dd { margin: 3px 0 0; font-weight: 900; }
.status { display: inline-flex; width: fit-content; padding: 5px 9px; color: #06131b; background: var(--green); font-size: 0.75rem; font-weight: 900; }
.status.pending { background: var(--gold); }
.status.rejected { color: #fff; background: var(--red); }

.page-title {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 64px 0 24px;
}
.page-title h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1; margin-bottom: 12px; }
.page-title .muted { max-width: 760px; font-size: 0.98rem; line-height: 1.45; }

.buy-page-app .page-title { padding-top: 34px; padding-bottom: 14px; }
.buy-page-app .page-title h1 { font-size: clamp(1.85rem, 3.2vw, 2.9rem); }
.buy-page .section.compact { padding-top: 14px; }
.buy-page .panel h2,
.buy-page .result-card h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.08; }
.buy-page .panel,
.buy-page .result-card { padding: 18px; }
.buyer-workflow { display: grid; gap: 18px; }
.buyer-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 6px;
}
.buyer-workflow > .section,
.buyer-workflow > .panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.move-to-cockpit { background: linear-gradient(135deg, rgba(214,173,84,0.13), rgba(255,255,255,0.035)); }
.discovery-shell { display: grid; gap: 14px; }
.discovery-panel { padding: 18px; }
.discovery-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.discovery-form label { margin: 0; }
.discovery-form .search-submit { min-height: 46px; white-space: nowrap; }
.search-notes { grid-column: span 2; }
.discovery-results { padding: 16px; }

.filters, .form-grid, .calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.calculator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide, .calculator-grid .wide { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #dfe8f2; font-size: 0.86rem; font-weight: 780; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: #0b111a;
}
textarea { resize: vertical; }
input[type="file"] { padding: 10px; }

.result-card strong.big { display: block; color: var(--gold); font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1; }
.score-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 10px solid var(--blue);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}
.warning-list { display: grid; gap: 9px; padding-left: 0; list-style: none; }
.warning-list li { padding: 10px 12px; border-left: 4px solid var(--red); background: rgba(255,107,107,0.1); }
.success-list li { border-left-color: var(--green); background: rgba(63,209,155,0.09); }

.table-card { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); padding: 10px 13px; color: var(--muted); background: transparent; }
.tab.active { color: #051019; background: var(--gold); }
.dashboard-tabs {
  position: sticky;
  top: 72px;
  z-index: 5;
  padding: 10px;
  background: rgba(7, 11, 18, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.dashboard-tabs .tab { flex: 1; min-width: 120px; }
[data-dashboard-panel] {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.readiness-row .target-field-tile strong {
  color: var(--gold);
}
.result-summary-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.result-expanded { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.target-search-list { display: grid; gap: 10px; }
.target-result-card {
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255,255,255,0.03);
  min-height: 0;
  overflow: hidden;
}
.target-result-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.expand-target {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: #06131b;
  background: var(--gold);
  font-weight: 950;
}
.target-result-copy h3 { margin: 2px 0 2px; font-size: 1.05rem; }
.result-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; }
.result-kicker strong { color: var(--gold); }
.result-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.result-chips span {
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  font-size: 0.78rem;
}
.target-result-side { display: grid; gap: 8px; justify-items: end; }
.target-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.result-chips.compact {
  justify-content: flex-end;
  max-width: 390px;
  margin-top: 0;
}
.result-chips.compact span {
  padding: 4px 7px;
  font-size: 0.74rem;
}
.compact-card { min-height: 0; padding: 14px 16px; gap: 10px; }
.compact-card .listing-top { margin-bottom: 8px; }
.compact-card h3 { margin-bottom: 4px; }
.compact-card .button-row { margin-top: 12px; }
.map-frame { width: 100%; min-height: 260px; border: 1px solid var(--line); border-radius: 8px; }
.map-tab-layout { display: grid; gap: 10px; max-width: 100%; overflow: hidden; }
.map-visual {
  position: relative;
  min-height: 260px;
}
.map-visual .map-frame {
  display: block;
  height: 260px;
}
.map-marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-marker {
  position: absolute;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #06131b;
  background: var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  font-size: 0.72rem;
  font-weight: 950;
  transform: translate(-50%, -50%);
}
.map-marker.competitor {
  color: #fff;
  background: var(--blue);
}
.map-fallback {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.035);
  text-align: center;
}
.map-fallback h3 { margin: 0; }
.inline-input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; color: var(--ink); background: #fff; }
.source-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #06131b;
  background: var(--gold);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
}
.source-icon.muted { color: var(--muted); background: transparent; }
.target-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.target-profile-grid.tab-card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  grid-template-columns: none;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}
.target-profile-grid.compact-layer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.market-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.market-card { min-height: 170px; }
.target-profile-grid > div,
.target-field-tile {
  border: 1px solid var(--line);
  padding: 10px;
  background: rgba(255,255,255,0.035);
  min-height: 106px;
  max-width: 100%;
}
.target-profile-grid > div > span,
.target-field-tile span { display: flex; align-items: center; color: var(--muted); font-size: 0.78rem; }
.target-profile-grid > div > strong,
.target-field-tile strong {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.25;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.target-field-tile a { color: #fff; }
.tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  min-height: 0;
  background: transparent;
}
.target-field-tile .tile-actions {
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
}
.mini-edit {
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: #fff;
  background: rgba(255,255,255,0.04);
  font-weight: 800;
}
.mini-edit.icon-only {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
}
.mini-approve.icon-only,
.mini-na.icon-only {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.04);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
}
.mini-approve.icon-only {
  color: #06131b;
  background: var(--green);
}
.mini-na.icon-only {
  color: #ffd1d1;
  background: rgba(255,107,107,0.14);
}
.tight-copy { margin-top: 7px; font-size: 0.76rem; line-height: 1.35; }
.target-field-tile small {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
}
.mini-source {
  border: 1px solid rgba(214,173,84,0.55);
  padding: 7px 10px;
  color: #06131b !important;
  background: var(--gold);
  font-weight: 850;
  text-decoration: none;
}
.mini-source.icon-only {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 950;
}
.compact-card .tabs { margin-top: 10px; margin-bottom: 12px; gap: 7px; }
.compact-card .tab { padding: 8px 10px; font-size: 0.84rem; }
.target-result-card .tabs { margin: 0 0 10px; gap: 7px; }
.target-result-card .tab { padding: 7px 10px; font-size: 0.82rem; }
.result-detail-report {
  margin-top: 14px;
  border: 1px solid rgba(214,173,84,0.4);
  padding: 16px;
  background: rgba(255,255,255,0.045);
}
.report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.report-toolbar h3 { margin: 2px 0; }
.report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.report-page { display: grid; gap: 18px; }
.report-section {
  break-inside: avoid;
  page-break-inside: avoid;
}
.report-section h4 {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 0.92rem;
  text-transform: uppercase;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.report-field-card {
  border: 1px solid var(--line);
  padding: 10px;
  background: rgba(255,255,255,0.035);
  min-height: 112px;
}
.report-field-card span { display: flex; align-items: center; color: var(--muted); font-size: 0.78rem; }
.report-field-card strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.28;
}
.report-field-card a {
  display: inline-block;
  margin-top: 9px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
}

.notice { border: 1px solid rgba(214, 173, 84, 0.34); padding: 14px; color: #ffe6ad; background: rgba(214, 173, 84, 0.09); }
.error { border-color: rgba(255,107,107,0.45); color: #ffd1d1; background: rgba(255,107,107,0.1); }

body.standalone-cooler-demo .topbar,
body.standalone-cooler-demo footer {
  display: none;
}
body.standalone-cooler-demo #app {
  min-height: 100vh;
}
body.standalone-cooler-demo .cooler-app {
  margin: 0 auto;
  border: 0;
}

.cooler-app .split { align-items: start; }
.cooler-app {
  --rb-blue: #061a44;
  --rb-blue-2: #0a2d72;
  --rb-gold: #f5c84b;
  --rb-red: #e63228;
  --rb-silver: #d9e2ef;
  --bg: #061022;
  --panel: #0b1b3a;
  --line: rgba(217,226,239,0.2);
  background:
    radial-gradient(circle at 15% 12%, rgba(230,50,40,0.22), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(245,200,75,0.2), transparent 28%),
    linear-gradient(180deg, #051126, #081a3a 45%, #030915);
  border-color: rgba(217,226,239,0.18);
  box-shadow: 0 24px 70px rgba(0,0,0,0.38);
}
.cooler-app .panel,
.cooler-app .cooler-inventory-start,
.cooler-app .cooler-shelf,
.cooler-app .cooler-location-card,
.cooler-app .cooler-type-card {
  background: linear-gradient(180deg, rgba(12,35,78,0.95), rgba(6,16,34,0.96));
  border-color: rgba(217,226,239,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.cooler-app .button.primary,
.cooler-app .small-button.primary {
  background: var(--rb-gold);
  color: #071326;
}
.cooler-app .button,
.cooler-app .small-button {
  border-color: rgba(217,226,239,0.28);
}
.device-preview-toolbar {
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(6,26,68,0.96), rgba(10,45,114,0.78));
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.device-preview-toolbar strong { display: block; margin-top: 2px; }
.segmented-control {
  display: inline-flex;
  border: 1px solid rgba(217,226,239,0.24);
  background: rgba(2,7,18,0.65);
  padding: 3px;
  gap: 3px;
}
.segmented-control button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
}
.segmented-control button.active {
  background: var(--rb-gold);
  color: #111;
}
.cooler-demo-callout {
  position: sticky;
  top: 8px;
  z-index: 5;
  border: 1px solid rgba(245,200,75,0.55);
  background: rgba(3,9,21,0.95);
  color: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.38);
}
.demo-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--rb-red);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
}
.cooler-demo-callout strong { color: var(--rb-gold); }
.cooler-demo-callout p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.demo-actions {
  display: flex;
  gap: 6px;
}
.demo-highlight {
  outline: 3px solid var(--rb-gold) !important;
  box-shadow: 0 0 0 6px rgba(245,200,75,0.16) !important;
}
.device-preview-frame {
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.18);
  background: #090b0f;
  padding: 10px;
  transition: max-width 0.2s ease;
}
.device-preview-frame.phone {
  max-width: 390px;
  min-height: 720px;
  border-radius: 24px;
}
.device-preview-frame.tablet {
  max-width: 760px;
  min-height: 680px;
  border-radius: 16px;
}
.device-preview-frame.desktop {
  max-width: 100%;
  min-height: 0;
  border-radius: 0;
}
.device-preview-inner {
  background:
    linear-gradient(180deg, rgba(4,16,38,0.96), rgba(8,25,57,0.96)),
    var(--bg);
  min-height: inherit;
  padding: 10px;
  overflow: hidden;
}
.device-preview-frame.phone .cooler-field-hero,
.device-preview-frame.phone .device-preview-toolbar,
.device-preview-frame.phone .section-head,
.device-preview-frame.phone .cooler-shelf-label {
  flex-direction: column;
  align-items: stretch;
}
.device-preview-frame.phone .form-grid.two,
.device-preview-frame.phone .split,
.device-preview-frame.phone .mini-stats {
  grid-template-columns: 1fr;
}
.device-preview-frame.phone .cooler-field-hero {
  padding: 12px;
}
.device-preview-frame.phone .cooler-field-hero h2 {
  font-size: 1.45rem;
}
.device-preview-frame.phone .cooler-slot-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  overflow-x: visible;
}
.device-preview-frame.phone .cooler-slot {
  min-width: 0;
}
.device-preview-frame.tablet .cooler-slot-row {
  grid-template-columns: repeat(4, minmax(84px, 1fr)) !important;
  overflow-x: visible;
}
.cooler-field-hero {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(230,50,40,0.24), rgba(245,200,75,0.18), rgba(10,45,114,0.28));
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.cooler-field-hero.bottom-intro {
  display: none;
}
.bottom-intro-clone {
  margin-top: 14px;
  margin-bottom: 0;
}
.cooler-number-review {
  border: 2px solid var(--rb-red);
  background: rgba(230,50,40,0.16);
  color: #fff;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.cooler-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: stretch;
  margin-top: 12px;
}
.cooler-action-row .button,
.cooler-action-row .cooler-number-review {
  width: 100%;
  min-height: 48px;
  padding: 0 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cooler-action-row .cooler-number-review {
  font-size: 1rem;
}
.cooler-action-row .button:only-child {
  grid-column: 1 / -1;
}
.short-label { display: none; }
.device-preview-frame.phone .cooler-action-row {
  grid-template-columns: 1fr 1fr;
}
.device-preview-frame.phone .cooler-action-row .button {
  font-size: 0.88rem;
}
.device-preview-frame.phone .full-label { display: none; }
.device-preview-frame.phone .short-label { display: inline; }
.device-preview-frame.phone .cooler-review-buttons {
  gap: 10px;
}
.device-preview-frame.phone .cooler-review-buttons .cooler-number-review {
  width: 56px;
  height: 56px;
  min-height: 56px;
}
.cooler-review-strip {
  margin-top: 12px;
}
.cooler-review-strip .eyebrow {
  margin-bottom: 8px;
}
.cooler-review-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cooler-number-review:hover,
.cooler-number-review:focus {
  background: var(--rb-red);
}
.cooler-field-hero h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.cooler-field-hero h2,
.cooler-inventory-start h2,
.cooler-board-head h2,
.cooler-fill-summary h2 {
  letter-spacing: 0;
  text-transform: none;
}
.cooler-inventory-start {
  margin-bottom: 14px;
}
.cooler-inventory-start h2 {
  font-size: 1.55rem;
  margin: 4px 0 12px;
}
.cooler-setup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cooler-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.cooler-start-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--text);
  text-align: left;
  padding: 16px;
  display: grid;
  gap: 7px;
  cursor: pointer;
}
.cooler-start-card span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: var(--gold);
  color: #101010;
  font-weight: 900;
}
.cooler-start-card strong { font-size: 1.1rem; }
.cooler-start-card small { color: var(--muted); line-height: 1.35; }
.cooler-start-card.active {
  border-color: rgba(214,173,84,0.82);
  background: rgba(214,173,84,0.11);
}
.cooler-location-list,
.cooler-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.cooler-location-card,
.cooler-type-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
}
.cooler-row-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.cooler-row-list div {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cooler-row-list span { color: var(--muted); font-size: 0.82rem; }
.cooler-card-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.cooler-open-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-align: left;
  padding: 10px;
  display: grid;
  gap: 3px;
  cursor: pointer;
}
.cooler-open-card span,
.cooler-open-card small { color: var(--muted); }
.cooler-open-card:focus,
.cooler-open-card:hover {
  border-color: rgba(214,173,84,0.72);
  background: rgba(214,173,84,0.1);
}
.cooler-detail-screen {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
}
.cooler-mobile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.cooler-mobile-head h2 { margin: 0; font-size: 1.35rem; }
.cooler-board-head h2 { font-size: 1.4rem; }
.flavor-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  margin-top: 12px;
}
.flavor-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 7px 9px;
  display: inline-grid;
  gap: 2px;
  text-align: left;
  cursor: pointer;
}
.flavor-chip span { color: var(--muted); font-size: 0.72rem; }
.flavor-chip.muted-chip { opacity: 0.45; }
.cooler-board {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}
.cooler-shelf {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  padding: 12px;
}
.cooler-shelf-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cooler-shelf-label span { color: var(--muted); font-size: 0.84rem; }
.cooler-slot-row {
  display: grid;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.cooler-slot {
  min-width: 76px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #202328;
  padding: 6px;
  display: grid;
  gap: 5px;
}
.preferred-flavor {
  background: linear-gradient(135deg, var(--rb-gold), #ffe58b);
  color: #061022;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 4px;
  text-align: center;
  min-height: 28px;
  display: grid;
  place-items: center;
}
.can-stack {
  min-height: 56px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}
.can-stack span {
  width: 9px;
  height: calc(22px + (var(--can) * 3px));
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #dae6ff, #2f5bd5);
  border: 1px solid rgba(255,255,255,0.4);
}
.cooler-slot select,
.cooler-slot input {
  width: 100%;
  min-width: 0;
  padding: 6px;
  font-size: 0.75rem;
}
.cooler-slot label {
  font-size: 0.76rem;
  color: var(--muted);
}
.qty-line {
  display: grid;
  grid-template-columns: 22px minmax(28px, 1fr) 22px;
  gap: 3px;
  align-items: center;
}
.qty-tap {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  min-height: 28px;
  font-weight: 900;
}
.set-reference-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  padding: 0;
  cursor: pointer;
}
.cooler-row-step {
  display: grid;
  gap: 8px;
}
.cooler-step-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(217,226,239,0.18);
  background: rgba(255,255,255,0.035);
  padding: 6px;
}
.cooler-step-head h2 {
  margin: 0;
  font-size: 0.98rem;
}
.cooler-step-head .eyebrow,
.cooler-step-head .muted {
  margin: 0;
  font-size: 0.68rem;
}
.cooler-step-head .small-button {
  min-height: 38px;
  padding: 0 10px;
}
.cooler-step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.single-row-step {
  padding: 6px;
}
.single-row-step .cooler-slot-row {
  padding-bottom: 0;
}
.single-row-step .cooler-slot {
  padding: 5px;
  gap: 4px;
}
.single-row-step .cooler-slot select,
.single-row-step .cooler-slot input {
  padding: 5px;
  min-height: 34px;
}
.single-row-step .qty-tap {
  min-height: 26px;
}
.single-row-step .set-reference-link {
  font-size: 0.62rem;
}
.cooler-fill-summary {
  margin-top: 14px;
  border: 1px solid rgba(245,200,75,0.36);
  background: linear-gradient(135deg, rgba(245,200,75,0.14), rgba(6,26,68,0.88));
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.cooler-fill-summary h2 {
  font-size: 1rem;
  margin: 0;
}
.cooler-fill-summary .eyebrow,
.cooler-fill-summary .muted {
  font-size: 0.68rem;
  margin: 0;
}
.cooler-fill-summary .mini-stats {
  display: flex;
  gap: 6px;
}
.cooler-fill-summary .mini-stats div {
  padding: 6px 8px;
  min-width: 64px;
}
.cooler-fill-summary .mini-stats span {
  font-size: 0.6rem;
}
.cooler-fill-summary .mini-stats strong {
  font-size: 1rem;
}
.fill-review-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.fill-review-row {
  border: 1px solid rgba(217,226,239,0.18);
  background: rgba(2,7,18,0.3);
  padding: 10px;
}
.fill-review-row h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.fill-review-row h3 span {
  color: var(--muted);
  font-size: 0.78rem;
}
.fill-review-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 7px;
}
.fill-review-slots article {
  border: 1px solid rgba(217,226,239,0.16);
  background: rgba(255,255,255,0.045);
  padding: 8px;
  display: grid;
  gap: 4px;
  min-height: 86px;
}
.fill-review-slots article.needs-fill {
  border-color: rgba(230,50,40,0.58);
  background: rgba(230,50,40,0.14);
}
.fill-review-slots article.filled {
  border-color: rgba(91,217,136,0.36);
}
.slot-badge {
  color: var(--rb-gold);
  font-size: 0.68rem;
  font-weight: 900;
}
.fill-review-slots strong {
  font-size: 0.82rem;
}
.fill-review-slots small {
  color: var(--muted);
  font-size: 0.7rem;
}
.fill-review-slots b {
  justify-self: start;
  background: var(--rb-gold);
  color: #061022;
  padding: 2px 6px;
  font-size: 0.72rem;
}

footer { padding: 28px; color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; }
  .menu-button { display: inline-flex; margin-left: auto; border: 1px solid var(--line); color: #fff; background: transparent; padding: 8px 12px; }
  nav { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  .auth-actions { margin-left: 0; }
  .hero { min-height: 760px; }
  .metric-strip, .split, .listing-grid, .dashboard-grid, .plan-row, .compare-grid, .academy-grid, .calculator-grid, .filters, .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .discovery-form { grid-template-columns: 1fr; }
  .search-notes { grid-column: auto; }
  .target-result-main { grid-template-columns: 34px 1fr; }
  .target-result-side { grid-column: 2; justify-items: start; }
  .target-result-actions,
  .result-chips.compact { justify-content: flex-start; }
  .target-profile-grid { grid-template-columns: 1fr; }
  .target-profile-grid.tab-card-row { grid-auto-flow: row; grid-auto-columns: auto; }
  .report-toolbar { flex-direction: column; }
  .report-actions { justify-content: flex-start; }
  .report-grid { grid-template-columns: 1fr; }
  .target-profile-grid.compact-layer { grid-template-columns: 1fr; }
  .market-layer-grid { grid-template-columns: 1fr; }
  .metric-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-grid { grid-template-columns: 1fr; }
  .cooler-start-grid,
  .cooler-location-list,
  .cooler-type-grid { grid-template-columns: 1fr; }
  .cooler-slot-row { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)) !important; }
  .cooler-fill-summary { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  h1 { font-size: 3rem; }
  .hero-content { padding-left: 17px; }
  .auth-actions { width: 100%; }
  .auth-actions .small-button { flex: 1; }
  .listing-card dl, .mini-stats { grid-template-columns: 1fr; }
}

@media print {
  body.printing-search-report * { visibility: hidden !important; }
  body.printing-search-report .result-detail-report.print-active,
  body.printing-search-report .result-detail-report.print-active * { visibility: visible !important; }
  body.printing-search-report .result-detail-report.print-active {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0.35in;
    background: #fff !important;
    color: #111 !important;
  }
  body.printing-search-report .report-actions,
  body.printing-search-report .report-toolbar .eyebrow,
  body.printing-search-report .source-icon { display: none !important; }
  body.printing-search-report .report-toolbar,
  body.printing-search-report .report-field-card,
  body.printing-search-report .map-frame,
  body.printing-search-report .notice { border-color: #bbb !important; }
  body.printing-search-report .report-section {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 0.18in;
  }
  body.printing-search-report .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.printing-search-report a { color: #111 !important; text-decoration: underline; }
}
