/* Roobs — custom CSS (no Tailwind, no Bootstrap) */

:root {
  --bg: #ffffff;
  --bg-wash: #f9f9f9;
  --ink: #12141a;
  --muted: #5c6470;
  --line: #e4e6eb;
  --accent: #b03300;
  --accent-hover: #8c2900;
  --accent-soft: #fbeee8;
  --accent-ink: #ffffff;
  --success: #0b7a4b;
  --danger: #c0162a;
  --info: #1550c0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-border:
    0 0 0 1px rgba(18, 20, 26, 0.06),
    0 1px 2px -1px rgba(18, 20, 26, 0.06),
    0 2px 8px rgba(18, 20, 26, 0.04);
  --shadow-border-hover:
    0 0 0 1px rgba(18, 20, 26, 0.1),
    0 8px 24px -8px rgba(18, 20, 26, 0.16);
  --header-h: 72px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-display: "Sora", "Figtree", system-ui, sans-serif;
  --container: 1488px;
  --focus: 0 0 0 3px rgba(176, 51, 0, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  outline: 0px solid rgba(18, 20, 26, 0.08);
  outline-offset: -1px;
}

.brand-logo {
  outline: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.ink-links a:not(.btn):not([aria-current="page"]) {
  color: var(--ink);
}

.ink-links a:not(.btn):not([aria-current="page"]):hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p { text-wrap: pretty; }

button,
[role="button"] {
  cursor: pointer;
}

button:disabled,
[role="button"][aria-disabled="true"] {
  cursor: not-allowed;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -40px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-2);
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-wash);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  text-decoration: none;
  color: var(--ink);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  outline: var(--accent) solid 1px;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  background: var(--bg-wash);
  color: var(--ink);
}

.btn-outline {
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: var(--accent) solid 1px;
}

.btn-outline:hover {
  background: var(--bg-wash);
  color: var(--accent);
}

.btn-outline svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.btn-outline .heart-fill {
  fill: none;
}

.btn-outline[aria-pressed="true"] .heart-fill {
  fill: currentColor;
}

.btn-sm {
  min-height: 36px;
  padding: 0 24px;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.card:hover {
  box-shadow: var(--shadow-border-hover);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-wash);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none;
}

.card-fav-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
}

.card-fav {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-border);
  display: grid;
  place-items: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.card-fav:hover {
  background: #fff;
  color: var(--accent);
}

.card-fav[aria-pressed="true"] {
  color: var(--accent);
}

.card-fav svg {
  width: 20px;
  height: 20px;
  display: block;
}

.card-fav .heart-fill {
  fill: none;
}

.card-fav[aria-pressed="true"] .heart-fill {
  fill: currentColor;
}

.listing-card .card-body {
  display: block;
  color: inherit;
  text-decoration: none;
}

.listing-card .card-body:hover {
  text-decoration: none;
  color: inherit;
}

.listing-card .card-title:hover {
  color: var(--accent);
}

.card-type {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}

.card-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand nav toggle"
    "search search search";
  gap: 10px 16px;
  align-items: center;
  padding: 10px 0 12px;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--ink); text-decoration: none; }

.brand-logo {
  height: 32px;
  width: auto;
}

.brand-logo-footer {
  height: 36px;
  filter: none;
}

.header-search {
  grid-area: search;
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg-wash);
  border-radius: 999px;
  overflow: visible;
  box-shadow: inset 0 0 0 1px var(--line);
}

.header-search:focus-within {
  box-shadow: inset 0 0 0 1px var(--accent), var(--focus);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 16px;
  min-height: 44px;
  font: inherit;
  color: var(--ink);
}

.header-search input:focus {
  outline: none;
  box-shadow: none;
}

.header-search input::placeholder {
  color: #8b929c;
}

.search-submit {
  flex-shrink: 0;
  border-radius: 999px;
  margin: 4px;
  min-width: 44px;
  padding: 0 14px;
}

.search-submit-label { display: none; }

.search-field { position: relative; }

.search-suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(18, 20, 26, 0.14), 0 0 0 1px var(--line);
  max-height: min(70vh, 420px);
  overflow: auto;
}

.search-suggest[hidden] { display: none; }

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: var(--bg-wash);
  text-decoration: none;
}

.search-suggest-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-wash);
  flex-shrink: 0;
}

.search-suggest-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-suggest-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.search-interpretation {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
}

.listing-tags a { font-weight: 600; }

.header-nav {
  grid-area: nav;
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
}

.nav-link,
.nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
}

.nav-link:hover,
.nav-icon:hover {
  background: var(--bg-wash);
  color: var(--ink);
  text-decoration: none;
}

.header-nav form {
  display: inline-flex;
  margin: 0;
}

button.nav-link {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.mobile-nav form {
  margin: 0;
}

.mobile-nav button.nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.site-header a:not(.btn),
.site-header a:not(.btn):hover {
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.nav-messages img {
  display: block;
  width: 22px;
  height: 22px;
}

.nav-basket .badge,
.nav-messages .badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  font-size: 13px;
  pointer-events: none;
}

.nav-toggle {
  grid-area: toggle;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] { display: none !important; }

/* Flash */
.flash-stack {
  width: min(100% - 32px, var(--container));
  margin: 12px auto 0;
  display: grid;
  gap: 8px;
}

.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: var(--shadow-border);
}

.flash p { margin: 0; }

.flash-success { background: #e8f6ee; }
.flash-error { background: #fdecee; }
.flash-info { background: var(--accent-soft); }

.flash-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  min-width: 32px;
  min-height: 32px;
}

/* Page */
.page-shell {
  flex: 1;
  padding: var(--space-6) 0 var(--space-7);
}

.home-main {
  flex: 1;
}

.home-band {
  padding: 36px 0 48px;
}

.home-band-wash {
  background: var(--bg-wash);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.35rem;
  margin: 0;
}

.section-head a {
  font-weight: 600;
  white-space: nowrap;
}

.intro-panel {
  padding: 28px 0 8px;
}

.intro-panel h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.intro-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 0 20px;
}

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

.cat-tile {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.cat-tile:hover {
  color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow-border-hover);
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg-wash);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.sell-form select:has(option[value=""]:checked) {
  color: var(--muted);
}

.sell-form select option {
  color: var(--ink);
}

.sell-layout {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: grid;
  gap: 32px;
  align-items: start;
}

.sell-preview-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sell-preview-card {
  min-width: 0;
}

.sell-preview-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 10px;
}

.sell-preview .card-price {
  font-size: 1.6rem;
  font-family: var(--font-display);
  margin: 0 0 8px;
}

.sell-preview .is-placeholder {
  color: var(--muted);
  font-weight: 500;
}

.sell-preview-kicker {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.sell-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.sell-preview-empty[hidden] {
  display: none;
}

.sell-preview-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.sell-preview-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-wash);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.sell-preview-thumb.is-active {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.sell-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none;
  display: block;
}

.sell-preview .seller-copy p {
  margin: 0;
}

.sell-panel {
  order: -1;
}

.sell-panel h1 {
  margin-top: 0;
}

@media (min-width: 980px) {
  .sell-layout {
    grid-template-columns: minmax(800px, 700px) minmax(0, 1fr);
    gap: 48px;
  }

  .sell-preview {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

.date-prompt {
  position: relative;
}

.date-prompt-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.date-prompt.is-filled .date-prompt-label,
.date-prompt:focus-within .date-prompt-label {
  opacity: 0;
}

.date-prompt:not(.is-filled):not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit {
  color: transparent;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-check label {
  font-weight: 500;
  line-height: 1.4;
}

.form-check a {
  font-weight: 600;
}

.form-help {
  color: var(--muted);
  font-size: 0.85rem;
}

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

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

.photo-thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-wash);
  box-shadow: inset 0 0 0 1px var(--line);
}

.photo-thumb.is-removed {
  display: none;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.78);
  color: #fff;
  font: 700 18px/1 var(--font-sans);
  cursor: pointer;
}

.photo-remove:hover {
  background: var(--ink);
}

.photo-picker input[type="file"] {
  margin-top: 12px;
}

.photo-picker.is-full input[type="file"] {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 719px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-wash);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding: 40px 0 32px;
}

.footer-brand p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 28ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.footer-col a {
  color: var(--ink);
  font-weight: 500;
  min-height: 32px;
}

.footer-base {
  border-top: 1px solid var(--line);
}

.footer-base-inner {
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-base p { margin: 0; }

/* Hero Slideshow */
.hero {
  background: #fff;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  padding: 20px 0 32px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  container-name: hero;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  outline: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(20px, 4.5cqi, 44px) clamp(16px, 8cqi, 96px) clamp(180px, 6cqi, 68px);
  gap: clamp(6px, 1.4cqi, 16px);
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2.2cqi, 1.15rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  max-width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.2cqi, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-fees {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9cqi, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  max-width: 100%;
}

.hero-lede {
  color: rgb(255, 255, 255);
  font-size: clamp(1rem, 1.8cqi, 1.1rem);
  line-height: 1.5;
  margin: 0;
  max-width: min(30rem, 100%);
}

.btn-hero {
  background: #fff;
  color: var(--accent);
  pointer-events: auto;
  min-width: min(180px, 100%);
  box-shadow: none;
  text-shadow: none;
}

.btn-hero:hover {
  background: var(--bg-wash);
  color: var(--accent);
}

@container hero (max-width: 820px) {
  .hero-kicker {
    letter-spacing: 0.14em;
  }

  .hero-title {
    max-width: 16ch;
  }
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hero-dot[aria-current="true"] {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 719px) {
  .hero,
  .hero-layout {
    display: none;
  }
}

@media (min-width: 720px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 0 40px;
  }

  .header-inner {
    grid-template-columns: auto minmax(200px, 1fr) minmax(0, auto);
    grid-template-areas: "brand search nav";
    padding: 0;
  }

  .nav-toggle,
  .mobile-nav { display: none !important; }

  .header-nav { display: flex; }

  .search-submit-label { display: inline; }

  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .brand-logo { height: 36px; }
}

@media (min-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide {
    transition: none;
  }
}

/* Auth */
.auth-wrap {
  width: min(100% - 32px, 640px);
  margin: 32px auto 56px;
}

.auth-wrap h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.auth-wrap > p {
  color: var(--muted);
  margin: 0 0 24px;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius);
}

.auth-alt {
  margin-top: 18px;
  color: var(--muted);
}

.register-page .auth-card .btn[type="submit"] {
  min-width: 240px;
  padding-inline: 48px;
}

.login-page .auth-card .btn[type="submit"] {
  width: 100%;
}

.register-page .auth-alt {
  margin-top: 16px;
}

.register-page {
  padding-top: 12px;
}

.register-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  align-items: center;
}

.register-layout .auth-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.register-visual {
  min-width: 0;
}

.register-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  object-position: center bottom;
  outline: none;
}

.register-visual .photo-business { display: none; }

.register-page:has(#type-business:checked) .photo-personal { display: none; }
.register-page:has(#type-business:checked) .photo-business { display: block; }

.account-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-wash);
  border-radius: 999px;
  padding: 4px;
  margin: 0 0 24px;
}

.account-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.account-toggle input:checked + label {
  background: var(--ink);
  color: #fff;
}

.account-toggle input:focus-visible + label {
  box-shadow: var(--focus);
}

@media (min-width: 900px) {
  .register-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 640px);
    gap: 48px;
    padding: 8px 0 32px;
  }

  .register-layout .auth-wrap {
    margin: 0;
  }
}

/* Listing detail */
.listing-layout {
  display: grid;
  gap: 28px;
}

.listing-layout > * {
  min-width: 0;
}

.gallery {
  position: relative;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-wash);
  aspect-ratio: 4 / 3;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none;
  opacity: 0;
  visibility: hidden;
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.gallery-main .card-fav-form {
  z-index: 4;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-border);
}

.gallery-nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.buy-box {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.buy-box h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}

.buy-box .card-price {
  font-size: 1.6rem;
  font-family: var(--font-display);
  margin: 0 0 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.buy-box .meta-row {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 6px;
}

.buy-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.buy-actions .btn {
  width: 100%;
}

.buy-actions form {
  display: grid;
  gap: 10px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buy-box .qty-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 6px;
}

.buy-box .qty-row label {
  font-weight: 600;
  margin: 0;
}

.qty-row input {
  width: 72px;
  min-height: 48px;
  text-align: center;
  border-radius: 12px;
  background: var(--bg-wash);
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
}

.qty-stock {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.seller-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.seller-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
}

.seller-avatar-photo {
  overflow: hidden;
  padding: 0;
  background: var(--bg-wash);
}

.seller-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.profile-identity .seller-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.7rem;
}

.profile-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-identity h1 {
  margin: 0 0 12px;
}

.profile-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 8px;
}

.profile-id-value {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--ink);
}

.profile-name-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-name-note.is-same {
  color: var(--ink);
  font-weight: 600;
}

.auth-card .profile-name-note {
  margin: 4px 0 16px;
}

#edit-profile {
  scroll-margin-top: 96px;
}

.avatar-field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar-field .form-field {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
}

.avatar-field .form-check {
  margin: 8px 0 0;
}

.seller-copy {
  min-width: 0;
}

.seller-card a {
  color: var(--ink);
  font-weight: 700;
}

.listing-desc {
  margin-top: 28px;
}

.listing-desc h2 {
  font-size: 1.15rem;
}

.listing-desc p {
  white-space: pre-wrap;
}

.recent-row {
  margin-top: 40px;
  padding-top: 8px;
}

.recent-row h2 {
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.recent-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.recent-thumbs a {
  flex: 0 0 132px;
  width: 132px;
  color: var(--ink);
  text-decoration: none;
}

.recent-thumb-photo {
  position: relative;
  display: block;
  width: 132px;
  height: 99px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.recent-thumbs a:hover {
  color: var(--accent);
  text-decoration: none;
}

.recent-thumbs img {
  width: 132px;
  height: 99px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-wash);
  display: block;
  outline: none;
}

.recent-thumbs span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 600;
}

.prose {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.prose h1 {
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.prose p {
  margin: 0 0 12px;
}

.contact-form {
  margin-top: 20px;
}

.contact-form .btn {
  margin-top: 8px;
}

.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.faq-list details {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list details p {
  margin: 10px 0 0;
}

.stars {
  color: #d8d8d8;
  letter-spacing: 1px;
}

.star.is-on {
  color: var(--accent);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.crumb a { color: var(--muted); }

/* Search / browse */
.search-layout {
  display: grid;
  gap: 24px;
}

.filters {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  padding: 16px;
}

.filters h2 {
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.filters .btn {
  width: 100%;
  margin-top: 8px;
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.results-head h1 {
  font-size: 1.4rem;
  margin: 0;
}

.search-featured {
  margin-top: 28px;
}

.result-list {
  display: flex;
  flex-direction: column;
}

.result-row {
  display: grid;
  grid-template-columns: 252.5px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.result-row:first-child {
  padding-top: 4px;
}

.result-row:hover .result-row-title {
  color: var(--accent);
}

.result-row-media {
  position: relative;
  display: block;
  height: 222.5px;
  background: #fff;
}

.result-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  column-gap: 24px;
  row-gap: 6px;
  min-width: 0;
}

.result-row-photo,
.result-row-copy {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.result-row-copy {
  flex: 1 1 12rem;
}

.result-row-seller {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin: 2px 0 0 auto;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: right;
}

.result-row-seller:hover {
  color: inherit;
  text-decoration: none;
}

.result-row-seller .star.is-on {
  color: var(--success);
}

.result-row-photo {
  height: 100%;
}

.result-row-photo:hover,
.result-row-copy:hover {
  color: inherit;
  text-decoration: none;
}

.result-row-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  object-fit: cover;
}

.result-row-title {
  margin: 0 0 10px;
  font-size: 1.188rem;
  font-weight: 100;
  line-height: 1.25;
  color: var(--ink);
}

.result-row-price {
  margin: 0 0 10px;
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.result-row-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
}

.result-row-type {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
}

@media (max-width: 719px) {
  .result-row {
    grid-template-columns: 156.25px minmax(0, 1fr);
    gap: 17px;
    align-items: start;
    padding: 16px 0;
  }

  .result-row-media {
    height: 143.75px;
  }

  .result-row-title {
    font-size: 0.924rem;
  }

  .result-row-price {
    font-size: 1.012rem;
  }

  .result-row-main {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .result-row-seller {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    text-align: left;
    margin-top: 0;
  }
}

.pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pager a,
.pager span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-border);
  background: #fff;
  padding: 0 10px;
  font-weight: 600;
}

.pager [aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.profile-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-head > .btn {
  align-self: center;
  height: 44px;
}

.badge-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #bec1c7;
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-verified {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5f6ee;
  color: #0b7a4b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-wash);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-active { color: #0b7a4b; }
.status-suspended { color: #7a3e12; background: #fff4e5; }
.status-banned { color: #8f1d1d; background: #fde8e8; }

.impersonation-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  background: #3d2a00;
  color: #fff;
}

.impersonation-bar p { margin: 0; }

.impersonation-bar .btn {
  background: #fff;
  color: #3d2a00;
}

.hold-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4e5;
  color: #7a3e12;
}

.admin-summary {
  margin: 0 0 20px;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 0 0 20px;
}

.admin-filters .form-field,
.admin-section .form-field {
  margin-bottom: 0;
}

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

.admin-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  padding: 16px 18px;
  margin: 0 0 16px;
}

.admin-tools .admin-section {
  margin-bottom: 0;
}

.admin-section h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.payment-keys {
  max-width: 640px;
}

.payment-keys + form {
  margin-top: 16px;
}

.payment-keys .form-field {
  margin-bottom: 16px;
}

.payment-status {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.payment-status div {
  display: grid;
  gap: 2px;
}

.payment-status dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-status dd {
  margin: 0;
}

.payment-session {
  word-break: break-all;
  font-size: 0.85rem;
}

.admin-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.admin-inline .form-field {
  flex: 1;
  min-width: 180px;
}

@media (min-width: 900px) {
  .admin-tools {
    grid-template-columns: 1fr 1fr;
  }
}

.split-2 {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .listing-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .search-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .split-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.stack-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}

.stack-row {
  display: grid;
  grid-template-columns: 196px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.thread-link:hover {
  text-decoration: none;
  box-shadow: var(--shadow-border-hover);
}

.stack-thumb {
  position: relative;
  display: block;
  width: 150px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-wash);
}

.stack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none;
}

.stack-body { min-width: 0; }
.stack-body .card-title { margin-bottom: 4px; }

.totals {
  margin-top: 8px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  max-width: 360px;
}

.totals .btn { margin-top: 12px; }

.checkout-layout {
  display: grid;
  gap: 24px;
}

.checkout-layout h2 {
  font-size: 1.05rem;
  margin: 8px 0 12px;
}

.checkout-pay {
  width: 100%;
  margin-top: 8px;
}

.embedded-checkout {
  min-height: 480px;
  margin-top: 8px;
}

.checkout-change {
  margin-top: 16px;
}

.order-summary {
  min-width: 0;
}

.order-summary h2 {
  margin-top: 0;
}

.order-summary-items {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.order-summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.order-summary-item form {
  margin: 0;
  flex: 0 0 auto;
}

.order-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.order-remove:hover {
  background: var(--bg-wash);
  color: var(--danger);
}

.order-summary-item p {
  margin: 0;
  min-width: 0;
  flex: 1;
}

.order-summary-photo {
  width: 96px;
  height: 72px;
  flex: 0 0 96px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-wash);
}

.order-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.order-total-label {
  margin: 0;
  font-weight: 700;
}

.buy-box .order-total .card-price {
  border-top: 0;
  padding-top: 2px;
  margin: 0;
}

.card-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.card-brands img {
  display: block;
  height: 48px;
  width: auto;
}

.countdown {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 8px 0;
}

.plain-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.plain-table th { color: var(--muted); font-weight: 600; }

.plain-table tr.contact-row td {
  background: #fff6f1;
}

.plain-table .message-body,
.contact-enquiry .message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.plain-table .message-body {
  max-width: 28rem;
}

.stack-row.contact-enquiry {
  grid-template-columns: 1fr;
}

.table-wrap {
  overflow-x: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.tabs a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-wash);
}

.tabs a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.tabs a:hover { text-decoration: none; }

.feedback-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.thread {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.bubble {
  background: var(--bg-wash);
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 36rem;
}

.bubble p { margin: 0 0 6px; }
.bubble p:last-child { margin: 0; }

.bubble.is-mine {
  background: var(--accent-soft);
  justify-self: end;
}

@media (min-width: 720px) {
  .checkout-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

@media (max-width: 719px) {
  .order-summary-photo {
    width: 72px;
    height: 56px;
    flex-basis: 72px;
  }
}

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

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  padding: 16px 18px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

@media (max-width: 719px) {
  .stack-row {
    grid-template-columns: 172px 1fr;
  }

  .stack-row .stack-actions,
  .stack-row > .btn,
  .stack-row > form {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid.stats-customer {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-intro {
  max-width: 42rem;
  margin-top: 0;
}

.stats-range-note {
  margin: -8px 0 20px;
}

.stats-heading {
  margin: 8px 0 12px;
  font-size: 1.35rem;
}

.chart-grid {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
}

.chart-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  padding: 16px 18px;
  min-width: 0;
}

.chart-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.chart-card .card-meta {
  margin: 0 0 14px;
}

.chart-empty {
  margin: 0;
  color: var(--muted);
}

.chart-card-wide {
  grid-column: 1 / -1;
}

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

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.bar-label,
.path-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-wash);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}

.bar-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.col-scroll {
  overflow-x: auto;
}

.col-fit {
  min-width: max(100%, calc(var(--cols) * 16px));
}

.col-chart {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 168px;
}

.col-chart .col {
  flex: 1 1 0;
  min-width: 8px;
  display: flex;
  align-items: flex-end;
}

.col-chart .col span {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
}

.col-chart .col span.is-value {
  background: var(--ink);
}

.col-chart .col span.is-zero {
  background: var(--bg-wash);
}

.col-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.split-meter {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}

.split-meter span {
  display: block;
  height: 100%;
}

.split-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 0;
  padding: 0;
}

.split-legend strong {
  font-variant-numeric: tabular-nums;
}

.split-legend span {
  color: var(--muted);
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}

.tone-ink { background: var(--ink); }
.tone-accent { background: var(--accent); }
.tone-info { background: var(--info); }
.tone-success { background: var(--success); }
.tone-danger { background: var(--danger); }

.stats-table {
  min-width: 720px;
}

.ip-cell {
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.path-cell {
  max-width: 16rem;
}

@media (min-width: 900px) {
  .chart-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 719px) {
  .tabs a {
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .stats-table {
    min-width: 0;
  }

  .stats-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .stats-table,
  .stats-table tbody,
  .stats-table tr,
  .stats-table td {
    display: block;
    width: auto;
  }

  .stats-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-table td {
    border: 0;
    padding: 2px 0;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: unset;
  }

  .stats-table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 5.5rem;
    margin-right: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
  }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stats-grid.stats-customer {
    grid-template-columns: 1fr 1fr;
  }
}

/* After the photo rules, so the artwork keeps its own size. */
img.sold-sash {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: max(42%, 86px);
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  border-radius: 0;
  outline: none;
  background: transparent;
}
