:root {
  --bg: #eeece3;
  --surface: #ffffff;
  --surface-2: #f5f3ea;
  --ink: #201f1a;
  --ink-soft: #5b584c;
  --ink-faint: #8a8677;
  --rule: #dcd8c8;
  --accent: #a83a1c;
  --accent-ink: #ffffff;
  --olive: #69713f;
  --gold: #b5811f;
  --danger: #a83a1c;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(32, 31, 26, 0.06), 0 8px 24px rgba(32, 31, 26, 0.05);
}

:root[data-theme="dark"] {
  --bg: #17150f;
  --surface: #221f18;
  --surface-2: #2b2820;
  --ink: #f1eee4;
  --ink-soft: #c6c1af;
  --ink-faint: #8f8a76;
  --rule: #3b372a;
  --accent: #e2653f;
  --accent-ink: #1a1712;
  --olive: #9aa870;
  --gold: #dcab55;
  --danger: #e2653f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }

p { margin: 0 0 0.8rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font-size: 0.92em;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- header / nav ---- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
  border: none;
}
.btn-pill:hover { background: #8f3117; text-decoration: none; }
:root[data-theme="dark"] .btn-pill:hover { background: #c85632; }
.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--rule);
}
.btn-pill-secondary:hover { background: var(--surface-2); text-decoration: none; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }

.inline-form { display: inline; margin: 0; }
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }
.link-button[disabled] { color: var(--ink-faint); cursor: not-allowed; }
.link-button[disabled]:hover { text-decoration: none; }

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9rem;
  text-align: center;
}
.impersonation-banner .link-button { color: var(--accent-ink); text-decoration: underline; font-weight: 600; }

/* ---- main / footer ---- */
.site-main { flex: 1; padding: 2.5rem 0; }
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.85rem;
  padding: 1.5rem 0;
}
.site-footer p { margin: 0; }

/* ---- hero ---- */
.hero { max-width: 640px; margin: 2rem 0; }
.hero .tagline { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.hero-logo {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin-bottom: 0.6rem;
}

.reviewer-hero { max-width: 640px; margin-bottom: 1.5rem; }
.reviewer-hero .tagline { font-size: 1.1rem; color: var(--ink-soft); }
.empty-state-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink-soft);
}

/* ---- reviewer site: list nav + previews ---- */
.list-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.list-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.list-nav-item:hover { background: var(--surface-2); text-decoration: none; }
.list-nav-map { border-color: var(--accent); color: var(--accent); }

.list-preview-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.list-preview-card h2 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.list-preview-card p { margin: 0; color: var(--ink-soft); }

/* ---- table/map view toggle ---- */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.view-toggle-btn {
  background: var(--surface);
  border: none;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.view-toggle-btn + .view-toggle-btn { border-left: 1px solid var(--rule); }
.view-toggle-btn.active { background: var(--accent); color: var(--accent-ink); }

/* ---- maps ---- */
.map-canvas {
  height: 480px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.map-canvas-large { height: 600px; }
.map-with-filter { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.map-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
}
.map-filter-item { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.map-error { color: var(--danger); padding: 1rem; margin: 0; }
.popup-list-name { color: var(--ink-faint); font-size: 0.82rem; }
.popup-links { margin-top: 0.3rem; font-size: 0.88rem; }

/* ---- restaurant detail ---- */
.restaurant-detail { max-width: 640px; }
.restaurant-photo { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.restaurant-rank { color: var(--ink-soft); }
.restaurant-address, .restaurant-phone { color: var(--ink-soft); }
.restaurant-comments { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.restaurant-comments h2 { font-size: 1.05rem; }

.social-links { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.social-links h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.social-links-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.social-link:hover { background: var(--surface-2); text-decoration: none; }
.social-link-facebook:hover { border-color: var(--accent); }
.social-link-instagram:hover { border-color: var(--accent); }
.social-link-tiktok:hover { border-color: var(--accent); }
.social-link-youtube:hover { border-color: var(--accent); }

/* ---- table: public comments + video-review icon columns ---- */
.comments-cell { max-width: 320px; color: var(--ink-soft); }
.social-cell { white-space: nowrap; }
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-soft);
  margin-right: 0.4rem;
}
.social-icon-link:last-child { margin-right: 0; }
.social-icon-link:hover { background: var(--surface-2); color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #8f3117; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #fbeae5; }
:root[data-theme="dark"] .btn-primary:hover { background: #c85632; }
:root[data-theme="dark"] .btn-danger:hover { background: rgba(226, 101, 63, 0.15); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- forms ---- */
.form-page { max-width: 640px; }
.form-page-narrow { max-width: 380px; margin: 0 auto; }
.field { margin-bottom: 1.1rem; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row .field { flex: 1 1 180px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, button:focus, a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field-hint { font-size: 0.82rem; color: var(--ink-faint); margin: 0.3rem 0 0; }
.photo-preview { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); margin-bottom: 0.5rem; }
.field-error { font-size: 0.82rem; color: var(--danger); margin: 0.3rem 0 0; }
.field-static { padding: 0.6rem 0; color: var(--ink-soft); margin: 0; }
.field-group-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 1.6rem 0 0.8rem;
}
.slug-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.slug-input span {
  display: flex;
  align-items: center;
  padding: 0 0.7rem;
  background: var(--surface-2);
  color: var(--ink-faint);
  font-size: 0.9rem;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
}
.slug-input input {
  border: none;
  border-radius: 0;
}
.slug-input input:focus { outline: none; }

/* ---- alerts ---- */
.alert {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}
.alert-success { background: #eef1e6; border: 1px solid var(--olive); color: #4a5230; }
.alert-error { background: #fbeae5; border: 1px solid var(--danger); color: #7a2a13; }
:root[data-theme="dark"] .alert-success { background: #232a1c; color: #c9d6a8; }
:root[data-theme="dark"] .alert-error { background: #2e211a; color: #f3c3ac; }

/* ---- app shell (dashboard / admin) ---- */
.app-body { background: var(--bg); }
.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 2rem;
}
.app-sidebar-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.app-sidebar-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.app-sidebar-nav a {
  color: var(--ink-soft);
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 0.92rem;
}
.app-sidebar-nav a:hover { background: var(--surface); text-decoration: none; color: var(--ink); }
.app-main { min-width: 0; }

.dashboard-header { margin-bottom: 1.6rem; }
.dashboard-header h1 { margin-bottom: 0.3rem; }
.site-url { color: var(--ink-soft); font-size: 0.92rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.panel-header h2 { margin: 0; }
.header-links { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.92rem; }
.empty-state { color: var(--ink-faint); margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-value {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.82rem; color: var(--ink-faint); }

/* ---- tabs ---- */
.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.4rem; }
.tab {
  padding: 0.55rem 0.9rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
}
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- tables ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 480px; }
.data-table th, .data-table td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.data-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  background: var(--surface-2);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.mono { font-family: Consolas, "SF Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.data-table thead th a { color: inherit; text-decoration: none; }
.data-table thead th a:hover { text-decoration: underline; }
.data-table thead th a.active-sort { color: var(--accent); text-decoration: underline; }
.data-table tr.edit-row td { background: var(--surface-2); }
.data-table tr.edit-row .form-page { max-width: none; margin: 0.5rem 0; }

.action-row { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.action-row form { margin: 0; }

/* ---- status chips ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  text-transform: uppercase;
}
.chip-draft { color: var(--ink-faint); }
.chip-published { color: var(--olive); border-color: var(--olive); }
.chip-unpublished { color: var(--danger); border-color: var(--danger); }
.chip-active { color: var(--olive); border-color: var(--olive); }
.chip-disabled { color: var(--danger); border-color: var(--danger); }

/* ---- row actions (inline forms/links inside a table cell) ---- */
.row-actions { display: flex; align-items: center; gap: 0.8rem; white-space: nowrap; }
.row-actions .inline-form { display: inline; }
.link-button-danger { color: var(--danger); }

/* ---- restaurant search ---- */
.search-row { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; max-width: 360px; }
.search-row input { flex: 1; }

/* ---- custom ranking label rows ---- */
.label-rows { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }
.label-row { display: grid; grid-template-columns: 2fr 1fr; gap: 0.6rem; }
.label-row-header { font-size: 0.78rem; color: var(--ink-faint); font-weight: 600; }
.static-label-list { margin: 0.3rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.field-hint-inline { font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--ink-faint); font-size: 0.85em; }

/* ---- inline field help (details/summary, no JS needed) ---- */
.field-help { margin: 0.3rem 0 0.6rem; font-size: 0.85rem; }
.field-help summary {
  display: inline-block;
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.field-help summary::marker { content: ''; }
.field-help summary::before { content: 'ⓘ '; }
.field-help p {
  margin: 0.4rem 0 0;
  padding: 0.6rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink-soft);
}

/* ---- getting-started steps ---- */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 0; border-bottom: none; }
.step-number {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.step-body { min-width: 0; }
.step-body h3 { margin: 0.05rem 0 0.4rem; font-size: 1.02rem; }
.step-body p { margin: 0; color: var(--ink-soft); }
.step-body p + p { margin-top: 0.5rem; }

/* ---- ledger board display style ----
   Deliberately its own fixed dark palette, independent of the site's
   light/dark toggle — a presentational choice the reviewer picked for
   this list, not something that should shift with the viewer's theme. */
.ledger-board {
  --lg-bg: #0c0c0d;
  --lg-ink: #f4f4f2;
  --lg-ink-soft: #8b8b8a;
  --lg-rule: #232324;
  --lg-surface-2: #161617;
  --lg-gold: #ffb400;
  --lg-silver: #c7cdd6;
  --lg-bronze: #d0793f;
  background: var(--lg-bg);
  color: var(--lg-ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 0.4rem;
  margin-bottom: 2rem;
}
.ledger-head { border-bottom: 1px solid var(--lg-rule); padding-bottom: 1rem; margin-bottom: 0.2rem; }
.ledger-title { font-family: Arial, Helvetica, sans-serif; font-size: 1.5rem; margin: 0 0 0.3rem; color: var(--lg-ink); }
.ledger-sub { color: var(--lg-ink-soft); margin: 0 0 1rem; }
.ledger-empty { color: var(--lg-ink-soft); padding: 1.2rem 0 1.6rem; margin: 0; }

.ledger-row {
  display: grid;
  grid-template-columns: 40px auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--lg-rule);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-rank {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--lg-ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ledger-rank-1 { color: var(--lg-gold); }
.ledger-rank-2 { color: var(--lg-silver); }
.ledger-rank-3 { color: var(--lg-bronze); }
.ledger-photo { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.ledger-info { min-width: 0; }
.ledger-name { display: inline-block; font-weight: 700; font-size: 1.02rem; color: var(--lg-ink); }
.ledger-name:hover { text-decoration: underline; }
.ledger-location { color: var(--lg-ink-soft); font-size: 0.82rem; margin-top: 0.1rem; }
.ledger-comments { color: var(--lg-ink-soft); font-size: 0.86rem; margin: 0.4rem 0 0; max-width: 60ch; }
.ledger-social { margin-top: 0.5rem; }
.ledger-board .social-icon-link { background: var(--lg-surface-2); border-color: var(--lg-rule); color: var(--lg-ink-soft); }
.ledger-board .social-icon-link:hover { color: var(--lg-gold); border-color: var(--lg-gold); }
.ledger-score {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--lg-ink);
  white-space: nowrap;
}

/* ---- ticket display style ----
   Same reasoning as the ledger board: a fixed kraft-paper palette the
   reviewer chose for this list, independent of the viewer's light/dark
   toggle. No photos by design — a receipt is itemized text, not a gallery. */
.ticket {
  --tk-bg: #ece2cc;
  --tk-card: #f7f0dd;
  --tk-ink: #221d13;
  --tk-ink-soft: #6b6350;
  --tk-accent: #b23a2c;
  background: var(--tk-bg);
  padding: 2.2rem 1.2rem;
  display: flex;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.ticket-receipt {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--tk-card);
  color: var(--tk-ink);
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
  box-shadow: 0 10px 30px rgba(20, 16, 6, 0.18);
  padding: 1.6rem 1.5rem 1.8rem;
}
.ticket-receipt::before, .ticket-receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: radial-gradient(circle at 8px 5px, var(--tk-bg) 5px, transparent 6px) repeat-x;
  background-size: 16px 10px;
}
.ticket-receipt::before { top: -5px; }
.ticket-receipt::after { bottom: -5px; transform: rotate(180deg); }
.ticket-head { text-align: center; border-bottom: 1px dashed var(--tk-ink-soft); padding-bottom: 0.9rem; margin-bottom: 0.9rem; }
.ticket-brand { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1rem; }
.ticket-sub { font-size: 0.72rem; color: var(--tk-ink-soft); margin-top: 0.3rem; }
.ticket-empty { color: var(--tk-ink-soft); text-align: center; margin: 0.5rem 0; }
.ticket-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.55rem 0 0.1rem; border-bottom: 1px dotted #c9bfa4; font-size: 0.84rem; }
.ticket-row-main { min-width: 0; }
.ticket-row-name { font-weight: 700; color: var(--tk-ink); }
.ticket-row-name:hover { text-decoration: underline; }
.ticket-row-loc { display: block; font-size: 0.68rem; color: var(--tk-ink-soft); }
.ticket-row-rank { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-note { font-size: 0.76rem; font-style: italic; color: var(--tk-ink-soft); margin: 0.3rem 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px dotted #c9bfa4; }
.ticket-social { margin: 0.3rem 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px dotted #c9bfa4; }
.ticket .social-icon-link { background: var(--tk-card); border-color: var(--tk-ink-soft); color: var(--tk-ink-soft); }
.ticket .social-icon-link:hover { color: var(--tk-accent); border-color: var(--tk-accent); }
.ticket-total { display: flex; justify-content: space-between; border-top: 1px dashed var(--tk-ink-soft); margin-top: 0.9rem; padding-top: 0.8rem; font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---- tear sheet display style ----
   Same reasoning as the other two: a fixed palette and type pairing the
   reviewer chose for this list, independent of the site's own Arial/
   light-dark choices — Georgia serif carries the editorial-magazine feel
   the way the receipt's monospace and the leaderboard's dark ground do. */
.tearsheet {
  --tsheet-bg: #fbfaf7;
  --tsheet-ink: #14120f;
  --tsheet-ink-soft: #55524a;
  --tsheet-accent: #ff4b3e;
  --tsheet-rule: #e4e1d8;
  background: var(--tsheet-bg);
  color: var(--tsheet-ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
}
.tearsheet-masthead { padding: 2rem 1.8rem 1.2rem; border-bottom: 4px solid var(--tsheet-ink); }
.tearsheet-kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; color: var(--tsheet-accent); margin: 0; }
.tearsheet-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 2.1rem; margin: 0.3rem 0 0.4rem; line-height: 1.05; text-wrap: balance; color: var(--tsheet-ink); }
.tearsheet-tagline { color: var(--tsheet-ink-soft); max-width: 50ch; margin: 0; }
.tearsheet-empty { color: var(--tsheet-ink-soft); padding: 1.6rem 1.8rem; margin: 0; }
.tearsheet-list { padding: 1.6rem 1.8rem 0.1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.tearsheet-item { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; border-bottom: 1px solid var(--tsheet-rule); padding-bottom: 1.5rem; }
.tearsheet-item:last-child { border-bottom: none; padding-bottom: 0.5rem; }
.tearsheet-rank { font-family: Georgia, serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--tsheet-accent); font-variant-numeric: tabular-nums; }
.tearsheet-content { display: flex; gap: 1rem; justify-content: space-between; min-width: 0; }
.tearsheet-text { flex: 1; min-width: 0; }
.tearsheet-name { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; margin: 0 0 0.2rem; }
.tearsheet-name a { color: var(--tsheet-ink); }
.tearsheet-name a:hover { text-decoration: underline; }
.tearsheet-meta { font-size: 0.74rem; color: var(--tsheet-ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.5rem; }
.tearsheet-quote { font-family: Georgia, serif; font-style: italic; font-size: 0.96rem; line-height: 1.5; border-left: 3px solid var(--tsheet-accent); padding-left: 0.9rem; margin: 0; color: var(--tsheet-ink); }
.tearsheet-social { margin-top: 0.6rem; }
.tearsheet .social-icon-link { background: var(--tsheet-bg); border-color: var(--tsheet-rule); color: var(--tsheet-ink-soft); }
.tearsheet .social-icon-link:hover { color: var(--tsheet-accent); border-color: var(--tsheet-accent); }
.tearsheet-photo { flex: 0 0 auto; width: 84px; height: 84px; object-fit: cover; border-radius: 4px; }

/* ---- responsive ---- */
@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding: 0.8rem 1.25rem; gap: 0.6rem; }
  .site-nav { flex-wrap: wrap; }
  .field-row { flex-direction: column; }
  .label-row { grid-template-columns: 1fr; }
  .map-with-filter { grid-template-columns: 1fr; }
  .map-filter { flex-direction: row; flex-wrap: wrap; }
  .map-canvas-large { height: 420px; }
  .map-canvas { height: 360px; }
  h1 { font-size: 1.6rem; }
  .ledger-board { padding: 1.1rem 1.1rem 0.2rem; }
  .ledger-row { grid-template-columns: 32px auto 1fr; row-gap: 0.3rem; }
  .ledger-score { grid-column: 3; grid-row: 2; justify-self: start; }
  .ledger-photo { width: 44px; height: 44px; }
  .ledger-rank { font-size: 1.2rem; }
  .ticket { padding: 1.4rem 0.6rem; }
  .ticket-receipt { padding: 1.3rem 1.1rem 1.5rem; }
  .tearsheet-masthead { padding: 1.4rem 1.2rem 1rem; }
  .tearsheet-list { padding: 1.2rem 1.2rem 0.1rem; }
  .tearsheet-item { grid-template-columns: 40px 1fr; }
  .tearsheet-rank { font-size: 1.7rem; }
  .tearsheet-content { flex-direction: column-reverse; }
  .tearsheet-photo { width: 100%; height: 140px; }
}
