:root {
  --deep: #00342b;
  --primary: #057a55;
  --primary-container: #004d40;
  --accent: #06956a;
  --mint: #afefdd;
  --mint-dim: #94d3c1;
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-low: #f3f3f3;
  --ink: #1a1c1c;
  --muted: #3f4945;
  --outline: #707975;
  --line: #d5e0db;
  --danger: #ba1a1a;
  --danger-bg: #ffdad6;
  --warning: #e65100;
  --warning-bg: #fff1e8;
  --shadow: 0 12px 32px rgba(0, 52, 43, 0.08);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--mint);
  color: var(--deep);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.page { padding: 28px 0 64px; }

.sticky-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar { background: var(--deep); color: #e7f6f1; }
.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.topbar p { font-weight: 600; letter-spacing: 0.01em; }
.services { display: flex; gap: 14px; align-items: center; }
.services a { text-decoration: none; color: #d5ebe4; font-weight: 600; }
.services a.here { color: var(--mint); }

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 16px; letter-spacing: -0.03em; }
.logo-text small { color: var(--primary); font-weight: 700; font-size: 12px; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a.active, .nav a:hover { color: var(--deep); background: #e7f6f1; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px 0 14px;
  min-width: min(280px, 34vw);
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  height: 40px;
  outline: none;
}
.search button, .icon-btn, .nav-toggle, .watch {
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
}
.icon-btn, .nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  position: relative;
  text-decoration: none;
}
.icon-btn:hover, .nav-toggle:hover, .watch:hover { background: var(--surface-low); }
.icon-btn .count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--primary);
  color: white;
  border-radius: 99px;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.nav-toggle { display: none; }
.icon-btn svg, .nav-toggle svg, .search svg, .watch svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.watch svg.on { fill: var(--primary); stroke: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-container); }
.btn-deep { background: var(--deep); color: white; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: white; }
.btn-line { background: white; border-color: var(--line); color: var(--deep); }
.btn-line:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.secret { display: flex; align-items: center; gap: 8px; }
.secret input { flex: 1; min-width: 0; }
.secret-toggle { border: 0; background: transparent; color: var(--primary); font-weight: 800; cursor: pointer; padding: 0; }

.hero {
  margin-top: 22px;
  background:
    radial-gradient(800px 280px at 90% -10%, rgba(175, 239, 221, 0.28), transparent 60%),
    linear-gradient(160deg, #00342b 0%, #004d40 58%, #057a55 140%);
  color: white;
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.kicker {
  color: var(--mint);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
.lede { color: #d7eee7; font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(175, 239, 221, .25);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 108px;
}
.stat strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.stat span { color: #d7eee7; font-size: 12px; font-weight: 600; }

.featured {
  background: white;
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
}
.featured img { height: 210px; width: 100%; object-fit: cover; }
.featured div { padding: 16px 16px 18px; display: grid; gap: 6px; }
.featured h2 { font-size: 22px; letter-spacing: -0.03em; }
.featured .meta, .meta { color: var(--muted); font-size: 14px; }
.featured .price { font-size: 26px; letter-spacing: -0.04em; }
.featured .time { position: static; width: max-content; }

.section { margin-top: 36px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2, .page h1 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.section-head a, .text-link { color: var(--primary); font-weight: 800; text-decoration: none; }
button.text-link { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.section-head a.btn-primary, .section-head a.btn-primary:hover { color: white; }
.sub { color: var(--muted); margin-top: 6px; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.rail .card { scroll-snap-align: start; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 52, 43, 0.03);
}
.card:hover { border-color: var(--mint-dim); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-link { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 16/10; background: var(--primary-container); }
.card-media img, .shot img, .ph { width: 100%; height: 100%; object-fit: cover; }
img.broken { object-fit: cover; background: linear-gradient(145deg, #00342b, #057a55 70%, #afefdd); }
.card-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.watch {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.time {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: white;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.time.urgent { background: var(--warning-bg); color: var(--warning); }
.time.critical { background: var(--danger-bg); color: var(--danger); }
.time.ended { background: var(--surface-low); color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  background: white;
  color: var(--deep);
}
.badge.good { background: var(--mint); color: var(--primary-container); }
.badge.warn { background: var(--warning-bg); color: var(--warning); }
.card-body { padding: 14px 14px 16px; display: grid; gap: 6px; }
.lot { color: var(--outline); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card h3 { font-size: 18px; letter-spacing: -0.03em; line-height: 1.25; }
.card-bid, .split-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.card-bid span, .label { display: block; color: var(--outline); font-size: 12px; font-weight: 700; }
.card-bid strong { font-size: 18px; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.card-bid em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 700; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.step b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--primary-container);
  margin-bottom: 10px;
}
.step h3 { font-size: 16px; letter-spacing: -0.03em; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

.band {
  margin-top: 28px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: #e7f6f1;
  color: var(--primary-container);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.browse-layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  position: sticky;
  top: 124px;
}
.filters summary { font-weight: 800; cursor: pointer; margin-bottom: 8px; }
.filters form, .stack { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field span, .check { font-size: 13px; font-weight: 700; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 12px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 122, 85, 0.18);
}
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.gallery { display: grid; gap: 10px; }
.shot {
  border: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--primary-container);
  aspect-ratio: 16/10;
  width: 100%;
}
.film { display: grid; gap: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs button {
  width: 112px;
  padding: 0;
  border-radius: 12px;
  border: 2px solid var(--line);
  overflow: hidden;
  background: white;
  display: grid;
  text-align: left;
}
.thumbs button.on { border-color: var(--primary); }
.thumbs img { width: 100%; height: 76px; object-fit: cover; }
.thumbs span { font-size: 11px; font-weight: 800; padding: 6px 8px; color: var(--muted); }
.story { display: grid; gap: 16px; margin-top: 18px; }
.story h2, .bidbox h2 { font-size: 18px; letter-spacing: -0.03em; }
.prose { color: var(--muted); display: grid; gap: 10px; }
.prose p { white-space: pre-wrap; }
.highlights { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.spec span { display: block; color: var(--outline); font-size: 12px; font-weight: 700; }
.callout {
  background: #e7f6f1;
  color: var(--primary-container);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}
.callout.warn { background: var(--warning-bg); color: #7a3208; }

.bidbox {
  position: sticky;
  top: 124px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}
.money-xl { font-size: 34px; letter-spacing: -0.045em; line-height: 1; }
.clockline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clock {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button {
  border: 1px solid var(--line);
  background: var(--surface-low);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 13px;
}
.choices button:hover { border-color: var(--primary); color: var(--primary); }
.confirm {
  background: #e7f6f1;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.fee-note { color: var(--muted); font-size: 13px; }
.form-error { color: var(--danger); font-weight: 700; font-size: 14px; }
.history, .comments { display: grid; gap: 10px; }
.history li, .comment {
  list-style: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.history { margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; gap: 8px; }
.comment.seller { background: #f3faf7; }
.comment header { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.comment header strong { font-size: 14px; }
.who { color: var(--primary); font-weight: 800; font-size: 12px; }
.seller-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--primary-container);
  font-weight: 800;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span-2 { grid-column: span 2; }
.narrow { width: min(520px, 100%); margin: 0 auto; }
.account { display: grid; gap: 16px; }
.rows { display: grid; gap: 8px; }
.row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .6fr auto;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
}
.row strong { letter-spacing: -0.03em; }

.fee { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
.fee th, .fee td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fee th { background: var(--deep); color: white; font-size: 13px; }
.faq { display: grid; gap: 8px; }
.faq details { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--muted); margin-top: 8px; }

.empty {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.activity { display: grid; gap: 8px; }
.activity a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.activity span { color: var(--muted); }

.footer { background: var(--deep); color: #d7eee7; padding: 36px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.footer h2 { color: white; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 8px; }
.footer a { color: var(--mint); text-decoration: none; font-weight: 700; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.legal { margin-top: 22px; color: #9ec8bb; font-size: 13px; }

#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--deep);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  z-index: 40;
  max-width: min(520px, calc(100% - 24px));
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1000px, 94vw);
}
dialog::backdrop { background: rgba(0, 20, 16, 0.84); }
dialog img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 16px; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.icon-btn.light { color: white; width: auto; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }

.noscript { padding: 24px 0; }

.admin-strip {
  display: block;
  background: var(--mint);
  color: var(--primary-container);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 16px;
}
.desk-stats, .desk-list, .photo-grid { display: grid; gap: 12px; }
.desk-stats { grid-template-columns: repeat(4, 1fr); margin: 8px 0 16px; }
.desk-stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.desk-stat strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.desk-stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.pill.on { background: var(--primary); color: white; }
.desk-search { margin: 14px 0; max-width: 420px; }
.desk-row {
  display: grid;
  grid-template-columns: 112px 1.4fr 0.8fr auto;
  gap: 14px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.desk-row img { width: 112px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--primary-container); }
.desk-row h3 { font-size: 16px; letter-spacing: -0.03em; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 12px; }
.photo-tile {
  margin: 0;
  background: var(--surface-low);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-tile img { width: 100%; height: 110px; object-fit: cover; }
.photo-tile div { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
.photo-tile button {
  border: 0;
  background: white;
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: 800;
  font-size: 12px;
}
.comment header button {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero, .detail, .browse-layout, .steps, .footer-grid, .form-grid, .grid, .desk-stats, .desk-row { grid-template-columns: 1fr; }
  .desk-row img { width: 100%; height: 180px; }
  .desk-actions { justify-content: flex-start; }
  .span-2 { grid-column: auto; }
  .featured img { height: 200px; }
  .filters { position: static; }
  .bidbox { position: static; }
  .band, .row { display: grid; grid-template-columns: 1fr; }
  .nav-toggle { display: inline-grid; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .header { position: relative; }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
  .header-actions { width: 100%; }
  .search { min-width: 0; flex: 1 1 160px; }
  .hero h1, .lede { max-width: none; }
  .services { display: none; }
}

@media (min-width: 981px) {
  .filters summary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, #toast { transition: none; }
  .card:hover { transform: none; }
}
