/* ==========================================================================
   Antique mall public site
   Design: "The Good Find" (ChatGPT design-v3), rebuilt as one clean sheet.
   Brand colors come from each store's settings via --brand / --accent,
   set inline in public/base.html. Defaults below are Antique Avenue's.
   ========================================================================== */

:root {
  --brand: #0097B2;        /* logo turquoise: black text only */
  --accent: #005F73;       /* dark turquoise: white text, links, buttons */
  --bg: #FBF8F3;
  --paper: #FFFFFF;
  --ink: #161616;
  --quiet: #48575A;
  --line: #778689;
  --line-soft: #C6D0D1;
  --tint: #E3F4F5;
  --mat: #F1EEEA;
  --new: #24513B;   --new-bg: #E8F1E9;
  --sold: #862F38;  --sold-bg: #FBECEE;
  --hold: #604516;  --hold-bg: #FBF0D7;
  --gold: #F6CB70;
  --heading: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 3px;
  --gutter: 16px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.skip { position: absolute; left: 8px; top: -200px; background: #fff; padding: 12px 16px; z-index: 20; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons, badges, booth tags ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 10px 20px; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent);
  color: #fff; font-weight: 650; font-size: 17px; text-decoration: none; cursor: pointer; text-align: center; }
.button:hover { filter: brightness(1.12); }
.button.secondary { background: var(--paper); color: var(--accent); }
.button .arrow { font-size: 20px; line-height: 1; }

.badge { display: inline-block; padding: 2px 9px; border: 1px solid currentColor; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; line-height: 1.5; background: var(--paper); }
.badge.new { color: var(--new); background: var(--new-bg); }
.badge.sold { color: var(--sold); background: var(--sold-bg); }
.badge.hold, .badge.sale, .badge.firm { color: var(--hold); background: var(--hold-bg); }

.booth-tag { font-family: var(--body); display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 10px; background: var(--brand);
  color: #000; border: 1px solid #000; border-radius: 2px; white-space: nowrap; line-height: 1.1; text-decoration: none; }
.booth-tag small { font-size: 16px; font-weight: 500; }
.booth-tag b { font-size: 25px; font-weight: 850; letter-spacing: 0; }
.booth-tag.large b { font-size: 36px; }

/* ---------- Header ---------- */
.topbar { background: var(--brand); color: #000; font-size: 16px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #000; }
.site-header { border-bottom: 1px solid var(--line);
  /* faint board-and-batten, after the storefront siding */
  background: repeating-linear-gradient(90deg, #fff 0 79px, #eef0ed 79px 81px, #fff 81px 85px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 0; }
.brand { flex: none; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand img { width: 230px; height: auto; }
.brand .brand-text { font: 700 34px/1.1 var(--heading); }
.search { flex: 1; max-width: 560px; display: flex; gap: 8px; align-items: flex-end; }
.search label { flex: 1; min-width: 0; }
.search label span { display: block; font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.search input { width: 100%; min-height: 52px; padding: 10px 12px; border: 2px solid var(--accent);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 17px; }
.search .button { min-height: 52px; }
.site-nav { display: flex; gap: 32px; border-top: 1px solid #b7c9cc; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current=page] { text-decoration: underline; }
.category-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 14px; border-top: 1px solid #b7c9cc; scrollbar-width: thin; }
.category-strip a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px;
  border: 1px solid var(--accent); border-radius: var(--radius); background: #fff; color: var(--accent);
  font-size: 16px; font-weight: 650; text-decoration: none; }
.category-strip a:hover, .category-strip a[aria-current=page] { background: var(--accent); color: #fff; }

/* ---------- Main + sections ---------- */
main { padding: 28px 0 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 36px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.section-head h2 { font-size: 34px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 6px; }
.page-head p { color: var(--quiet); margin: 0; }
.crumbs { margin-bottom: 16px; font-size: 17px; }
.empty { padding: 32px; border: 1px dashed var(--line); background: var(--paper); }
.empty p:last-child { margin: 0; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); }
.hero.no-photo { grid-template-columns: 1fr; }
.hero-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-copy .kicker { font-weight: 600; margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.03; letter-spacing: -.03em; margin-bottom: 20px; max-width: 11ch; }
.hero-copy h1 em { color: var(--accent); }
.hero-copy p { max-width: 38ch; font-size: 18px; }
.hero-photo { position: relative; margin: 0; height: 480px; background: var(--mat); border-left: 1px solid var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; }
.hero-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); font-size: 16px; }
.hero-photo figcaption a { color: var(--ink); text-decoration: none; font-weight: 650; }
.hero-photo figcaption a:hover { text-decoration: underline; }
.hero-photo figcaption .price { font-size: 22px; font-weight: 750; }

/* ---------- Item cards ---------- */
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid #a3b0b2; border-radius: var(--radius); overflow: hidden; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card .photo { aspect-ratio: 1; padding: 8px; background: var(--mat); border-bottom: 1px solid var(--line-soft); }
.card .photo img { width: 100%; height: 100%; object-fit: contain; }
.nophoto { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; color: var(--quiet);
  border: 1px dashed var(--line); font-size: 16px; padding: 8px; }
.nophoto .mark { font: 48px/1 var(--heading); color: var(--line); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.card .badge { align-self: flex-start; }
.card h3 { font-size: 22px; line-height: 1.18; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font-size: 23px; font-weight: 750; font-variant-numeric: tabular-nums; }
.card.is-sold .price { text-decoration: line-through; color: var(--quiet); }

.pager { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Categories list ---------- */
.categories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.categories a { display: flex; justify-content: space-between; gap: 16px; min-height: 56px; align-items: center;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: 19px; }
.categories a:hover { text-decoration: underline; }
.categories span { color: var(--quiet); font-size: 16px; }

/* ---------- Social posts (Instagram / Facebook) ---------- */
.social-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.social-card { background: var(--paper); border: 1px solid #a3b0b2; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.social-frame { aspect-ratio: 16 / 10; background: var(--tint); display: grid; place-items: center; }
.social-frame.is-playing { aspect-ratio: 4 / 5; background: #fff; }
.social-frame iframe { width: 100%; height: 100%; border: 0; }
.social-frame .play { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0;
  color: var(--accent); font-size: 18px; font-weight: 700; cursor: pointer; min-height: 48px; padding: 24px; }
.play-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand);
  color: #000; border: 2px solid #000; font-size: 26px; padding-left: 5px; }
.social-frame .play:hover .play-icon { transform: scale(1.06); }
.social-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.social-body p { margin: 0; }
.platform { font-weight: 700; font-size: 16px; color: var(--quiet); }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.follow p { margin: 0 8px 0 0; }

/* ---------- Booths ---------- */
.booth-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.booth-card { position: relative; background: var(--paper); border: 1px solid #a3b0b2; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.booth-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.booth-photo { position: relative; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--mat); }
.booth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booth-body { padding: 14px 16px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.booth-body h2 { font-size: 24px; }
.booth-body h2 a { color: var(--ink); text-decoration: none; }
.booth-body h2 a::after { content: ""; position: absolute; inset: 0; }
.booth-meta { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--quiet); }
.photo-date { font-weight: 650; color: var(--ink); }
.photo-date.stale { color: var(--hold); }
.booth-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.booth-head h1 { font-size: clamp(34px, 4vw, 48px); margin: 12px 0 6px; }
.booth-head p { margin: 6px 0 0; }
.photo-group { margin-top: 28px; }
.photo-group h2 { font: 700 20px var(--body); color: var(--accent); margin-bottom: 12px; }
.booth-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.booth-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mat); border: 1px solid var(--line-soft); }
.booth-photos p { margin: 8px 0 0; font-size: 16px; }
.booth-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.booth-strip a { display: block; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid #a3b0b2; }
.booth-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip-label { display: flex; align-items: center; gap: 10px; padding: 10px; font-size: 16px; }
.where-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { padding: 14px 18px; background: var(--tint); border-left: 5px solid var(--brand); }
.notice.is-error { background: var(--sold-bg); border-left-color: var(--sold); }

/* Staff upload page */
.upload-panel { max-width: 640px; background: var(--paper); border: 1px solid var(--line); padding: 24px; display: grid; gap: 6px; }
.upload-panel label { font-weight: 700; margin-top: 10px; }
.upload-panel select, .upload-panel input { width: 100%; min-height: 50px; padding: 10px; border: 2px solid var(--accent); border-radius: var(--radius); background: #fff; font-size: 17px; }
.upload-panel .button { margin-top: 14px; justify-self: start; }
.needs-list { list-style: none; margin: 0; padding: 0; }
.needs-list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.needs-info { flex: 1; min-width: 160px; }
.booth-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.booth-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.booth-thumbs span { font-size: 14px; }

/* ---------- Visit feature ---------- */
.visit { display: grid; grid-template-columns: .85fr 1.15fr; background: var(--paper); border: 1px solid var(--line); margin-top: 40px; scroll-margin-top: 16px; }
.visit-photo { position: relative; margin: 0; min-height: 320px; border-right: 1px solid var(--line); background: var(--tint); }
.visit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.visit-photo h2 { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 10px 14px; font-size: 30px; }
.visit-photo.plain { display: flex; align-items: flex-end; padding: 16px; }
.visit-photo.plain h2 { position: static; }
.visit-details { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; align-content: start; }
.visit-details h3 { font: 700 18px var(--body); color: var(--accent); margin-bottom: 8px; }
.visit-details p { margin: 0 0 6px; }
.visit-details .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Item detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery-main { aspect-ratio: 1; background: var(--mat); border: 1px solid var(--line-soft); padding: 8px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.thumbs button { width: 76px; height: 76px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.thumbs button[aria-pressed=true] { border: 3px solid var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-count { font-size: 16px; color: var(--quiet); }
.info .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.info h1 { font-size: clamp(36px, 4vw, 48px); letter-spacing: -.02em; }
.info .price { display: block; font-size: 36px; margin: 12px 0 4px; }
.info .price.was { text-decoration: line-through; color: var(--quiet); }
.where { margin: 20px 0; padding: 22px; background: var(--tint); border-top: 5px solid var(--brand); }
.where h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 26px; margin-bottom: 12px; }
.where p { margin-bottom: 14px; }
.desc { white-space: pre-line; }
.meta { color: var(--quiet); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 5px solid var(--brand); padding: 28px 0; font-size: 17px; }
.site-footer strong { display: block; font: 26px/1.2 var(--heading); margin-bottom: 8px; }
.site-footer p { margin: 4px 0; }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; }
.site-footer .quiet { color: var(--quiet); }

/* ---------- Booth map page ---------- */
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.map-head h1 { font-size: clamp(34px, 4vw, 46px); }
.map-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
.map-layout > * { min-width: 0; }
.map-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); padding: 8px; }
.map-scroll svg { display: block; width: 100%; min-width: 700px; height: auto; }
.map-index h2 { font: 700 20px var(--body); margin-bottom: 8px; }
.map-index ul { list-style: none; margin: 0; padding: 0; }
.map-index li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.map-index li b { font-size: 20px; font-weight: 850; }
.map-index li.on { background: var(--gold); border: 2px solid #624515; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 16px; color: var(--quiet); }
.swatch { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 6px; }
.found { margin-bottom: 16px; padding: 14px 18px; background: var(--tint); border-left: 5px solid var(--brand); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { padding: 28px; }
  .hero-photo { height: 420px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .social-grid, .booth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booth-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booth-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visit-details { grid-template-columns: 1fr; }
  .detail { gap: 28px; }
}

/* ---------- Phone ---------- */
@media (max-width: 650px) {
  body { font-size: 17px; }
  .topbar .wrap { justify-content: center; }
  .topbar .where-text { display: none; }
  .header-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 10px; }
  .brand { align-self: center; }
  .brand img { width: 180px; }
  .search { max-width: none; }
  .search label span { font-size: 15px; margin-bottom: 4px; }
  .search input, .search .button { min-height: 48px; }
  .site-nav { justify-content: space-between; gap: 8px; }
  .site-nav a { font-size: 16px; }
  .category-strip { padding: 8px 0 10px; }
  main { padding-top: 18px; }

  .hero { grid-template-columns: minmax(0, 1fr) 120px; }
  .hero-copy { padding: 16px 14px; }
  .hero-copy .kicker { display: none; }
  .hero-copy h1 { font-size: 32px; margin-bottom: 10px; }
  .hero-copy p { font-size: 16px; line-height: 1.45; margin-bottom: 12px; }
  .hero-copy .button { min-height: 46px; padding: 8px 14px; }
  .hero-photo { height: auto; }
  .hero-photo figcaption { display: none; }

  .section-head { margin: 24px 0 14px; padding-top: 14px; }
  .section-head h2 { font-size: 27px; }
  .section-head a { white-space: nowrap; font-size: 16px; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .photo { padding: 5px; }
  .card-body { padding: 10px; gap: 8px; }
  .card h3 { font-size: 19px; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .price { font-size: 22px; }
  .booth-tag { padding: 5px 7px; gap: 5px; }
  .booth-tag b { font-size: 23px; }
  .categories { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .categories a { font-size: 16px; min-height: 50px; }

  .social-grid, .booth-grid { grid-template-columns: 1fr; gap: 16px; }
  .booth-photos { grid-template-columns: 1fr; }
  .booth-strip { gap: 10px; }
  .strip-label { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; }
  .booth-head .button, .where-actions .button { width: 100%; }
  .site-nav a { font-size: 16px; }
  .follow .button { flex: 1; }
  .visit { grid-template-columns: 1fr; margin-top: 28px; }
  .visit-photo { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .visit-photo h2 { font-size: 26px; left: 12px; bottom: 12px; padding: 8px 12px; }
  .visit-details { padding: 20px; gap: 14px; }
  .visit-details .actions { display: grid; }

  .detail { grid-template-columns: 1fr; gap: 16px; }
  .gallery-main { aspect-ratio: auto; max-height: 420px; }
  .gallery-main img { max-height: 400px; }
  .info .price { font-size: 32px; }
  .where { padding: 18px; }
  .where h2 { font-size: 23px; }
  .where .button { width: 100%; }
  .booth-tag.large b { font-size: 32px; }

  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-index { order: -1; }
}
@media (max-width: 359px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .card h3 { font-size: 18px; }
  .booth-tag b { font-size: 21px; }
}

/* ---------- Print (booth map poster) ---------- */
@media print {
  @page { size: letter landscape; margin: .35in; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .site-header, .site-footer, .no-print, .skip { display: none !important; }
  main { padding: 0; }
  .wrap { width: 100%; }
  .map-layout { grid-template-columns: 3fr 1fr; gap: 14px; }
  .map-index { order: initial; }
  .map-scroll { border: 0; padding: 0; overflow: visible; }
  .map-scroll svg { min-width: 0; max-height: 6.2in; }
  .map-index li { padding: 2px 4px; }
  .map-index li b { font-size: 12pt; }
  .found { padding: 4px 8px; }
  .map-index li.on, .booth-tag, svg * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- Staff sign-in and staff home ---------- */
.account-wrap { max-width: 760px; }
.account-panel { margin: 24px auto; }
.account-panel h1 { font-size: 34px; margin-bottom: 4px; }
.staff-store { background: var(--paper); border: 1px solid var(--line); padding: 20px; margin-bottom: 20px; }
.staff-store h2 { font-size: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.role-pill { font: 700 15px var(--body); padding: 3px 10px; background: var(--tint); border: 1px solid var(--accent); color: var(--accent); }
.staff-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.account-links { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
form.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; min-height: 44px; }
@media (max-width: 650px) { .staff-tools li, .staff-tools .button { width: 100%; } }

/* ---------- Store Dashboard (staff) ---------- */
.dash-header { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.dash-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
.dash-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 4px solid transparent; }
.dash-nav a:hover { background: var(--tint); }
.dash-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.dash-user { display: inline-flex; align-items: center; gap: 12px; }
.dash-user .linklike { color: #000; }
.dash-wrap { max-width: 1040px; padding: 28px 0 56px; }
.dash-wrap > .notice { margin-bottom: 20px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.dash-card { background: var(--paper); border: 1px solid var(--line-soft); border-top: 6px solid var(--brand); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.dash-card.is-alert { border-top-color: var(--sold); }
.dash-card h2 { font: 700 15px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--quiet); margin-bottom: 4px; }
.dash-card p { margin: 0; }
.dash-big { font: 26px/1.2 var(--heading); margin: 0 0 8px; }
.dash-card .dash-actions { margin-top: auto; padding-top: 16px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dash-actions form { margin: 0; }
.dash-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-stats b { font-size: 22px; margin-right: 4px; }
.pickup-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pickup-group { font: 700 20px var(--body); margin: 28px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.pickup-group .quiet { font-size: 16px; font-weight: 400; }
.pickup-card { background: var(--paper); border: 1px solid var(--line-soft); border-left: 6px solid var(--line); padding: 14px 16px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.pickup-card.late { border-left-color: var(--sold); background: var(--sold-bg); }
.pickup-card.soon { border-left-color: var(--hold); background: var(--hold-bg); }
.pickup-item { font-weight: 700; }
.pickup-phone { font-size: 20px; font-weight: 700; white-space: nowrap; }
.pickup-meta { font-size: 16px; margin-top: 4px; }
.pill { display: inline-block; font-size: 14px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.pill.late { background: var(--sold); color: #fff; }
.pill.soon { background: var(--hold); color: #fff; }
.pill.called { background: var(--new-bg); color: var(--new); }
.table-scroll { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 16px; }
.dash-table th, .dash-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.dash-table th { font-size: 14px; color: var(--quiet); }
.nowrap { white-space: nowrap; }
.dash-form { max-width: 640px; gap: 0; }
.dash-form .field { display: grid; gap: 6px; margin-bottom: 14px; }
.dash-form label { margin-top: 0; }
.dash-form textarea { width: 100%; padding: 10px; border: 2px solid var(--accent); border-radius: var(--radius); font-size: 17px; }
.dash-form .field-help { font-size: 15px; margin: 0; }
.field-error { color: var(--sold); font-weight: 700; margin: 0; }
.has-error input, .has-error select { border-color: var(--sold); }
.dash-form .dash-actions { margin-top: 8px; }
.dash-form .dash-actions .button { margin-top: 0; }
@media (max-width: 650px) {
  .dash-nav { flex-wrap: nowrap; overflow-x: auto; }
  .dash-nav a { padding: 0 12px; white-space: nowrap; }
  .pickup-card { grid-template-columns: 1fr; }
  .dash-actions .button, .dash-actions form { flex: 1 1 auto; }
  .dash-actions form .button { width: 100%; }
  .dash-wrap { padding-top: 20px; }
}
@media print {
  .dash .topbar, .dash-header, .no-print { display: none !important; }
  .pickup-card { break-inside: avoid; }
}
.quiet { color: var(--quiet); }
.dash-nav, .table-scroll { position: relative; }

/* Vendors */
.vendor-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-soft); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.filter-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.vendor-search { display: flex; gap: 8px; flex: 0 1 360px; }
.vendor-search input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; border: 2px solid var(--accent); border-radius: var(--radius); font-size: 17px; }
.vendor-search .button { min-height: 48px; }
.vendor-rows { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line-soft); }
.vendor-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 220px) auto; gap: 8px 18px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.vendor-row:last-child { border-bottom: 0; }
.vendor-row .booth-tag { justify-self: start; }
.vendor-row.is-former { background: var(--mat); }
.vendor-meta { font-size: 15px; margin-top: 2px; }
.vendor-contact { display: grid; font-size: 16px; overflow-wrap: anywhere; }
.pill.hidden { background: var(--hold-bg); color: var(--hold); }
.pill.gone { background: var(--line-soft); color: var(--ink); }
.dash-form fieldset { border: 0; border-top: 1px solid var(--line-soft); margin: 0 0 8px; padding: 16px 0 0; min-width: 0; }
.dash-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.dash-form legend { font: 700 15px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--quiet); padding: 0; margin-bottom: 10px; }
.dash-form .field-title { font-weight: 700; }
.upload-panel input[type="checkbox"] { width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
.check-label { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; cursor: pointer; min-height: 32px; }
.check-label span { padding-top: 1px; }
.space-checks { display: grid; gap: 8px; padding: 8px 0; }
.space-checks .check-label { font-weight: 400; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 650px) {
  .vendor-row { grid-template-columns: auto minmax(0, 1fr); }
  .vendor-contact { grid-column: 1 / -1; }
  .vendor-row > .button { grid-column: 1 / -1; }
  .vendor-search { flex-basis: 100%; }
  .field-pair { grid-template-columns: 1fr; }
}
.vendor-search { min-width: 0; }
.vendor-search input { width: 0; }
.vendor-row { grid-template-columns: minmax(140px, max-content) minmax(0, 1fr) minmax(0, 220px) auto; }
.phone-only { display: none; }
@media (max-width: 650px) {
  .vendor-search { flex: 1 1 100%; }
  .vendor-row { grid-template-columns: max-content minmax(0, 1fr); }
  .hide-phone { display: none; }
  .phone-only { display: inline; }
}

/* Items */
.upload-panel input[type="radio"] { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
.item-search { flex-basis: 520px; }
.item-search select { min-height: 48px; padding: 8px; border: 2px solid var(--accent); border-radius: var(--radius); background: #fff; font-size: 16px; max-width: 150px; }
.item-rows { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line-soft); }
.item-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.item-row:last-child { border-bottom: 0; }
.item-row.status-sold, .item-row.status-hidden { background: var(--mat); }
.item-thumb { display: grid; place-items: center; width: 88px; aspect-ratio: 1; background: var(--mat); border: 1px solid var(--line-soft); overflow: hidden; color: var(--quiet); font-size: 13px; text-decoration: none; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-title { font-weight: 700; color: var(--ink); }
.item-price { font-size: 20px; font-weight: 700; }
.item-actions { justify-content: flex-end; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.photo-edit { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.photo-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-soft); margin-bottom: 6px; }
.photo-edit .check-label { font-weight: 400; font-size: 16px; min-height: 30px; }
.upload-panel input[type="file"] { padding: 10px; }
.upload-panel input[type="color"] { padding: 4px; height: 50px; cursor: pointer; }

/* Settings */
.settings-tabs { margin-bottom: 16px; }
.settings-logo { max-width: 240px; max-height: 110px; width: auto; margin-bottom: 6px; }
.settings-photo { max-width: 280px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
.dash-form .clearable-file-input, .dash-form .field a { overflow-wrap: anywhere; }
.category-form .dash-table td { vertical-align: top; }
.category-form .dash-table input[type="text"] { min-height: 46px; }
.category-form .narrow { width: 1%; white-space: nowrap; }
.category-form .narrow input[type="number"] { width: 80px; min-height: 46px; }
.category-form .dash-table input[type="checkbox"] { margin-top: 12px; }
@media (max-width: 650px) {
  .item-row { grid-template-columns: 72px minmax(0, 1fr); padding: 12px; }
  .item-thumb { width: 72px; }
  .item-actions { grid-column: 1 / -1; justify-content: stretch; }
  .item-search { flex-basis: 100%; flex-wrap: wrap; }
  .item-search select { max-width: none; flex: 1 1 100%; }
  .category-form .dash-table th, .category-form .dash-table td { padding: 8px 4px; }
  .category-form .narrow input[type="number"] { width: 60px; }
}
.dash-form .field { align-content: start; }
.category-form .dash-table td.narrow { vertical-align: middle; }

/* Booth photo walk-through */
.walk-start { max-width: 640px; }
.walk-preview { margin: 8px 0 0; padding-left: 24px; }
.walk-progress { font-weight: 700; color: var(--quiet); margin-bottom: 12px; }
.walk-card { max-width: 560px; background: var(--paper); border: 1px solid var(--line-soft); border-top: 6px solid var(--brand); padding: 20px; display: grid; gap: 12px; }
.walk-head { display: flex; gap: 16px; align-items: center; }
.walk-tag { font-size: 20px; padding: 8px 14px; }
.walk-tag b { font-size: 34px; }
.walk-name { font-size: 26px; margin-bottom: 4px; }
.walk-head p { margin: 0; }
.walk-last { margin: 0; }
.walk-last-photo { width: 100%; max-height: 220px; object-fit: cover; border: 1px solid var(--line-soft); }
.walk-form { display: grid; gap: 10px; }
.walk-camera { position: relative; min-height: 72px; font-size: 22px; cursor: pointer; }
.walk-camera input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.walk-camera:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.walk-picked { margin: 0; text-align: center; }
.walk-save { min-height: 60px; font-size: 19px; }
.walk-save:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.walk-skip { min-height: 52px; }
.walk-callout { margin-bottom: 20px; }

/* Featured videos and staff logins */
.video-row { grid-template-columns: 150px minmax(0, 1fr) auto; }
.video-badge { justify-self: start; font-weight: 700; font-size: 15px; padding: 4px 10px; border: 1px solid var(--line-soft); background: var(--mat); }
.video-badge.instagram { background: #fbe9f1; border-color: #c13584; color: #7a1f50; }
.video-badge.facebook { background: #e7effc; border-color: #1877f2; color: #0d3f84; }
.team-row { grid-template-columns: minmax(0, 1fr) auto; }
.team-top { margin-bottom: 8px; }
.password-card { max-width: 560px; }
.password-box { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 8px 0 16px; padding: 16px; background: var(--tint); border: 1px solid var(--line-soft); }
.password-box dt { font-weight: 700; }
.password-box dd { margin: 0; overflow-wrap: anywhere; }
.password-value { font: 700 24px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
@media (max-width: 650px) {
  .video-row, .team-row { grid-template-columns: minmax(0, 1fr); }
  .password-box { grid-template-columns: 1fr; }
  .password-box dd { margin-bottom: 8px; }
}

/* Vendor pages */
.vendor-head { display: flex; gap: 18px; align-items: center; }
.vendor-head p { margin: 0; }
.vendor-tabs { margin-bottom: 16px; }
.vendor-login-panel { margin-top: 24px; }
.vendor-login-panel h2 { margin-top: 0; }
.vendor-login-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.vendor-login-row.is-former { opacity: .75; }
.vendor-photo-list { margin-top: 8px; }
.vendor-photo-list p { margin: 0; font-size: 15px; }
@media (max-width: 650px) {
  .vendor-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vendor-head h1 { font-size: 30px; }
}

/* QR tag chooser */
.tag-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; max-width: none; margin-bottom: 16px; }
.tag-options .field { display: grid; gap: 6px; align-content: start; }
.tag-options label { margin-top: 0; }
.tag-pick-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 8px; }
.tag-row { grid-template-columns: auto minmax(0, 1fr); }
.tag-check input { width: 26px; height: 26px; accent-color: var(--accent); }
.tag-pick-head input { width: 22px; height: 22px; accent-color: var(--accent); }
.tag-actions { margin-top: 16px; }
@media (max-width: 650px) { .tag-options { grid-template-columns: 1fr; } }

/* Featured posts: our own clean cards (the video opens on Instagram/Facebook) */
.social-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.social-pic { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--mat); overflow: hidden; }
.social-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.social-link:hover .social-pic img { transform: scale(1.03); }
.social-pic.no-photo { background: var(--accent); display: grid; place-items: center; padding: 24px; }
.social-fallback { color: #fff; font: 28px/1.2 var(--heading); text-align: center; }
.social-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 26px; padding-left: 5px; border: 2px solid #fff; }
.social-pic.no-photo .social-play { position: static; margin: 16px auto 0; background: transparent; }
.social-pic.no-photo { grid-template-rows: auto auto; align-content: center; }
.social-link .social-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.social-note { font-weight: 700; }
.social-cta { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.social-link:hover .social-cta { text-decoration-thickness: 3px; }
.social-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.video-row { grid-template-columns: 88px minmax(0, 1fr) auto; }
.video-thumb { display: grid; place-items: center; width: 88px; aspect-ratio: 4 / 5; background: var(--mat); border: 1px solid var(--line-soft); overflow: hidden; color: var(--quiet); font-size: 13px; text-align: center; text-decoration: none; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-row .video-badge { display: inline-block; margin-bottom: 4px; }
@media (max-width: 650px) { .video-row { grid-template-columns: 72px minmax(0, 1fr); } .video-thumb { width: 72px; } .video-row .video-actions { grid-column: 1 / -1; } }
