/* Scoped Haveswap next UI. Do not leak into the legacy public shell. */
.hs-app {
  --hs-bg: #080808;
  --hs-surface: #0c0c0c;
  --hs-elev: #121212;
  --hs-fg: #f3f1ea;
  --hs-muted: #b7b3a8;
  --hs-faint: #918b80;
  --hs-line: #232323;
  --hs-line-strong: #676158;
  --hs-accent: #e8c37a;
  --hs-on-accent: #14110b;
  --hs-good: #b7ffc4;
  --hs-hold: #e6d7a2;
  --hs-warn: #f0c4a8;
  --hs-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hs-sans: "IBM Plex Sans", "Source Sans 3", "Segoe UI", sans-serif;
  --hs-pad: clamp(16px, 3vw, 28px);
  color: var(--hs-fg);
  background: var(--hs-bg);
  font-family: var(--hs-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

.hs-app *,
.hs-app *::before,
.hs-app *::after { box-sizing: border-box; }

.hs-app a { color: inherit; }

.hs-app :focus-visible {
  outline: 2px solid var(--hs-fg);
  outline-offset: 3px;
}

.hs-app button,
.hs-app [role="button"] { cursor: pointer; }

.hs-app button:disabled { cursor: not-allowed; opacity: 0.55; }

.hs-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hs-owner { margin-top: 16px; }

.hs-skip:focus {
  left: 8px;
  z-index: 80;
  background: var(--hs-fg);
  color: var(--hs-bg);
  padding: 8px 12px;
}

.hs-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hs-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px var(--hs-pad);
  background: color-mix(in srgb, var(--hs-bg) 92%, transparent);
  border-bottom: 1px solid var(--hs-line);
}

.hs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
  flex: 0 0 auto;
}
.hs-brand-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--hs-line-strong);
  display: grid;
  place-items: center;
  font-family: var(--hs-mono);
  font-size: 15px;
}
.hs-brand-name {
  font-family: var(--hs-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.hs-brand-name span { color: var(--hs-accent); }
.hs-brand small {
  display: block;
  color: var(--hs-faint);
  font-family: var(--hs-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.hs-nav a,
.hs-nav button.hs-nav-link {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--hs-muted);
  text-decoration: none;
  font-size: 14px;
}
.hs-nav a[aria-current="page"],
.hs-nav button.hs-nav-link[aria-current="page"] {
  color: var(--hs-fg);
  box-shadow: inset 0 -2px 0 var(--hs-fg);
}
.hs-nav .hs-sell {
  border: 1px solid var(--hs-fg);
  background: var(--hs-fg);
  color: var(--hs-bg);
  margin-left: 6px;
}

.hs-appear {
  position: relative;
}
.hs-appear-btn {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--hs-line);
  background: transparent;
  color: var(--hs-muted);
  font-family: var(--hs-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 0 10px;
}
.hs-appear-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: var(--hs-elev);
  border: 1px solid var(--hs-line-strong);
  padding: 8px;
  z-index: 40;
}
.hs-appear-menu button {
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--hs-fg);
  font-size: 14px;
  padding: 0 10px;
}
.hs-appear-menu button[aria-pressed="true"] {
  background: var(--hs-fg);
  color: var(--hs-bg);
}

.hs-main {
  flex: 1;
  padding: 20px var(--hs-pad) 48px;
}

.hs-promise {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  max-width: 46rem;
}
.hs-promise p {
  margin: 0;
  color: var(--hs-muted);
  font-size: 16px;
  text-wrap: pretty;
}
.hs-kicker {
  margin: 0;
  font-family: var(--hs-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-faint);
}
.hs-promise h1,
.hs-page-title {
  margin: 0;
  font-family: var(--hs-sans);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.hs-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--hs-line);
  background: var(--hs-surface);
}
.hs-search {
  display: flex;
  gap: 8px;
}
.hs-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--hs-line-strong);
  background: var(--hs-bg);
  color: var(--hs-fg);
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
}
.hs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hs-filters label {
  display: grid;
  gap: 4px;
  flex: 1 1 9rem;
  max-width: 100%;
  font-size: 13px;
  color: var(--hs-muted);
}
.hs-filters select,
.hs-filters input[type="number"] {
  min-height: 44px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--hs-line-strong);
  background: var(--hs-bg);
  color: var(--hs-fg);
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
}
.hs-count {
  margin: 0 0 12px;
  color: var(--hs-muted);
  font-size: 14px;
}

.hs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.hs-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  min-height: 0;
}
.hs-card:hover { border-color: var(--hs-line-strong); }
.hs-card-photo {
  aspect-ratio: 4 / 3;
  background: var(--hs-elev);
  border-bottom: 1px solid var(--hs-line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hs-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hs-card-photo .hs-no-photo {
  color: var(--hs-faint);
  font-family: var(--hs-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.hs-card-body {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
}
.hs-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.hs-price {
  font-family: var(--hs-mono);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.hs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--hs-muted);
  font-size: 13px;
}
.hs-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--hs-line);
  font-size: 13px;
  color: var(--hs-muted);
}
.hs-pill.is-gone { color: var(--hs-warn); border-color: color-mix(in srgb, var(--hs-warn) 40%, var(--hs-line)); }

.hs-pager {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.hs-btn,
.hs-app button.hs-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hs-line-strong);
  background: transparent;
  color: var(--hs-fg);
  font: inherit;
  font-size: 15px;
}
.hs-btn-primary,
.hs-app button.hs-btn-primary {
  background: var(--hs-fg);
  color: var(--hs-bg);
  border-color: var(--hs-fg);
}
.hs-btn-accent,
.hs-app button.hs-btn-accent {
  background: var(--hs-accent);
  color: var(--hs-on-accent);
  border-color: var(--hs-accent);
}
.hs-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs-state {
  padding: 28px 8px;
  border: 1px dashed var(--hs-line);
}
.hs-state h2 { margin: 0 0 8px; font-size: 22px; }
.hs-state p { margin: 0 0 14px; color: var(--hs-muted); max-width: 40rem; }
.hs-error { border-style: solid; border-color: color-mix(in srgb, var(--hs-warn) 45%, var(--hs-line)); }

.hs-detail {
  display: grid;
  gap: 18px;
}
@media (min-width: 860px) {
  .hs-detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }
}
.hs-gallery {
  display: grid;
  gap: 8px;
}
.hs-gallery-main {
  aspect-ratio: 4 / 3;
  background: var(--hs-elev);
  border: 1px solid var(--hs-line);
  display: grid;
  place-items: center;
}
.hs-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hs-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-thumbs button {
  width: 72px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--hs-line);
  background: var(--hs-elev);
}
.hs-thumbs button[aria-current="true"] { border-color: var(--hs-fg); }
.hs-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.hs-detail-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.hs-detail-copy .hs-price { font-size: 28px; }
.hs-spec {
  display: grid;
  gap: 8px 16px;
  margin: 14px 0;
  font-size: 14px;
}
@media (min-width: 520px) {
  .hs-spec { grid-template-columns: 10rem minmax(0, 1fr); }
}
.hs-spec dt { color: var(--hs-faint); font-family: var(--hs-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hs-spec dd { margin: 0; overflow-wrap: anywhere; }
.hs-prose { font-size: 16px; color: var(--hs-fg); overflow-wrap: anywhere; text-wrap: pretty; }
.hs-prose p { margin: 0 0 12px; }
.hs-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--hs-muted);
}
.hs-claim {
  margin-top: 10px;
  font-size: 13px;
  color: var(--hs-faint);
}

.hs-form {
  display: grid;
  gap: 0;
  max-width: 40rem;
  border: 1px solid var(--hs-line);
  background: var(--hs-surface);
}
.hs-field {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hs-line);
}
.hs-field:last-child { border-bottom: 0; }
.hs-field > span,
.hs-field > legend {
  font-size: 13px;
  color: var(--hs-muted);
}
.hs-field input,
.hs-field select,
.hs-field textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--hs-line-strong);
  background: var(--hs-bg);
  color: var(--hs-fg);
  padding: 8px 10px;
  font: inherit;
  font-size: 16px;
}
.hs-field textarea { min-height: 110px; resize: vertical; }
/* Keep one real select and its native picker. iOS native chrome can compress
   the visible control despite min-height and render a dark-on-dark arrow. */
.hs-app .hs-filters select,
.hs-app .hs-field select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  min-height: 44px;
  padding: 10px 36px 10px 10px;
  font-size: 16px;
  line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23f3f1ea' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}
@media (forced-colors: active) {
  .hs-app .hs-filters select,
  .hs-app .hs-field select {
    appearance: auto;
    background-image: none;
  }
}
.hs-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hs-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hs-line-strong);
  font-size: 14px;
}
.hs-choice input { accent-color: var(--hs-fg); width: 18px; height: 18px; }
.hs-field-error { margin: 0; color: var(--hs-warn); font-size: 14px; }
.hs-help { margin: 0; font-size: 13px; color: var(--hs-faint); }
.hs-photo-drop {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--hs-line-strong);
  background: var(--hs-elev);
  text-align: center;
  padding: 16px;
  cursor: pointer;
}
.hs-photo-drop img {
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
}
.hs-review {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--hs-line);
  background: var(--hs-surface);
}
.hs-success {
  display: grid;
  gap: 12px;
  max-width: 40rem;
}

.hs-check-result {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.hs-verdict {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--hs-line);
  background: var(--hs-surface);
}
.hs-verdict strong {
  font-family: var(--hs-mono);
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hs-verdict[data-tone="buy"] strong { color: var(--hs-good); }
.hs-verdict[data-tone="hold"],
.hs-verdict[data-tone="negotiate"],
.hs-verdict[data-tone="value_check"] { }
.hs-verdict[data-tone="hold"] strong,
.hs-verdict[data-tone="negotiate"] strong,
.hs-verdict[data-tone="value_check"] strong { color: var(--hs-hold); }
.hs-stack { display: grid; gap: 10px; }
.hs-stack h2 { margin: 0; font-size: 16px; }
.hs-stack ul { margin: 0; padding-left: 1.1rem; }
.hs-stack li { margin: 0 0 6px; overflow-wrap: anywhere; }
.hs-sponsor {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--hs-line);
  font-size: 14px;
}
.hs-sponsor small {
  display: block;
  font-family: var(--hs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-faint);
  margin-bottom: 6px;
}

.hs-guide { max-width: 44rem; display: grid; gap: 16px; }
.hs-guide section { display: grid; gap: 8px; }
.hs-guide h2 { margin: 0; font-size: 20px; }
.hs-sources { font-size: 14px; color: var(--hs-muted); }

.hs-footer {
  margin-top: auto;
  padding: 18px var(--hs-pad) 28px;
  border-top: 1px solid var(--hs-line);
  color: var(--hs-faint);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.hs-footer strong {
  font-family: var(--hs-mono);
  letter-spacing: 0.12em;
  color: var(--hs-muted);
  font-weight: 500;
}

.hs-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}
.hs-dialog {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--hs-bg);
  border: 1px solid var(--hs-line-strong);
  padding: 18px;
}
.hs-dialog h2 { margin: 0 0 8px; font-size: 20px; }

.hs-banner {
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--hs-line);
  background: var(--hs-elev);
  font-size: 14px;
  color: var(--hs-muted);
}

@media (max-width: 640px) {
  .hs-header {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .hs-nav {
    width: 100%;
    margin-left: 0;
    order: 3;
    border-top: 1px solid var(--hs-line);
    padding-top: 4px;
  }
  .hs-grid { grid-template-columns: 1fr; }
  .hs-card-photo { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-app * { transition: none !important; animation: none !important; }
}

html[data-hs-face="paper"] .hs-app {
  --hs-bg: #efeee8;
  --hs-surface: #f7f6f1;
  --hs-elev: #fff;
  --hs-fg: #161513;
  --hs-muted: #4e4b45;
  --hs-faint: #6f6b63;
  --hs-line: #d5d1c7;
  --hs-line-strong: #b7b1a4;
  --hs-accent: #8a5a12;
  --hs-on-accent: #fff8ea;
  --hs-good: #1f6b3a;
  --hs-hold: #7a5d12;
  --hs-warn: #8a3418;
}

/* Integration: readable controls and semantic grouped fields. */
.hs-app fieldset.hs-field { margin: 0; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--hs-line); min-width: 0; }
.hs-app fieldset.hs-field legend { padding: 0; margin-bottom: 8px; }
.hs-app input[type="file"] { display: block; width: 100%; min-height: 44px; padding: 8px; color: inherit; font: inherit; }
.hs-app input[type="file"]::file-selector-button { min-height: 44px; margin-right: 8px; }
.hs-app .hs-photo-drop { min-width: 0; }
.hs-app .hs-photo-drop img { aspect-ratio: 4/3; width: 100%; max-height: 280px; object-fit: contain; }
.hs-app .hs-footer nav a { display: inline-block; min-height: 44px; padding: 10px 0; }
.hs-app .hs-dialog { max-height: 85dvh; overflow-y: auto; }
.hs-app .hs-choice { flex-wrap: wrap; }
.hs-app .hs-choice label { min-height: 44px; display: inline-flex; align-items: center; }

.hs-skip { position: absolute; left: -10000px; top: 0; }
.hs-app a.hs-btn { display: inline-flex; align-items: center; text-decoration: none; }
