/* Reviewer. Light and dark themes from the same tokens; every text colour meets WCAG 2.2 AA on its background. */
:root {
  --bg: #f3f5fa; --card: #ffffff; --ink: #16213a; --muted: #4f5a72; --line: #d9dfeb;
  --brand: #24409a; --brand-ink: #ffffff; --link: #1f3a8f; --head: #13203d; --head-ink: #ffffff; --head-soft: #d6def5;
  --danger: #b42318; --danger-ink: #ffffff; --focus: #b45309;
  --ok-bg: #e3f4e8; --ok-ink: #1b4d2b; --warn-bg: #fff2d1; --warn-ink: #5c3f00; --err-bg: #fde8e6; --err-ink: #8a1c12;
  --tag-bg: #e8ecf6; --star: #9a5800; --mark-bg: #ffe58a; --mark-ink: #16213a;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1220; --card: #161d2f; --ink: #e9edf7; --muted: #aab4cc; --line: #2b3550;
    --brand: #9db4ff; --brand-ink: #0d1220; --link: #a9bfff; --head: #080c17; --head-ink: #ffffff; --head-soft: #c9d4f2;
    --danger: #ff8f80; --danger-ink: #2a0905; --focus: #f5c542;
    --ok-bg: #143823; --ok-ink: #c6efd2; --warn-bg: #3a2d0b; --warn-ink: #ffe3a3; --err-bg: #3d1611; --err-ink: #ffd2cb;
    --tag-bg: #232c44; --star: #f5c542; --mark-bg: #6b5410; --mark-ink: #ffffff;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.25rem; line-height: 1.25; margin: 1.2rem 0 .6rem; }
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }
p { margin: 0 0 .8rem; }
:is(a, button, input, select, textarea, summary, label.btn, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 16px; }
main:focus { outline: none; }

/* Header */
.site-header { background: var(--head); color: var(--head-ink); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { color: var(--head-ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; padding: 8px 0; }
.brand span, .hero h1 span { margin-right: .3em; }
.nav-out { color: var(--head-soft); padding: 8px 0; }
.site-header .btn.small { background: var(--head-ink); color: var(--head); }
.menu { border-top: 1px solid rgba(255,255,255,.12); }
.menu-row { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.menu a { color: var(--head-soft); text-decoration: none; padding: 10px 0; display: inline-block; border-bottom: 3px solid transparent; min-height: 24px; }
.menu a:hover { color: var(--head-ink); }
.menu a.active { color: var(--head-ink); border-bottom-color: var(--head-soft); font-weight: 600; }

/* Blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.card.narrow { max-width: 560px; margin: 24px auto; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } }
/* Two cards side by side (My Finds: found | added; Groups: yours | everyone's), stacked on phones. */
.cols-2 { align-items: start; margin-bottom: 16px; }
.cols-2 > .card { margin: 0; min-width: 0; }
.grid.two.tight { grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.wrap-row { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .3rem 0 .6rem; }
.center { text-align: center; }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--tag-bg); color: var(--muted); vertical-align: middle; }
.tag.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag.guess-tag { background: var(--err-bg); color: var(--err-ink); }
.more-added summary { cursor: pointer; font-weight: 600; color: var(--link); padding: 10px 0; min-height: 24px; }
.lm > span:last-child .tag { align-self: flex-start; margin: 2px 0; }
.kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 .2rem; }
.found-badge { color: var(--ok-ink); background: var(--ok-bg); display: inline-block; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.stat strong { font-size: 2rem; }

/* Alerts */
.alert, .flash { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; }
.alert.ok, .flash.ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.error, .flash.error { background: var(--err-bg); color: var(--err-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand);
  border-radius: 10px; padding: 9px 16px; min-height: 44px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--link); }
.btn.big { font-size: 1.1rem; padding: 12px 22px; min-height: 52px; }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: .92rem; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-ink); }
.linkish { background: none; border: 0; padding: 4px 0; min-height: 24px; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.linkish.danger { color: var(--danger); }
form { margin: 0; }

/* Forms */
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 750; font-size: 1.1rem; margin-bottom: 8px; padding: 0; }
.field { margin: 0 0 14px; }
.field > label, .field > .label { display: block; font-weight: 650; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=file], select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--muted);
  border-radius: 8px; background: var(--card); color: var(--ink); }
input[type=file] { padding: 8px; }
textarea { resize: vertical; }
.check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview { display: block; max-height: 280px; width: auto; border-radius: 10px; margin-top: 10px; }
.inline-form .field { max-width: 420px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }

/* Home */
.hero { padding: 16px 0 8px; }
.hero h1 { font-size: 2.2rem; }
.hero .how-card { margin: 12px 0 16px; }
.lead { font-size: 1.3rem; font-weight: 600; }
.steps { padding-left: 1.3rem; margin: 0 0 1rem; }
.steps li { margin-bottom: .6rem; }

/* Lists of drinks */
.lm-list { list-style: none; padding: 0; margin: 0 0 .8rem; }
.lm-list li + li { border-top: 1px solid var(--line); }
.lm { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.lm:hover strong { text-decoration: underline; }
.lm > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lm img, .noimg { width: 72px; height: 72px; flex: 0 0 72px; object-fit: cover; border-radius: 8px; background: var(--tag-bg); }
.noimg { display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.lm .meta { color: var(--muted); font-size: .9rem; }
.lm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.lm-pick > .lm { flex: 1 1 240px; min-width: 0; }
.lm-pick > .btn { margin-left: auto; flex: none; }   /* "Show on map" stays on the right, even when it wraps under a long name (Tom, 2026-11-25) */

/* Page parts */
.cover { margin: 0 0 16px; }
.cover img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--radius); background: #000; display: block; }
.facts { display: grid; gap: 4px 16px; grid-template-columns: 1fr; margin: 12px 0 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0 0 8px; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery li { display: flex; flex-direction: column; gap: 4px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }

.site-footer { margin-top: 24px; color: var(--ink); }   /* the shared footer fades its own text */
.site-footer a { color: var(--ink); }
@media print { .site-header, .site-footer, .actions, .btn { display: none !important; } body { background: #fff; } .card { border: 0; } }

/* Dashboard (admins) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.tile { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tile .lbl { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tile .num { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile .num.good { color: var(--ok-ink); }
.tile .num.bad { color: var(--danger); }
.tile .sub { font-size: .85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: 6px; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data caption { text-align: left; font-weight: 700; padding: 6px 0; }
table.data th, table.data td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.data tbody th { font-weight: 600; }
table.data .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Cards that open and close (app.js) */
.card-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 24px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.card-toggle::after { content: ''; flex: none; margin-left: auto; margin-right: 4px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .75; }
.card-toggle[aria-expanded="false"]::after { transform: rotate(-45deg); }
.card-toggle:hover { color: var(--link); }
.card.collapsed > h1, .card.collapsed > h2 { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) { .card-toggle::after { transition: transform .15s; } }
@media print { .card-body[hidden] { display: block !important; } .card-toggle::after { display: none; } }
.search-row input[type=search] { flex: 1 1 240px; width: auto; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--card); color: var(--ink); }
.review h3, .card-body > h3 { font-size: 1.05rem; margin: 14px 0 6px; }



/* ── Reviewer ───────────────────────────────────────────────────────────── */
input[type=search], input[type=url], input[type=date], input[type=number] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--card); color: var(--ink); }
.grid.two.tight-cols { gap: 0 14px; }
.radio { display: flex; gap: 8px; align-items: center; min-height: 30px; }
.radio input { width: 20px; height: 20px; flex: none; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; min-height: 28px; }
.check-inline input { width: 20px; height: 20px; }
.label { display: block; font-weight: 650; margin-bottom: 4px; }
h3 { font-size: 1.05rem; margin: 14px 0 6px; }
mark { background: var(--mark-bg); color: var(--mark-ink); padding: 0 1px; border-radius: 2px; }

/* The header's search */
.site-header .bar { flex-wrap: wrap; }
.head-search { display: flex; gap: 6px; flex: 1 1 260px; max-width: 420px; margin: 6px 0; }
.head-search input[type=search] { padding: 6px 10px; min-height: 36px; border-color: var(--head-soft); background: var(--card); }
.site-header .btn.small.head-login, .head-search .btn.small { background: var(--head-ink); color: var(--head); border-color: var(--head-ink); }
@media (max-width: 520px) { .head-search { order: 3; flex-basis: 100%; max-width: none; } }

/* Stars */
.stars { color: var(--star); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.stars .num { color: var(--ink); letter-spacing: 0; font-weight: 600; }
.stars.none { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.rating-big { font-size: 1.25rem; margin-bottom: .4rem; }
/* The star picker: radio buttons as stars; picked and hovered stars fill up to the one under the pointer (:has) */
.star-pick { margin: 0 0 14px; }
.star-pick legend { font-weight: 650; font-size: 1rem; margin-bottom: 2px; }
.star-row { display: inline-flex; gap: 2px; }
.star-row label { font-size: 2.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 3px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.star-row label span[aria-hidden] { -webkit-text-stroke: 0; opacity: .45; }
.star-row:has(input:checked) label span[aria-hidden] { opacity: .45; }
.star-row:has(input[value="1"]:checked) label:nth-of-type(-n+1) span[aria-hidden],
.star-row:has(input[value="2"]:checked) label:nth-of-type(-n+2) span[aria-hidden],
.star-row:has(input[value="3"]:checked) label:nth-of-type(-n+3) span[aria-hidden],
.star-row:has(input[value="4"]:checked) label:nth-of-type(-n+4) span[aria-hidden],
.star-row:has(input[value="5"]:checked) label:nth-of-type(-n+5) span[aria-hidden] { color: var(--star); opacity: 1; }
@media (hover: hover) {
  .star-row:hover label span[aria-hidden] { opacity: .45; color: var(--muted); }
  .star-row label:hover span[aria-hidden], .star-row label:has(~ label:hover) span[aria-hidden] { color: var(--star); opacity: 1; }
}
.star-row input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.star-word { margin: 2px 0 0; color: var(--muted); font-size: .92rem; min-height: 1.4em; }

/* Home */
.hero-search { max-width: 680px; margin: 0 0 12px; }
.hero-search input[type=search] { font-size: 1.05rem; padding: 12px 14px; }
.kind-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kind-grid a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; height: 100%; min-height: 44px; }
.kind-grid a:hover strong { text-decoration: underline; }
.big-ico { font-size: 1.8rem; }
.best-links { padding-left: 1.2rem; margin: 0 0 .8rem; }
.best-links li { margin-bottom: 6px; }
.best-links.big li { font-size: 1.1rem; }

/* Search */
.filters select { width: auto; max-width: 100%; }
.more-filters { margin: 10px 0 4px; }
.more-filters summary, details.report summary, details.spoiler summary, details summary { cursor: pointer; color: var(--link); font-weight: 600; min-height: 24px; padding: 4px 0; }
.filter-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 8px; }
.filter-grid select { width: 100%; }
.checks { margin: 0 0 10px; }
.sort-row { margin: 10px 0 6px; }
.sort-row label { font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tabs a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; font-weight: 600; }
.tabs a.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.best-hit { background: var(--warn-bg); color: var(--warn-ink); padding: 8px 12px; border-radius: 8px; }
.best-hit a { color: var(--warn-ink); font-weight: 700; }
.pager { display: flex; gap: 10px; justify-content: space-between; margin: 10px 0 16px; }

/* Reviews */
.reviews { display: grid; gap: 14px; margin: 0 0 16px; }
.card .reviews { margin: 0; gap: 0; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card .review { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.card .reviews > .review:first-child { border-top: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.panel .review { border: 0; padding: 0; }
.rv-title { font-size: 1.15rem; margin: 0 0 4px; }
.review-page .rv-title { font-size: 1.6rem; }
.rv-title a { color: var(--ink); text-decoration: none; }
.rv-title a:hover { text-decoration: underline; }
.rv-meta { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.rv-meta strong { color: var(--ink); }
.rv-item { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-item a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.rv-item img, .rv-item .noimg { width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; border-radius: 6px; background: var(--tag-bg); font-size: 1.3rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.tag.no { background: var(--err-bg); color: var(--err-ink); }
.tag.warn-tag { background: var(--warn-bg); color: var(--warn-ink); }
.rv-body p:last-child { margin-bottom: 8px; }
.snippet { color: var(--ink); }
.spoiler { margin: 0 0 8px; }
.proscons { display: grid; gap: 4px 18px; grid-template-columns: 1fr; margin: 6px 0 8px; }
@media (min-width: 600px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons .label { margin: 0 0 2px; }
.proscons ul { margin: 0 0 6px; padding-left: 1.2rem; }
.pros .label { color: var(--ok-ink); }
.cons .label { color: var(--err-ink); }
.proscons.small { font-size: .95rem; }
.rv-facts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 4px 0 8px; }
.rv-facts div { display: flex; gap: 6px; }
.rv-facts dt { font-weight: 700; color: var(--muted); }
.rv-facts dd { margin: 0; }
.rv-photos { margin: 4px 0 10px; }
.followups { list-style: none; padding: 0 0 0 14px; margin: 8px 0 10px; border-left: 3px solid var(--line); }
.followups li { margin: 0 0 10px; }
.fu-head { margin: 0 0 4px; }
.fu-change { white-space: nowrap; }
.rv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.rv-tools details { flex-basis: 100%; }
.rv-tools textarea { margin: 6px 0; }
.btn.vote.on { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-ink); }
.share-row { margin: 12px 0 0; }
.crumbs { margin: 0 0 10px; }
form.inline { display: inline; }
/* Screen-reader-only words in a table stay inside its scroll box (they're positioned, so they'd otherwise widen the page). */
.table-wrap { position: relative; }

/* An item's page */
.item-top { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.item-top > div { flex: 1 1 260px; min-width: 0; }
.item-photo img, .item-photo.noimg { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; display: block; }
.noimg.big { font-size: 4rem; }
.maker-line { font-size: 1.05rem; color: var(--muted); margin-bottom: .4rem; }
.rank { margin: 0 0 .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.toggle-form { display: inline; }
.btn.on { background: var(--tag-bg); }
.dist { list-style: none; padding: 0; margin: 0 0 10px; max-width: 480px; }
.dist-row { display: grid; grid-template-columns: 3.2em 1fr 2.5em; gap: 10px; align-items: center; padding: 4px 0; color: var(--ink); text-decoration: none; min-height: 28px; }
.dist-row:hover .lbl { text-decoration: underline; }
.dist .bar { height: 12px; background: var(--tag-bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.dist .bar span { display: block; height: 100%; background: var(--star); }
.dist .n { text-align: right; font-variant-numeric: tabular-nums; }
.chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--tag-bg); color: var(--ink); border-radius: 99px; padding: 3px 10px; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; gap: 4px; }
a.chip:hover { text-decoration: underline; }
.chip .n { color: var(--muted); font-size: .85em; }
.chips.small .chip { font-size: .85rem; padding: 2px 9px; min-height: 26px; }
.review-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }

/* Forms */
.item-form select, .review-form select { max-width: 100%; }
.photo-picks li { align-items: flex-start; }
.photo-picks img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
#rvPhotoPreview { margin-top: 8px; }
#rvPhotoPreview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.note-row { margin: 0 0 10px 84px; }
.note-row input[type=text] { width: auto; flex: 1 1 200px; padding: 6px 10px; }
@media (max-width: 520px) { .note-row { margin-left: 0; } }
.mine-list .lm-pick > .row { flex: none; margin-left: auto; }

/* Best-of lists */
.best-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.best-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.best-item:first-child { border: 2px solid var(--star); }
.best-rank { font-size: 1.6rem; font-weight: 800; color: var(--star); min-width: 2.4ch; }
.best-body h2 { margin: 0 0 2px; font-size: 1.2rem; }
.best-body > p { margin: 0 0 6px; }
.best-photo img, .best-photo .noimg { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: flex; }
@media (max-width: 560px) { .best-item { grid-template-columns: auto 1fr; } .best-photo { display: none; } }

/* Profiles */
.profile-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.profile-head > div:last-child { flex: 1 1 280px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; flex: none; }
.kind-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; }
.tag.warn-tag { vertical-align: middle; }
.actions-bar { margin: 0 0 16px; }

/* A card heading with a link in it keeps the link; its fold button sits beside it, named for the heading. */
.has-side-toggle { display: flex; align-items: center; gap: 10px; }
.card-toggle.card-toggle-side { width: auto; min-width: 32px; min-height: 32px; margin-left: auto; justify-content: center; flex: none; }
.card-toggle.card-toggle-side::after { margin: 0; }
