/* NOISE: one stylesheet for the app, the DJ page, the artist page, the public links and sign in. Cool grey canvas,
   cobalt for actions, black type; light by default, dark when the device is. Square corners, flat tables, status
   always spelled out in words. Design: Noise handover, 23 Oct 2026. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --sa-blue: #2446DC; --sa-blue-hover: #1D38B3; --sa-ink: #101114; --sa-canvas: #E4E5E1; --sa-surface: #F8F9F6;
  --bg: var(--sa-canvas); --panel: var(--sa-surface); --raised: #ECEDE9; --line: #C8CCC7; --line-soft: #DCDFDA;
  --text: #101114; --muted: #555B58; --faint: #6C726F;
  --accent: var(--sa-blue); --accent-hover: var(--sa-blue-hover); --accent-ink: #ffffff; --accent-soft: #E9EDFF;
  --good: #1C6B3A; --good-soft: #E1F0E5; --warn: #805500; --warn-soft: #FBEFD6; --bad: #B42318; --bad-soft: #FBE7E4;
  --wm-ink: var(--text); --wm-a: var(--accent);
  --radius: 4px; --radius-c: 3px; --shadow: 0 12px 32px rgba(16, 17, 20, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1013; --panel: #17191D; --raised: #202328; --line: #33373D; --line-soft: #272A30;
    --text: #F1F2EF; --muted: #B3B8B5; --faint: #8E9491;
    --accent: #6E86FF; --accent-hover: #8A9CFF; --accent-ink: #0F1013; --accent-soft: #1C2347;
    --good: #6CCB8E; --good-soft: #15291D; --warn: #E9B45E; --warn-soft: #2D2313; --bad: #FF8A80; --bad-soft: #321716;
    --shadow: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1013; --panel: #17191D; --raised: #202328; --line: #33373D; --line-soft: #272A30;
  --text: #F1F2EF; --muted: #B3B8B5; --faint: #8E9491;
  --accent: #6E86FF; --accent-hover: #8A9CFF; --accent-ink: #0F1013; --accent-soft: #1C2347;
  --good: #6CCB8E; --good-soft: #15291D; --warn: #E9B45E; --warn-soft: #2D2313; --bad: #FF8A80; --bad-soft: #321716;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; } h2 { font-size: 20px; font-weight: 700; } h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13.5px; }
.hidden { display: none !important; }
.num, .t, .time, table.money td { font-variant-numeric: tabular-nums; }
.wordmark { display: block; height: 100%; width: auto; }

/* controls */
button, .btn { font: inherit; font-size: 14.5px; cursor: pointer; border-radius: var(--radius-c); border: 1px solid var(--line); background: var(--panel); color: var(--text);
  padding: 8px 14px; min-height: 40px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button:hover, .btn:hover { border-color: var(--text); }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.danger { color: var(--bad); }
.primary.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.ghost { background: transparent; border-color: transparent; }
.ghost:hover { background: var(--raised); border-color: transparent; }
.link { background: none; border: 0; color: var(--accent); padding: 8px 4px; min-height: 0; font-weight: 600; }
.link:hover { text-decoration: underline; }
.sm { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }
label { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; }
label > input, label > select, label > textarea { display: block; margin-top: 6px; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--sa-white, #fff); border: 1px solid var(--line); border-radius: var(--radius-c);
  padding: 8px 11px; min-height: 40px; width: 100%; }
/* background-color only: the shorthand would also wipe the arrow drawn on every select */
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background-color: var(--panel); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(input, select, textarea) { background-color: var(--panel); } }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.check > input { margin-top: 0; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.err { color: var(--bad); font-size: 14px; }

/* status labels: square, flat, always a word; booked is the one solid blue */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius-c); font-size: 12.5px; font-weight: 600; line-height: 20px;
  background: var(--raised); color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.solid { background: var(--accent); color: var(--accent-ink); }
.badge.open { background: transparent; color: var(--warn); border-color: currentColor; }
button.badge { min-height: 0; cursor: pointer; }

/* a slim notice: the trial, a paused side, sets needing cover */
.banner { max-width: 1280px; margin: 0 auto; padding: 8px 32px; background: none; color: var(--muted); font-size: 13.5px; }
.banner.warn { color: var(--warn); }
.banner .link { padding: 0 4px; }
main .banner, .modal .banner { padding: 10px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 14px; }
main .banner.warn, .modal .banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--text); }

/* the header: wordmark, the six destinations, the Venue / Agency switch, the company */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top) 32px 0; }
.topbar .bar { display: flex; align-items: center; gap: 28px; max-width: 1280px; margin: 0 auto; min-height: 68px; }
.brand { display: inline-flex; align-items: center; height: 30px; color: var(--text); text-decoration: none; flex: none; }
.brand .wordmark { height: 100%; }
.orgname { font-weight: 600; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; border-radius: 0; background: none; padding: 0 12px; min-height: 0; height: 100%; color: var(--muted); font-weight: 600; font-size: 14.5px;
  border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.workspace { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-c); overflow: hidden; flex: none; }
.workspace button { border: 0; border-radius: 0; min-height: 34px; padding: 4px 14px; font-size: 13.5px; background: var(--panel); color: var(--muted); }
.workspace button + button { border-left: 1px solid var(--line); }
.workspace button.on { background: var(--text); color: var(--bg); }
.who-menu { display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 10px; min-height: 40px; }
.avatar { width: 34px; height: 34px; border-radius: var(--radius-c); background: var(--text); color: var(--bg); display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; }
main { max-width: 1280px; margin: 0 auto; padding: 28px 32px 80px; }
.modebar { display: none; }
.pagehead { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead p { margin: 6px 0 0; }
@media (max-width: 900px) {
  .topbar { padding: env(safe-area-inset-top) 16px 0; }
  .topbar .bar { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding-top: 12px; }
  .topbar .bar > .spacer { display: none; }
  .brand, .brand .wordmark { height: 28px; }
  .workspace { margin-left: auto; }
  .who-menu .orgname { display: none; }
  .tabs { order: 10; flex-basis: 100%; margin: 0 -16px; padding: 0 8px; height: 46px; }
  .banner { padding: 8px 16px; }
  main { padding: 20px 16px 64px; }
}

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.empty { text-align: center; padding: 40px 20px; }
.empty h3 { margin-bottom: 6px; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); width: 100%; text-align: left;
  background: none; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; min-height: 56px; font-weight: 400; }
.item:first-child { border-top: 0; }
button.item:hover { background: var(--raised); border-color: var(--line-soft); }
.item .main { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item .sub { color: var(--muted); font-size: 13.5px; }

.item.wrap { flex-wrap: wrap; }
.item.wrap .main { flex: 1 1 100%; }

/* the calendar: one continuous grid */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
.cal > * { min-width: 0; }
.cal .dow { font-size: 12px; color: var(--muted); text-align: left; font-weight: 600; padding: 8px 10px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  text-transform: uppercase; letter-spacing: .06em; }
.day { background: var(--panel); border: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); border-radius: 0; min-height: 92px; padding: 8px 10px;
  text-align: left; display: flex; flex-direction: column; gap: 4px; align-items: stretch; justify-content: flex-start; font-weight: 400; }
button.day:hover { background: var(--raised); border-color: var(--line-soft); }
.day .n { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.day.out { background: var(--bg); color: var(--faint); }
.day.out > :not(.chip) { opacity: .7; }   /* a show chip keeps full colour so its name stays readable */
/* the date of a day outside the month stays readable (WCAG AA contrast on the canvas) */
.day.out > .n { opacity: 1; color: var(--muted); }
.day.today .n { color: var(--accent); }
.day.today .n::after { content: " Today"; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.day.sel { outline: 2px solid var(--text); outline-offset: -2px; position: relative; z-index: 1; }
.day .fill { font-size: 12.5px; color: var(--muted); }
.day.has .fill { color: var(--warn); font-weight: 600; }
.day.has.full .fill { color: var(--accent); }
.day .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; }
.night { margin-top: 16px; }
.slot { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; }
.slot .time { font-weight: 700; }
.slot .open { color: var(--warn); font-weight: 600; }
.calwrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.calwrap > .night { margin-top: 0; position: sticky; top: 132px; }
@media (max-width: 1100px) { .calwrap { grid-template-columns: minmax(0, 1fr); } .calwrap > .night { position: static; } }

/* a show on the agency calendar: tap to open */
.day .chip { display: block; width: 100%; text-align: left; font-size: 12px; font-weight: 600; padding: 2px 6px; min-height: 0; border-radius: 3px;
  background: var(--accent); color: var(--accent-ink); border: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day .chip.hold { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.day .chip.cx { background: var(--raised); color: var(--faint); text-decoration: line-through; }
div.day { cursor: default; }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* modal */
.overlay { position: fixed; inset: 0; background: rgba(16, 17, 20, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--panel); width: 100%; max-width: 680px; max-height: 92vh; overflow: auto; border-radius: var(--radius) var(--radius) 0 0; padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
.modal.wide { max-width: 940px; }
.modal .mhead { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: sticky; top: -20px; background: var(--panel); padding: 6px 0 10px; z-index: 2; border-bottom: 1px solid var(--line-soft); }
.mfoot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.mfoot .spacer { flex: 1 1 auto; }
@media (min-width: 720px) { .overlay { align-items: center; } .modal { border-radius: var(--radius); } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: var(--radius); z-index: 60; font-weight: 600; max-width: 90vw; }

/* setup wizard */
.wizard { max-width: 640px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) 18px 60px; }
.steps { display: flex; gap: 4px; margin: 0 0 24px; }
.steps i { flex: 1; height: 3px; border-radius: 0; background: var(--line); }
.steps i.on { background: var(--accent); }
.choice { display: grid; gap: 8px; }
.choice button { justify-content: flex-start; text-align: left; padding: 16px; min-height: 72px; flex-direction: column; align-items: flex-start; gap: 2px; }
.choice button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice button span { font-weight: 400; color: var(--muted); font-size: 14px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days button { padding: 8px 0; min-height: 44px; }
.days button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* one set in the weekly nights: room on top, start and finish side by side */
.slotrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.slotrow > select { grid-column: 1 / -1; }
.slotrow > button, .slotrow > span:last-child { grid-column: 1 / -1; justify-self: end; min-height: 32px; }
.slotrow > span:last-child:empty { display: none; }
.slotrow label { min-width: 0; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom-color: var(--line); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }

/* sign in, the DJ page, the avails link */
.narrow { max-width: 480px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 18px 60px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.tile { flex-direction: column; min-height: 64px; gap: 0; font-weight: 400; }
.tile b { font-size: 12.5px; color: var(--muted); }
.tile.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile.on b { color: var(--accent-ink); }

@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .day { min-height: 64px; padding: 6px; }
  .day .fill { font-size: 11.5px; }
  .day.today .n::after { content: ""; }
  .cal .dow { padding: 6px; font-size: 11px; letter-spacing: .02em; }
  .slot { grid-template-columns: 1fr; gap: 4px; }
  h1 { font-size: 26px; }
  .card { padding: 16px; }
}
@media print {
  .topbar, .modebar, .noprint, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  body { background: #fff; color: #000; }
  .card { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---- branded pages (run sheet, advancing): three templates, the company's colour and logo ---- */
.brandhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand-logo { max-height: 52px; max-width: 180px; object-fit: contain; }
.tpl-classic .doc h1, .tpl-classic .doc h2, .tpl-classic .doc h3 { color: var(--brand); }
.tpl-bold .brandhead { background: var(--brand); color: var(--brand-ink); margin: -40px -18px 22px; padding: 28px 18px 24px; border-radius: 0; }
.tpl-bold .brandhead .muted { color: var(--brand-ink); opacity: .85; }
.tpl-minimal .doc { font-family: Georgia, "Times New Roman", serif; }
.tpl-minimal .doc .card { border: 0; border-top: 2px solid #111; border-radius: 0; padding: 14px 0; background: none; }
.tpl-minimal .doc .list { border: 0; border-radius: 0; }
.tpl-minimal .brandhead { border-bottom: 3px solid #111; padding-bottom: 14px; }
.doc .item { cursor: default; }
.doc .item .lab { width: 130px; flex: none; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .doc .item .lab { width: 96px; } }
.missing { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
@media print { .tpl-bold .brandhead { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
body.tpl-minimal { background: #ffffff; }
.tpl-minimal .doc .item { padding-left: 0; }

/* a segmented switch (Roster or Calendar, Monthly or Yearly): joined squares, the chosen one in ink */
.seg { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-c); overflow: hidden; background: var(--panel); }
.seg button { border: 0; border-radius: 0; background: none; min-height: 38px; padding: 6px 16px; color: var(--muted); font-weight: 600; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--text); color: var(--bg); }

/* the roster toolbar: month stepper, view switch, weekly nights */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-c); background: var(--panel); overflow: hidden; }
.stepper button { border: 0; border-radius: 0; min-height: 38px; min-width: 40px; padding: 0 10px; background: none; font-size: 18px; line-height: 1; }
.stepper button:hover { background: var(--raised); }
.stepper .label { display: grid; place-items: center; padding: 0 16px; min-width: 150px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }

/* the roster: a dated section per night, a table of sets under it */
.rnight { margin-bottom: 28px; }
.rnight .rhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rnight .rhead h3 { font-size: 17px; }
.rnight .rhead .rooms { color: var(--muted); font-weight: 500; }
.rtable { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rcols, .rset { display: grid; grid-template-columns: 170px minmax(180px, 1.6fr) minmax(90px, .8fr) 150px 100px 44px; gap: 0 16px; align-items: center; padding: 0 12px 0 16px; }
.rtable.oneroom .rcols, .rtable.oneroom .rset { grid-template-columns: 170px minmax(180px, 2fr) 150px 100px 44px; }
.rtable.oneroom .room { display: none; }
.rcols { min-height: 36px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rcols .num { text-align: right; }
.rset { min-height: 52px; border-top: 1px solid var(--line-soft); padding-top: 6px; padding-bottom: 6px; }
.rcols + .rset { border-top: 0; }
.rset .t { font-weight: 600; padding: 4px 0; text-align: left; white-space: nowrap; color: var(--text); justify-content: flex-start; font-variant-numeric: tabular-nums; }
.rset .t:hover { color: var(--accent); text-decoration: none; }
.rset .room { color: var(--muted); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rset .amt { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.rset .who { min-width: 0; }
.rset .who.past { font-weight: 600; }
.rset select { min-height: 38px; font-weight: 600; }
.rset.open select { border-color: var(--warn); border-style: dashed; color: var(--warn); }
.rset .st { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rset .more { min-height: 36px; width: 36px; padding: 0; border-color: transparent; background: none; font-size: 18px; letter-spacing: 1px; color: var(--muted); }
.rset .more:hover { background: var(--raised); color: var(--text); }
.rset .rtop { display: contents; }
.rset.cx .t, .rset.cx .who { color: var(--faint); }
@media (max-width: 760px) {
  .rcols { display: none; }
  .rset, .rtable.oneroom .rset { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t st more" "who who who" "room amt amt"; gap: 4px 10px; padding: 10px 8px 12px 14px; }
  .rset .t { grid-area: t; } .rset .st { grid-area: st; justify-content: flex-end; } .rset .more { grid-area: more; }
  .rset .who { grid-area: who; } .rset .room { grid-area: room; font-size: 13px; } .rset .amt { grid-area: amt; font-size: 13px; color: var(--muted); }
  .rtable.oneroom .rset { grid-template-areas: "t st more" "who who who" "amt amt amt"; }
  .rtable.oneroom .rset .amt { text-align: left; }
  .hide-sm { display: none; }
}

/* the DJ app's venues and the manager's venue picker: square tabs with an underline */
.vtabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.vtabs::-webkit-scrollbar { display: none; }
.vtabs button { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 600; color: var(--muted); margin-bottom: -1px; }
.vtabs button:hover { color: var(--text); border-color: var(--line); }
.vtabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.vtabs .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: 4px; vertical-align: middle; }
/* tabs that always fit across a phone (the artist page's five) */
.vtabs.fit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.vtabs.fit button { padding: 8px 2px; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a tighter list for the day-of essentials */
.list.tight .item { padding: 9px 12px; align-items: flex-start; }
.list.tight .faint { width: 76px !important; }
.day.show { background: var(--accent); color: var(--accent-ink); }
.day.show .fill { color: var(--accent-ink) !important; }
/* a show outside the month keeps full colour, so its name stays readable on the artist's colour; the day itself is greyed */
.day.show.out, .day.show.out > * { opacity: 1; }
.chip.away { background: var(--raised); color: var(--muted); border: 1px dashed var(--faint); cursor: default; }
.day.awayday { background: repeating-linear-gradient(135deg, var(--panel) 0 6px, var(--raised) 6px 12px); }
.day.awayday .fill { color: var(--muted); }
.seg.seg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.seg.seg4 button { padding: 6px 4px; font-size: 14px; min-width: 0; }
/* venue tabs sit on their own row under the page title */
.pagehead .vpick { flex-basis: 100%; order: 10; margin-top: 8px; }
/* artist colours: a filled chip on the calendar (a hold is outlined, a cancelled one struck through), a dot beside names */
.day .chip.art { background: var(--ac); color: #fff; }
.day .chip.art.hold { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--ac); }
.day .chip.art.cx { background: var(--raised); color: var(--muted); box-shadow: inset 3px 0 0 var(--ac); }
.adot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; flex: none; }
.swatch { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: var(--radius-c); border: 2px solid transparent; }
.swatch.on { outline: 3px solid var(--text); outline-offset: 2px; }
table.money td, table.money th { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.money tr.cur td { background: var(--accent-soft); }
.card > .cal > :nth-child(7n) { border-right: 0; }
.day .chip .cl { font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.day .chip.art.cx .cl { text-decoration: none; display: inline-block; }

/* photos: a square with a small radius, initials on ink when there is none */
.pic { display: inline-grid; place-items: center; flex: none; border-radius: var(--radius-c); object-fit: cover; background: var(--text); color: var(--bg); font-weight: 700; letter-spacing: .02em; }
img.pic { background: var(--raised); }

/* the DJ app and the artist page: the same header as the manager app, a narrower page */
.solo main { max-width: 820px; }
.profile { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.profile .photo { position: relative; padding: 0; border: 0; background: none; min-height: 0; border-radius: var(--radius); flex: none; }
.profile .photo .pic { width: 84px !important; height: 84px !important; font-size: 28px !important; border-radius: var(--radius); }
.profile .photo .edit { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(16, 17, 20, .72); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 0;
  border-radius: 0 0 var(--radius) var(--radius); text-align: center; }
.profile .photo:hover .edit, .profile .photo:focus-visible .edit { background: var(--accent); }
.profile .co { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.profile h1 { font-size: 34px; }
.sect { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sect:first-child { margin-top: 0; }
.sect .count { color: var(--faint); font-weight: 600; letter-spacing: 0; }

/* one gig: the date as a block on the left, time and pay on the first line */
.card.gig { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; padding: 16px 18px; }
.card.gig + .card.gig { margin-top: 8px; }
.gdate { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border-right: 1px solid var(--line-soft); padding-right: 14px; line-height: 1.05; }
.gdate span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gdate b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.gdate.today b, .gdate.today span:first-child { color: var(--accent); }
.gtop { display: flex; align-items: baseline; gap: 12px; }
.gtop .gtime { font-size: 18px; font-weight: 700; flex: 1; font-variant-numeric: tabular-nums; }
.gtop .gpay { font-weight: 700; font-variant-numeric: tabular-nums; }
.gwhere { color: var(--muted); font-size: 14.5px; margin: 2px 0 0; }
@media (max-width: 520px) { .card.gig { grid-template-columns: 52px minmax(0, 1fr); gap: 0 12px; padding: 14px; } .gdate b { font-size: 24px; } .gtop .gtime { font-size: 16.5px; } }

/* the artist's next show: the day of, at a glance */
.next .nhead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.next .nhead h2 { font-size: 24px; letter-spacing: -0.03em; }
.next .settime { margin-left: auto; text-align: right; }
.next .settime b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.next .settime span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.list.tight .item { min-height: 0; }

/* the owner's "see it as" strip: ink, above everything, scrolls away */
.viewbar { background: var(--sa-ink, #101114); color: #E4E5E1; font-size: 13px; padding: 6px 32px; }
.viewbar .vbin { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.viewbar .lab { display: inline-block !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; opacity: .7; margin-right: 4px; }
.viewbar button, .viewbar label { min-height: 30px; padding: 3px 10px; font-size: 13px; background: transparent; color: #E4E5E1; border: 1px solid #3a3d44; border-radius: var(--radius-c);
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.viewbar button:hover { border-color: #E4E5E1; }
.viewbar .on { background: #E4E5E1; color: #101114; border-color: #E4E5E1; }
:root .viewbar label select { min-height: 0; padding: 0 22px 0 4px; width: auto; max-width: 150px; border: 0; background-color: transparent; color: inherit; font-size: 13px; font-weight: 600;
  background-position: calc(100% - 10px) 52%, calc(100% - 6px) 52%; }
.viewbar label select:focus { outline: 0; }
.viewbar label:focus-within { outline: 2px solid #6E86FF; outline-offset: 1px; }
.viewbar label span { opacity: .75; }
.viewbar .on span { opacity: .6; }
.viewbar .ro { color: #FFD27A; font-weight: 600; margin-left: 6px; }
.viewbar .sp { flex: 1; }
@media (max-width: 900px) { .viewbar { padding: 6px 12px; } .viewbar .lab { display: none; } }
.logout { color: var(--muted); }
.lineup { margin-top: 10px; }
.lineup summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.lineup .item.you { background: var(--accent-soft); }
.solo .topbar #out, .solo .topbar .bar > a.btn { margin-left: auto; }
.solo .topbar .bar > a.btn + #out { margin-left: 0; }

/* ===================== phone audit, 23 Oct 2026 ===================== */

/* tabs look like tabs (Matt: "any tabs need to be clearly tabs, not just words on a line").
   The main sections: boxed, the chosen one filled in ink. */
.tabs { align-self: center; gap: 2px; padding: 3px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); height: auto; }
.tabs button { height: auto; min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--radius-c); margin: 0; color: var(--muted); }
.tabs button:hover { color: var(--text); background: var(--panel); }
.tabs button.on { background: var(--text); color: var(--bg); border: 0; }
/* the second level (venues, a DJ's venues): folder tabs that join the page under them */
.vtabs { gap: 4px; border-bottom: 1px solid var(--line); padding: 0 2px; }
.vtabs button { border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--raised); color: var(--muted);
  margin-bottom: 0; min-height: 42px; padding: 8px 16px; position: relative; top: 1px; }
.vtabs button:hover { color: var(--text); border-color: var(--line); background: var(--panel); }
.vtabs button.on { background: var(--panel); color: var(--text); border-color: var(--line); box-shadow: inset 0 3px 0 var(--accent); }

/* pop-ups: a real X, sized to the part of the screen Safari leaves visible, the page behind held still */
.modal { max-height: 92vh; max-height: 92dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal .mhead h2 { font-size: 19px; min-width: 0; overflow-wrap: anywhere; }
.xbtn { width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none; border-radius: var(--radius-c); border: 1px solid var(--line); background: var(--panel); color: var(--text); margin: -4px -6px -4px 0; }
.xbtn:hover { border-color: var(--text); }
.xbtn svg { width: 18px; height: 18px; }
body.locked { overflow: hidden; }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }

@media (max-width: 900px) {
  /* iPhone zooms the page on any field under 16px */
  input, select, textarea { font-size: 16px; }
  /* one header row: wordmark, Venue/Agency, company, log out */
  .topbar .bar { gap: 8px; padding-top: 10px; }
  .brand, .brand .wordmark { height: 26px; }
  .workspace button { padding: 4px 10px; font-size: 13px; min-height: 36px; }
  .who-menu { padding: 2px; min-height: 40px; }
  .avatar { width: 32px; height: 32px; }
  .logout { padding: 4px 8px; font-size: 13px; min-height: 36px; }
  /* every main tab on screen: one row of equal tabs, or two rows of three for six */
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 10px 0 10px; padding: 3px; height: auto; flex-basis: 100%; overflow: visible; }
  .tabs:has(> :nth-child(6)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs button { padding: 6px 4px; font-size: 13.5px; min-height: 38px; overflow: hidden; text-overflow: ellipsis; }
  .vtabs button { padding: 8px 12px; font-size: 14px; }
  /* pop-ups fill the phone */
  .modal { padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); }
  .modal .mhead { top: -12px; padding-top: 4px; }
  /* the owner's strip: bigger targets, no second log out */
  .viewbar button, .viewbar label { min-height: 36px; }
  .viewbar label select { font-size: 16px; max-width: 120px; }
  .day .chip { min-height: 22px; font-size: 11px; padding: 3px 4px; }
  .banner .link { padding: 6px 4px; }
}
.solo .tabs { margin-left: 0; }

/* tables: on a phone, each row becomes a small block with its figures labelled (tables.js copies the labels) */
@media (max-width: 640px) {
  .tablewrap { overflow: visible; }
  .tablewrap table thead { display: none; }
  .tablewrap table, .tablewrap tbody, .tablewrap tfoot, .tablewrap tr { display: block; width: 100%; }
  .tablewrap tr { border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
  .tablewrap tfoot tr { border-bottom: 0; border-top: 2px solid var(--text); font-weight: 700; }
  .tablewrap td, .tablewrap tfoot th { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; padding: 3px 0; text-align: right; white-space: normal; }
  .tablewrap td::before, .tablewrap tfoot th::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; text-transform: none; letter-spacing: 0; }
  .tablewrap td:first-child, .tablewrap tfoot th:first-child { font-weight: 700; font-size: 15.5px; text-align: left; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
  .tablewrap td:first-child::before, .tablewrap tfoot th:first-child::before { display: none; }
  .tablewrap tfoot th { color: var(--text); font-size: 14.5px; }
  table.money tr.cur { background: var(--accent-soft); margin: 0 -10px; padding: 10px; width: calc(100% + 20px); }
  table.money tr.cur td { background: none; }
}
@media (max-width: 900px) {
  .topbar { position: static; }
  .viewbar label span { display: none; }
  .viewbar label select { max-width: 150px; }
}
@media (max-width: 400px) {
  .topbar .bar { gap: 6px; }
  .brand, .brand .wordmark { height: 24px; }
  .workspace button { padding: 4px 8px; }
  .logout { padding: 4px 6px; }
}
/* tap room for small links and toggles */
summary { min-height: 40px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
details.card > summary { margin: -6px 0; }
.list .item a[href^="tel:"], .list .item a[href*="maps"] { display: inline-block; padding: 6px 0; }
/* a long list of nights to tick: Save stays on screen */
@media (max-width: 900px) { #avails .row:has(#save) { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0; z-index: 5; border-top: 1px solid var(--line); } }
#look { margin-top: 16px; }
@media (max-width: 900px) {
  .vtabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: visible; }
  .vtabs:has(> :nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; border-bottom: 0; }
  .vtabs:has(> :nth-child(5)) button { border-bottom: 1px solid var(--line); border-radius: var(--radius-c); top: 0; }
  .vtabs button { padding: 8px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

/* ===================== roster: correction brief B and C, 23 Oct 2026 ===================== */
.rosterhead { align-items: center; }
.rosterhead h1 { font-size: 30px; font-weight: 750; }
.rosterhead p { font-size: 14px; line-height: 1.4; }
@media (min-width: 1000px) { .rosterhead .vpick { flex-basis: auto; order: 0; margin: 0 0 0 auto; } }
.toolbar { margin-bottom: 16px; }
.note-open { margin: 0 0 16px; font-size: 14px; color: var(--warn); font-weight: 600; }
.note-open::before { content: ""; display: inline-block; width: 8px; height: 8px; border: 1.5px dashed var(--warn); border-radius: 2px; margin-right: 8px; vertical-align: 0; }

/* the DJ in a row: reads as a name, becomes a field when you go to change it */
.rset select, .wev select { border-color: transparent; background-color: transparent; font-weight: 650; padding-left: 8px; }
.rset select:hover, .wev select:hover { border-color: var(--line); background-color: var(--sa-white, #fff); }
.rset select:focus, .wev select:focus { border-color: var(--accent); background-color: var(--sa-white, #fff); }
.rset.open select, .wev.open select { border: 1px dashed var(--warn); color: var(--warn); background-color: transparent; font-weight: 600; }
@media (min-width: 761px) { .rset { min-height: 64px; } }
.rcols { min-height: 36px; }
@media (min-width: 761px) {
  .rcols, .rset { grid-template-columns: 150px minmax(220px, 1fr) 140px 100px 100px 40px; }
  .rtable.oneroom .rcols, .rtable.oneroom .rset { grid-template-columns: 150px minmax(220px, 1fr) 100px 100px 40px; }
}
@media (max-width: 760px) { .rset select { border-color: var(--line); background-color: var(--sa-white, #fff); } }

/* Week: a rail of rooms and seven days. Each set keeps its own times. */
.week { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wrow, .wroom { display: grid; grid-template-columns: 120px repeat(7, minmax(0, 1fr)); }
.whead { border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; }
.wroom + .wroom { border-top: 1px solid var(--line); }
.wrail { padding: 12px 12px; font-size: 13.5px; border-right: 1px solid var(--line-soft); }
.wdh { display: flex; align-items: center; gap: 6px; padding: 8px 6px 8px 10px; font-size: 13.5px; border-left: 1px solid var(--line-soft); min-height: 44px; }
.whead > div:nth-child(2) .wdh { border-left: 0; }
.wdh b { font-weight: 700; }
.wdh.today { color: var(--accent); }
.wdh.today b::after { content: ""; }
.wcount { font-size: 11.5px; font-weight: 600; color: var(--warn); }
.wcount.full { color: var(--muted); }
.wadd { margin-left: auto; min-height: 28px; width: 28px; padding: 0; font-size: 18px; color: var(--muted); }
.wcell { padding: 6px; border-left: 1px solid var(--line-soft); min-width: 0; display: flex; flex-direction: column; gap: 6px; min-height: 72px; }
.wroom > .wcell:nth-child(2) { border-left: 0; }
.wcell.today { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.wev { border: 1px solid var(--line-soft); border-radius: var(--radius-c); background: var(--sa-white, #fff); padding: 6px 6px 7px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
:root[data-theme="dark"] .wev { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wev { background: var(--raised); } }
.wev.open { border-style: dashed; border-color: var(--warn); }
.wev.cx { opacity: .6; }
.wtop { display: flex; align-items: center; gap: 2px; }
.wev .t { font-size: 12.5px; font-weight: 600; padding: 2px 0; min-height: 0; white-space: normal; text-align: left; line-height: 1.25; color: var(--text); }
.wev .more { margin-left: auto; min-height: 24px; width: 24px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; }
.wev select { min-height: 32px; font-size: 13px; padding: 2px 22px 2px 4px; background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%; }
.wev .who { font-weight: 650; font-size: 13.5px; padding: 2px 4px; }
.wst { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wst .badge { font-size: 11px; padding: 0 6px; line-height: 18px; }
.wst .amt { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wagenda { display: none; }
/* narrower screens: the same week, a day at a time */
@media (max-width: 1100px) {
  .week { display: none; }
  .wagenda { display: block; }
  .wdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .wdays button { flex-direction: column; gap: 0; min-height: 64px; padding: 6px 2px; border-radius: var(--radius); background: var(--panel); }
  .wdays button span { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .wdays button b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .wdays button i { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
  .wdays button.today b { color: var(--accent); }
  .wdays button.on { background: var(--text); border-color: var(--text); color: var(--bg); }
  .wdays button.on span, .wdays button.on i, .wdays button.on.today b { color: var(--bg); }
  .wagenda .wev { padding: 10px 12px; gap: 6px; margin-bottom: 8px; background: var(--panel); border-color: var(--line); }
  .wagenda .wev .t { font-size: 15px; }
  .wagenda .wev select { min-height: 42px; font-size: 16px; border-color: var(--line); background-color: var(--sa-white, #fff); }
  .wagenda .wev .badge { font-size: 12.5px; line-height: 20px; padding: 1px 8px; }
  .wagenda .wev .amt { font-size: 13.5px; }
}
.rset .who select { max-width: 340px; }

/* ===================== closer to the board, 24 Oct 2026 ===================== */
/* status pills are round, as on the board: Booked in cobalt, Open in grey */
.badge { border-radius: var(--radius); padding: 1px 10px; }
.badge.open { border-style: dashed; }
.badge.pill { font-size: 11.5px; line-height: 18px; padding: 1px 10px; }
.badge.pill.open { background: var(--raised); color: var(--muted); border: 0; }
/* bolder page titles */
h1 { font-weight: 850; letter-spacing: -0.04em; }
.pagehead h1, .rosterhead h1 { font-size: 34px; }
@media (max-width: 640px) { .pagehead h1, .rosterhead h1 { font-size: 28px; } }

/* the board: rooms and times down the left, a column per night */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brow { display: grid; }
.brow > div { border-left: 1px solid var(--line-soft); min-width: 0; }
.brow > div:first-child { border-left: 0; }
.bhead { border-bottom: 1px solid var(--line); }
.bdh { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; height: 52px; font-size: 15px; }
.bdh b { font-weight: 750; margin-right: 6px; }
.bdh.today { color: var(--accent); }
.brail { padding: 0 14px; display: flex; align-items: center; font-size: 13.5px; }
.bhead .brail { padding: 0 10px; }
.broom { border-top: 1px solid var(--line); }
.bhead + .broom { border-top: 0; }
.broom > div { min-height: 44px; }
.broom .brail { padding-top: 12px; align-items: flex-start; }
.broom .brail b { font-size: 14px; font-weight: 700; }
.bslot { border-top: 1px solid var(--line-soft); }
.btime { font-variant-numeric: tabular-nums; font-size: 13.5px; white-space: nowrap; color: var(--text); }
.bslotcell { padding: 0; min-height: 68px; }
.bslotcell.today { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.bcell { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 14px; min-height: 68px; }
.bcell + .bcell { border-top: 1px dashed var(--line-soft); }
.bcell .pic { width: 36px; height: 36px; border-radius: 3px; font-size: 12.5px; }
.bcell .pic.none { background: transparent; border: 1px dashed var(--line); color: var(--muted); display: inline-grid; place-items: center; font-weight: 600; }
.bwho { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bname { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcell.open .bname { color: var(--muted); font-weight: 500; }
.bcell.cx .bname { text-decoration: line-through; color: var(--faint); }
/* the DJ name is the picker: a native list laid over it, so tapping the name opens the DJs to choose from */
.bpick { position: relative; display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; color: var(--text); font-size: inherit; font-weight: inherit; border-radius: 3px; cursor: pointer; }
.bpick svg { width: 10px; height: 10px; flex: none; color: var(--muted); }
.bpick select { position: absolute; inset: -4px; width: calc(100% + 8px); height: auto; min-height: 0; opacity: 0; cursor: pointer; font-size: 16px; margin: 0; padding: 0; border: 0; }
.bpick:hover .bname { text-decoration: underline; text-underline-offset: 3px; }
.bpick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bmeta .amt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcell .more { min-height: 32px; width: 32px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 16px; letter-spacing: 1px; flex: none; }
.bcell .more:hover { color: var(--text); background: var(--raised); }
.board .link.small { font-size: 12.5px; padding: 4px 0; }
/* phones and narrow windows: one day at a time */
@media (max-width: 1100px) {
  .board { display: none; }
  .aroom { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
  .arow { border-top: 1px solid var(--line-soft); padding: 10px 0 0 14px; }
  .arow .btime { font-size: 14px; font-weight: 600; }
  .arow .bcell { padding-left: 0; min-height: 60px; }
  .arow .bname { font-size: 16px; }
}
/* the DJ in a List row gets their face too */
.rset .who { display: flex; align-items: center; gap: 10px; }
.rset .who .pic { width: 32px; height: 32px; font-size: 11.5px; }
.rset .who .pic.none { background: transparent; border: 1px dashed var(--line); color: var(--muted); display: inline-grid; place-items: center; font-weight: 600; }
/* Shows: one row per booking, the board's way: date, artist with their colour, set time, venue, what is still to do */
.slist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scols, .srow { display: grid; grid-template-columns: 64px minmax(200px, 1.3fr) 150px minmax(160px, 1fr) minmax(200px, 1.4fr); gap: 0 18px; align-items: center; padding: 0 16px; }
.scols { min-height: 36px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.srow { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; min-height: 72px; padding-top: 10px; padding-bottom: 10px; font-weight: 400; }
.scols + .srow { border-top: 0; }
.srow:hover { background: var(--raised); border-color: var(--line-soft); }
.srow.cx { opacity: .65; }
.srow.cx .bname { text-decoration: line-through; }
.sdate { display: flex; flex-direction: column; align-items: center; line-height: 1.05; border-right: 1px solid var(--line-soft); padding-right: 14px; }
.sdate span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sdate b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 1px 0; }
.sartist { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sartist .pic { border-radius: 3px; font-size: 12.5px; }
.stime { font-variant-numeric: tabular-nums; font-size: 14px; }
.svenue { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.svenue b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sissues { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 900px) {
  .scols { display: none; }
  .srow { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "d a" "d t" "d v" "d i"; gap: 4px 12px; padding: 12px 14px; }
  .srow .sdate { grid-area: d; align-self: start; } .srow .sartist { grid-area: a; } .srow .stime { grid-area: t; } .srow .svenue { grid-area: v; } .srow .sissues { grid-area: i; }
}
/* Advancing and Avails rows: the date as a block, then the detail */
.advrow, .avrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; gap: 0 18px; padding: 16px; border-top: 1px solid var(--line-soft); align-items: start; }
.avrow { grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
.slist > .advrow:first-child, .slist > .avrow:first-child { border-top: 0; }
.ahead { display: flex; align-items: center; gap: 12px; }
.ahead .bwho { flex: 1; }
.ahead .pic { border-radius: 3px; }
.miss { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.miss b { color: var(--warn); margin-right: 6px; }
.adue { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.adue span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.adue b { font-size: 15px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip2 { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--sa-white, #fff); font-size: 13px; font-weight: 600; }
:root[data-theme="dark"] .chip2 { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip2 { background: var(--raised); } }
.chip2 .pic { border-radius: var(--radius-c); font-size: 9.5px; }
@media (max-width: 760px) {
  .advrow { grid-template-columns: 52px minmax(0, 1fr); padding: 14px; }
  .adue { grid-column: 2; text-align: left; flex-direction: row; gap: 8px; align-items: baseline; margin-top: 10px; }
  .avrow { grid-template-columns: 52px minmax(0, 1fr); padding: 12px 14px; }
}
/* the DJ's gigs as one schedule, the board's way: joined rows on one surface */
#gigs .card.gig, #avails .card.gig { border-radius: 0; margin-top: -1px; }
#gigs .sect + .card.gig, #avails .sect + .card.gig { border-radius: var(--radius) var(--radius) 0 0; margin-top: 0; }
#gigs .card.gig:not(:has(+ .card.gig)), #avails .card.gig:not(:has(+ .card.gig)) { border-radius: 0 0 var(--radius) var(--radius); }
#gigs .sect + .card.gig:not(:has(+ .card.gig)), #avails .sect + .card.gig:not(:has(+ .card.gig)) { border-radius: var(--radius); }
.card.gig + .card.gig { margin-top: -1px; }
.gtop .gtime { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.profile h1 { font-weight: 850; letter-spacing: -0.04em; }
.next .nhead h2 { font-weight: 800; }
.next .settime b { font-weight: 850; }
.solo .topbar .bar { max-width: 820px; }
.lineup { margin-top: 6px; }
.lineup summary { min-height: 34px; list-style: none; }
.lineup summary::-webkit-details-marker { display: none; }
.lineup summary::before { content: ""; width: 0; height: 0; border: 5px solid transparent; border-left: 6px solid currentColor; margin-right: 2px; transition: transform .15s; }
.lineup[open] summary::before { transform: rotate(90deg) translateX(2px); }
.card.gig p:has(> [data-cant]) { margin: 0 !important; }
.card.gig [data-cant] { padding: 6px 0; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: ""; width: 0; height: 0; border: 5px solid transparent; border-left: 6px solid currentColor; margin-right: 4px; }
details.card[open] > summary::before { transform: rotate(90deg) translateX(2px); }

/* ===================== phone density, 24 Oct 2026 =====================
   Matt: "everythits too big. so you gotta scroll alot. make things feel like the fit on screen better". On a phone the
   type, gaps and paddings come down a step, times never wrap, and the chrome above the content stays short. */
@media (max-width: 640px) {
  body { font-size: 14px; }
  h1 { font-size: 24px !important; letter-spacing: -0.03em; }
  h2 { font-size: 17px; } h3 { font-size: 15px; }
  .small, .sub, .item .sub { font-size: 12.5px; }
  main { padding: 14px 12px 48px; }
  .topbar { padding: env(safe-area-inset-top) 12px 0; }
  .topbar .bar { padding-top: 8px; }
  .tabs { margin: 8px 0; }
  .tabs button { min-height: 34px; font-size: 13px; padding: 4px 2px; }
  .banner { padding: 6px 12px; font-size: 12.5px; }
  .pagehead { margin-bottom: 12px; gap: 8px; }
  .pagehead p { font-size: 13px; margin-top: 2px; }
  .card { padding: 12px; }
  .card + .card { margin-top: 10px; }
  .list .item, .item { padding: 10px 12px; min-height: 48px; gap: 10px; }
  .item .title { font-size: 14.5px; }
  button, .btn { font-size: 13.5px; padding: 6px 12px; min-height: 38px; }
  .sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
  label { font-size: 12.5px; }
  input, select, textarea { min-height: 40px; padding: 7px 10px; }
  .sect { margin: 18px 0 8px; font-size: 11.5px; }
  .toolbar { gap: 6px; margin-bottom: 10px; }
  .stepper button { min-width: 34px; min-height: 34px; }
  .stepper .label { min-width: 0; padding: 0 10px; font-size: 13.5px; }
  .seg button { min-height: 34px; padding: 4px 12px; font-size: 13px; }
  .badge, .badge.pill { font-size: 11px; line-height: 16px; padding: 1px 8px; }
  .vtabs button { min-height: 36px; padding: 6px 4px; font-size: 13px; }
  .modal { padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); }
  .modal .mhead h2 { font-size: 17px; }
  .xbtn { width: 38px; height: 38px; min-height: 38px; }
  .stack { gap: 10px; }
  .grid2, .grid3 { gap: 10px; }
  .empty { padding: 24px 12px; }
  /* the owner's demo strip: one short row */
  .viewbar { padding: 4px 8px; }
  .viewbar .vbin { flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .viewbar .vbin::-webkit-scrollbar { display: none; }
  .viewbar .lab { display: none !important; }
  .viewbar button, .viewbar label { min-height: 32px; padding: 2px 8px; font-size: 12.5px; flex: none; }
  .viewbar label select { font-size: 16px; max-width: 108px; transform: scale(.82); transform-origin: left center; margin-right: -18px; }
  .viewbar .ro { font-size: 11.5px; white-space: nowrap; margin-left: 2px; }
  /* DJ and artist pages: a compact hello */
  .profile { gap: 12px; margin-bottom: 14px; }
  .profile .photo .pic { width: 52px !important; height: 52px !important; font-size: 18px !important; }
  .profile .photo .edit { font-size: 9.5px; padding: 1px 0; }
  .profile h1 { font-size: 22px !important; }
  .profile .co { font-size: 12px; margin: 0; }
  /* a gig: date block, then time and pay on one line */
  .card.gig { grid-template-columns: 44px minmax(0, 1fr); gap: 0 10px; padding: 10px 12px; }
  .gdate { padding-right: 8px; }
  .gdate b { font-size: 20px; }
  .gdate span { font-size: 10px; }
  .gtop { gap: 8px; }
  .gtop .gtime { font-size: 15.5px !important; white-space: nowrap; }
  .gtop .badge { margin-left: auto; }
  .gwhere { font-size: 13px; }
  .lineup { margin-top: 2px; }
  .lineup summary { min-height: 30px; font-size: 12.5px; }
  .card.gig .row { margin-top: 6px !important; gap: 6px; }
  /* roster list rows */
  .rnight { margin-bottom: 16px; }
  .rnight .rhead { margin-bottom: 6px; gap: 6px; }
  .rnight .rhead h3 { font-size: 15px; }
  .rset, .rtable.oneroom .rset { padding: 8px 6px 8px 10px; gap: 2px 8px; }
  .rset .t { font-size: 14px; }
  .rset select { min-height: 36px; }
  .note-open { font-size: 12.5px; margin-bottom: 10px; }
  /* week agenda */
  .wdays { gap: 3px; }
  .wdays button { min-height: 52px; padding: 4px 1px; }
  .wdays button b { font-size: 16px; }
  .wdays button i { font-size: 9.5px; }
  .aroom { margin-bottom: 8px; }
  .arow { padding: 8px 0 0 10px; }
  .arow .bcell { min-height: 52px; padding: 6px 4px 8px 0; gap: 10px; }
  .arow .bname { font-size: 15px; }
  .bcell .pic { width: 32px !important; height: 32px !important; }
  /* shows, advancing, avails rows */
  .srow { grid-template-columns: 44px minmax(0, 1fr); padding: 10px 12px; gap: 2px 10px; min-height: 0; }
  .sdate b { font-size: 18px; } .sdate span { font-size: 10px; } .sdate { padding-right: 8px; }
  .sartist { gap: 8px; } .sartist .pic { width: 28px !important; height: 28px !important; font-size: 10.5px !important; }
  .stime, .svenue { font-size: 12.5px; }
  .svenue { flex-direction: row; gap: 6px; }
  .sissues .badge { font-size: 10.5px; }
  .advrow, .avrow { grid-template-columns: 44px minmax(0, 1fr); padding: 10px 12px; gap: 0 10px; }
  .ahead { gap: 8px; } .ahead .pic { width: 28px !important; height: 28px !important; }
  .miss { font-size: 12.5px; }
  .chip2 { font-size: 12px; padding: 2px 8px 2px 2px; }
  /* calendars */
  .day { min-height: 50px; padding: 4px; }
  .day .n { font-size: 13px; }
  .cal .dow { padding: 4px; font-size: 10.5px; }
  /* tables as blocks: tighter */
  .tablewrap tr { padding: 6px 0; }
  .tablewrap td, .tablewrap tfoot th { padding: 1px 0; font-size: 13px; }
  .tablewrap td:first-child, .tablewrap tfoot th:first-child { font-size: 14px; }
  .tablewrap td::before, .tablewrap tfoot th::before { font-size: 12px; }
  /* the artist's next show */
  .next .nhead { margin-bottom: 8px; gap: 10px; }
  .next .nhead h2 { font-size: 17px !important; }
  .next .settime b { font-size: 17px; }
  .next .settime span { font-size: 10px; }
  .list.tight .item { padding: 6px 10px; min-height: 0; }
  .doc .item .lab, .list.tight .faint { width: 84px !important; font-size: 12.5px; }
}
.gacts { display: flex; align-items: flex-start; gap: 4px 18px; flex-wrap: wrap; margin-top: 4px; }
.gacts .lineup { margin-top: 0; }
.gacts .lineup[open] { flex-basis: 100%; }
.gacts [data-cant] { font-size: 13px; padding: 7px 0; color: var(--muted); }
.lineup summary { font-size: 13px; }
.only-sm { display: none !important; }
.stepper .label { background: none; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; min-height: 38px; cursor: pointer; color: var(--text); }
.rtitle { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .only-sm { display: inline-flex !important; }
  .not-sm { display: none !important; }
  .rtitle .only-sm { margin-left: auto; }
  .rosterhead { margin-bottom: 8px; }
  .rosterhead .vpick { margin-top: 2px; }
  .toolbar .seg { margin-left: auto; }
  .arow { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 0 0 10px; }
  .arow .btime { font-size: 13px; font-weight: 700; line-height: 1.2; }
  .arow .btime .faint { font-weight: 500; }
  .arow .bcell { border-top: 0; }
}

@media (max-width: 640px) {
  /* a list row: picture and name on top, its pills underneath instead of squeezing the name */
  .list .item:has(> .pic) { flex-wrap: wrap; row-gap: 4px; }
  .list .item:has(> .pic) > .main { flex: 1 1 calc(100% - 52px); }
  .list .item > .pic + .main + .badge, .list .item > .main:first-child + .badge { margin-left: 42px; }
  .list .item > .main:first-child + .badge { margin-left: 0; }
  .item .sub { overflow-wrap: anywhere; }
  /* stacked tables: two figures a line */
  .tablewrap tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
  .tablewrap td:first-child, .tablewrap tfoot th:first-child { grid-column: 1 / -1; margin-bottom: 2px; }
  .tablewrap tfoot th[colspan] { grid-column: 1 / -1; }
  /* invoices and other button rows: smaller buttons */
  .item .row button, .item .row .btn { min-height: 32px; padding: 4px 10px; font-size: 13px; }
  .avrow .chips { margin-top: 2px; }
}
.day .chip .ini { display: none; }
@media (max-width: 640px) {
  /* the agency calendar: initials in the artist's colour, the full names are in the list below */
  .day .chip { text-align: center; padding: 2px 0; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
  .day .chip .full, .day .chip .cl { display: none; }
  .day .chip .ini { display: inline; }
  .day .chip.art.hold .ini::after { content: "?"; }
  .chip.away { font-size: 9.5px; }
  /* shows: name and pill on one line, then time and venue on one line */
  .srow { grid-template-columns: 44px auto minmax(0, 1fr); grid-template-areas: "d a a" "d t v" "d i i"; column-gap: 10px; }
  .srow .sartist .bwho { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
  .srow .stime { font-weight: 600; }
  .srow .svenue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .srow .svenue b, .srow .svenue span { display: inline; }
  .srow .svenue span::before { content: " \00b7 "; }
  .sissues { margin-top: 2px; gap: 3px; }
  /* advancing: what is missing, in two lines at most */
  .miss { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .advrow .row button { font-size: 12.5px; padding: 4px 9px; min-height: 32px; }
  .advrow .sub { font-size: 12.5px; }
  .adue span { font-size: 10px; } .adue b { font-size: 13px; }
  /* payments: the four ticks on one line */
  .item .check { font-size: 12px; gap: 5px; }
  .item .check input { width: 17px; height: 17px; }
  .item .row:has(> .check) { gap: 4px 12px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .day .chip.art .cl, .day .chip.art.cx .cl { display: none; }
  .srow .svenue span::before { content: " \00b7  "; white-space: pre; }
  .item .row:has(> .check) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .item .row:has(> .check) .check { font-size: 11.5px; gap: 4px; white-space: nowrap; }
  .item .row:has(> .check) .check input { width: 16px; height: 16px; flex: none; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .tile { min-height: 48px; padding: 4px 2px; font-size: 13px; }
  .tile b { font-size: 11px; }
}

@media (max-width: 640px) {
  .next .settime b { white-space: nowrap; font-size: 16px; }
  .list .item > .faint:first-child { width: 84px !important; font-size: 12px; flex: none; }
  .list .item { align-items: flex-start; }
  .list .item:has(> .pic) { align-items: center; }
}

@media (max-width: 640px) {
  /* advancing on a phone: the pill says where it is up to, so the sentence goes; one line of what is missing */
  .advrow .amain > .sub { display: none; }
  .miss { -webkit-line-clamp: 1; margin-top: 4px; }
  .advrow .row { margin-top: 8px !important; }
  .advrow { padding: 10px 12px 8px; }
  .adue { margin-top: 6px; }
  .rset .who .pic { width: 28px; height: 28px; }
}

/* ===================== second review, 24 Oct 2026 ===================== */
/* main sections: words with a cobalt underline under the one you are on (segmented controls are kept for
   Venue/Agency and Week/List/Month) */
.tabs { background: none; border: 0; padding: 0; border-radius: 0; align-self: stretch; gap: 4px; }
.tabs button { border-radius: 0; min-height: 0; height: 100%; padding: 0 12px; color: var(--muted); font-weight: 600; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); background: none; border-bottom-color: var(--line); }
.tabs button.on { background: none; color: var(--text); border-bottom: 2px solid var(--accent); }
.navbtn { display: none; }
@media (max-width: 900px) {
  .tabs { margin: 0 -16px; padding: 0 8px; height: 44px; display: flex; flex-basis: 100%; overflow-x: auto; }
  .tabs button { height: 44px; flex: none; padding: 0 12px; }
}
@media (max-width: 640px) {
  /* six sections fold into one labelled button */
  .navbtn { display: inline-flex; order: 9; flex-basis: 100%; justify-content: space-between; align-items: center; margin: 8px 0; min-height: 40px; padding: 0 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-c); font-weight: 700; font-size: 15px; color: var(--text); }
  .navbtn::before { content: "Section"; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: auto; order: -1; display: none; }
  .navbtn svg { width: 12px; height: 12px; color: var(--muted); }
  .navbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .tabs:has(> :nth-child(6)) { display: none; }
  .tabs:has(> :nth-child(6)).open { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; height: auto; margin: 0 0 8px; padding: 0; order: 10; }
  .tabs:has(> :nth-child(6)).open button { height: 40px; border: 1px solid var(--line); border-radius: var(--radius-c); background: var(--panel); justify-content: flex-start; padding: 0 12px; margin: 0; }
  .tabs:has(> :nth-child(6)).open button.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); color: var(--text); }
  /* three or five sections (the DJ and artist apps) still fit across */
  .tabs:not(:has(> :nth-child(6))) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 40px; margin: 4px 0 0; padding: 0; overflow: visible; }
  .tabs:not(:has(> :nth-child(6))) button { height: 40px; padding: 0 2px; font-size: 13.5px; }
}
.viewbar .vbtoggle { display: none; }
@media (max-width: 640px) {
  .viewbar .vbtoggle { display: inline-flex; background: none; border: 1px dashed #4a4e56; color: #c9cbc6; font-size: 12px; min-height: 28px; padding: 2px 10px; }
  .viewbar.collapsed { padding: 3px 8px; }
  .viewbar.collapsed .vbin > :not(.vbtoggle) { display: none !important; }
  .viewbar:not(.collapsed) .vbtoggle { border-style: solid; }
}
/* payments: this month at a glance */
.mstrip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.mstrip .mlab { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex-basis: 100%; margin-bottom: -2px; }
.mstrip > span:not(.mlab) { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.mstrip b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mstrip .owe b { color: var(--accent); }
details.monthly > summary { font-size: 15px; }
details.monthly[open] > summary { margin-bottom: 8px; }
/* advancing: what is still to come, short until you open it; quieter secondary actions */
.missd { margin-top: 6px; font-size: 13.5px; }
.missd summary { min-height: 30px; cursor: pointer; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.missd summary b { color: var(--warn); font-weight: 700; }
.missd summary span { min-width: 0; }
.missd[open] summary span { display: none; }
.missd ul { margin: 4px 0 0; padding-left: 18px; color: var(--text); columns: 2; column-gap: 24px; }
.missd li { margin: 2px 0; break-inside: avoid; }
button.quiet { background: transparent; border-color: var(--line); color: var(--text); font-weight: 600; }
button.quiet:hover { background: var(--panel); }
.callegend { margin: 0; padding: 8px 12px; border-top: 1px solid var(--line-soft); }
/* the week board: today in a quiet blue grey, not lavender */
.bslotcell.today, .wcell.today { background: #EEF1F5; }
:root[data-theme="dark"] .bslotcell.today { background: #1B2029; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bslotcell.today { background: #1B2029; } }
/* the roster head: the venue tabs right under the title, dates and views together under those */
.rosterhead { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 14px; }
.rosterhead .vpick { order: 0 !important; margin: 8px 0 0 !important; flex-basis: auto !important; }
.rosterhead + .toolbar { margin-bottom: 14px; }
.pagehead { margin-bottom: 16px; }
@media (max-width: 640px) {
  .day .fill .lbl { display: none; }
  .day .fill { font-size: 11px; font-weight: 700; }
  .mstrip { padding: 10px 12px; gap: 4px 16px; }
  .mstrip b { font-size: 15px; }
  .mstrip > span:not(.mlab) { font-size: 11px; }
  .missd ul { columns: 1; }
  .advrow .row button { font-size: 12px; }
}
.seg.mini button { min-height: 26px; padding: 2px 8px; font-size: 11.5px; }

/* ===================== a smaller scale everywhere, 24 Oct 2026 =====================
   Matt: "all of this doesnt need to be so big. everything is so big". The whole app steps down a size at every width,
   and the phone layout (section menu, one-row toolbar, compact rows) starts at 900px, not 640px. */
body { font-size: 14px; }
h1 { font-size: 26px; }
.pagehead h1, .rosterhead h1 { font-size: 26px; }
h2 { font-size: 17px; } h3 { font-size: 15px; }
button, .btn { font-size: 13.5px; min-height: 34px; padding: 5px 12px; }
.sm { min-height: 30px; padding: 3px 10px; font-size: 13px; }
input, select, textarea { min-height: 36px; padding: 6px 10px; font-size: 14px; }
label { font-size: 12.5px; }
.topbar .bar { min-height: 52px; gap: 22px; }
.brand, .brand .wordmark { height: 28px; }
.tabs button { font-size: 13.5px; padding: 0 10px; }
.workspace button { min-height: 30px; padding: 3px 12px; font-size: 13px; }
.avatar { width: 30px; height: 30px; font-size: 11.5px; }
.banner { padding: 6px 32px; font-size: 12.5px; }
main { padding-top: 18px; }
.pagehead { margin-bottom: 12px; }
.pagehead p { font-size: 13px; margin-top: 2px; }
.rosterhead { margin-bottom: 10px; gap: 2px; }
.rosterhead .vpick { margin-top: 6px !important; }
.vtabs button { min-height: 32px; padding: 4px 14px; font-size: 13px; }
.toolbar { gap: 6px; margin-bottom: 12px; }
.stepper button { min-height: 32px; min-width: 32px; font-size: 16px; }
.stepper .label { min-height: 32px; min-width: 0; padding: 0 12px; font-size: 13.5px; }
.seg button { min-height: 30px; padding: 3px 12px; font-size: 13px; }
.card { padding: 14px 16px; }
.item { padding: 10px 14px; min-height: 48px; }
.badge { font-size: 11.5px; line-height: 18px; }
.sect { margin: 22px 0 10px; font-size: 11.5px; }
.bdh { height: 44px; font-size: 14px; }
.bcell { min-height: 58px; padding: 8px 6px 8px 12px; }
.bcell .pic { width: 32px; height: 32px; }
.bname { font-size: 14px; }
.wdays button { min-height: 46px; padding: 3px 1px; }
.wdays button b { font-size: 16px; }
.wdays button span { font-size: 10.5px; }
.wdays button i { font-size: 9.5px; }
.profile .photo .pic { width: 60px !important; height: 60px !important; font-size: 20px !important; }
.profile h1 { font-size: 26px; }
.modal .mhead h2 { font-size: 17px; }

@media (max-width: 1100px) {
  /* the week shows a day at a time here, so Scheduled / All 7 days does nothing: hide it */
  .toolbar [data-alld] { display: none; }
  .toolbar .seg:has([data-alld]) { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 14px; }
  main { padding: 12px 12px 48px; }
  .topbar { padding: env(safe-area-inset-top) 12px 0; }
  .banner { padding: 5px 12px; }
  .only-sm { display: inline-flex !important; }
  .not-sm { display: none !important; }
  .rtitle .only-sm { margin-left: auto; }
  .toolbar .seg { margin-left: auto; }
  .pagehead h1, .rosterhead h1, h1 { font-size: 22px !important; }
  /* six sections fold into one labelled button */
  .navbtn { display: inline-flex; order: 9; flex-basis: 100%; justify-content: space-between; align-items: center; margin: 6px 0; min-height: 36px; padding: 0 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-c); font-weight: 700; font-size: 14px; color: var(--text); }
  .navbtn svg { width: 12px; height: 12px; color: var(--muted); }
  .navbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .tabs:has(> :nth-child(6)) { display: none; }
  .tabs:has(> :nth-child(6)).open { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4px; height: auto; margin: 0 0 6px; padding: 0; order: 10; }
  .tabs:has(> :nth-child(6)).open button { height: 36px; border: 1px solid var(--line); border-radius: var(--radius-c); background: var(--panel); justify-content: flex-start; padding: 0 10px; margin: 0; }
  .tabs:has(> :nth-child(6)).open button.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); color: var(--text); }
  .tabs:not(:has(> :nth-child(6))) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 38px; margin: 2px 0 0; padding: 0; overflow: visible; }
  .tabs:not(:has(> :nth-child(6))) button { height: 38px; padding: 0 2px; font-size: 13px; }
  /* the demo strip folds away */
  .viewbar .vbtoggle { display: inline-flex; background: none; border: 1px dashed #4a4e56; color: #c9cbc6; font-size: 12px; min-height: 26px; padding: 2px 10px; }
  .viewbar.collapsed { padding: 3px 8px; }
  .viewbar.collapsed .vbin > :not(.vbtoggle) { display: none !important; }
  .viewbar .lab { display: none !important; }
  /* the week, a day at a time: compact rows with the time beside the DJ */
  .arow { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 0 0 10px; }
  .arow .btime { font-size: 13px; font-weight: 700; line-height: 1.2; }
  .arow .btime .faint { font-weight: 500; }
  .arow .bcell { min-height: 50px; padding: 6px 4px 6px 0; }
  .arow .bname { font-size: 14.5px; }
  .aroom .sect { padding: 8px 12px 6px !important; }
  .vtabs button { min-height: 32px; font-size: 12.5px; }
  .wdays { gap: 3px; }
  .wdays button { min-height: 44px; }
  .profile { gap: 10px; margin-bottom: 12px; }
  .profile .photo .pic { width: 48px !important; height: 48px !important; font-size: 16px !important; }
  .profile .photo .edit { font-size: 9px; padding: 1px 0; }
  .profile h1 { font-size: 20px !important; }
  .profile .co { font-size: 11.5px; margin: 0; }
}
@media (max-width: 900px) { input, select, textarea { font-size: 16px; } }
/* venues sit above the venue's name, on every screen that has them */
.vpick { margin: 0 0 14px; }
.pagehead .vpick { order: -1 !important; flex-basis: 100% !important; margin: 0 0 6px !important; }
.rtitle .link { font-size: 13.5px; padding: 4px 0; margin-left: 8px; }
.toolbar .link.small { font-size: 13px; padding: 4px 6px; }
.bhead .brail .link.small { font-size: 12px; white-space: nowrap; }
@media (max-width: 900px) { .rtitle .link { margin-left: auto; } .vpick { margin-bottom: 10px; } }
/* the List on a phone: two lines a set, the time down the left like the day agenda */
@media (max-width: 760px) {
  .rset, .rtable.oneroom .rset { grid-template-columns: 50px auto auto minmax(0, 1fr) 32px; grid-template-areas: "t who who who more" "t st room amt more"; gap: 2px 8px; padding: 8px 4px 8px 10px; align-items: center; min-height: 0; }
  .rset .t { grid-area: t; white-space: normal; font-size: 13px; font-weight: 700; line-height: 1.25; align-self: center; }
  .rset .who { grid-area: who; } .rset .st { grid-area: st; justify-content: flex-start; } .rset .room { grid-area: room; font-size: 12px; }
  .rset .amt { grid-area: amt; text-align: right; font-size: 12px; color: var(--muted); } .rset .more { grid-area: more; }
  .rtable.oneroom .rset { grid-template-areas: "t who who who more" "t st amt amt more"; }
  .rset .who .pic { width: 26px !important; height: 26px !important; font-size: 10px !important; }
  .rset select { min-height: 32px; font-size: 16px; padding: 2px 24px 2px 6px; border-color: transparent; background-color: transparent; }
  .rset.open select { border: 1px dashed var(--warn); }
  .rnight .rhead .link { margin-left: auto; }
}

/* ===================== dashboards and venue buttons, 24 Oct 2026 ===================== */
/* each section opens with what it is for, what you can do, and a few live numbers */
.dashwrap { max-width: 1280px; margin: 0 auto; padding: 18px 32px 0; }
.dash { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; }
.dash:empty { display: none; }
.deyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dash h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.dcan { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.dcan li { display: inline-flex; align-items: center; gap: 7px; }
.dcan li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.dstats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.dstat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-c); background: var(--bg); min-width: 0; }
.dstat b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dstat span { font-size: 12px; color: var(--muted); }
.dstat.warn b { color: var(--warn); }
.dstat.good b { color: var(--accent); }
main { padding-top: 16px; }
/* the section's own title and blurb would repeat the dashboard: keep only its buttons */
.dashwrap:not(.hidden) ~ main .pagehead:not(.rosterhead) > div:first-child { display: none; }
.dashwrap:not(.hidden) ~ main .pagehead:not(.rosterhead) { justify-content: flex-end; margin-bottom: 10px; }
.dashwrap:not(.hidden) ~ main .pagehead:not(.rosterhead):not(:has(button, .btn, .vpick)) { display: none; }
.dashwrap:not(.hidden) ~ main .rosterhead p { display: none; }

/* venues as brand buttons: the one you are on in cobalt, no rule underneath */
.vtabs { border-bottom: 0 !important; gap: 8px; padding: 0; }
.vtabs button { border: 1px solid var(--accent) !important; border-radius: var(--radius-c) !important; background: var(--panel) !important; color: var(--accent) !important;
  font-weight: 700; min-height: 36px; padding: 6px 16px; top: 0 !important; box-shadow: none !important; margin: 0; }
.vtabs button:hover { background: var(--accent-soft) !important; }
.vtabs button.on { background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: 0 2px 0 var(--accent-hover) inset, 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent) !important; }
.vpick { margin: 0 0 16px; }
/* switching venue keeps the page in place while the next one arrives */
main.loading > * { opacity: .45; transition: opacity .15s; pointer-events: none; }

@media (max-width: 900px) {
  .dashwrap { padding: 10px 12px 0; }
  .dash { grid-template-columns: 1fr; gap: 10px; padding: 10px 12px; border-left-width: 3px; }
  .dash h2 { font-size: 15px; margin: 0; }
  .deyebrow { font-size: 10.5px; margin-bottom: 2px; }
  .dcan { display: none; }
  .dstat { padding: 6px 8px; }
  .dstat b { font-size: 16px; }
  .dstat span { font-size: 10.5px; }
  .vtabs { gap: 5px; }
  .vtabs button { min-height: 32px; padding: 4px 6px; font-size: 12.5px; }
  main { padding-top: 10px; }
}
.card.updates { border-color: var(--warn); background: var(--warn-soft); margin-bottom: 14px; }
.upd { margin: 6px 0 0; font-size: 13.5px; }
.upd .badge { margin-right: 6px; }

/* ===================== page intro, 24 Oct 2026 =====================
   Matt: "more like a dashboard of just like what this page is and what you do ... a little bit less AI". The page's name and
   what it is for on the left, how to use it on the right. Numbers only where a money snapshot is the point (Timesheets). */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 40px; align-items: start; background: none; border: 0; border-left: 0;
  border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 0 16px; }
.dash.withnums { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.dash.withnums .dstats { grid-column: 1 / -1; }
.dash .dtext h2 { font-size: 26px; font-weight: 850; letter-spacing: -0.035em; margin: 0 0 2px; }
.dash .dline { margin: 0; font-size: 14px; color: var(--muted); }
.dash .dhow { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text); max-width: 62ch; }
.deyebrow, .dcan { display: none; }
.dstat { background: var(--panel); border: 1px solid var(--line-soft); }
@media (max-width: 900px) {
  .dash, .dash.withnums { grid-template-columns: 1fr; gap: 2px; padding: 0 0 10px; }
  .dash .dtext h2 { font-size: 20px; }
  .dash .dline { font-size: 12.5px; }
  .dash .dhow { display: none; }
}
/* venues: a size bigger */
.vtabs button { min-height: 42px !important; padding: 8px 22px !important; font-size: 14.5px !important; }
@media (max-width: 900px) { .vtabs button { min-height: 36px !important; padding: 5px 8px !important; font-size: 13px !important; } }
/* the List: the DJ's name is the button */
.rset .who .bpick { flex: 1; min-height: 34px; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--radius-c); }
.rset .who .bpick:hover { border-color: var(--edge, var(--line)); background: color-mix(in srgb, var(--text) 6%, transparent); }  /* was white: in dark mode the name vanished (Matt, 18 Nov 2026) */
.rset .who .bpick .bname { font-weight: 650; }
.rset.open .who .bpick { border: 1px dashed var(--warn); }
.rset.open .who .bpick .bname { color: var(--warn); font-weight: 600; }
.rset .who .bpick select { inset: 0; width: 100%; }
/* Month: an X on each set to cancel it */
.item.nset { padding: 0; align-items: stretch; }
.item.nset .nopen { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; border-radius: 0; text-align: left; min-height: 0; font-weight: 400; }
.item.nset .nopen:hover { background: var(--raised); }
.item.nset.cx .title { text-decoration: line-through; color: var(--faint); }
.xset { width: 40px; min-height: 0; padding: 0; border: 0; border-left: 1px solid var(--line-soft); border-radius: 0; background: none; color: var(--muted); }
.xset svg { width: 14px; height: 14px; }
.xset:hover { color: var(--bad); background: var(--bad-soft); }
/* avails: the app is where DJs tick nights */
.card.appnote { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.card.appnote > div { flex: 1; font-size: 14px; }
.commbox { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
/* the DJ app and artist page before their super fund is in (public/super.js gate) */
body.gated .tabs, body.gated .navbtn, body.gated main > :not(.profile):not(#gate) { display: none !important; }
/* pick your fund: the list under "Super fund" */
label:has(> [data-su="fund"]), label:has(> [data-su="usi"]) { position: relative; }
.usi-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 300px; overflow: auto; }
.usi-list li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--radius-c); cursor: pointer; color: var(--text); font-weight: 400; }
.usi-list li b { font-weight: 650; font-size: 14px; }
.usi-list li span { font-size: 12px; color: var(--muted); }
.usi-list li:hover, .usi-list li.on { background: var(--accent-soft); }
.usi-note { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--good); }
.usi-note.warn { color: var(--warn); }

/* the hidden attribute always wins over a display set by a class (.stack, .grid2) */
[hidden] { display: none !important; }

/* an invoice's lines, under its row on Invoices (Details) */
.invmore { margin-top: 8px; padding: 8px 10px; background: var(--raised); border-radius: var(--radius-c); }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini td { padding: 3px 6px 3px 0; vertical-align: top; }
table.mini td:first-child { white-space: nowrap; color: var(--muted, inherit); }
table.mini td.num { text-align: right; white-space: nowrap; padding-right: 0; }

/* a 24 hour time box with something it could not read */
input.bad-time { border-color: var(--bad, #c0392b); }

/* a DJ's or artist's files on their profile (public/profile.js) */
.pf-files { display: flex; flex-direction: column; gap: 8px; }
.pf-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-c); background: var(--panel); }
.pf-file img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-c); display: block; }
.pf-doc { width: 56px; height: 56px; border-radius: var(--radius-c); background: var(--raised); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.pf-name { flex: 1; min-width: 140px; display: flex; flex-direction: column; overflow-wrap: anywhere; }

.viewbar button:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================================================================================
   Noise, warm (Matt, 11 Nov 2026: "a stronger visual identity ... warmth and energy"). Cream for the ground (about 70%),
   soft lilac for supporting panels, date headers and what is selected (about 20%), cobalt for actions, the active place
   and bold brand moments (about 10%), charcoal for text. Fewer enclosing borders: working content sits on a lighter
   surface with a soft shadow. Stronger type: big titles, prominent dates and names, quiet help text. A nod to lineups,
   set times and backstage passes, without decoration for its own sake. This layer comes last, so it wins.
   ========================================================================================================================== */
:root {
  --cream: #F5F1E8; --lilac: #E4DDF4; --lilac-deep: #CFC4EC; --cobalt: #3546F0; --cobalt-deep: #2734C9; --charcoal: #1D1B22;
  --sa-blue: var(--cobalt); --sa-blue-hover: var(--cobalt-deep); --sa-ink: var(--charcoal); --sa-canvas: var(--cream); --sa-surface: #FFFCF5;
  --bg: var(--cream); --panel: #FFFCF5; --raised: #EFE9DC; --line: #E2D9C7; --line-soft: #ECE5D6;
  --text: var(--charcoal); --muted: #57525F; --faint: #6E6877;
  --accent: var(--cobalt); --accent-hover: var(--cobalt-deep); --accent-ink: #FFFFFF; --accent-soft: var(--lilac);
  --good: #1B6B3C; --good-soft: #DDF0E2; --warn: #8A5300; --warn-soft: #FAEBCF; --bad: #B3261E; --bad-soft: #FAE3DF;
  --wm-ink: var(--text); --wm-a: var(--accent);
  --radius: 4px; --radius-c: 3px;
  --lift: 0 1px 0 rgba(29, 27, 34, .04), 0 6px 22px rgba(29, 27, 34, .06);
  --lift-hover: 0 1px 0 rgba(29, 27, 34, .05), 0 10px 30px rgba(29, 27, 34, .10);
  --shadow: 0 18px 48px rgba(29, 27, 34, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16151B; --panel: #201E27; --raised: #2A2733; --line: #36323F; --line-soft: #2C2935;
    --text: #F3EEE3; --muted: #B9B3C4; --faint: #9A94A6;
    --accent: #8B95FF; --accent-hover: #A6AEFF; --accent-ink: #12111A; --accent-soft: #2E2A47; --lilac: #2E2A47; --lilac-deep: #3D3760;
    --good: #74D196; --good-soft: #17301F; --warn: #F0B860; --warn-soft: #33270F; --bad: #FF8E83; --bad-soft: #3A1916;
    --lift: 0 1px 0 rgba(0, 0, 0, .3), 0 6px 22px rgba(0, 0, 0, .25); --lift-hover: 0 10px 30px rgba(0, 0, 0, .4); --shadow: 0 18px 48px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  --bg: #16151B; --panel: #201E27; --raised: #2A2733; --line: #36323F; --line-soft: #2C2935;
  --text: #F3EEE3; --muted: #B9B3C4; --faint: #9A94A6;
  --accent: #8B95FF; --accent-hover: #A6AEFF; --accent-ink: #12111A; --accent-soft: #2E2A47; --lilac: #2E2A47; --lilac-deep: #3D3760;
  --good: #74D196; --good-soft: #17301F; --warn: #F0B860; --warn-soft: #33270F; --bad: #FF8E83; --bad-soft: #3A1916;
  --lift: 0 1px 0 rgba(0, 0, 0, .3), 0 6px 22px rgba(0, 0, 0, .25); --lift-hover: 0 10px 30px rgba(0, 0, 0, .4); --shadow: 0 18px 48px rgba(0, 0, 0, .55);
}
body { background: var(--bg); }

/* ---- type: big titles, quiet help ---- */
h1, .pagehead h1, .rosterhead h1 { font-size: 40px; font-weight: 850; letter-spacing: -0.045em; line-height: 1.02; }
/* on the roster the page title is the dashboard's; the venue's name is one step down */
.rosterhead h1 { font-size: 30px; }
h2 { font-weight: 800; letter-spacing: -0.03em; }
h3 { font-weight: 750; letter-spacing: -0.02em; }
.pagehead p, .rosterhead p, .dash .dhow, .dash .dline { color: var(--faint); font-size: 13px; line-height: 1.5; }
.pagehead { margin-bottom: 22px; }
.muted.small, p.small.muted { color: var(--faint); }
.sect { color: var(--text); font-size: 12px; letter-spacing: .12em; }
.sect .count { color: var(--accent); }

/* ---- controls: one family. Cobalt does, lilac supports, plain is quiet ---- */
button, .btn { border-radius: var(--radius-c); transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
/* the everyday button: lilac, no outline. Buttons that are really rows, days or menus keep their own look */
button:not([class]), button.sm:not(.primary):not(.ghost):not(.danger):not(.link), a.btn:not(.primary), .mfoot button:not(.primary):not(.danger):not(.link):not(.ghost), .row > button:not([class*="primary"]):not(.link):not(.ghost):not(.danger):not(.badge) {
  background: var(--lilac); border-color: transparent; color: var(--text); font-weight: 650; }
button:not([class]):hover, button.sm:not(.primary):not(.ghost):not(.danger):not(.link):hover, a.btn:not(.primary):hover, .mfoot button:not(.primary):not(.danger):not(.link):not(.ghost):hover, .row > button:not([class*="primary"]):not(.link):not(.ghost):not(.danger):not(.badge):hover {
  background: var(--lilac-deep); border-color: transparent; }
button.primary:active, button.sm:active, button:not([class]):active, .btn:active { transform: translateY(1px); }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 2px 0 var(--accent-hover); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary.danger { background: var(--bad); border-color: var(--bad); box-shadow: none; }
.danger:not(.primary) { background: transparent; color: var(--bad); border-color: transparent; }
.danger:not(.primary):hover { background: var(--bad-soft); border-color: transparent; }
.ghost { background: transparent; border-color: transparent; }
.ghost:hover { background: var(--lilac); border-color: transparent; }
.link, .link:hover { background: none; box-shadow: none; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
input, select, textarea { border-radius: var(--radius-c); border: 1.5px solid var(--line); background-color: var(--panel); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: var(--lilac-deep); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
label { color: var(--muted); font-weight: 650; letter-spacing: .01em; }
.badge { border-radius: var(--radius-c); font-weight: 700; letter-spacing: .01em; }
.badge.accent { background: var(--lilac); color: var(--accent); }
.badge.solid { background: var(--accent); color: var(--accent-ink); }

/* ---- surfaces: lift, not lines ---- */
.card, .list, .rtable, .modal { border: 0; box-shadow: var(--lift); background: var(--panel); }
.card + .card { margin-top: 18px; }
.list .item { border-top-color: var(--line-soft); }
button.item { transition: background-color .15s var(--ease); }
button.item:hover { background: color-mix(in srgb, var(--lilac) 55%, var(--panel)); }
.item .title { font-weight: 750; font-size: 15.5px; letter-spacing: -0.01em; }
.item .sub { color: var(--faint); }
.empty h3 { font-size: 22px; }
.empty { padding: 56px 24px; }
.card.empty { background: color-mix(in srgb, var(--lilac) 45%, var(--panel)); box-shadow: none; }

/* ---- navigation: workspace, then the page, then the venue ---- */
.topbar { background: var(--bg); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.tabs button { color: var(--muted); font-weight: 650; border-bottom: 3px solid transparent; transition: color .15s var(--ease), border-color .15s var(--ease); background: none; }
.tabs button:hover { color: var(--text); background: none; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 800; }
.workspace { border: 0; background: var(--lilac); border-radius: var(--radius); padding: 3px; gap: 2px; }
.workspace button { border-radius: var(--radius); background: transparent; color: var(--text); font-weight: 700; }
.workspace button + button { border-left: 0; }
.workspace button.on { background: var(--charcoal); color: var(--cream); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
:root[data-theme="dark"] .workspace button.on { background: var(--text); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .workspace button.on { background: var(--text); color: var(--bg); } }
.avatar { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.seg { border: 0; background: var(--lilac); border-radius: var(--radius-c); padding: 3px; gap: 2px; }
.seg button { border-radius: var(--radius-c); background: transparent; color: var(--text); }
.seg button + button { border-left: 0; }
.seg button.on { background: var(--panel); color: var(--accent); box-shadow: var(--lift); }
.stepper { border: 0; background: var(--panel); box-shadow: var(--lift); border-radius: var(--radius-c); }
.stepper button { background: transparent; }
.stepper button:hover { background: var(--lilac); }
.stepper .label { border-left: 0 !important; border-right: 0 !important; font-weight: 800; }
/* venues: the one you are on in cobalt, the rest lilac */
.vtabs button { border: 0 !important; background: var(--lilac) !important; color: var(--text) !important; border-radius: var(--radius) !important; font-weight: 750; padding: 8px 18px; min-height: 40px; }
.vtabs button:hover { background: var(--lilac-deep) !important; }
.vtabs button.on { background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: 0 2px 0 var(--accent-hover) !important; }

/* ---- the page intro: quiet, out of the way ---- */
.dash { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; }
.dash .dtext h2 { font-size: 40px; font-weight: 850; letter-spacing: -0.045em; }
.deyebrow { color: var(--accent); }
.dstat { background: var(--panel); box-shadow: var(--lift); border-radius: var(--radius-c); }
.dstat b { font-size: 26px; font-weight: 850; }

/* ---- avatars: photos, or initials on a tone of the palette ---- */
.pic { border-radius: var(--radius); background: var(--lilac); color: var(--accent); font-weight: 850; letter-spacing: -0.02em; }
.pic[data-tone="1"] { background: var(--accent); color: var(--accent-ink); }
.pic[data-tone="2"] { background: var(--charcoal); color: var(--cream); }
.pic[data-tone="3"] { background: #F0DFC0; color: #5A3D0B; }
:root[data-theme="dark"] .pic[data-tone="2"] { background: var(--text); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pic[data-tone="2"] { background: var(--text); color: var(--bg); } :root:not([data-theme="light"]) .pic[data-tone="3"] { background: #3A2F1D; color: #F0D9AE; } }
:root[data-theme="dark"] .pic[data-tone="3"] { background: #3A2F1D; color: #F0D9AE; }
img.pic { background: var(--raised); }

/* ---- roster: lilac day headers with a big date, rooms as tags, bookings as blocks ---- */
.rnight { margin-bottom: 30px; }
.rnight .rhead { background: var(--lilac); border-radius: var(--radius) var(--radius) 0 0; padding: 12px 16px; margin-bottom: 0; gap: 12px; }
.rnight .rhead h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.rdate { display: inline-flex; align-items: baseline; gap: 8px; }
.rdate b { font-size: 34px; font-weight: 850; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; color: var(--text); }
.rdate span { display: flex; flex-direction: column; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; color: var(--accent); }
.rdate span i { font-style: normal; color: var(--muted); letter-spacing: .06em; }
.rnight .rhead .rooms { font-size: 14px; font-weight: 650; color: var(--muted); }
.rnight .rtable { border-radius: 0 0 var(--radius) var(--radius); }
.rcols { color: var(--faint); border-bottom: 1px solid var(--line-soft); }
.rset { min-height: 60px; border-top: 1px solid var(--line-soft); transition: background-color .15s var(--ease); }
.rset:hover { background: color-mix(in srgb, var(--lilac) 35%, var(--panel)); }
.rset .t { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.rset .who .bpick .bname, .rset .who.past { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.rset .room { display: inline-flex; justify-self: start; align-items: center; padding: 2px 10px; border-radius: var(--radius-c); background: var(--raised); color: var(--muted); font-size: 12.5px; font-weight: 700; max-width: 100%; }
.rtable.oneroom .room { display: none; }
.rset .amt { font-weight: 700; color: var(--muted); }
.rset.open { background: color-mix(in srgb, var(--warn-soft) 45%, var(--panel)); }
.rset.open .who .bpick { border: 1.5px dashed var(--warn); background: var(--panel); }
.rset .who .pic { width: 36px !important; height: 36px !important; }
.note-open { color: var(--warn); }

/* ---- calendar and week ---- */
.cal { border: 0; box-shadow: var(--lift); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.cal .dow { background: var(--lilac); color: var(--text); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; border: 0; }
.day { border-color: var(--line-soft); }
.day .n { font-size: 16px; font-weight: 850; }
.day.today { background: color-mix(in srgb, var(--lilac) 50%, var(--panel)); }
.day.sel { outline: 3px solid var(--accent); }
.day .chip { border-radius: var(--radius-c); }

/* ---- DJ directory: names first, like a lineup ---- */
.djgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.djcard { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 2px 14px; align-items: center; text-align: left;
  background: var(--panel); box-shadow: var(--lift); border-radius: var(--radius); padding: 16px; min-height: 0; border: 0; font-weight: 400; }
.djcard:hover { background: var(--panel); box-shadow: var(--lift-hover); transform: translateY(-1px); }
.djcard .pic { grid-row: 1 / 3; width: 56px !important; height: 56px !important; font-size: 20px !important; border-radius: var(--radius); }
.djcard .dname { font-size: 19px; font-weight: 850; letter-spacing: -0.03em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.djcard .dcontact { font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.djcard .dtags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.djcard.off { opacity: .6; }

/* ---- DJ and artist apps: the next gig is a pass, hours to confirm get their own place ---- */
.nextgig { position: relative; background: var(--accent); color: var(--nx-fg); border-radius: var(--radius); padding: 4px; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); margin-bottom: 8px; }
.nextgig { margin-top: 16px; padding-top: 14px; }
.nextgig::before { content: "NEXT UP"; position: absolute; top: -11px; left: 18px; font-size: 10.5px; font-weight: 850; letter-spacing: .18em; z-index: 1;
  background: var(--charcoal); color: var(--cream); padding: 4px 10px; border-radius: var(--radius-c); }
:root[data-theme="dark"] .nextgig::before { background: var(--text); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nextgig::before { background: var(--text); color: var(--bg); } }
.nextgig .card { box-shadow: none; margin: 0; background: transparent; color: inherit; }
.nextgig .card .muted, .nextgig .card .faint, .nextgig .gwhere, .nextgig .gdate span { color: color-mix(in srgb, var(--nx-fg) 78%, transparent) !important; }
.nextgig .gdate { border-right-color: color-mix(in srgb, var(--nx-fg) 30%, transparent); }
.nextgig .gdate b { font-size: 40px; color: var(--nx-fg) !important; }
.nextgig .gtime { font-size: 24px; }
.nextgig .badge { background: color-mix(in srgb, var(--nx-fg) 18%, transparent); color: var(--nx-fg); }
.nextgig button:not(.primary), .nextgig .btn { background: color-mix(in srgb, var(--nx-fg) 16%, transparent); color: var(--nx-fg); }
.nextgig .link, .nextgig summary { color: var(--nx-fg); }
.nextgig details[data-gl-id] input, .nextgig details[data-gl-id] select { color: var(--text); }
.nextgig details .list, .nextgig details [data-glbox] { color: var(--text); }
.nextgig details [data-glbox] { background: var(--panel); border-radius: var(--radius-c); padding: 10px; }
/* the stub of a pass: a notched line between the date and the rest */
.nextgig .card.gig { border-radius: 2px; outline: 1.5px dashed color-mix(in srgb, var(--nx-fg) 35%, transparent); outline-offset: -8px; }
/* lists inside the pass sit on a lighter wash of cobalt, so the text stays white and readable */
.nextgig .list { background: color-mix(in srgb, var(--nx-fg) 12%, transparent); box-shadow: none; }
.nextgig .list .item { border-top-color: color-mix(in srgb, var(--nx-fg) 20%, transparent); color: var(--nx-fg); }
.nextgig .settime span, .nextgig .settime b, .nextgig h2 { color: var(--nx-fg); }
.nextgig .card.next .badge.open { color: var(--nx-fg); border-color: currentColor; background: transparent; }
/* the guest list box opens on the panel colour, with ordinary text */
.nextgig [data-glbox], .nextgig [data-glbox] .list, .nextgig [data-glbox] .item, .nextgig [data-glbox] b { color: var(--text) !important; background-color: var(--panel); }
.nextgig [data-glbox] .muted, .nextgig [data-glbox] .faint, .nextgig [data-glbox] label { color: var(--faint) !important; }
.nextgig [data-glbox] button:not(.primary) { background: var(--lilac); color: var(--text); }
.confirmzone { background: var(--lilac); border-radius: var(--radius); padding: 16px; margin: 0 0 8px; }
.confirmzone .sect { margin-top: 0; }
.confirmzone .card { box-shadow: none; }
.card.gig { transition: box-shadow .15s var(--ease); }
.gdate b { font-size: 32px; font-weight: 850; }
.gtime { font-weight: 850; letter-spacing: -0.02em; }
.profile h1 { font-size: 40px; font-weight: 850; }
.profile .photo .pic { border-radius: var(--radius); }

/* ---- modals, toasts, banners ---- */
.overlay { background: rgba(29, 27, 34, .5); backdrop-filter: blur(2px); }
.modal { border-radius: var(--radius); }
.modal .mhead h2, .modal .mhead h3 { font-size: 24px; font-weight: 850; letter-spacing: -0.035em; }
.toast { background: var(--charcoal); color: var(--cream); border-radius: var(--radius); padding: 10px 18px; font-weight: 650; }
main .banner, .modal .banner { border: 0; background: var(--lilac); color: var(--text); }
main .banner.warn, .modal .banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner { color: var(--faint); }

/* ---- tables (timesheets, invoices, payments) ---- */
th { color: var(--faint); letter-spacing: .08em; }
td, th { border-bottom-color: var(--line-soft); }
tr.cur td { background: color-mix(in srgb, var(--lilac) 45%, transparent); }

/* ---- the wizard ---- */
.steps i { height: 5px; border-radius: var(--radius); background: var(--lilac); }
.steps i.on { background: var(--accent); }
.choice button { background: var(--panel); box-shadow: var(--lift); border: 0; }
.choice button.on { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--accent); }
.days button.on { background: var(--accent); color: var(--accent-ink); }

/* ---- motion, only for those who want it ---- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } button:active, .btn:active, .djcard:hover { transform: none; } }

/* ---- phones: same identity, tighter ---- */
@media (max-width: 900px) {
  h1, .pagehead h1, .rosterhead h1, .dash .dtext h2, .profile h1 { font-size: 30px; }
  .rdate b { font-size: 28px; }
  .rnight .rhead { padding: 10px 12px; }
  .rset .t { font-size: 13.5px; line-height: 1.2; }
  .rset .who .bpick .bname, .rset .who.past { font-size: 15px; }
  .djgrid { grid-template-columns: 1fr; gap: 10px; }
  .djcard { padding: 12px; }
  .djcard .pic { width: 48px !important; height: 48px !important; }
  .nextgig .gdate b { font-size: 34px; }
  /* venues scroll sideways as whole pills; the venue title gets its own line above its two buttons */
  .vtabs.vpick, .vpick { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .vpick button { flex: none !important; white-space: nowrap; padding: 6px 14px; min-height: 36px; font-size: 14px; }
  .rtitle { flex-wrap: wrap; gap: 6px; }
  .rtitle h1 { flex-basis: 100%; }
  .rtitle button { white-space: nowrap; min-height: 32px; padding: 4px 12px; font-size: 13px; }
  .nextgig .gtime { font-size: 20px; }
}
@media print { .nextgig, .confirmzone { background: none !important; box-shadow: none !important; color: #000 !important; } }

/* ---- the door (Matt, 11 Nov 2026): tonight's guest list on a phone, big targets to tick people off ---- */
.doorhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.doorcount { display: flex; flex-direction: column; line-height: 1.05; padding: 6px 14px; background: var(--panel); box-shadow: var(--lift); border-radius: var(--radius-c); }
.doorcount b { font-size: 24px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.doorcount span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.doorcount.in b { color: var(--good); }
.dooradd { background: var(--lilac); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.dooradd summary { font-weight: 800; cursor: pointer; min-height: 28px; display: flex; align-items: center; }
.doorlist { background: var(--panel); box-shadow: var(--lift); border-radius: var(--radius); overflow: hidden; }
.doorrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-top: 1px solid var(--line-soft); min-height: 60px; transition: background-color .15s var(--ease); }
.doorrow:first-child { border-top: 0; }
.doorrow.in { background: color-mix(in srgb, var(--good-soft) 55%, var(--panel)); }
.doortick { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: var(--radius-c); border: 2px solid var(--lilac-deep) !important; background: var(--panel) !important; color: #fff; }
.doortick:hover { border-color: var(--accent) !important; }
.doortick[aria-pressed="true"] { background: var(--good) !important; border-color: var(--good) !important; }
.doortick svg { width: 22px; height: 22px; }
.doorwho { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doorwho b { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.doorrow.in .doorwho b { color: var(--muted); }
.doorwho .sub { font-size: 13px; color: var(--faint); }
.doorplus { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--radius-c); background: var(--lilac); color: var(--accent); font-size: 13px; font-weight: 800; }
.doorrm { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 24px; line-height: 1; background: transparent !important; color: var(--faint) !important; border: 0 !important; }
.doorrm:hover { color: var(--bad) !important; background: var(--bad-soft) !important; }
#dq { min-height: 48px; font-size: 16px; }

/* ==========================================================================================================================
   Motion (Matt, 11 Nov 2026: "classy, fresh and tactile, with restrained movement"). Three timings and two curves for
   everything; no transition: all, no bounce, no glow. Reduced motion keeps every colour and state change, without movement.
   ========================================================================================================================== */
:root { --t-fast: 140ms; --t-base: 180ms; --t-slow: 220ms; --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); }

/* buttons: colour in 150ms; cobalt lifts a pixel; pressing settles back with a hair of scale */
button, .btn { transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), box-shadow 150ms var(--ease-out), transform 150ms var(--ease-out); }
.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 0 var(--accent-hover), 0 6px 14px color-mix(in srgb, var(--accent) 22%, transparent); }
button:active:not(:disabled), .btn:active { transform: scale(.98); }
.primary:active:not(:disabled) { transform: translateY(0) scale(.98); box-shadow: 0 1px 0 var(--accent-hover); }
button:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
/* saving: a small spinner, then a tick */
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: m-spin .7s linear infinite; flex: none; }
button .tick { width: 15px; height: 15px; flex: none; }
button.saved:not(.primary) { background: var(--good-soft) !important; color: var(--good) !important; }
button.saved.primary { background: var(--good) !important; border-color: var(--good) !important; box-shadow: none !important; }
@keyframes m-spin { to { transform: rotate(360deg); } }

/* tabs and segmented controls: the selected background (or the cobalt underline) slides; the labels never move (motion.js) */
.has-glide { position: relative; isolation: isolate; }
.has-glide > .glide { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; border-radius: var(--radius-c); background: var(--panel); box-shadow: var(--lift);
  transition: opacity var(--t-fast); }
.seg.has-glide > button.on, .workspace.has-glide > button.on, .wdays.has-glide > button.on { background: transparent !important; box-shadow: none !important; }
.workspace.has-glide > .glide { border-radius: var(--radius); background: var(--charcoal); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
:root[data-theme="dark"] .workspace.has-glide > .glide { background: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .workspace.has-glide > .glide { background: var(--text); } }
.workspace.has-glide > button { transition: color 200ms var(--ease-out); }
.topbar .tabs.has-glide > .glide { top: auto !important; bottom: 0; height: 3px !important; border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: none; transform-origin: left; }
.topbar .tabs.has-glide > button.on { border-bottom-color: transparent; }
.wdays.has-glide > .glide { border-radius: var(--radius); background: var(--accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent); }

/* switches (for settings that are on or off): cobalt track, cream thumb that slides */
input.switch { appearance: none; -webkit-appearance: none; width: 44px !important; height: 26px !important; min-height: 0; border-radius: var(--radius); background: var(--lilac-deep); border: 0; position: relative; cursor: pointer; flex: none;
  transition: background-color var(--t-base) var(--ease-out); margin: 0; padding: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: var(--radius-c); background: var(--cream); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t-base) var(--ease-out); }
input.switch:checked { background: var(--accent); }
input.switch:checked::after { transform: translateX(18px); }
input.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* sliders: a comfortable thumb, a little bigger while dragging */
input[type="range"] { appearance: none; -webkit-appearance: none; height: 28px; background: transparent; border: 0; padding: 0; min-height: 0; accent-color: var(--accent); }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius); background: var(--lilac-deep); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--cream); border: 3px solid var(--accent); transition: transform var(--t-fast) var(--ease-out); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--radius); background: var(--lilac-deep); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 3px solid var(--accent); }

/* moving between pages: one short fade and lift for the content; the roster's next and previous slide inside the roster */
.m-enter { animation: m-enter var(--t-base) var(--ease-out); }
.m-next { animation: m-next var(--t-slow) var(--ease-out); }
.m-prev { animation: m-prev var(--t-slow) var(--ease-out); }
@keyframes m-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes m-next { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes m-prev { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* rows: a lilac tint on hover; the next gig may lift; a booking just changed glows lilac for a moment */
.nextgig { transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.nextgig:hover { transform: translateY(-1px); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 38%, transparent); }
.rset.flash, .doorrow.flash { animation: m-flash 1.6s var(--ease-out); }
@keyframes m-flash { 0%, 30% { background: var(--lilac); } 100% { background: transparent; } }

/* menus, modals and sheets */
.overlay { animation: m-fade var(--t-base) var(--ease-out); background: rgba(29, 27, 34, .42); backdrop-filter: none; }
.overlay .modal { animation: m-pop var(--t-base) var(--ease-out); }
.overlay.closing { animation: m-fade-out var(--t-fast) var(--ease-in) forwards; }
.overlay.closing .modal { animation: m-pop-out var(--t-fast) var(--ease-in) forwards; }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-fade-out { to { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes m-pop-out { to { opacity: 0; transform: scale(.98); } }
.rmore .menu, .tabs.open { animation: m-drop var(--t-fast) var(--ease-out); }
@keyframes m-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* expanding sections: a smooth height, an arrow that turns a quarter */
details { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: clip; transition: block-size var(--t-slow) var(--ease-out), content-visibility var(--t-slow) allow-discrete; }
details[open]::details-content { block-size: auto; }
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details:not(.rmore) > summary::before { content: ""; flex: none; width: 7px; height: 7px; border: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 4px 0 2px;
  transition: transform var(--t-base) var(--ease-out); }
details[open]:not(.rmore) > summary::before { transform: rotate(45deg); }

/* feedback */
.toast { animation: m-toast var(--t-base) var(--ease-out); }
.toast.out { animation: m-toast-out var(--t-fast) var(--ease-in) forwards; }
@keyframes m-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes m-toast-out { to { opacity: 0; transform: translate(-50%, 4px); } }
/* loading: still blocks with a gentle pulse, only after a noticeable wait so quick loads never flash */
.skel { display: grid; gap: 12px; padding: 4px 0; opacity: 0; animation: m-show 1ms 220ms forwards; }
.skel i { display: block; height: 52px; border-radius: var(--radius); background: var(--lilac); animation: m-pulse 1.4s ease-in-out 220ms infinite; }
.skel i:first-child { height: 30px; background: var(--raised); }
@keyframes m-show { to { opacity: 1; } }
@keyframes m-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* touch screens: no hover effects, a clear pressed state instead */
@media (hover: none) {
  .primary:hover:not(:disabled), .nextgig:hover, .djcard:hover { transform: none; }
  button.item:active, .djcard:active, .rset:active, .doorrow:active, .card.gig:active { background: color-mix(in srgb, var(--lilac) 60%, var(--panel)); }
  button:active:not(:disabled) { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .m-enter, .m-next, .m-prev, .overlay, .overlay .modal, .overlay.closing, .overlay.closing .modal, .toast, .toast.out, .rmore .menu, .tabs.open { animation: none !important; }
  .has-glide > .glide, input.switch, input.switch::after, details::details-content, details > summary::before { transition: none !important; }
  .rset.flash, .doorrow.flash { animation: none; background: var(--lilac); }
  .skel, .skel i { animation: none; opacity: 1; }
  .spin { animation-duration: 2s; }
}

/* ==========================================================================================================================
   Phones (Matt, 11 Nov 2026: "give mobile its own considered layout", checked at 360, 390 and 430). One compact header,
   the venue as a scrolling strip, the roster's identity, dates and views on their own lines with the extras in a More menu,
   44px targets, nothing wider than the screen.
   ========================================================================================================================== */
.rmore { display: none; position: relative; }
.rmore > summary { width: 44px; height: 44px; justify-content: center; border-radius: var(--radius-c); background: var(--lilac); color: var(--text); }
.rmore > summary svg { width: 20px; height: 20px; fill: currentColor; }
.rmore[open] > summary { background: var(--lilac-deep); }
.rmore .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; display: flex; flex-direction: column; padding: 6px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.rmore .menu button { justify-content: flex-start; background: transparent; min-height: 44px; border: 0; font-weight: 650; }
.rmore .menu button:hover, .rmore .menu button:active { background: var(--lilac); }
.confirmzone > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 2px 8px; }
.confirmzone > summary::before { order: 2; }
.confirmzone .zhint { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.confirmzone[open] .zhint { display: none; }
.djcard .dcontact { display: flex; flex-direction: column; white-space: normal; }
.djcard .dcontact span { overflow-wrap: anywhere; overflow: hidden; text-overflow: ellipsis; }
html, body { overflow-x: hidden; }
.cal { max-width: 100%; }

@media (max-width: 900px) {
  /* header: logo, workspace and the account in one row; the account menu holds Log out; the page list below */
  .topbar .bar { flex-wrap: wrap; gap: 8px 10px; padding: 8px 16px; min-height: 0; }
  .topbar .logout, .topbar .orgname { display: none !important; }
  .topbar .brand { order: 0; }
  .topbar .spacer { order: 1; }
  .topbar .workspace { order: 2; }
  .topbar .who-menu { order: 3; min-height: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .topbar .navbtn { order: 10; flex: 1 1 100%; min-height: 44px; }
  .topbar .workspace button { min-height: 36px; padding: 4px 14px; }
  main { padding-left: 16px !important; padding-right: 16px !important; }
  .dashwrap { padding-left: 16px !important; padding-right: 16px !important; }
  .banner { padding-left: 16px; padding-right: 16px; }
  /* the venue as a strip that scrolls, with room around each name */
  .vpick { margin: 0 -16px 12px !important; padding: 2px 16px 6px !important; scroll-padding-inline: 16px; scroll-snap-type: x proximity; }
  .vpick button { scroll-snap-align: start; min-height: 44px !important; padding: 8px 18px !important; }
  /* roster: venue name and its More menu, then the dates, then the views */
  .rtitle { flex-wrap: nowrap; align-items: center; }
  .rtitle h1 { flex: 1 1 auto; flex-basis: auto; min-width: 0; overflow-wrap: anywhere; }
  .rtitle .racts { display: none; }
  .rmore { display: block; }
  .rosterhead + .toolbar, .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .toolbar .stepper { width: 100%; }
  .toolbar .stepper .label { flex: 1; }
  .toolbar .stepper button { min-height: 44px; min-width: 48px; }
  .toolbar .seg { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .toolbar .seg button { min-height: 40px; }
  .toolbar .spacer { display: none; }
  /* the day picker in the palette, the chosen day in cobalt */
  .wdays button { background: var(--panel); box-shadow: var(--lift); border: 0; min-height: 60px !important; }
  .wdays button.today:not(.on) b { color: var(--accent); }
  .wdays button.on, .wdays button.on span, .wdays button.on i, .wdays button.on b { color: var(--accent-ink) !important; }
  .wdays button i { font-weight: 700; }
  /* targets */
  .rset .more { min-height: 44px !important; width: 44px !important; }
  .rset .who .bpick { min-height: 44px; }
  details > summary { min-height: 44px; }
  .lineup > summary, details[data-gl-id] > summary { min-height: 44px; }
  .link { min-height: 40px; }
  .doortick, .doorrm { width: 48px; height: 48px; }
  /* modals become sheets from the bottom, with the close button always in reach */
  .overlay { align-items: flex-end; padding: 0 !important; }
  .overlay .modal { max-width: none; width: 100%; max-height: 92dvh; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: m-sheet var(--t-slow) var(--ease-out); overscroll-behavior: contain; }
  .overlay.closing .modal { animation: m-sheet-out var(--t-fast) var(--ease-in) forwards; }
  .modal .mhead { position: sticky; top: 0; z-index: 2; background: var(--panel); margin: -4px 0 12px; padding: 4px 0 8px; }
  .modal .mhead .xbtn { min-width: 44px; min-height: 44px; }
  .djcard .dname { white-space: normal; overflow-wrap: anywhere; }
}
@keyframes m-sheet { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes m-sheet-out { to { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .overlay .modal, .overlay.closing .modal { animation: none !important; } }

/* the narrowest phones: the confirm buttons stack, full width, same size */
@media (max-width: 420px) {
  .card.gig .row:has(> [data-ok]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .card.gig .row:has(> [data-ok]) > button { width: 100%; min-height: 44px; }
  .gtop { flex-wrap: wrap; }
}
@media (max-width: 900px) { .topbar .tabs > .glide { display: none !important; } .topbar .tabs.has-glide > button.on { border-bottom-color: var(--accent); } }
@media (max-width: 440px) {
  .topbar .bar { padding: 8px 12px; gap: 8px; }
  .topbar .brand { height: 20px; }
  .topbar .workspace button { padding: 4px 10px; font-size: 13px; min-height: 34px; }
  .viewbar .vbin { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .viewbar button, .viewbar label { flex: none; }
}
/* the phone week: each room a lifted block with a lilac name band, like the list's day headers */
.aroom { border: 0 !important; box-shadow: var(--lift); background: var(--panel); border-radius: var(--radius) !important; overflow: hidden; }
.aroom > .sect { background: var(--lilac); color: var(--text); }
.aroom .arow { border-top-color: var(--line-soft) !important; }
.check:has(> .faint) { flex-wrap: wrap; row-gap: 0; }

/* the slide carries through redraws (motion.js moves the pill itself, Matt 11 Nov 2026: "should slide to each side, not
   warp"). Venue pills: the cobalt pill slides over the lilac ones, the names stay on top. */
.vtabs.has-glide > button { position: static !important; top: 0 !important; }
.vtabs.has-glide > button.on { background: var(--lilac) !important; box-shadow: none !important; }
.vtabs.has-glide > button > .vt { position: relative; z-index: 2; color: var(--text); }
.vtabs.has-glide > button.on > .vt { color: var(--accent-ink); }
.vtabs.has-glide > button > .dot { position: relative; z-index: 2; }
.vtabs.has-glide > .glide { z-index: 1; border-radius: var(--radius); background: var(--accent); box-shadow: none; }
/* the venue row scrolls sideways, which would clip anything below the pills: a flat cobalt pill, nothing hanging off it */
.vtabs > button.on { box-shadow: none !important; }
/* Roster template and Export PDF were touching */
@media (min-width: 901px) { .rtitle .racts { display: inline-flex; gap: 8px; } }   /* on a phone they live in the More menu */
.seg > button.m-ink, .vtabs > button.m-ink > .vt { animation: m-ink var(--ink-dur, 220ms) var(--ease-out) var(--ink-delay, 0ms) both; }
@keyframes m-ink { from { color: var(--accent); } }
/* venue pills mid slide: motion.js marks the names the pill is under */
.vtabs.tracking > button > .vt { color: var(--accent) !important; animation: none !important; transition: color 70ms linear; }
.vtabs.tracking > button.under > .vt { color: var(--accent-ink) !important; }
/* while a venue's roster loads the page dims, but never the venue row itself */
main.loading > .vpick { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .seg > button.m-ink, .vtabs > button.m-ink > .vt { animation: none; } }

/* the account drop-down under the name in the header (Matt, 11 Nov 2026: the extras were hidden at the bottom of a long window) */
.acctmenu { position: fixed; z-index: 60; width: 340px; max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); overflow-y: auto; background: var(--panel); border-radius: var(--radius-c);
  box-shadow: 0 18px 48px rgba(29, 27, 34, .18), 0 2px 6px rgba(29, 27, 34, .08); padding: 6px; animation: m-drop var(--t-fast) var(--ease-out); transform-origin: top right; }
.acctmenu.closing { animation: m-fade-out var(--t-fast) var(--ease-in) forwards; }
.acctmenu .acchead { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; }
.acctmenu .acchead .avatar { width: 40px; height: 40px; font-size: 14px; }
.acctmenu .acchead b { display: block; font-size: 15px; }
.acctmenu .sub { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.acctmenu .accgroup { border-top: 1px solid var(--line); padding: 6px 0; }
.acctmenu .accgroup:last-child { padding-bottom: 0; }
.acctmenu [role="menuitem"] { display: flex !important; width: 100%; align-items: center; gap: 12px; text-align: left; justify-content: flex-start; padding: 9px 10px !important; min-height: 44px;
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: var(--radius-c) !important; color: var(--text) !important; font-weight: 600; }
.acctmenu [role="menuitem"]:hover, .acctmenu [role="menuitem"]:focus-visible { background: var(--lilac) !important; outline: none; }
.acctmenu [role="menuitem"] svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.acctmenu [role="menuitem"] b { font-weight: 650; font-size: 14.5px; }
/* Appearance: the label, then the three choices in equal thirds across the full width, so none is ever cut off */
.acctmenu .acclook { display: grid; gap: 8px; padding: 8px 10px 10px; font-weight: 600; font-size: 14.5px; }
.acctmenu .acclook .seg { display: grid !important; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
.acctmenu .acclook .seg button { min-height: 36px; padding: 4px 12px; font-size: 13px; white-space: nowrap; text-align: center; justify-content: center; }
@media (max-width: 600px) {
  .acctmenu { left: 12px !important; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .acctmenu, .acctmenu.closing { animation: none; } }

/* Buttons stay put (Matt, 11 Nov 2026: "buttons should feel static and not move"). A stepper's label is as wide as the
   longest thing it can say (September 2026, 28 Sep - 4 Oct, a door date), with even width digits, so the arrows and
   what sits beside them never shift from month to month. On a phone the stepper fills the row, so it cannot move. */
.stepper .label { min-width: 11em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .stepper .label { min-width: 8.5em; } }
/* Roster template and Export PDF sit at the right end of the venue's title row, not wherever its name ends */
.rtitle .racts { margin-left: auto; }

/* Roster rows on a phone (audit, 11 Nov 2026): the More button had a 32px column for a 44px button and stuck out of the
   card; the set time broke as "20:00 -" over "22:30". Now the column fits the button and the time stacks cleanly. */
@media (max-width: 760px) {
  .rset, .rtable.oneroom .rset { grid-template-columns: 50px auto auto minmax(0, 1fr) 44px !important; padding-right: 2px !important; }
  .rset .more { width: 44px; justify-self: end; }
  .rset .t { white-space: nowrap; }
  .rset .t .tt { display: block; }
  .rset .t .td { display: none; }
}
/* Super: a short badge that never wraps, the missing details listed under it as text */
td .gaps { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.35; min-width: 9em; }
@media (max-width: 760px) {
  .tablewrap td:has(> .gaps) { flex-wrap: wrap; }
  .tablewrap td > .gaps { flex-basis: 100%; min-width: 0; text-align: right; margin-top: 2px; }
  /* a set's time: start over finish */
  .rset .t { flex-direction: column; align-items: flex-start; justify-content: center; }
}
/* the door on a phone: the night across the top, then the two counts side by side, always the same shape */
@media (max-width: 600px) {
  .doorhead { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .doorhead .stepper { grid-column: 1 / -1; width: 100%; }
  .doorhead .stepper .label { flex: 1; }
  .doorcount { flex-direction: row; align-items: baseline; gap: 8px; padding: 8px 14px; }
}
/* expanding sections clip while they open; leave room so a button's edge or shadow at the bottom is never trimmed */
details::details-content { overflow-clip-margin: 10px; }
details[open]::details-content { padding-bottom: 2px; }

/* a gig's actions keep their places (audit, 11 Nov 2026): "I can't make it" first, the lineup under it, so opening the
   lineup never moves the button */
.gacts { flex-direction: column; align-items: stretch; gap: 2px; }
.gacts > span:has([data-cant]) { order: -1; }
.gacts .lineup { width: 100%; }
.lineup .item .lt { flex: none; min-width: 7.2em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nextgig .lineup .list, .nextgig .lineup .item { background: transparent !important; }
.nextgig .lineup .item, .nextgig .lineup .item b { color: var(--nx-fg) !important; }
.nextgig .lineup .item .sub, .nextgig .lineup .item .lt { color: color-mix(in srgb, var(--nx-fg) 75%, transparent) !important; }
.nextgig .lineup .list { border: 1px solid color-mix(in srgb, var(--nx-fg) 22%, transparent); border-radius: var(--radius-c); }
.nextgig [data-cant] { padding: 8px 14px !important; border-radius: var(--radius); min-height: 36px; }
/* the photo button on a phone: "Add photo" fits inside the picture, never past its edges */
@media (max-width: 760px) {
  .profile .photo { overflow: hidden; }
  .profile .photo .edit { font-size: 8.5px !important; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; line-height: 1.5; }
}
/* links inside the blue next-gig card (the venue's address, the contact's phone) read in the card's own colour */
.nextgig a:not(.btn), .nextgig .card a:not(.btn) { color: var(--nx-fg) !important; text-decoration-color: color-mix(in srgb, var(--nx-fg) 55%, transparent); }

/* DJ and artist apps with the DJ/Artist switch (13 Nov 2026): Log out stays one line at the far right, the switch sits
 * just before it, so Log out never moves when the switch arrives and never wraps beside the page tabs. */
.solo .topbar #out { flex: none; white-space: nowrap; order: 4; }
.solo .topbar .workspace { margin-left: auto; order: 3; }
.solo .topbar .workspace ~ #out { margin-left: 0; }
/* with the switch the DJ app's header needs about 890px, so it gets more room than the page below it */
.solo .topbar .bar:has(> .workspace) { max-width: 980px; gap: 18px; }
@media (max-width: 1000px) {
  .solo .topbar .bar:has(> .workspace) { gap: 8px; }
  .solo .topbar .bar:has(> .workspace) .tabs { gap: 0; }
  .solo .topbar .bar:has(> .workspace) .tabs button { padding-left: 8px; padding-right: 8px; }
}

/* narrower desktops and tablets in landscape (13 Nov 2026): the full manager header needs about 1,200px. Below that the
 * account button is just the avatar and Log out lives in its menu, as on phones, so nothing wraps or gets cut off. */
.topbar .orgname { white-space: nowrap; }
.topbar .logout { white-space: nowrap; flex: none; }
@media (min-width: 901px) and (max-width: 1240px) {
  .topbar .orgname, .topbar .logout { display: none !important; }
  .topbar .who-menu { padding: 2px; min-width: 44px; justify-content: center; flex: none; }
  .topbar .bar { gap: 16px; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .topbar .bar { gap: 10px; }
  .topbar .tabs { gap: 0; }
  .topbar .tabs button { padding-left: 7px; padding-right: 7px; }
}
/* a super run: the payday and its DJs take the line; on a phone the amount sits beside them and the buttons go under
 * (13 Nov 2026: at 430px the details were squeezed to one letter a line) */
.item.runrow { flex-wrap: wrap; }
.item.runrow > .main { flex: 1 1 260px; }
/* a status that is a sentence (the DJ app's "You asked: played longer (30 min) · waiting on the venue"): wraps inside
 * its card on a phone instead of running past it (13 Nov 2026) */
.badge.long { display: inline-block; max-width: 100%; white-space: normal; border-radius: var(--radius); line-height: 1.4; padding: 4px 10px; }
/* a link inside a sentence ("Make a new link if it gets out"): sits on the line like a word, so the lines around it keep
 * their normal spacing (13 Nov 2026) */
button.link.inl { display: inline; padding: 0 1px; min-height: 0; line-height: inherit; font-size: inherit; vertical-align: baseline; }

/* roster list on a tablet (13 Nov 2026): the desktop columns needed about 790px, so at 768 the amount and the More
 * button were cut off. Between the phone layout and 1000px the DJ and room columns give way instead. */
@media (min-width: 761px) and (max-width: 1000px) {
  .rcols, .rset { grid-template-columns: 112px minmax(0, 1.7fr) minmax(0, .8fr) minmax(80px, auto) 82px 44px; gap: 0 10px; padding: 0 6px 0 14px; }
  .rtable.oneroom .rcols, .rtable.oneroom .rset { grid-template-columns: 112px minmax(0, 2fr) minmax(80px, auto) 82px 44px; }
  .rset .who select { max-width: 100%; min-width: 0; }
}
/* timesheet sign-off on a phone (16 Nov 2026): the two buttons wrapped at different widths; full width and stacked, like
 * "Hours were right" and "Something changed" in the DJ app */
@media (max-width: 600px) { .signbtns { flex-direction: column; align-items: stretch; } .signbtns > button { width: 100%; } }
/* an invoice is white paper in either theme (16 Nov 2026): in dark mode the parts inside it took the dark colours, so the
 * number and date were pale grey on white and the status badge went dark. Inside the paper the light colours always apply. */
.inv-doc { --bg: #F5F1E8; --panel: #FFFCF5; --raised: #EFE9DC; --line: #E2D9C7; --line-soft: #ECE5D6; --text: #1D1B22; --muted: #57525F; --faint: #6E6877;
  --accent: #3546F0; --accent-hover: #2734C9; --accent-ink: #FFFFFF; --accent-soft: #E4DDF4; --lilac: #E4DDF4; --lilac-deep: #CFC4EC;
  --good: #1B6B3C; --good-soft: #DDF0E2; --warn: #8A5300; --warn-soft: #FAEBCF; --bad: #B3261E; --bad-soft: #FAE3DF; color-scheme: light; }

/* ==========================================================================================================================
   One colour means tap (Matt, 16 Nov 2026: "some colours are repeated on buttons and information so it makes it a bit
   confusing on what is clickable"). Cobalt, and its lilac tint, only ever sit on something you can tap: buttons, links,
   tabs, pickers, menus, and the hover on a row that opens. Everything else is ink and paper: status, dates, counts,
   headers, notices and avatars use charcoal, cream and the warm grey. Green, amber and red still mean good, waiting and
   wrong. This layer comes last, so it wins.
   ========================================================================================================================== */
:root { --page-accent: var(--accent); --page-accent-hover: var(--accent-hover); --page-accent-ink: var(--accent-ink);
  --paper-2: #ECE5D6; --nx-bg: #1D1B22; --nx-fg: #F5F1E8; --nx-tap: #8B95FF; --nx-tap-hover: #A6AEFF; --nx-tap-ink: #12111A; }
:root[data-theme="dark"] { --paper-2: #2A2733; --nx-bg: #F3EEE3; --nx-fg: #1D1B22; --nx-tap: #3546F0; --nx-tap-hover: #2734C9; --nx-tap-ink: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper-2: #2A2733; --nx-bg: #F3EEE3; --nx-fg: #1D1B22; --nx-tap: #3546F0; --nx-tap-hover: #2734C9; --nx-tap-ink: #FFFFFF; } }

/* the everyday button: lilac with cobalt words, so it reads as a button and never as a label */
button:not([class]), button.sm:not(.primary):not(.ghost):not(.danger):not(.link), a.btn:not(.primary), .mfoot button:not(.primary):not(.danger):not(.link):not(.ghost), .row > button:not([class*="primary"]):not(.link):not(.ghost):not(.danger):not(.badge),
.rmore > summary, .nextgig [data-glbox] button:not(.primary) { color: var(--accent); }
.seg button:not(.on), .workspace button:not(.on), .vtabs > button:not(.on) { color: var(--accent) !important; }
/* not !important: the slide animates this colour, and an important colour would beat the animation */
.vtabs.has-glide > button:not(.on) > .vt { color: var(--accent); }
.acctmenu [role="menuitem"] svg { color: var(--muted); }
.ghost { color: var(--accent); }
.topbar .ghost.who-menu, .topbar .ghost.who-menu .orgname { color: var(--text); }
/* the header tabs are the map of the app: ink, with the place you are on in cobalt over its bar */
.tabs button:not(.on) { color: var(--muted) !important; }
.tabs button:not(.on):hover { color: var(--text) !important; }

/* status is a word in ink. Booked is the strong one: solid charcoal, not a cobalt button */
.badge.accent { background: var(--paper-2); color: var(--text); }
.badge.solid { background: var(--text); color: var(--bg); }
.avatar { background: var(--text); color: var(--bg); }
.pic { background: var(--paper-2); color: var(--text); }
.pic[data-tone="1"] { background: #D9D1C0; color: var(--charcoal); }
:root[data-theme="dark"] .pic[data-tone="1"] { background: #3B3644; color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pic[data-tone="1"] { background: #3B3644; color: var(--text); } }
.doorplus { background: var(--paper-2); color: var(--text); }
.sect .count, .deyebrow, .rdate span, .mstrip .owe b, .dstat.good b { color: var(--text); }
.dcan li::before { background: var(--text); }
.dash { border-left-color: var(--text); }

/* today is bold ink with a small ink dot, not cobalt */
.day.today .n, .gdate.today b, .gdate.today span:first-child, .wdh.today, .bdh.today, .wdays button.today:not(.on) b, .day.has.full .fill { color: var(--text); }
.day.today { background: color-mix(in srgb, var(--paper-2) 70%, var(--panel)); }
.wcell.today, .bslotcell.today { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }

/* headers, notices and panels that hold information sit on warm paper, not lilac */
.rnight .rhead, .cal .dow, .aroom > .sect, main .banner, .modal .banner, .confirmzone, .dooradd { background: var(--paper-2); }
.card.empty { background: color-mix(in srgb, var(--paper-2) 60%, var(--panel)); }
tr.cur td, table.money tr.cur td { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
@media (max-width: 760px) { table.money tr.cur { background: color-mix(in srgb, var(--paper-2) 70%, transparent); } }
.lineup .item.you { background: var(--paper-2); }
.steps i { background: var(--paper-2); }
.skel i { background: var(--paper-2); }
@keyframes m-flash { 0%, 30% { background: var(--paper-2); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .rset.flash, .doorrow.flash { background: var(--paper-2); } }

/* Next up: a charcoal ticket (cream in dark mode) instead of a cobalt block, so the only cobalt on it is what you tap.
   The date is the one big thing on it. */
.nextgig { background: var(--nx-bg); color: var(--nx-fg); box-shadow: 0 14px 34px rgba(29, 27, 34, .22);
  --accent: var(--nx-tap); --accent-hover: var(--nx-tap-hover); --accent-ink: var(--nx-tap-ink); --lilac: color-mix(in srgb, var(--nx-tap) 22%, var(--nx-bg)); --lilac-deep: color-mix(in srgb, var(--nx-tap) 34%, var(--nx-bg)); }
.nextgig:hover { box-shadow: 0 18px 40px rgba(29, 27, 34, .26); }
.nextgig::before, :root[data-theme="dark"] .nextgig::before { background: var(--nx-fg); color: var(--nx-bg); box-shadow: 0 0 0 2px var(--nx-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nextgig::before { background: var(--nx-fg); color: var(--nx-bg); } }
.nextgig button:not(.primary), .nextgig .btn { background: var(--lilac); color: var(--accent); }
.nextgig button:not(.primary):hover, .nextgig .btn:hover { background: var(--lilac-deep); }
.nextgig .link, .nextgig summary, .nextgig a:not(.btn), .nextgig .card a:not(.btn) { color: var(--accent) !important; }
.nextgig .badge { background: color-mix(in srgb, var(--nx-fg) 14%, transparent); color: var(--nx-fg); }
.nextgig .gdate b { font-size: 60px; letter-spacing: -0.06em; line-height: .9; }
.nextgig .card.gig { grid-template-columns: 84px minmax(0, 1fr); }
.nextgig .gtime { font-size: 17px; font-weight: 800; }
@media (max-width: 520px) { .nextgig .gdate b { font-size: 48px; } .nextgig .card.gig { grid-template-columns: 66px minmax(0, 1fr); } .nextgig .gtime { font-size: 16px; } }
/* the guest list box opens as page paper inside the ticket, with the page's own cobalt */
.nextgig [data-glbox] { --accent: var(--page-accent); --accent-hover: var(--page-accent-hover); --accent-ink: var(--page-accent-ink); --lilac: #E4DDF4; --lilac-deep: #CFC4EC; }
:root[data-theme="dark"] .nextgig [data-glbox] { --lilac: #2E2A47; --lilac-deep: #3D3760; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nextgig [data-glbox] { --lilac: #2E2A47; --lilac-deep: #3D3760; } }
/* "I can't make it" in the later gig cards was grey: it is tappable, so it is cobalt like every other link (still small) */
.gacts [data-cant] { color: var(--accent); }

/* ---------------------------------------------------------------- 17 Nov 2026 */
/* Venue row in one track, like the Venue/Agency switch (Matt: "maybe it's because they're not in the container
   together and the box kind of jumps between them"). The row itself is kept between redraws (app.js pickerRow). */
.vtabs.vpick { display: inline-flex; max-width: 100%; gap: 2px; padding: 3px; background: var(--lilac); border-radius: var(--radius); border: 0 !important; margin-bottom: 14px; }
.vtabs.vpick > button { background: transparent !important; border: 0 !important; box-shadow: none !important; transition: none !important; border-radius: var(--radius-c) !important; }
.vtabs.vpick > button:not(.on):hover > .vt { text-decoration: underline; text-underline-offset: 3px; }
.vtabs.vpick.has-glide > .glide { background: var(--accent); border-radius: var(--radius-c); }
@media (max-width: 760px) { .vtabs.vpick { display: grid; width: 100%; } }

/* Home: one huge thing, then small tiles */
.home .hkick { margin: 4px 0 4px; font-size: 13px; color: var(--muted); }
.home .hbig { font-size: clamp(56px, 9vw, 116px); line-height: .9; letter-spacing: -.05em; font-weight: 900; margin: 0 0 22px; }
.home .hnext { margin: -8px 0 0; font-size: 15px; }
.home .hsec { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin: 34px 0 10px; color: var(--text); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.hch { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.hch b { font-size: 15px; }
.hrow { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.hrow i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.hrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow b.open { color: var(--warn); font-weight: 700; }
.hrow span { color: var(--muted); font-size: 12px; }
.hguest { margin-top: 6px; }
.htiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
button.htile { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; min-height: 104px; padding: 12px 14px;
  background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; color: var(--text) !important; font-weight: 400; }
button.htile:hover { border-color: var(--accent) !important; }
.htile b { font-size: 36px; line-height: 1; font-weight: 900; letter-spacing: -.04em; color: var(--text); }
.htile.warn b { color: var(--warn); }
.htile.zero b { color: var(--muted); opacity: .55; }
.htile span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.htile i { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.hweek .hday { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.hweek .hdate, .hshow .hdate { font-weight: 700; font-variant-numeric: tabular-nums; }
.hopen { color: var(--warn); }
.hshows { display: grid; gap: 0; }
button.hshow { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 10px 4px;
  background: transparent !important; border: 0 !important; border-top: 1px solid var(--line-soft) !important; border-radius: 0 !important; color: var(--text) !important; font-weight: 400; }
button.hshow:hover { background: var(--paper-2) !important; }
.hshow .hwho { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.hshow .hdot { width: 9px; height: 9px; border-radius: 2px; flex: none; align-self: center; }
@media (max-width: 640px) {
  .home .hbig { font-size: 56px; margin-bottom: 16px; }
  .home .hsec { margin-top: 24px; }
  .htiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  button.htile { min-height: 92px; padding: 10px 12px; }
  .htile b { font-size: 30px; }
  .hrow { grid-template-columns: 96px minmax(0, 1fr); } .hrow span { display: none; }
  button.hshow { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; }
}

/* Paste a list of names */
.gprev { max-height: 220px; overflow: auto; }
.gprev ul { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; columns: 2; column-gap: 20px; }
#gtext { font: inherit; font-size: 15px; width: 100%; resize: vertical; }
/* the names flip colour the instant the pill is under them: a fade left a cobalt name on the cobalt pill for a few frames */
.vtabs.vpick > button > .vt, .vtabs.vpick.tracking > button > .vt { transition: none !important; animation: none !important; }
.vtabs.vpick.has-glide > button.on { background: transparent !important; }
/* Home's one huge thing stays huge on phones: the general phone rule shrinks every h1 to 22px with !important */
.home h1.hbig { font-size: clamp(56px, 9vw, 116px) !important; line-height: .9 !important; letter-spacing: -.05em !important; }
@media (max-width: 640px) { .home h1.hbig { font-size: 52px !important; } }

/* ==========================================================================================================================
   No blue (Matt, 17 Nov 2026: "we fuck off the blue atm on whole website. the front home page feels modern and great, we go
   off that"). The homepage palette everywhere: charcoal and cream, warm paper tints where lilac was. What you tap is
   charcoal (cream in dark mode); links keep their underline. This layer comes last, so it wins.
   ========================================================================================================================== */
:root, :root[data-theme="light"] {
  --cobalt: #1F1D22; --cobalt-deep: #2E2B35; --lilac: #ECE5D6; --lilac-deep: #DED4C1;
  --sa-blue: var(--cobalt); --sa-blue-hover: var(--cobalt-deep);
  --accent: #1F1D22; --accent-hover: #2E2B35; --accent-ink: #F3EFE6; --accent-soft: #ECE5D6;
  --nx-tap: #F3EFE6; --nx-tap-hover: #FFFFFF; --nx-tap-ink: #1F1D22;
}
:root[data-theme="dark"] {
  --cobalt: #F3EFE6; --cobalt-deep: #FFFFFF; --lilac: #2A2733; --lilac-deep: #3A3644;
  --accent: #F3EFE6; --accent-hover: #FFFFFF; --accent-ink: #1F1D22; --accent-soft: #2A2733;
  --nx-tap: #1F1D22; --nx-tap-hover: #2E2B35; --nx-tap-ink: #F3EFE6;
  --sa-white: var(--panel);   /* never set before: the white fallback lit up boxes in dark mode */
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --cobalt: #F3EFE6; --cobalt-deep: #FFFFFF; --lilac: #2A2733; --lilac-deep: #3A3644;
  --accent: #F3EFE6; --accent-hover: #FFFFFF; --accent-ink: #1F1D22; --accent-soft: #2A2733;
  --nx-tap: #1F1D22; --nx-tap-hover: #2E2B35; --nx-tap-ink: #F3EFE6; --sa-white: var(--panel); } }
.inv-doc { --accent: #1F1D22; --accent-hover: #2E2B35; --accent-ink: #F3EFE6; --accent-soft: #ECE5D6; --lilac: #ECE5D6; --lilac-deep: #DED4C1; }
.viewbar label:focus-within { outline-color: var(--accent); }
:root[data-theme="dark"] .bslotcell.today { background: #2A2733; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bslotcell.today { background: #2A2733; } }
/* text buttons were told apart by colour; with one ink they are told apart by the underline */
.link { text-decoration: underline; text-underline-offset: 3px; }
/* Home is this week: a drop down per venue (or per artist), its nights inside */
.hdrops { display: grid; gap: 10px; margin-top: 8px; }
.hdrop { background: var(--panel); border-radius: var(--radius); box-shadow: var(--lift); }
.hdrop > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; }
.hdrop > summary::-webkit-details-marker { display: none; }
.hdrop > summary b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.hdrop > summary > .muted { margin-left: auto; }
.hdbody { padding: 0 18px 14px; }
.hdbody > .link { margin-top: 8px; padding-left: 0; }
.hwday { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line-soft); padding: 4px 0; }
.hwday .hdate { padding-top: 6px; font-size: 13.5px; }
.hwday .hrow { border-top: 0; padding: 5px 0; }
.hwday.past { opacity: .45; }
.hwday.now .hdate { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 640px) { .hdrop > summary { padding: 14px; } .hdbody { padding: 0 14px 12px; } .hwday { grid-template-columns: 52px minmax(0, 1fr); } }
/* the phone page picker (Home, Roster...) always has a clear border, not only when tapped (Matt, 18 Nov 2026) */
.topbar .navbtn { border: 1px solid var(--text); }
/* A slight border round every box, so one does not fold into the next (Matt, 18 Nov 2026: "it doesn't have to be a
 * very bold border ... just to break apart all these different boxes"). */
:root { --edge: color-mix(in srgb, var(--text) 13%, transparent); }
.card, .list, .cal, .djcard, .doorlist, .aroom, .hdrop, .dstat, .rnight { border: 1px solid var(--edge) !important; }
.rnight { border-radius: var(--radius); }
/* Avails and Advancing: each date is its own box, a little apart, rather than rows that run into each other */
.slist:has(> .avrow), .slist:has(> .advrow) { background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible; display: grid; gap: 8px; }
.slist > .avrow, .slist > .advrow { background: var(--panel); border: 1px solid var(--edge) !important; border-radius: var(--radius); box-shadow: var(--lift); }
.slist { border-color: var(--edge) !important; }
/* rows in a table (Timesheets by month, Invoices, Payments) are told apart a little more clearly */
th, td { border-bottom-color: var(--edge) !important; }
.rnight .rtable { border: 0 !important; }
.card .list, .hdrop .list, .modal .list, .modal .card, .nextgig .card, .card .card { border-color: transparent !important; }
/* the act's tick on the roster: they have confirmed the set (Matt, 18 Nov 2026) */
.pw { position: relative; display: inline-flex; flex: none; }
.okmark { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--good); color: var(--panel); flex: none; }
.okmark svg { width: 10px; height: 10px; }
.pw .okmark { position: absolute; right: -5px; bottom: -5px; box-shadow: 0 0 0 2px var(--panel); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gconf { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.gconfrow { margin-top: 10px; align-items: center; }
.newsets h3 { margin: 0 0 8px; }
.newsets .nshead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.newsets .nshead h3 { margin: 0; }
.newsets details { margin-top: 6px; }
.newsets summary { cursor: pointer; padding: 4px 0; }
.newsets .item { cursor: default; }
/* the roster on a phone: one line a set. Time, the act (photo, name), the room, what it costs, the dots. */
@media (max-width: 760px) {
  .rset, .rtable.oneroom .rset { grid-template-columns: 42px minmax(0, 1fr) auto auto auto 34px !important; grid-template-areas: "t who st room amt more" !important;
    gap: 0 7px !important; padding: 6px 0 6px 10px !important; min-height: 54px; }
  .rset .t { font-size: 12.5px !important; line-height: 1.25; }
  .rset .st:empty { display: none; }
  .rset .room { background: none !important; padding: 0 !important; font-size: 12px !important; font-weight: 600 !important; color: var(--muted); max-width: 72px; }
  .rset .amt { font-size: 12px !important; }
  .rset .who { gap: 8px; }
  .rset .who .pic { width: 30px !important; height: 30px !important; font-size: 10.5px !important; }
  .rset .who .bpick { min-height: 40px; padding: 2px 2px; gap: 3px; }
  .rset .who .bpick svg { width: 9px; height: 9px; flex: none; }
  .rset .who .bpick .bname, .rset .who.past { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rset .more { width: 34px !important; min-height: 40px !important; }
}
/* the act and the artist: a bigger photo, and their name as the heading (Matt, 18 Nov 2026) */
@media (max-width: 760px) {
  .profile { gap: 16px; margin-bottom: 18px; }
  .profile .photo .pic { width: 92px !important; height: 92px !important; font-size: 30px !important; }
  .profile .photo .edit { font-size: 10.5px !important; padding: 2px 0; }
  .profile h1 { font-size: 30px !important; line-height: 1.05; }
}
.hdrop .hdot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
/* Home leads with what is exciting; anything to do waits in one closed drop down (Matt, 17 Nov 2026: "people wanna
 * know whats exciting when they get to a home screen, they dont want a to do list") */
.snap .item { min-height: 48px; padding: 9px 14px; gap: 10px; }
.snap .item .main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.snap .item .title { font-weight: 650; color: var(--text); }
.snap .item .sub { font-size: 13px; }
.snap .item .chev { color: var(--accent); font-size: 20px; line-height: 1; flex: none; }
.hdrop.notes { margin: 12px 0; }
.hdrop.notes > summary { padding: 13px 16px; }
.hdrop.notes > summary b { font-size: 16px; font-weight: 750; }
.notes .hdbody { padding: 0 6px 6px; }
.notes .list { box-shadow: none; background: transparent; }
/* a time box can be typed or picked: the clock at its end opens a list of times */
.t24box { position: relative; display: block; }
.t24box > input[data-t24] { padding-right: 40px; }
.t24box > .t24clock { position: absolute; right: 10px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.t24box > select.t24pick { position: absolute; right: 0; top: 0; bottom: 0; width: 40px; min-height: 0; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.t24box:hover > .t24clock { color: var(--text); }
.hlbox { background: var(--raised); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 10px; }
.hlbox > .link { justify-self: start; padding-left: 0; }
