/* Show Scout — ticket-stub cards on a marquee-night palette. Mobile first; dark and light; no web fonts. */
:root {
  --bg: #f7f2e9;
  --surface: #fffdf8;
  --surface-2: #f0e7d7;
  --ink: #1d1a24;
  --muted: #5d5568;
  --line: #e0d4c0;
  --accent: #a86f0a;
  --accent-soft: #f6e2b8;
  --accent-ink: #ffffff;
  --hot: #c2442c;
  --good: #1d7351;
  --good-soft: #d9f0e5;
  --warn: #8f5500;
  --bad: #b3261e;
  --info: #2d58b0;
  --focus: #2d58b0;
  --shadow: 0 1px 2px rgb(40 30 10 / 8%), 0 6px 18px rgb(40 30 10 / 7%);
  --radius: 16px;
  --series-sg: #a86f0a; /* chart: SeatGeek line (validated with --series-tm for colour-blind separation) */
  --series-tm: #2d58b0; /* chart: Ticketmaster line */
  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16121f; --surface: #211b2e; --surface-2: #2c2540; --ink: #f4efe6; --muted: #b9b0c8; --line: #3b3252;
    --accent: #f6c453; --accent-soft: #3c3220; --accent-ink: #1b1405; --hot: #ff8a6b; --good: #63d6a8; --good-soft: #1f3a32;
    --warn: #ffbf5e; --bad: #ff7b7b; --info: #9dbbff; --focus: #f6c453; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
    --series-sg: #bd8519; --series-tm: #5b7fd6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16121f; --surface: #211b2e; --surface-2: #2c2540; --ink: #f4efe6; --muted: #b9b0c8; --line: #3b3252;
  --accent: #f6c453; --accent-soft: #3c3220; --accent-ink: #1b1405; --hot: #ff8a6b; --good: #63d6a8; --good-soft: #1f3a32;
  --warn: #ffbf5e; --bad: #ff7b7b; --info: #9dbbff; --focus: #f6c453; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  --series-sg: #bd8519; --series-tm: #5b7fd6;
  color-scheme: dark;
}

* { 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.45 var(--text);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); font-stretch: condensed; letter-spacing: 0.01em; line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: 1.85rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 10px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--display); font-stretch: condensed; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; }
.brand b { color: var(--accent); font-weight: 850; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.city-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 58%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 0.85rem var(--text); cursor: pointer; white-space: nowrap; overflow: hidden;
}
.city-chip span { overflow: hidden; text-overflow: ellipsis; }
.city-chip .ic { width: 15px; height: 15px; flex: none; color: var(--accent); }

main { max-width: 680px; margin: 0 auto; padding: 16px 16px 24px; outline: none; }
main:focus, main:focus-visible { outline: none; }
.loading, .empty { color: var(--muted); text-align: center; padding: 32px 8px; }
.empty .btn { margin-top: 8px; }

/* bottom tabs */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 600; min-height: 56px; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 45%, transparent)); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: 700 0.98rem var(--text); text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn-quiet { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-go { width: 100%; margin-top: 12px; font-size: 1.05rem; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-icon { background: transparent; color: var(--muted); border-color: var(--line); padding: 8px; min-width: 44px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: 600 0.92rem var(--text); cursor: pointer; padding: 8px 6px; min-height: 40px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 0.9rem var(--text); cursor: pointer;
}
.chip .ic { width: 15px; height: 15px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip.on.hard { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); border-color: var(--bad); }
.chip small { font-weight: 600; color: var(--muted); }
.chip.removable { padding-right: 4px; cursor: default; }
.chip-x { display: inline-flex; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 999px; }
.chip-x .ic { width: 14px; height: 14px; }
.days .chip { min-width: 54px; justify-content: center; }

/* panels and forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.panel.danger { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.panel.admin { border-style: dashed; }
.hint { color: var(--muted); font-size: 0.92rem; }
.fine { color: var(--muted); font-size: 0.82rem; text-align: center; margin-top: 14px; }
.label { font-weight: 700; margin: 12px 0 4px; font-size: 0.92rem; }
.current { font-size: 0.95rem; }
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="date"], select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 1rem var(--text);
}
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.row-form input[type="text"], .row-form input[type="date"] { flex: 1 1 160px; width: auto; }
.stack-form { display: grid; gap: 8px; margin-top: 8px; }
.stack-form label { font-weight: 650; font-size: 0.92rem; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.results { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.result { width: 100%; text-align: left; display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font: 1rem var(--text); }
.result span { color: var(--muted); font-size: 0.85rem; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 6px 0; }
ul.links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.links li:last-child { border-bottom: 0; }

/* setup */
.hero { padding: 8px 0 12px; }
.hero h1 { font-size: 2.2rem; }
.hero p { color: var(--muted); font-size: 1.02rem; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.steps li { flex: 1; font-size: 0.8rem; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li.on { color: var(--ink); border-color: var(--accent); }
.steps li.done { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.wizard-nav { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 10px; align-items: center; }
.wizard-nav .btn-go { grid-column: 1 / -1; }
.venue-list { display: grid; gap: 4px; margin: 6px 0 14px; }
.venue { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.venue:last-child { border-bottom: 0; }

/* feed */
.feed-head h1 { margin-bottom: 2px; }
.summary { color: var(--muted); font-weight: 600; }
.filters { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 10px 0 14px; }
.select select { min-height: 42px; font-size: 0.92rem; padding: 8px 10px; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 0.92rem; }
.note .linkbtn { padding: 0 2px; min-height: 0; }
.cards { display: grid; gap: 14px; }

.card {
  position: relative; display: grid; grid-template-columns: 64px 1fr; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
/* the perforation between stub and body, with notches */
.card::before, .card::after {
  content: ""; position: absolute; left: 56px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); z-index: 1;
}
.card::before { top: -9px; }
.card::after { bottom: -9px; }
.stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 12px 4px;
  background: var(--surface-2); border-right: 2px dashed var(--line); font-family: var(--display); font-stretch: condensed; text-transform: uppercase;
}
.stub .dow, .stub .mon { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.stub .day { font-size: 1.9rem; font-weight: 850; line-height: 1; }
.card.band-top .stub { background: var(--accent); color: var(--accent-ink); }
.card.band-top .stub .dow, .card.band-top .stub .mon { color: var(--accent-ink); opacity: 0.85; }
.card.band-good .stub { background: var(--good-soft); }
.card.is-going { border-color: var(--good); }
.body { padding: 12px 14px 10px; min-width: 0; }
.meta-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.badge { display: inline-block; font: 800 0.7rem var(--text); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.badge.band-top { background: var(--accent); color: var(--accent-ink); }
.badge.band-good { background: var(--good-soft); color: var(--good); }
.badge.band-maybe { background: var(--surface-2); color: var(--muted); }
.badge.new { background: var(--hot); color: #fff; }
.badge.mark-going { background: var(--good-soft); color: var(--good); }
.badge.mark-interested { background: var(--accent-soft); color: var(--ink); }
.cat { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.title { font-size: 1.2rem; margin: 2px 0 4px; overflow-wrap: anywhere; }
.where { display: flex; align-items: flex-start; gap: 4px; margin: 0 0 2px; color: var(--muted); font-size: 0.9rem; }
.where span { min-width: 0; }
.where .ic { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.price { margin: 2px 0 0; font-weight: 700; font-size: 0.92rem; }
.why { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; font-size: 0.88rem; }
.why li { padding-left: 18px; position: relative; }
.why li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.why li.why-warn::before { background: var(--warn); }
.why li.why-warn { color: var(--warn); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }
.tag-good { color: var(--good); }
.tag-hot { color: var(--hot); }
.tag-warn { color: var(--warn); }
.tag-bad { color: var(--bad); }
.tag-info { color: var(--info); }
.more-dates { margin-top: 8px; font-size: 0.88rem; }
.more-dates summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0; min-height: 36px; }
.more-dates ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.more-dates li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 6px 8px; border-radius: 10px; background: var(--bg); }
.opt-when { font-weight: 700; }
.opt-where { grid-column: 1; color: var(--muted); }
.opt-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; }
.actions { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 6px; }
.more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.more .btn-icon { gap: 6px; font: 600 0.84rem var(--text); color: var(--muted); padding: 8px 12px; }
.btn-mark { min-height: 42px; padding: 8px 6px; font-size: 0.84rem; background: var(--surface-2); color: var(--ink); border-color: var(--line); white-space: nowrap; }
.btn-mark .ic { width: 16px; height: 16px; flex: none; }
.btn-mark.on.mark-interested { background: var(--accent-soft); border-color: var(--accent); }
.btn-mark.on.mark-going { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.btn-mark.mark-dismissed { color: var(--muted); }
.btn-link { min-height: 40px; padding: 8px 14px; font-size: 0.86rem; }
.btn-link .ic, .btn-icon .ic, .linkbtn .ic { width: 16px; height: 16px; }
.linkbtn .ic { vertical-align: -3px; margin-left: 4px; }

.suggest { background: var(--surface); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 14px 16px; }
.suggest ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.suggest li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }

/* my shows */
.mine-row { display: grid; gap: 2px; border-bottom: 1px solid var(--line); padding: 10px 0 !important; }
.mine-row:last-child { border-bottom: 0; }
.mine-text { display: grid; gap: 2px; }
.mine-text .tag { justify-self: start; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: -6px; }

/* sources */
.table-wrap { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.status { font-weight: 700; }
.st-ok, .st-quiet { color: var(--good); }
.st-error, .st-blocked { color: var(--bad); }
.st-waiting, .st-never { color: var(--muted); }
.err { color: var(--bad); }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.prose h2 { margin-top: 18px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
pre { background: var(--bg); padding: 10px 12px; border-radius: 10px; overflow-x: auto; }

/* toast and sheet */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 560px); padding: 10px 14px; border-radius: 12px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: 0.92rem;
}
.toast .linkbtn { color: var(--bg); text-decoration: underline; }
.sheet {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgb(10 6 18 / 55%); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }

/* ticket price watch */
.top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-right .city-chip { max-width: min(58vw, 300px); }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.bell svg { width: 21px; height: 21px; fill: currentColor; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--hot); color: #fff; font: 700 0.7rem/19px var(--text); text-align: center; }
.btn-watch.on { color: var(--good); border-color: var(--good); }
.money-input { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.money-input input { flex: 1; }
.w-styles { border: 0; padding: 0; margin: 6px 0 2px; display: grid; gap: 6px; }
.w-styles legend { font-weight: 650; font-size: 0.92rem; padding: 0; margin-bottom: 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.radio span { display: grid; gap: 1px; }
.radio small { color: var(--muted); font-size: 0.82rem; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.w-phone .hint .ic, .tag .ic { width: 13px; height: 13px; vertical-align: -2px; }
.fine.left { text-align: left; }
.w-show { margin: 4px 0 6px; }
.crumbs { margin: 0 0 6px; font-size: 0.92rem; }
.watch-list li { padding: 0; }
.watch-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.watch-row.off { opacity: 0.7; }
.w-main { display: grid; gap: 2px; min-width: 0; align-content: start; }
.w-main .tags { margin-top: 4px; }
.w-title { overflow-wrap: anywhere; }
.w-side { display: grid; gap: 2px; align-content: start; justify-items: end; text-align: right; flex: none; max-width: 48%; }
.w-price { margin: 0; }
.w-price b { font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.w-price.muted { color: var(--muted); font-size: 0.9rem; }
.w-sources { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0; font-size: 0.93rem; }
.w-sources dt { font-weight: 700; }
.w-sources dd { margin: 0; }
.w-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.alert-list .alert-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.alert-list .alert-item:last-child { border-bottom: 0; }
.alert-item h3 { font-size: 1.02rem; }
.alert-item.unread h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--hot); vertical-align: 2px; }
.alert-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.watch-cta .btn { gap: 6px; }
/* price history chart */
.chart { margin: 0; }
.chart-box { position: relative; }
.chart-svg { display: block; max-width: 100%; height: auto; touch-action: pan-y; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-tick { fill: var(--muted); font: 11px var(--text); }
.chart-label { fill: var(--ink); font: 600 11px var(--text); }
.chart-label.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.sg { stroke: var(--series-sg); }
.chart-line.tm { stroke: var(--series-tm); }
.chart-dot { stroke: var(--surface); stroke-width: 2; }
.chart-dot.sg { fill: var(--series-sg); }
.chart-dot.tm { fill: var(--series-tm); }
.chart-target { stroke: var(--good); stroke-width: 1.5; }
.chart-cross { stroke: var(--muted); stroke-width: 1; }
.chart-tip { position: absolute; top: 4px; width: 170px; padding: 6px 8px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 0.8rem; pointer-events: none; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 0 0 6px; color: var(--muted); font-size: 0.85rem; }
.swatch { display: inline-block; width: 16px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.swatch.sg { background: var(--series-sg); }
.swatch.tm { background: var(--series-tm); }
.swatch-target { background: var(--good); }
.chart-table summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 8px 0; }
.chart-empty { margin: 0; }

/* SWFL venues (curated, by county then city) and one venue's page */
.tag-curated { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.swfl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 10px; }
.swfl-cta .btn .ic { width: 16px; height: 16px; }
.venue-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.venue-link:hover, .venue-link:focus-visible { text-decoration: underline; }
.jump { margin: 0 0 14px; }
.county { scroll-margin-top: 76px; }
.county > .hint { margin-bottom: 4px; }
.city-group h3 { margin: 12px 0 0; font-family: var(--text); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cv-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cv-list li:last-child { border-bottom: 0; }
.cv-text { display: grid; gap: 4px; min-width: 0; flex: 1 1 180px; }
.cv-name { color: var(--ink); font-weight: 700; font-size: 1.02rem; text-decoration: none; overflow-wrap: anywhere; }
.cv-name:hover, .cv-name:focus-visible { color: var(--accent); text-decoration: underline; }
.cv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--muted); font-size: 0.86rem; }
.cv-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.88rem; }
.btn-small .ic { width: 15px; height: 15px; }
.crumbs { margin: 0 0 6px; font-size: 0.9rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.venue-head { margin-bottom: 6px; }
.venue-head h1 { margin-bottom: 6px; overflow-wrap: anywhere; }
.venue-head .row-actions { margin: 8px 0 4px; gap: 8px; }
.row-actions.center { justify-content: center; margin-left: 0; gap: 8px; }
.row-actions.btns { margin-left: 0; gap: 8px; }

@media (min-width: 720px) {
  .card { grid-template-columns: 80px 1fr; }
  .card::before, .card::after { left: 72px; }
  .stub .day { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .btn, .chip { transition: background-color 0.15s ease, border-color 0.15s ease; }
}
