:root {
  /* Palette lifted from woodstovefestival.ca — no orange, no warm accents.
     light blue #c8e0ea · grey-blue #7294a0 · green #bac836 · brown #3d2911
     Light-blue header band, then their dark page ground. */
  --hero-bg: #c8e0ea;
  --hero-text: #3d2911;
  --hero-muted: #5a737d;
  --bg: #1c1c1c;          /* page ground */
  --bg-soft: #242424;
  --panel: #262626;       /* cards */
  --panel-2: #2f2f2f;
  --line: rgba(200, 224, 234, .16);
  --text: #c8e0ea;        /* pale blue */
  --muted: #93a7b0;
  --accent: #bac836;      /* their green — used as a fill, never as text */
  --accent-ink: #1c1c1c;  /* ink on green */
  --accent-soft: #93a7b0;
  --lime: #bfd04a;
  --ember: #b8431c;
  --star: #bac836;
  --radius: 14px;
  --sheet-w: 880px;   /* .sheet max width — used to place the carousel arrows */
  --nav-size: 46px;
  --font-sans: "Work Sans", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Permanent Marker", ui-sans-serif, system-ui, cursive;
  --shadow: 0 12px 28px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

/* Class rules like .grid { display: grid } outrank the UA [hidden] rule. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: 54px 24px 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(61, 41, 17, .18);
  background: var(--hero-bg);
  color: var(--hero-text);
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; z-index: 2; }
.hero-glow {
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 200px;
  display: none;
}
.kicker {
  margin: 0 0 8px;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hero-muted);
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 400;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--hero-text);
}
.hero h1 span {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0 .08em;
  border-radius: 6px;
  box-decoration-break: clone;
}
.lede { margin: 14px 0 0; color: var(--muted); max-width: 56ch; }

/* ---------------- tabs ---------------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px 0;
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.tab {
  font-family: var(--font-sans);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12.5px;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.tab.active { color: var(--text); border-color: var(--accent); }
.tab:hover { color: var(--text); }
.filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.filters-toggle svg { width: 13px; height: 13px; }
.filters-toggle.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.fcount {
  min-width: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  font-size: 10.5px;
  line-height: 16px;
  text-align: center;
}
.filters-toggle.on .fcount { background: rgba(0, 0, 0, .22); }

.count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--accent-soft);
  font-size: 11.5px;
  vertical-align: 1px;
}
.tab.active .count { background: var(--accent); color: var(--accent-ink); }

/* ---------------- controls ---------------- */
.controls {
  position: sticky;
  top: 45px;
  z-index: 35;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px 14px;
  background: linear-gradient(var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
}
.controls .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#search {
  flex: 1;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
#search:focus { outline: none; border-color: var(--muted); box-shadow: 0 0 0 3px rgba(90, 115, 125, .18); }
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c8e0ea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 38px 10px 13px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.switch input { accent-color: var(--muted); }
.switch:has(input:checked) {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}
.switch:has(input:checked) input { accent-color: var(--accent-ink); }
button.switch { cursor: pointer; }
button.switch.on { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }

.chips {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(200, 224, 234, .26);
  background: transparent;
  color: #c2d6df;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  white-space: nowrap;
  transition: .12s;
}
.chip:hover { color: var(--text); border-color: #b99f77; }
.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.chip .n { opacity: .6; margin-left: 5px; font-size: 11.5px; }
.chips.minor .chip { font-size: 12px; padding: 4px 11px; }

/* ---------------- grid ---------------- */
main { max-width: 1180px; margin: 0 auto; padding: 8px 24px 80px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .16s, border-color .16s, box-shadow .16s;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 224, 234, .34);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
}
.card-media { position: relative; aspect-ratio: 4 / 3; background: #e9dfcc; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder tile when an act has no photo. */
.monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--mono, #5b3737);
}
.monogram::before { content: none; }
.monogram span {
  position: relative;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .87);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.sheet-hero .monogram span { font-size: 96px; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}
.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.25; letter-spacing: -.005em; font-weight: 600; }
.card .where { color: var(--muted); font-size: 12px; }
.card .when {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  color: var(--accent-soft);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: baseline;
}
.card .when .stage { color: var(--muted); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.follows {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 11px;
  margin-top: 4px;
}
.fol {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: .01em;
}
.fol i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.fol.sp i { background: #1db954; }
.fol.sc i { background: #ff5500; }
.fol b {
  color: #e4eef3;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tag {
  font-size: 10.5px;
  letter-spacing: .02em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(200, 224, 234, .1);
  color: #c8e0ea;
  border: 1px solid rgba(200, 224, 234, .2);
}
.star-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(61, 41, 17, .55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transition: .14s;
}
.star-btn:hover { background: rgba(61, 41, 17, .78); transform: scale(1.06); }
.star-btn.on { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.card.is-starred { border-color: rgba(186, 200, 54, .9); }
.card.is-hidden { opacity: .55; }

/* source badge over the photo */
.src {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(26, 12, 12, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #e6dcd2;
  backdrop-filter: blur(4px);
}
.src.sc { color: #ff9a5c; border-color: rgba(255, 85, 0, .45); }
.src.bc { color: #63c6e0; border-color: rgba(29, 160, 195, .45); }
.src.event { color: #e6dcd2; border-color: rgba(255, 255, 255, .2); }
.src.none { color: #cbb9a8; border-color: rgba(255, 255, 255, .16); }
.src.both { color: #9fd2a8; border-color: rgba(29, 185, 84, .35); }

.stats { display: flex; gap: 18px; flex-wrap: wrap; }
.stats .stat { font-size: 12.5px; color: var(--muted); }
.stats .stat b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }

.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: #b99f77; }
.btn.restore { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }

.inline-link { color: var(--accent-soft); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  border: 1px solid var(--text);
  color: #1c1c1c;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; color: var(--muted); padding: 70px 20px; grid-column: 1 / -1; }

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  /* Deliberately NOT backdrop-filter: a full-viewport blur has to be
     re-composited on every scroll frame, and Chromium/Safari can drop the
     layer for a frame — which shows the page behind and reads as the modal
     flashing away. A flatter scrim is cheaper and flicker-free. */
  background: rgba(8, 8, 8, .74);
}

/* prev / next artist arrows (carousel) */
.nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 130;
  width: var(--nav-size);
  height: var(--nav-size);
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: var(--text);
  background: rgba(36, 36, 36, .92);
  border: 1px solid rgba(200, 224, 234, .22);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  user-select: none;
}
.nav:hover {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  transform: translateY(-50%) scale(1.06);
}
.nav:active { transform: translateY(-50%) scale(.96); }

/* Sit in the middle of the gutter between the sheet and the viewport edge:
   the gap is (100vw - sheet width) / 2 wide, so half of it is / 4. The
   negative margin recentres the button on that point. When the gutter gets
   too narrow the clamp keeps the button flush to the edge instead of
   clipping off-screen. */
.nav.prev {
  left: max(calc(var(--nav-size) / 2), calc((100vw - var(--sheet-w)) / 4));
  margin-left: calc(var(--nav-size) / -2);
}
.nav.next {
  right: max(calc(var(--nav-size) / 2), calc((100vw - var(--sheet-w)) / 4));
  margin-right: calc(var(--nav-size) / -2);
}

/* Below the sheet's max width there is little gutter left to sit in. */
@media (max-width: 919px) {
  .nav { --nav-size: 38px; font-size: 24px; }
}
/* While the sheet is open, drop the many small backdrop-filter layers behind
   it. They're invisible then, but keeping them forces the compositor to keep
   re-blurring a large area while the sheet scrolls. */
body.modal-open .controls,
body.modal-open .star-btn,
body.modal-open .src {
  backdrop-filter: none;
}

.sheet {
  position: relative;  width: min(880px, 100%);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

.sheet-hero { position: relative; aspect-ratio: 16 / 7; background: #e9dfcc; overflow: hidden; }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-soft) 3%, rgba(61, 41, 17, .35) 52%, transparent);
}
.sheet-head { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 24px; z-index: 2; }
.sheet-head h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: 0; font-family: var(--font-display); font-weight: 400; color: var(--text); }
.sheet-head .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.sheet-head .alias {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 62ch;
}
.sheet-head .aka {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-soft);
  margin-right: 6px;
  vertical-align: 1px;
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(61, 41, 17, .6);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.close:hover { background: rgba(61, 41, 17, .9); }

.sheet-body { padding: 20px 24px 28px; display: grid; gap: 22px; }
.sheet-sec h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.times { display: flex; flex-direction: column; gap: 6px; }
.time-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
}
.time-row .day { color: var(--accent-soft); font-weight: 600; min-width: 74px; }
.time-row .clock { font-variant-numeric: tabular-nums; color: var(--text); }
.time-row .stg { color: var(--muted); margin-left: auto; font-size: 13px; }
.show-hint { margin: -2px 0 10px; font-size: 12px; }
.show-star {
  align-self: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  transition: .12s;
}
.show-star:hover { color: var(--text); border-color: rgba(200, 224, 234, .4); background: rgba(200, 224, 234, .08); }
.show-star.on {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}

.bio-text { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; }
.bio-alt { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bio-alt summary { cursor: pointer; color: var(--accent-soft); }

.player-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.player-hint .inline-link { color: var(--text); }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sec-head h4 { margin: 0; }
.mode-toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(200, 224, 234, .07);
  border: 1px solid var(--line);
}
.mode-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 6px;
}
.mode-toggle button:hover { color: var(--text); }
.mode-toggle button.on {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.tracks { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.track-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.track-pill:hover { color: var(--text); border-color: #b99f77; }
.track-pill.on { border-color: var(--accent); color: var(--text); background: rgba(186, 200, 54, .22); }
.track-pill .pop { font-size: 11px; color: var(--muted); }

.embed-frame { border-radius: 12px; overflow: hidden; background: #000; }
.embed-frame iframe { width: 100%; border: 0; display: block; }
.bc-embed { background: #1a1410; }

.sheet-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.act-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Personal actions left, external destinations right. */
.act-group.links {
  margin-left: auto;
  justify-content: flex-end;
}

/* social icon buttons, sized to match .btn */
.soc {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  transition: color .12s, border-color .12s, background .12s, transform .12s;
}
.soc svg { width: 19px; height: 19px; display: block; }
.soc:hover {
  color: var(--text);
  border-color: #b99f77;
  background: var(--panel-2);
  transform: translateY(-1px);
}
.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.btn:hover { border-color: #b99f77; }
.btn.starred { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }

/* ---------------- schedule ---------------- */
.schedule { margin-top: 14px; }
.sched-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.sched-head h2 { margin: 0; font-size: 24px; font-family: var(--font-display); font-weight: 400; }
.sched-head .sub { color: var(--muted); font-size: 13px; }
.sched-day { margin: 22px 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sched-list { display: flex; flex-direction: column; gap: 8px; }
.sched-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.sched-item .t { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.sched-item .t small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.sched-item .nm { font-weight: 600; }
.name-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.multi-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  white-space: nowrap;
}
.sched-item.multi {
  border-color: rgba(186, 200, 54, .9);
}
.sched-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.sched-name:hover { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.sched-item .st { color: var(--muted); font-size: 12.5px; }
.sched-item.conflict { border-left: 3px solid var(--muted); background: var(--panel-2); }
.sched-item .star-btn {
  position: static;
  width: 32px;
  height: 32px;
  background: transparent;
  border-color: var(--line);
}
.sched-item.removed { opacity: .65; }

.sched-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.mini-btn {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  transition: .12s;
}
.mini-btn:hover { color: var(--text); border-color: #b99f77; background: rgba(255, 255, 255, .03); }
.mini-btn.keep { color: var(--text); border-color: var(--text); font-weight: 600; }
.mini-btn.keep:hover { background: rgba(61, 41, 17, .07); border-color: var(--text); }

.sched-removed {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sched-removed summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
}
.sched-removed summary:hover { color: var(--text); }
.clash { color: var(--text); font-weight: 700; }
.conflict-note { color: var(--text); font-size: 12px; font-weight: 600; }
.sched-empty { color: var(--muted); text-align: center; padding: 60px 20px; }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.foot p { margin: 0; }

/* ---------- print ---------- */
.print-head { display: none; }

@media print {
  :root {
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --panel: #ffffff;
    --panel-2: #ffffff;
    --line: #d5d5d5;
    --text: #111111;
    --muted: #555555;
    --accent: #a3541c;
    --accent-soft: #8a4b16;
    --star: #8a4b16;
  }

  @page {
    margin: 16mm 14mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  /* Chrome: navigation, filters, hero, players, buttons, footer. */
  .hero,
  .tabs,
  #controls,
  .foot,
  .nav,
  #modal,
  .toast,
  #grid,
  .sched-actions,
  .sched-removed,
  #ics,
  #print-sched,
  .sched-empty .btn {
    display: none !important;
  }

  .print-head {
    display: block;
    margin: 0 0 18px;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
  }
  .print-head h1 {
    margin: 0 0 3px;
    font-size: 22px;
    letter-spacing: -0.01em;
  }
  .print-head p {
    margin: 0;
    font-size: 12px;
    color: #555;
  }

  main {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Always print the schedule, whichever tab is on screen. */
  #schedule {
    display: block !important;
    margin: 0;
  }

  .sched-head {
    display: block;
    margin: 0 0 10px;
  }
  .sched-head h2 {
    /* The print header already names the page; keep only the summary line. */
    display: none;
  }
  .sched-head .sub {
    font-size: 12px;
    color: #555;
  }

  .sched-day {
    margin: 16px 0 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #111;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
    break-after: avoid;
  }

  .sched-list {
    gap: 5px;
  }

  .sched-item {
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 6px 10px;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    break-inside: avoid;
  }
  .sched-item.conflict {
    border-color: #b4552f !important;
    border-left-width: 4px !important;
    background: #fff !important;
  }

  .sched-item .t {
    color: #111;
    font-size: 13px;
  }
  .sched-item .t small,
  .sched-item .st {
    color: #555;
    font-size: 11px;
  }
  .sched-name {
    color: #111;
    font-size: 13px;
  }
  .multi-badge {
    background: #fff !important;
    color: #8a4b16 !important;
    border-color: #8a4b16 !important;
  }
  .sched-item.multi {
    background-image: none !important;
  }
  .conflict-note {
    color: #a33;
    font-size: 11px;
  }
  .clash {
    color: #a33;
  }

  .sched-empty {
    padding: 20px 0;
    color: #555;
  }
}

@media (max-width: 700px) {
  .filters-toggle {
    display: inline-flex;
    align-self: center;
    flex: 0 0 auto;
    padding: 4px 10px;
    font-size: 11.5px;
  }
  .tabs { gap: 2px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 8px; font-size: 11.5px; letter-spacing: .05em; }

  /* Sheet actions: let everything flow left instead of two opposite-aligned
     blocks, and shrink the buttons so more than two fit per row. */
  .sheet-actions { gap: 8px; }
  .act-group { gap: 8px; }
  .act-group.links {
    margin-left: 0;
    justify-content: flex-start;
  }
  .sheet-actions .btn {
    padding: 7px 10px;
    font-size: 12.5px;
    gap: 5px;
  }
  .soc { width: 34px; height: 34px; border-radius: 9px; }
  .soc svg { width: 17px; height: 17px; }
  .mode-toggle button { padding: 3px 8px; font-size: 11px; }
  .track-pill { padding: 6px 9px; font-size: 12px; gap: 5px; }
  .show-star { width: 26px; height: 26px; }
  /* Filters start collapsed so the cards get the vertical space. */
  #controls { display: none; }
  body.filters-open #controls { display: block; }
}

@media (max-width: 640px) {
  .hero { padding: 38px 18px 30px; }
  .tabs, .controls { padding-left: 18px; padding-right: 18px; }
  main { padding: 4px 18px 70px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card h3 { font-size: 14.5px; }
  .sheet-head { padding: 14px 16px; }
  .sheet-body { padding: 16px; }
  .sched-item { grid-template-columns: 92px 1fr; }
  .sched-item .st { grid-column: 2; }
  .sched-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
