:root {
  --bg: #f7f8fa;
  --paper: #fff;
  --ink: #202731;
  --muted: #697281;
  --line: #e5e8ed;
  --accent: #2563eb;
  --soft: #edf3ff;
  --green: #eaf6ef;
  --radius: 9px;
  --sidebar: 196px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; font-weight: 650; overflow-wrap: anywhere; }
h2 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
p { margin: 6px 0 10px; }
small { font-size: 12px; color: var(--muted); line-height: 1.4; }
strong { font-weight: 600; }
.quiet { color: var(--muted); font-size: 12px; }
.accent { color: var(--accent); }
.slash { padding: 0 5px; color: #a2a9b3; }
.meta-dot { padding: 0 3px; color: #a2a9b3; }
.grow { flex: 1; min-width: 0; }
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.arrow { font-size: 17px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; top: -100px; z-index: 99; padding: 12px; background: white; }
.skip:focus { top: 10px; }

/* Shell */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 26px 14px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--paper); z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; letter-spacing: -.9px; line-height: 1; }
.sidebar > .brand { padding: 0 10px; margin-bottom: 34px; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 3px; width: 25px; height: 26px; color: var(--accent); }
.brand-mark i { display: block; width: 3px; height: 12px; background: currentColor; border-radius: 3px; }
.brand-mark i:nth-child(2) { height: 23px; }
.brand-mark i:nth-child(3) { height: 17px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav > a { display: flex; gap: 11px; align-items: center; min-height: 39px; padding: 9px 11px; border-radius: 6px; color: #626d7c; font-size: 13px; }
.nav > a:hover { background: #f5f6f8; }
.nav > a.active { background: var(--soft); color: #1c56cc; font-weight: 600; }
.count { font-size: 10px; background: var(--accent); color: white; border-radius: 5px; padding: 1px 6px; margin-left: auto; font-variant-numeric: tabular-nums; }
.sidebar-bottom { margin-top: auto; }
.test-label { display: inline-flex; align-items: center; gap: 6px; padding: 10px; color: var(--muted); font-size: 11px; }
.test-label > span { width: 5px; height: 5px; background: #9ca5b1; border-radius: 50%; }
.profile { display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding: 14px 6px 2px; }
.profile strong { font-size: 12px; }
.profile small { display: block; font-size: 11px; }
.profile > .icon { width: 14px; color: #858e9c; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #eef1f6; color: #546175; border-radius: 50%; font-size: 11px; font-weight: 600; width: 30px; height: 30px; }
.avatar.large { width: 38px; height: 38px; font-size: 14px; }
.workspace { margin-left: var(--sidebar); }
.mobile-topbar { display: none; }
main { max-width: 1220px; padding: 32px 32px 48px; margin: auto; }
.page-head { margin-bottom: 20px; }
.eyebrow, .tiny-label { font-size: 10px; letter-spacing: .6px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.eyebrow { margin: 0 0 7px; }
.lede { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.split { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.section-title h2 .pill { vertical-align: middle; margin-left: 5px; }
.section-title p { margin: 4px 0 0; }
.back { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 12px; min-height: 24px; }
.back:hover, .text-link:hover { color: var(--accent); }

/* Compact dashboard */
.overview-stats { display: flex; flex-wrap: wrap; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overview-stats > span { color: var(--muted); font-size: 12px; display: inline-flex; gap: 5px; align-items: baseline; }
.overview-stats > span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.overview-stats b { color: var(--ink); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.overview-stats b.stat-attention { color: var(--accent); }
.action-list, .event-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.action-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto 16px; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.action-row:last-child { border: 0; }
.action-row:hover, .event-row:hover { background: #fafbfe; }
.task-icon, .mini-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 7px; background: var(--soft); color: #4b73b9; }
.action-content { min-width: 0; }
.action-content strong { display: block; font-size: 13px; margin-bottom: 2px; }
.action-content > span { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.action-deadline { color: var(--muted); font-size: 11px; white-space: nowrap; }
.action-row > .icon { width: 15px; height: 15px; color: #99a1ac; }
.event-row { display: block; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.event-row:last-child { border: 0; }
.event-main { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.event-main strong { font-size: 14px; }
.event-row p { font-size: 12px; color: var(--muted); margin: 5px 0 12px; }
.gig-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 8px; }
.progress-track { display: flex; gap: 4px; margin-top: 6px; }
.progress-track > span { background: #edf0f4; height: 3px; flex: 1; border-radius: 2px; }
.progress-track > span.done { background: #7198f1; }
.list-link { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-link:first-child { padding-top: 0; }
.list-link:last-child { padding-bottom: 0; border: 0; }
.list-link strong { font-size: 13px; }
.list-link small { display: block; margin-top: 3px; font-size: 11px; }
.list-link > .icon { width: 15px; color: #99a1ac; }
.invoice-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); margin-bottom: 10px; font-size: 12px; }
.invoice-card strong { font-size: 22px; letter-spacing: -.4px; }

/* Shared surfaces and controls */
.two-col { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; align-items: start; }
.task-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.card, .gig-card { display: block; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card > h2, .card > h3 { margin-bottom: 12px; }
.card.narrow { max-width: 640px; }
.gig-card { margin-bottom: 0; }
.gig-card:hover { border-color: #b2c8f0; }
.gig-card h3 { font-size: 16px; font-weight: 600; margin: 12px 0 6px; letter-spacing: -.2px; }
.gig-card p { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.pill { display: inline-flex; align-items: center; border-radius: 5px; padding: 3px 7px; background: #f0f2f5; color: #616b78; font-size: 10px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.pill.coral { background: var(--soft); color: #285fc5; }
.pill.yes { background: var(--green); color: #30704b; }
.pill.no { background: #fcefed; color: #ab584e; }
.empty { border: 1px dashed #d2d9e2; padding: 22px; border-radius: var(--radius); color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.empty.compact { border: 0; padding: 8px 0; display: flex; align-items: center; gap: 8px; }
.action-list > .empty, .event-list > .empty { padding: 16px; }
.space { margin-top: 18px; }
.space-small { margin-top: 10px; }
.text-link { font-size: 12px; color: #4d6eaa; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; border-radius: 6px; border: 1px solid transparent; background: var(--accent); color: white; font-size: 12px; font-weight: 550; cursor: pointer; line-height: 1.4; text-align: center; }
button:hover, .button:hover { background: #1d54cd; }
.button .icon, button .icon { width: 15px; height: 15px; }
.secondary { background: var(--paper); color: #4c5665; border-color: #dce1e8; }
.secondary:hover { background: #f5f7fa; border-color: #c5cedb; }
.small { font-size: 11px; min-height: 32px; padding: 6px 9px; }
.text-button { background: transparent; color: var(--muted); border-color: transparent; padding: 6px 4px; }
.text-button:hover { background: #f1f4f8; color: var(--ink); }
.icon-button { background: transparent; color: var(--muted); min-width: 30px; min-height: 32px; padding: 5px; border-color: #e2e6eb; }
.icon-button:hover { background: #f1f4f8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.actions form { margin: 0; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.inline-form select { width: auto; flex: 1; margin: 0; }
.inline-form button { margin: 0; }
.answer-buttons { display: flex; gap: 8px; margin: 12px 0; }
.answer-buttons button { flex: 1; }
.accent-card { border-color: #d5e2fb; background: #fbfcff; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-height: 45px; }
.person-row:first-child { padding-top: 0; }
.person-row:last-child { border: 0; padding-bottom: 0; }
.role-control { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.role-control select { width: 116px; min-height: 30px; padding: 4px 6px; font-size: 12px; }
.role-control > button { min-height: 30px; margin: 0; padding: 4px 8px; }
.role-toggle { display: inline-flex; gap: 2px; min-width: 0; margin: 0; padding: 2px; border: 1px solid #d9dfe8; border-radius: 6px; background: #f1f3f6; }
.role-toggle label { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 500; }
.role-toggle input[type=radio] { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
.role-toggle span { display: block; min-height: 28px; padding: 6px 11px; border-radius: 4px; color: #61707f; font-size: 12px; line-height: 16px; }
.role-toggle label:hover input:not(:checked) + span { background: #e5e9ef; color: var(--ink); }
.role-toggle input:checked + span { background: var(--accent); color: white; }
.role-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.role-list .person-row { flex-wrap: wrap; }
.role-list .person-row .grow { min-width: 100px; }
.person-row small { display: block; overflow-wrap: anywhere; font-size: 11px; }
.person-row strong { font-size: 12px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: -2px 0 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.tabs > a { padding: 10px 0; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs > a.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.steps { padding-top: 3px; padding-bottom: 3px; }
.step { padding: 10px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border: 0; }
.step > a { display: flex; align-items: center; gap: 10px; }
.step small { display: block; margin-top: 2px; font-size: 11px; }
.step .arrow { margin-left: auto; font-size: 14px; }
.step strong { font-size: 12px; }
.step-number { display: flex; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid #dbe0e7; border-radius: 6px; width: 26px; height: 26px; font-size: 11px; color: #838c99; font-variant-numeric: tabular-nums; }
.step-number.done { background: var(--green); border-color: transparent; color: #35724e; }
.assign { margin-left: 36px; margin-top: 3px; }
.assign summary { font-size: 10px; font-weight: 400; color: var(--muted); min-height: 20px; line-height: 20px; }
.assign form { margin-top: 5px; }

/* Forms */
form > div:not(.actions):not(.answer-buttons):not(.form-grid):not(.date-options):not(.check-list):not(.invoice-rows) { margin-bottom: 10px; }
form > button { margin-top: 8px; }
form label { display: block; font-size: 12px; font-weight: 550; margin: 9px 0 5px; }
input:not([type=checkbox]):not([type=radio]), textarea, select { display: block; width: 100%; min-width: 0; border: 1px solid #d8dfe7; border-radius: 6px; background: var(--paper); color: var(--ink); padding: 8px 10px; min-height: 37px; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #939ca9; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: middle; margin: 0 6px 0 0; flex-shrink: 0; }
textarea { resize: vertical; }
.concert-response { padding: 12px; }
.concert-response-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.concert-response-form h2 { margin: 0 4px 0 0; font-size: 13px; white-space: nowrap; }
.concert-response .answer-buttons { flex-shrink: 0; gap: 6px; margin: 0; }
.concert-response .answer-buttons button { min-height: 30px; padding: 5px 10px; }
.concert-response .concert-response-form input[name=comment] { flex: 1; width: auto; min-width: 120px; min-height: 30px; padding: 5px 8px; font-size: 12px; }
.concert-response-deadline { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.form-grid > button { align-self: end; justify-self: start; margin-bottom: 10px; }
.helptext { font-size: 11px; color: var(--muted); }
.errorlist { color: #a83f36; font-size: 12px; padding-left: 18px; }
.flash { border: 1px solid #cce3d5; background: #f0f9f3; padding: 10px 14px; margin-bottom: 16px; border-radius: 7px; font-size: 12px; color: #38654a; }
.notice { padding: 10px 12px; background: #fff8e9; border-left: 2px solid #d5ab55; font-size: 12px; margin: 10px 0; color: #816533; }
summary { font-size: 13px; font-weight: 550; cursor: pointer; min-height: 24px; line-height: 24px; }
details[open] > summary { margin-bottom: 10px; }
.search-form { display: flex; gap: 7px; }
.search-form button { margin: 0; }
.member-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; }
.member-choice button { background: var(--paper); color: var(--ink); border: 1px solid var(--line); width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; padding: 15px; text-align: left; position: relative; }
.member-choice button:hover { border-color: #b8cbec; background: #fbfcff; }
.member-choice .avatar { grid-column: 1; grid-row: 1 / 3; }
.member-choice strong { font-size: 13px; }
.member-choice small { grid-column: 2; font-size: 11px; font-weight: 400; }
.member-choice .arrow { display: none; }
.library-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.library-row:first-child { padding-top: 0; }
.library-row:last-child { padding-bottom: 0; border: 0; }
.library-row p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

/* Dates, setlists, rehearsals and logistics */
.date-option { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.date-option small { display: block; font-size: 11px; }
.date-option strong { font-size: 13px; }
.date-option .pill { margin-left: 7px; }
.date-option details { margin-top: 4px; }
.date-option summary { font-size: 11px; min-height: 22px; line-height: 22px; }
.date-option details p { font-size: 12px; }
.availability { font-size: 11px; margin-top: 5px; color: var(--muted); }
.availability b { color: #37734d; }
.vote { border: 0; padding: 0; flex-shrink: 0; }
.vote legend { font-size: 10px; color: var(--muted); }
.vote label { display: flex; align-items: center; font-weight: 400; min-height: 25px; margin: 3px 0; }
.check-list label { display: flex; align-items: center; gap: 5px; padding: 6px 0; font-weight: 400; }
.suggestion { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.suggestion > span:last-child { margin-left: auto; text-align: right; }
.suggestion small { display: block; font-size: 11px; }
.rank { font-size: 13px; font-variant-numeric: tabular-nums; color: #919baa; }
.setlist { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.song-row { display: flex; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; background: var(--paper); }
.song-row:last-child { border: 0; }
.song-number { color: #98a1ad; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 20px; padding-top: 2px; }
.song-content { flex: 1; min-width: 0; }
.song-title { display: flex; align-items: center; gap: 8px; }
.song-row p { font-size: 12px; color: var(--muted); margin: 3px 0; }
.song-row small { font-size: 11px; }
.song-row .song-note { color: var(--ink); margin-top: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.row-actions form { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form > button { margin: 0; }
.removed { background: #f5f6f8; color: #929ba7; }
.removed h3 { text-decoration: line-through; }
.log-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.log-item:last-child { border: 0; }
.log-item p { font-size: 12px; margin: 3px 0; }
.log-item small { font-size: 11px; }
.people-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rehearsal-song { margin-bottom: 10px; }
.rehearsal-song .split h3 { font-size: 15px; }
.invoice-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.invoice-row label { margin: 0; }
.invoice-row .tiny-label { font-size: 9px; margin-bottom: 4px; }
.invoice-row > label { display: flex; align-items: center; }
.invoice-row > small { text-align: right; font-size: 11px; }
.notification { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.notification:first-child { padding-top: 0; }
.notification:last-child { border: 0; padding-bottom: 0; }
.notification h3 { font-size: 13px; }
.notification p { font-size: 12px; color: var(--muted); margin: 4px 0; }
.notification.unread h3:before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
dl { margin-top: 20px; }
dt { font-size: 11px; color: var(--muted); margin-top: 14px; }
dd { margin: 4px 0; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  :root { --sidebar: 180px; }
  main { padding: 26px 24px 40px; }
  .two-col { gap: 16px; }
  .task-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .row-actions { max-width: 130px; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  h1 { font-size: 24px; letter-spacing: -.6px; }
  .sidebar { inset: auto 0 0; width: 100%; padding: 0; background: var(--paper); border-right: 0; border-top: 1px solid var(--line); }
  .sidebar > .brand, .sidebar-bottom { display: none; }
  .nav { flex-direction: row; gap: 0; justify-content: space-around; padding: 4px 4px max(4px,env(safe-area-inset-bottom)); }
  .nav > a { flex: 1; flex-direction: column; gap: 4px; min-height: 51px; padding: 6px 3px; font-size: 10px; position: relative; background: transparent; border-radius: 0; }
  .nav > a.active { background: transparent; }
  .nav > a .icon { width: 20px; height: 20px; }
  .nav .count { position: absolute; left: calc(50% + 7px); top: 0; font-size: 9px; padding: 0 4px; line-height: 15px; }
  .workspace { margin: 0; padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .mobile-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .mobile-topbar .brand { font-size: 19px; gap: 7px; }
  .mobile-topbar .brand-mark { transform: scale(.85); width: 21px; }
  .mobile-profile { display: flex; gap: 6px; align-items: center; min-height: 44px; font-size: 12px; }
  .mobile-profile .avatar { width: 25px; height: 25px; font-size: 10px; }
  .mobile-profile .icon { width: 13px; color: var(--muted); }
  main { padding: 20px 16px 28px; }
  .page-head { margin-bottom: 16px; }
  .page-head.split { align-items: center; flex-wrap: nowrap; }
  .page-head.split > div { min-width: 0; }
  .page-head.split > .button { flex-shrink: 0; }
  .lede { font-size: 12px; }
  .eyebrow { font-size: 10px; }
  .overview-stats { padding: 10px 0; gap: 10px; justify-content: space-between; }
  .overview-stats > span { font-size: 11px; gap: 4px; }
  .overview-stats > span + span { padding-left: 10px; }
  .overview-stats b { font-size: 13px; }
  .action-row { grid-template-columns: 30px minmax(0,1fr) 14px; gap: 2px 10px; padding: 12px; }
  .task-icon { grid-column: 1; grid-row: 1 / 3; width: 30px; height: 30px; }
  .action-content { grid-column: 2; grid-row: 1; }
  .action-content strong { font-size: 13px; }
  .action-content > span { font-size: 11px; }
  .action-deadline { grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 10px; }
  .action-row > .icon { grid-column: 3; grid-row: 1 / 3; }
  .two-col { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .dashboard-columns { gap: 0; }
  .task-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .section-title { margin: 19px 0 9px; }
  .section-title > .quiet, .section-title > .tiny-label { display: none; }
  .section-title h2 { font-size: 14px; }
  .card, .gig-card { padding: 14px; }
  .event-row { padding: 13px 14px; }
  .event-main { gap: 8px; }
  .event-main strong { font-size: 13px; }
  .event-row p { font-size: 11px; margin-bottom: 10px; }
  .pill { font-size: 10px; padding: 3px 6px; }
  .split { gap: 10px; flex-wrap: wrap; }
  button, .button { min-height: 44px; font-size: 12px; padding: 9px 11px; }
  .small, .icon-button { min-height: 44px; }
  .icon-button { min-width: 40px; }
  .actions { gap: 6px; }
  .actions button { margin-top: 0; }
  .tabs { gap: 20px; margin-bottom: 16px; }
  .tabs > a { display: flex; align-items: center; min-height: 44px; font-size: 12px; padding: 8px 0; }
  .back { min-height: 30px; margin-bottom: 7px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px; min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 18px; height: 18px; }
  summary { min-height: 36px; line-height: 36px; }
  .assign summary { min-height: 28px; line-height: 28px; }
  .date-option { gap: 12px; }
  .date-option .pill { display: table; margin: 4px 0; }
  .date-option strong { font-size: 12px; }
  .date-option summary { min-height: 30px; line-height: 30px; }
  .vote label { min-height: 40px; font-size: 12px; }
  .vote { min-width: 80px; }
  .availability { font-size: 11px; }
  .suggestion { gap: 8px; font-size: 11px; flex-wrap: wrap; }
  .suggestion small { font-size: 10px; }
  .check-list label { min-height: 44px; padding: 6px 0; }
  .song-row { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .song-number { min-width: 18px; }
  .song-content { width: calc(100% - 28px); }
  .row-actions { max-width: none; width: 100%; margin-left: 28px; justify-content: flex-start; gap: 5px; }
  .row-actions form { justify-content: flex-start; }
  .row-actions .small { font-size: 11px; }
  .song-title h3 { font-size: 14px; }
  .member-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .member-choice button { padding: 12px 14px; }
  .member-choice .arrow { display: none; }
  .person-row { gap: 8px; }
  .person-row .avatar { width: 28px; height: 28px; }
  .person-row small { font-size: 11px; }
  .invoice-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .invoice-row > small { grid-column: 1 / -1; text-align: left; }
  .invoice-row label { font-size: 12px; }
  .notification { align-items: flex-start; gap: 10px; }
  .notification button { min-width: 65px; }
  .notification h3 { font-size: 13px; }
  .notice { font-size: 12px; }
}
@media (max-width: 360px) {
  main { padding-left: 12px; padding-right: 12px; }
  .overview-stats { gap: 5px; }
  .overview-stats > span + span { padding-left: 6px; }
  .page-head.split { flex-wrap: wrap; }
  .event-main { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; scroll-behavior: auto !important; }
}

/* Personlig område og valgt band */
:root { --sidebar: 224px; }
.sidebar > .brand { margin-bottom: 26px; }
.personal-nav > .mobile-member { display: none; }
.personal-nav { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.band-navigation { padding-top: 20px; }
.nav-label { margin: 0 10px 10px; color: #8a93a1; font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.band-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; color: #3e6288; background: #e7eff7; font-size: 12px; font-weight: 700; overflow: hidden; }
.band-mark-alt { color: #6a568b; background: #eee9f7; }
.band-mark img { width: 100%; height: 100%; object-fit: cover; }
.band-switcher { position: relative; margin-bottom: 12px; }
.band-switcher > summary { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; list-style: none; line-height: 1.3; }
.band-switcher > summary::-webkit-details-marker { display: none; }
.band-switcher > summary:hover, .band-switcher[open] > summary { background: #f7f8fa; border-color: var(--line); }
.band-switcher[open] > summary { margin-bottom: 0; }
.band-switcher strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.band-switcher small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; }
.band-switcher > summary > .icon { color: #8b95a3; width: 13px; }
.band-options { position: absolute; left: 0; right: -24px; top: calc(100% + 5px); padding: 5px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 6px 24px #20273112; z-index: 20; }
.band-options > a { display: flex; align-items: center; gap: 9px; padding: 9px 7px; border-radius: 5px; font-size: 12px; }
.band-options > a:hover { background: #f4f7fc; }
.band-options .band-mark { width: 26px; height: 26px; font-size: 10px; }
.band-options .icon { width: 14px; color: var(--accent); }
.band-options > .add-band { border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; color: var(--muted); }
.band-context { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin: 0 0 14px; }
.band-context .band-mark { width: 21px; height: 21px; border-radius: 5px; font-size: 9px; }
.task-band { color: #495d7b; }
.head-actions { display: flex; gap: 7px; flex-shrink: 0; }
.rehearsal-index-row { display: flex; align-items: center; gap: 18px; padding: 16px; border-bottom: 1px solid var(--line); }
.rehearsal-index-row:last-child { border-bottom: 0; }
.rehearsal-index-row:hover { background: #fafbfe; }
.rehearsal-index-row strong { font-size: 13px; }
.rehearsal-index-row small { display: block; font-size: 11px; margin-top: 3px; }
.rehearsal-index-row > .icon { width: 14px; color: #99a1ac; }
.rehearsal-date { font-size: 12px; color: #4d5968; white-space: nowrap; }
.rehearsal-concert-link { margin-left: 16px; }
#new-poll, [id^='poll-'] { scroll-margin-top: 24px; }
@media (min-width: 761px) and (max-width: 1100px) {
  :root { --sidebar: 206px; }
  .rehearsal-index-row { gap: 10px; flex-wrap: wrap; }
  .rehearsal-index-row .grow { min-width: 180px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; border: 0; padding: 12px 16px 0; background: var(--paper); }
  .sidebar > .brand, .sidebar-bottom, .nav-label { display: none; }
  .personal-nav { display: flex; flex-direction: row; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
  .personal-nav > a { flex-direction: row; min-height: 40px; gap: 7px; padding: 8px; font-size: 12px; }
  .personal-nav > .mobile-member { display: flex; flex: 0; }
  .personal-nav .count { position: static; margin-left: 2px; }
  .band-navigation { padding-top: 8px; }
  .band-switcher { margin: 0; }
  .band-switcher > summary { padding: 5px 8px; min-height: 44px; }
  .band-options { right: 0; }
  .band-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--line); z-index: 10; }
  .mobile-topbar { display: none; }
  .workspace { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .page-head.split { flex-wrap: wrap; }
  .head-actions { flex-wrap: wrap; }
  .rehearsal-index-row { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .rehearsal-index-row .grow { width: calc(100% - 42px); flex: auto; }
  .rehearsal-index-row > .icon { margin-left: auto; }
}

/* Bandets samlede setlisteoversikt */
.setlist-index-head, .setlist-index-row { display: grid; grid-template-columns: minmax(0,1fr) 150px 60px 160px 16px; gap: 16px; align-items: center; padding: 14px 16px; }
.setlist-index-head { color: var(--muted); font-size: 11px; background: #fafbfc; padding-top: 10px; padding-bottom: 10px; }
.setlist-index-row { border-top: 1px solid var(--line); }
.setlist-index-row:hover { background: #fafbfe; }
.setlist-index-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.setlist-index-title strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.setlist-index-title small { display: block; font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }
.setlist-index-row > .icon { width: 15px; color: #99a1ac; }
@media (min-width: 761px) and (max-width: 1100px) {
  .setlist-index-head, .setlist-index-row { grid-template-columns: minmax(0,1fr) 120px 45px 145px 14px; gap: 10px; }
}
@media (max-width: 760px) {
  .setlist-index-head { display: none; }
  .setlist-index-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .setlist-index-row:first-child { border-top: 0; }
  .setlist-index-title { grid-column: 1 / -1; }
  .setlist-index-row > .icon { justify-self: end; }
}

/* Tekniske standarder og konsertens rider. */
.full-width { grid-column: 1 / -1; }
.role-editor { margin: 18px 0; }
.role-person { border-top: 1px solid var(--line, #e5e8ee); padding: 10px 0; }
.role-person summary { font-weight: 600; cursor: pointer; }
.role-person div[id^="id_roles_"] { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0 2px; }
.role-person label, .delete-equipment { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.role-person input[type="checkbox"], .delete-equipment input { width: auto; }
.equipment-editor { margin: 24px 0 16px; }
.equipment-row { border: 1px solid var(--line, #e5e8ee); border-radius: 9px; padding: 12px; margin: 10px 0; background: #fafbfe; }
.equipment-main { display: grid; grid-template-columns: 1.25fr 1.5fr 55px 80px 1fr; gap: 10px; }
.equipment-main > div { min-width: 0; }
.equipment-row label { font-size: 12px; }
.equipment-row input, .equipment-row select { margin-bottom: 0; }
.equipment-note { display: flex; gap: 20px; align-items: center; margin-top: 8px; }
.equipment-note > div { flex: 1; }
.delete-equipment { white-space: nowrap; padding-top: 16px; }
.rider-summary { display: flex; gap: 35px; align-items: center; }
.rider-summary strong { display: block; font-size: 24px; letter-spacing: -.5px; }
.rider-summary small { display: block; color: var(--muted, #64748b); }
.rider-summary > a { margin-left: auto; }
.rider-totals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.technical-table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 15px; }
.technical-table th, .technical-table td { border-bottom: 1px solid #e5e8ee; padding: 10px 12px; vertical-align: top; }
.technical-table small { display: block; color: #64748b; }
.table-scroll { overflow-x: auto; }
@media (max-width: 760px) { .equipment-main { grid-template-columns: 1fr 1fr; } .rider-summary { flex-wrap: wrap; gap: 20px; } }
@media (max-width: 600px) { .equipment-note { display: block; } .rider-summary > a { margin-left: 0; } }

.equipment-main label { min-height: 32px; display: flex; align-items: end; }
.equipment-row input:not([type=checkbox]), .equipment-row select { font-size: 12px; padding: 7px 8px; }
.form-grid > div:has(> input[type=checkbox]) { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.form-grid > div:has(> input[type=checkbox]) > input { order: -1; flex-shrink: 0; }
.form-grid > div:has(> input[type=checkbox]) > label { margin: 0; }
.schedule-actions, .schedule-actions form { display: flex; gap: 8px; align-items: center; }
.schedule-actions { margin-top: 7px; }
.schedule-actions form > button { margin: 0; }

.schedule-time-field { display: flex; align-items: end; gap: 12px; }
.schedule-time-field > div { flex: 1; min-width: 0; }
.schedule-time-field .schedule-approx { display: flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 37px; margin: 0; }

/* Kjøreplan: tett, lesbar arbeidsliste. */
.schedule-sheet { container-type: inline-size; background: var(--paper); border: 1px solid #d7dce3; }
.schedule-download { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.schedule-download .button { min-height: 28px; padding: 4px 9px; border-radius: 3px; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.schedule-toolbar > div { display: flex; align-items: center; gap: 14px; }
.schedule-toolbar .small { min-height: 28px; padding: 4px 9px; border-radius: 3px; }
.schedule-warning { margin: 0; padding: 7px 12px; border-top: 1px solid #e6dfc6; background: #fbf8ed; color: #72613c; font-size: 12px; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.schedule-table th, .schedule-table td { padding: 8px 12px; border-top: 1px solid #dfe3e8; vertical-align: top; }
.schedule-table thead th { padding-top: 6px; padding-bottom: 6px; background: #f2f4f6; color: #57616e; font-size: 11px; font-weight: 600; }
.schedule-table tbody tr:hover { background: #f8fafc; }
.schedule-table .schedule-day th { background: #edf0f4; color: #4b5665; font-size: 11px; font-weight: 600; padding: 6px 12px; text-align: left; }
.schedule-table .schedule-time { width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-table small { display: block; margin-top: 2px; font-size: 11px; }
.schedule-activity { min-width: 110px; font-weight: 550; }
.schedule-highlight { padding: 1px 3px; border-radius: 2px; background: #fff0a3; color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.schedule-info { overflow-wrap: anywhere; }
.schedule-missing { color: #826525; }
.schedule-inline > summary { min-height: 22px; line-height: inherit; font-size: inherit; font-weight: inherit; list-style: none; text-decoration: underline dotted #aeb8c5; text-underline-offset: 3px; }
.schedule-inline > summary::-webkit-details-marker { display: none; }
.schedule-inline > summary:hover { color: var(--accent); background: #edf2f8; }
.schedule-inline[open] > summary { margin-bottom: 8px; }
.schedule-inline form { white-space: normal; font-weight: 400; }
.schedule-inline input[name=value], .schedule-inline textarea { min-height: 30px; min-width: 140px; padding: 5px 7px; font-size: 12px; }
.schedule-inline textarea { width: 100%; }
.schedule-inline .schedule-quick-actions { margin-top: 8px; }
.schedule-table tr[id] { scroll-margin-top: 16px; }
.schedule-quick-fields, .schedule-quick-actions { display: flex; align-items: center; gap: 8px; }
.schedule-quick-fields label:not(.sr-only) { display: flex; align-items: center; margin: 0; font-weight: 400; }
.schedule-quick-fields input[data-quarter-time] { padding: 4px 28px 4px 6px; min-height: 30px; font-size: 12px; }
.schedule-time-trigger { display: block; min-height: 22px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: underline dotted #aeb8c5; text-underline-offset: 3px; }
.schedule-time-trigger:hover { color: var(--accent); background: #edf2f8; }
.schedule-time-dialog { width: 248px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 12px; border: 1px solid #dce1e8; border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 12px; white-space: normal; box-shadow: 0 8px 28px #14243824; }
.schedule-time-dialog::backdrop { background: #1424381a; }
.schedule-time-dialog form > div { margin-bottom: 8px; }
.schedule-time-dialog-heading { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.schedule-time-dialog-heading h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.4; font-weight: 550; }
.schedule-time-dialog-heading button { flex-shrink: 0; width: 24px; min-height: 24px; padding: 0; margin: 0; font-size: 18px; color: var(--muted); }
.schedule-time-row { display: flex; align-items: center; gap: 6px; }
.schedule-time-row > label { width: 28px; flex-shrink: 0; margin: 0; font-size: 11px; font-weight: 400; color: var(--muted); }
.schedule-time-row .schedule-quick-fields { flex: 1; min-width: 0; gap: 6px; }
.schedule-time-dialog .schedule-quick-fields label { font-size: 11px; }
.schedule-time-dialog input[type=checkbox] { width: 14px; height: 14px; margin-right: 4px; }
.schedule-time-dialog .is-active-clock input { border-color: #a7bde8; background: #f8faff; }
.schedule-time-dialog .schedule-end { margin: 6px 0; }
.schedule-time-dialog .schedule-end > summary { min-height: 22px; line-height: 22px; font-size: 11px; font-weight: 400; color: var(--muted); }
.schedule-time-dialog .schedule-end[open] > summary { margin-bottom: 6px; }
.schedule-time-dialog .schedule-end > button { min-height: 26px; margin: 4px 0 0; padding: 2px 0; font-size: 11px; }
.schedule-time-dialog .schedule-end > button[hidden] { display: none; }
.schedule-time-dialog-actions { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.schedule-time-dialog-actions button { min-height: 28px; padding: 4px 10px; margin: 0; border-radius: 4px; font-size: 11px; font-weight: 500; }
.schedule-time-dialog-actions .secondary { border-color: transparent; background: transparent; color: var(--muted); }
.schedule-time-dialog form > .schedule-time-dialog-actions { margin-bottom: 0; }
.schedule-reset-dialog { width: 360px; padding: 16px; }
.schedule-reset-dialog h3 { font-size: 14px; }
.schedule-reset-dialog p { margin: 10px 0 16px; line-height: 1.6; color: var(--muted); }
.schedule-reset-dialog .schedule-reset-confirm { background: #ad4036; }
.schedule-reset-dialog .schedule-reset-confirm:hover { background: #92362e; }
.schedule-quick-actions button { min-height: 28px; padding: 3px 8px; margin: 0; font-size: 11px; border-radius: 3px; }
.schedule-quick-actions button[hidden] { display: none; }
.schedule-table .schedule-controls { width: 1%; white-space: nowrap; padding-top: 4px; padding-bottom: 4px; }
.schedule-table .schedule-actions { justify-content: flex-end; gap: 8px; margin: 0; }
.schedule-table .schedule-actions a, .schedule-table .schedule-actions button { display: inline-flex; align-items: center; background: transparent; border: 0; border-radius: 2px; color: #3c536f; min-height: 28px; padding: 3px 2px; font-size: 11px; font-weight: 400; }
.schedule-table .schedule-actions a:hover, .schedule-table .schedule-actions button:hover { text-decoration: underline; color: var(--ink); }
.schedule-table .schedule-actions .schedule-remove { justify-content: center; width: 28px; color: #8b94a1; font-size: 18px; line-height: 1; }
.schedule-table .schedule-actions .schedule-remove:hover { color: #475569; text-decoration: none; }
.schedule-table .schedule-actions .schedule-highlight-toggle { justify-content: center; width: 28px; color: #8b94a1; }
.schedule-highlight-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.schedule-table .schedule-actions .schedule-highlight-toggle:hover { background: #fff8d9; color: #876b17; }
.schedule-table .schedule-actions .schedule-highlight-toggle[aria-pressed=true] { background: #fff0a3; color: #785b10; }
.schedule-table .schedule-draft { padding: 0; background: #f6f7f9; color: #858e9b; }
.schedule-table .schedule-draft:hover, .schedule-table .schedule-draft:focus-within { background: #f1f4f8; }
.schedule-table .schedule-draft > td { padding: 0; grid-column: 1 / -1; }
.schedule-new-trigger { display: block; width: 100%; min-height: 36px; margin: 0; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font-size: 12px; font-weight: 400; }
.schedule-new-trigger:hover { background: transparent; color: var(--ink); }
.schedule-new-trigger:focus-visible { outline-offset: -2px; }
.schedule-new-activity label { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.schedule-time-dialog .schedule-new-activity input { min-height: 30px; padding: 4px 6px; font-size: 12px; }
.schedule-editor { padding: 12px; border: 1px solid #d7dce3; background: var(--paper); border-radius: 0; }
.schedule-editor summary { font-size: 12px; font-weight: 550; cursor: pointer; }
.schedule-editor form.space { margin-top: 6px; }
.schedule-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.schedule-editor .schedule-time-field { gap: 8px; }
.schedule-end { margin-top: 10px; }
.schedule-end[open] > summary { margin-bottom: 0; }
.schedule-end-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 16px; }
.schedule-end-fields > div { width: 340px; max-width: 100%; }
.schedule-end-fields > button { margin: 0; }
.schedule-end-fields > button[hidden] { display: none; }
.schedule-clock-input { position: relative; flex: 1; min-width: 0; }
.schedule-clock-input input { padding-right: 32px; font-variant-numeric: tabular-nums; }
.schedule-clock-day { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.schedule-clock-input.has-day-offset input { padding-left: 40px; }
.schedule-clock-input .schedule-clock-toggle { position: absolute; right: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; min-height: 0; width: 28px; padding: 4px; margin: 0; background: transparent; border: 0; color: var(--muted); }
.schedule-clock-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.schedule-clock-picker { position: fixed; z-index: 100; width: 196px; padding: 8px; border: 1px solid #cbd2dc; border-radius: 4px; background: var(--paper); box-shadow: 0 3px 12px #14243820; font-size: 12px; }
.schedule-clock-picker[hidden] { display: none; }
.schedule-clock-picker.is-embedded { position: static; width: 100%; padding: 8px 0; border: 0; border-radius: 0; box-shadow: none; }
.schedule-clock-picker.is-embedded [data-close-clock] { display: none; }
.schedule-clock-picker.is-embedded { padding: 2px 0; }
.schedule-clock-picker.is-embedded .schedule-clock-heading { display: none; }
.schedule-clock-picker.is-embedded .schedule-clock-label { font-size: 10px; padding-bottom: 2px; }
.schedule-clock-picker.is-embedded .schedule-clock-hours { height: 140px; padding-block: 56px; }
.schedule-clock-picker.is-embedded .schedule-clock-hours button, .schedule-clock-picker.is-embedded .schedule-clock-minutes button { height: 28px; }
.schedule-clock-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.schedule-clock-picker button { margin: 0; border: 0; border-radius: 2px; min-height: 28px; padding: 3px 8px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 400; }
.schedule-clock-heading button { font-size: 18px; }
.schedule-clock-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.schedule-clock-label { color: var(--muted); padding: 0 8px 4px; }
.schedule-clock-hours { position: relative; height: 160px; overflow-y: auto; overscroll-behavior: contain; padding-block: 64px; }
.schedule-clock-hours button, .schedule-clock-minutes button { display: block; width: 100%; height: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.schedule-clock-hours button[data-day-start] { border-top: 1px solid var(--line); border-radius: 0; }
.schedule-clock-picker button:hover { background: #edf2f8; }
.schedule-clock-picker button[aria-checked=true], .schedule-clock-picker button[aria-pressed=true] { color: var(--accent); background: #e8effc; font-weight: 600; }
@container (max-width: 540px) {
  .schedule-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule-table, .schedule-table tbody { display: block; }
  .schedule-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 8px 12px; border-top: 1px solid #dfe3e8; }
  .schedule-table tbody th, .schedule-table tbody td { border: 0; padding: 2px 0; width: auto; min-width: 0; }
  .schedule-table .schedule-time { grid-column: 1; grid-row: 1; white-space: normal; }
  .schedule-table .schedule-controls { grid-column: 2; grid-row: 1; padding-left: 10px; }
  .schedule-table .schedule-activity { grid-column: 1 / -1; grid-row: 2; }
  .schedule-table .schedule-info { grid-column: 1 / -1; grid-row: 3; color: var(--muted); }
  .schedule-table .schedule-empty { grid-column: 1 / -1; }
  .schedule-table .schedule-day { padding: 0; }
  .schedule-table .schedule-day th { grid-column: 1 / -1; }
  .schedule-table .schedule-actions a, .schedule-table .schedule-actions button { min-height: 36px; }
}
@media (max-width: 640px) {
  .schedule-fields { grid-template-columns: minmax(0,1fr); }
}
