/*
 OUTRA EVENT CONTROL SYSTEM — Brand skin v0.2
 Industrial / editorial, deliberately restrained.
 Readable Inter-first typography throughout, with native sans-serif fallbacks.
 No remote fonts or third-party assets are requested.
*/
:root {
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: var(--body);
  --ink: #e7e5df;
  --secondary: #a6a5a1;
  --quiet: #858580;
  --accent: #bd5d55;
  --border: #353536;
  --surface: #1a1a1b;
  --surface-2: #222223;
  --base: #121213;
  color-scheme: dark;
  font-family: var(--body);
  color: var(--ink);
  background: var(--base);
  font-synthesis: none;
}
body { background: var(--base); }
button,input,textarea,select { font-family: var(--body); }
::selection { background: #80413b; color: #fff; }
:focus-visible { outline: 2px solid #d5756a; outline-offset: 2px; }

/* Sidebar becomes a control index, not a decorative dashboard. */
.shell { grid-template-columns: 234px minmax(0,1fr); }
.sidebar {
  background: #161617;
  border-right: 1px solid #343435;
  padding: 24px 16px 18px;
  gap: 15px;
  scrollbar-width: thin;
  scrollbar-color: #494749 transparent;
}
.brand-row {
  padding: 0 5px 18px;
  border-bottom: 1px solid #434244;
  min-height: 102px;
}
.brand-logo {
  display: block;
  width: 185px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-sub {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .04em;
  color: #e7e4df;
  white-space: normal;
  text-transform: uppercase;
}
.side-caption {
  font-family: var(--body);
  letter-spacing: .20em;
  font-size: 9px;
  color: #918d8c;
  font-weight: 700;
  padding: 5px 6px 2px;
  margin: 0;
}
.nav { gap: 1px; }
.nav .symbol { display: none; }
.nav button {
  font-family: var(--display);
  text-transform: none;
  font-weight: 550;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 0;
  min-height: 31px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #a7a5a3;
  gap: 0;
}
.nav button:hover {
  color: #f0ede8;
  background: #262425;
}
.nav button.active {
  color: #f4eeeb;
  border-left-color: var(--accent);
  background: #2a2222;
  padding: 8px 10px;
}
.nav button.active:hover { background: #332626; }
.nav .nav-group {
  margin: 15px 10px 6px;
  color: #777673;
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-family: var(--body);
  font-weight: 700;
}
.nav .nav-group:first-child { margin-top: 0; }
.sidebar-bottom {
  flex-shrink: 0;
  padding: 13px 6px 0;
  margin-top: auto;
  background: transparent;
  border: 0;
  border-top: 1px solid #393839;
  border-radius: 0;
  color: #898985;
  line-height: 1.45;
}
.sidebar-bottom p { margin: 8px 0 11px; font-size: 10px; }
.local-status { color: #b9b7b2; font-size: 10px; letter-spacing: .09em; }
.status-dot { width: 6px; height: 6px; background: #9eac99; border-radius: 0; transform: rotate(45deg); }
.version { padding-top: 8px; border-top: 1px solid #323233; font-size: 10px; letter-spacing: .1em; color: #81817e; }

/* Product chrome */
.main-wrapper { background: var(--base); }
.topbar {
  height: 60px;
  padding: 0 30px;
  background: #151516;
  border-bottom: 1px solid var(--border);
}
.crumb { color: #858480; font-size: 10px; text-transform: uppercase; letter-spacing: .075em; gap: 12px; }
.crumb b { font-family: var(--body); font-size: 13px; color: #e9e7e1; letter-spacing: 0; font-weight: 600; text-transform: none; }
.slash { color: var(--accent); }
.top-actions { gap: 10px; }
.event-picker-wrap { color: #93908e; font-size: 10px; letter-spacing: .10em; }
.event-picker-wrap select {
  border: 1px solid #454344;
  border-radius: 2px;
  background: #232324;
  color: #e6e2dd;
  width: 230px;
  min-height: 34px;
}
.content { max-width: 1500px; padding: 28px 32px 54px; }
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  background: #151516;
  border-top: 1px solid #343334;
  color: #777572;
  font-size: 9px;
  letter-spacing: .13em;
  padding: 12px 30px;
  text-transform: uppercase;
}

/* Readable hierarchy for headings and controls. */
.page-title { margin-bottom: 22px; align-items: flex-end; }
.page-title .eyebrow { display: none; }
.page-title h1,
.dialog-header h2 {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
  font-weight: 700;
  color: #f0eeea;
}
.page-title p { color: #a4a19c; font-size: 12px; margin: 9px 0 0; line-height: 1.5; }
.panel h3,.stage-head strong,.subheading h3,.empty .empty-title {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 650;
}
.panel p { color: #aaa6a2; }
.tagline { color: #b58b84; font-size: 9px; }
.eyebrow { color: var(--accent); }
.button {
  border-radius: 2px;
  padding: 9px 13px;
  font-family: var(--display);
  text-transform: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  min-height: 34px;
  background: #2a292a;
  border-color: #494647;
  color: #e8e5e0;
}
.button:hover { filter: none; background: #343233; border-color: #706463; }
.button-primary { background: #a84b45; border-color: #a84b45; color: #fff; }
.button-primary:hover { background: #bb5e55; border-color: #bb5e55; }
.button-soft { background: #242324; }
.button-quiet { background: transparent; }
.button-small { min-height: 29px; padding: 6px 9px; font-size: 12px; }
.button-danger { background: #332423; border-color: #7b4440; }
.inline-link { color: #c38a82; font-size: 11px; font-family: var(--body); }

/* Data needs to be quiet, precise and fast to scan. */
.kpis { gap: 8px; margin-bottom: 16px; }
.kpi { background: #1b1b1c; border: 1px solid #383638; border-radius: 2px; padding: 17px 16px; }
.kpi .label { font-family: var(--body); font-size: 9px; letter-spacing: .14em; color: #a7a29e; }
.kpi .big { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 28px; letter-spacing: -.045em; font-weight: 650; margin: 11px 0 5px; }
.kpi .hint { font-size: 10px; line-height: 1.4; color: #93918d; }
.panel { background: #1b1b1c; border-color: #383638; border-radius: 2px; padding: 18px; }
.dashboard-grid { gap: 10px; }
.line-item { border-top-color: #323132; padding: 11px 0; font-variant-numeric: tabular-nums; }
.table-wrap {
  border: 1px solid #3c3a3b;
  border-radius: 2px;
  background: #1a1a1b;
}
table { border-collapse: collapse; }
th {
  background: #252526;
  border-bottom: 1px solid #403d3e;
  padding: 11px 13px;
  color: #aaa6a2;
  font-size: 10px;
  letter-spacing: .10em;
  font-weight: 700;
}
td {
  padding: 11px 13px;
  border-top-color: #313032;
  color: #dedbd6;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
td strong { color: #ede9e3; font-size: 12px; }
tr.clickable:hover td { background: #292729; }
.table-tools input {
  border-radius: 2px;
  background: #222122;
  border-color: #494646;
  color: #f1efeb;
  min-height: 35px;
  font-size: 12px;
}
.table-tools input::placeholder { color: #8e8c89; }
.table-help { display: none; }
.notice {
  border-radius: 2px;
  border-color: #5a403d;
  background: #2b2221;
  color: #d9ada6;
  font-size: 11px;
}
.notice.info { background: #212427; border-color: #404850; color: #afb9c0; }
.notice.good { background: #222e28; border-color: #3c5a49; color: #b1d2bb; }
.badge { border-radius: 1px; padding: 4px 7px; font-size: 10px; }
.badge.good { background: #263c30; color: #b3dab8; }
.badge.warn { background: #403423; color: #ead2a0; }
.badge.bad { background: #432827; color: #eeb5af; }
.badge.neutral { background: #333234; color: #c8c6c2; }
.progress,.progress-native { height: 4px; border-radius: 0; }
.progress span,.progress-native::-webkit-progress-value { background: #b85c52; border-radius: 0; }
.stage-lane { background: #1b1b1c; border: 1px solid #3a3839; border-radius: 2px; }
.set-card { border-radius: 2px; background: #292121; }
.set-card.draft { background: #29282a; }
.empty { border-radius: 2px; }
.pill-counter { border-radius: 1px; background: #343032; color: #c7bab6; }

/* The editor is an instrument panel, not a conversational UI. */
.editor-dialog {
  background: #1b1b1c;
  border: 1px solid #565152;
  border-radius: 3px;
  box-shadow: 0 20px 70px #000b;
}
.editor-dialog::backdrop { backdrop-filter: none; background: #000c; }
.editor-dialog form { padding: 25px 26px; }
.dialog-header { margin-bottom: 18px; }
.dialog-header .eyebrow {
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: .16em;
  margin-bottom: 10px;
}
.dialog-header h2 { font-size: 24px; }
.dialog-header p { color: #93908d; }
.field label { color: #d0cdc8; font-size: 11px; font-weight: 630; }
.field input,.field select,.field textarea {
  background: #272627;
  border: 1px solid #514d4d;
  border-radius: 2px;
  min-height: 40px;
  color: #f4f0ed;
  font-family: var(--body);
  font-size: 12px;
}
.field input:focus,.field select:focus,.field textarea:focus { border-color: #bc7067; }
.checkbox-row { font-family: var(--body); }
.toast { border-radius: 2px; }

/* Responsive: preserve readable data and working navigation. */
@media (max-width: 960px) {
  .shell { grid-template-columns: 206px minmax(0,1fr); }
  .brand-logo { width: 160px; }
  .brand-sub { font-size: 11px; }
  .nav button { font-size: 13px; }
  .content { padding: 26px 18px 40px; }
  .page-title h1 { font-size: 26px; }
}
@media (max-width: 820px) {
  .shell { display: grid; grid-template-columns: 1fr; }
  .sidebar { height: auto; max-height: none; position: static; padding: 15px; gap: 11px; border-right: 0; border-bottom: 1px solid #343435; }
  .brand-row { min-height: 0; border-bottom: none; padding: 0 0 6px; }
  .brand-logo { width: 156px; }
  .brand-sub { font-size: 11px; margin-top: 6px; }
  .side-caption,.sidebar-bottom { display: none; }
  .nav { display: flex; overflow-x: auto; flex-direction: row; gap: 4px; padding-bottom: 4px; }
  .nav .nav-group { display: none; }
  .nav button { flex: 0 0 auto; width: auto; font-size: 13px; padding: 9px; border-left: 0; border-bottom: 2px solid transparent; }
  .nav button.active { border-left: 0; border-bottom-color: var(--accent); padding: 9px; }
  .topbar { padding: 12px 15px; height: auto; gap: 12px; }
  .top-actions { width: 100%; justify-content: space-between; }
  .content { padding: 21px 14px 35px; }
  .footer { padding: 11px 15px; }
  .page-title h1 { font-size: 24px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .top-actions { flex-wrap: wrap; }
  .event-picker-wrap select { max-width: 175px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 13px 12px; }
  .kpi .big { font-size: 24px; }
  .dialog-header h2 { font-size: 22px; }
}

/* Named beta account controls. */
#account-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
#account-bar[hidden] { display: none; }
.top-actions:has(#account-bar:not([hidden])) { flex-wrap: wrap; }

.creative-file-actions { display: grid; grid-template-columns: minmax(0, 1fr) 58px; align-items: center; gap: 12px; width: 230px; max-width: 100%; min-height: 32px; }
.creative-file-actions > a, .creative-file-missing { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.creative-file-missing { color: var(--text-muted, #969696); }
.creative-file-actions .button { width: 58px; min-height: 26px; padding: 4px 8px; font-size: 11px; font-weight: 500; line-height: 16px; white-space: nowrap; }

/* Compact forms, linked people and direct edits use the same visual rhythm. */
.editor-group { grid-column:1/-1; border:1px solid var(--border,#383434); border-radius:4px; }
.editor-group > summary { padding:14px 16px; cursor:pointer; font-weight:600; color:var(--text,#eee); }
.editor-group > .form-fields { padding:4px 16px 18px; }
.editor-group[open] > summary { margin-bottom:8px; border-bottom:1px solid var(--border,#383434); }
.quote-preview { gap:6px; padding:14px 16px; background:rgba(255,255,255,.035); border-left:3px solid #b26054; }
.quote-preview strong { font-size:1.25rem; }
.quote-preview small { color:#aaa; line-height:1.5; }
.people-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.person-workspace { margin-bottom:24px; }
.person-booking { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; border-top:1px solid #353333; margin-top:16px; }
.person-booking small { display:block; margin-top:6px; color:#aaa; }
.task-inline { width:100%; min-width:125px; max-width:210px; min-height:38px; padding:8px 10px; font:inherit; font-size:13px; color:inherit; background:#232121; border:1px solid #444; border-radius:4px; }
.task-inline:focus { outline:2px solid #c17b6f; outline-offset:2px; }
.publish-channels { display:flex; flex-wrap:wrap; gap:12px; }
.publish-channels > span { display:flex; flex-direction:column; gap:5px; }
.publish-channels small { color:#aaa; }
.finance-check { border-bottom:1px solid #353333; }
.finance-check .line-item { border:0; }
.finance-fix { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:0 0 16px; color:#d7b99b; font-size:14px; }
.finance-fix button { flex:none; }
.field[hidden] { display:none !important; }
@media(max-width:650px) {
  .person-booking { align-items:flex-start; flex-direction:column; }
  .finance-fix { gap:12px; }
  .editor-group > .form-fields { padding:4px 12px 14px; }
}
.publish-required { display:flex; flex-wrap:wrap; gap:12px 24px; }
.publish-required .field { margin:0; }
.publish-required .checkbox-row { min-height:36px; }

/* Consistent Australian date entry, with the browser calendar still available. */
.au-date-control { position:relative; display:block; min-width:0; width:100%; }
.au-date-control > input[data-au-date] { width:100%; padding-right:38px; font-variant-numeric:tabular-nums; }
.au-date-control > .au-native-picker { position:absolute; left:0; bottom:0; width:1px; height:1px; min-height:0; padding:0; opacity:0; pointer-events:none; border:0; }
.au-calendar-button { position:absolute; right:3px; top:50%; transform:translateY(-50%); width:32px; min-height:32px; padding:0; border:0; background:transparent; color:var(--secondary); font-size:20px; cursor:pointer; }
.au-calendar-button:hover { color:var(--ink); background:var(--surface-2); }

/* Editable running order: one column per stage, one consistent card per set. */
.running-savebar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:16px 18px; margin:0 0 18px; border:1px solid var(--border); background:var(--surface); }
.running-savebar small { display:block; margin-top:6px; color:var(--secondary); line-height:1.5; }
.running-savebar .page-actions { margin:0; }
.running-conflicts { border-left:3px solid #c97a63; margin-bottom:18px; }
.running-conflicts ul { margin:10px 0 0; padding-left:20px; line-height:1.6; }
.running-board { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); align-items:start; gap:20px; margin-bottom:24px; }
.running-lane { min-width:0; margin:0; background:var(--surface); border:1px solid var(--border); }
.running-lane .stage-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px; border-bottom:1px solid var(--border); }
.running-lane .stage-head strong { font-size:17px; }
.running-lane .stage-head small { display:block; margin-top:7px; line-height:1.5; color:var(--secondary); }
.running-lane .stage-head .running-balance { color:#a6bea8; font-variant-numeric:tabular-nums; }
.running-lane .stage-head .overrun { color:#e6a78d; }
.running-slots { padding:12px; display:grid; gap:12px; min-height:90px; }
.running-slot { position:relative; padding:16px; border:1px solid #454344; border-left:3px solid #77716d; background:#212122; border-radius:4px; min-width:0; }
.running-slot.locked { border-left-color:#7fa38a; background:#1d2420; }
.running-slot.has-conflict { border-color:#bb7b60; }
.running-slot-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.running-slot-head strong { font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.drag-handle { cursor:grab; flex:none; width:32px; height:32px; padding:0; color:var(--secondary); background:transparent; border:1px solid var(--border); border-radius:3px; font-size:24px; }
.drag-handle:active { cursor:grabbing; }
.running-slot-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:8px 0 16px; }
.running-slot-meta small { color:var(--secondary); }
.running-time-fields { display:grid; grid-template-columns:minmax(0,1fr) 74px; gap:10px; }
.running-time-fields label { display:block; color:var(--secondary); font-size:12px; font-weight:600; }
.running-time-fields input,.running-slot-actions select { display:block; width:100%; box-sizing:border-box; min-width:0; min-height:40px; padding:9px 10px; margin-top:6px; border:1px solid #4a4646; border-radius:3px; font-size:13px; background:#282627; color:var(--ink); }
.running-time-fields input { font-variant-numeric:tabular-nums; }
.running-time-fields .au-date-control { margin-top:6px; }
.running-time-fields .au-date-control input { margin-top:0; }
.running-end,.running-fixed-time { margin:12px 0 0; font-size:13px; line-height:1.5; font-variant-numeric:tabular-nums; }
.running-end { color:var(--secondary); }
.running-end strong { color:var(--ink); font-weight:500; }
.running-gap { display:block; color:var(--secondary); font-size:12px; margin-top:7px; }
.running-gap:empty { display:none; }
.running-slot-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding-top:14px; margin-top:14px; border-top:1px solid var(--border); }
.running-slot-actions .button { min-height:34px; padding:6px 9px; font-size:12px; }
.running-slot-actions select { flex:1; width:auto; max-width:190px; min-width:95px; min-height:34px; margin:0; padding:6px; font-size:12px; }
.running-empty { align-self:center; padding:24px 10px; text-align:center; color:var(--secondary); font-size:13px; border:1px dashed #454344; }
.running-drop-before::before,.running-drop-after::after { content:''; position:absolute; left:0; right:0; height:3px; background:#db9285; pointer-events:none; }
.running-drop-before::before { top:-8px; }
.running-drop-after::after { bottom:-8px; }
@media(max-width:500px) {
  .running-savebar { padding:14px; }
  .running-savebar .page-actions { width:100%; }
  .running-savebar #running-save { margin-left:auto; }
  .running-slot { padding:12px; }
  .running-slots { padding:8px; }
}

/* Shared, proportional lineup canvas. Only the selected set exposes controls. */
.timeline-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 20px; }
.timeline-toolbar .programme-tabs { margin:0; }
.timeline-zoom { display:flex; align-items:center; gap:3px; }
.timeline-zoom .button { padding:6px 10px; min-height:32px; background:transparent; font-size:12px; }
.timeline-timezone { margin-left:auto; font-size:12px; color:var(--secondary); }
.timeline-toolbar > select { background:var(--surface); border:1px solid var(--border); color:var(--ink); padding:7px; border-radius:3px; }
.running-savebar { position:fixed; top:auto; bottom:20px; right:28px; max-width:calc(100vw - 40px); z-index:35; margin:0; padding:10px 14px; box-shadow:0 6px 24px #0008; }
.running-savebar[hidden] { display:none; }
.running-savebar > strong { font-size:13px; font-weight:500; }
.timeline-scroll { overflow-x:auto; padding:0 0 16px; border:1px solid #343436; border-radius:5px; background:#161618; scrollbar-width:thin; }
.timeline-headers,.timeline-grid { display:grid; grid-template-columns:74px repeat(var(--stage-count),minmax(230px,1fr)); min-width:calc(74px + var(--stage-count)*230px); }
.timeline-headers { background:#1c1c1f; position:relative; z-index:4; }
.timeline-time-heading { padding:18px 10px; font-size:10px; letter-spacing:.12em; color:#929294; background:#19191b; position:sticky; left:0; z-index:5; }
.timeline-stage-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; padding:15px 18px 13px; border-left:1px solid #353537; border-bottom:1px solid #444447; }
.timeline-stage-heading h2 { margin:0 0 5px; font-size:19px; font-weight:650; letter-spacing:-.025em; line-height:1.3; }
.timeline-stage-heading p { margin:0; font-size:12px; color:#b2b1b1; font-variant-numeric:tabular-nums; }
.timeline-stage-heading small { display:block; margin-top:7px; font-size:11px; color:#9baca2; }
.timeline-stage-heading .overrun { color:#e3aa93; }
.timeline-add { width:28px; height:28px; background:transparent; color:#c4c1bd; border:1px solid #474749; border-radius:3px; padding:0; flex:none; font-size:19px; }
.timeline-grid { position:relative; height:var(--timeline-height); }
.timeline-axis { position:sticky; left:0; z-index:3; background:#171719; border-right:1px solid #37373a; height:100%; }
.timeline-hour { position:absolute; right:0; width:100%; transform:translateY(-50%); padding:0 12px 0 4px; font-size:12px; text-align:right; font-variant-numeric:tabular-nums; color:#c4c2c0; line-height:1.15; }
.timeline-hour:first-child { transform:translateY(0); }
.timeline-hour:last-child { transform:translateY(-100%); }
.timeline-hour small { display:block; font-size:9px; letter-spacing:.04em; color:#d8cbc3; margin-bottom:3px; }
.timeline-hour.midnight { color:#f1ddd0; }
.timeline-track { position:relative; min-width:0; border-right:1px solid #303033; height:100%; }
.timeline-track:last-child { border-right:0; }
.timeline-gridline { position:absolute; left:0; right:0; border-top:1px solid #ffffff0a; pointer-events:none; }
.timeline-gridline.midnight { border-color:#baa99a55; z-index:1; }
.timeline-closed { position:absolute; left:0; right:0; display:flex; justify-content:center; align-items:center; overflow:hidden; background:repeating-linear-gradient(135deg,#19191b 0,#19191b 7px,#242426 7px,#242426 8px); color:#929295; pointer-events:none; }
.timeline-closed span { font-size:13px; padding:7px 10px; font-style:italic; background:#1a1a1be6; border-radius:3px; }
.timeline-gap { position:absolute; left:5px; right:5px; width:calc(100% - 10px); background:#22222555; border:1px dashed #464649; color:#a2a3a5; border-radius:3px; display:flex; align-items:center; justify-content:center; font-size:12px; overflow:hidden; padding:0; }
button.timeline-gap:hover { background:#33323780; color:#e0dcd6; border-color:#77777c; }
.timeline-gap.small { border-width:0; border-bottom:1px dashed #555; }
.flow-none { --flow:#829398; --flow-bg:#303b40; }
.flow-opening { --flow:#b3c990; --flow-bg:#414b38; }
.flow-build { --flow:#8eb4cd; --flow-bg:#344955; }
.flow-peak { --flow:#bda0cf; --flow-bg:#504155; }
.flow-reset { --flow:#83c0b3; --flow-bg:#304a47; }
.flow-close { --flow:#d09a7f; --flow-bg:#62473d; }
.timeline-set { position:absolute; z-index:2; border:1px solid #ffffff18; border-left:4px solid var(--flow); border-radius:4px; background:var(--flow-bg); box-shadow:0 1px 3px #0003; }
.timeline-choose { display:flex; flex-direction:column; justify-content:center; gap:2px; width:100%; height:100%; padding:5px 13px; border:0; background:transparent; color:#eeede8; text-align:left; overflow:hidden; border-radius:2px; cursor:grab; touch-action:pan-y; }
.timeline-choose strong { display:block; width:100%; font-size:17px; line-height:1.1; font-weight:650; letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.timeline-choose > span { font-size:11px; line-height:1.1; color:#dfdfdc; white-space:nowrap; font-variant-numeric:tabular-nums; }
.timeline-set.short-set .timeline-choose { padding:0 8px; }
.timeline-set.short-set .timeline-choose strong { font-size:12px; }
.timeline-set.short-set .timeline-choose > span { display:none; }
.timeline-set.selected { z-index:5; outline:1px solid #e8e5dc; outline-offset:1px; box-shadow:0 3px 14px #0005; }
.timeline-set.selected .timeline-choose { touch-action:none; }
.timeline-set.has-conflict { border-color:#eda58f; box-shadow:inset 0 0 0 1px #eda58f; }
.timeline-set.locked .timeline-choose { cursor:pointer; }
.timeline-set:not(.locked):hover { filter:brightness(1.08); }
.timeline-choose:focus-visible { outline-offset:1px; }
.timeline-resize { position:absolute; left:0; bottom:-4px; height:11px; width:100%; display:flex; justify-content:center; align-items:center; border:0; background:transparent; padding:0; cursor:ns-resize; touch-action:none; opacity:0; z-index:2; }
.timeline-set.selected .timeline-resize,.timeline-set:focus-within .timeline-resize,.timeline-resize:focus-visible { opacity:1; }
.timeline-resize span { width:29px; height:10px; border:1px solid #878889; border-radius:5px; background:#3d4144; box-shadow:0 1px 3px #0006; }
.timeline-resize span::after { content:''; display:block; height:2px; width:13px; margin:3px auto; background:#d5d4d2; }
.timeline-dragging,.timeline-dragging * { user-select:none !important; cursor:grabbing !important; }
.timeline-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:14px 0 24px; }
.timeline-foot > small { font-size:11px; color:#a5a1a0; }
.timeline-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:11px; color:#cac7c4; }
.timeline-legend > span { display:flex; align-items:center; gap:6px; }
.flow-dot { display:inline-block; width:10px; height:10px; border-radius:2px; background:var(--flow); flex:none; }
.timeline-inspector { position:fixed; z-index:40; padding:17px; background:#232326; color:var(--ink); border:1px solid #686165; box-shadow:0 12px 38px #0009; border-radius:6px; max-height:calc(100vh - 24px); overflow-y:auto; }
.timeline-inspector-head { display:flex; align-items:flex-start; gap:12px; justify-content:space-between; margin-bottom:16px; }
.timeline-inspector h3 { font-size:17px; margin:0; line-height:1.3; }
.timeline-inspector-head > button { padding:0; width:24px; min-width:24px; height:24px; border:0; color:#bbb; background:transparent; font-size:23px; line-height:1; }
.timeline-edit-times { display:grid; grid-template-columns:1fr 86px; gap:12px; }
.timeline-inspector label { display:block; font-size:11px; color:#b6b3b1; }
.timeline-inspector input,.timeline-inspector select { width:100%; margin-top:6px; min-height:37px; background:#19191c; color:#eee; border:1px solid #585458; padding:8px 9px; border-radius:3px; font-size:13px; font-variant-numeric:tabular-nums; }
.timeline-day { margin-top:10px; }
.timeline-finish { font-size:12px; color:#aaa; margin:13px 0 18px; }
.timeline-finish strong { color:#ddd8d2; font-weight:500; }
.timeline-colour-label { font-size:11px; color:#b6b3b1; margin-bottom:8px; }
.timeline-role-options { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.timeline-role-options > button { background:#2d2c30; display:flex; align-items:center; justify-content:flex-start; gap:6px; padding:8px 6px; border:1px solid #49464a; border-radius:3px; color:#d8d5cf; font-size:11px; }
.timeline-role-options > button[aria-pressed="true"] { border-color:var(--flow); background:var(--flow-bg); color:#fff; }
.timeline-more { border-top:1px solid #444146; margin-top:16px; padding-top:11px; }
.timeline-more > summary { font-size:12px; cursor:pointer; color:#bcb8b4; padding:2px 0 8px; }
.timeline-more-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.timeline-more-actions .button { font-size:11px; padding:7px 9px; }
.timeline-review { border:1px solid #343436; border-radius:4px; margin-top:10px; padding:0 16px; background:#19191b; }
.timeline-review > summary { padding:14px 0; font-size:13px; color:#bcb8b5; cursor:pointer; }
.timeline-review .line-item { padding:11px 0; gap:12px; }
.timeline-review .line-item small { display:block; font-size:12px; color:#aaa; margin-top:5px; }
.timeline-review > .button { margin:0 0 15px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:650px) {
  .timeline-timezone { width:100%; margin-left:0; }
  .timeline-stage-heading { padding:12px; }
  .timeline-stage-heading h2 { font-size:16px; }
  .timeline-headers,.timeline-grid { grid-template-columns:58px repeat(var(--stage-count),minmax(220px,1fr)); min-width:calc(58px + var(--stage-count)*220px); }
  .timeline-hour { font-size:11px; padding-right:8px; }
  .timeline-time-heading { padding:15px 7px; font-size:9px; }
  .timeline-choose strong { font-size:15px; }
  .timeline-choose { padding:4px 9px; }
  .timeline-zoom { margin-left:auto; }
  .running-savebar { top:auto; left:12px; right:12px; bottom:12px; max-width:none; }
}

/* Performer appearances use the same stage axis as the music. */
.timeline-zoom[hidden] { display:none; }
.timeline-stage-heading { flex-wrap:wrap; }
.timeline-lane-labels { display:grid; grid-template-columns:56% 44%; width:calc(100% + 36px); margin:6px -18px -10px; border-top:1px solid #37373a; }
.timeline-lane-labels span { padding:6px 9px; color:#b7b4af; font-size:10px; font-weight:600; letter-spacing:.04em; }
.timeline-lane-labels span:last-child { color:#ddc4a0; border-left:1px solid #4c4640; }
.timeline-music-lane,.timeline-performer-lane { position:absolute; inset:0; }
.timeline-music-lane.with-performers { right:44%; }
.timeline-performer-lane { left:56%; background:#c89d5410; border-left:1px solid #4c4640; }
.timeline-appearance { position:absolute; z-index:3; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:2px; text-align:left; background:#343029; color:#f0e6d5; border:1px solid #685b48; border-radius:3px; padding:2px 6px 2px 9px; cursor:pointer; }
.timeline-appearance::before { content:''; position:absolute; top:-1px; left:-1px; width:3px; height:var(--appearance-height); max-height:calc(100% + 2px); background:#dbbd90; border-radius:2px; }
.timeline-appearance strong,.timeline-appearance span { width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.2; }
.timeline-appearance strong { font-size:13px; }
.timeline-appearance span { font-size:11px; font-variant-numeric:tabular-nums; color:#d9cbb8; }
.timeline-appearance.compact span { display:none; }
.timeline-appearance:hover,.timeline-appearance:focus-visible { background:#494135; border-color:#d6b785; z-index:6; }
.timeline-appearance.needs-review { border-style:dashed; }
.set-appearances { margin:12px 0 16px; padding:12px 0; border-top:1px solid #484441; border-bottom:1px solid #484441; }
.set-appearances-head,.lineup-list-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.set-appearances-head { justify-content:space-between; }
.set-appearances h4 { margin:0; font-size:13px; }
.set-appearances p,.set-appearance small,.lineup-row-detail { display:block; color:#bdb8b2; margin:4px 0 0; font-size:11px; }
.set-appearance { display:grid; width:100%; margin-top:7px; padding:8px 10px; gap:3px; background:#302d29; border:1px solid #514a41; border-left:3px solid #d4b582; color:#ede5d7; text-align:left; cursor:pointer; }
.set-appearance span { font-size:11px; font-variant-numeric:tabular-nums; }
.appearance-window { padding:10px 12px; border-left:3px solid #d4b582; background:#302d29; color:#e9ddc9; font-variant-numeric:tabular-nums; }
.appearance-window.overrun { color:#efaa91; }
.appearance-readonly { grid-column:1/-1; margin:0; display:grid; grid-template-columns:max-content 1fr; gap:7px 16px; }
.appearance-readonly dt { color:#bdb8b2; }
.appearance-readonly dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
@media(max-width:650px) {
  .timeline-lane-labels { width:calc(100% + 24px); margin:6px -12px -9px; }
}
.timeline-appearance { touch-action:none; }
.timeline-appearance time { display:none; }
.timeline-appearance.compact { flex-direction:row; align-items:center; justify-content:space-between; gap:4px; }
.timeline-appearance.compact time { display:block; flex:none; font-size:10px; font-variant-numeric:tabular-nums; color:#e2cfad; }
.timeline-drop-preview { position:absolute; left:56%; right:2px; z-index:8; display:flex; align-items:center; padding:3px 6px; overflow:hidden; border:2px solid #f4cc8a; border-radius:3px; background:#574634; color:#fff; font-size:12px; pointer-events:none; }
.appearance-drop-hint { position:fixed; top:12px; left:50%; transform:translateX(-50%); z-index:60; width:auto; height:auto; margin:0; padding:8px 12px; clip:auto; border-radius:3px; background:#302d29; border:1px solid #8d795a; color:#f4e6cb; font-size:13px; pointer-events:none; }
