:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#111;color:#f7f7f7}
*{box-sizing:border-box}body{margin:0}main,header{max-width:60rem;margin:auto;padding:1.2rem}header{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:3px solid #cd1424}header img{width:155px;height:auto;background:white;border-radius:.3rem}
h1,h2{margin-top:0}.card{background:#1b1b1b;border:1px solid #444;border-radius:.7rem;padding:1.25rem;margin:1rem 0}.signin{max-width:32rem;margin:2rem auto}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.wide{grid-column:1/-1}label{display:block;font-weight:600;margin:.45rem 0}input,select,textarea{display:block;width:100%;font:inherit;margin-top:.4rem;padding:.65rem;background:#101010;color:inherit;border:1px solid #777;border-radius:.3rem}button{font:inherit;font-weight:700;border:0;border-radius:.35rem;padding:.7rem 1rem;background:#c41222;color:white;cursor:pointer}a{color:#ff979f}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid white;outline-offset:2px}.message{padding:.8rem;border-left:4px solid #eb535e;background:#261e20}.muted{color:#c5c5c5}.services{white-space:pre-wrap;overflow-wrap:anywhere}.total{font-weight:700}summary{cursor:pointer;font-weight:700}form button{margin-top:.6rem}@media(max-width:550px){.grid{grid-template-columns:1fr}}
:root {
  --surface: #19191b;
  --border: #39393d;
  --accent: #db172b;
  --accent-light: #ff99a2;
}
body { background: #101012; }
main, header { max-width: 74rem; }
header { border-color: var(--accent); }
header img { width: clamp(120px, 26vw, 165px); }
main { padding-top: clamp(1.25rem, 4vw, 2.75rem); }
h1 { font-size: clamp(1.85rem, 5vw, 2.8rem); letter-spacing: -.035em; }
h2 { font-size: 1.3rem; }
.card { background: var(--surface); border-color: var(--border); padding: clamp(1rem, 3vw, 1.5rem); }
.dashboard-nav, .inline-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.dashboard-nav { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.dashboard-nav a, .button-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem .9rem;
  background: #242427; color: #fafafa; font-weight: 700; text-decoration: none; border: 1px solid var(--border); border-radius: .45rem;
}
.dashboard-nav a:hover, .button-link:hover { border-color: var(--accent-light); }
.dashboard-nav a[aria-current], .button-link { background: #bd1426; border-color: #e33445; }
button.secondary, .button-link.secondary { background: #29292d; }
button { min-height: 44px; }
button:disabled { opacity: .5; cursor: default; }
.template-controls { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; padding: .8rem; background: #101012; border-radius: .45rem; }
.template-controls label { flex: 1 1 12rem; margin: 0; }
.template-controls p { margin: 0; width: 100%; }
.template-controls p:empty { display: none; }
.card details { border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .8rem; }
.card details summary { min-height: 36px; }
.booking-walkout-actions { display:flex; flex-wrap:wrap; gap:.55rem; border-block:1px solid var(--border); margin-block:1rem .4rem; padding-block:1rem; }
.running-order-row { min-width:0; margin:0 0 1rem; padding:1rem; border:1px solid var(--border); border-radius:.45rem; }
.running-order-row legend { padding:0 .45rem; font-weight:700; }
.running-order-table { overflow:auto; margin-top:1rem; }
.running-order-table table { width:100%; border-collapse:collapse; }
.running-order-table th,.running-order-table td { padding:.65rem; border:1px solid var(--border); text-align:left; vertical-align:top; }
.running-order-show { background:#fff; color:#111; font-family:Arial,sans-serif; }
body:has(.running-order-show) main { max-width:100%; padding:1rem; }
body:has(.running-order-show) > header,body:has(.running-order-show) > footer,body:has(.running-order-show) main > .muted { display:none; }
.running-order-show h1 { background:#c41222; color:#fff; margin:0; padding:.7rem; font-size:1.5rem; text-align:center; }
.running-order-show a { color:#9d1021; }
.running-order-show .running-order-table { overflow-x:auto; }
.show-order-table { table-layout:fixed; min-width:740px; font-size:clamp(12px,1.25vw,17px); line-height:1.3; }
.show-order-table .show-bout-col { width:4%; }
.show-order-table .show-name-col { width:15%; }
.show-order-table .show-song-col { width:15%; }
.show-order-table .show-artist-col { width:12%; }
.show-order-table .show-cue-col { width:6%; }
.running-order-table .show-order-table :is(th,td) { border:1px solid #777; padding:.55rem .35rem; overflow-wrap:anywhere; }
.show-order-table thead th { background:#222; color:#fff; text-align:center; }
.show-order-table thead .show-red-heading { background:#c41222; }
.show-order-table thead .show-blue-heading { background:#1155cc; }
.show-order-table tbody tr:nth-child(even) { background:#f2f2f2; }
.show-order-table .show-red-name { border-left:3px solid #c41222; }
.show-order-table .show-blue-name { border-left:3px solid #1155cc; }
.show-order-table .show-start { white-space:nowrap; font-weight:700; font-variant-numeric:tabular-nums; }
.show-order-table .show-interval { background:#222!important; color:#fff; font-weight:700; text-align:center; }
.show-order-table .show-note { background:#faf5e8!important; }
.show-missing { color:#a20d1c; font-weight:700; }
.song-cue { min-width:0; margin:.45rem 0; border:1px solid var(--border); border-radius:.35rem; }
.song-cue .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
@media print {
  @page { size:landscape; margin:10mm; }
  body:has(.running-order-print) { background:#fff; color:#111; }
  body:has(.running-order-print) :is(header,footer,main > .muted,main > .message,.running-order-navigation) { display:none; }
  .running-order-print { background:#fff; border:0; margin:0; padding:0; }
  .running-order-print tr { break-inside:avoid; }
  .running-order-show .show-order-table { min-width:0; font-size:10pt; }
  .running-order-show .running-order-table { overflow:visible; }
  .running-order-show { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
input[type="checkbox"] { display: inline-block; width: auto; vertical-align: middle; }
.music-check-list { display: grid; gap: .6rem; }
.music-check { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .65rem .8rem; border: 1px solid #555; border-radius: .4rem; }
.music-check input { accent-color: #22a75a; width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.music-check.is-checked { border-color: #22a75a; background: #10351f; color: #c8f7d6; }
input, select, textarea { min-height: 44px; }
@media (max-width: 550px) {
  main, header { padding-left: .9rem; padding-right: .9rem; }
  .dashboard-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-nav a { padding: .55rem .35rem; text-align: center; font-size: .9rem; }
  .inline-actions > * { flex: 1 1 auto; }
}


