/* Hong Kong 格 · UI rev 20261023-carousell — Apple look + browse-first marketplace layout */
:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-muted: #86868b;
  --paper: #ffffff;
  --canvas: #f5f5f7;
  --canvas-deep: #ececef;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.08);
  --blue: #0066cc;
  --blue-hover: #0077ed;
  --blue-press: #004499;
  --accent: #b91c1c;
  --accent-gold: #c9a227;
  --card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 980px;
  --nav-h: 56px;
  --ui-rev: 20261023-carousell;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.47059;
  font-size: 17px;
  letter-spacing: -0.022em;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ——— Compact sticky top bar (marketplace chrome, Apple materials) ——— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.topnav-inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  padding: 8px 0;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { opacity: 0.8; }

.nav-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 10px 16px;
  color: var(--ink);
  outline: none;
}

.nav-search-go {
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-search-go:hover { background: var(--blue-hover); }

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
}

.auth-link {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-link:hover { color: var(--blue); }

.auth-user {
  color: var(--ink);
  font-weight: 500;
}

.my-cubby-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ——— Thin notice strip (hero replaced) ——— */
.notice-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.notice-inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 14px 0 16px;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.notice-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.lede {
  margin: 4px 0 0;
  max-width: 52em;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-soft);
}

.hero-sub,
.lede-en { margin: 0; }

/* ——— Layout shells ——— */
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
}

.browse-chrome {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  align-items: end;
}

.filter-row label { display: block; min-width: 0; }

.filter-row input,
.sort select,
.sheet input,
.sheet textarea,
.sheet select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.filter-row input:focus,
.sort select:focus,
.sheet input:focus,
.sheet textarea:focus,
.sheet select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.18);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.search-go { min-width: 100px; }

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: end;
  padding: 0 2px;
}

.count {
  margin: 0;
  flex: 1 1 140px;
  color: var(--ink-soft);
  font-size: 13px;
}

.sort { min-width: 160px; }

.lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lbl small,
.sheet-en,
.fine {
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--paper);
}

.view-toggle button,
.chip,
.post-btn,
.ghost,
.solid,
.cubby,
.list-row,
.item-btn,
.listing-card,
.shop-card {
  font: inherit;
  cursor: pointer;
}

.view-toggle button {
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  padding: 8px 14px;
  min-height: 36px;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}

.post-btn,
.solid {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.12s ease, opacity 0.15s ease;
}

.post-btn-nav {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

.post-btn:hover,
.solid:hover { background: var(--blue-hover); }

.post-btn:active,
.solid:active {
  background: var(--blue-press);
  transform: scale(0.98);
}

/* Horizontal filter / area chips */
.chip-scroll,
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.chip {
  flex: 0 0 auto;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  min-height: 34px;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.chip.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 500;
}

.banner,
.status,
.noscript {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.5;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: none;
}

.banner { margin: 14px 0 0; }
.status:empty { display: none; }
.status { margin-top: 10px; color: var(--accent); }

.cabinet { margin-top: 18px; }

/* Dense marketplace card grid — Apple materials */
.card-grid,
.shop-results,
.wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.listing-card,
.shop-card,
.cubby {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  margin: 0;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 0;
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover,
.shop-card:hover,
.cubby:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--canvas-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-media .motif,
.card-media .glyph,
.card-media .empty-mark {
  width: 72px;
  height: 72px;
  margin: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-price {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card {
  padding: 0;
  min-height: 0;
  text-align: left;
}

.shop-card .card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #eef1f6, #f5f5f7 55%, #e8ecf2);
}

.shop-card .shop-glyph {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.shop-card h3,
.shop-card .card-title {
  font-size: 16px;
  font-weight: 600;
  min-height: 0;
  -webkit-line-clamp: 2;
}

.shop-card-area {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.shop-card-en,
.shop-card-addr,
.shop-card-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.shop-card-meta {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
  color: var(--ink-muted);
  font-weight: 500;
}

.selected-shop-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.selected-shop-info {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.back-shops {
  color: var(--blue) !important;
  border-color: transparent !important;
  background: rgba(0, 102, 204, 0.08) !important;
  border-radius: var(--radius-pill) !important;
}

.cubby {
  position: relative;
  min-height: 0;
}

.cubby.is-empty {
  background: var(--card);
  color: var(--ink-muted);
}

.cubby.is-empty .card-media {
  background: var(--canvas);
  border-bottom: 1px dashed var(--line);
}

.cubby.is-new {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.plate-row {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  z-index: 1;
  pointer-events: none;
}

.plate {
  background: rgba(29, 29, 31, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
}

.stall-label {
  font-size: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 6px;
}

.motif,
.glyph {
  width: 64px;
  height: 64px;
  margin: 0;
}

.glyph {
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--ink-soft);
  font-size: 26px;
  font-weight: 600;
  border: 0;
}

.empty-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  font-size: 12px;
  background: var(--paper);
}

.cubby-name { /* legacy alias */
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.price-tag {
  display: inline-block;
  margin-top: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 0;
  box-shadow: none;
  transform: none;
  letter-spacing: -0.02em;
}

.price-tag::before { display: none; content: none; }

.meta-line {
  display: block;
  margin-top: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.stamp {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 6px;
  transform: none;
  z-index: 1;
}

.plinth-caption {
  margin: 12px 0 0;
  padding: 0;
  text-align: center;
  letter-spacing: -0.01em;
  background: transparent;
  color: var(--ink-muted);
  border-radius: 0;
  font-size: 13px;
}

.list { display: none; }

.list-row,
.item-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.list-row .name,
.item-btn .name { font-weight: 600; }

.list-row .desc,
.item-btn .desc {
  color: var(--ink-soft);
  font-size: 14px;
}

.list-row .price,
.item-btn .price { font-weight: 600; white-space: nowrap; }

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.55;
  font-size: 15px;
}

.list-row.is-new,
.cubby.is-new,
.listing-card.is-new {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sheet .item-btn {
  grid-template-columns: 1fr auto;
  margin-top: 8px;
}

.sheet .item-btn .desc { grid-column: 1 / -1; }

.hidden { display: none !important; }

footer {
  padding: 40px 0 56px;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.footer-brand {
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 15px;
}

.footer-en {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0;
}

footer code { color: var(--blue); }

/* ——— Dialogs ——— */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 24px);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sheet {
  width: min(440px, 100%);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 28px 28px 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
}

.sheet-head { margin-bottom: 14px; }
.sheet-kicker {
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.sheet h2 {
  margin: 4px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sheet-en, .fine, .form-error { margin: 6px 0; font-size: 14px; }
.sheet label { display: block; margin-top: 14px; }
.sheet textarea { resize: vertical; min-height: 80px; }
.form-error { min-height: 1.2em; color: var(--accent); font-weight: 500; }
.form-error:empty { display: none; }

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ghost:hover {
  background: var(--canvas);
  border-color: var(--ink-muted);
}

.detail-stall { margin: 0; color: var(--ink-muted); letter-spacing: 0; font-size: 13px; }
.detail-price { font-size: 28px; margin: 8px 0; font-weight: 600; letter-spacing: -0.02em; }
.badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 2px 8px;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px;
}
.badge.is-new { border-color: var(--blue); color: var(--blue); }

.noscript {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 24px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
  font-size: 14px;
  font-weight: 500;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.listing-card:focus-visible,
.cubby:focus-visible,
.list-row:focus-visible,
.item-btn:focus-visible,
.post-btn:focus-visible,
.chip:focus-visible,
.view-toggle button:focus-visible,
.solid:focus-visible,
.ghost:focus-visible,
.shop-card:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-search-go:focus-visible {
  outline: 3px solid rgba(0, 102, 204, 0.45);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .card-grid,
  .shop-results,
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topnav-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "search search";
  }
  .brand { grid-area: brand; }
  .nav-search { grid-area: search; }
  .topnav-actions { grid-area: actions; }
  .card-grid,
  .shop-results,
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .list-row, .item-btn { grid-template-columns: 1fr auto; }
  .list-row .stall, .item-btn .stall { grid-column: 1 / -1; }
  .filter-row { grid-template-columns: 1fr 1fr; padding: 14px; }
  .filter-actions { grid-column: 1 / -1; }
  .post-btn-nav { display: none; }
}

@media (max-width: 520px) {
  .topnav-inner, main, footer, .notice-inner { width: min(1120px, calc(100% - 24px)); }
  .filter-row { grid-template-columns: 1fr; }
  .toolbar-actions { align-items: stretch; }
  .post-btn, .sort, .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; }
  .auth-bar { font-size: 11px; gap: 4px 10px; }
  .notice-title { font-size: 18px; }
}

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

.claim-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #d2d2d7);
  display: grid;
  gap: 10px;
}
.claim-form {
  display: grid;
  gap: 12px;
}
.claim-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.claim-form input,
.claim-form select {
  font: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--line, #d2d2d7);
  background: #fff;
}

.photo-field { display: grid; gap: 8px; margin-top: 4px; }
.photo-field .lbl { font-size: 12px; font-weight: 600; }
.photo-preview {
  display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px;
}
.photo-preview .thumb {
  position: relative; width: 72px; height: 72px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line, #d2d2d7); background: #f0f0f2;
}
.photo-preview .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview .thumb button {
  position: absolute; top: 2px; right: 2px; border: 0; border-radius: 999px;
  width: 22px; height: 22px; background: rgba(0,0,0,0.65); color: #fff;
  font-size: 12px; cursor: pointer; line-height: 1;
}
.card-media .cover-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.card-media { position: relative; overflow: hidden; }
.cubby-gallery-link {
  display: inline-block; margin-top: 8px; color: var(--blue, #0066cc);
  font-size: 14px; text-decoration: none;
}
.cubby-gallery-link:hover { text-decoration: underline; }
