/* Band site: built for phones on a dark stage first, daylight second. */
:root {
  --bg: #f4f1ea; --surface: #ffffff; --panel: #ece8df; --line: #d9d2c4; --ink: #1b1712; --muted: #6d655a;
  --accent: #a8620a; --accent-ink: #fff; --accent-soft: rgba(168, 98, 10, .12); --chord: #9a4f00; --head: #2d5d7c;
  --good: #2c7a4b; --warn: #a8620a; --bad: #b03f36; --bar: #1b1712; --bar-ink: #f4f1ea;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Roboto Mono", "Consolas", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0c0a; --surface: #181512; --panel: #221e19; --line: #342d25; --ink: #f1ead9; --muted: #a59a88;
    --accent: #f0a93b; --accent-ink: #1a1206; --accent-soft: rgba(240, 169, 59, .14); --chord: #ffb54a; --head: #7fc0e6;
    --good: #67c48e; --warn: #f0a93b; --bad: #ef7f74; --bar: #060505; --bar-ink: #f1ead9; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0c0a; --surface: #181512; --panel: #221e19; --line: #342d25; --ink: #f1ead9; --muted: #a59a88;
  --accent: #f0a93b; --accent-ink: #1a1206; --accent-soft: rgba(240, 169, 59, .14); --chord: #ffb54a; --head: #7fc0e6;
  --good: #67c48e; --warn: #f0a93b; --bad: #ef7f74; --bar: #060505; --bar-ink: #f1ead9; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); min-height: 100vh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Dropdown lists: some browsers draw the open list on white no matter the theme, so give the choices their own colors. */
select option, select optgroup { background-color: var(--surface); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }

.top { position: sticky; top: 0; z-index: 10; background: var(--bar); color: var(--bar-ink); padding: calc(env(safe-area-inset-top) + 10px) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 10px; min-height: 54px; }
.top h1 { margin: 0; font: 700 22px/1.1 var(--display); letter-spacing: .02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top h1 small { display: block; font: 500 12px/1.3 var(--body); color: #b9ae9b; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }   /* the line under the title wraps rather than being cut off */
.top h1.tight { font-size: 23px !important; }   /* app.js: the title didn't fit at full size */
.top h1.tighter { font-size: 19px !important; }
.top h1.wrap { white-space: normal; overflow-wrap: anywhere; }
.top .back { border: 0; background: rgba(255,255,255,.1); color: inherit; width: 38px; height: 38px; border-radius: 10px; font-size: 20px; cursor: pointer; flex: none; }
.offline { font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; background: #5a4a2a; color: #ffd793; border-radius: 999px; padding: 3px 9px; flex: none; }

main { padding: 14px max(16px, env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); max-width: 760px; margin: 0 auto; }
.tabs { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; background: var(--bar); padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); gap: 2px; }
.tabs button { flex: 1; border: 0; background: transparent; color: #a59a88; font: 600 12px var(--body); padding: 6px 2px 5px; border-radius: 10px; cursor: pointer; display: grid; justify-items: center; gap: 2px; min-width: 0; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--bar-ink); background: rgba(255,255,255,.08); }
.tabs button[aria-current="page"] svg { color: var(--accent); }
.tabs .badge { position: absolute; }

.h2 { font: 700 15px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 18px 0 8px; }
.h2:first-child { margin-top: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.list { display: grid; gap: 10px; }
.muted { color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; display: grid; gap: 6px; }
.empty b { color: var(--ink); font-size: 17px; }

.show { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
.date { display: grid; justify-items: center; align-content: start; line-height: 1; padding-top: 2px; border-right: 1px solid var(--line); padding-right: 10px; }
.date em { font-style: normal; font: 700 12px var(--display); letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.date b { font: 700 28px var(--display); }
.date i { font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.date small { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.show h3 { margin: 0; font: 700 20px/1.15 var(--display); }
.show .where { color: var(--muted); font-size: 14.5px; }
.times { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; margin-top: 4px; }
.actname { font-weight: 700; font-size: 14.5px; margin-top: 8px; }
.actrow { padding: 12px; margin: 8px 0; box-shadow: none; }
#es-acts > .hint { display: block; margin-bottom: 4px; }
.times span b { font-weight: 600; }
.note { white-space: pre-wrap; background: var(--panel); border-radius: 10px; padding: 9px 11px; font-size: 14.5px; margin: 4px 0 0; }
.row2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 14px; cursor: pointer; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.sm { padding: 6px 11px; font-size: 14px; }
.btn:disabled { opacity: .5; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--panel); color: var(--muted); white-space: nowrap; }
.pill.acc { background: var(--accent-soft); color: var(--accent); }

.search { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 13px; font-size: 16px; }
.songs { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.song { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; width: 100%; }
.song:last-child { border-bottom: 0; }
.song .n { font: 700 18px var(--display); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.song .t { min-width: 0; }
.song .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .t span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .k { text-align: right; font-size: 13px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.song .k small { display: block; font-weight: 500; color: var(--muted); }
.song.nolead { grid-template-columns: minmax(0, 1fr) auto; }
.brk { padding: 8px 12px; background: var(--accent-soft); color: var(--accent); font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.brk span { font: 500 13px var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 6px; }
.lnote { padding: 8px 12px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); font-style: italic; }

/* Chart view */
.chartwrap { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: grid; grid-template-rows: auto auto 1fr auto; }
.chartbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.chartbar .lab { font-weight: 700; color: var(--accent); }
.seg { display: inline-flex; background: var(--panel); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 9px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.chart { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px max(14px, env(safe-area-inset-right)) 40vh max(14px, env(safe-area-inset-left)); font-family: var(--mono); white-space: pre; line-height: 1.38; }
.chart .h { display: inline-block; font: 700 19px/1.3 var(--display); color: var(--head); letter-spacing: .04em; margin-top: .5em; }   /* section headings: one size on every song, whatever the chart's text size */
.chart .c { color: var(--chord); font-weight: 700; }
.chart .songnote { white-space: pre-wrap; font-family: var(--body); font-size: 14px; color: var(--muted); background: var(--panel); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; max-width: 60ch; }
.chart .mynote { display: block; width: 100%; max-width: 60ch; text-align: left; white-space: pre-wrap; font: inherit; font-family: var(--body); font-size: 15px; line-height: 1.4; color: var(--ink); background: rgba(240,169,59,.12); border: 1px solid var(--accent); border-left-width: 4px; border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; cursor: pointer; }
.chart .mynote small { display: block; font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.chartwrap .top .find.has { color: var(--accent); }
.song .notemark { display: inline-block; vertical-align: -3px; margin-left: 4px; color: var(--accent); }
.song .notemark svg { width: 14px; height: 14px; }
.mynotetext { width: 100%; min-height: 40vh; box-sizing: border-box; font: inherit; font-size: 17px; line-height: 1.45; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; }
.notesheet .row2 { align-items: center; justify-content: space-between; }
#ctop h1 small .who.pick { font: inherit; color: #f1c27b; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.verlist { display: grid; gap: 8px; }
.verrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.verrow.on { border-color: var(--accent); background: rgba(240,169,59,.12); }
.verrow .t { display: grid; gap: 2px; min-width: 0; }
.verrow .t b { font-size: 16px; }
.verrow .t b em { font-style: normal; font: 700 10.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.verrow .t span { font-size: 13px; color: var(--muted); }
.verrow .k { font: 700 20px var(--display); text-align: right; display: grid; }
.verrow .k small { font: 500 11.5px var(--body); color: var(--muted); }
.chart .notesview { font-family: var(--body); display: grid; gap: 14px; max-width: 60ch; }
.chart .notesview .mynote.big { font-size: clamp(18px, 2.6vh, 26px); line-height: 1.45; padding: 14px 16px; margin: 0; }
.chart .notesview .empty { text-align: left; }
.switchrow.notesfirst { margin-top: 10px; }
.chartfoot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--surface); }
.chartfoot .btn { justify-content: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 8px; }
.chartfoot .btn span { overflow: hidden; text-overflow: ellipsis; }
.play { width: 54px; height: 46px; justify-content: center; }
.play.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sizebtn { width: 34px; height: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; font-weight: 700; }

.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; }
.opt b { display: block; }
.opt span { font-size: 14px; color: var(--muted); }
.demo { font-family: var(--mono); white-space: pre; font-size: 13px; background: var(--panel); border-radius: 8px; padding: 6px 8px; margin-top: 6px; color: var(--ink); overflow-x: auto; }
.demo .c { color: var(--chord); font-weight: 700; }

.paytot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.paytot .card { align-content: start; }
.paytot .card b { font: 700 28px var(--display); display: block; }
.paytot .card small { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.payrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.payrow:last-child { border-bottom: 0; }
.payrow span { color: var(--muted); font-size: 13.5px; }
.payrow .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.payrow .st { text-align: right; font-size: 12.5px; }
.payrow .st.due { color: var(--warn); font-weight: 600; }

.field { display: grid; gap: 4px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.f { display: grid; gap: 4px; min-width: 0; }
.f > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.f input, .f select, .f textarea, .inline-input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 11px; font-size: 16px; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .seg button { font-size: 14px; }
.checks { display: grid; gap: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.rowbtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--surface); color: var(--ink); width: min(560px, calc(100% - 20px)); max-height: calc(100vh - 30px); }
.dialog::backdrop { background: rgba(0,0,0,.55); }
.dialog .dbody { padding: 16px; display: grid; gap: 12px; }
.btn.danger { color: var(--bad); }
.btn.danger.armed { background: var(--bad); color: #fff; }
.btn.quiet { background: transparent; }

.bsb-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); background: #000; color: #f3ede2; border-radius: 12px; padding: 10px 16px; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.3); z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.bsb-auth { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--bg); overflow-y: auto; }
.bsb-auth-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: grid; gap: 12px; }
.bsb-auth-brand { display: grid; line-height: 1; }
.bsb-auth-brand b { font: 700 30px var(--display); letter-spacing: .03em; }
.bsb-auth-brand span { font: 600 12px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.bsb-auth h1 { margin: 6px 0 0; font: 700 24px var(--display); }
.bsb-auth label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bsb-auth input { font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.bsb-auth input:focus { outline: none; border-color: var(--accent); }
.bsb-auth-hint { margin: 0; color: var(--muted); font-size: 14.5px; }
.bsb-auth-msg { margin: 0; font-size: 14.5px; }
.bsb-auth-msg.err { color: var(--bad); }
.bsb-auth-go { border: 0; background: var(--accent); color: var(--accent-ink); font: 700 17px var(--body); padding: 12px; border-radius: 12px; cursor: pointer; }
.bsb-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.bsb-auth-links button { border: 0; background: none; color: var(--accent); font: 600 14.5px var(--body); cursor: pointer; padding: 4px 0; }

@media (min-width: 900px) {
  .tabs { top: 0; bottom: 0; right: auto; width: 92px; flex-direction: column; justify-content: flex-start; padding-top: max(70px, env(safe-area-inset-top)); }
  .tabs button { flex: none; padding: 10px 2px; }
  body { padding-left: 92px; }
  .top { padding-left: 20px; }
  main { padding-bottom: 40px; }
  .bsb-toast { bottom: 24px; }
}
@media print {
  .top, .tabs, .chartbar, .chartfoot { display: none !important; }
  .chartwrap { position: static; }
  .chart { overflow: visible; padding: 0; }
}
button.payrow { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.payrow:last-child { border-bottom: 0; }
button.payrow:active { background: var(--line); }
.payrow .who { color: var(--accent); font-size: 12.5px; text-align: right; font-weight: 600; }
.payrow.me { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.payrow.total { font-weight: 700; }
.payrow.total span { color: inherit; font-size: inherit; }
.for-shows { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.for-shows b { color: var(--ink); font-weight: 600; }

/* Auto-scroll speed: − ▶ + with the song's speed when it isn't 100% */
.scrollctl { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.scrollctl .sizebtn { width: 38px; height: 40px; font-size: 20px; line-height: 1; }

/* Two-column charts (iPad and wider): flows like a book, pages turn sideways */
.colsw button { font-size: 12.5px; }
@media (max-width: 699px) { .colsw { display: none !important; } }
.chart.cols2 { overflow: hidden; white-space: normal; padding-bottom: 14px; }
.chart.cols2 .cols { height: 100%; column-count: 2; column-gap: 32px; column-fill: auto; column-rule: 1px solid var(--line); }
.chart.cols2 .cols > div, .chart.cols2 .sec > div, .chart.cols2 .pair > div { white-space: pre; }
.chart.cols2 .sec { margin-bottom: .55em; }
.chart.cols2 .sec > .h { break-after: avoid; }
.chart.cols2 .pair { break-inside: avoid; }
.chart.cols2 .h { display: block; margin-top: 0; }
.chart.cols2 .songnote, .chart.cols2 .mynote { break-inside: avoid; }

/* While a chart is open: nothing behind it scrolls or shows through at the top of the screen. */
html { background: var(--bar); }
html.chart-open, html.chart-open body { overflow: hidden; height: 100%; }
html.chart-open body { background: var(--bar); }
.chartwrap { overscroll-behavior: none; }
.chartwrap .chart { overscroll-behavior: contain; }

/* Chart header: bigger title, key and capo, easy to read from a mic stand. */
#ctop { align-items: center; }
#ctop h1 { font-size: 27px; line-height: 1.08; white-space: normal; overflow: visible; }
#ctop h1 .ttl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#ctop h1 small { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 16px; line-height: 1.25; }
#ctop h1 small .who { color: #b9ae9b; font-weight: 500; }
#ctop h1 small .kc { color: #f1c27b; font-weight: 700; }
#ctop .back { width: 44px; height: 44px; font-size: 24px; }
#ctop .pill { font-size: 14px; padding: 4px 11px; }
@media (min-width: 700px) {
  #ctop { min-height: 70px; }
  #ctop h1 { font-size: 36px; }
  #ctop h1 small { font-size: 20px; }
}

.chartfoot .btn.play { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 64px; height: 48px; padding: 4px 10px; line-height: 1; }
.chartfoot .btn.play small { font-size: 10.5px; font-weight: 700; color: var(--accent); margin-top: 1px; }
.chartfoot .btn.play.on small { color: inherit; }
#pageno { display: inline-flex; align-items: center; gap: 6px; }
.pgbtn { width: 34px; height: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1; }
.pgbtn:disabled { opacity: .35; cursor: default; }

/* Keep the chart's title, singer, key and capo clear of the blur iOS draws under the status bar. */
#ctop { padding-top: calc(env(safe-area-inset-top) + 10px); padding-bottom: 12px; }

/* Quick repeated taps (speed − / +, A− / A+, page buttons) shouldn't trigger double-tap zoom.
   Pinch-to-zoom still works. */
html, body, button, .btn, a { touch-action: manipulation; }
.chartwrap, .chartwrap .chart { touch-action: pan-y; }   /* no browser pinch-zoom on a chart; the pinch resizes the text instead */
.song.current { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
/* Safety net: nothing on a band-site page can push it wider than the screen. */
#main { min-width: 0; max-width: 100%; overflow-x: clip; }
/* Setlist group picker: scrolls sideways inside itself on narrow phones instead of widening the page. */
.seg.grp { display: flex; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.seg.grp button { white-space: nowrap; flex: none; }
/* Songs: sort buttons and tag filter under the search box. */
.libbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; min-width: 0; }
.libbar #libtag { flex: 1 1 160px; width: auto; min-width: 0; max-width: 100%; }
.seg.jump { margin: 6px 0 2px; }
.h2 small { font: 600 12px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.h2[id^="sec"] { scroll-margin-top: calc(env(safe-area-inset-top) + 76px); }
.libbar .dirbtn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Key: ♭ / ♯ move the song a half step; Reset goes back to the original key. */
.keyctl { display: inline-flex; align-items: center; gap: 4px; }
.keyctl .sizebtn { font-size: 17px; }
.keyctl .sizebtn:disabled { opacity: .4; }
.keylab { min-width: 46px; text-align: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.keylab small { font-size: 11px; margin-left: 2px; vertical-align: super; color: var(--accent); }
.keylab.moved { color: var(--accent); }
.keyctl .reset { display: inline-grid; place-items: center; color: var(--accent); }
/* Chart controls stay on one line: view, key, text size. Tighter on phones; scrolls sideways only if a screen is too narrow. */
.chartbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chartbar::-webkit-scrollbar { display: none; }
@media (max-width: 420px) { .chartbar .seg button { padding: 5px 6px; font-size: 12.5px; letter-spacing: -.01em; } .chartbar { gap: 6px; } .chartbar .sizes { display: none; } }   /* phones: pinch to resize; the bar then fits */
.chartbar > * { flex: none; }
.chartbar #pageno:empty { display: none; }
.sizes { display: inline-flex; gap: 4px; }
.chartbar .keyctl { margin-right: auto; }
@media (max-width: 699px) {
  .chartbar { gap: 5px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .chartbar .seg { padding: 2px; gap: 0; }
  .chartbar .seg button { padding: 6px 6px; font-size: 12.5px; }
  .chartbar .sizebtn { width: 28px; height: 32px; font-size: 13px; }
  .keyctl .sizebtn { font-size: 16px; }
  .sizes { gap: 2px; }
  .keyctl { gap: 1px; }
  .keylab { min-width: 30px; font-size: 14px; }
  .keylab small { font-size: 10px; margin-left: 1px; }
}
/* Your own setlists: the editor. */
.lhead { margin: 0 0 12px; }
.listacts { margin: 0 0 12px; align-items: center; }
.listacts .hint { margin-left: 4px; }
.lock { font-size: .8em; }
.ed { display: grid; gap: 12px; min-width: 0; }
.ed .h2 { margin-top: 8px; }
.eitem { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.eitem .n { width: 22px; flex: none; color: var(--muted); font-weight: 700; text-align: right; font-size: 14px; }
.eitem .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.eitem .t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eitem .t span { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eitem.ebrk { background: var(--panel); }
.eitem.ebrk b { color: var(--accent); }
.evsel { margin-top: 3px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font-size: 14px; background: var(--surface); color: var(--ink); }
.ectl { display: inline-flex; gap: 2px; flex: none; }
.ectl button { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: var(--ink); font-size: 13px; cursor: pointer; }
.ectl button:disabled { opacity: .3; }
.pickbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.pickbar .search { flex: 1 1 200px; min-width: 0; }
.pickbar #ed-tag { flex: 1 1 140px; width: auto; min-width: 0; }
#ed-res { max-height: 55vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.addk { color: var(--accent); font-size: 20px; }
.addk.on { color: var(--muted); }
.edsave { position: sticky; bottom: calc(var(--tabs-h, 64px) + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px 0; background: var(--bg); border-top: 1px solid var(--line); z-index: 2; }
@media (min-width: 900px) { .edsave { bottom: 0; } }
/* Find a song from any chart (crowd requests). */
#ctop .find { display: inline-grid; place-items: center; }
#ctop .backset { border: 0; cursor: pointer; font: 700 13px var(--body); padding: 7px 10px; white-space: nowrap; flex: none; }
.finder { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; grid-template-rows: auto auto 1fr; padding: calc(env(safe-area-inset-top) + 10px) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
.finder .fhead { display: flex; gap: 8px; align-items: center; }
.finder .fhead .search { flex: 1; min-width: 0; }
.finder .ftools { margin: 6px 0 4px; }
.finder .ftools .libbar { margin-top: 0; }
.finder .flist .h2 { margin-top: 14px; }
.finder .flist { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(20px + env(safe-area-inset-bottom)); align-content: start; }
/* Schedule: in / out, and days you marked away. */
.rsvp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 2px; }
.rsvp > span { font-weight: 700; font-size: 14px; }
.rsvp .seg button[aria-pressed="true"][data-ans="in"] { background: var(--good); color: #fff; }
.rsvp .seg button[aria-pressed="true"][data-ans="out"] { background: var(--bad); color: #fff; }
.rsvp .seg button[aria-pressed="true"][data-ans="maybe"] { background: var(--warn); color: #1b1408; }
.awaynote { margin: 8px 0 0; font-size: 13.5px; color: var(--bad); font-weight: 600; }
/* Setlists: set and total lengths. */
.settotal { margin: 0 0 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.brk .settime { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 8px; font-size: .92em; letter-spacing: 0; text-transform: none; }
/* Song info panel. */
.infosheet { grid-template-rows: auto auto auto 1fr; align-content: start; gap: 12px; overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.infosheet .fhead h2 { flex: 1; min-width: 0; margin: 0; font-size: 22px; }
.infosheet .fhead h2 small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.info { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-weight: 600; }
.info dd { margin: 0; font-size: 18px; font-weight: 700; text-align: right; }
.info dd .big { font-size: 26px; color: var(--accent); }
.info dd small { font-size: 13px; color: var(--muted); font-weight: 600; }
.btn.spotify { display: inline-flex; align-items: center; gap: 8px; }
.clickpill { position: fixed; z-index: 25; right: max(12px, env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--bar); color: var(--bar-ink); font: 700 14px var(--body); box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; }
.clickpill i { width: 12px; height: 12px; border-radius: 50%; background: #555; transition: background .05s; }
.clickpill.beat i { background: var(--good); }
.clickpill.beat.accent i { background: var(--warn); }
/* Me tab: calendar, dates away, pedal. */
.calbtns { flex-wrap: wrap; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.awaylist { list-style: none; margin: 8px 0 0; padding: 0; }
.awaylist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.awayform { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.pedaltest { margin-top: 10px; border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; font-weight: 700; color: var(--muted); }
.pedaltest.ok { border-color: var(--good); color: var(--good); }

/* Schedule > Calendar (styles in calendar.css) */
.calview.cal-embed { padding: 0; }
.cal-embed .cal-title { font-family: var(--display); }
.card.show.flash { outline: 3px solid var(--accent); outline-offset: 2px; transition: outline-color 1.2s; }

/* My pay: period picker, summary and statement */
.paytot .card span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.paytot .card .late { font-style: normal; color: var(--warn); font-weight: 600; }
.payrow .st.over { color: var(--bad); font-weight: 700; }
.payctl { display: grid; gap: 10px; margin-bottom: 12px; }
.payctl .seg { flex-wrap: wrap; }
.payper { display: flex; align-items: center; gap: 10px; }
.payper > span { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.payper select { flex: 1; font-weight: 600; }
.payrange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payrange label { display: grid; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.payrange input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.payplayed { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.payplayed input { width: 20px; height: 20px; accent-color: var(--accent, #c8822a); margin: 0; }
.paysearch { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.paysum { margin-bottom: 14px; }
.paysum-h small { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.paysum-h b { font: 700 32px var(--display); display: block; }
.paysum-h .due { color: var(--warn); font-size: 13px; font-weight: 600; }
.payproj { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--chip, rgba(240,169,59,.12)); border: 1px dashed var(--line); }
.payproj small { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.payproj b { font: 700 24px var(--display); display: block; }
.payproj span { font-size: 13px; color: var(--muted); }
.paysum dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 10px 0; }
.paysum dl div { min-width: 0; }
.paysum dl .wide { grid-column: 1 / -1; }
.paysum dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.paysum dd { margin: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paymonth { display: flex; justify-content: space-between; font: 700 14px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 2px 6px; }
.payall { margin: 0 2px 12px; align-items: flex-start; }
.payall > span:last-child { display: grid; font-weight: 600; }
.payall small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.payrow .paytag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.paysum dt small { font-weight: 500; }

/* Schedule: pending, canceled, not-on-this-one, tags, who's playing */
.schedbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.schedchecks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.tagrow:empty { display: none; }
.pill.pend { border: 1px dashed var(--muted); background: transparent; }
.pill.cx { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.pill.charity { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.pill.quiet { background: transparent; border: 1px solid var(--line); }
.card.show.pending { border-style: dashed; }
.card.show.pending h3, .card.show.notmine h3 { color: var(--muted); }
.card.show.canceled { opacity: .78; }
.card.show.canceled h3 { text-decoration: line-through; color: var(--muted); }
.statenote { margin: 0; font-size: 13.5px; color: var(--muted); }
.statenote.cx { color: var(--bad); font-weight: 600; }
.soon { font-size: 13px; color: var(--muted); align-self: center; }
.players { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.players b { font-weight: 700; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-right: 3px; }
/* Tonight */
.tonight { background: var(--bar); color: var(--bar-ink); border-radius: 16px; padding: 16px 16px 14px; display: grid; gap: 8px; margin-bottom: 14px; }
.tonight .tn-head { display: flex; align-items: center; gap: 6px; }
.tonight .tn-head > span:first-child { font: 700 12px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-right: auto; }
.tonight .pill { background: rgba(255,255,255,.12); color: var(--bar-ink); }
.tonight h2 { margin: 0; font: 700 28px/1.05 var(--display); }
.tonight .tn-venue { font-size: 15px; }
.tonight .tn-addr { font-size: 13.5px; color: #b9ae9b; }
.tonight .tn-times { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.tonight .tn-times small { display: block; font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #b9ae9b; }
.tonight .tn-times b { font: 700 22px var(--display); }
.tonight .players, .tonight .players b { color: #d8cfbd; }
.tonight .players b { color: var(--bar-ink); }
.tonight .note { background: rgba(255,255,255,.08); color: var(--bar-ink); }
.tonight .tn-pay { font-size: 14px; color: #b9ae9b; }
.tonight .tn-pay b { color: var(--bar-ink); }
.tonight .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: var(--bar-ink); }
.tonight .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.payrow.nopay b, .payrow.nopay .amt { color: var(--muted); }
.payrow .paytag.charity { color: var(--good); }
.yearend { margin: 0 0 14px; }
.yearend small { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.yearend > b { font: 700 32px var(--display); display: block; }
.yearend > span { color: var(--muted); font-size: 13.5px; }
.yearend ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.yearend .ok { color: var(--good); } .yearend .warn { color: var(--warn); }
/* Songs: picked tags */
.tagpicks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; }
.tagpick { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 10px; font: 600 13.5px var(--body); cursor: pointer; }
.tagpick i { font-style: normal; font-size: 11px; background: var(--accent); color: var(--accent-ink); border-radius: 50%; width: 16px; height: 16px; display: inline-grid; place-items: center; }
.tagpick span { font-size: 15px; line-height: 1; opacity: .8; }
.tagshint { margin: 0 0 6px; }
/* Help: FAQ and feedback */
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.faq summary { padding: 11px 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 700; flex: none; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 14px 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.fbform textarea { resize: vertical; font: inherit; }
.fbpreview { display: grid; gap: 6px; justify-items: start; }
.fbpreview img { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); }
.fbrow .st.ok { color: var(--good); }
.notifyopts { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.notifyopts > b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.notifyopts .switchrow { font-size: 15px; }
/* Getting set up */
.setuphead b { font: 700 24px var(--display); display: block; }
.setuphead .bar { height: 8px; border-radius: 999px; background: var(--panel); overflow: hidden; margin: 6px 0; }
.setuphead .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.setuphead span { color: var(--muted); font-size: 13.5px; }
.setuplist { display: grid; gap: 8px; margin-top: 12px; }
.setupitem { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.setupitem.done { opacity: .72; }
.setupitem.done > div > b { text-decoration: line-through; }
.setupitem input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.setupitem .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; color: var(--accent-ink); }
.setupitem .tick.on { background: var(--good); border-color: var(--good); color: #fff; }
.setupitem > div { display: grid; gap: 3px; }
.setupitem > div > span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.setupitem .linkbtn { justify-self: start; font-size: 14px; padding: 0; }
.nudge { display: grid; gap: 10px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.nudge b { display: block; } .nudge span { color: var(--muted); font-size: 13.5px; }
.pill.practice { background: color-mix(in srgb, var(--head) 16%, transparent); color: var(--head); }
.card.show.practice .date em { color: var(--head); }
.tonight.practice .tn-head > span:first-child { color: var(--head); }
/* Directions chooser */
.navsheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: grid; align-items: end; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
.navbox { background: var(--surface); border-radius: 18px; padding: 16px 16px 14px; display: grid; gap: 10px; max-width: 480px; width: 100%; justify-self: center; box-sizing: border-box; }
.navbox h2 { margin: 0; font: 700 20px var(--display); }
.navbox p { margin: 0; color: var(--muted); font-size: 14px; }
.navapps { display: grid; gap: 8px; }
.navapps .btn { justify-content: center; padding: 12px; font-size: 16px; }
.navbox .checkrow { font-size: 14px; }

/* Pay: your own figure, and mileage */
.paymine .row2 { gap: 14px 18px; flex-wrap: wrap; }
.paymine b { font-weight: 700; }
button.milecard { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; margin: 14px 0 4px; grid-template-columns: minmax(0, 1fr); position: relative; padding-right: 34px; }
button.milecard::after { content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--muted); }
button.milecard:active { background: var(--line); }
.milecard small { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.milecard b { font: 700 24px var(--display); }
.milecard span { font-size: 13px; color: var(--muted); }
.miledit { padding: 4px 12px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.miledit .hint { margin: 8px 0 0; }
.miledit .row2 { margin-top: 10px; flex-wrap: wrap; }
.awayform .homeaddr { grid-column: 1 / -1; }
.awaylist li .late, .paysum dd .late { font-style: normal; color: var(--warn); font-weight: 600; }
.paysum dd small { font-weight: 600; font-size: 12px; }
.milesame { margin-top: 10px; }

/* Finance: the Pay tab's sections, expenses, tax time */
.payseg { display: flex; margin: 0 0 14px; }
.payseg button { flex: 1; padding: 8px 4px; font-size: 14px; }
.expadd { margin: 0 0 12px; }
.expadd .btn { flex: 1; justify-content: center; padding: 12px; font-size: 16px; }
.rcpt { margin-bottom: 12px; }
.rcptadd { display: grid; gap: 2px; justify-items: center; padding: 22px 12px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: center; }
.rcptadd b { font-size: 17px; color: var(--accent); }
.rcptadd span { font-size: 13.5px; color: var(--muted); }
.rcpt img { display: block; max-width: 100%; max-height: 300px; border-radius: 10px; border: 1px solid var(--line); margin: 0 auto; }
.rcptwait { padding: 18px 12px; border: 1px solid var(--line); border-radius: 12px; text-align: center; color: var(--muted); background: var(--surface); }
.rcpt .row2 { justify-content: center; }
.expfields { grid-template-columns: 1fr 1fr; }
.expfields .wide { grid-column: 1 / -1; }
.expbig { margin-top: 12px; align-items: flex-start; }
.expbig small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.expsave { margin-top: 14px; }
.expsave .btn.primary { flex: 1; justify-content: center; padding: 12px; font-size: 16px; }
.taxrows { display: grid; margin: 6px 0 4px; }
.taxrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.taxrow:last-child { border-bottom: 0; }
.taxrow small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.taxrow b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.taxrow.next { background: color-mix(in srgb, var(--accent) 10%, transparent); margin: 0 -8px; padding: 9px 8px; border-radius: 8px; border-bottom: 0; }
.setaside { margin-top: 8px; }
.setaside input { flex: 0 0 84px; width: 84px; }
button.taxcard { border-color: var(--warn); margin-top: 0; }
.swtext small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.appver { display: block; font-size: 12.5px; color: var(--muted); }

/* Me page: folded sections, drawn as one list like Admin › Business: a dark title with the current choice under it */
.fold { border: 1px solid var(--line); border-bottom-width: 0; border-radius: 0; background: var(--surface); margin: 0; }
.fold:first-of-type { border-radius: 14px 14px 0 0; }
.fold:last-of-type { border-bottom-width: 1px; border-radius: 0 0 14px 14px; margin-bottom: 12px; }
.fold:only-of-type { border-radius: 14px; }
.fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 12px 16px; min-height: 58px; -webkit-tap-highlight-color: transparent; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '›'; grid-column: 2; grid-row: 1 / span 2; font: 600 24px/1 var(--body); color: var(--muted); transition: transform .15s; }
.fold[open] > summary::after { transform: rotate(90deg); }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fold-t { grid-column: 1; font: 700 18px/1.25 var(--body); color: var(--ink); }
.fold-s { grid-column: 1; font: 500 15px/1.3 var(--body); color: var(--muted); overflow-wrap: anywhere; }   /* wraps to a second line rather than being cut off */
.fold-s:empty { display: none; }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold-b { padding: 12px 16px 16px; }
.fold-b > :first-child { margin-top: 0; }

/* Help button in the header */
.top .helpbtn { margin-left: 8px; border-radius: 50%; font: 700 18px var(--body); }
/* Long song titles on narrow phones: a little smaller, up to three lines, so they are not cut off */
@media (max-width: 430px) { #ctop h1 { font-size: 23px; } #ctop h1 .ttl { -webkit-line-clamp: 3; } }
/* "A new version is ready" */
.updbar { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 14.5px; }
.updbar span { flex: 1; min-width: 0; }
@media (min-width: 900px) { .updbar { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }
.whatsnew span { display: block; margin-top: 4px; }
/* First-chart tip */
.charttip { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 86px); z-index: 70; background: var(--surface); color: var(--ink); border: 1px solid var(--accent); border-radius: 14px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14.5px; display: grid; gap: 8px; max-width: 460px; margin: 0 auto; }
.charttip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.charttip li b { display: inline-block; min-width: 68px; color: var(--accent); }
.charttip > span { color: var(--muted); }
.charttip .btn { justify-self: start; }

/* Admin on the phone: marking pay lines paid, and the quick add forms */
.payrow .paidctl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.payrow .paidctl .st { text-align: left; }
.payrow .paybtns { display: flex; align-items: center; gap: 14px; }
.payedit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.payedit .row2 { grid-column: 1 / -1; }
.paynow { margin-bottom: 12px; }
.owed { margin-bottom: 12px; }
.owed > b { font: 700 26px var(--display); }
.owed > small { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.adminadd { margin: -2px 0 12px; }
.addform { gap: 12px; }
.adwho { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 0; }

.paynow > div > b { display: block; }

.addk.sel { color: var(--accent); font-weight: 700; }
.song[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Expenses: search, category and "missing a receipt" filters for the chosen year */
.expfilt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; margin-bottom: 12px; }
.expfilt .checkrow { grid-column: 1 / -1; }
@media (max-width: 480px) { .expfilt { grid-template-columns: 1fr; } }
.expcount { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Admin tab */
.tabs button { position: relative; }
.tabdot { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11px/17px var(--body); font-style: normal; }
.adminlinks a.song { color: inherit; text-decoration: none; }
.adminlinks .song .t span { white-space: normal; }
.adminlinks .k { display: flex; align-items: center; gap: 8px; }
.chev { font-size: 22px; color: var(--muted); line-height: 1; }
.pill.warn { background: #f9e3c4; color: #8a4b00; }
.inmsg { white-space: pre-wrap; margin: 0; background: var(--panel); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.inshot { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); }

/* Band / Admin switch (admins only) and the Admin mode screens */
.modesw { display: inline-flex; flex: none; background: rgba(255,255,255,.1); border-radius: 10px; padding: 3px; gap: 2px; }
.modesw button { border: 0; background: transparent; color: #b9ae9b; font: 600 13px var(--body); padding: 6px 10px; border-radius: 8px; cursor: pointer; position: relative; }
.modesw button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.modesw button i { font-style: normal; position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e57a70; color: #fff; font: 700 10.5px/16px var(--body); text-align: center; }
a.song { color: inherit; text-decoration: none; }
.song .k:has(.chev) { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.song.dated { grid-template-columns: 46px minmax(0, 1fr) auto; }
.song.dated .date b { font-size: 24px; }
.song.dated .pill { vertical-align: 1px; }
.aseg { margin-bottom: 10px; }
.aseg small { font-size: 11.5px; opacity: .75; margin-left: 2px; }
.aadd { margin: 0 0 10px; }
a.btn { text-decoration: none; color: inherit; }
.asearch { margin-bottom: 10px; }
/* Music > Import songs: the list to check before anything is added. */
.sistart .sipick, .sidone .row2 { justify-self: start; }
.sipick { cursor: pointer; margin: 4px 0; }
.silead { margin: 0 0 10px; }
.siacts { margin: 0 0 12px; }
.silist { margin-bottom: 12px; }
.sihead { font: 700 15px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 8px; }
.sihead small { font-weight: 600; margin-left: 4px; }
.song.sirow { grid-template-columns: 24px minmax(0, 1fr); align-items: start; cursor: pointer; }
.song.sirow.skip { grid-template-columns: minmax(0, 1fr); cursor: default; }
.sirow input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.sirow.off .t b { color: var(--muted); font-weight: 500; }
.sirow .t .why { white-space: normal; color: var(--accent); font-weight: 600; }
.sirow.off .t .why, .sirow.skip .t .why { color: var(--muted); font-weight: 400; }
.sirow.skip .t b { white-space: normal; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.usual .placerow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: 6px; margin-top: 6px; }
.usual .placerow input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; font-size: 16px; min-width: 0; }
@media (max-width: 380px) { .modesw button { padding: 6px 8px; font-size: 12.5px; } }

/* Calendar colors: one per kind of gig */
:root { --cal-bsb: #a8620a; --cal-sound: #3b6fb6; --cal-other: #2f8f86; --cal-b1: #7b4fc9; --cal-b2: #c2417a; --cal-b3: #5b7d1f; --cal-b4: #8a5a2b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cal-bsb: #f0a93b; --cal-sound: #7fa9e3; --cal-other: #5cc4b9; --cal-b1: #b79cf0; --cal-b2: #ef8db8; --cal-b3: #a9cf63; --cal-b4: #d9a774; } }
:root[data-theme="dark"] { --cal-bsb: #f0a93b; --cal-sound: #7fa9e3; --cal-other: #5cc4b9; --cal-b1: #b79cf0; --cal-b2: #ef8db8; --cal-b3: #a9cf63; --cal-b4: #d9a774; }
.setno { display: block; font-size: 14.5px; margin-bottom: 4px; }
/* Venue picker: a search box with the saved venues under it */
.vpick { position: relative; }
.vlist { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.vopt { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.vopt:last-child { border-bottom: 0; }
.vopt b { display: block; font-weight: 600; }
.vopt small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.vopt:active, .vopt:hover { background: var(--bg); }
.vnew { padding: 10px 12px; color: var(--muted); font-size: 13.5px; }
.venbar { margin-bottom: 12px; align-items: center; }
.venbar .inline-input { flex: 1; }
.venform { margin: 8px 0; }
.keypair { display: flex; gap: 6px; align-items: center; min-width: 0; }
.keypair select { flex: 1; min-width: 0; }
.keypair .kc { font-size: 12.5px; color: var(--muted); }
/* Admin's Edit song pencil in the chart header: on phones it lives in the song info sheet instead, to keep the title readable */
.top a.editsong { display: inline-grid; place-items: center; color: inherit; text-decoration: none; }
@media (max-width: 520px) { #ctop a.editsong { display: none; } }
.btn svg { vertical-align: -3px; margin-right: 6px; }
/* Setlist editor on a computer: title, artist and singer menu on one line, so more songs fit on screen */
@media (min-width: 760px) {
  .eitem { padding-top: 4px; padding-bottom: 4px; }
  .eitem .t { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 120px minmax(0, 1.1fr); align-items: center; column-gap: 14px; }
  .eitem .evsel { margin-top: 0; width: 100%; padding: 3px 6px; }
  .eitem .ectl button { width: 30px; height: 30px; font-size: 12px; }
  .eitem .ectl { gap: 4px; }
}

/* Original key column, and the setlist view's one-line rows on a computer (matches the setlist editor) */
.eitem .t .ok, .song .lrow .ok, .song .lrow .ar, .song .lrow .sg { display: none; }
@media (min-width: 760px) {
  .eitem .t .ok, .song .lrow .ok { display: block; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .song .lrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .song .lrow .sub { display: none; }
  .song .lrow .ar, .song .lrow .sg { display: block; }
  .songs .song:has(.lrow) { padding-top: 7px; padding-bottom: 7px; }
  .songs .song:has(.lrow) { grid-template-columns: 30px minmax(0, 1fr) 130px; }   /* fixed key/capo spot, so every row's columns line up */
  /* Key left-aligned in its own column (every key starts at the same spot); capo right-aligned at the row end */
  .song:has(.lrow) .k { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; align-items: center; text-align: left; white-space: nowrap; }
  .song:has(.lrow) .k small { display: block; overflow: hidden; text-overflow: ellipsis; text-align: right; }
}
/* Pay page: what the client paid */
.clientpay { display: grid; gap: 6px; }
.cprow { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.cprow span { color: var(--muted); }
.cprow.tot span, .cprow.bal span { color: var(--ink); font-weight: 600; }
.cprow.bal { border-top: 1px solid var(--line); padding-top: 6px; }
.cprow b.ok { color: var(--ok, #2e7d4f); } .cprow b.due { color: var(--accent); }
.cpform { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
@media (max-width: 480px) { .cpform { grid-template-columns: 1fr 1fr; } .cpform label:first-child { grid-column: 1 / -1; } }
.clientpay .row2 { margin-top: 6px; }
.schedsearch { width: 100%; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }

/* Show plan: stage plot, input list, monitors, power and gear as one picture */
.stagecard { padding: 8px; overflow: hidden; background: #fff; }
.stagecard svg { display: block; width: 100%; height: auto; }   /* always fits the width of the screen */
.stagepage .row2.noprint { margin-bottom: 10px; }
/* Mixer file: what it sets, and the steps to load it (they open once the file is made) */
.mixfile { margin: 0 0 12px; }
.mixfile .hint b { color: var(--ink); }
.mixfile details { margin-top: 6px; }
.mixfile summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 0; min-height: 32px; }
.mixfile summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mixfile ol { margin: 2px 0 8px; padding-left: 22px; font-size: 14px; color: var(--ink); }
.mixfile li { margin: 0 0 5px; }
.mixfile details .hint + .hint { margin-top: 6px; }
.stageform .f > span, .stagerig .f > span { display: block; }
.stin { display: grid; grid-template-columns: 48px minmax(0,1.3fr) 84px 118px minmax(0,1.2fr) 34px; gap: 6px; margin-bottom: 6px; align-items: center; }
.stin.rig { grid-template-columns: 56px minmax(0,1.6fr) minmax(0,1fr) 34px; }
.stin.outs { grid-template-columns: 50px minmax(0,1.4fr) minmax(0,1fr) 34px; }
.stin.dca { grid-template-columns: minmax(0,1fr) minmax(0,2fr) 34px; }
.stin input, .stin select { min-width: 0; }
@media (max-width: 520px) {
  .stin { grid-template-columns: 44px minmax(0,1fr) 76px 34px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .stin [data-stk="grp"], .stin [data-stk="from"] { grid-column: 1 / 3; grid-row: 2; }
  .stin [data-stk="note"] { grid-column: 3 / 5; grid-row: 2; }
  .stin.rig { grid-template-columns: 50px minmax(0,1fr) 34px; }
  .stin.rig [data-rgk="who"] { grid-column: 1 / 3; grid-row: 2; }
}
@media print {
  .noprint { display: none !important; }
  body { padding: 0 !important; background: #fff; }
  main { padding: 0 !important; }
  .stagecard { border: 0; box-shadow: none; padding: 0; overflow: visible; }
  .stagecard svg { min-width: 0; }
}
.stagefor { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stagefor > span { min-width: 34px; }
.stagefor > span { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Show photos */
.bicon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.phadd { margin-bottom: 12px; }
.phadd .phpick { align-self: flex-start; width: auto; display: inline-flex; cursor: pointer; margin-top: 8px; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; }
@media (min-width: 760px) { .phgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; } }
.phcell { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--panel); cursor: pointer; }
.phcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phnone { display: grid; place-content: center; height: 100%; padding: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.phnone small { display: block; font-weight: 400; font-size: 10.5px; word-break: break-all; margin-top: 3px; }
.phplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-content: center; font-size: 14px; padding-left: 3px; }
.phdlg { width: min(1100px, 100vw); height: min(92vh, 100dvh); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: 12px; background: #0e0d0b; color: #fff; }
.phdlg::backdrop { background: rgba(0,0,0,.8); }
.phdlg[open] { display: flex; flex-direction: column; }
.phbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-top)); font-size: 14px; }
.phbar .sp { flex: 1; }
.phbar .btn { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.phstage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px 12px; }
.phstage img, .phstage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.phstage .empty { color: #ddd; }
.phnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 30px; cursor: pointer; border-radius: 8px; }
.phnav.prev { left: 6px; } .phnav.next { right: 6px; }
@media (max-width: 520px) { .phdlg { border-radius: 0; height: 100dvh; } .phbar .btn.quiet { padding: 6px 8px; } }

.phhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.phhead .h2 { margin: 0; }
.phvenue { font: 700 16px var(--display); margin: 16px 2px 6px; }
.phvenue small { font: 400 12.5px var(--body); color: var(--muted); margin-left: 4px; }

.whoadd { margin-top: 8px; max-width: 100%; }
.adwho .checkrow small.hint { font-size: 11.5px; margin-left: 2px; }

/* Stage layout editor */
.stagelayout svg.stageedit { touch-action: none; user-select: none; -webkit-user-select: none; }
.stagelayout .sdrag { cursor: grab; }
.stagelayout .sdrag:active { cursor: grabbing; }
.stagelayout .sdrag.sel > :first-child { filter: drop-shadow(0 0 6px rgba(201,122,22,.85)); }
.stagelayout .sdrag.sel { outline: none; }
.stagelib { flex-wrap: wrap; }
.stagesave { margin-top: 16px; position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; z-index: 2; }
.stagesel { margin-top: 10px; }

/* Show plan: pinch to zoom, drag to move */
.stagecard.pz { position: relative; touch-action: pan-y; }
.stagecard.pz svg { transform-origin: 0 0; will-change: transform; }
.stagecard.pz.zoomed { touch-action: none; cursor: grab; }
.stagecard.pz.zoomed:active { cursor: grabbing; }
.stagefor { flex-wrap: wrap; }
.stagefor > .pzctl { display: none; margin-left: auto; gap: 4px; }
.pzctl button { min-width: 34px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px var(--body); cursor: pointer; }
.pzctl button[data-pz="out"], .pzctl button[data-pz="in"] { font-size: 17px; padding: 0; }
.pzctl button:hover { border-color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .stagefor > .pzctl { display: inline-flex; } }
@media print { .stagecard.pz svg { transform: none !important; } }

/* A small on/off switch (Schedule: Hide practices) */
.tgl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl .track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line); transition: background .15s; flex: none; }
.tgl .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.tgl input:checked + .track { background: var(--accent); }
.tgl input:checked + .track::after { transform: translateX(16px); }
.tgl input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.tgl span:last-child { white-space: nowrap; }

/* iPhone: date/time fields have a built-in minimum width that pushes them past their box */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
  -webkit-appearance: none; appearance: none; display: block;
  max-width: 100%; min-width: 0; box-sizing: border-box;
  min-height: 43px; line-height: 1.25; text-align: left;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.seg.miletabs { display: flex; width: 100%; margin: 0 0 12px; }
.seg.miletabs button { flex: 1; padding: 8px 6px; font-size: 14px; }
.stagefor.pzrow { margin: 0 0 6px; }
.stagefor.pzrow > .slundo { display: inline-flex; gap: 6px; min-width: 0; }
.slundo .btn[disabled] { opacity: .45; }

/* ---------- Show Mode on the chart view: a Rate button, a rating sheet, set break pages ---------- */
.chartwrap.smon #ctop { box-shadow: inset 0 -3px 0 var(--accent); }
.ratefab { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(env(safe-area-inset-bottom) + 78px); z-index: 12;
  min-width: 96px; height: 52px; padding: 0 18px; border-radius: 26px; border: 0; background: var(--accent); color: var(--accent-ink);
  font: 700 19px var(--display); letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0,0,0,.28); cursor: pointer; touch-action: manipulation; }
.ratefab.done { background: var(--surface); color: var(--ink); border: 2px solid var(--accent); }
.ratesheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.rsbox { width: 100%; max-width: 560px; background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; padding: 18px max(16px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 16px) max(16px, env(safe-area-inset-left)); display: grid; gap: 12px; }
.rshead b { display: block; font: 700 22px var(--display); }
.rshead span { color: var(--muted); }
.rsrate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rsrate button { height: 76px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); font: 700 40px var(--display); cursor: pointer; touch-action: manipulation; }
.rsrate button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rslab { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -6px; }
.rsrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rsrow .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.brkpage { display: flex; align-items: center; justify-content: center; }
.brkbox { text-align: center; padding: 24px 16px; max-width: 520px; margin: auto; font-family: var(--body); }
.brkdone { color: var(--muted); font-size: 16px; }
.brkbig { font: 700 clamp(48px, 13vw, 96px)/1 var(--display); color: var(--accent); margin: 8px 0; }
.brktime { font: 700 24px var(--display); }
.brkrate { margin-top: 14px; font-size: 17px; }
.brknext { margin: 26px 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.brknext small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; }
.brknext b { display: block; font: 700 30px/1.1 var(--display); margin-top: 6px; }
.brknext span { display: block; color: var(--muted); margin-top: 4px; }
.brkbox .row2 { justify-content: center; }
/* Setlist page: Show Mode buttons; song list: average crowd rating */
.smstart { margin: 0 0 12px; }
.rstat { font-style: normal; color: var(--accent); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.ratesum .paysum-h b .of5 { font-size: .5em; color: var(--muted); font-weight: 600; }
.ratecols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.ratecols .rh { display: block; margin-bottom: 6px; }
.rline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.rline:first-of-type { border-top: 0; }
.rpill { font-style: normal; font-weight: 700; min-width: 28px; text-align: center; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.rpill.r1, .rpill.r2 { background: rgba(176, 63, 54, .12); color: var(--bad); }
.rpill.r4, .rpill.r5 { background: rgba(44, 122, 75, .12); color: var(--good); }
.ratelist .rrow { cursor: default; align-items: center; }
.rfix { display: grid; grid-template-columns: repeat(6, 38px); gap: 2px; }
.rfix button { padding: 7px 0; font-size: 15px; text-align: center; }
/* Phones: the song on one line, its six rating buttons in an even row under it */
@media (max-width: 560px) {
  .ratelist .rrow { grid-template-columns: 30px minmax(0, 1fr); row-gap: 8px; }
  .ratelist .rfix { grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); width: 100%; }
  .ratelist .rfix button { padding: 9px 0; font-size: 16px; }
}

/* ---------- Day sheet ---------- */
.dayset .f { margin-bottom: 8px; }
.dayfrom { margin-top: 2px; }
.dayother { margin: 6px 0 4px; }
.daywarn { margin: 0 0 10px; }
.daybar { margin: 14px 0 6px; }
.dbtrack { position: relative; height: 22px; border-radius: 8px; background: var(--panel); overflow: hidden; }
.dbtrack i { position: absolute; top: 0; bottom: 0; }
.dbticks { position: relative; height: 18px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.dbticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.dbkey { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.dbkey span { display: inline-flex; align-items: center; gap: 5px; }
.dbkey b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.daylist { list-style: none; margin: 12px 0; padding: 0; }
.daylist li { display: grid; grid-template-columns: 6.4em 1fr; gap: 12px; align-items: baseline; padding: 10px 0 10px 12px; border-left: 4px solid var(--line); position: relative; }
.daylist li + li { border-top: 1px solid var(--line); }
.daylist .dt { font: 700 24px/1.05 var(--display); color: var(--ink); white-space: nowrap; }
.daylist .dt::before { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; background: var(--c); }
.daylist .dt .nd { display: block; font: 600 11px var(--body); color: var(--muted); }
.daylist .dw b { display: block; font-size: 17px; }
.daylist .dw span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.daylist li.big .dt { font-size: 32px; }
.daylist li.big .dw b { font-size: 19px; }
@media (max-width: 380px) { .daylist li { grid-template-columns: 6.6em 1fr; } .daylist .dt { font-size: 21px; } .daylist li.big .dt { font-size: 27px; } }

/* ---------- Setlist energy ---------- */
.enkey { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.enkey span { display: inline-flex; align-items: center; gap: 5px; }
.enkey b { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.enkey .endot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); display: inline-block; }
.enflags { border-color: rgba(176, 63, 54, .35); }
.enflags ul { margin: 6px 0 0; padding-left: 18px; }
.enflags li { margin: 4px 0; }
.enwrap { padding: 10px 12px 4px; }
.enchart { display: block; width: 100%; height: auto; }
.enbar { cursor: pointer; }
.enbar:hover rect:first-child { opacity: .85; }
.endetail { margin-top: 8px; }
.enhead b { display: block; font-size: 17px; }
.enhead span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.enset { display: flex; flex-wrap: wrap; margin-top: 10px; }
.enset button { flex: 1; min-width: 56px; padding: 8px 6px; font-size: 14px; }
.seenergy { margin-bottom: 12px; }
.seenergy .hint { display: block; margin-top: 6px; }
.chartwrap.smon .chart { padding-bottom: 76px; }
/* Set break page: same frame as a song chart (empty toolbar row, ghost scroll buttons) so nothing moves */
.brkbar { min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); }
.brkghost { visibility: hidden; }
/* Search by tag: a sheet to pick several tags, then search */
.tagbtn.on { border-color: var(--accent); color: var(--accent); }
.tagsheet { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.tsbox { width: 100%; max-width: 640px; max-height: 86vh; background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.tshead { padding: 16px 18px 6px; }
.tshead b { display: block; font: 700 22px var(--display); }
.tshead span { color: var(--muted); font-size: 14px; }
.tslist { overflow-y: auto; padding: 0 18px 10px; -webkit-overflow-scrolling: touch; }
.tslist h3 { font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.tschips { display: flex; flex-wrap: wrap; gap: 8px; }
.tschip { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 99px; padding: 8px 13px; font: 600 15px var(--body); cursor: pointer; touch-action: manipulation; }
.tschip small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.tschip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tschip[aria-pressed="true"] small { color: inherit; opacity: .8; }
.tsfoot { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; padding: 12px 18px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--line); }
/* Show editor: times in one column (Load-in, Sound check, Set 1 start, Break, Set 2 start, Loadout) */
.timecol { display: block; }
.setrow { margin: 0; }
.setdel { display: block; margin: -2px 0 12px; font-size: 14px; }
#es-sets > .btn { margin: 2px 0 14px; }
/* Box-select in Edit stage layout */
.stagelayout svg.stageedit .slbox { fill: rgba(201,122,22,.12); stroke: #c97a16; stroke-width: 1.5; stroke-dasharray: 6 4; pointer-events: none; }
.stagelayout .slundo [aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* Show plan > Routing: one row per channel or output, label left, plug-in point right */
.routecard summary { cursor: pointer; padding: 2px 0; }
.routecard .h3 { margin: 12px 0 4px; font-size: 15px; }
.splitrows { columns: 2 250px; column-gap: 18px; margin: 10px 0 4px; }
.splitrow { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; break-inside: avoid; }
.splitrow .spn { flex: none; width: 46px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.splitrow .spn b { font: 700 18px var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }
.splitrow .spn small { font: 500 11px var(--body); color: var(--muted); white-space: nowrap; }
.splitrow input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 11px; font-size: 16px; }
.routerow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.routerow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.routerow select { width: 100%; min-width: 0; font-size: 14px; padding: 4px 6px; }

/* ======================================================================================================
   Styles (Me > Look > Style). Classic is everything above. Each style below only applies when picked,
   and has its own dark and light colors. Under review (Nov 2026): House Lights, Road Case, Console.
   ====================================================================================================== */

/* ---------- House Lights: today's look, tidied. Fewer boxes, bigger dates, a bright Tonight banner. ---------- */
html[data-style="house"] {
  /* Light (Benjamin, Nov 20): white "Gaffer" page, charcoal top bar, white bottom bar with a yellow current tab,
     black gaffer tape on headings, blue chords. */
  --bg: #ffffff; --surface: #ffffff; --panel: #f1f1f1; --line: #e0e0e0; --ink: #111111; --muted: #595959;
  --accent: #111111; --accent-ink: #ffffff; --accent-soft: rgba(0, 0, 0, .06); --chord: #1d4ed8; --head: #2d5d7c;
  --bar: #2f3237; --bar-ink: #f3f3f3; --bar-muted: #b9bdc3; --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --stencil: "Big Shoulders Stencil Display", "Arial Narrow", sans-serif;
  --house-glow: #f5c518; --house-glow-ink: #1a1206;
  --k-band: #f5c518; --k-sound: #6ea8fe; --k-side: #4cc2b4; --k-other: #a3abb4; --k-practice: #b79cf0; --k-ink: #15181b;
  --tape: #1f1f1f; --tape-ink: #ffffff; --tn-tape: #ffffff; --tn-tape-ink: #111111;
  --tabbar: #ffffff; --tabbar-line: #e0e0e0; --tab-ink: #595959; --tab-on-bg: #f5c518; --tab-on-ink: #111111;
}
@media (prefers-color-scheme: dark) { html[data-style="house"]:not([data-theme="light"]) {
  --bg: #110e0b; --surface: #1b1713; --panel: #241e18; --line: #2e2720; --ink: #f4ecdd; --muted: #a89c89;
  --accent: #f5c518; --accent-ink: #1a1206; --accent-soft: rgba(245, 197, 24, .14); --chord: #f5c518; --head: #7fc0e6; --bar: #0a0806; --bar-ink: #f4ecdd; --bar-muted: #b9ae9b;
  --tape: #ece6d6; --tape-ink: #1d1d1f; --tn-tape: #ece6d6; --tn-tape-ink: #1d1d1f;
  --tabbar: #0a0806; --tabbar-line: #0a0806; --tab-ink: #a59a88; --tab-on-bg: transparent; --tab-on-ink: #f5c518; color-scheme: dark;
} }
html[data-style="house"][data-theme="dark"] {
  --bg: #110e0b; --surface: #1b1713; --panel: #241e18; --line: #2e2720; --ink: #f4ecdd; --muted: #a89c89;
  --accent: #f5c518; --accent-ink: #1a1206; --accent-soft: rgba(245, 197, 24, .14); --chord: #f5c518; --head: #7fc0e6; --bar: #0a0806; --bar-ink: #f4ecdd; --bar-muted: #b9ae9b;
  --tape: #ece6d6; --tape-ink: #1d1d1f; --tn-tape: #ece6d6; --tn-tape-ink: #1d1d1f;
  --tabbar: #0a0806; --tabbar-line: #0a0806; --tab-ink: #a59a88; --tab-on-bg: transparent; --tab-on-ink: #f5c518; color-scheme: dark;
}
html[data-style="house"] .top h1 { font-size: 26px; }
html[data-style="house"] .show h3 { font-size: 23px; }
html[data-style="house"] .show .where { font-size: 15px; }
html[data-style="house"] .players b, html[data-style="house"] .tonight .players b { font: 600 13.5px var(--body); text-transform: none; letter-spacing: 0; }
html[data-style="house"] .players b::after { content: ':'; }
html[data-style="house"] .tonight { background: var(--house-glow, var(--accent)); color: #1a1206; }
html[data-style="house"] .tonight .tn-head > span:first-child { font: 700 15px var(--body); letter-spacing: 0; text-transform: none; color: #1a1206; }
html[data-style="house"] .tonight h2 { font-size: 30px; }
html[data-style="house"] .tonight .tn-addr, html[data-style="house"] .tonight .tn-pay,
html[data-style="house"] .tonight .tn-times small, html[data-style="house"] .tonight .players { color: rgba(26, 18, 6, .78); }
html[data-style="house"] .tonight .tn-times small { font: 600 13px var(--body); letter-spacing: 0; text-transform: none; }
html[data-style="house"] .tonight .players b, html[data-style="house"] .tonight .tn-pay b { color: #1a1206; }
html[data-style="house"] .tonight .pill { background: rgba(26, 18, 6, .14); color: #1a1206; }
html[data-style="house"] .tonight .note { background: rgba(26, 18, 6, .1); color: #1a1206; }
html[data-style="house"] .tonight .btn { background: rgba(26, 18, 6, .1); border-color: rgba(26, 18, 6, .3); color: #1a1206; }
html[data-style="house"] .tonight .btn.primary { background: #1a1206; border-color: #1a1206; color: #f5c518; }

/* ---------- Road Case: gaffer-tape labels in marker, stenciled dates, spike-tape yellow. ---------- */
html[data-style="case"] {
  --bg: #e8e8e5; --surface: #ffffff; --panel: #dcdcd8; --line: #c3c5c1; --ink: #1c1d1f; --muted: #575b61;
  --accent: #7d5f00; --accent-ink: #fff; --accent-soft: rgba(125, 95, 0, .12); --chord: #7d5f00; --head: #2d5d7c;
  --bar: #1c1d1f; --bar-ink: #ecedee; --display: "Big Shoulders Stencil Display", "Arial Narrow", sans-serif; --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --spike: #f5c518; --tape: #ece6d6; --tape-ink: #1d1d1f;
}
@media (prefers-color-scheme: dark) { html[data-style="case"]:not([data-theme="light"]) {
  --bg: #1c1d1f; --surface: #26282b; --panel: #2f3134; --line: #3b3e42; --ink: #ecedee; --muted: #a3a8ae;
  --accent: #f5c518; --accent-ink: #1c1d1f; --accent-soft: rgba(245, 197, 24, .14); --chord: #f5c518; --head: #7fc0e6; --bar: #151617; --bar-ink: #ecedee;
} }
html[data-style="case"][data-theme="dark"] {
  --bg: #1c1d1f; --surface: #26282b; --panel: #2f3134; --line: #3b3e42; --ink: #ecedee; --muted: #a3a8ae;
  --accent: #f5c518; --accent-ink: #1c1d1f; --accent-soft: rgba(245, 197, 24, .14); --chord: #f5c518; --head: #7fc0e6; --bar: #151617; --bar-ink: #ecedee;
}
html[data-style="case"] .top h1 { font-size: 30px; letter-spacing: .01em; }
html[data-style="case"] .top h1 small { font-family: var(--body); }
html[data-style="case"] .card, html[data-style="case"] .schedsearch { border-width: 2px; border-radius: 6px; }
html[data-style="case"] .btn { border-radius: 4px; }
html[data-style="case"] .seg, html[data-style="case"] .seg button { border-radius: 4px; }
html[data-style="case"] .h2, html[data-style="case"] .tonight .tn-head > span:first-child, html[data-style="case"] .chart .h {
  display: inline-block; width: fit-content; background: var(--tape); color: var(--tape-ink); font: 700 17px/1.05 "Shantell Sans", "Comic Sans MS", cursive;
  letter-spacing: 0; text-transform: none; padding: 6px 12px 4px; transform: rotate(-1.2deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
}
html[data-style="case"] .h2:nth-of-type(even) { transform: rotate(1deg); }
html[data-style="case"] .chart .h { font-size: 17px; margin: .6em 0 .25em; }
html[data-style="case"] .date { border-right-width: 2px; }
html[data-style="case"] .date em, html[data-style="case"] .date i { font: 800 17px var(--display); letter-spacing: .02em; text-transform: none; color: var(--muted); }
html[data-style="case"] .date b { font: 800 40px/1 var(--display); color: var(--ink); }
html[data-style="case"] .show h3 { font: 700 19px/1.2 var(--body); }
html[data-style="case"] .players b { font: 700 13px var(--body); }
html[data-style="case"] .tonight { background: var(--surface); color: var(--ink); border: 2px solid var(--spike); border-radius: 6px; }
html[data-style="case"] .tonight h2 { font: 700 21px/1.2 var(--body); }
html[data-style="case"] .tonight .tn-times b { font: 800 26px var(--display); color: var(--accent); }
html[data-style="case"] .tonight .tn-addr, html[data-style="case"] .tonight .tn-times small, html[data-style="case"] .tonight .tn-pay { color: var(--muted); }
html[data-style="case"] .tonight .players, html[data-style="case"] .tonight .players b, html[data-style="case"] .tonight .tn-pay b { color: var(--ink); }
html[data-style="case"] .tonight .pill { background: var(--panel); color: var(--ink); }
html[data-style="case"] .tonight .note { background: var(--panel); color: var(--ink); }
html[data-style="case"] .tonight .btn { background: var(--panel); border-color: var(--line); color: var(--ink); }
html[data-style="case"] .tonight .btn.primary, html[data-style="case"] .btn.primary { background: var(--spike); border-color: var(--spike); color: #1c1d1f; }
html[data-style="case"] .tabs { border-top: 2px solid #3b3e42; }
html[data-style="case"] .tabs button[aria-current="page"] { background: transparent; color: var(--spike); }
html[data-style="case"] .tabs button[aria-current="page"] svg { color: var(--spike); }

/* ---------- Console: colored strips like a mixer's channel labels, one color per kind of event. ---------- */
html[data-style="console"] {
  --bg: #eef0f2; --surface: #ffffff; --panel: #e2e5e9; --line: #cfd4da; --ink: #1b1f24; --muted: #545d67;
  --accent: #9a5200; --accent-ink: #fff; --accent-soft: rgba(154, 82, 0, .1); --chord: #9a4f00; --head: #2d5d7c;
  --bar: #17191b; --bar-ink: #e8eaed; --display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif; --body: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --k-band: #f0a93b; --k-sound: #6ea8fe; --k-side: #4cc2b4; --k-other: #a3abb4; --k-practice: #b79cf0; --k-ink: #15181b;
}
@media (prefers-color-scheme: dark) { html[data-style="console"]:not([data-theme="light"]) {
  --bg: #1e2124; --surface: #272b2f; --panel: #30353a; --line: #363b41; --ink: #e8eaed; --muted: #9aa1a9;
  --accent: #f0a93b; --accent-ink: #2a1a04; --accent-soft: rgba(240, 169, 59, .14); --chord: #f0a93b; --head: #7fc0e6; --bar: #17191b; --bar-ink: #e8eaed;
} }
html[data-style="console"][data-theme="dark"] {
  --bg: #1e2124; --surface: #272b2f; --panel: #30353a; --line: #363b41; --ink: #e8eaed; --muted: #9aa1a9;
  --accent: #f0a93b; --accent-ink: #2a1a04; --accent-soft: rgba(240, 169, 59, .14); --chord: #f0a93b; --head: #7fc0e6; --bar: #17191b; --bar-ink: #e8eaed;
}
html[data-style="console"] body { font-variant-numeric: tabular-nums; }
html[data-style="console"] .h2 { font: 600 15px var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
html[data-style="console"] .card { border-radius: 8px; }
html[data-style="console"] .btn, html[data-style="console"] .seg, html[data-style="console"] .seg button { border-radius: 6px; }
html[data-style="console"] [data-kind], html[data-style="house"] [data-kind] { --kc: var(--k-band); }
html[data-style="console"] [data-kind="sound"], html[data-style="house"] [data-kind="sound"] { --kc: var(--k-sound); }
html[data-style="console"] [data-kind="side"], html[data-style="house"] [data-kind="side"] { --kc: var(--k-side); }
html[data-style="console"] [data-kind="other"], html[data-style="house"] [data-kind="other"] { --kc: var(--k-other); }
html[data-style="console"] [data-kind="practice"], html[data-style="house"] [data-kind="practice"] { --kc: var(--k-practice); }
html[data-style="console"] .card.show, html[data-style="house"] .card.show { padding: 0; gap: 0; overflow: hidden; grid-template-columns: 70px minmax(0, 1fr); }
html[data-style="console"] .card.show > div, html[data-style="house"] .card.show > div { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
html[data-style="console"] .card.show .date, html[data-style="house"] .card.show .date { background: var(--kc); color: var(--k-ink); border: 0; padding: 12px 0; align-content: center; gap: 2px; }
html[data-style="console"] .card.show.pending .date, html[data-style="house"] .card.show.pending .date { background: repeating-linear-gradient(135deg, var(--kc) 0 8px, color-mix(in srgb, var(--kc) 70%, transparent) 8px 16px); }
html[data-style="console"] .card.show.canceled .date, html[data-style="house"] .card.show.canceled .date { filter: grayscale(1); }
html[data-style="console"] .date em, html[data-style="console"] .date i, html[data-style="console"] .date small { font: 700 13px var(--body); letter-spacing: 0; text-transform: none; color: var(--k-ink); }
html[data-style="house"] .card.show .date em, html[data-style="house"] .card.show .date i, html[data-style="house"] .card.show .date small { font: 700 14px var(--display); letter-spacing: 0; text-transform: none; color: var(--k-ink); }
html[data-style="console"] .date b { font: 700 30px/1 var(--body); color: var(--k-ink); }
html[data-style="house"] .card.show .date b { font: 700 34px/1 var(--display); color: var(--k-ink); }
html[data-style="console"] .show h3 { font: 700 19px/1.2 var(--body); }
html[data-style="console"] .times span b { font-weight: 700; }
html[data-style="console"] .players b { font: 600 13px var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
html[data-style="console"] .players b::after { content: ':'; }
html[data-style="console"] .tonight { background: var(--surface); color: var(--ink); border: 2px solid var(--kc); border-radius: 8px; }
html[data-style="console"] .tonight .tn-head > span:first-child { background: var(--kc); color: var(--k-ink); font: 700 14px var(--body); letter-spacing: 0; text-transform: none; padding: 3px 9px; border-radius: 4px; margin-right: auto; }
html[data-style="console"] .tonight h2 { font: 700 24px/1.15 var(--body); }
html[data-style="console"] .tonight .tn-times b { font: 700 22px var(--body); }
html[data-style="console"] .tonight .tn-addr, html[data-style="console"] .tonight .tn-times small, html[data-style="console"] .tonight .tn-pay { color: var(--muted); font-family: var(--body); letter-spacing: 0; text-transform: none; }
html[data-style="console"] .tonight .players, html[data-style="console"] .tonight .players b, html[data-style="console"] .tonight .tn-pay b { color: var(--ink); }
html[data-style="console"] .tonight .pill, html[data-style="console"] .tonight .note { background: var(--panel); color: var(--ink); }
html[data-style="console"] .tonight .btn { background: var(--panel); border-color: var(--line); color: var(--ink); }
html[data-style="console"] .tonight .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
html[data-style="console"] .tabs button[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--bar-ink); }
html[data-style="console"] .tabs button[aria-current="page"] svg { color: var(--bar-ink); }
/* Chart sections get a channel color, so the chorus is easy to find mid-song. */
html[data-style="console"] .chart .h { font: 700 15px/1.2 var(--body); letter-spacing: 0; color: var(--k-ink); background: var(--k-other); border-radius: 4px; padding: 2px 8px; margin: .55em 0 .2em; }
html[data-style="console"] .chart .h[data-sec="verse"] { background: var(--k-sound); }
html[data-style="console"] .chart .h[data-sec="chorus"] { background: var(--k-band); }
html[data-style="console"] .chart .h[data-sec="bridge"], html[data-style="console"] .chart .h[data-sec="pre"] { background: var(--k-practice); }
html[data-style="console"] .chart .h[data-sec="instr"] { background: var(--k-side); }
/* Review fixes: readable "Setlist coming" on House Lights' amber Tonight banner; Road Case small labels in its body type. */
html[data-style="house"] .tonight .soon { color: rgba(26, 18, 6, .8); }
html[data-style="case"] .players b, html[data-style="case"] .tonight .players b { text-transform: none; letter-spacing: 0; }
html[data-style="case"] .players b::after { content: ':'; }
html[data-style="case"] .tonight .tn-times small { font: 600 13px var(--body); letter-spacing: 0; text-transform: none; }

/* House Lights, round 2 (Benjamin, Nov 20): headings and chart sections on Road Case tape. */
html[data-style="house"] .h2, html[data-style="house"] .chart .h {
  display: inline-block; width: fit-content; background: var(--tape); color: var(--tape-ink); font: 700 17px/1.05 "Shantell Sans", "Comic Sans MS", cursive;
  letter-spacing: 0; text-transform: none; padding: 6px 12px 4px; transform: rotate(-1.2deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
}
html[data-style="house"] .h2:nth-of-type(even) { transform: rotate(1deg); }
html[data-style="house"] .chart .h { margin: .6em 0 .25em; }
html[data-style="house"] .tonight .tn-head > span:first-child { background: var(--tn-tape); color: var(--tn-tape-ink); font: 700 16px/1.05 "Shantell Sans", "Comic Sans MS", cursive; padding: 5px 11px 3px; transform: rotate(-1.5deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
html[data-style="house"] .card.show .date { align-content: start; padding-top: 14px; }
/* House Lights: anything sitting on the dark top and bottom bars uses bright yellow in both dark and light mode. */
html[data-style="house"] .modesw button[aria-pressed="true"] { background: var(--house-glow); color: #1a1206; }
html[data-style="house"] .tabs { background: var(--tabbar); border-top: 1px solid var(--tabbar-line); }
html[data-style="house"] .tabs button { color: var(--tab-ink); }
html[data-style="house"] .tabs button[aria-current="page"], html[data-style="house"] .tabs button[aria-current="page"] svg { color: var(--tab-on-ink); }
html[data-style="house"] .tabs button[aria-current="page"] { background: var(--tab-on-bg); }
html[data-style="house"] .top h1 small, html[data-style="house"] #ctop h1 small .who { color: var(--bar-muted); }
html[data-style="house"] .btn.primary { background: var(--house-glow); border-color: var(--house-glow); color: #1a1206; }
html[data-style="house"] .top .pill.acc { background: rgba(245, 197, 24, .16); color: var(--house-glow); }
html[data-style="house"] #ctop h1 small .kc, html[data-style="house"] #ctop h1 small .who.pick { color: var(--house-glow); }

/* House Lights: Road Case's stencil for screen titles, the chart's song title, and show names and dates in the list.
   The Tonight banner stays in plain type. */
html[data-style="house"] .top h1 { font: 800 30px/1.05 var(--stencil); letter-spacing: .01em; }
html[data-style="house"] .top h1 small { font-family: var(--body); letter-spacing: 0; }
html[data-style="house"] #ctop h1 .ttl { font-family: var(--stencil); font-weight: 800; }
html[data-style="house"] .show h3 { font: 800 24px/1.1 var(--stencil); letter-spacing: .01em; }
html[data-style="house"] .card.show .date b { font: 800 38px/1 var(--stencil); }

/* Song title bar on charts (every style). Two rows is the default: the title gets the whole top line next to the
   song number; the singer and key sit under it with the buttons. Me > Look can switch to Big: a slim toolbar on top,
   then the title large on its own line with the singer and key as tags. */
#ctop { display: grid; gap: 8px; align-items: center; }
#ctop > .back:first-child { grid-area: back; }
#ctop h1 { display: contents; }
#ctop h1 .ttl { grid-area: ttl; }
#ctop h1 small { grid-area: meta; margin: 0; }
#ctop .pill { grid-area: pill; }
#ctop [data-act="mynote"] { grid-area: n; }
#ctop .editsong { grid-area: e; }
#ctop [data-act="songinfo"] { grid-area: i; }
#ctop [data-act="finder"] { grid-area: f; }
#ctop .find, #ctop > .back:first-child { width: 40px; height: 40px; }
html:not([data-ctitle="big"]) #ctop { grid-template-columns: 40px minmax(0, 1fr) repeat(4, auto); grid-template-areas: "back ttl ttl ttl ttl pill" "back meta n e i f" "meter meter meter meter meter meter"; }
html:not([data-ctitle="big"]) #ctop > .back:first-child, html:not([data-ctitle="big"]) #ctop .pill { align-self: start; }
html:not([data-ctitle="big"]) #ctop .pill { justify-self: end; }
html:not([data-ctitle="big"]) #ctop h1 .ttl { font-size: 27px; line-height: 1.08; }
html:not([data-ctitle="big"]) #ctop h1 small { font-size: 15px; }
html[data-ctitle="big"] #ctop { gap: 6px 8px; grid-template-columns: 40px minmax(0, 1fr) repeat(4, auto); grid-template-areas: "back pill n e i f" "ttl ttl ttl ttl ttl ttl" "meta meta meta meta meta meta" "meter meter meter meter meter meter"; }
html[data-ctitle="big"] #ctop .pill { justify-self: start; }
html[data-ctitle="big"] #ctop h1 .ttl { font-size: 34px; line-height: 1.04; margin-top: 6px; }
html[data-ctitle="big"] #ctop h1 small { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; }
html[data-ctitle="big"] #ctop h1 small > * { border-radius: 999px; padding: 3px 11px; }
html[data-ctitle="big"] #ctop h1 small .who { background: rgba(255, 255, 255, .12); color: var(--bar-ink); }
html[data-ctitle="big"] #ctop h1 small .kc { background: var(--accent); color: var(--accent-ink); }
html[data-style="house"][data-ctitle="big"] #ctop h1 small .kc { background: var(--house-glow); color: #1a1206; }

/* Set meter: how far through the set you are (every style). One segment per song; a wider gap at set breaks. */
#ctop .setmeter { grid-area: meter; display: flex; gap: 2px; height: 7px; margin-top: 4px; }
#ctop .setmeter i { flex: 1 1 0; min-width: 0; border-radius: 2px; background: rgba(255, 255, 255, .14); }
#ctop .setmeter i.setgap { margin-left: 6px; }
#ctop .setmeter i.done { background: color-mix(in srgb, var(--accent) 50%, transparent); }
#ctop .setmeter i.now { background: var(--accent); }
html[data-style="house"] #ctop .setmeter i.done { background: rgba(245, 197, 24, .45); }
html[data-style="house"] #ctop .setmeter i.now { background: var(--house-glow); }

/* Time meter (Song charts > Time meter): the set drawn to time, with a white clock tick for where the plan says we
   should be now, and a line underneath in words. Lives in the same spot as the set meter. */
#ctop .timemeter { grid-area: meter; display: grid; gap: 3px; margin-top: 2px; }
#ctop .tm-bar { position: relative; height: 22px; }
/* No flex gap: each segment's width stays exactly its share of the time, so the clock tick lines up with the songs.
   The space between songs is drawn inside each segment (its last 2px are see-through). */
#ctop .tm-songs { position: absolute; left: 0; right: 0; top: 7px; height: 8px; display: flex; }
#ctop .tm-songs i { --c: rgba(255, 255, 255, .14); min-width: 0; background: linear-gradient(90deg, var(--c) calc(100% - 2px), transparent calc(100% - 2px)); border-radius: 2px; }
#ctop .tm-songs i.done { --c: color-mix(in srgb, var(--accent) 50%, transparent); }
#ctop .tm-songs i.now { --c: var(--accent); }
#ctop .tm-songs b { min-width: 0; }
html[data-style="house"] #ctop .tm-songs i.done { --c: rgba(245, 197, 24, .45); }
html[data-style="house"] #ctop .tm-songs i.now { --c: var(--house-glow); }
#ctop .tm-clock { position: absolute; top: 1px; width: 3px; height: 20px; margin-left: -1.5px; background: #ffffff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
#ctop .tm-clock::before { content: ""; position: absolute; left: 50%; top: -3px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
#ctop .tm-lab { display: flex; justify-content: space-between; gap: 10px; font: 500 14px var(--body); color: var(--bar-muted, #b9ae9b); }
#ctop .tm-lab b { font-weight: 700; white-space: nowrap; }
#ctop .tm-lab b.behind { color: #ff8a7a; }
#ctop .tm-lab b.ahead { color: #67c48e; }
#ctop .tm-lab b.ontime, #ctop .tm-lab b.wait { color: var(--bar-ink); }

/* Me > Layout: one row per screen. */
.laylist { display: grid; gap: 10px; }
.layrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; font: inherit; }
.layrow > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.layrow b { font: 700 20px/1.15 var(--display); }
.layrow small { color: var(--muted); font-size: 14px; }
.layrow i { font-style: normal; font-size: 24px; color: var(--muted); }
.layrow:hover { border-color: var(--accent); }
html[data-style="house"] .layrow b { font-family: var(--stencil); font-weight: 800; font-size: 22px; letter-spacing: .01em; }
#main .laypage > .h2 { display: table; margin: 22px 0 10px; }
#main .laypage > .h2:first-child { margin-top: 4px; }
.laypage .switchrow { align-items: flex-start; font-size: 15.5px; }
.laypage .switchrow > .switch { margin-top: 2px; flex: none; }
.laypage .switchrow > span:last-child { display: grid; gap: 3px; }
.laypage .switchrow small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Dark/light switch at the bottom of the left rail: computers only (the rail starts at 900px). */
.tabs .themetgl, .themetgl { display: none; }
@media (min-width: 900px) and (pointer: fine) {
  .tabs .themetgl { display: grid; justify-items: center; gap: 4px; margin-top: auto; margin-bottom: 14px; padding: 8px 2px; border: 0; background: transparent; color: var(--tab-ink, #a59a88); font: 600 12px var(--body); cursor: pointer; }
}
/* iPad (a touch screen 600px or wider): the switch sits in the top bar, beside the ? button. */
.top .themetgl { display: none; }
@media (min-width: 600px) and (pointer: coarse) {
  .top .themetgl.ttop { display: inline-flex; flex: none; align-items: center; margin-left: 10px; padding: 4px; border: 0; background: transparent; cursor: pointer; min-height: 44px; }
  .top .themetgl.ttop .tt-lab { display: none; }
}
.themetgl .tt-track { position: relative; display: block; width: 46px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .14); }
.themetgl[aria-checked="false"] .tt-track { background: #e3e5e8; }
.themetgl .tt-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; line-height: 1; background: #f5c518; color: #1a1206; transition: left .15s; }
.themetgl[aria-checked="true"] .tt-knob { left: 23px; background: #f5c518; color: #1a1206; }
.themetgl[aria-checked="true"] .tt-track { background: rgba(255, 255, 255, .24); }
.themetgl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .themetgl .tt-knob { transition: none; } }

/* iPad (a touch screen 600px or wider): bigger tap targets and text on the Schedule's switches and in setlists.
   Song charts keep their own sizes. (Benjamin, Nov 20) */
@media (min-width: 600px) and (pointer: coarse) {
  #main .seg button { font-size: 16px; padding: 10px 16px; min-height: 44px; }
  #main .schedbar .tgl.showsonly { font-size: 16px; }
  #main .songs .song { padding-top: 13px; padding-bottom: 13px; }
  #main .songs .song .t b { font-size: 20px; white-space: normal; line-height: 1.2; }
  #main .songs .song .lrow { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 70px minmax(0, .9fr); }
  #main .songs .song .t > span, #main .songs .song .sub, #main .songs .song .ar, #main .songs .song .sg, #main .songs .song .ok { font-size: 16px; }
  #main .songs .song .n { font-size: 21px; }
  #main .songs .song .k { font-size: 18px; }
  #main .songs .song .k small { font-size: 13.5px; }
  #main .schedsearch { font-size: 17px; padding: 12px 14px; }
}

/* Computer sidebar (a mouse or trackpad, 900px and wider): the left rail widens into a sidebar with icon and name on
   one line, and the pages under Pay and Me listed under them (Expenses, Mileage, Taxes, My gear; Layout, Help).
   Phones and iPads keep the tab bar; those rows stay hidden there. (Benjamin, Nov 20) */
.tabs .railsub { display: none; }
@media (min-width: 900px) and (pointer: fine) {
  .tabs { width: 212px; padding: max(70px, env(safe-area-inset-top)) 10px 10px; gap: 2px; overflow-y: auto; }
  body { padding-left: 212px; }
  .tabs button { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; justify-items: start; column-gap: 12px; padding: 10px 12px; font-size: 15px; text-align: left; border-radius: 9px; }
  .tabs button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs button:hover { background: rgba(255, 255, 255, .05); }
  .tabs .railsub { display: grid; grid-template-columns: 18px minmax(0, 1fr); padding: 7px 12px 7px 26px; font-size: 14px; font-weight: 500; column-gap: 11px; }
  .tabs .railsub svg { width: 18px; height: 18px; }
  /* The tab whose sub-page is open: just its icon and name lit, no box (the sub-page row gets the box). */
  .tabs button.subon[aria-current="page"], html[data-style] .tabs button.subon[aria-current="page"] { background: transparent; }
  .tabs button:has(.tabdot) { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .tabs .tabdot { position: static; justify-self: end; }
  .tabs .themetgl { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; }
}

/* Another band's lineup in one go (stage plot): name, plays, sings on one line; two lines on a phone. */
.qsrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px; margin-bottom: 8px; align-items: center; }
.qsrow input, .qsrow select { min-width: 0; width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 11px; font-size: 16px; }
@media (max-width: 599px) {
  .qsrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .qsrow [data-q="name"] { grid-column: 1 / 3; }
}

/* A player's input rows on the stage plot: Ch, input, type, list group, where it sits, note. */
.stin.pin { grid-template-columns: 48px minmax(0,1.3fr) 84px 118px 136px minmax(0,1.1fr) 34px; }
@media (max-width: 520px) {
  .stin.pin { grid-template-columns: 44px minmax(0,1fr) 76px 34px; }
  .stin.pin [data-stk="grp"] { grid-column: 1 / 3; grid-row: 2; }
  .stin.pin [data-stk="at"] { grid-column: 3 / 5; grid-row: 2; }
  .stin.pin [data-stk="note"] { grid-column: 1 / 5; grid-row: 3; }
}
/* Channel ranges on each mixer (our usual sound setup). */
.chmap { padding: 10px 0; border-bottom: 1px solid var(--line); }
.chmap small { color: var(--muted); }
.chmapgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.chmapgrid label { display: grid; gap: 3px; font-size: 13.5px; color: var(--muted); }
.chmapgrid input { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 10px; font-size: 16px; }
@media (max-width: 520px) { .chmapgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Lineup form: a fourth box for a second instrument. */
.qsrow { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 599px) { .qsrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .qsrow [data-q="also"] { grid-column: 1 / 3; } }
/* Sidebar links to admin-site pages look like the other rows. */
@media (min-width: 900px) and (pointer: fine) {
  .tabs a.railsub { color: var(--tab-ink, #a59a88); text-decoration: none; border-radius: 9px; align-items: center; cursor: pointer; }
  .tabs a.railsub:hover { background: rgba(255, 255, 255, .05); }
}
/* "Also that day": a quiet note under the date in Add and Edit (what else is on that date, and who can't play). */
.alsoday { border-left: 3px solid var(--warn); background: var(--panel); border-radius: 0 10px 10px 0; padding: 7px 11px; display: grid; gap: 4px; }
.alsoday[hidden] { display: none; }
.alsoday p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.alsoday b { font-weight: 700; }
/* Subs: the lists in Admin > People > Subs, and "Who's out" in Edit show. */
.subsintro { margin: 0 0 12px; }
.subcard { margin-bottom: 12px; }
.subcard h3 { margin: 0; font: 700 19px/1.2 var(--display); }
.subcard h3 small { font: 500 13.5px var(--body); color: var(--muted); margin-left: 4px; }
.sublist { margin: 0; padding: 0 0 0 22px; display: grid; gap: 10px; }
.sublist li { padding-left: 2px; min-width: 0; }
.sublist li::marker { font-weight: 700; color: var(--muted); }
.subrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.subrow .t { flex: 1 1 150px; min-width: 0; }
.subrow .t b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.subrow .t span { display: block; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.subbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.subbtns .btn { min-height: 36px; }
.subform { display: grid; gap: 10px; padding: 4px 0; }
.subasks { gap: 10px; }
.subask { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.subask p { margin: 0; font-size: 14.5px; line-height: 1.4; }
.subask p.hint { font-size: 13.5px; }
.subask .subhead b { color: var(--bad); }
.subask .subcover { color: var(--good); }
.substat { display: flex; max-width: min(100%, 440px); margin-top: 6px; }
.substat button { flex: 1 1 auto; padding: 7px 4px; white-space: nowrap; }
.substat button[aria-pressed="true"][data-st="asked"] { background: var(--warn); color: #1b1408; }
.substat button[aria-pressed="true"][data-st="yes"] { background: var(--good); color: #fff; }
.substat button[aria-pressed="true"][data-st="no"] { background: var(--bad); color: #fff; }
.subcue { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; width: 100%; margin: 8px 0 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.subcue > span { flex: 1 1 100%; }
.subcue b { color: var(--bad); font-weight: 700; }

/* Private-band beta: the band's join code on Admin > People, and the first steps for a brand-new band. */
.invite .joincode { font: 700 34px var(--display); letter-spacing: .2em; color: var(--accent); user-select: all; -webkit-user-select: all; }
.startlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.startlist li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; min-height: 36px; }
.startlist li > i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.startlist li.done > i { background: var(--accent); }
.startlist li > span { color: var(--ink); font-size: 15px; }
.startlist li.done > span { color: var(--muted); }

/* Admin > People > a person (drawPerson) */
.personform { display: grid; gap: 12px; }
.personform .h2 { margin: 6px 0 -4px; }
.personform .addform { display: grid; gap: 12px; }
.personform .rolepick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.personform .checkrow { min-height: 36px; align-items: center; }
.personform .invitetext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; user-select: all; -webkit-user-select: all; }
.personform .paysum { display: grid; gap: 6px; }
.personform .paysum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.personform .savebar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.personform .savebar .btn.primary { flex: 1 1 160px; }
@media (min-width: 900px) { .personform { max-width: 640px; } .personform .rolepick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Beta: account setup (drawAccount) */
.acctform { display: grid; gap: 12px; }
.acctform .lede { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.acctform .h2 { margin: 6px 0 -4px; }
.acctform .card { display: grid; gap: 12px; }
.acctform .card > span { color: var(--muted); font-size: 14px; }
.acctform .savebar .btn.primary { width: 100%; }
@media (min-width: 900px) { .acctform { max-width: 640px; } }

/* Beta: several bands under one login. On the Schedule the title and the band's name under it are one button that
   opens "Your bands" (#mybands); Me has a row for it too. */
.top h1 .bandsw { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top h1 .bandsw small { overflow: hidden; text-overflow: ellipsis; }
.top h1 .bandsw small i { font-style: normal; font-size: 11px; color: var(--accent); margin-left: 2px; }
html[data-style="house"] .top h1 .bandsw small i { color: var(--house-glow); }
.bandrow { margin-bottom: 14px; }
.mybands .song[aria-current="true"] { background: var(--accent-soft); }
.mybands-hint { margin: 10px 2px 6px; }
.acct-switch { margin: 10px 2px 0; }
input.codein { letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }

/* Beta: Delete my account (#account/delete), and its quiet link under Sign out on Me. */
.delform { display: grid; gap: 12px; }
.delform .lede { margin: 0; font-size: 16px; line-height: 1.45; }
.delform .h2 { margin: 6px 0 -4px; }
.delform .card { display: grid; gap: 10px; }
.delform .card > span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.delform .card > span b, .delform .card > b { color: var(--ink); }
.delform .savebar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.delform .savebar .btn { flex: 1 1 160px; min-height: 46px; }
@media (min-width: 900px) { .delform { max-width: 640px; } }
.delacct { margin-top: 12px; }
.delacct .linkbtn { color: var(--muted); font-weight: 500; font-size: 14px; }

/* Beta: All my gigs. A gig in another of my bands is a read-only card in that band's color; every card says where it is. */
.pill.space { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: color-mix(in srgb, var(--spacec) 16%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--spacec) 60%, transparent); overflow: hidden; text-overflow: ellipsis; }
.pill.space i { width: 8px; height: 8px; border-radius: 50%; background: var(--spacec); flex: none; }
.card.show.every { cursor: pointer; }
.card.show.every .date em { color: var(--spacec); }
html[data-style="console"] .card.show.every, html[data-style="house"] .card.show.every { --kc: var(--spacec); }
/* The other-band colors are deep in the light look and pale in the dark one, so the date on them is white in light, dark in dark. */
:root { --space-ink: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --space-ink: #15181b; } }
:root[data-theme="dark"] { --space-ink: #15181b; }
html[data-style="console"] .card.show.every .date, html[data-style="house"] .card.show.every .date,
html[data-style="console"] .card.show.every .date em, html[data-style="house"] .card.show.every .date em,
html[data-style="console"] .card.show.every .date i, html[data-style="house"] .card.show.every .date i,
html[data-style="console"] .card.show.every .date small, html[data-style="house"] .card.show.every .date small,
html[data-style="console"] .card.show.every .date b, html[data-style="house"] .card.show.every .date b { color: var(--space-ink); }
.everyask { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: grid; gap: 8px; }
.everyask p { margin: 0; font-size: 14.5px; line-height: 1.4; }
.schedbar .scopeseg { max-width: 100%; }

/* My Gigs (Admin > Business > My Gigs): what every gig paid the admin, with the check that the money adds up. */
.gigtotal { display: grid; gap: 6px; }
.gigtotal .lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gigtotal .totrow { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.gigtotal b.big { display: block; font: 700 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.gigtotal .proj b.big { color: var(--accent); }
.gigtotal .chk { font-size: 14px; line-height: 1.4; }
.gigtotal .chk.ok { color: var(--good, #2f8f5b); }
.gigtotal .chk.off { color: var(--bad); }
.gigtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 12px; }
.gigtiles div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.gigtiles small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gigtiles b { font-size: 16px; font-variant-numeric: tabular-nums; }
.gigsw { margin: 0 0 10px; }
.song.gigrow .k { font-variant-numeric: tabular-nums; color: var(--ink); }
.song .t span.gigwarn { white-space: normal; color: var(--bad); font-weight: 600; font-size: 12.5px; }
.song .t span.gigowes { color: var(--accent); font-weight: 700; }
.gigview { display: grid; gap: 0; }
.gigsum { display: grid; gap: 7px; }
.gigsum .cprow b { text-align: right; overflow-wrap: anywhere; min-width: 0; font-weight: 600; }
.gigsum .cprow span { flex: none; max-width: 48%; }
.gigsum .gignote { margin: 4px 0 0; color: var(--bad); font-size: 14px; }
.gigview .savebar { margin-top: 14px; }
.esfold { margin-top: 4px; }
.gigsum .gigname { margin: 0 0 2px; font: 700 20px/1.2 var(--display); overflow-wrap: anywhere; }

/* Settings (Admin > Business > Settings) and Availability (Admin > People > Availability). */
.setform { display: grid; gap: 12px; }
.setform .lede { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.setform .h2 { margin: 6px 0 -4px; }
.setform .card { display: grid; gap: 14px; }
.setform .card > span { color: var(--muted); font-size: 14px; }
.setform .savebar .btn.primary { width: 100%; }
@media (min-width: 900px) { .setform { max-width: 640px; } }
.avail { display: grid; gap: 12px; }
.avail .hint { margin: 0; }
.avlegend, .avpeople { display: flex; flex-wrap: wrap; gap: 6px; }
.avshow { display: grid; gap: 6px; }
.avshow .avname { text-align: left; font: 700 18px/1.2 var(--display); text-decoration: none; }
.avshow small { color: var(--muted); font-size: 13.5px; }
.avp { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13.5px; background: var(--panel); color: var(--muted); max-width: 100%; }
.avp b { color: inherit; font-weight: 700; }
.avp i { font-style: normal; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avp.in { background: color-mix(in srgb, var(--good, #2f8f5b) 16%, transparent); color: var(--ink); border-color: color-mix(in srgb, var(--good, #2f8f5b) 55%, transparent); }
.avp.out, .avp.away { background: color-mix(in srgb, var(--bad, #c2493d) 14%, transparent); color: var(--ink); border-color: color-mix(in srgb, var(--bad, #c2493d) 50%, transparent); }
.avp.maybe { background: color-mix(in srgb, #d99a2b 20%, transparent); color: var(--ink); border-color: color-mix(in srgb, #d99a2b 65%, transparent); }
.avaway { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14.5px; }
.avaway span { color: var(--muted); }

/* Year-End (Admin > Business > Year-End). */
.yeview { display: grid; gap: 12px; }
.yeview .hint { margin: 0; }
.yeview .h2 { margin: 6px 0 -4px; }
.yetiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yetiles div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; display: grid; gap: 2px; }
.yetiles div.alert { border-color: var(--bad); }
.yetiles small { color: var(--muted); font-size: 12.5px; }
.yetiles b { font: 700 22px/1.1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.yetiles span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 700px) { .yetiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.song.yerow .t > span { white-space: normal; overflow: visible; }
.song.yerow .t span.yeflags { display: flex; flex-wrap: wrap; gap: 4px 6px; white-space: normal; margin-top: 4px; }
.song.yerow .t span.yeflags .pill { display: inline-block; }
.song.yerow .k { color: var(--ink); font-variant-numeric: tabular-nums; }
.song.yerow.under .t b { color: var(--muted); }
.pill.yeok { background: color-mix(in srgb, var(--good, #2f8f5b) 16%, transparent); color: var(--good, #2f8f5b); }
.yegrp { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.yegrp.tot { border-top-width: 2px; }
.yemine { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 7px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.yemine span { min-width: 0; display: grid; gap: 1px; }
.yemine span b { font-weight: 600; overflow-wrap: anywhere; }
.yemine small { color: var(--muted); font-size: 12.5px; }
.yemine small.warn { color: var(--bad); font-weight: 600; }
.yemine > b { font-variant-numeric: tabular-nums; flex: none; }
.yesteps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.yeview .savebar .btn.primary { width: 100%; }
@media (min-width: 900px) { .yeview { max-width: 760px; } }
/* Forms inside a fold-out (Year-End's rules and payer, Edit show's "Who booked you", Your bands): room between the boxes. */
.fold-b > .addform { display: grid; gap: 12px; }
.yeview .rolepick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.yeview .rolepick .checkrow { min-height: 36px; align-items: center; }

/* ---------- The song editor, and songs of your own ---------- */
.pill.onlyyou, .song .t b span.pill.onlyyou { display: inline-block; width: auto; font-size: 11px; font-weight: 600; line-height: 1.3; padding: 1px 8px; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }
.songadd { align-items: center; }
.songadd .btn.on { border-color: var(--accent); color: var(--accent); }
.songadd .hint { margin: 0; }
main.widemain { max-width: 1240px; }
.sgform { display: grid; gap: 14px; min-width: 0; }
.sgform .h2 { margin: 0 0 6px; }
.sgwho { margin: 0; display: grid; gap: 6px; justify-items: start; font-size: 14.5px; color: var(--muted); }
.sgwho b { color: var(--ink); }
.sgwho .hint { margin: 0; }
.sggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.sggrid .sgw2, .sggrid .sgw3 { grid-column: 1 / -1; }
.sgfields .hint { margin: 2px 0 0; }
.sgform .enset { flex-wrap: wrap; }
.sgchart { display: grid; gap: 14px; min-width: 0; }
.sgcol { min-width: 0; display: grid; gap: 8px; align-content: start; }
.sgcol .hint { margin: 0; }
.sgtext { width: 100%; box-sizing: border-box; min-height: 340px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.45; white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 4;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.sgpvbar { align-items: center; }
.sgpvbar select { min-width: 0; max-width: 100%; }
.sgpreview { margin: 0; min-height: 120px; max-height: 70vh; overflow: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.45; white-space: pre; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sgpreview .h { font-family: var(--display); font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.sgpreview .c { color: var(--accent); font-weight: 700; }
.sgfolds .fold:first-child { border-radius: 14px 14px 0 0; }
.sgfolds .fold:last-child { border-bottom-width: 1px; border-radius: 0 0 14px 14px; }
.sgtaggrp { display: grid; gap: 5px; margin-bottom: 10px; }
.sgtaggrp > small { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sgtags { display: flex; flex-wrap: wrap; gap: 6px; }
.sgtags button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.sgtags button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); font-weight: 600; background: var(--panel); }
.sgnewtag { display: flex; gap: 8px; max-width: 380px; }
.sgnewtag input { flex: 1; min-width: 0; }
.sgver { margin-bottom: 10px; }
.sgverfoot { align-items: center; justify-content: space-between; }
.sgverfoot .hint { margin: 0; }
.sgsave { flex-wrap: wrap; align-items: center; }
.sgsave .sgdel { margin-left: auto; }
.sgask { position: sticky; bottom: calc(var(--tabs-h, 64px) + env(safe-area-inset-bottom) + 66px); z-index: 3; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--panel); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.sgask[hidden] { display: none; }
@media (min-width: 700px) { .sggrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .sggrid > * { grid-column: span 2; } .sggrid .sgw2 { grid-column: span 3; } .sggrid .sgw3 { grid-column: 1 / -1; } }
@media (min-width: 900px) { .sgask { bottom: 66px; } }
@media (min-width: 1000px) { .sgchart { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .sgtext { min-height: 520px; } .sgpreview { max-height: 640px; min-height: 520px; } }
