:root {
  --ink: #11110f;
  --paper: #f7f3e8;
  --paper-2: #fffaf0;
  --green: #0f7a5f;
  --acid: #d9f04f;
  --coral: #f15c4f;
  --cyan: #35b4c7;
  --blue: #3157a4;
  --line: rgba(17, 17, 15, 0.18);
  --shadow: 0 24px 70px rgba(18, 23, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Archivo, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 2px solid var(--ink);
  background: rgba(247, 243, 232, 0.92);
}

.header-grid,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-grid {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
}

.card-kicker,
.status-chip,
.site-footer {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.settings-link,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool-menu {
  position: relative;
}

.tool-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.tool-menu summary::-webkit-details-marker {
  display: none;
}

.tool-menu summary::after {
  content: "+";
  margin-left: 10px;
}

.tool-menu[open] summary {
  background: var(--acid);
}

.tool-menu[open] summary::after {
  content: "-";
}

.tool-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  width: min(560px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 110px));
  overflow: auto;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 7px 7px 0 var(--ink);
}

.tool-menu-panel p {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-menu-panel a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.tool-menu-panel a:hover {
  background: var(--cyan);
}

.demo-toggle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(217, 240, 79, 0.22);
  cursor: pointer;
}

.demo-toggle input {
  grid-row: span 2;
  accent-color: var(--green);
}

.demo-toggle span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-toggle small {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.demo-mode-banner {
  position: sticky;
  top: 0;
  z-index: 19;
  border-bottom: 2px solid var(--ink);
  background: var(--acid);
}

.demo-banner-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  font-size: 13px;
  font-weight: 800;
}

.demo-banner-grid details {
  position: relative;
}

.demo-banner-grid summary {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.demo-banner-grid details p {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 6px 6px 0 var(--ink);
  line-height: 1.45;
}

.settings-link:hover,
.secondary-action:hover {
  background: var(--acid);
}

.api-key-warning {
  border-bottom: 2px solid var(--ink);
  background: var(--coral);
  color: var(--ink);
}

.warning-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 800;
}

.warning-grid span,
.warning-grid a {
  font-size: 13px;
}

.warning-grid a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.intro {
  padding: 56px 0 28px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.25;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0 60px;
}

.tool-category {
  padding: 14px 0;
}

.tool-category .tool-list {
  padding: 14px 0 30px;
}

.category-heading h2 {
  margin-top: 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.96;
}

.tool-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  align-items: stretch;
  min-height: 212px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 6px 6px 0 var(--ink);
}

.tool-card-primary {
  background:
    linear-gradient(90deg, rgba(217, 240, 79, 0.36), transparent 58%),
    var(--paper-2);
}

.tool-category-search .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(217, 240, 79, 0.38), transparent 58%),
    linear-gradient(135deg, rgba(55, 201, 214, 0.18), transparent 42%),
    var(--paper-2);
}

.tool-category-seo .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(255, 196, 87, 0.36), transparent 58%),
    linear-gradient(135deg, rgba(217, 240, 79, 0.18), transparent 44%),
    var(--paper-2);
}

.tool-category-geo .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(55, 201, 214, 0.34), transparent 58%),
    linear-gradient(135deg, rgba(255, 122, 93, 0.18), transparent 44%),
    var(--paper-2);
}

.tool-category-aso .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(241, 92, 79, 0.3), transparent 58%),
    linear-gradient(135deg, rgba(49, 87, 164, 0.18), transparent 44%),
    var(--paper-2);
}

.tool-category-shopping .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(241, 92, 79, 0.22), transparent 58%),
    linear-gradient(135deg, rgba(217, 240, 79, 0.24), transparent 44%),
    var(--paper-2);
}

.tool-category-travel .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(53, 180, 199, 0.24), transparent 58%),
    linear-gradient(135deg, rgba(15, 122, 95, 0.18), transparent 44%),
    var(--paper-2);
}

.tool-category-local .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(15, 122, 95, 0.26), transparent 58%),
    linear-gradient(135deg, rgba(217, 240, 79, 0.22), transparent 44%),
    var(--paper-2);
}

.tool-category-serp .tool-card-primary {
  background:
    linear-gradient(90deg, rgba(49, 87, 164, 0.26), transparent 58%),
    linear-gradient(135deg, rgba(53, 180, 199, 0.2), transparent 44%),
    var(--paper-2);
}

.tool-card h2 {
  margin-top: 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
}

.tool-card p:not(.card-kicker) {
  max-width: 720px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
}

.card-kicker {
  color: var(--green);
}

.card-action,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}

.card-action {
  justify-self: start;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.status-chip {
  background: var(--acid);
}

.workspace {
  display: grid;
  gap: 22px;
  padding: 12px 0 84px;
}

.search-console,
.results-board {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
}

.search-console {
  padding: 18px;
  box-shadow: 7px 7px 0 var(--ink);
}

.query-label,
.param-field span,
.results-header span,
.response-data summary,
.api-call summary,
.engine-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 8px;
}

.query-row input,
.param-field input,
.param-field select,
.param-field textarea {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.query-row input {
  padding: 0 14px;
}

.search-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-inline-status:empty {
  display: none;
}

.search-inline-status:not(:empty) {
  border-color: var(--ink);
  background: rgba(53, 180, 199, 0.14);
}

.credit-estimate {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 28px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(15, 122, 95, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.credit-estimate strong {
  color: var(--green);
}

.credit-estimate span {
  font-weight: 700;
  text-transform: none;
}

.credit-estimate.is-demo {
  background: rgba(53, 180, 199, 0.14);
}

.search-console > .tool-submit,
.search-console > .credit-estimate,
.search-console > .search-inline-status:not(:empty) {
  margin-top: 22px;
  vertical-align: middle;
}

.search-console > .tool-submit,
.search-console > .credit-estimate {
  margin-right: 14px;
}

.demo-samples {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(53, 180, 199, 0.18);
}

.demo-sample-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.demo-sample {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-sample.active,
.demo-sample:hover {
  background: var(--acid);
}

.demo-sample span,
.empty-inline {
  font-size: 12px;
  font-weight: 700;
}

.tiny-loader {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.param-field input,
.param-field select,
.param-field textarea {
  margin-top: 6px;
  padding: 0 10px;
}

.param-field textarea {
  min-height: 112px;
  padding: 10px;
  resize: vertical;
}

.param-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.param-fieldset > span {
  margin: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.checkbox-grid.checkbox-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-autocomplete-field,
.airport-autocomplete-field {
  position: relative;
  z-index: 4;
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--ink);
}

.location-suggestions[hidden] {
  display: none;
}

.location-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.location-suggestion:hover,
.location-suggestion.active {
  border-color: var(--ink);
  background: var(--acid);
}

.airport-suggestion strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.location-suggestion strong,
.location-suggestion span,
.location-suggestion-status {
  overflow-wrap: anywhere;
}

.location-suggestion strong {
  font-size: 13px;
  font-weight: 900;
}

.location-suggestion span,
.location-suggestion-status {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.location-suggestion-status {
  padding: 8px;
}

.location-shimmer {
  display: grid;
  gap: 8px;
}

.location-shimmer span {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, #eee9dd 0%, #fffaf0 44%, #e7e1d4 88%);
  background-size: 220% 100%;
  animation: locationShimmer 1.4s linear infinite;
}

@keyframes locationShimmer {
  to {
    background-position: -220% 0;
  }
}

.tool-submit {
  margin: 0;
}

.tool-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 22px;
}

.mode-tabs,
.engine-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mode-tab,
.engine-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.mode-tab.active,
.engine-tab.active {
  background: var(--acid);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.mode-panel {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mode-panel.active {
  display: block;
}

.panel-heading h2 {
  margin-top: 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.96;
}

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

.engine-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  cursor: pointer;
}

.engine-option-locked {
  cursor: default;
  background: rgba(217, 240, 79, 0.18);
}

.engine-option-locked i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 12px;
}

.engine-option input {
  accent-color: var(--green);
}

.engine-option span {
  display: grid;
  gap: 0;
  font-size: 13px;
}

.engine-option span small {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.results-board {
  min-height: 520px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--green);
  color: var(--paper);
}

.results-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.analysis-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.2), transparent 44%),
    #fffdf6;
}

.comparison-selector-card {
  background:
    linear-gradient(90deg, rgba(53, 180, 199, 0.2), transparent 54%),
    #fffdf6;
}

.comparison-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comparison-option {
  min-height: 38px;
  max-width: 100%;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.comparison-option.active {
  background: var(--acid);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.rank-query-card,
.rank-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(53, 180, 199, 0.18), transparent 55%),
    #fffdf6;
}

.rank-query-card h3,
.rank-summary-card h3 {
  margin-top: 4px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.98;
}

.rank-query-card p:not(.card-kicker),
.rank-summary-card p:not(.card-kicker) {
  margin-top: 8px;
  max-width: 680px;
  font-weight: 750;
  line-height: 1.4;
}

.rank-query-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.rank-query-tabs button {
  min-height: 36px;
  max-width: 240px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.rank-query-tabs button.active {
  background: var(--acid);
  box-shadow: 3px 3px 0 var(--ink);
}

.rank-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}

.rank-kpi-strip span {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.rank-kpi-strip strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  line-height: 0.95;
}

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

.rank-engine-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.rank-engine-card.rank-hit {
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.22), transparent 50%),
    #fffdf6;
}

.rank-engine-card.rank-miss {
  background:
    linear-gradient(135deg, rgba(241, 92, 79, 0.12), transparent 48%),
    #fffdf6;
}

.rank-engine-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rank-position-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.rank-hit .rank-position-pill {
  background: var(--acid);
}

.rank-match-block {
  display: grid;
  gap: 6px;
  min-height: 96px;
}

.rank-match-block a,
.rank-match-block h4 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.rank-match-block h4 {
  text-decoration: none;
}

.rank-match-block small {
  color: rgba(17, 17, 15, 0.68);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rank-match-block p {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

.rank-top-results {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.rank-top-results summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rank-top-results ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.rank-top-results li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.rank-top-results li.active {
  border-color: var(--ink);
  background: var(--acid);
}

.rank-top-results li span {
  font-size: 12px;
  font-weight: 900;
}

.rank-top-results li a,
.rank-top-results li strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rank-table-card {
  overflow-x: auto;
}

.serp-pair-card {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  background:
    linear-gradient(120deg, rgba(49, 87, 164, 0.16), transparent 58%),
    #fffdf6;
}

.serp-pair-card h3 {
  margin-top: 4px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.98;
}

.serp-pair-card p:not(.card-kicker) {
  margin-top: 8px;
  font-weight: 750;
  line-height: 1.4;
}

.serp-pair-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.serp-pair-tabs button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 9px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.serp-pair-tabs button.active {
  background: var(--acid);
  box-shadow: 3px 3px 0 var(--ink);
}

.serp-pair-tabs strong,
.serp-pair-tabs span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.serp-pair-tabs strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.serp-pair-tabs span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(120px, 1fr) minmax(78px, auto);
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.bar-row span,
.bar-row strong {
  overflow-wrap: anywhere;
}

.bar-row div {
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.bar-row i {
  display: block;
  min-width: 8px;
  height: 100%;
  background:
    linear-gradient(90deg, var(--cyan), var(--acid));
}

.relative-rank-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.relative-rank-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.relative-rank-card span,
.country-rank-card span {
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
  color: rgba(17, 17, 15, 0.64);
}

.relative-rank-card strong,
.country-rank-card strong {
  min-width: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 950;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.relative-rank-card small,
.country-rank-card small {
  min-width: 0;
  color: rgba(17, 17, 15, 0.68);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.relative-rank-card.is-you,
.relative-rank-card.is-leading {
  background:
    linear-gradient(135deg, rgba(53, 180, 199, 0.28), transparent 58%),
    var(--paper);
}

.relative-rank-card.is-behind {
  background:
    linear-gradient(135deg, rgba(241, 92, 79, 0.2), transparent 56%),
    var(--paper);
}

.rank-matrix-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.rank-matrix {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.rank-matrix th,
.rank-matrix td {
  padding: 10px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.18);
  text-align: left;
  vertical-align: top;
}

.rank-matrix thead th {
  background: rgba(17, 17, 15, 0.06);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.rank-matrix tbody th {
  width: 210px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.rank-matrix tbody th span {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.rank-cell {
  display: grid;
  gap: 3px;
  min-width: 86px;
  padding: 8px;
  border: 2px solid rgba(17, 17, 15, 0.42);
  border-radius: 8px;
  background: #f0f1f3;
}

.rank-cell strong {
  font-weight: 950;
}

.rank-cell small {
  color: rgba(17, 17, 15, 0.66);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rank-cell.rank-top,
.country-rank-card.rank-top {
  background: var(--acid);
}

.rank-cell.rank-good,
.country-rank-card.rank-good {
  background: rgba(53, 180, 199, 0.28);
}

.rank-cell.rank-ok,
.country-rank-card.rank-ok {
  background: rgba(255, 214, 102, 0.52);
}

.rank-cell.rank-low,
.country-rank-card.rank-low {
  background: rgba(241, 92, 79, 0.16);
}

.rank-cell.rank-miss,
.country-rank-card.rank-miss {
  background: #ece8dd;
  color: rgba(17, 17, 15, 0.62);
}

.rank-cell.is-you {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

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

.country-rank-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.geo-country-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.geo-kpi,
.geo-country-card,
.geo-target-matrix td span,
.geo-evidence-row {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.geo-kpi {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.geo-kpi span,
.geo-country-card-head span,
.geo-target-matrix th,
.geo-evidence-row span {
  color: rgba(17, 17, 15, 0.64);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.geo-kpi strong,
.geo-country-card-head strong {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 0.9;
}

.geo-kpi small,
.geo-country-card small,
.geo-target-matrix small,
.geo-evidence-row small {
  color: rgba(17, 17, 15, 0.68);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.geo-kpi.is-warning {
  background: rgba(241, 92, 79, 0.16);
}

.geo-country-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.geo-country-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.geo-country-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.geo-country-card p,
.geo-evidence-row p {
  color: rgba(17, 17, 15, 0.78);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.geo-evidence-text {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.geo-evidence-text p {
  max-width: 92ch;
}

.geo-evidence-text strong {
  font-weight: 950;
}

.geo-evidence-text code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 17, 15, 0.06);
  font-family: Archivo, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.geo-evidence-text details {
  margin-top: 2px;
}

.geo-evidence-text summary {
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.geo-evidence-text details div {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
}

.geo-evidence-table-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.geo-engine-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.geo-engine-strip span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.geo-engine-strip strong {
  font-size: 10px;
  text-transform: uppercase;
}

.geo-score-high {
  background: var(--acid);
}

.geo-score-mid {
  background: rgba(53, 180, 199, 0.28);
}

.geo-score-low {
  background: rgba(255, 214, 102, 0.52);
}

.geo-score-miss {
  background: #ece8dd;
  color: rgba(17, 17, 15, 0.62);
}

.geo-target-matrix {
  overflow-x: auto;
}

.geo-target-matrix table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.geo-target-matrix th,
.geo-target-matrix td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.geo-target-matrix td span {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.geo-target-matrix td strong {
  font-size: 16px;
  font-weight: 950;
}

.geo-evidence-list {
  display: grid;
  gap: 10px;
}

.geo-evidence-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.geo-evidence-row > div {
  display: grid;
  gap: 5px;
}

.geo-evidence-row strong {
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.geo-evidence-row footer {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.geo-evidence-row a {
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.rank-rail-chart {
  display: grid;
  gap: 10px;
}

.rank-rail-axis {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(160px, 1fr) minmax(92px, auto);
  gap: 12px;
  align-items: end;
  min-height: 18px;
  color: rgba(17, 17, 15, 0.58);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.rank-rail-axis-track {
  position: relative;
  height: 16px;
  min-width: 0;
}

.rank-rail-axis-track span {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.rank-rail-axis-track span:first-child {
  transform: translateX(0);
}

.rank-rail-axis-track span:last-child {
  transform: translateX(-100%);
}

.rank-rail-not-found-axis {
  text-align: right;
  white-space: nowrap;
}

.rank-rail-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(160px, 1fr) minmax(92px, auto);
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
}

.rank-rail-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rank-rail-label strong,
.rank-rail-label small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-rail-label small {
  color: rgba(17, 17, 15, 0.68);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.rank-rail-track {
  position: relative;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(217, 240, 79, 0.38), rgba(53, 180, 199, 0.18) 54%, rgba(241, 92, 79, 0.13)),
    var(--paper);
}

.rank-not-found .rank-rail-track {
  border-color: rgba(17, 17, 15, 0.42);
  background:
    repeating-linear-gradient(135deg, rgba(17, 17, 15, 0.08) 0 8px, transparent 8px 16px),
    rgba(236, 232, 221, 0.7);
}

.rank-rail-track::before,
.rank-rail-track::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(17, 17, 15, 0.48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rank-rail-track::before {
  content: "Best";
  left: 62px;
}

.rank-rail-track::after {
  content: "Lower";
  right: 10px;
}

.rank-not-found .rank-rail-track::before {
  content: "No ranked match";
  color: rgba(17, 17, 15, 0.42);
}

.rank-not-found .rank-rail-track::after {
  display: none;
}

.rank-rail-marker {
  position: absolute;
  top: 50%;
  left: clamp(20px, var(--rank-marker, 20px), calc(100% - 20px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.rank-rail-row.is-you .rank-rail-marker {
  background: var(--cyan);
}

.rank-not-found .rank-rail-marker {
  left: 20px;
}

.rank-rail-value {
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.rank-not-found .rank-rail-value {
  color: rgba(17, 17, 15, 0.62);
}

.rank-rail-compact {
  gap: 8px;
}

.rank-rail-compact .rank-rail-axis {
  display: none;
}

.rank-rail-compact .rank-rail-row {
  grid-template-columns: minmax(0, 1fr) minmax(74px, auto);
  gap: 10px;
}

.rank-rail-compact .rank-rail-label {
  display: none;
}

.rank-rail-compact .rank-rail-track {
  height: 28px;
}

.rank-rail-compact .rank-rail-track::before,
.rank-rail-compact .rank-rail-track::after {
  display: none;
}

.local-rank-chart {
  display: grid;
  gap: 12px;
}

.local-rank-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(140px, 1fr) minmax(82px, auto);
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
}

.local-rank-row span,
.local-rank-row strong {
  overflow-wrap: anywhere;
}

.local-rank-row div {
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.local-rank-row i {
  display: block;
  min-width: 8px;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(241, 92, 79, 0.82), rgba(53, 180, 199, 0.88));
}

.local-rank-row.is-you i {
  background:
    linear-gradient(90deg, var(--green), var(--acid));
}

.aso-rank-grid,
.aso-country-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aso-competitor-grid,
.local-competition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aso-engine-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.aso-engine-card.rank-hit {
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.34), transparent 48%),
    var(--paper);
}

.local-competition-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.local-competition-card.is-you {
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.34), transparent 48%),
    var(--paper);
}

.local-competition-card.rank-hit {
  box-shadow: 4px 4px 0 rgba(17, 17, 15, 0.22);
}

.local-competition-card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 42px;
  line-height: 0.9;
}

.local-competition-card strong,
.local-competition-card p,
.local-competition-card small {
  overflow-wrap: anywhere;
}

.local-competition-card p {
  font-weight: 750;
  line-height: 1.35;
}

.local-competition-card small {
  color: rgba(17, 17, 15, 0.72);
  font-weight: 800;
  line-height: 1.35;
}

.aso-engine-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.aso-engine-head h3,
.local-hero-card h3,
.pixel-summary-card h3 {
  margin-top: 4px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.95;
}

.aso-engine-head img {
  width: 62px;
  height: 62px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  object-fit: cover;
}

.rank-match {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.app-result-list {
  display: grid;
  gap: 8px;
}

.app-result-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.app-result-card.active {
  border-color: var(--ink);
  background: var(--acid);
  box-shadow: 3px 3px 0 var(--ink);
}

.app-result-card img,
.app-icon-fallback {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 10px;
}

.app-result-card img {
  object-fit: cover;
}

.app-icon-fallback {
  display: grid;
  place-items: center;
  background: var(--cyan);
  font-weight: 900;
}

.app-result-card strong,
.app-result-card small,
.app-result-card em {
  display: block;
  overflow-wrap: anywhere;
}

.app-result-card small {
  margin-top: 3px;
  color: rgba(17, 17, 15, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.app-result-card em {
  margin-top: 5px;
  color: rgba(17, 17, 15, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.aso-match-detail {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.aso-match-detail span,
.aso-match-detail p {
  color: rgba(17, 17, 15, 0.72);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.local-hero-card,
.pixel-summary-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.local-hero-card p:not(.card-kicker),
.pixel-summary-card p:not(.card-kicker) {
  margin-top: 8px;
  font-weight: 800;
}

.local-rank-meter {
  display: grid;
  place-items: center;
  min-width: 156px;
  min-height: 132px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cyan);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
}

.local-rank-meter strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 54px;
  line-height: 0.9;
}

.local-rank-meter span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pixel-viewport-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pixel-viewport-meta span {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pixel-canvas {
  position: relative;
  width: 100%;
  height: calc(100% - 36px);
  overflow: hidden;
  background: #ffffff;
}

.pixel-scroll-shell {
  width: 100%;
  max-height: 760px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    #f4f1e8;
  background-size: 28px 28px;
}

.pixel-browser-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  height: min(2236px, calc(var(--pixel-height) + 36px));
  margin: 0 auto;
  border: 2px solid rgba(17, 17, 15, 0.78);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 8px 8px 0 rgba(17, 17, 15, 0.18);
}

.pixel-browser-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.16);
  background: #f1f3f4;
}

.pixel-browser-top i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8dce1;
}

.pixel-browser-top span {
  flex: 1;
  height: 14px;
  margin-left: 8px;
  border-radius: 999px;
  background: #e2e5e9;
}

.pixel-rect {
  position: absolute;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #e9edf2 0%, #f7f8fa 54%, #e3e7ec 100%);
  opacity: 0.9;
  overflow: hidden;
}

.pixel-rect em {
  display: block;
  max-width: 100%;
  max-height: 12px;
  color: var(--ink);
  font-size: 9px;
  line-height: 1.15;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.pixel-rect-detail {
  display: -webkit-box;
  max-width: 100%;
  max-height: 24px;
  color: rgba(17, 17, 15, 0.72);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  pointer-events: none;
}

.pixel-rect.pixel-match {
  z-index: 2;
  border: 3px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.84), rgba(217, 240, 79, 0.56));
  box-shadow:
    0 0 0 4px rgba(241, 92, 79, 0.24),
    5px 5px 0 rgba(17, 17, 15, 0.24);
  opacity: 1;
}

.pixel-rect.pixel-match em {
  font-size: 10px;
}

.pixel-rect.pixel-match .pixel-rect-detail {
  color: rgba(17, 17, 15, 0.78);
}

.pixel-rect.pixel-tall::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 56px;
  background: linear-gradient(rgba(247, 248, 250, 0), rgba(247, 248, 250, 0.86));
}

.pixel-rect.pixel-match.pixel-tall::after {
  background: linear-gradient(rgba(217, 240, 79, 0), rgba(217, 240, 79, 0.72));
}

.line-chart {
  display: grid;
  gap: 14px;
}

.line-chart svg {
  width: 100%;
  min-height: 220px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(rgba(17, 17, 15, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
}

.trend-axis-line {
  stroke: rgba(17, 17, 15, 0.72);
  stroke-width: 2;
}

.trend-grid-line {
  stroke: rgba(17, 17, 15, 0.12);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.trend-axis-label,
.trend-axis-tick {
  fill: var(--ink);
  font-family: Archivo, Helvetica, sans-serif;
}

.trend-axis-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-axis-tick {
  font-size: 11px;
  font-weight: 700;
}

.trend-point {
  cursor: pointer;
  stroke: #fffdf6;
  stroke-width: 2;
  transition: transform 0.15s ease, stroke-width 0.15s ease;
}

.trend-point:hover,
.trend-point:focus {
  stroke-width: 3;
  outline: none;
}

.trend-inspector {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(53, 180, 199, 0.14);
}

.trend-inspector strong,
.trend-inspector span,
.trend-inspector b {
  font-size: 13px;
}

.trend-inspector strong {
  color: var(--green);
  text-transform: uppercase;
}

.trend-inspector b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 14px;
  font-weight: 900;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
}

.chart-legend i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.analysis-table-wrap {
  width: 100%;
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.analysis-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.analysis-table th,
.analysis-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.analysis-table th {
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-table td {
  font-weight: 700;
  line-height: 1.4;
}

.combined-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.result-placeholder {
  min-height: 260px;
  padding: 28px;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.28), transparent 42%),
    #fffdf6;
}

.result-placeholder h2 {
  margin-top: 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.94;
}

.result-placeholder p:not(.card-kicker) {
  max-width: 520px;
  margin-top: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.missing-key-panel {
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(241, 92, 79, 0.28), transparent 42%),
    #fffdf6;
}

.missing-key-panel .card-action {
  margin-top: 18px;
}

.answer-result {
  background: rgba(217, 240, 79, 0.28);
}

.result-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.engine-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
}

.engine-google,
.engine-google_light,
.engine-google_ai_mode,
.engine-google_images {
  background: var(--blue);
  color: var(--paper);
}

.engine-bing,
.engine-bing_copilot,
.engine-bing_images {
  background: var(--green);
  color: var(--paper);
}

.engine-duckduckgo,
.engine-duckduckgo_light,
.engine-duckduckgo_ai_overview {
  background: var(--coral);
  color: var(--paper);
}

.engine-yahoo {
  background: #6f3cc3;
  color: var(--paper);
}

.engine-baidu {
  background: #d43d2f;
  color: var(--paper);
}

.engine-yandex,
.engine-yandex_images {
  background: var(--acid);
  color: var(--ink);
}

.engine-naver,
.engine-naver_images {
  background: #20c55f;
  color: var(--ink);
}

.engine-brave_ai_mode {
  background: #f28c28;
  color: var(--ink);
}

.result-group {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.serp-overview-card,
.serp-section {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.serp-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.28), transparent 44%),
    #fffdf6;
}

.serp-overview-card h3,
.serp-answer-card h4,
.serp-kg-card h4,
.serp-ai-card h4,
.serp-product-card h4,
.serp-local-card h4 {
  font-family: Fraunces, Georgia, serif;
  line-height: 0.96;
  letter-spacing: 0;
}

.serp-overview-card h3 {
  margin-top: 6px;
  font-size: clamp(34px, 5vw, 56px);
}

.serp-overview-card p {
  margin-top: 10px;
  font-weight: 700;
}

.serp-feature-strip {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.serp-feature-strip span,
.serp-badge,
.mini-chip-row span,
.mini-chip-row a,
.serp-related-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.serp-feature-strip strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.metric-box.metric-active {
  border-color: var(--ink);
  background: rgba(217, 240, 79, 0.28);
}

.serp-answer-card,
.serp-kg-card {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.serp-answer-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
  background:
    linear-gradient(135deg, rgba(55, 180, 199, 0.16), transparent 48%),
    #fffdf6;
}

.serp-answer-main,
.serp-ai-card,
.serp-link-card,
.serp-product-card,
.serp-local-card {
  display: grid;
  gap: 8px;
}

.serp-answer-main h4,
.serp-ai-card h4,
.serp-kg-card h4 {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 38px);
}

.serp-answer-main a,
.serp-link-card a,
.serp-kg-card a,
.serp-question a,
.mini-chip-row a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.serp-step-list,
.serp-ai-points {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.serp-step-list li,
.serp-ai-points li {
  font-weight: 700;
  line-height: 1.45;
}

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

.serp-thumb-strip img,
.serp-kg-image,
.serp-product-card img,
.serp-local-card img,
.serp-media-card img,
.serp-link-card > img,
.serp-map-preview img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
}

.serp-thumb-strip img {
  aspect-ratio: 1;
}

.serp-ai-list,
.serp-card-list,
.serp-question-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.serp-ai-card,
.serp-link-card,
.serp-question,
.serp-product-card,
.serp-local-card,
.serp-media-card {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
}

.serp-ai-card {
  padding: 14px;
}

.serp-video-inline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  font-weight: 800;
}

.serp-video-inline img {
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.serp-kg-card {
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
}

.serp-kg-image {
  aspect-ratio: 4 / 3;
}

.serp-kg-card p,
.serp-product-card p,
.serp-local-card p,
.serp-link-card p,
.serp-question p {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.serp-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.serp-fact-grid div {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.serp-fact-grid span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.serp-fact-grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.serp-product-grid,
.serp-local-grid,
.serp-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
}

.serp-product-card,
.serp-local-card,
.serp-media-card {
  overflow: hidden;
}

.serp-product-card img,
.serp-media-card img {
  aspect-ratio: 4 / 3;
  border-width: 0 0 1px;
  border-radius: 0;
}

.serp-product-card div,
.serp-local-card div {
  padding: 12px;
}

.serp-product-card h4,
.serp-local-card h4 {
  font-size: 22px;
}

.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.serp-map-preview {
  display: block;
  padding: 14px 14px 0;
}

.serp-map-preview img {
  max-height: 220px;
  object-fit: cover;
}

.serp-local-card {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: stretch;
}

.serp-local-card img {
  height: 100%;
  min-height: 112px;
  border-width: 0 1px 0 0;
  border-radius: 0;
}

.serp-local-card small,
.serp-link-card small,
.serp-media-card small {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.serp-question summary {
  padding: 14px;
  cursor: pointer;
  font-weight: 800;
}

.serp-question p,
.serp-question a {
  display: block;
  margin: 0 14px 14px;
}

.serp-media-card {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  color: var(--ink);
}

.serp-media-card .serp-badge,
.serp-media-card strong,
.serp-media-card small {
  margin: 0 12px;
}

.serp-link-card {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.serp-link-card > img {
  aspect-ratio: 1;
}

.serp-paid-section .serp-badge {
  background: var(--coral);
  color: var(--paper);
}

.serp-product-section .serp-badge {
  background: var(--acid);
}

.serp-ai-section .serp-badge,
.serp-answer-section .serp-badge {
  background: var(--cyan);
}

.serp-related-chips a {
  color: var(--ink);
  text-decoration: none;
  text-transform: none;
}

.image-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.image-result-card {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.image-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(55, 201, 214, 0.2), transparent 44%),
    var(--paper);
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-thumb span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.image-card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.image-card-body h3 {
  font-size: 15px;
  line-height: 1.2;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-actions a {
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.result-error {
  border-color: var(--coral);
}

.result-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.result-group-header h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  line-height: 0.95;
}

.answer-card {
  margin: 14px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(217, 240, 79, 0.28);
}

.answer-card p,
.combined-result p,
.result-item p,
.result-error p,
.empty-state {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.answer-card a,
.result-item a,
.combined-result a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.result-items {
  display: grid;
}

.result-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.result-items .result-item:first-child {
  border-top: 0;
}

.result-position {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.combined-result small,
.result-item small {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-weight: 800;
}

.result-link-line {
  display: block;
  margin-top: 6px;
}

.result-url {
  overflow-wrap: anywhere;
}

.result-date {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}

.response-data {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}

.response-data summary {
  cursor: pointer;
}

.response-data pre {
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.45;
}

.api-call-panel {
  border-top: 2px solid var(--ink);
  padding: 16px;
  background: rgba(247, 243, 232, 0.72);
}

.creator-cache-panel {
  border-top: 2px solid var(--ink);
  background: rgba(255, 250, 240, 0.8);
}

.creator-cache {
  padding: 16px;
}

.creator-cache summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-cache form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.creator-cache small {
  font-weight: 800;
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
}

.load-more-row .secondary-action[hidden] {
  display: none;
}

.load-more-row .secondary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.api-call-heading h2,
.docs-heading h2 {
  margin-top: 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.96;
}

.api-call-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.api-call {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  overflow: hidden;
}

.api-call summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  cursor: pointer;
}

.api-call h3 {
  padding: 12px 12px 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.api-call pre {
  max-height: 340px;
  overflow: auto;
  margin: 10px 12px 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.45;
}

.ai-answer-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.ai-answer-card.has-full-presence {
  box-shadow: inset 7px 0 0 var(--green);
}

.ai-answer-card.has-partial-presence {
  box-shadow: inset 7px 0 0 var(--cyan);
}

.ai-answer-card.has-no-presence {
  background:
    repeating-linear-gradient(-45deg, rgba(17, 17, 15, 0.026) 0 8px, transparent 8px 16px),
    #fffdf6;
}

.ai-answer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-answer-header small {
  display: block;
  margin-top: 5px;
  color: rgba(17, 17, 15, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-answer-card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.96;
}

.ai-answer-card > p {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.52;
}

.geo-explainer,
.prompt-result-group {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.geo-explainer {
  display: grid;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(55, 201, 214, 0.18), transparent 44%),
    #fffdf6;
}

.geo-explainer h3 {
  max-width: 720px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.96;
}

.geo-explainer p:not(.card-kicker) {
  max-width: 760px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.presence-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.presence-metric {
  min-height: 116px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 5px 5px 0 var(--ink);
}

.presence-metric strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 0.9;
}

.presence-metric span,
.presence-metric small {
  display: block;
  margin-top: 8px;
}

.presence-metric span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.presence-metric small {
  color: rgba(17, 17, 15, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.prompt-engine-list {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.presence-status-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.presence-pill.is-active {
  background: var(--acid);
}

.presence-pill.is-muted {
  background: #fffaf0;
  color: rgba(17, 17, 15, 0.55);
}

.presence-pill.is-error {
  background: var(--coral);
  color: var(--ink);
}

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

.evidence-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
}

.evidence-column.is-empty {
  background:
    repeating-linear-gradient(-45deg, rgba(17, 17, 15, 0.035) 0 7px, transparent 7px 14px),
    var(--paper);
}

.evidence-column.is-empty p {
  color: rgba(17, 17, 15, 0.68);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.evidence-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.evidence-column-header h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-column-header span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 12px;
  font-weight: 800;
}

.target-match-list {
  display: grid;
  gap: 10px;
}

.target-match {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.18), transparent 48%),
    var(--paper);
}

.target-match h4 {
  font-size: 14px;
  font-weight: 800;
}

.target-match p {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.target-match a {
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.citation-position {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.match-markdown {
  gap: 6px;
}

.match-markdown p,
.match-markdown li {
  font-size: 14px;
}

@media (max-width: 820px) {
  .presence-summary-strip,
  .evidence-columns {
    grid-template-columns: 1fr;
  }

  .presence-metric {
    min-height: auto;
  }
}

.match-markdown h3,
.match-markdown h4,
.match-markdown h5 {
  font-family: Archivo, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.markdown-answer {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.markdown-answer.collapsed {
  max-height: 320px;
}

.markdown-answer.collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(rgba(255, 253, 246, 0), #fffdf6);
}

.markdown-answer h3,
.markdown-answer h4,
.markdown-answer h5,
.markdown-answer p {
  font-family: Archivo, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.52;
}

.markdown-answer h3,
.markdown-answer h4,
.markdown-answer h5 {
  margin-top: 8px;
  font-weight: 800;
}

.markdown-answer h4 {
  font-size: 18px;
}

.markdown-answer h5 {
  font-size: 16px;
}

.markdown-answer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.markdown-answer li {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.52;
}

.markdown-answer code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.markdown-answer a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.markdown-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.markdown-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.markdown-table th,
.markdown-table td {
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.4;
}

.markdown-table th {
  background: var(--acid);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.markdown-table tr:last-child td {
  border-bottom: 0;
}

.markdown-table th:last-child,
.markdown-table td:last-child {
  border-right: 0;
}

.text-toggle {
  justify-self: start;
}

.citation-panel {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(217, 240, 79, 0.2);
}

.citation-panel summary {
  padding: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.citation-item {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fffdf6;
}

.citation-item a,
.citation-item strong {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.citation-item small {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-weight: 800;
}

.citation-item p {
  margin-top: 8px;
}

.empty-state {
  padding: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.metric-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.metric-box strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 34px;
  line-height: 0.95;
}

.metric-box span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.chip-list span {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.docs-band {
  padding: 0 0 84px;
}

.docs-heading {
  margin-bottom: 16px;
}

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

.doc-link {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
}

.doc-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.doc-link span {
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.settings-panel {
  padding: 12px 0 84px;
}

.settings-form {
  max-width: 760px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 7px 7px 0 var(--ink);
}

.settings-note {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(217, 240, 79, 0.3);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.settings-mode-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.settings-demo-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.settings-demo-toggle input {
  margin-top: 4px;
  accent-color: var(--green);
}

.settings-demo-toggle span {
  display: grid;
  gap: 4px;
}

.settings-demo-toggle strong {
  font-size: 15px;
  text-transform: uppercase;
}

.settings-demo-toggle small,
.settings-mode-card p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.settings-mode-card p {
  margin: 0;
  color: var(--green);
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.secondary-action {
  cursor: pointer;
  font-family: inherit;
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--green);
  color: var(--paper);
}

.footer-grid {
  min-height: 82px;
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.footer-grid p {
  line-height: 1.35;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-icon-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
}

.footer-icon-link:hover,
.footer-icon-link:focus {
  text-decoration: none;
}

.footer-icon-link:hover {
  background: var(--paper);
  color: var(--green);
}

.site-footer a:not(.footer-icon-link),
.settings-note a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.commerce-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(90deg, rgba(217, 240, 79, 0.3), transparent 58%),
    var(--paper-2);
}

.commerce-hero-card h3,
.product-gallery-card h3 {
  margin: 4px 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
}

.marketplace-engine-strip,
.commerce-product-grid,
.travel-card-grid,
.marketplace-grid {
  display: grid;
  gap: 12px;
}

.marketplace-engine-strip {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.marketplace-engine-strip span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
}

.commerce-product-grid,
.travel-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.commerce-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: start;
}

.marketplace-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.commerce-product-card,
.travel-result-card,
.marketplace-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
}

.commerce-product-card:hover,
.travel-result-card:hover {
  background: rgba(217, 240, 79, 0.18);
}

.commerce-product-card {
  align-content: start;
  overflow: hidden;
}

.trip-builder-hero {
  background:
    linear-gradient(130deg, rgba(53, 180, 199, 0.16), transparent 52%),
    linear-gradient(320deg, rgba(217, 240, 79, 0.2), transparent 58%),
    #fffdf6;
}

.travel-search-hero {
  background:
    linear-gradient(130deg, rgba(17, 128, 96, 0.16), transparent 50%),
    linear-gradient(320deg, rgba(53, 180, 199, 0.15), transparent 58%),
    #fffdf6;
}

.travel-card-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-heading-row,
.travel-filter-bar,
.travel-price-row,
.travel-card-meta,
.travel-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-heading-row,
.travel-price-row,
.travel-card-meta {
  justify-content: space-between;
}

.card-heading-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.travel-filter-bar {
  flex-wrap: wrap;
  align-items: end;
  margin: 8px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
}

.travel-filter-field {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.travel-filter-field span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.travel-filter-field select {
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.commerce-product-card img,
.travel-result-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.commerce-product-card img {
  height: 156px;
  object-fit: contain;
}

.travel-result-card img {
  object-fit: cover;
}

.travel-flight-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.travel-flight-title-row strong {
  min-width: 0;
}

.travel-result-card .travel-flight-logo-icon {
  width: 34px;
  height: 34px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(17, 17, 15, 0.14);
}

.travel-result-card-rich {
  align-content: start;
  overflow: hidden;
}

.travel-result-card-rich:hover {
  background: var(--paper-2);
}

.hotel-result-card {
  display: flex;
  flex-direction: column;
}

.travel-card-meta {
  min-width: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.travel-card-meta span {
  min-width: 0;
}

.travel-card-meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-price-row {
  align-items: start;
  min-width: 0;
}

.travel-price-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.travel-price {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.travel-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.travel-stat-strip span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.booking-offer-list {
  display: grid;
  gap: 6px;
}

.hotel-price-compare {
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.hotel-price-compare summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.hotel-price-compare summary span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.hotel-price-compare .booking-offer-list {
  margin-top: 8px;
}

.booking-offer,
.flight-segment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  text-decoration: none;
}

.booking-offer strong {
  white-space: nowrap;
}

.booking-offer span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.booking-offer img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: contain;
}

.flight-segment-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: 6px;
  font-size: 13px;
}

.flight-segment-row span:last-child {
  text-align: right;
}

.travel-detail-toggle {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.travel-detail-toggle summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 900;
}

.travel-card-actions {
  justify-content: flex-end;
}

.hotel-result-card .travel-card-actions {
  margin-top: auto;
  padding-top: 8px;
}

.commerce-product-card strong,
.travel-result-card strong,
.marketplace-card h3 {
  font-size: 15px;
  line-height: 1.15;
}

.commerce-product-card h3 {
  display: -webkit-box;
  min-height: 56px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: Archivo, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.12;
}

.commerce-product-card small,
.travel-result-card small,
.marketplace-card small {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.commerce-product-card em,
.travel-result-card p {
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.3;
}

.local-experience-card {
  min-height: 0;
}

.local-experience-copy {
  display: grid;
  gap: 8px;
}

.local-experience-copy summary {
  display: grid;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.local-experience-copy summary::-webkit-details-marker {
  display: none;
}

.local-copy-preview,
.local-experience-copy p {
  margin: 0;
}

.local-experience-copy:not([open]) .local-copy-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.local-experience-copy[open] .local-copy-preview {
  display: none;
}

.local-experience-copy:not([open]) p {
  display: none;
}

.local-copy-more,
.travel-result-link {
  justify-self: start;
}

.local-copy-more {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.view-less-label,
.local-experience-copy[open] .view-more-label {
  display: none;
}

.local-experience-copy[open] .view-less-label {
  display: inline;
}

.product-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.product-card-head .engine-tag {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  justify-self: end;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--acid);
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  line-height: 0.95;
  white-space: nowrap;
}

.product-card-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.product-link {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
}

.product-link.is-muted {
  opacity: 0.58;
}

.product-detail-toggle {
  min-width: 0;
}

.product-detail-toggle summary {
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-toggle div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.product-detail-toggle p {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.trip-itinerary-board,
.trip-step-card,
.trip-option-card,
.trip-itinerary-slot,
.trip-agenda-row {
  border: 1px solid var(--ink);
  border-radius: 8px;
}

.trip-itinerary-board {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(125deg, rgba(217, 240, 79, 0.2), transparent 50%),
    rgba(255, 250, 240, 0.82);
}

.trip-wizard-card {
  gap: 18px;
}

.trip-wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trip-wizard-progress button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.trip-wizard-progress button.active {
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.trip-wizard-progress span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  font-weight: 950;
}

.trip-wizard-progress strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
  text-align: left;
}

.trip-wizard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.trip-wizard-summary {
  position: static;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.2), transparent 44%),
    var(--paper-2);
}

.trip-wizard-summary .trip-itinerary-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
}

.trip-wizard-summary .trip-itinerary-head {
  margin-bottom: 10px;
}

.trip-wizard-summary .trip-itinerary-head h3 {
  font-family: Archivo, sans-serif;
  font-size: 24px;
  line-height: 1.05;
}

.trip-wizard-summary .trip-itinerary-head p {
  max-width: 58ch;
  font-size: 13px;
  line-height: 1.35;
}

.trip-wizard-summary .trip-itinerary-slot {
  gap: 4px;
  min-height: 0;
  padding: 10px 12px;
}

.trip-wizard-summary .trip-itinerary-slot strong,
.trip-wizard-summary .trip-itinerary-slot small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-wizard-summary .trip-itinerary-slot strong {
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.15;
}

.trip-wizard-summary .trip-itinerary-slot small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.25;
}

.trip-itinerary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.trip-itinerary-slot {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: var(--paper);
}

.trip-itinerary-slot strong,
.trip-itinerary-slot small,
.trip-agenda-row strong,
.trip-agenda-row small {
  overflow-wrap: anywhere;
}

.trip-agenda-list {
  display: grid;
  gap: 10px;
}

.trip-agenda-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--paper);
}

.trip-agenda-row > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-weight: 900;
}

.trip-agenda-empty {
  padding: 8px 0 0;
}

.trip-step-card {
  display: grid;
  gap: 16px;
  background: rgba(255, 250, 240, 0.72);
}

.trip-step-active {
  padding: 16px;
  border-width: 2px;
  background:
    linear-gradient(135deg, rgba(53, 180, 199, 0.14), transparent 50%),
    var(--paper-2);
}

.trip-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.trip-step-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.trip-step-head h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.95;
}

.trip-step-head p {
  margin-top: 8px;
  max-width: 62ch;
  font-weight: 750;
  line-height: 1.4;
}

.trip-step-guidance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(217, 240, 79, 0.16);
  font-size: 13px;
  font-weight: 850;
}

.trip-step-guidance strong {
  color: var(--green);
}

.trip-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}

.trip-option-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: var(--paper);
}

.trip-option-card.selected {
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.28), transparent 48%),
    var(--paper);
  box-shadow: 4px 4px 0 rgba(17, 17, 15, 0.18);
}

.trip-option-flight-card {
  align-content: start;
}

.trip-option-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.trip-option-thumb-logo {
  object-fit: contain;
  padding: 18px;
}

.trip-option-thumb-fallback {
  display: grid;
  place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 48px;
  background:
    linear-gradient(135deg, rgba(53, 180, 199, 0.3), rgba(217, 240, 79, 0.4));
}

.trip-option-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trip-flight-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.trip-flight-title-row strong {
  min-width: 0;
}

.trip-flight-logo-icon {
  width: 34px;
  height: 34px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(17, 17, 15, 0.14);
}

.trip-option-copy strong,
.trip-option-copy small,
.trip-option-copy p {
  overflow-wrap: anywhere;
}

.trip-option-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trip-picker-btn,
.trip-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.trip-picker-btn {
  cursor: pointer;
}

.trip-picker-btn.is-selected {
  background: var(--ink);
  color: var(--paper);
}

.trip-pagination-row {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.trip-show-more {
  min-width: min(260px, 100%);
}

.trip-wizard-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 4px 4px 0 rgba(17, 17, 15, 0.14);
  backdrop-filter: blur(8px);
}

.trip-next-action:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--acid);
  color: var(--ink);
}

.trip-wizard-actions button:disabled,
.card-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.trip-source-link.is-muted {
  opacity: 0.65;
}

.trip-final-itinerary {
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.22), transparent 50%),
    #fffdf6;
  box-shadow: 6px 6px 0 rgba(17, 17, 15, 0.14);
}

.trip-final-itinerary .trip-itinerary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr) auto;
  align-items: center;
}

.trip-itinerary-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(260px, 100%);
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(53, 180, 199, 0.12), rgba(217, 240, 79, 0.2)),
    #fffdf6;
  box-shadow: 4px 4px 0 rgba(17, 17, 15, 0.12);
}

.trip-itinerary-cover img,
.trip-itinerary-cover span {
  display: grid;
  width: 100%;
  aspect-ratio: 1.42;
  min-height: 74px;
  place-items: center;
  object-fit: cover;
  border: 1px solid rgba(17, 17, 15, 0.34);
  border-radius: 6px;
  background: var(--paper);
  font-family: Fraunces, Georgia, serif;
  font-size: 46px;
  font-weight: 950;
}

.trip-itinerary-cover-logo {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.trip-day-list {
  display: grid;
  gap: 12px;
}

.trip-day-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(217, 240, 79, 0.12), transparent 42%),
    var(--paper);
}

.trip-day-head {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-right: 1px solid var(--ink);
  background: var(--acid);
}

.trip-day-head span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.trip-day-head strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  line-height: 0.95;
}

.trip-day-events {
  display: grid;
  gap: 0;
}

.trip-day-events article {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.16);
  background:
    linear-gradient(90deg, rgba(53, 180, 199, 0.08), transparent 42%),
    var(--paper);
}

.trip-day-events article::before {
  content: "";
  position: absolute;
  left: 55px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(17, 17, 15, 0.14);
}

.trip-day-thumb {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  align-self: start;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(17, 17, 15, 0.12);
}

.trip-day-thumb-logo {
  object-fit: contain;
  padding: 10px;
}

.trip-day-thumb-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(217, 240, 79, 0.5), rgba(53, 180, 199, 0.22));
  font-family: Fraunces, Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.trip-day-event-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.trip-event-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.trip-event-time span,
.trip-event-time em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.trip-event-time span {
  background: var(--acid);
}

.trip-event-time em {
  background: #fff;
  color: rgba(17, 17, 15, 0.74);
}

.trip-day-events article:last-child {
  border-bottom: 0;
}

.trip-day-events strong,
.trip-day-events small,
.trip-day-event-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.trip-day-events a {
  justify-self: start;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.product-thumb-fallback {
  display: grid;
  height: 132px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--acid);
  font-size: 42px;
  font-weight: 800;
}

.marketplace-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.marketplace-card.rank-hit {
  box-shadow: 5px 5px 0 var(--acid);
}

@media (max-width: 980px) {
  .tool-list {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }

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

  .trip-itinerary-head {
    grid-template-columns: 1fr;
  }

  .trip-final-itinerary .trip-itinerary-head {
    grid-template-columns: 1fr;
  }

  .trip-itinerary-cover {
    width: 100%;
    max-width: 420px;
  }

  .trip-wizard-layout {
    grid-template-columns: 1fr;
  }

  .trip-wizard-summary {
    position: static;
  }

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

  .trip-wizard-summary .trip-itinerary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-query-card,
  .rank-summary-card,
  .rank-engine-grid,
  .serp-pair-card {
    grid-template-columns: 1fr;
  }

  .rank-query-tabs,
  .serp-pair-tabs {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
  }

  .brand {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .tool-menu {
    width: auto;
    justify-self: start;
  }

  .settings-link {
    justify-self: end;
  }

  .tool-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    transform: none;
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 32px));
  }

  .footer-grid,
  .tool-card,
  .warning-grid,
  .demo-banner-grid,
  .settings-actions,
  .serp-overview-card,
  .serp-answer-card,
  .serp-kg-card,
  .serp-local-card,
  .serp-link-card {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 18px 0;
    gap: 8px;
    text-align: center;
  }

  .demo-banner-grid {
    padding: 12px 0;
    gap: 8px;
  }

  .demo-banner-grid details p {
    left: 0;
    right: auto;
  }

  .intro {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .query-row,
  .engine-grid,
  .checkbox-grid,
  .checkbox-grid.checkbox-grid-compact,
  .param-grid,
  .metric-grid,
  .demo-sample-list,
  .relative-rank-summary,
  .geo-country-kpis,
  .geo-country-card-grid,
  .country-rank-grid,
  .aso-rank-grid,
  .aso-country-grid,
  .aso-competitor-grid,
  .local-competition-grid,
  .rank-kpi-strip,
  .serp-pair-tabs,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .trip-itinerary-grid,
  .trip-option-grid,
  .trip-wizard-progress,
  .trip-day-card {
    grid-template-columns: 1fr;
  }

  .trip-wizard-summary .trip-itinerary-grid {
    grid-template-columns: 1fr;
  }

  .trip-option-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .trip-wizard-actions {
    flex-direction: column;
    border-radius: 12px;
  }

  .trip-day-events article {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .trip-day-thumb {
    width: 56px;
    height: 56px;
  }

  .trip-day-head {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .rank-engine-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-query-tabs button {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }

  .bar-row,
  .local-rank-row,
  .rank-rail-row,
  .rank-rail-axis,
  .rank-rail-compact .rank-rail-row {
    grid-template-columns: 1fr;
  }

  .rank-rail-axis {
    display: none;
  }

  .rank-rail-value {
    text-align: left;
  }

  .geo-evidence-row {
    grid-template-columns: 1fr;
  }

  .geo-evidence-row footer {
    grid-column: auto;
  }

  .analysis-table {
    min-width: 620px;
  }

  .serp-fact-grid,
  .serp-thumb-strip {
    grid-template-columns: 1fr;
  }

  .serp-local-card img {
    width: 100%;
    height: auto;
    border-width: 0 0 1px;
  }
}
