/* Outfit & Fraunces — SIL OFL 1.1, hostované lokálně (neblokují první vykreslení). */
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c1915;
  --ink-soft: #4a4338;
  --paper: #f3eadc;
  --paper-2: #e7dcc8;
  --card: #fffaf2;
  --pine: #1f4d45;
  --pine-2: #2f6b60;
  --copper: #b4532a;
  --copper-dark: #8c3d1c;
  --gold: #c4a35a;
  --line: rgba(28, 25, 21, 0.12);
  --ok: #215c3a;
  --err: #8b1e1e;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Outfit, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #efe3cc 0%, transparent 55%),
    var(--paper);
  line-height: 1.5;
  min-height: 100vh;
}
h1, h2, h3, .brand-text {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
a { color: var(--pine); }
.wrap { width: min(1120px, calc(100% - 32px)); max-width: 100%; margin: 0 auto; min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 234, 220, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.footer-inner { align-items: flex-start; }
.header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}
.header-cms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0 0 10px;
  font-size: 13px;
}
.header-cms a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.header-cms a:hover { color: var(--ink); }

.live-tape {
  --tape-ms: 7500ms;
  position: relative;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(180, 83, 42, 0.08), transparent 18%),
    var(--card);
  box-shadow: 0 10px 28px rgba(28, 25, 21, 0.05);
}
.live-tape-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px 16px;
  min-height: 52px;
  padding: 8px 10px 8px 14px;
  color: inherit;
  text-decoration: none;
}
.live-tape-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #1c1915;
  color: #f3eadc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.live-tape-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8b089;
  box-shadow: 0 0 0 0 rgba(232, 176, 137, 0.7);
  animation: live-tape-pulse 2.1s ease-out infinite;
}
.live-tape-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.live-tape-kicker {
  flex: 0 0 auto;
  color: var(--copper);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-tape[data-type="auction"] .live-tape-kicker { color: var(--pine-2); }
.live-tape[data-type="ending"] .live-tape-kicker { color: var(--copper-dark); }
.live-tape[data-type="live"] .live-tape-kicker { color: var(--ink-soft); }
.live-tape-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.live-tape-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.live-tape-meta strong {
  font-size: 14px;
  font-weight: 650;
}
.live-tape-ago {
  color: var(--ink-soft);
  font-size: 12px;
}
.live-tape-go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(31, 77, 69, 0.08);
  color: var(--pine);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.live-tape-link:hover .live-tape-go,
.live-tape-link:focus-visible .live-tape-go {
  background: var(--pine);
  color: #fffaf2;
  transform: translateX(2px);
}
.live-tape-link:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: inherit;
}
.live-tape-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  display: block;
  height: 2px;
  margin: 0;
  background: rgba(28, 25, 21, 0.06);
}
.live-tape-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--copper);
  transform-origin: left center;
  animation: live-tape-bar var(--tape-ms) linear infinite;
}
.live-tape.is-single .live-tape-progress { display: none; }
.live-tape.is-paused .live-tape-progress i,
.live-tape.is-paused .live-tape-dot {
  animation-play-state: paused;
}
.live-tape.is-out .live-tape-copy,
.live-tape.is-out .live-tape-meta {
  opacity: 0;
  transform: translateY(6px);
}
.live-tape.is-in .live-tape-copy,
.live-tape.is-in .live-tape-meta {
  opacity: 1;
  transform: none;
}
.live-tape + .hero { padding-top: 28px; }

@keyframes live-tape-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 176, 137, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(232, 176, 137, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 176, 137, 0); }
}
@keyframes live-tape-bar {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 800px) {
  .live-tape { border-radius: 18px; }
  .live-tape-link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "live live go"
      "copy copy copy"
      "meta meta meta";
    gap: 6px 12px;
    min-height: 0;
    padding: 10px 10px 12px 12px;
  }
  .live-tape-live { grid-area: live; }
  .live-tape-copy { grid-area: copy; }
  .live-tape-meta { grid-area: meta; padding-left: 2px; }
  .live-tape-go { grid-area: go; }
  .live-tape-title { font-size: 1rem; }
  .live-tape + .hero { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-tape-dot,
  .live-tape-progress i,
  .live-tape.is-in .live-tape-copy,
  .live-tape.is-in .live-tape-meta {
    animation: none;
    transition: none;
  }
  .live-tape-progress { display: none; }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.site-search {
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.site-search-q, .site-search-city {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  padding: 0 10px;
  color: var(--ink-soft);
}
.site-search input, .site-search select {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 8px;
  font: inherit;
}
.site-search select {
  flex: 0 0 160px;
  width: 160px;
  max-width: 34%;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  min-width: 0;
  text-overflow: ellipsis;
}
.site-search-city { flex: 0 0 140px; max-width: 28%; }
.site-search-go {
  flex: 0 0 44px;
  width: 44px;
  border: 0;
  background: var(--copper);
  color: #fffaf2;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 0;
}
.site-search-go:hover { background: var(--copper-dark); }
.site-search-wrap {
  position: relative;
  min-width: 0;
}
.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  max-height: min(70vh, 420px);
  overflow: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest-label {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.search-suggest-item {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 14px;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: rgba(180, 83, 42, 0.1);
}
.search-suggest-title { display: block; font-weight: 600; line-height: 1.3; }
.search-suggest-meta { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); }
.search-suggest-empty {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 13px;
}
.search-suggest-all {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
  color: var(--pine);
  font-weight: 600;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(28, 25, 21, 0.08); color: var(--ink); }
.icon-btn-sell { background: var(--copper); color: #fffaf2 !important; }
.icon-btn-sell:hover { background: var(--copper-dark); color: #fffaf2 !important; }
.icon-btn-profile { background: var(--pine); color: #f7f1e6; }
.icon-btn-profile img, .icon-avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fffaf2;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 50;
}
.icon-btn[data-tip]:hover::after, .icon-btn[data-tip]:focus-visible::after { opacity: 1; }
.user-menu { position: relative; }
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(440px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 60;
}
.user-menu-head { margin-bottom: 12px; }
.user-menu-head strong { display: block; font-size: 1.1rem; }
.user-menu-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.user-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  padding: 8px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.user-menu-grid a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  font-weight: 500;
}
.user-menu-grid a:hover { color: var(--copper); }
.user-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.user-menu-foot .btn { gap: 4px; padding: 8px 14px; }
.user-menu-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.user-menu-logout:hover { color: var(--err); }
.panel[id] { scroll-margin-top: 92px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.brand-preview {
  margin: -4px 0 14px;
}
.brand-preview img {
  display: block;
  max-height: 56px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.brand-preview-icon img {
  max-height: 32px;
  max-width: 32px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine);
  color: #f7f1e6;
  font-family: Fraunces, serif;
  font-size: 14px;
}
.nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--copper);
  color: #fffaf2 !important;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary { background: var(--pine); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-danger { background: var(--err); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
[hidden] { display: none !important; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
  padding: 48px 0 24px;
  align-items: start;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 12px; line-height: 1.05; overflow-wrap: anywhere; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--copper);
  font-weight: 600;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 42rem; }
.stat-box {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-box strong { display: block; font-family: Fraunces, serif; font-size: 2rem; }
.home-stats {
  min-width: 0;
  padding: 16px 20px 14px;
}
.home-stats-list {
  margin: 0;
  display: grid;
  gap: 0;
}
.home-stats-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.home-stats-list > div:first-child { padding-top: 2px; }
.home-stats-list > div:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}
.home-stats-list dt {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.home-stats-list dd {
  margin: 0;
  font-family: Fraunces, serif;
  font-size: 1.28rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink);
}

.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 12px 0 24px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.filters a, .chip {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  background: rgba(255,250,242,0.6);
}
.filters a.active { background: var(--ink); color: var(--paper); }
.filters-label {
  align-self: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.listing-section { margin-bottom: 8px; }
.listing-group {
  font-family: Fraunces, serif;
  font-size: 1.35rem;
  margin: 8px 0 12px;
}
.listing-section .grid { padding-bottom: 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 12px;
  overflow: hidden;
}
.card-photo {
  display: block;
  margin: -20px -20px 4px;
  border-radius: 0;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}
.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo.is-placeholder img { object-fit: cover; object-position: center 18%; }
.auction-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.auction-gallery.is-placeholder {
  grid-template-columns: 1fr;
  max-width: 520px;
}
.auction-gallery.is-placeholder img {
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: #5a4030;
}
.auction-gallery figure {
  margin: 0;
  background: var(--paper-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.auction-gallery a { display: block; cursor: zoom-in; }
.auction-gallery img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.auction-gallery form { padding: 4px 8px 8px; text-align: center; }
.photo-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}
.photo-lightbox::backdrop {
  background: rgba(20, 16, 12, 0.88);
}
.photo-lightbox-inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 56px 72px;
}
.photo-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: #1c1915;
}
.photo-lightbox-close,
.photo-lightbox-nav {
  z-index: 2;
  border: 0;
  background: rgba(255, 250, 242, 0.96);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.photo-lightbox-close {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  height: 44px;
  padding: 0 18px 0 14px;
  gap: 6px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}
.photo-lightbox-close:hover,
.photo-lightbox-nav:hover {
  background: #fff;
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.photo-lightbox-prev { left: 12px; }
.photo-lightbox-next { right: 12px; }
.photo-lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 66px;
  margin: 0;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .photo-lightbox-inner { padding: 60px 8px 36px; }
  .photo-lightbox-prev { left: 6px; }
  .photo-lightbox-next { right: 6px; }
}
.card .muted svg { vertical-align: -3px; margin-right: 2px; }
.muted { color: var(--ink-soft); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.price { font-family: Fraunces, serif; font-size: 1.4rem; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 600;
}
.badge-charity { background: #ead9a8; }
.badge-adult { background: #e8c4bc; color: var(--copper-dark); }
.badge-live { background: #cfe5d8; color: var(--ok); }
.badge-ended { background: #e6ddd0; }
.badge-verified-only { background: #d7e8fb; color: #1a5fb4; }
.badge-dutch { background: #e4d4c0; color: #5c3d1e; }
.auction-type-pick {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}
.auction-type-pick legend {
  font-weight: 700;
  padding: 0 6px;
}
.auction-type-pick label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}
.auction-type-pick input { width: auto; margin: 4px 0 0; }
.bid-cancel-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
}
.btn-cancel {
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.cancel-grace {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--copper-dark);
  font-weight: 600;
}
.canceller-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f8e4e0;
  color: var(--err);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #d7e8fb;
  color: #1a5fb4;
  font-size: 11px;
  font-weight: 600;
  font-family: Outfit, sans-serif;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.level-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #efe6d6;
  color: #6b4f2a;
  font-size: 11px;
  font-weight: 600;
  font-family: Outfit, sans-serif;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.verified-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a73e8;
  box-shadow: inset 0 0 0 2px #fff;
}

.verify-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e7f3ff;
  border: 1px solid #b6d4f5;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px;
  color: var(--ink);
}
.verify-banner p { margin: 0; flex: 1; }
.verify-banner a {
  color: #1a73e8;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.verify-banner a:hover { text-decoration: underline; }
.verify-banner-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 24px;
  padding: 32px 0 56px;
  min-width: 0;
}
.layout-2 > * { min-width: 0; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.panel h1, .panel h2, .panel p, .lede, .notice, .help {
  overflow-wrap: anywhere;
}
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  margin-bottom: 14px;
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { font-size: 13px; color: var(--ink-soft); margin: -8px 0 14px; }
.live-total {
  font-family: Fraunces, serif;
  font-size: 1.6rem;
  margin: 0 0 14px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px 8px;
}
.table-scroll table { min-width: 32rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.flash {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.flash-ok { background: #e5f3ea; }
.flash-error { background: #f8e4e0; }
#bid-flash:empty { display: none; }
#bid-flash .flash { margin-top: 0; margin-bottom: 14px; }
#bids-body.bids-fresh td { animation: bids-fresh 0.7s ease; }
@keyframes bids-fresh {
  from { background: #f6efe0; }
  to { background: transparent; }
}
button.btn:disabled { opacity: 0.65; cursor: wait; }
.notice {
  background: #f6efe0;
  border: 1px dashed var(--gold);
  padding: 12px 14px;
  margin: 0 0 16px;
}

.auth {
  max-width: 460px;
  margin: 48px auto 80px;
}
.auth-split {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
}
.auth-split::before,
.auth-split::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.qr-box {
  width: 228px;
  height: 228px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
}
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.dl {
  display: grid;
  grid-template-columns: minmax(5.5rem, 9rem) minmax(0, 1fr);
  gap: 8px 12px;
  min-width: 0;
}
.dl > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.countdown { font-family: Fraunces, serif; font-size: 2rem; margin: 0; }
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}
.empty { padding: 32px; text-align: center; color: var(--ink-soft); }

.oauth-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.oauth-btn { width: 100%; }
label input[type="checkbox"] { width: auto; margin-right: 8px; }

.seller-card {
  background: #efe9dc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.seller-card-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.seller-card-top { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.seller-card-top > :last-child { min-width: 0; overflow-wrap: anywhere; }
.seller-business-name {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-weight: 600;
}
.business-fields {
  margin: 20px 0 12px;
  padding: 12px 16px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.business-fields legend { font-weight: 700; padding: 0 6px; }
.entity-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 12px;
}
.entity-type-row label { margin: 0; font-weight: 500; }
.business-public { margin-bottom: 16px; }
.seller-avatar-wrap { position: relative; width: 72px; height: 72px; flex: 0 0 72px; }
.seller-avatar, .seller-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #d8d0c2;
}
.seller-avatar-fallback {
  display: grid;
  place-items: center;
  font-family: Fraunces, serif;
  font-size: 1.6rem;
  color: var(--pine);
}
.seller-verified-shield {
  position: absolute;
  right: -2px;
  bottom: -2px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
.seller-card-name { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.seller-card-name a { color: var(--ink); text-decoration: none; }
.seller-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 6px; font-size: 14px; align-items: center; }
.seller-stats span { display: inline-flex; align-items: center; gap: 4px; }
.seller-city { margin: 0; color: var(--ink-soft); font-size: 14px; display: flex; align-items: center; gap: 4px; }
.seller-actions { display: flex; gap: 8px; margin-top: 14px; align-items: stretch; }
.seller-fav-form { margin: 0; }
.btn-heart {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.btn-heart.is-on { background: #fdecea; }
.btn-heart svg { pointer-events: none; }
.btn-offers {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e4ddd0;
  color: var(--ink) !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 14px;
}
.btn-offers:hover { background: #d9d1c2; }
.seller-profile-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.more-auctions { padding: 0 0 48px; }
.more-auctions h2 { margin: 0 0 12px; }
.rating-box { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.rating-choices { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; }
.rating-choices label { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.rating-list { list-style: none; padding: 0; margin: 0; }
.rating-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.icon-flag { vertical-align: middle; border: 1px solid rgba(0,0,0,0.12); }

.auction-info {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}
.auction-info-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.auction-info-status {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.auction-info-bidders {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.auction-info-bidders:hover { text-decoration: underline; }
.auction-info-price-wrap { text-align: right; }
.auction-info-price {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.auction-info-unit { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); margin-top: 8px; }
.auction-info-i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #9aa3ad;
  color: #6b7280;
  font-size: 11px;
  font-style: italic;
  font-family: Georgia, serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  cursor: help;
}
.auction-info-time { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.auction-info-time .countdown {
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
}
.auction-info-meta, .auction-info-winners { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.auction-info .verify-banner { margin: 14px 0 4px; }
.btn-similar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 14px 0 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #ece8e1;
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
}
.btn-similar:hover { background: #e2ddd4; }
.auction-help {
  list-style: none;
  margin: 12px 0 8px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}
.auction-help li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.auction-help-icon {
  flex: 0 0 22px;
  color: var(--ink-soft);
  margin-top: 1px;
}
.auction-help a {
  color: var(--copper);
  font-weight: 600;
  text-decoration: none;
}
.auction-help a:hover { text-decoration: underline; }
.pay-services {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
}
.pay-services-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.pay-services-box {
  background: #f3f0ea;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.pay-services-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}
.pay-services-qr {
  color: var(--ink);
  display: inline-flex;
  line-height: 0;
}
.pay-services-hint {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.4;
}
.pay-services-fee {
  text-align: right;
  line-height: 1.2;
}
.pay-services-fee strong {
  display: block;
  font-size: 1.15rem;
}
.pay-services-fee small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.pay-services-more {
  display: inline-block;
  margin-top: 6px;
  color: var(--copper);
  font-weight: 600;
  text-decoration: none;
}
.pay-services-more:hover { text-decoration: underline; }
.pay-services-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(86vh, 740px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(28, 25, 21, 0.22);
}
.pay-services-dialog::backdrop {
  background: rgba(28, 25, 21, 0.48);
}
.pay-services-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 20px 22px 10px;
  background: #fff;
}
.pay-services-dialog-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}
.pay-services-dialog-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -6px -8px -6px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pay-services-dialog-close:hover {
  background: rgba(28, 25, 21, 0.08);
}
.pay-services-dialog-body {
  padding: 4px 22px 24px;
}
.pay-services-dialog-fee {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 10px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.pay-services-dialog-fee strong {
  font-size: 1.35rem;
}
.pay-services-dialog-body h3 {
  margin: 1.2em 0 0.35em;
  font-size: 1rem;
  font-weight: 700;
}
.pay-services-dialog-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}
.pay-services-dialog-body a {
  color: var(--copper);
  font-weight: 600;
  text-decoration: none;
}
.pay-services-dialog-body a:hover { text-decoration: underline; }
.pay-services-dialog-body .pay-services-box {
  margin: 14px 0 0;
}
.pay-services-dialog-more {
  margin-top: 14px !important;
}
@media (max-width: 560px) {
  .pay-services-dialog {
    width: calc(100% - 20px);
    max-height: 90vh;
    border-radius: 14px;
  }
  .pay-services-dialog-head,
  .pay-services-dialog-body { padding-left: 16px; padding-right: 16px; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 0;
}
.footer-nav a { color: var(--pine); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.page-content { font-size: 1.05rem; overflow-wrap: anywhere; }
.page-content h2 { margin: 1.4em 0 0.4em; }
.page-content ul, .page-content ol { padding-left: 1.2em; }
.page-content img,
.wysiwyg-edit img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
  border-radius: 10px;
}
.captcha-box {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f1e8;
}
.captcha-q { margin: 0 0 8px; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wysiwyg {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}
.wysiwyg-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f6f1e8;
  flex-shrink: 0;
}
.wysiwyg-bar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.wysiwyg-scroll {
  height: 240px;
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 25, 21, 0.35) #f6f1e8;
}
.wysiwyg-scroll:focus-within {
  outline: 2px solid var(--pine);
  outline-offset: -2px;
}
.wysiwyg-edit {
  min-height: 100%;
  padding: 12px;
  margin: 0;
  border: 0;
  background: transparent;
}
.wysiwyg-edit:focus { outline: none; }
.wysiwyg-source { display: none; }

@media (max-width: 960px) {
  .site-search select { flex-basis: 132px; width: 132px; }
  .site-search-city { flex-basis: 112px; }
}

@media (max-width: 800px) {
  .hero, .layout-2, .form-row, .pay-grid, .seller-profile-head { grid-template-columns: minmax(0, 1fr); }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "search search";
    gap: 10px 12px;
    padding: 10px 0;
  }
  .header-bar .brand { grid-area: brand; min-width: 0; }
  .header-tools { grid-area: tools; }
  .site-search-wrap {
    grid-area: search;
    width: 100%;
    min-width: 0;
  }
  .brand-logo {
    height: 40px;
    max-width: min(220px, calc(100vw - 152px));
  }
  .nav-cta {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .site-search {
    width: 100%;
  }
  .site-search select,
  .site-search-city {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
  .user-menu { position: static; }
  .user-menu-panel {
    right: 0;
    width: min(400px, calc(100vw - 24px));
  }
  .header-cms { padding-bottom: 8px; }
  .verify-banner { flex-wrap: wrap; }
  .icon-btn[data-tip]::after { display: none; }
}

@media (max-width: 560px) {
  .dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }
  .dl .muted { margin-top: 10px; }
  .dl .muted:first-child { margin-top: 0; }
  .panel { padding: 16px; }
  .site-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    grid-template-areas:
      "q q go"
      "cat city city";
    border-radius: 16px;
  }
  .site-search-q { grid-area: q; }
  .site-search-go {
    grid-area: go;
    width: 44px;
    min-height: 44px;
    align-self: stretch;
  }
  .site-search select {
    grid-area: cat;
    flex: none;
    width: 100%;
    max-width: none;
    border-left: 0;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .site-search-city {
    grid-area: city;
    flex: none;
    width: auto;
    max-width: none;
    border-top: 1px solid var(--line);
  }
}

.trade-chat { margin-top: 28px; padding-top: 8px; }
.trade-chat-compact { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.trade-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  max-height: 420px;
  overflow: auto;
}
.trade-bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 36rem;
}
.trade-bubble p { margin: 0; }
.trade-bubble-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px !important; }
.trade-bubble.is-mine {
  align-self: flex-end;
  background: #eef6f3;
  border-color: #c5ddd6;
}
.trade-thread-list { list-style: none; padding: 0; margin: 0; }
.trade-thread-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.trade-thread-list li.is-active { font-weight: 600; }
.trade-thread-list a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; flex: 1; }
.trade-unread {
  background: var(--copper);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  min-width: 1.4em;
  text-align: center;
  padding: 1px 6px;
}
.platform-notice-body {
  font-size: 1.05rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pwa-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(28, 25, 21, 0.06);
}
.pwa-install[hidden] { display: none; }
.pwa-install p { margin: 0; max-width: 46rem; }
.pwa-install-actions { display: flex; gap: 8px; flex-shrink: 0; }
html.cookie-banner-on .pwa-install { display: none; }
html.pwa-bar-on { padding-bottom: 6.5rem; }
@media (max-width: 800px) {
  html.pwa-bar-on { padding-bottom: 8.5rem; }
  .pwa-install {
    flex-direction: column;
    align-items: stretch;
  }
  .pwa-install-actions { justify-content: flex-end; }
}
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(28, 25, 21, 0.12);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: grid; gap: 12px; }
.cookie-banner-copy p { margin: 0 0 6px; }
.cookie-banner-copy p:last-child { margin-bottom: 0; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-banner-panel {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cookie-banner-panel[hidden] { display: none; }
.cookie-banner-panel label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
}
.cookie-banner-panel input { width: auto; margin-top: 4px; }
html.cookie-banner-on { padding-bottom: 8rem; }
@media (max-width: 800px) {
  html.cookie-banner-on { padding-bottom: 12rem; }
}
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .pwa-install { display: none; }
}
