/* Previous Bazzar typography, served locally (no external font requests). */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/dm-mono-400.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/dm-mono-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/manrope-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/manrope-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/manrope-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/manrope-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./fonts/manrope-800.ttf) format('truetype');
}


:root {
  --ink: #101014;
  --muted: #85858d;
  --muted-dark: #5f6069;
  --line: #ececf0;
  --surface: #ffffff;
  --canvas: #f7f7f9;
  --lime: #f1f1f5;
  --lime-soft: #f8f8fa;
  --hover-outline: #e4e4ec;
  --hover-glow: 0 0 0 1px rgba(235,235,245,.16);
  --orange: #ff8a4c;
  --orange-soft: #fff0e8;
  --purple: #a88bff;
  --purple-soft: #f0ebff;
  --pink: #f1b3d1;
  --green: #45b881;
  --red: #e36c78;
  --positive-text: #147a4b;
  --positive-text-strong: #147a4b;
  --positive-bg: rgba(61,168,121,.13);
  --negative-text: var(--red);
  --negative-bg: rgba(215,104,115,.13);
  --orange-text: #c45e16;
  --orange-bg: rgba(255,140,32,.20);
  --yellow-text: #9b7000;
  --yellow-bg: rgba(239,195,50,.22);
  --shadow: 0 20px 48px rgba(24, 24, 32, 0.07);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.hidden { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 25% 10%, rgba(235,235,245,.16), transparent 28%), var(--canvas); }
.auth-card { width: min(430px, 100%); padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand > div:last-child strong, .auth-brand > div:last-child span { display: block; }
.auth-brand > div:last-child strong { letter-spacing: .05em; font-size: 15px; }
.auth-brand > div:last-child span { margin-top: 4px; color: #9999a2; font: 9px 'DM Mono', monospace; text-transform: uppercase; }
.auth-heading { margin-top: 46px; }
.auth-heading h1 { margin-top: 10px; font-size: 30px; }
.auth-heading p { margin-top: 10px; color: #888891; font-size: 11px; line-height: 1.5; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 25px; padding: 4px; background: #f4f4f6; border-radius: 10px; }
.auth-tab { padding: 10px 8px; color: #898992; background: transparent; border-radius: 7px; font-size: 10px; font-weight: 800; }
.auth-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(20,20,30,.08); }
.auth-card form { margin-top: 20px; }
.auth-hint { color: #a0a0a8; font-size: 9px; }
.auth-error { min-height: 17px; margin-top: 8px; color: var(--red); font-size: 10px; }
.auth-submit { width: 100%; margin-top: 7px; }
.auth-footnote { margin-top: 23px; padding-top: 15px; color: #a2a2aa; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.45; }
.app-shell.is-locked { display: none; }

.app-shell { min-height: 100vh; display: flex; align-items: stretch; }
.sidebar {
  width: 260px;
  flex: 0 0 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 27px 18px 20px;
  color: #fff;
  background: #0b0b10;
  height: auto;
  align-self: stretch;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-mark {
  width: 31px; height: 31px; display: grid; place-items: center;
  color: #0b0b10; background: var(--lime); border-radius: 10px;
  font-weight: 800; font-size: 16px;
}
.brand-name { letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.brand-caption { margin-top: 2px; color: #797982; font: 10px 'DM Mono', monospace; letter-spacing: .03em; }
.venue-card {
  display: flex; align-items: center; gap: 9px;
  margin: 42px 0 29px; padding: 12px 11px;
  background: #17171e; border: 1px solid #25252c; border-radius: 12px;
}
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(235, 235, 245, .12); }
.venue-card strong, .venue-card small { display: block; }
.venue-card strong { font-size: 11px; font-weight: 700; }
.venue-card small { margin-top: 3px; color: #777782; font-size: 9px; }
.venue-clock { color: #62626c !important; font: 8px 'DM Mono', monospace !important; }
.status-dot.closed { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,138,76,.12); }
.venue-chevron { margin-left: auto; color: #7f7f87; font-size: 16px; }
.venue-schedule { margin: -17px 0 24px; padding: 0 10px; color: #8c8c96; border: 1px solid transparent; border-radius: 10px; }
.venue-schedule[open] { padding-bottom: 10px; background: #15151b; border-color: #27272f; }
.venue-schedule summary { display: flex; align-items: center; gap: 8px; padding: 8px 1px; color: #9999a2; cursor: pointer; list-style: none; font-size: 10px; font-weight: 700; }
.venue-schedule summary::-webkit-details-marker { display: none; }
.schedule-chevron { margin-left: auto; transition: transform .2s ease; }
.venue-schedule[open] .schedule-chevron { transform: rotate(180deg); }
.schedule-list { display: flex; flex-direction: column; gap: 7px; padding-top: 5px; }
.schedule-list > div { display: flex; justify-content: space-between; gap: 8px; color: #7e7e88; font: 9px 'DM Mono', monospace; }
.schedule-list > div strong { color: #e4e4e8; font-weight: 500; }
.schedule-list > small { margin-top: 4px; color: #5e5e68; font: 8px 'DM Mono', monospace; }
.schedule-list > small { font-size: 9px; letter-spacing: .03em; }
.nav-label, .section-kicker, .eyebrow {
  color: #8f8f98; font: 10px 'DM Mono', monospace; letter-spacing: .12em;
}
.nav-label { padding: 0 11px 11px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px;
  color: #8c8c96; background: transparent; border-radius: 10px; text-align: left;
  font-size: 12px; font-weight: 600; transition: .2s ease;
}
.nav-item:hover { color: #fff; background: #17171e; }
.nav-item.active { color: #101014 !important; background: var(--lime); }
.nav-item.active .nav-icon { color: #101014 !important; }
.nav-icon { display: inline-grid; place-items: center; width: 19px; color: currentColor; font-size: 16px; }
.nav-count { margin-left: auto; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; color: #0b0b10; background: #dcdce4; border-radius: 20px; font: 10px 'DM Mono', monospace; }
.nav-count.accent { color: #fff; background: var(--orange); }
.sidebar-footer { display: flex; flex-direction: column; gap: 12px; margin-top: auto; margin-bottom: 34px; }
.mini-help { display: flex; align-items: center; gap: 10px; padding: 12px; background: #16161d; border: 1px solid #27272f; border-radius: 11px; }
.help-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #101014; background: var(--purple); border-radius: 8px; font-weight: 800; }
.mini-help strong, .mini-help span { display: block; }
.mini-help strong { font-size: 10px; }
.mini-help span { margin-top: 3px; color: #797982; font-size: 9px; }
.profile { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; font-size: 10px; font-weight: 800; }
.avatar-lime { color: #16161b; background: var(--lime); }
.avatar-purple { color: #322749; background: var(--purple); }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy strong { font-size: 10px; }
.profile-copy span { margin-top: 3px; color: #797982; font-size: 9px; }
.profile-menu-wrap { position: relative; width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; }
.profile-menu-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; line-height: 1; letter-spacing: 0; text-align: center; }
.profile-menu { position: absolute; right: 0; bottom: 44px; z-index: 4; width: 170px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.profile-menu button { width: 100%; padding: 9px 10px; color: #5e5e67; background: transparent; border-radius: 7px; text-align: left; font-size: 10px; font-weight: 700; }
.profile-menu button:hover { color: var(--ink); background: #f3f3f6; }
.icon-button { display: inline-grid; place-items: center; width: 33px; height: 33px; color: var(--muted-dark); background: transparent; border-radius: 10px; font-weight: 800; }
.sidebar .icon-button { color: #7c7c87; }
.icon-button:hover { background: #f0f0f4; color: var(--ink); }
.sidebar .icon-button:hover { background: #22222a; color: #fff; }

.main-content { min-width: 0; flex: 1; }
.traffic-event-title { font-weight: 700; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 47px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9999a2; font-size: 11px; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.breadcrumb-separator { color: #ceced4; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }

.page-body { max-width: 1440px; margin: 0 auto; padding: 41px 47px 52px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-line { width: 17px; height: 1px; background: var(--orange); }
h1, h2, p { margin: 0; }
h1 { margin-top: 13px; letter-spacing: -.055em; font-size: clamp(29px, 3vw, 41px); line-height: 1; }
.wave { color: var(--orange); font-size: .75em; vertical-align: 8px; }
.page-subtitle { margin-top: 13px; color: #8b8b94; font-size: 12px; }
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 17px; border-radius: 9px; font-size: 11px; font-weight: 800; transition: .2s ease;
}
.primary-button { color: #111116; background: var(--lime); box-shadow: 0 8px 18px rgba(235, 235, 245, .2); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 11px 24px rgba(235, 235, 245, .3); }
.secondary-button { color: #131318; background: #fff; border: 1px solid var(--line); }
.secondary-button:hover { background: #fafafa; transform: translateY(-1px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 40px; }
.stat-card { min-height: 143px; padding: 18px 18px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat-card-dark { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: #8e8e96; font-size: 10px; }
.stat-card-dark .stat-top { color: #93939d; }
.stat-icon { color: var(--ink); font-size: 16px; }
.stat-card-dark .stat-icon { color: var(--green); }
.stat-icon-orange { color: var(--orange); }
.stat-icon-purple { color: var(--purple); }
.stat-icon-pink { color: #db7ea9; }
.stat-value { margin-top: 19px; letter-spacing: -.06em; font-size: 31px; line-height: 1; font-weight: 700; }
.stat-foot { margin-top: 13px; color: #a0a0a8; font-size: 10px; }
.trend-up { color: var(--green); font-weight: 800; }
.stat-card-dark .trend-up { color: var(--green); }
.trend-neutral { color: var(--orange); font-weight: 800; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(295px, .8fr); gap: 13px; margin-top: 13px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.events-panel, .activity-panel { padding: 22px; }
.upcoming-events-panel {
  border: 1px solid #d8d8e0;
  box-shadow: 0 8px 24px rgba(24, 24, 32, .075);
}
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel h2 { margin-top: 7px; letter-spacing: -.04em; font-size: 17px; }
.text-button { color: #6c6c76; background: transparent; font-size: 10px; font-weight: 700; }
.text-button:hover { color: var(--ink); }
.text-button span { margin-left: 5px; color: var(--orange); font-size: 15px; }
.date-strip { display: flex; gap: 6px; margin: 22px 0 18px; overflow-x: auto; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip { min-width: 52px; padding: 8px 6px; color: #9999a1; background: #fafafd; border: 1px solid #efeff3; border-radius: 9px; text-align: center; }
.date-chip strong, .date-chip span { display: block; }
.date-chip strong { color: #55555e; font-size: 14px; }
.date-chip span { margin-top: 3px; font: 9px 'DM Mono', monospace; text-transform: uppercase; }
.date-chip.active { color: #15151a; background: var(--lime); border-color: var(--lime); }
.date-chip.active strong { color: #15151a; }
.date-chip.active span { color: #15151a; }
.event-list { display: flex; flex-direction: column; gap: 9px; }
.event-row { display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid #f0f0f3; border-radius: 10px; transition: .2s ease; }
.event-row:hover { border-color: #dedee5; box-shadow: 0 8px 18px rgba(30,30,40,.04); }
.event-date { padding-right: 12px; border-right: 1px solid #e9e9ed; text-align: center; }
.event-date strong { display: block; letter-spacing: -.04em; font-size: 21px; line-height: 1; }
.event-date span { display: block; margin-top: 5px; color: #9898a1; font: 9px 'DM Mono', monospace; text-transform: uppercase; }
.event-main { min-width: 0; }
.event-title-row { display: flex; align-items: center; gap: 8px; }
.event-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }
.event-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #95959d; font-size: 10px; }
.event-slot-meta { display: grid; align-items: start; gap: 4px; }
.event-slot-meta > span,
.event-slot-meta > strong,
.event-slot-meta > .calendar-slot-b2b { margin-top: 0; }
.event-meta .meta-separator { color: #d1d1d6; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-pill::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-open { color: #b26b2e; background: var(--orange-soft); }
.status-ready { color: #3d8e6d; background: #e7f8ef; }
.status-draft { color: #777786; background: #f1f1f5; }
.status-empty { color: #a3434d; background: #fff0f1; }
.event-end { display: flex; align-items: center; gap: 12px; }
.slot-progress { min-width: 77px; }
.slot-label { display: flex; justify-content: space-between; color: #9a9aa2; font: 9px 'DM Mono', monospace; }
.slot-label strong { color: #44444d; font-weight: 500; }
.progress-track { height: 4px; margin-top: 7px; overflow: hidden; background: #ebebef; border-radius: 10px; }
.progress-fill { height: 100%; border-radius: 10px; background: var(--purple); }
.progress-fill.complete { background: var(--green); }
.row-action { display: inline-grid; place-items: center; width: 27px; height: 27px; color: #8c8c96; background: #fafafd; border: 1px solid #ededf2; border-radius: 7px; font-size: 15px; }
.row-action:hover { color: var(--ink); background: #f0f0f4; }
.activity-panel { display: flex; flex-direction: column; }
.live-indicator { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; color: #54a97e; background: #e9f8ef; border-radius: 5px; font: 9px 'DM Mono', monospace; text-transform: uppercase; }
.live-indicator i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.activity-list { display: flex; flex-direction: column; gap: 1px; margin-top: 22px; }
.activity-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f2f2f4; }
.activity-avatar { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 800; }
.activity-avatar.orange { color: #a44e1d; background: #ffd8c2; }
.activity-avatar.purple { color: #594c86; background: #dfd6ff; }
.activity-avatar.green { color: #28704f; background: #cef2df; }
.activity-avatar.pink { color: #984d70; background: #f8d3e4; }
.activity-copy { min-width: 0; flex: 1; color: #666670; font-size: 10px; line-height: 1.45; }
.activity-copy strong { color: #27272e; font-weight: 800; }
.activity-time { display: block; margin-top: 3px; color: #aaaab1; font: 9px 'DM Mono', monospace; }
.outline-button { padding: 10px; color: #6e6e78; background: #fff; border: 1px solid #e6e6eb; border-radius: 8px; font-size: 10px; font-weight: 800; }
.outline-button:hover { color: var(--ink); background: #fafafd; }
.full-width { width: 100%; margin-top: auto; }
.quick-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 13px; padding: 18px 22px; background: linear-gradient(115deg, #ece9ff 0%, #f8f7ff 100%); border-color: #e7e1ff; }
.quick-copy { display: flex; align-items: center; gap: 14px; }
.quick-spark { display: grid; place-items: center; width: 36px; height: 36px; color: #6750b7; background: var(--purple); border-radius: 11px; font-size: 18px; }
.quick-panel h2 { margin-top: 5px; font-size: 14px; }
.quick-panel p { margin-top: 5px; color: #878192; font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(10,10,15,.54); backdrop-filter: blur(7px); }
.modal-backdrop.hidden { display: none; }
.modal { width: min(680px, 100%); max-height: min(760px, 92vh); overflow: auto; padding: 25px; background: #fff; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.25); animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.modal-kicker { color: #9b9ba4; font: 10px 'DM Mono', monospace; letter-spacing: .12em; }
.modal h2 { margin-top: 7px; letter-spacing: -.04em; font-size: 22px; }
.modal-subtitle { margin-top: 7px; color: #8d8d96; font-size: 11px; }
.modal-close { width: 30px; height: 30px; color: #9898a1; background: #f6f6f8; border-radius: 8px; font-size: 18px; }
.modal-close:hover { color: var(--ink); background: #ececf0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #666670; font-size: 10px; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fbfbfc; border: 1px solid #e6e6eb; border-radius: 8px; outline: none; font-size: 11px; }
.form-field textarea { min-height: 73px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--hover-outline); box-shadow: 0 0 0 3px rgba(235,235,245,.2); }
.audience-box { margin-top: 16px; padding: 13px; background: #fafafd; border: 1px solid #ededf1; border-radius: 10px; }
.audience-title, .lineup-zone-title { color: #5e5e68; font-size: 10px; font-weight: 800; }
.audience-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.audience-button { padding: 8px 10px; color: #777781; background: #fff; border: 1px solid #e6e6eb; border-radius: 7px; font-size: 9px; font-weight: 700; }
.audience-button:hover, .audience-button.active { color: #30303a; background: var(--lime-soft); border-color: var(--hover-outline); }
.audience-summary { margin-top: 9px; color: #93939d; font-size: 9px; }
.dj-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.picker-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; background: #fafafd; border: 1px solid #ededf1; border-radius: 9px; cursor: pointer; }
.picker-item input { width: 15px; height: 15px; accent-color: #8eab2f; }
.picker-copy { min-width: 0; }
.picker-copy strong, .picker-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-copy strong { color: #34343c; font-size: 10px; }
.picker-copy small { margin-top: 3px; color: #9999a2; font-size: 9px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding-top: 17px; border-top: 1px solid #efeff2; }
.modal-footer-left {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-xs, 8px);
  margin-right: auto;
}
.ghost-button { padding: 11px 15px; color: #777781; background: transparent; border-radius: 8px; font-size: 11px; font-weight: 700; }
.ghost-button:hover { background: #f6f6f8; }
.response-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 21px; }
.response-summary-item { padding: 11px; background: #fafafd; border: 1px solid #ededf1; border-radius: 9px; }
.response-summary-item span, .response-summary-item strong { display: block; }
.response-summary-item span { color: #9999a2; font-size: 9px; }
.response-summary-item strong { margin-top: 5px; font-size: 17px; }
.response-table { width: 100%; margin-top: 20px; border-collapse: collapse; }
.response-table th { padding: 8px 0; color: #9c9ca4; border-bottom: 1px solid #ededf1; text-align: left; font: 9px 'DM Mono', monospace; font-weight: 500; text-transform: uppercase; }
.response-table td { padding: 11px 0; border-bottom: 1px solid #f1f1f3; font-size: 10px; }
.artist-cell { display: flex; align-items: center; gap: 8px; }
.artist-mini { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; color: #4a3f72; background: #e3ddff; border-radius: 50%; font-size: 8px; font-weight: 800; }
.artist-cell strong { display: block; font-size: 10px; }
.artist-cell span { display: block; margin-top: 2px; color: #a0a0a8; font-size: 9px; }
.response-status { color: #6e6e78; }
.response-status.can { color: #3e956e; }
.response-status.cannot { color: #be6c75; }
.approve-button { padding: 7px 9px; color: #4f4f59; background: #f3f3f7; border-radius: 6px; font-size: 9px; font-weight: 800; }
.approve-button:hover { color: #111; background: var(--lime); }
.approve-button.selected { color: #fff; background: #3da879; box-shadow: 0 0 0 2px rgba(61,168,121,.16); }
.approve-button.selected:hover { color: #fff; background: #318e66; }
.lineup-step { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 11px 13px; color: #8e8e98; background: #fafafd; border: 1px solid #ededf1; border-radius: 9px; font-size: 10px; }
.lineup-step strong { color: #33333a; }
.lineup-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr); gap: 14px; margin-top: 17px; }
.lineup-slots { display: flex; flex-direction: column; gap: 14px; }
.lineup-zone { display: flex; flex-direction: column; gap: 7px; }
.lineup-zone-title { letter-spacing: .08em; }
.lineup-slot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 9px 11px; color: #8b8b95; background: #fafafd; border: 1px solid #ededf1; border-radius: 8px; text-align: left; font-size: 10px; transition: .15s ease; }
.lineup-slot span { color: #62626b; font-weight: 700; }
.lineup-slot strong { color: #33333a; font: 10px 'DM Mono', monospace; }
.lineup-slot.active { color: #404b20; background: var(--lime-soft); border-color: var(--hover-outline); box-shadow: 0 0 0 3px rgba(235,235,245,.18); }
.lineup-slot.filled { color: #267451; background: #e8f7ee; border-color: #a8dfbf; }
.lineup-slot.filled span, .lineup-slot.filled strong { color: #267451; }
.lineup-slot:disabled { cursor: not-allowed; opacity: .55; }
.lineup-dj-panel { padding: 12px; background: #fafafd; border: 1px solid #ededf1; border-radius: 10px; }
.lineup-dj-list { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.lineup-dj-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; color: #484851; background: #fff; border: 1px solid #ededf1; border-radius: 8px; text-align: left; }
.lineup-dj-option:hover { background: var(--lime-soft); border-color: var(--hover-outline); }
.lineup-dj-option strong, .lineup-dj-option small { display: block; }
.lineup-dj-option strong { font-size: 9px; }
.lineup-dj-option small { margin-top: 2px; color: #9999a2; font-size: 8px; }
.lineup-dj-option.assigned, .lineup-dj-option:disabled { opacity: .42; cursor: not-allowed; }
.primary-button:disabled { color: #9898a0; background: #e8e8eb; box-shadow: none; cursor: not-allowed; transform: none; }
.dj-request { display: flex; align-items: center; gap: 12px; margin-top: 21px; padding: 13px; background: #fbfbfd; border: 1px solid #ededf2; border-radius: 10px; }
.dj-request-date { width: 42px; flex: 0 0 42px; padding-right: 12px; border-right: 1px solid #e5e5eb; text-align: center; }
.dj-request-date strong { display: block; font-size: 18px; line-height: 1; }
.dj-request-date span { display: block; margin-top: 4px; color: #9898a2; font: 8px 'DM Mono', monospace; }
.dj-request-copy { flex: 1; min-width: 0; }
.dj-request-copy strong { display: block; font-size: 11px; }
.dj-request-copy span { display: block; margin-top: 4px; color: #96969f; font-size: 10px; }
.response-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; padding-top:2px; }
.response-actions button { min-height:34px; padding:8px 12px; border-radius:7px; font-size:9px; font-weight:800; }
.can-button { color: #347c5b; background: #e4f7ed; }
.cannot-button { color: #ad5f6d; background: #fbe9ed; }
.can-button:hover, .can-button.selected { color: #fff; background: #43ae7d; }
.cannot-button:hover, .cannot-button.selected { color: #fff; background: #dc7884; }
.notice-box { display: flex; gap: 10px; margin-top: 18px; padding: 12px; color: #6f6682; background: var(--purple-soft); border: 1px solid #e4ddff; border-radius: 9px; font-size: 10px; line-height: 1.45; }
.notice-box strong { color: #524275; }
.filter-bar { display: flex; align-items: center; gap: 8px; margin: 19px 0; }
.filter-button { padding: 8px 10px; color: #8b8b95; background: #fafafd; border: 1px solid #ededf1; border-radius: 7px; font-size: 10px; }
.filter-button.active { color: #1c1c23; background: var(--lime-soft); border-color: var(--hover-outline); }
.notification-list { display: flex; flex-direction: column; gap: 9px; margin-top: 17px; }
.notification-item { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid #efeff2; border-radius: 10px; }
.notification-item.unread { border-color: #dfe9ad; background: #fbfff0; }
.notification-icon { position:relative; display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px; color:#24240f; background:var(--lime); border-radius:9px; font-size:0; }
.notification-icon::before { content:' '; width:14px; height:10px; display:block; position:relative; background:transparent; border:1.5px solid currentColor; border-radius:4px; }
.notification-icon::after { content:''; width:5px; height:5px; position:absolute; margin:10px 0 0 -8px; background:var(--lime); border-left:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:skewY(-28deg) rotate(-18deg); }
.notification-content { flex: 1; min-width: 0; }
.notification-content strong { display: block; font-size: 11px; }
.notification-content p { margin-top: 4px; color: #777781; font-size: 10px; line-height: 1.4; }
.notification-content time { display: block; margin-top: 6px; color: #aaaab1; font: 9px 'DM Mono', monospace; }
.notification-group { overflow:hidden; background:#fff; border:1px solid #efeff2; border-radius:10px; }
.notification-group.unread { border-color:#dfe9ad; background:#fbfff0; }
.notification-group-head { width:100%; display:flex; align-items:center; gap:10px; padding:13px 14px; color:var(--ink); background:transparent; text-align:left; }
.notification-folder { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; color:#5f6b2b; background:var(--lime-soft); border-radius:8px; font-size:16px; }
.notification-group-copy { min-width:0; flex:1; }
.notification-group-copy strong,.notification-group-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notification-group-copy strong { font-size:11px; }
.notification-group-copy small { margin-top:3px; color:#8f8f98; font-size:9px; }
.notification-group-count { min-width:23px; padding:4px 6px; color:#5f6b2b; background:var(--lime-soft); border-radius:6px; font:10px 'DM Mono',monospace; text-align:center; }
.notification-group-chevron { color:#8d8d96; transition:transform .15s ease; }
.notification-group.expanded .notification-group-chevron { transform:rotate(180deg); }
.notification-group-items { display:flex; flex-direction:column; gap:8px; padding:0 10px 10px; border-top:1px solid #efeff2; }
.notification-group-items .notification-item { border:0; border-bottom:1px solid #efeff2; border-radius:0; }
.notification-group-items .notification-item:last-child { border-bottom:0; }
.lineup-directory { display:flex; flex-direction:column; gap:12px; margin-top:18px; }
.lineup-card { padding:15px; background:#fafafd; border:1px solid #ededf1; border-radius:10px; }
.lineup-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.lineup-card-head strong,.lineup-card-head span { display:block; }
.lineup-card-head strong { font-size:12px; }
.lineup-card-head span:not(.status-pill) { margin-top:5px; color:#8d8d96; font-size:9px; }
.lineup-card-slots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:14px 0; }
.lineup-card-slots div { display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:8px; align-items:center; padding:8px; background:#fff; border:1px solid #ededf1; border-radius:7px; }
.lineup-card-slots span { color:#888891; font-size:8px; text-transform:uppercase; }
.lineup-card-slots strong { color:#55555e; font:9px 'DM Mono',monospace; }
.lineup-card-slots b { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.danger-button { padding:11px 15px; color:#b64e58; background:#fff0f1; border:1px solid #efb0b6; border-radius:8px; font-size:11px; font-weight:700; }
.danger-button:hover { color:#fff; background:#c9626b; }
.lineup-card-slots { display:flex; flex-direction:column; gap:0; padding:8px; background:#fff; border:1px solid #ededf1; border-radius:8px; }
.lineup-card-slots div { padding:8px 4px; background:transparent; border:0; border-bottom:1px solid #ededf1; border-radius:0; }
.lineup-card-slots div:last-child { border-bottom:0; }
.lineup-card-slots div { column-gap:24px; }
.invite-picker .lineup-dj-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; max-height:300px; overflow:auto; }
.lineup-zone { gap:21px; }
.lineup-dj-panel { margin-top:21px; max-height:430px; overflow:auto; align-self:start; }
.manual-dj-button { width:100%; margin-top:9px; border:1px solid var(--hover-outline); color:#4e5d28; background:var(--lime-soft); }
.manual-dj-button:hover { background:var(--lime-soft); }
.invite-history { margin-top:10px; padding-top:9px; border-top:1px solid #ededf1; }
.invite-history > strong { color:#777781; font-size:9px; }
.invite-history-item { display:flex; justify-content:space-between; gap:8px; padding-top:6px; color:#9b6f75; font-size:8px; }
.invite-history-item b { color:#6e4f54; font-weight:800; }
.response-status { min-width:100px; padding:9px 12px; border:1px solid #ededf1; border-radius:7px; text-align:center; font-size:9px; font-weight:800; }
.dj-invitation .response-status { margin-top:20px; }
.response-status.can { color:#3e956e; background:#eefaf3; border-color:#bfe5cf; }
.response-status.cannot { color:#be6c75; background:#fff2f3; border-color:#efbdc2; }
.response-status.cancelled { color:#9c7379; background:#faf5f5; border-color:#e6cfd1; }
body.theme-dark .status-empty { color:#f2b7bc; background:#382326; }
body.theme-dark .notification-group,body.theme-dark .lineup-card { color:#dedee3; background:#202027; border-color:#383841; }
body.theme-dark .notification-group-head { color:#dedee3; }
body.theme-dark .notification-group-copy small { color:#a1a1aa; }
body.theme-dark .notification-group-items { border-color:#383841; }
body.theme-dark .notification-group-items .notification-item { border-color:#383841; }
body.theme-dark .notification-group-count,body.theme-dark .notification-folder { color:var(--lime); background:#33333d; }
body.theme-dark .lineup-card-head span:not(.status-pill) { color:#a1a1aa; }
body.theme-dark .lineup-card-slots div { background:#292930; border-color:#3a3a44; }
body.theme-dark .lineup-card-slots span { color:#a1a1aa; }
body.theme-dark .lineup-card-slots strong { color:#dedee3; }
body.theme-dark .danger-button { color:#f2b7bc; background:#382326; border-color:#81474e; }
body.theme-dark .lineup-card-slots { background:#292930; border-color:#3a3a44; }
body.theme-dark .lineup-card-slots div { border-color:#3a3a44; }
body.theme-dark .manual-dj-button { color:var(--lime); background:#33333d; border-color:var(--hover-outline); }
body.theme-dark .invite-history { border-color:#383841; }
body.theme-dark .invite-history > strong { color:#a1a1aa; }
body.theme-dark .invite-history-item b { color:#e8c5c8; }
body.theme-dark .response-status { border-color:#3a3a44; }
body.theme-dark .response-status.can { color:#a8ebc2; background:#20362a; }
body.theme-dark .response-status.cannot { color:#f2b7bc; background:#382326; }
.empty-state { padding: 32px 12px; color: #9898a1; text-align: center; font-size: 11px; }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 44px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; color: #fff; background: #17171e; border: 1px solid #2b2b35; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.16); font-size: 10px; line-height: 1.4; animation: toast-in .2s ease-out; }
.toast-mark { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; color: #111; background: var(--lime); border-radius: 6px; font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Dark workspace palette; the toggle can switch back to the original light palette. */
body.theme-dark { --ink: #f3f3f5; --muted: #a1a1aa; --muted-dark: #b4b4bd; --line: #2c2c35; --surface: #19191f; --canvas: #111116; --positive-text:#22b86f; --positive-text-strong:#22b86f; --negative-text:var(--red); --negative-bg:rgba(255,95,117,.11); --red:#ff5f75; --orange-text:#ffad66; --yellow-text:#ffe16d; --shadow: 0 20px 48px rgba(0,0,0,.22); color: var(--ink); background: var(--canvas); }
body.theme-dark .main-content, body.theme-dark .page-body { background: var(--canvas); }
body.theme-dark .upcoming-events-panel { border-color: #42424d; box-shadow: 0 8px 26px rgba(0,0,0,.28); }
body.theme-dark .topbar, body.theme-dark .panel, body.theme-dark .stat-card:not(.stat-card-dark) { color: var(--ink); background: #19191f; border-color: #2c2c35; }
body.theme-dark .breadcrumb strong, body.theme-dark .event-title, body.theme-dark .panel h2, body.theme-dark .artist-cell strong, body.theme-dark .notification-content strong { color: #f3f3f5; }
body.theme-dark .breadcrumb, body.theme-dark .page-subtitle, body.theme-dark .event-meta, body.theme-dark .stat-top, body.theme-dark .activity-copy, body.theme-dark .response-table td { color: #a1a1aa; }
body.theme-dark .date-chip, body.theme-dark .event-row, body.theme-dark .row-action, body.theme-dark .outline-button, body.theme-dark .filter-button, body.theme-dark .response-summary-item, body.theme-dark .notification-item, body.theme-dark .dj-request { color: #dedee3; background: #202027; border-color: #303039; }
body.theme-dark .date-chip strong, body.theme-dark .slot-label strong { color: #eeeef1; }
body.theme-dark .date-chip.active { color: #111116; background: var(--lime); border-color: var(--lime); }
body.theme-dark .date-chip.active strong { color: #111116; }
body.theme-dark .date-chip.active span { color: #111116; }
body.theme-dark .nav-item.active,
body.theme-dark .nav-item.active .nav-icon { color: #111116 !important; }
body.theme-dark .date-chip span, body.theme-dark .response-summary-item span, body.theme-dark .notification-content p { color: #a1a1aa; }
body.theme-dark .quick-panel { background: linear-gradient(115deg, #29243a 0%, #211f2a 100%); border-color: #393249; }
body.theme-dark .quick-panel h2 { color: #f3f3f5; }
body.theme-dark .quick-panel p { color: #b5aec6; }
body.theme-dark .secondary-button { color: #f3f3f5; background: #202027; border-color: #36363f; }
body.theme-dark .auth-card { color: #f3f3f5; background: #19191f; border-color: #303039; }
body.theme-dark .auth-heading p, body.theme-dark .auth-hint, body.theme-dark .auth-footnote, body.theme-dark .auth-brand > div:last-child span { color: #a1a1aa; }
body.theme-dark .auth-tabs { background: #111116; }
body.theme-dark .auth-tab.active { color: #f3f3f5; background: #303039; }
body.theme-dark .profile-menu { background: #202027; border-color: #383841; }
body.theme-dark .profile-menu button { color: #c6c6ce; }
body.theme-dark .profile-menu button:hover { color: #fff; background: #303039; }
body.theme-dark .modal { color: #f3f3f5; background: #19191f; }
body.theme-dark .modal-subtitle, body.theme-dark .modal-kicker { color: #a1a1aa; }
body.theme-dark .form-field label { color: #c8c8ce; }
body.theme-dark .form-field input, body.theme-dark .form-field select, body.theme-dark .form-field textarea { color: #f3f3f5; background: #202027; border-color: #383841; }
body.theme-dark .audience-box, body.theme-dark .lineup-step, body.theme-dark .lineup-dj-panel { color: #dddde2; background: #202027; border-color: #383841; }
body.theme-dark .audience-title, body.theme-dark .lineup-zone-title, body.theme-dark .lineup-step strong, body.theme-dark .picker-copy strong { color: #eeeef1; }
body.theme-dark .audience-button, body.theme-dark .picker-item, body.theme-dark .lineup-slot, body.theme-dark .lineup-dj-option { color: #dedee3; background: #292930; border-color: #3a3a44; }
body.theme-dark .audience-button.active { color: var(--lime); background: #33333d; border-color: var(--hover-outline); }
body.theme-dark .lineup-slot.active { color: #f0f8c8; background: #303039; border-color: var(--hover-outline); }
body.theme-dark .lineup-slot span, body.theme-dark .lineup-slot strong, body.theme-dark .lineup-dj-option strong { color: #eeeef1; }
body.theme-dark .lineup-slot.filled { color: #a8ebc2; background: #20362a; border-color: #376a4c; }
body.theme-dark .lineup-slot.filled span, body.theme-dark .lineup-slot.filled strong { color: #a8ebc2; }
body.theme-dark .response-table th, body.theme-dark .response-table td { border-color: #303039; }
body.theme-dark .approve-button, body.theme-dark .ghost-button, body.theme-dark .modal-close { color: #d0d0d6; background: #292930; }
body.theme-dark .ghost-button:hover, body.theme-dark .modal-close:hover { background: #383841; }
body.theme-dark .notification-item.unread { background: #252b1b; border-color: #4a542e; }
body.theme-dark .theme-toggle { color: var(--lime); font-size: 17px; }
body.theme-dark .approve-button.selected { color: #fff; background: #318e66; }

/* Step 2: assignment of a primary and optional reserve DJ to each fixed slot. */
.slot-zone-filter {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 13px;
  background: #fafafd;
  border: 1px solid #ededf1;
  border-radius: 10px;
}
.slot-zone-filter > span { color: #5e5e68; font-size: 10px; font-weight: 800; }
.slot-zone-filter small { color: #92929b; font-size: 9px; line-height: 1.4; }
.zone-switch { display: flex; flex-wrap: wrap; gap: 7px; }
.zone-switch button {
  padding: 8px 10px;
  color: #777781;
  background: #fff;
  border: 1px solid #e6e6eb;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}
.zone-switch button:hover, .zone-switch button.active {
  color: #30303a;
  background: var(--lime-soft);
  border-color: var(--hover-outline);
}
.lineup-assignment {
  padding: 11px 12px;
  background: #fafafd;
  border: 1px solid #ededf1;
  border-radius: 9px;
  transition: .15s ease;
  cursor: pointer;
}
.lineup-assignment.active {
  background: var(--lime-soft);
  border-color: var(--hover-outline);
  box-shadow: var(--hover-glow);
}
.lineup-assignment.filled {
  background: #e8f7ee;
  border-color: #a8dfbf;
}
.lineup-assignment.unavailable {
  opacity: .48;
  filter: grayscale(.35);
}
.lineup-assignment-heading, .lineup-assignee-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lineup-assignment-heading { justify-content: space-between; }
.lineup-assignment-heading strong { color: #33333a; font: 10px 'DM Mono', monospace; }
.slot-unavailable-label { color: #a1a1a8; font-size: 8px; }
.lineup-assignee-row { min-height: 26px; margin-top: 6px; }
.lineup-assignee-row > span { width: 53px; flex: 0 0 53px; color: #8c8c95; font-size: 9px; }
.assigned-name { min-width: 0; flex: 1; overflow: hidden; color: #267451; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.reserve-empty { min-width: 0; flex: 1; color: #9a9aa3; font-size: 10px; }
.choose-assignee {
  padding: 5px 7px;
  color: #75757e;
  background: transparent;
  border: 1px solid #dfdfe5;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.choose-assignee:hover, .choose-assignee.selected { color: #30303a; background: var(--lime-soft); border-color: var(--hover-outline); }
.choose-assignee:disabled, .clear-assignee:disabled { cursor: not-allowed; opacity: .45; }
.clear-assignee {
  width: 21px;
  height: 21px;
  color: #a06a70;
  background: transparent;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1;
}
.clear-assignee:hover { background: #fff0f1; }
.reserve-choice { color: #8d8d96; }
.skip-reserve-button {
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  color: #4e5d28;
  background: var(--lime-soft);
  border: 1px solid var(--hover-outline);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}
.skip-reserve-button:hover { background: var(--lime-soft); }
.lineup-cancel { width: 100%; margin-top: 8px; border: 1px solid #ededf1; }
.lineup-hint { margin: 6px 0 0; color: #92929b; font-size: 8px; line-height: 1.4; }
.request-slot {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
  transition: .15s ease;
}
.request-slot:hover, .request-slot.expanded {
  border-color: var(--hover-outline);
  box-shadow: 0 0 0 3px rgba(235,235,245,.15);
}
.request-slot-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.request-slot-time { min-width: 0; }
.request-slot-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  justify-content: initial;
  gap: 9px;
  width: 100%;
  min-width: 0;
}
.request-slot-primary b {
  overflow: hidden;
  color: #34343c;
  font-size: 10px;
  text-overflow: ellipsis;
  text-align: right;
  white-space: nowrap;
}
.request-slot-primary.has-collapsed-invite {
  display: flex;
  justify-content: flex-end;
}
.collapsed-invite-button {
  padding: 6px 9px;
  color: #4e5d28;
  background: var(--lime-soft);
  border: 1px solid var(--hover-outline);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.collapsed-invite-button:hover { background: var(--lime-soft); }
.response-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  border-radius: 50%;
  color: #c7c7ce;
  background: #3a3a47;
  font: 700 12px/1 'DM Mono', monospace;
}
.response-mark.can, .response-mark.confirmed, .response-mark.performed { color:#fff; background:#3da879; }
.response-mark.cannot, .response-mark.declined { color:#fff; background:#d76873; }
.response-mark.pending, .response-mark.waiting, .response-mark.assigned, .response-mark.empty { color:#c7c7ce; background:#3a3a47; }
.slot-fallback-note {
  margin-top: 7px;
  color: #a16870;
  font-size: 9px;
  text-align: right;
}
.request-slot-expanded {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #ededf1;
}
.request-reserve-row, .request-reserve-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777781;
  font-size: 9px;
}
.request-reserve-fallback { color: #a16870; }
.request-reserve-person { display: flex; align-items: center; gap: 9px; }
.request-slot-invite { display: flex; justify-content: flex-end; width: 100%; }
.request-failure-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(100%, 330px);
}
.request-failure-card {
  width: 100%;
  padding: 8px 10px;
  color: #a3434d;
  background: #fff3f3;
  border: 1px solid #e9a0a6;
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.35;
}
.request-failure-card b { font-weight: 800; }
.request-reserve-card {
  width: min(100%, 330px);
  padding: 8px 10px;
  color: #7b7b85;
  background: transparent;
  border: 1px solid #c9c9d0;
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.35;
}
.request-reserve-card b { color: #575761; font-weight: 800; }
.request-invite-picker { width: 100%; }
.request-extra-invite { padding-top: 8px; border-top: 1px solid #ededf1; }
.request-reserve-row b { color: #4f4f58; }
.request-reserve-empty { color: #96969f; }
.invite-slot-button {
  align-self: flex-end;
  padding: 8px 10px;
  color: #4e5d28;
  background: var(--lime-soft);
  border: 1px solid var(--hover-outline);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}
.invite-slot-button:hover { background: var(--lime-soft); }
.invite-picker {
  padding-top: 9px;
  border-top: 1px dashed #dedee4;
}
.invite-picker-title {
  color: #666670;
  font-size: 9px;
  font-weight: 800;
}
body.theme-dark .request-slot-primary b { color: #f1f1f3; }
body.theme-dark .collapsed-invite-button { color: var(--lime); background: #33333d; border-color: var(--hover-outline); }
body.theme-dark .request-slot.expanded, body.theme-dark .request-slot:hover { border-color: var(--hover-outline); }
body.theme-dark .request-slot-expanded { border-color: #383841; }
body.theme-dark .request-reserve-row b { color: #e4e4e8; }
body.theme-dark .request-reserve-row, body.theme-dark .request-reserve-empty, body.theme-dark .invite-picker-title { color: #a1a1aa; }
body.theme-dark .request-reserve-fallback { color: #eaa0a8; }
body.theme-dark .request-failure-card { color: #f2b7bc; background: #382326; border-color: #81474e; }
body.theme-dark .request-reserve-card { color: #aaaab3; border-color: #55555f; }
body.theme-dark .request-reserve-card b { color: #e1e1e6; }
body.theme-dark .request-extra-invite { border-color: #383841; }
body.theme-dark .response-mark.pending, body.theme-dark .response-mark.waiting { color: #c4c4cc; background: #3a3a44; }
body.theme-dark .slot-fallback-note { color: #eaa0a8; }
body.theme-dark .invite-slot-button { color: var(--lime); background: #33333d; border-color: var(--hover-outline); }
body.theme-dark .invite-picker { border-color: #3a3a44; }
body.theme-dark .slot-zone-filter, body.theme-dark .lineup-assignment { background: #202027; border-color: #383841; }
body.theme-dark .slot-zone-filter > span, body.theme-dark .lineup-assignment-heading strong { color: #eeeef1; }
body.theme-dark .slot-zone-filter small, body.theme-dark .slot-unavailable-label, body.theme-dark .lineup-assignee-row > span { color: #a1a1aa; }
body.theme-dark .zone-switch button, body.theme-dark .choose-assignee { color: #dedee3; background: #292930; border-color: #3a3a44; }
body.theme-dark .zone-switch button.active, body.theme-dark .choose-assignee.selected { color: var(--lime); background: #33333d; border-color: var(--hover-outline); }
body.theme-dark .lineup-assignment.active { background: #303039; border-color: var(--hover-outline); }
body.theme-dark .lineup-assignment.filled { background: #20362a; border-color: #376a4c; }
body.theme-dark .assigned-name { color: #a8ebc2; }
body.theme-dark .reserve-empty { color: #a1a1aa; }
body.theme-dark .lineup-hint { color: #a1a1aa; }
body.theme-dark .lineup-cancel { border-color: #3a3a44; }

@media (max-width: 1020px) {
  .sidebar { width: 224px; flex-basis: 224px; }
  .topbar, .page-body { padding-left: 28px; padding-right: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .activity-panel { min-height: 300px; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: auto; padding: 16px; }
  .venue-card { margin: 17px 0 14px; }
  .main-nav { flex-direction: row; overflow-x: auto; }
  .nav-label { display: none; }
  .sidebar-bottom { display: flex; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #25252c; }
  .nav-item { width: auto; flex: 0 0 auto; }
  .nav-count { display: none; }
  .topbar { height: 64px; padding: 0 18px; }
  .topbar .avatar { display: none; }
  .page-body { padding: 28px 16px 38px; }
  .hero-row { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
  .stats-grid { gap: 8px; margin-top: 28px; }
  .stat-card { min-height: 124px; padding: 14px; }
  .stat-value { margin-top: 14px; font-size: 26px; }
  .stat-foot { font-size: 9px; }
  .events-panel, .activity-panel { padding: 16px; }
  .event-row { grid-template-columns: 46px minmax(0,1fr) auto; gap: 9px; padding: 10px; }
  .event-end .slot-progress { display: none; }
  .row-action { width: 25px; }
  .quick-panel { align-items: flex-start; flex-direction: column; padding: 16px; }
  .quick-panel .secondary-button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .response-summary { gap: 5px; }
  .response-summary-item { padding: 8px; }
  .response-table { font-size: 9px; }
  .response-table th:nth-child(2), .response-table td:nth-child(2) { display: none; }
  .response-actions { flex-direction: column; gap: 4px; }
}


/* Audience selection and DJ-by-slot lineup builder */
.audience-box { margin-top:16px; padding:13px; background:#fafafd; border:1px solid #ededf1; border-radius:10px; }
.audience-title,.lineup-zone-title { color:#5e5e68; font-size:10px; font-weight:800; }
.audience-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.audience-button { padding:8px 10px; color:#777781; background:#fff; border:1px solid #e6e6eb; border-radius:7px; font-size:9px; font-weight:700; }
.audience-button:hover,.audience-button.active { color:#30303a; background:var(--lime-soft); border-color:var(--hover-outline); }
.audience-summary { margin-top:9px; color:#93939d; font-size:9px; }
.dj-picker-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:18px; }
.picker-item { display:flex; align-items:center; gap:9px; min-width:0; padding:10px; background:#fafafd; border:1px solid #ededf1; border-radius:9px; cursor:pointer; }
.picker-item input { width:15px; height:15px; accent-color:#8eab2f; }
.picker-copy { min-width:0; }.picker-copy strong,.picker-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.picker-copy strong { color:#34343c; font-size:10px; }.picker-copy small { margin-top:3px; color:#9999a2; font-size:9px; }
.approve-button.selected { color:#fff; background:#3da879; box-shadow:0 0 0 2px rgba(61,168,121,.16); }
.approve-button.selected:hover { color:#fff; background:#318e66; }
.lineup-step { display:flex; justify-content:space-between; gap:12px; margin-top:18px; padding:11px 13px; color:#8e8e98; background:#fafafd; border:1px solid #ededf1; border-radius:9px; font-size:10px; }
.lineup-step strong { color:#33333a; }
.lineup-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(190px,.8fr); gap:14px; margin-top:17px; }
.lineup-slots { display:flex; flex-direction:column; gap:14px; }.lineup-zone { display:flex; flex-direction:column; gap:7px; }.lineup-zone-title { letter-spacing:.08em; }
.lineup-slot { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:42px; padding:9px 11px; color:#8b8b95; background:#fafafd; border:1px solid #ededf1; border-radius:8px; text-align:left; font-size:10px; transition:.15s ease; }
.lineup-slot span { color:#62626b; font-weight:700; }.lineup-slot strong { color:#33333a; font:10px 'DM Mono',monospace; }
.lineup-slot.active { color:#404b20; background:var(--lime-soft); border-color:var(--hover-outline); box-shadow:0 0 0 3px rgba(235,235,245,.18); }
.lineup-slot.filled { color:#267451; background:#e8f7ee; border-color:#a8dfbf; }.lineup-slot.filled span,.lineup-slot.filled strong { color:#267451; }
.lineup-slot:disabled { cursor:not-allowed; opacity:.55; }
.lineup-dj-panel { padding:12px; background:#fafafd; border:1px solid #ededf1; border-radius:10px; }
.lineup-dj-list { display:flex; flex-direction:column; gap:7px; margin-top:9px; }
.lineup-dj-option { display:flex; align-items:center; gap:8px; width:100%; padding:8px; color:#484851; background:#fff; border:1px solid #ededf1; border-radius:8px; text-align:left; }
.lineup-dj-option:hover { background:var(--lime-soft); border-color:var(--hover-outline); }.lineup-dj-option strong,.lineup-dj-option small { display:block; }
.lineup-dj-option strong { font-size:9px; }.lineup-dj-option small { margin-top:2px; color:#9999a2; font-size:8px; }
.lineup-dj-option.assigned,.lineup-dj-option:disabled { opacity:.42; cursor:not-allowed; }
.primary-button:disabled { color:#9898a0; background:#e8e8eb; box-shadow:none; cursor:not-allowed; transform:none; }
.request-slots, .dj-invitations { width:100%; display:flex; flex-direction:column; align-items:stretch; gap:12px; margin-top:18px; }
.request-zone { width:100%; min-width:0; display:flex; flex-direction:column; align-items:stretch; gap:7px; }
.request-zone h3 { margin:0 0 2px; color:#777781; font:10px 'DM Mono',monospace; letter-spacing:.12em; }
.request-slot, .dj-invitation { padding:12px; background:#fafafd; border:1px solid #ededf1; border-radius:9px; }
.request-slot-time { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.request-slot-time strong { color:#303039; font:11px 'DM Mono',monospace; }
.request-slot-time span, .request-slot-people span { color:#888891; font-size:9px; }
.request-slot-people { display:flex; gap:18px; margin-top:7px; }
.request-slot-people b { color:#4f4f58; }
.dj-invitation-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.dj-invitation-top > strong { color:#303039; font:10px 'DM Mono',monospace; }
.dj-invitation p { margin:9px 0 0; color:#85858e; font-size:10px; line-height:1.45; }
.draft-comment { margin-top:16px; }
body.theme-dark .request-slot, body.theme-dark .dj-invitation { color:#dedee3; background:#202027; border-color:#383841; }
body.theme-dark .request-slot-time strong, body.theme-dark .dj-invitation-top > strong { color:#f1f1f3; }
body.theme-dark .request-slot-time span, body.theme-dark .request-slot-people span, body.theme-dark .dj-invitation p { color:#a1a1aa; }
body.theme-dark .request-slot-people b { color:#e4e4e8; }
body.theme-dark .audience-box,body.theme-dark .lineup-step,body.theme-dark .lineup-dj-panel { color:#dddde2; background:#202027; border-color:#383841; }
body.theme-dark .audience-title,body.theme-dark .lineup-zone-title,body.theme-dark .lineup-step strong,body.theme-dark .picker-copy strong { color:#eeeef1; }
body.theme-dark .audience-button,body.theme-dark .picker-item,body.theme-dark .lineup-slot,body.theme-dark .lineup-dj-option { color:#dedee3; background:#292930; border-color:#3a3a44; }
body.theme-dark .audience-button.active { color:var(--lime); background:#33333d; border-color:var(--hover-outline); }
body.theme-dark .lineup-slot.active { color:#f0f8c8; background:#303039; border-color:var(--hover-outline); }
body.theme-dark .lineup-slot span,body.theme-dark .lineup-slot strong,body.theme-dark .lineup-dj-option strong { color:#eeeef1; }
body.theme-dark .lineup-slot.filled { color:#a8ebc2; background:#20362a; border-color:#376a4c; }
body.theme-dark .lineup-slot.filled span,body.theme-dark .lineup-slot.filled strong { color:#a8ebc2; }
body.theme-dark .approve-button.selected { color:#fff; background:#318e66; }
@media (max-width:720px) { .dj-picker-list { grid-template-columns:1fr; } .lineup-layout { grid-template-columns:1fr; } .invite-picker .lineup-dj-list { grid-template-columns:1fr; } .response-actions { grid-template-columns:1fr; } }
@media (max-width:720px) { .lineup-card-slots { grid-template-columns:1fr; } .lineup-card-head { flex-direction:column; } }

/* Final lineup-builder alignment overrides. */
.lineup-zone { gap: 21px; }
.lineup-dj-panel { margin-top: 37px; max-height: 430px; overflow-y: auto; align-self: start; }
@media (max-width:720px) { .lineup-zone { gap: 14px; } .lineup-dj-panel { margin-top: 0; max-height: 360px; } }

/* Final visual cleanup: one spacing rhythm, no accidental scrollbars, aligned panels. */
:root { --ui-gap: 12px; --ui-radius: 10px; }
.modal { padding: 24px; }
.modal-header { padding-bottom: 2px; }
.modal-footer { align-items:center; gap:12px; }
.lineup-layout { align-items:start; gap:16px; }
.lineup-slots { gap:16px; min-width:0; }
.lineup-zone { gap:16px !important; }
.lineup-zone-title { margin-bottom:5px; }
.lineup-assignment { min-width:0; }
.lineup-dj-panel { position:relative; margin-top:33px !important; max-height:none; overflow:visible; padding:16px; }
.lineup-dj-panel.roster-expanded { max-height:510px; overflow-y:auto; }
.lineup-dj-panel.roster-expanded, .invite-picker .lineup-dj-list { scrollbar-width:none; }
.lineup-dj-panel.roster-expanded::-webkit-scrollbar, .invite-picker .lineup-dj-list::-webkit-scrollbar { display:none; width:0; height:0; }
.lineup-dj-panel.roster-expanded .lineup-dj-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.lineup-dj-panel.roster-expanded .lineup-dj-option { min-width:0; }
.panel-corner-toggle { position:absolute; top:9px; right:9px; width:24px; height:24px; display:grid; place-items:center; color:#74747e; background:#f0f0f3; border:1px solid #dedee5; border-radius:6px; font-size:13px; }
.panel-corner-toggle:hover { color:#30303a; background:var(--lime-soft); border-color:var(--hover-outline); }
.lineup-dj-panel .lineup-zone-title { padding-right:32px; }
.invite-picker { padding-top:0; border-top:0; }
.invite-picker .lineup-dj-list { max-height:none; overflow:visible; }
.invite-picker .lineup-dj-option { height:100%; min-height:72px; padding:10px; }
.invite-picker .lineup-dj-option.selected { color:#30303a; background:var(--lime-soft); border-color:var(--hover-outline); box-shadow:0 0 0 2px rgba(235,235,245,.18); opacity:1; }
.invite-confirm-button { width:100%; margin-top:10px; }
.invite-confirm-button:disabled { color:#9898a0; background:#e8e8eb; box-shadow:none; cursor:not-allowed; }
.invite-history { margin-top:12px; padding-top:10px; border-top:1px solid #ededf1; }
.invite-history .request-failure-card + .request-failure-card { margin-top:7px; }
.request-slot-expanded { gap:12px; padding-top:12px; }
.request-slot-invite { order:1; margin-top:0; }
.request-extra-invite { order:2; }
.request-reserve-card, .request-failure-stack { order:3; }
.request-failure-card { padding:9px 11px; }
.request-reserve-card { padding:9px 11px; }
.request-history { order:4; display:flex; flex-direction:column; gap:7px; padding-top:9px; border-top:1px solid #ededf1; }
.lineup-card-slots { border-radius:9px; }
.lineup-card-slots div { column-gap:28px; }
.notification-group-head, .notification-item { min-height:56px; }
.notification-group-items { padding:8px 10px 10px; }
body.theme-dark .panel-corner-toggle { color:#c4c4cc; background:#292930; border-color:#3a3a44; }
body.theme-dark .invite-history { border-color:#383841; }
@media (max-width:720px) {
  .modal { padding:18px; }
  .lineup-layout { gap:12px; }
  .lineup-dj-panel { margin-top:0 !important; }
  .lineup-dj-panel.roster-expanded .lineup-dj-list { grid-template-columns:1fr 1fr; }
}

/* Art-meeting quick action and compact, consistent modal controls. */
.quick-panel { align-items: center; }
.quick-meeting-controls { display:flex; flex-direction:column; align-items:flex-end; gap:10px; min-width:310px; }
.quick-meeting-controls.hidden { display:none; }
.quick-meeting-fields, .quick-meeting-actions { display:flex; align-items:flex-end; gap:8px; }
.quick-meeting-field { display:flex; flex-direction:column; gap:5px; color:#777781; font-size:9px; font-weight:800; }
.quick-meeting-field input { width:128px; padding:9px 10px; color:var(--ink); background:#fff; border:1px solid #e6e6eb; border-radius:8px; font:10px 'DM Mono',monospace; }
.quick-meeting-actions .outline-button { white-space:nowrap; }
.quick-meeting-actions #quickAction:hover { color:#30303a; background:var(--lime); border-color:var(--hover-outline); }
.quick-meeting-actions #quickAction:focus-visible { color:#30303a; background:var(--lime); border-color:var(--hover-outline); }
.manual-dj-form { margin-top:22px; }
.manual-dj-form .form-field input { min-height:42px; }
.meeting-dj-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:18px; }
.meeting-dj-option { display:flex; align-items:center; gap:10px; min-width:0; padding:11px 12px; color:#34343c; background:#fafafd; border:1px solid #ededf1; border-radius:9px; cursor:pointer; }
.meeting-dj-option:hover { border-color:var(--hover-outline); background:var(--lime-soft); }
.meeting-dj-option .artist-mini { flex:0 0 auto; }
.meeting-dj-name { min-width:0; flex:1; }
.meeting-dj-name strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.meeting-dj-option input { width:18px; height:18px; flex:0 0 18px; margin:0; accent-color:#8eab2f; }
.meeting-dj-option:has(input:checked) { color:#30303a; background:var(--lime-soft); border-color:var(--hover-outline); box-shadow:0 0 0 2px rgba(235,235,245,.18); }
.lineup-step-zone { display:flex; align-items:center; gap:9px; }
.lineup-step-zone strong + strong { color:#6f7079; font:10px 'DM Mono',monospace; }
.meeting-list { display:flex; flex-direction:column; gap:12px; margin-top:18px; }
.meeting-card { padding:16px; background:#fafafd; border:1px solid #ededf1; border-radius:10px; }
.meeting-card.is-cancelled { opacity:1; }
.meeting-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.meeting-card-head h3 { margin-top:6px; color:#2f2f37; font-size:14px; }
.meeting-card-head p { margin-top:5px; color:#898993; font-size:10px; }
.meeting-response-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:14px; }
.meeting-response-row { display:flex; align-items:center; gap:9px; min-width:0; padding:10px; background:#fff; border:1px solid #ededf1; border-radius:9px; }
.meeting-response-copy { min-width:0; flex:1; }
.meeting-response-copy strong, .meeting-response-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.meeting-response-copy strong { color:#34343c; font-size:10px; }
.meeting-response-copy span { margin-top:3px; color:#92929b; font-size:9px; }
.meeting-response-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:50%; gap:12px; margin-top:20px; padding-top:2px; }
.meeting-response-actions button { min-height:34px; padding:8px 12px; border-radius:7px; font-size:9px; font-weight:800; }
.meeting-cancel-button { margin-top:14px; }
body.theme-dark .quick-meeting-field { color:#b3b3bc; }
body.theme-dark .quick-meeting-field input { color:#f3f3f5; background:#202027; border-color:#383841; }
body.theme-dark .meeting-card { background:#202027; border-color:#383841; }
body.theme-dark .meeting-card-head h3, body.theme-dark .meeting-response-copy strong { color:#eeeef1; }
body.theme-dark .meeting-card-head p, body.theme-dark .meeting-response-copy span { color:#a1a1aa; }
body.theme-dark .meeting-response-row { background:#292930; border-color:#3a3a44; }
body.theme-dark .quick-meeting-actions #quickAction:hover, body.theme-dark .quick-meeting-actions #quickAction:focus-visible { color:#111116; background:var(--lime); border-color:var(--hover-outline); }
body.theme-dark .meeting-dj-option { color:#dedee3; background:#292930; border-color:#3a3a44; }
body.theme-dark .meeting-dj-option:hover, body.theme-dark .meeting-dj-option:has(input:checked) { color:var(--lime); background:#33333d; border-color:var(--hover-outline); }
body.theme-dark .lineup-step-zone strong + strong { color:#b7b7c0; }
@media (max-width:720px) {
  .quick-meeting-controls { width:100%; min-width:0; align-items:stretch; }
  .quick-meeting-fields, .quick-meeting-actions { width:100%; }
  .quick-meeting-field, .quick-meeting-field input, .quick-meeting-actions button { flex:1; width:100%; }
  .quick-meeting-actions { flex-direction:column; align-items:stretch; }
  .meeting-dj-list { grid-template-columns:1fr; }
  .meeting-card-head { flex-direction:column; }
  .meeting-response-list { grid-template-columns:1fr; }
  .meeting-response-actions { width:100%; }
}

/* The zone label and its first slot follow one clear vertical rhythm. */
.lineup-zone-title { margin-bottom:14px !important; }
.lineup-zone { gap:18px !important; }
.notification-group-head { padding-left:16px; }
.notification-group-items .notification-item { padding-left:4px; }

/* Bazzar Art OS: adapt server-backed functions to the original Bazzar components. */
body{font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:400}
button,input,textarea,select{font-family:inherit}
strong,b{font-weight:700}
h1,h2,h3{font-weight:700}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--hover-outline);outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.45}
.muted{color:var(--muted);line-height:1.55}
.section-gap{margin-top:22px}.section-bottom{margin-bottom:20px}
.eyebrow{color:#9696a0;font:10px 'DM Mono',monospace;letter-spacing:.12em}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:10px 14px;border-radius:9px;font-size:11px;font-weight:600;border:1px solid transparent;transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s;text-align:center}
.button:hover:not(:disabled){transform:translateY(-1px)}
.button-primary{color:#111116;background:var(--lime);box-shadow:0 6px 18px rgba(235,235,245,.12)}
.button-primary:hover{background:var(--lime-soft)}
.button-secondary,.button-ghost{color:#666670;background:#fff;border-color:var(--line)}
.button-secondary:hover,.button-ghost:hover{color:#33333a;background:#f5f5f8}
.button-ghost{background:transparent}
.button-danger{color:#b76873;background:#fff1f3;border-color:#efc6ca}
.button-danger:hover{background:#ffe6e9}
.button-small{font-size:10px;padding:7px 10px;min-height:32px}
.button.full{width:100%}
.text-link{color:var(--ink);background:transparent;padding:0;text-align:left;font:inherit}
.text-link:hover{text-decoration:underline}
.person-link{display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--ink);padding:0;text-align:left}
.person-link strong{font-size:11px}
.person-avatar-button{display:grid;place-items:center;background:transparent;padding:0;border-radius:50%;flex-shrink:0}
.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.avatar.lime{color:#16161b;background:var(--lime)}
.avatar.purple{color:#594c86;background:#dfd6ff}
.auth-card .auth-heading{margin-top:32px}
.auth-role-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:24px;padding:4px;background:#f4f4f6;border-radius:10px}
.auth-role-tab{padding:10px 8px;color:#898992;background:transparent;border-radius:7px;font-size:10px;font-weight:700}
.auth-role-tab.active{color:#33333a;background:#fff;box-shadow:0 2px 7px rgba(20,20,30,.08)}
.stack-form{display:grid;gap:14px;margin:22px 0}
.stack-form label,.form-field label{display:grid;gap:7px;font-size:10px;font-weight:600;color:#777781}
.stack-form input{width:100%;padding:11px 12px;border:1px solid #e6e6eb;border-radius:8px;color:var(--ink);background:#fbfbfc;outline:none;font-size:11px}
.stack-form input:focus{border-color:var(--hover-outline);box-shadow:0 0 0 3px rgba(235,235,245,.16)}
.form-field input,.form-field select,.form-field textarea{font-weight:400}
.form-error{color:var(--red);font-size:11px;line-height:1.5;white-space:pre-wrap}
.form-error:empty{display:none}
.modal .compact-confirm-message{font-size:10px}
.modal .compact-confirm-message{margin-top:10px;white-space:pre-line;line-height:1.5}
.auth-card>small{display:block;border-top:1px solid var(--line);padding-top:16px;font-size:9px}
.brand-line{display:flex;align-items:center;gap:10px;padding:0 9px}
.brand-line strong{display:block;color:#fff;font-size:12px;font-weight:700;letter-spacing:.035em}
.brand-line small{display:block;color:#777781;font:9px 'DM Mono',monospace;margin-top:3px}
.brand-mark.small{width:31px;height:31px}
.venue-card>div{min-width:0}
.venue-card .status-dot{margin-top:3px;box-shadow:none}
.venue-card{margin:34px 0 10px}
.venue-schedule{margin:0 0 24px}
.main-nav{display:flex;flex-direction:column;gap:3px}
.nav-label{padding:10px;font-size:9px;color:#777782;letter-spacing:.1em}
.nav-secondary{margin-top:12px}
.nav-item{font-weight:600}
.nav-item.active,.theme-dark .nav-item.active{color:#111116!important}
.sidebar-bottom{margin-top:auto;padding-top:30px;display:grid;gap:12px}
/* On the director's home page, both columns end at the meeting invitation. */
@media(min-width:761px) {
  .app-shell:has(#quickMeetingForm) { --home-bottom-inset:52px; }
  .app-shell:has(#quickMeetingForm)>.sidebar {
    padding-bottom:var(--home-bottom-inset);
  }
  .app-shell:has(#quickMeetingForm)>.main-content {
    display:flex;
    flex-direction:column;
  }
  .app-shell:has(#quickMeetingForm)>.main-content>.topbar { flex-shrink:0; }
  .app-shell:has(#quickMeetingForm) .page-body {
    width:100%;
    flex:1;
    display:flex;
    flex-direction:column;
    padding-bottom:var(--home-bottom-inset);
  }
  .app-shell:has(#quickMeetingForm) .page-body>* { flex-shrink:0; }
  .app-shell:has(#quickMeetingForm) .page-body>:nth-last-child(2) {
    margin-bottom:auto;
  }
}
.profile-mini{display:flex;gap:10px;align-items:center;min-width:0}
.profile-mini>div:last-child{min-width:0}
.profile-mini strong,.profile-mini small{display:block}
.profile-mini strong{font-size:10px;font-weight:600}
.profile-mini small{font-size:9px;color:#777782;margin-top:3px}
.sidebar .text-link{color:#dedee3;text-align:left;font-size:10px}
.sidebar-bottom .button{font-size:10px;color:#9999a5;border-color:#2b2b34}
.sidebar-bottom .button:hover{background:#22222a;color:#eee}
.topbar>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.breadcrumb{font-size:10px;white-space:nowrap;display:inline}
#pageHeading{font-size:11px;font-weight:600}
.top-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.hero h1{font-size:clamp(28px,2.7vw,37px);font-weight:600;margin:12px 0 0;line-height:1.15}
.hero p{margin-top:11px;font-size:11px;line-height:1.5;color:var(--muted)}
.club-schedule-note{font-size:11px;line-height:1.5;margin-top:11px}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:52%}
.hero-actions .button{font-size:10px}
.panel{padding:21px;border:1px solid var(--line);border-radius:13px;box-shadow:none;min-width:0}
.panel h2{font-weight:700;margin:0;font-size:16px}
.panel h3{font-size:12px;margin:0}
.panel p,.task-card p,.comment-box p{overflow-wrap:anywhere}
.grid-2{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.8fr);gap:13px;align-items:start}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:32px}
.stat{padding:18px;min-height:123px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.stat small{font-size:10px;color:var(--muted)}
.stat strong{display:block;font-size:31px;font-weight:600;letter-spacing:-.055em;margin-top:18px;line-height:1.1}
.event-list{display:grid;gap:9px;margin-top:18px}
.event-row{grid-template-columns:44px minmax(0,1fr) auto;min-width:0;background:#fff}
.event-title{font-size:11px;font-weight:700;white-space:normal;overflow-wrap:anywhere}
.event-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.event-heading-copy{min-width:0;flex:1}
.event-title-row{flex-wrap:wrap}
.event-main{min-width:0}
.event-date strong,.event-date small{display:block;text-align:center}
.event-date small{font:9px 'DM Mono',monospace;color:var(--muted)}
.event-meta{font-size:9px;flex-wrap:wrap}
.event-meta span,
.calendar-event-meta,
.artist-card-body .text-link,
.artist-card-body .text-link strong {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
}
.event-status{flex:0 0 auto;margin:0}
.event-status .status{white-space:normal}
.status{display:inline-flex;align-items:center;justify-content:center;max-width:100%;font-size:9px;font-weight:500;padding:4px 7px;border-radius:6px;white-space:nowrap}
.status-neutral{background:#f1f1f4;color:#85858f}
.status-ready{background:#e9f8ef;color:#34835f}
.status-declined{background:#fff0f2;color:#b76a73}
.status-assigned{background:#eee9ff;color:#7961a9}
.inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.attention-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
.attention-list-single{grid-template-columns:1fr}
.attention-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:9px}
.attention-row>div{flex:1;min-width:0}
.attention-row strong{font-size:11px;font-weight:600}
.attention-row small{display:block;margin-top:5px;color:var(--muted);font-size:9px}
.calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:15px;margin:24px 0 16px}
.calendar-toolbar>.inline-actions{justify-self:start}
.calendar-toolbar>.month-title{justify-self:center}
.calendar-toolbar>.muted{justify-self:end}
.month-title{font-size:19px;font-weight:600;text-transform:capitalize;margin:0}
.calendar-toolbar>.muted{font-size:10px}
.month-calendar{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.month-headings,.month-week{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.month-headings{border-bottom:1px solid var(--line);background:#fafafd}
.month-headings strong{padding:13px;color:#666670;font-size:11px;font-weight:600}
.month-week{border-bottom:1px solid var(--line);min-height:140px}
.month-week:last-child{border-bottom:0}
.month-day,.month-padding{border-right:1px solid var(--line);min-width:0}
.month-day:last-child,.month-padding:last-child{border-right:0}
.month-day .day-head{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;border-bottom:1px solid var(--line)}
.month-day .day-head strong{font-size:13px;font-weight:600;line-height:18px}
.mobile-weekday{display:none}
.month-day.is-today .day-head{background:transparent;color:inherit}
.month-day.is-today .day-head strong{font-size:13px;font-weight:600;color:inherit}
.day-events{display:grid;gap:8px;padding:8px}
.month-padding{background:#f9f9fb}
.calendar-event{padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--surface);min-width:0}
.calendar-event-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.calendar-event-copy{min-width:0;flex:1}
.calendar-event-meta{display:block;color:var(--muted);font-size:9px;margin-top:4px;line-height:1.5}
.calendar-event-status{flex:0 0 auto;margin:0}
.calendar-event-status .status{white-space:normal}
.calendar-slots{display:grid;gap:7px;margin-top:9px}
.calendar-slot{display:grid;gap:4px;padding:6px;background:#f6f6f9;border-radius:6px;font-size:9px}
.calendar-slot b{font-weight:600;overflow-wrap:anywhere}
.calendar-slot-b2b{display:grid;width:max-content;gap:2px;margin-top:2px;text-align:center}
.calendar-slot-b2b>div{display:flex;align-items:center;justify-content:flex-start;gap:6px}
.calendar-slot-b2b>span{color:var(--muted);font-size:9px;line-height:1.2;text-align:left}
.calendar-slot-b2b-inline{display:inline-flex;align-items:baseline;gap:9px;white-space:nowrap;overflow-wrap:normal}
.calendar-slot-b2b-name{font-weight:600}
.calendar-slot-b2b-label{color:var(--muted);font-size:.78em;font-weight:400;letter-spacing:.01em}
.calendar-empty{padding:18px 6px;text-align:center;font-size:9px;color:#aaaab2}
.quick-panel{padding:22px;min-height:138px;margin-top:22px;align-items:center}
.quick-copy{min-width:0;flex:1}
.quick-panel h2{font-size:14px;font-weight:700;margin-top:7px}
.quick-panel p{font-size:10px;line-height:1.5;margin-top:7px;max-width:450px}
.quick-meeting-controls{min-width:300px;gap:11px;flex-shrink:0;margin:0}
.quick-meeting-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.quick-meeting-fields .form-field{min-width:0}
.quick-meeting-actions{display:flex;width:100%;align-items:center}
.quick-meeting-actions .button{flex:1;font-size:10px;white-space:nowrap}
.quick-meeting-actions [data-act=quick-meeting-all]:hover{background:var(--lime);border-color:var(--lime);color:#111116}
.modal{width:min(680px,100%);max-height:92vh;scrollbar-width:thin}
.modal .modal-subtitle{line-height:1.6;margin-top:9px;font-size:11px}
.modal .form-grid{margin-top:23px}
.modal-footer{flex-wrap:wrap;border:0;padding-top:4px;gap:9px}
.modal-header h2{font-size:22px;font-weight:700;line-height:1.25}
.modal-close{display:grid;place-items:center;min-width:32px;min-height:32px}
.lineup-modal{width:min(1000px,100%)}
.lineup-modal .lineup-layout{grid-template-columns:minmax(0,1.2fr) minmax(270px,.85fr);gap:16px;margin-top:20px;align-items:start}
.lineup-modal .lineup-layout.roster-is-expanded{grid-template-columns:minmax(0,.9fr) minmax(330px,1.15fr)}
.lineup-modal .lineup-zone-title{font-size:11px;font-weight:700;line-height:15px;letter-spacing:.04em;margin:0!important}
.lineup-modal .lineup-zone{gap:14px!important}
.lineup-modal .lineup-zone+.lineup-zone{margin-top:4px}
.lineup-modal .lineup-dj-panel{margin-top:29px!important;padding:15px;position:relative;border-radius:11px;max-height:none;overflow:visible}
.lineup-modal .lineup-dj-panel.roster-expanded{max-height:none;overflow:visible;padding-bottom:8px}
.lineup-modal .lineup-dj-scroll{display:flow-root;min-width:0}
.lineup-modal .roster-expanded .lineup-dj-scroll{overflow:auto;scrollbar-width:none}
.lineup-modal .roster-expanded .lineup-dj-scroll::-webkit-scrollbar{display:none}
.lineup-modal .lineup-dj-panel>.lineup-zone-title{padding-right:35px}
.lineup-modal .lineup-dj-list{display:grid;gap:8px;margin-top:15px}
.lineup-modal .roster-expanded .lineup-dj-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.lineup-modal .roster-expanded .lineup-dj-option:last-child:nth-child(odd){grid-column:1/-1}
.lineup-modal .roster-expanded .lineup-dj-list.roster-odd .lineup-dj-option.roster-first{grid-column:1/-1}
.lineup-modal .roster-expanded .lineup-dj-list.roster-odd .lineup-dj-option:last-child:nth-child(odd){grid-column:auto}
.lineup-modal .lineup-dj-option{padding:10px;min-height:58px;gap:9px}
.lineup-modal .lineup-dj-option>span:last-child{min-width:0}
.lineup-modal .lineup-dj-option strong{font-size:10px;font-weight:700;white-space:normal;overflow-wrap:anywhere}
.lineup-modal .lineup-dj-option small{font-size:9px;color:var(--muted);line-height:1.4}
.lineup-modal .lineup-dj-option .avatar{width:31px;height:31px;flex-basis:31px}
.lineup-modal .lineup-dj-option.selected{background:#e8f7ee;border-color:#a8dfbf;color:#287752}
.lineup-modal .lineup-assignment{padding:14px;border-radius:11px;cursor:pointer}
.lineup-modal .lineup-assignment-heading strong{font:11px 'DM Mono',monospace}
.lineup-modal .lineup-assignee-row{min-height:29px;margin-top:9px;gap:8px}
.lineup-modal .lineup-assignee-row>span{flex-basis:62px;width:62px;font-size:10px}
.lineup-modal .lineup-b2b-content{display:grid;grid-template-columns:42px minmax(0,1fr);min-width:0;gap:9px 8px;margin-top:9px;align-items:center}
.lineup-modal .lineup-b2b-content .lineup-assignee-row{position:relative;margin-top:0}
.lineup-modal .lineup-b2b-content .lineup-assignee-row>span{flex:0 0 30px;width:30px}
.lineup-modal .lineup-b2b-branch-label{position:relative;z-index:1;grid-row:1 / span 2;align-self:stretch;display:flex;align-items:center;justify-self:start;color:var(--muted);font-size:10px;font-weight:400;line-height:1.5}
.lineup-modal .lineup-b2b-branch-label::after,
.lineup-modal .lineup-b2b-content .lineup-b2b-assignee-row::before{display:none}
body .lineup-modal .lineup-assignment.b2b-incomplete{border-color:var(--red)!important;box-shadow:0 0 0 1px var(--red)!important}
.lineup-modal .lineup-zone-actions{display:grid;gap:8px;margin-top:10px}
.lineup-modal .lineup-zone-actions-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lineup-modal .lineup-zone-actions .button{min-width:0;font-size:10px}
.lineup-modal .assigned-name{font-size:10px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.lineup-modal .choose-assignee{font-size:9px;min-height:29px}
.lineup-modal .clear-assignee{padding:0;flex:0 0 25px;width:25px;height:25px;min-height:25px}
.lineup-modal .lineup-panel-actions{display:grid;gap:8px;margin-top:12px}
.lineup-modal .lineup-panel-actions .button{font-size:10px}
.lineup-modal{scrollbar-width:none}
.lineup-modal::-webkit-scrollbar{display:none}
.lineup-modal .roster-expanded .lineup-dj-scroll{max-height:none!important;overflow:visible}
.event-form-modal,.task-form-modal{scrollbar-width:none}
.event-form-modal::-webkit-scrollbar,.task-form-modal::-webkit-scrollbar{display:none}
.avatar-crop-hint{margin:10px 0 14px;line-height:1.5}
.avatar-crop-frame{width:min(320px,70vw);aspect-ratio:1;margin:0 auto;overflow:hidden;border:3px solid var(--line);border-radius:50%;touch-action:none;background:#16161b}
.avatar-crop-frame canvas{display:block;width:100%;height:100%;cursor:grab}
.avatar-crop-frame canvas:active{cursor:grabbing}
.avatar-zoom-control{display:flex;align-items:center;gap:14px;max-width:320px;margin:18px auto 8px;font-size:11px}
.avatar-zoom-control input{flex:1;accent-color:var(--lime)}
.lineup-modal .lineup-step{align-items:center;padding:13px 14px;line-height:1.5}
.lineup-step-zone{display:flex;align-items:center;gap:9px}
.lineup-step-zone>span{font:10px 'DM Mono',monospace;color:var(--muted)}
.slot-zone-filter>strong{font-size:11px;font-weight:700;color:var(--ink)}
.slot-zone-filter .zone-switch{margin-top:2px}
.slot-zone-filter{gap:11px;padding:14px}
.slot-zone-filter .zone-choice{font-size:10px;padding:8px 12px;font-weight:600}
.special-slot-times{display:flex;align-items:end;gap:9px;margin-bottom:9px}
.special-slot-times>label{display:grid;gap:5px;min-width:0;flex:1;color:var(--muted);font-size:9px;font-weight:500}
.special-slot-times input{width:100%;padding:8px 9px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:7px;font:11px 'DM Mono',monospace}
.special-slot-times>span{padding-bottom:9px;color:var(--muted)}
.lineup-hint{font-size:9px;margin-top:11px;line-height:1.5;color:var(--muted)}
.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
.check-row{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:9px;font-size:10px;color:var(--ink);cursor:pointer}
.check-row>span:not(.avatar){flex:1;min-width:0;overflow-wrap:anywhere}
.check-row input{width:19px;height:19px;flex-shrink:0;margin-left:auto;accent-color:#86a72f}
.check-row:has(input:checked){background:var(--lime-soft);border-color:var(--hover-outline)}
.meeting-recipient-grid .check-row{position:relative}
.meeting-recipient-grid .recipient-name{font-weight:700}
/* Keep recipient selection accessible without a visible square checkbox. */
.meeting-recipient-grid input{
  position:absolute;
  width:1px;
  height:1px;
  margin:0;
  padding:0;
  border:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.meeting-recipient-grid .check-row:has(input:focus-visible){
  outline:2px solid var(--hover-outline);
  outline-offset:3px;
}
.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:22px 0}
.filters input,.filters select{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:11px;min-width:0}
.filters input{flex:1}
.artist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:20px}
.artist-card{display:flex;gap:11px;align-items:flex-start;min-width:0;padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:11px}
.artist-card-body{flex:1;min-width:0}
.artist-card strong{font-size:11px;font-weight:700}
.artist-card span:not(.avatar){display:block;margin-top:5px;font-size:9px;color:var(--muted);line-height:1.5}
.artist-card .avatar{display:grid;margin:0;font-size:10px}
.frequency-label{display:block;text-align:left;background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:6px 8px;font-size:9px;line-height:1.5;margin-top:10px}
.frequency-label:hover{border-color:var(--hover-outline);color:var(--ink)}
.task-list{display:grid;gap:9px;margin-top:18px}
.task-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.task-card>div{min-width:0}
.task-card h3{font-size:11px;line-height:1.4}
.task-card p{margin-top:7px;color:var(--muted);font-size:10px;line-height:1.5;white-space:pre-wrap}
.task-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font:9px 'DM Mono',monospace}
.task-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.grid-2 .task-card{grid-template-columns:minmax(0,1fr)}
.assignment-list{display:grid;gap:7px;margin-top:12px}
.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:10px}
.meeting-responses .person-link strong{font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:10px;font-weight:700}
.meeting-card{
  padding:0;
  min-width:0;
  border-radius:10px;
  overflow:hidden;
  background:var(--surface);
}
.meeting-card>summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:16px;
  padding:16px;
  cursor:pointer;
  list-style:none;
}
.meeting-card>summary::-webkit-details-marker{display:none}
.meeting-card-heading{display:grid;gap:6px;min-width:0}
.meeting-card-heading h3{
  margin:0;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.meeting-card-heading p{
  margin:0;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.meeting-card-status{justify-self:end}
.meeting-card-body{position:relative;padding:14px 16px 16px}
.meeting-card-body::before{
  content:'';
  position:absolute;
  top:0;
  left:16px;
  right:16px;
  height:1px;
  background:var(--line);
}
.meeting-card .meeting-responses{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0;
}
.meeting-card .assignment-row{min-width:0;gap:10px}
.meeting-card .person-link{flex:1;min-width:0}
.meeting-card .person-link strong{min-width:0;overflow-wrap:anywhere}
.meeting-card .response-mark{flex-shrink:0}
.meeting-card .meeting-response-actions{margin:0 0 14px;padding:0}
.meeting-card .meeting-response-actions,
.meeting-modal .meeting-response-actions {
  width: 100%;
  gap: var(--space-xs);
  margin: var(--space-sm) 0 0;
}
.meeting-card .meeting-response-actions .button,
.meeting-modal .meeting-response-actions .button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 10px;
}
.meeting-card .meeting-response-actions {
  width: calc((100% - 16px) / 3);
}
.dj-slot-detail .slot-detail-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 11px 14px;
}
.dj-slot-detail .details-body {
  padding-top: 14px;
}
.dj-slot-detail {
  width: 100%;
}
.dj-slot-detail .slot-detail-summary {
  min-height: 46px;
}
.dj-slot-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding: 0 14px 14px;
}
.slot-summary-b2b{display:grid;gap:10px;min-width:0;margin-left:auto;text-align:right}
.slot-summary-b2b>div{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.event-detail-modal .slot-summary-b2b strong{min-width:0;color:var(--ink);font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:var(--text-body);font-weight:700;letter-spacing:-.02em;line-height:1.5;overflow-wrap:anywhere;text-align:right}
.slot-summary-b2b .response-mark{flex-shrink:0}
.event-detail-modal .slot-summary-time{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.event-detail-modal .slot-summary-time>strong{white-space:nowrap}
.event-detail-modal .slot-summary-time>.status{flex:none}
.event-detail-modal .b2b-static-slot .slot-detail-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:46px;padding:11px 14px}
.event-detail-modal .b2b-static-slot .slot-summary-time{flex:0 1 auto;min-width:0}
.event-detail-modal .b2b-static-slot .slot-summary-b2b{margin-left:auto}
.event-detail-modal .b2b-static-slot .details-body{padding:9px 14px 12px}
.event-detail-modal .b2b-static-slot .slot-management-actions{margin-top:0;padding-top:var(--space-sm)}
@media(max-width:380px){
  .event-detail-modal .slot-detail-summary:has(.slot-summary-b2b){display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .event-detail-modal .slot-detail-summary:has(.slot-summary-b2b) .slot-summary-time{flex-wrap:nowrap}
  .event-detail-modal .slot-detail-summary .slot-summary-b2b{max-width:100%;justify-self:end}
}
@media (max-width: 760px) {
  .meeting-card .meeting-response-actions {
    width: 100%;
  }
  .dj-slot-detail { width: 100%; }
}
.meeting-card-actions{display:flex;justify-content:flex-start;margin-top:14px}
.meeting-card-actions .button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 10px;
}
.meeting-card-actions .button-danger {
  min-height: 38px !important;
}
.dj-event-slot .calendar-slot,
.dj-event-slot .response-mark {
  transition: none;
}
.dj-event-slot .calendar-slot,
.dj-event-slot .calendar-slot:hover,
.dj-event-slot:hover {
  border-color: var(--line);
  box-shadow: none;
}
@media(max-width:760px){
  .meeting-card .meeting-responses{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .meeting-card .meeting-responses{grid-template-columns:1fr}
}
.assignment-row>div{min-width:0}
.assignment-row small{display:block;margin-top:5px;font-size:9px;color:var(--muted)}
.assignment-row>span:first-child{min-width:0;overflow-wrap:anywhere}
.profile-head{display:flex;align-items:flex-start;gap:15px}
.profile-head>.avatar{width:56px;height:56px;flex-basis:56px;font-size:16px}
.profile-head>div{min-width:0}
.profile-head h2{font-size:21px;font-weight:700;letter-spacing:-.035em}
.profile-head p{font-size:11px;margin-top:8px;color:var(--muted);line-height:1.5;white-space:pre-wrap}
.detail-list{display:grid;gap:0;margin-top:16px}
.detail-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:10px}
.detail-row:last-child{border:0}
.detail-row span{color:var(--muted)}
.detail-row a{min-width:0;overflow-wrap:anywhere;text-align:right}
.performance-list,.slot-detail-list,.notice-list{display:grid;gap:10px;margin-top:18px}
.performance-card,.slot-detail,.notice-group{border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0;overflow:hidden}
.performance-card,.slot-detail,.notice-group,.rating-details{transition:border-color .15s,box-shadow .15s}
.performance-card:hover,.slot-detail:hover,.notice-group:hover,.rating-details:hover{border-color:var(--hover-outline);box-shadow:var(--hover-glow)}
.performance-card{padding:12px}
.performance-card>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;cursor:pointer;font-size:10px}
.performance-card>summary strong{font-size:11px}
.performance-card>summary span{color:var(--muted);font-size:9px}
.slot-detail>summary,.notice-group>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px;cursor:pointer;list-style:none}
.slot-detail>summary::-webkit-details-marker,.notice-group>summary::-webkit-details-marker{display:none}
.slot-detail>summary::after,.notice-group>summary::after{content:'⌄';color:var(--muted)}
.slot-detail[open]>summary::after,.notice-group[open]>summary::after{content:'⌃'}
.slot-detail>summary>div{flex:1;min-width:0}
.slot-detail>summary strong{font:11px 'DM Mono',monospace}
.slot-detail>summary small{display:block;margin-top:6px;color:var(--ink);font-size:11px}
.slot-detail>summary strong span{margin-left:9px}
.details-body{padding:0 14px 14px;font-size:11px;line-height:1.5}
.details-body p{margin-top:10px;overflow-wrap:anywhere;white-space:pre-wrap}
.performance-card .details-body{padding:12px 0 0}
.rating-summary{display:grid;gap:7px;margin:18px 0;font-size:11px}
.rating-summary small{font-size:10px;color:var(--muted)}
.rating-details{border:0}
.rating-details>summary{list-style:none}
.rating-details>summary::-webkit-details-marker{display:none}
.rating-toggle{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);cursor:pointer;color:var(--ink);font-size:10px}
.rating-toggle strong{font-size:11px}
.rating-details-body{display:grid;gap:8px;margin-top:2px}
.rating-criteria{display:grid;grid-template-columns:1fr;gap:0}
.rating-criteria div{display:flex;justify-content:space-between;gap:10px;padding-bottom:4px;border-bottom:1px solid var(--line);font-size:10px}
.rating-criteria div:last-child{border-bottom:0}
.rating-criteria span{color:var(--muted)}
.rating-criteria strong{font-weight:700}
.rating-details-body blockquote{margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted-dark);font-size:10px;font-style:italic;white-space:pre-wrap}
.comment-box{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fafafd;font-size:11px;line-height:1.55}
.comment-box p{margin-top:7px;white-space:pre-wrap}
.comment-box small{display:block;margin-top:8px;font-size:9px;color:var(--muted)}
.comment-box .button{margin-top:10px}
.slot-history{display:grid;gap:8px;margin-top:16px}
.failure-card,.reserve-card{padding:9px 11px;border:1px solid var(--line);border-radius:8px;font-size:10px;color:var(--muted)}
.failure-card{color:#b56976;border-color:#efbdc2;background:#fff2f3}
.reserve-card{background:transparent}
.slot-summary-time strong{font:12px 'DM Mono',monospace;letter-spacing:.01em}
.slot-summary-dj{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.slot-summary-dj strong{font-size:11px;font-weight:700;overflow-wrap:anywhere;text-align:right}
.slot-summary-dj .response-mark{flex:0 0 30px}
.slot-detail>summary{min-height:72px}
.slot-detail[open]>summary{border-bottom:1px solid var(--line)}
.slot-detail .details-body{padding-top:14px}
.slot-history-action{display:flex;justify-content:flex-end;margin-top:8px}
.notice-group>summary{font-size:11px}
.notice-group>summary strong{flex:1}
.notice-group>summary span{font-size:10px;color:var(--muted)}
.notice-item{padding:12px 0;border-bottom:1px solid var(--line)}
.notice-item strong{font-size:11px}
.notice-item p{margin-top:7px;color:var(--muted)}
.notice-item small{display:block;margin-top:7px;color:var(--muted);font-size:9px}
.notice-item:last-of-type{border:0}
.lineup-final{padding:15px;border:1px solid var(--line);border-radius:9px;display:grid;gap:13px;margin-top:16px}
.lineup-final>div{display:grid;grid-template-columns:75px 105px minmax(0,1fr);gap:18px;font-size:10px}
.lineup-final b{overflow-wrap:anywhere}
.discard-prompt,.error-banner{padding:14px;border:1px solid var(--red);border-radius:9px;margin-bottom:18px;background:var(--surface);font-size:11px}
.discard-prompt p{color:var(--muted);margin:8px 0 12px}
.toast{display:block;font-size:11px}
.toast-error{border-color:var(--red)}
.danger-text{color:var(--red)}
body:has(.modal-backdrop:not(.hidden)){overflow:hidden}
body.theme-dark .auth-role-tabs{background:#111116}
body.theme-dark .auth-role-tab{color:#a1a1aa}
body.theme-dark .auth-role-tab.active{color:#f3f3f5;background:#303039}
body.theme-dark .stack-form label{color:#c8c8ce}
body.theme-dark .stack-form input{background:#202027;color:#f3f3f5;border-color:#383841}
body.theme-dark .button-secondary,body.theme-dark .button-ghost{background:#292930;color:#dedee3;border-color:#3a3a44}
body.theme-dark .button-secondary:hover,body.theme-dark .button-ghost:hover{color:#fff;background:#34343d;border-color:var(--hover-outline);box-shadow:var(--hover-glow)}
body.theme-dark .button-primary{color:#111116;background:var(--lime)}
body.theme-dark .button-primary:hover{background:var(--lime-soft);border-color:var(--hover-outline);box-shadow:var(--hover-glow)}
body.theme-dark .button-danger{color:#f2b7bc;background:#382326;border-color:#81474e}
body.theme-dark .button-danger:hover{color:#fff;background:#493039;border-color:var(--hover-outline);box-shadow:var(--hover-glow)}
body.theme-dark .status-neutral{color:#bdbdc8;background:#2d2d39}
body.theme-dark .status-ready{color:#a8ebc2;background:#20362a}
body.theme-dark .status-declined{color:#f2b7bc;background:#382326}
body.theme-dark .status-assigned{color:#c9bbf6;background:#302540}
body.theme-dark .stats .stat{background:var(--surface);border-color:var(--line)}
body.theme-dark .month-headings,body.theme-dark .month-padding,body.theme-dark .calendar-slot,body.theme-dark .comment-box{background:#202027}
body.theme-dark .month-headings strong{color:#a1a1aa}
body.theme-dark .calendar-event{background:#202027}
body.theme-dark .month-day .calendar-empty{color:#74747f}
body.theme-dark .special-slot-times input{background:#292930;border-color:#3a3a44;color:#dedee3}
body.theme-dark .slot-zone-filter>strong{color:#eeeef1}
body.theme-dark .lineup-step-zone>span{color:#b7b7c0}
body.theme-dark .lineup-modal .lineup-dj-option.selected{background:#20362a;border-color:#376a4c;color:#a8ebc2}
body.theme-dark .check-row:has(input:checked){background:#33333d;border-color:var(--hover-outline)}
body.theme-dark .failure-card{color:#f2b7bc;background:#382326;border-color:#81474e}
body.theme-dark .quick-meeting-actions [data-act=quick-meeting-all]:hover{color:#111116;background:var(--lime);border-color:var(--lime)}
@media(max-width:1100px){.hero{align-items:flex-start;flex-direction:column;gap:18px}.hero-actions{justify-content:flex-start;max-width:none}.artist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.grid-2{grid-template-columns:1fr}.quick-panel{flex-wrap:wrap}.quick-meeting-controls{width:100%}.lineup-modal .lineup-layout.roster-is-expanded{grid-template-columns:minmax(0,1fr) minmax(260px,1fr)}}
@media(max-width:760px){
 .app-shell{display:block}.sidebar{width:100%;min-height:auto;padding:16px}.venue-card{margin-top:20px}.sidebar-bottom{display:flex;flex-direction:column;margin:20px 0 0;padding-top:16px;border-top:1px solid #25252c}.main-nav{flex-direction:row;overflow:auto}.nav-item{flex-shrink:0;width:auto;white-space:nowrap}.nav-label{display:none}.venue-schedule{margin-bottom:15px}.topbar{padding:0 17px;height:60px}.topbar>div:first-child{flex-wrap:wrap;gap:4px}.breadcrumb{font-size:9px}.top-actions{gap:8px}.page-body{padding:28px 16px 40px}.hero h1{font-size:28px}.hero-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hero-actions .button{padding:9px;font-size:10px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:24px}.stat{min-height:105px;padding:14px}.stat strong{font-size:26px;margin-top:14px}.panel{padding:16px}.artist-grid{grid-template-columns:1fr}.filters input,.filters select{width:100%;flex-basis:100%}.task-card{grid-template-columns:1fr}.event-row{grid-template-columns:38px minmax(0,1fr)}.event-row>.button{grid-column:2;justify-self:start}.attention-row{flex-wrap:wrap}.attention-row>div{flex-basis:100%}.attention-row .status{margin-right:auto}.calendar-toolbar .button{padding:8px 10px}.month-headings{display:none}.month-week{display:block;min-height:0}.month-day,.month-padding{border-right:0;border-bottom:1px solid var(--line)}.month-padding{display:none}.month-day .day-head{padding:11px 14px}.mobile-weekday{display:block;color:var(--muted);font-size:10px}.month-day .day-events{padding:10px}.calendar-empty{padding:12px 6px}.calendar-slot{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.calendar-slot>.status{grid-column:1/-1}.quick-panel{flex-direction:column;align-items:stretch;gap:18px;padding:18px}.quick-meeting-controls{min-width:0}.quick-meeting-fields{display:grid;grid-template-columns:1fr 1fr}.quick-meeting-actions{display:flex;flex-direction:row}.quick-meeting-actions .button{min-width:0;white-space:normal}.modal{padding:18px}.form-grid{grid-template-columns:1fr 1fr}.form-field.full{grid-column:1/-1}.lineup-modal .lineup-layout,.lineup-modal .lineup-layout.roster-is-expanded{grid-template-columns:1fr}.lineup-modal .lineup-dj-panel{margin-top:0!important}.lineup-modal .lineup-dj-list{grid-template-columns:repeat(2,minmax(0,1fr))}.lineup-modal .lineup-dj-option{gap:6px;padding:9px}.lineup-modal .lineup-dj-option .avatar{width:27px;height:27px;flex-basis:27px;font-size:9px}.lineup-modal .lineup-dj-option strong{font-size:9px}.lineup-modal .lineup-dj-option small{font-size:8px}.lineup-modal .lineup-step{flex-wrap:wrap;gap:8px}.checkbox-grid{grid-template-columns:1fr}.profile-head{flex-wrap:wrap}.detail-row{gap:10px}.lineup-final>div{grid-template-columns:60px minmax(0,1fr);gap:8px}.lineup-final b{grid-column:2}.slot-detail>summary{flex-wrap:wrap}.slot-detail>summary .status{white-space:normal}.meeting-response-actions{width:100%}.modal-footer .button{flex:1}.panel-header{flex-wrap:wrap}.event-row .button,.choose-assignee{min-height:32px}
}

/* Small functional cues; retain the light body type and established spacing. */
.hero h1 { font-weight:700; }
.panel h2, .modal-header h2, .auth-heading h1 { font-weight:800; }
.ui-pictogram { display:inline-block; flex:0 0 auto; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.button .ui-pictogram { width:14px; height:14px; }
.hero .eyebrow { gap:8px; align-items:center; text-transform:uppercase; }
.hero .eyebrow .ui-pictogram { width:13px; height:13px; opacity:.8; }
.stat-label { display:flex; justify-content:space-between; align-items:center; gap:10px; color:var(--muted); }
.stat-label .ui-pictogram { width:16px; height:16px; opacity:.75; }
.quick-spark .ui-pictogram { width:19px; height:19px; }
.task-deadline { display:inline-flex; align-items:center; gap:6px; }
.task-deadline .ui-pictogram { width:12px; height:12px; }
.task-form-grid .field-label { color:#777781; font-size:10px; font-weight:600; }
.task-form-grid .deadline-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:13px; align-items:end; }
.task-form-grid .deadline-mode-field,
.task-form-grid .deadline-date-field,
.task-form-grid .deadline-mode-field .field-label { font-size:10px; line-height:16px; }
.task-form-grid .task-options-row { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:13px; }
.task-form-grid .task-options-row .form-field { min-width:0; }
.task-form-grid input, .task-form-grid select { height:40px; min-height:40px; padding:9px 12px; box-sizing:border-box; font-weight:400; border-radius:10px; }
body .task-form-grid .form-field select {
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  padding-right:28px;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 15px) 50%,calc(100% - 11px) 50%;
  background-size:4px 4px;
  background-repeat:no-repeat;
}
.task-form-grid .task-options-row select { text-overflow:ellipsis; }
.task-form-grid .task-options-row label { line-height:16px; }
.discard-prompt { margin:20px 0 0; padding:14px; }
.discard-prompt>strong { font-size:12px; }
.discard-prompt .inline-actions { margin-top:12px; }
.discard-prompt .button { font-size:10px; }
.modal:focus { outline:none; }
.modal.discard-confirming .modal-footer,
.modal.discard-confirming .modal-close,
.modal.discard-confirming button:not(#discardPrompt button) { display:none; }
.modal.discard-confirming .discard-prompt { margin:16px 0 0; border-color:var(--red); }
.modal.discard-confirming #modalForm > :not(#discardPrompt),
.modal.discard-confirming .modal-header { pointer-events:none; }
body.theme-dark .task-form-grid .field-label { color:#c8c8ce; }
.modal-footer .button-danger .ui-pictogram { opacity:.85; }
@media (max-width:760px) {
  .hero-actions .button { min-height:40px; }
  .task-form-grid .deadline-controls { grid-template-columns:1fr; }
  .task-form-grid .task-options-row { grid-template-columns:1fr; }
  .discard-prompt .inline-actions { align-items:stretch; }
  .discard-prompt .inline-actions .button { flex:1; }
  .quick-meeting-actions .button { flex-wrap:wrap; }
}

/* Event management is visible above slots, including long lineups. */
.event-management-actions { margin-top:16px; gap:9px; }
.event-management-actions .button { min-height:38px; }
.event-lock-note { margin-top:12px; font-size:10px; line-height:1.5; }
.calendar-event[data-calendar-event] { cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.calendar-event[data-calendar-event]:hover { border-color:var(--hover-outline); box-shadow:var(--hover-glow); }
.calendar-event[data-calendar-event]:focus-visible { outline:2px solid var(--hover-outline); outline-offset:2px; }
.calendar-event .calendar-event-title { display:block; font-size:10px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
.calendar-event-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--space-xs);margin-top:var(--space-sm)}
body .calendar-event-actions .button-secondary{color:var(--muted);background:var(--surface);border-color:var(--line)}
.lineup-assignment:hover,
.lineup-dj-option:hover,
.slot-zone-filter:hover,
.check-row:hover,
.meeting-dj-option:hover {
  border-color:var(--hover-outline);
  box-shadow:var(--hover-glow);
}
@media (max-width:760px) {
.event-management-actions .button { flex:1; }
}

/* Event detail view: compact, aligned slot rows like the original Bazzar layout. */
.event-detail-modal {
  width: min(760px, calc(100vw - 28px));
  padding: 24px 26px 18px;
}
.event-detail-modal .modal-header {
  align-items:flex-start;
  gap:24px;
  padding-bottom:0;
}
.event-detail-modal .event-modal-heading { min-width:0; flex:1; }
.event-detail-modal .event-date-line {
  color:#a4a4ae;
  font:10px 'DM Mono',monospace;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.event-detail-modal .event-title-line {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.event-detail-modal .event-modal-heading h2 {
  margin:0;
  font-size:24px;
  font-weight:700;
  line-height:1.08;
  letter-spacing:-.055em;
}
.event-detail-modal .event-title-status {
  flex:0 0 auto;
}
.event-detail-modal .event-title-status .status {
  font-size:8px;
  padding:4px 7px;
}
.event-detail-modal .event-modal-heading p {
  margin:10px 0 0;
  color:#a4a4ae;
  font-size:11px;
}
.event-detail-modal>.modal-footer {
  justify-content:flex-end;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #34343e;
}
.event-detail-modal>.modal-footer .button {
  min-height:36px;
  padding:8px 13px;
  font-size:10px;
}
.event-detail-modal>.modal-footer .button[data-act="close"] {
  min-width:86px;
}
.event-detail-modal>.modal-footer .button[data-act="edit-event"] {
  order:1;
}
.event-detail-modal>.modal-footer .button[data-act="cancel-event"] {
  order:0;
}
.event-detail-modal>.modal-footer .button[data-act="finalize-event"],
.event-detail-modal>.modal-footer .button[data-act="event-traffic"] {
  order:2;
}
.event-detail-modal>.modal-footer .button[data-act="close"] {
  order:3;
}
.event-detail-modal>.modal-footer .button[data-act="cancel-event"] {
  color:#c7c7ce;
  background:#292930;
  border-color:#454550;
}
.event-detail-modal>.modal-footer .button[data-act="cancel-event"]:hover {
  color:#f0f0f3;
  background:#34343d;
  border-color:var(--hover-outline);
  box-shadow:var(--hover-glow);
}
.event-detail-modal .event-lock-note {
  margin:10px 0 0;
  font-size:9px;
}
.event-detail-modal .slot-detail-list {
  gap:6px;
  margin-top:9px;
}
.event-detail-modal .event-zone {
  margin-top:18px;
}
.event-detail-modal .event-zone>h3 {
  margin:0 0 7px;
  color:#9b9ba5;
  font-size:10px;
  font-weight:500;
  letter-spacing:.08em;
}
.event-detail-modal .slot-detail {
  border-color:#363640;
  border-radius:9px;
  background:var(--slot-surface);
}
.event-detail-modal .slot-detail>summary {
  min-height:46px;
  padding:11px 14px;
  align-items:center;
}
.event-detail-modal .slot-detail>summary::after {
  display:none;
}
.event-detail-modal .slot-summary-time strong {
  color:#f0f0f3;
  font:10px 'DM Mono',monospace;
}
.event-detail-modal .slot-summary-dj {
  margin-left:auto;
  padding-left:10px;
  justify-content:flex-end;
}
.event-detail-modal .slot-summary-dj strong {
  color:#f0f0f3;
  font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:-.02em;
}
.event-detail-modal .response-mark {
  width:22px;
  height:22px;
  flex-basis:22px;
  color:#b7b7c0;
  background:#3a3a47;
  font-size:12px;
}
.event-detail-modal .response-mark.confirmed,
.event-detail-modal .response-mark.performed {
  color:#fff;
  background:#3da879;
}
.event-detail-modal .response-mark.declined {
  color:#fff;
  background:#d76873;
}
.event-detail-modal .response-mark.pending,
.event-detail-modal .response-mark.assigned,
.event-detail-modal .response-mark.empty {
  color:#c7c7ce;
  background:#3a3a47;
}
.event-detail-modal .slot-detail[open] {
  border-color:var(--hover-outline);
  box-shadow:var(--hover-glow);
}
.event-detail-modal .slot-detail:hover,
.event-detail-modal .rating-details:hover {
  border-color:var(--hover-outline);
  box-shadow:var(--hover-glow);
}
.event-detail-modal .slot-detail[open]>summary {
  position:relative;
  border-bottom:0;
}
.event-detail-modal .details-body {
  padding:9px 14px 12px;
}
.event-detail-modal .details-body>.muted,
.event-detail-modal .details-body>.person-link,
.event-detail-modal .details-body>.inline-actions {
  display:none;
}
.event-detail-modal .slot-history {
  width:100%;
  max-width:660px;
  box-sizing:border-box;
  margin-top:0;
  gap:6px;
}
.event-detail-modal .slot-history > .failure-card,
.event-detail-modal .slot-history > .reserve-card {
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.event-detail-modal .rating-summary {
  width:100%;
  max-width:660px;
  box-sizing:border-box;
  margin:16px 0 0;
  gap:6px;
}
.event-detail-modal .rating-details {
  width:100%;
  min-height:36px;
  box-sizing:border-box;
  overflow:hidden;
  border:1px solid #555560;
  border-radius:8px;
  background:#1c1c22;
}
.event-detail-modal .rating-toggle {
  display:flex;
  width:100%;
  min-height:34px;
  box-sizing:border-box;
  justify-content:flex-start;
  padding:7px 11px;
  border:0;
  border-radius:0;
  background:#1c1c22;
  color:#b8b8c1;
  font-size:10px;
  line-height:1.5;
}
.event-detail-modal .rating-toggle strong {
  color:#f0f0f3;
  font-size:10px;
}
.event-detail-modal .rating-details-body {
  position:relative;
  margin-top:0;
  padding:0 14px 12px;
  border-top:0;
}
.event-detail-modal .rating-criteria {
  grid-template-columns:1fr;
}
.event-detail-modal .rating-criteria div {
  min-height:27px;
  box-sizing:border-box;
  align-items:center;
  padding:5px 0;
  border-bottom:1px solid #383842;
  font-size:10px;
}
.event-detail-modal .rating-criteria div:last-child {
  border-bottom:0;
}
.event-detail-modal .rating-details-body blockquote {
  border-color:#555560;
  border-radius:8px;
  background:#1c1c22;
  color:#b8b8c1;
  font-size:10px;
}
.event-detail-modal .rating-summary > small {
  display:block;
  padding:0 2px;
  font-size:10px;
}
.event-detail-modal .failure-card,
.event-detail-modal .reserve-card {
  max-width:660px;
  min-height:36px;
  display:flex;
  align-items:center;
  padding:7px 11px;
  border-color:#555560;
  color:#b8b8c1;
  background:transparent;
  font-size:10px;
  gap:4px;
}
.event-detail-modal .failure-card {
  color:#efb7bd;
  border-color:#8d4d56;
  background:#44262c;
}
.event-detail-modal .failure-card b,
.event-detail-modal .reserve-card b {
  color:inherit;
  font-weight:700;
}
.event-detail-modal .slot-history-action {
  justify-content:flex-start;
  margin-top:4px;
}
.event-detail-modal .slot-history-action .button {
  min-height:32px;
  font-size:10px;
}
body.theme-dark .event-detail-modal .slot-detail {
  background:var(--slot-surface);
  border-color:#363640;
}
.replace-form-modal .form-field select {
  appearance:none;
  -webkit-appearance:none;
  background-image:none;
  cursor:pointer;
  padding-right:12px;
}
@media(max-width:760px) {
  .event-detail-modal {
    width:calc(100vw - 20px);
    padding:24px 18px 18px;
  }
  .event-detail-modal .event-title-line {
    align-items:flex-start;
    gap:9px;
  }
  .event-detail-modal .event-modal-heading h2 {
    font-size:21px;
  }
  .event-detail-modal .event-modal-heading p {
    font-size:11px;
  }
  .event-detail-modal .slot-detail>summary {
    min-height:48px;
    padding:11px 12px;
  }
  .event-detail-modal .slot-summary-time strong,
  .event-detail-modal .slot-summary-dj strong {
    font-size:10px;
  }
  .event-detail-modal .response-mark {
    width:23px;
    height:23px;
    flex-basis:23px;
  }
  .event-detail-modal .details-body {
    padding:10px 12px 13px;
  }
  .event-detail-modal>.modal-footer .button {
    flex:1;
    min-width:0;
    padding:10px 9px;
    font-size:10px;
  }
}

@media(max-width:760px) {
  .calendar-toolbar {
    grid-template-columns:minmax(0,1fr) auto;
    row-gap:10px;
  }
  .calendar-toolbar>.month-title {
    grid-column:1 / -1;
    grid-row:1;
  }
  .calendar-toolbar>.inline-actions {
    grid-column:1;
    grid-row:2;
  }
  .calendar-toolbar>.muted {
    grid-column:2;
    grid-row:2;
  }
}

/* Use the calendar card's subtle contour for every interactive highlight. */
.event-row[data-calendar-event] {
  grid-template-columns:44px minmax(0,1fr);
  cursor:pointer;
}
.event-row .event-date small { margin-top:6px; }
.lineup-modal .lineup-assignment { position:relative; }
.lineup-modal,
.lineup-modal .lineup-dj-panel { overflow-anchor:none; }
.lineup-modal .special-slot { padding-top:14px; }
.lineup-modal .special-slot-remove {
  position:absolute;
  top:10px;
  right:10px;
  width:29px;
  height:29px;
  min-height:29px;
  padding:0;
  font-size:18px;
  color:#fff;
  background:transparent;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
}
.lineup-modal .special-slot-remove:hover {
  color:#fff;
  background:transparent;
  box-shadow:none;
  transform:scale(1.14);
  font-weight:800;
}
.lineup-modal .special-slot-times { justify-content:flex-start; padding-right:30px; }
.lineup-modal .special-slot-times>label { flex:0 1 120px;max-width:120px; }
.lineup-modal .lineup-assignment.active,
.lineup-modal .lineup-assignment.filled,
.lineup-modal .lineup-dj-option.selected,
.zone-switch button.active,
.lineup-modal .choose-assignee.selected,
.check-row:has(input:checked) {
  color:var(--ink);
  background:var(--lime-soft);
  border-color:var(--hover-outline);
}
/* Slot cards stay neutral until the user explicitly selects one. */
.lineup-modal .lineup-assignment.filled:not(.active) {
  color:var(--ink);
  background:var(--slot-surface);
  border-color:var(--line);
  box-shadow:none;
}
.lineup-modal .lineup-assignment.active {
  color:var(--ink);
  background:var(--surface);
  border-color:#fff;
  box-shadow:none;
}
.lineup-modal .lineup-assignment:focus {
  outline:none;
}
.lineup-modal .clear-assignee {
  color:#fff;
  background:transparent;
  box-shadow:none;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
}
.lineup-modal .clear-assignee:hover {
  color:#fff;
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  transform:scale(1.16);
  font-weight:800;
}
body.theme-dark .lineup-modal .lineup-assignment.active,
body.theme-dark .lineup-modal .lineup-assignment.filled,
body.theme-dark .lineup-modal .lineup-dj-option.selected,
body.theme-dark .zone-switch button.active,
body.theme-dark .lineup-modal .choose-assignee.selected,
body.theme-dark .check-row:has(input:checked) {
  color:var(--ink);
  background:#303039;
  border-color:var(--hover-outline);
}
body.theme-dark .lineup-modal .lineup-assignment.filled:not(.active),
body.theme-dark .lineup-modal .lineup-assignment.active {
  border-color:#fff;
}
body.theme-dark .lineup-modal .lineup-assignment.filled:not(.active) {
  background:var(--slot-surface);
  border-color:var(--line);
}
body.theme-dark .lineup-modal .lineup-assignment.active {
  background:#303039;
}
body .lineup-modal .lineup-dj-option .avatar.lime {
  color:#594c86;
  background:#dfd6ff;
}
.brand-mark { color:#211831;background:var(--purple); }
.status { border:1px solid currentColor;font-weight:700; }
body .status-ready,
body .response-mark:is(.can,.confirmed,.performed),
body .button.can-button {
  color:var(--positive-text);
  background:var(--positive-bg);
  border:1px solid currentColor;
}
body .status-declined,
body .response-mark:is(.cannot,.declined),
body .button.button-danger,
body .button.cannot-button {
  color:var(--negative-text);
  background:var(--negative-bg);
  border:1px solid currentColor;
}
body .status-empty { color:var(--orange-text);background:var(--orange-bg); }
body .status-assembled { color:var(--yellow-text);background:var(--yellow-bg); }
body .status-late { color:var(--yellow-text);background:var(--yellow-bg); }
body .status-assigned { color:var(--purple);background:rgba(168,139,255,.13); }
body.theme-dark .status-ready { color:var(--positive-text);background:var(--positive-bg); }
body.theme-dark .status-declined { color:var(--negative-text);background:var(--negative-bg); }
body.theme-dark .status-empty { color:var(--orange-text);background:var(--orange-bg); }
body.theme-dark .status-assembled { color:var(--yellow-text);background:var(--yellow-bg); }
body.theme-dark .status-assigned { color:var(--purple);background:rgba(168,139,255,.13); }
body .button:is(.can-button,.cannot-button,.button-danger) { font-weight:700; }
body .response-mark>.ui-pictogram {
  display:block;
  width:12px;
  height:12px;
  stroke-width:2;
}
body .event-detail-modal .response-mark:is(.can,.confirmed,.performed) {
  color:var(--positive-text);
  background:var(--positive-bg);
  border:1px solid currentColor;
}
body .event-detail-modal .response-mark:is(.cannot,.declined) {
  color:var(--negative-text);
  background:var(--negative-bg);
  border:1px solid currentColor;
}
body.theme-dark .button.can-button:hover,
body .button.can-button:hover {
  color:var(--positive-text);
  background:var(--positive-bg);
  filter:brightness(1.08);
}
body.theme-dark .button:is(.cannot-button,.button-danger):hover,
body .button:is(.cannot-button,.button-danger):hover {
  color:var(--negative-text);
  background:var(--negative-bg);
  filter:brightness(1.08);
}
body .button.button-primary:hover { background:#ffffff; }
body .event-detail-modal>.modal-footer .button[data-act="cancel-event"] {
  color:var(--ink);background:#292930;border-color:#454550;
}
body .event-detail-modal>.modal-footer .button[data-act="cancel-event"]:hover {
  color:var(--ink);background:#34343d;
}
@media(max-width:760px) {
  .event-row[data-calendar-event] { grid-template-columns:38px minmax(0,1fr); }
}
body button:not(:disabled):not([aria-disabled="true"]),
body :is(.calendar-event, .event-row, .meeting-card, .performance-card, .slot-detail, .notice-group,
         .rating-details, .lineup-assignment, .lineup-dj-option, .slot-zone-filter,
         .check-row, .meeting-dj-option, .request-slot),
body :is(.form-field input, .form-field select, .form-field textarea, .special-slot-times input) {
  transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s;
}
@media (hover:hover) {
  body button:not(:disabled):not([aria-disabled="true"]):hover,
  body :is(.calendar-event, .event-row, .meeting-card, .performance-card, .slot-detail, .notice-group,
           .rating-details, .lineup-assignment, .lineup-dj-option, .slot-zone-filter,
           .check-row, .meeting-dj-option, .request-slot):not(.unavailable):not(:disabled):hover,
  body :is(.form-field input, .form-field select, .form-field textarea, .special-slot-times input):not(:disabled):hover {
    border-color:var(--hover-outline);
    box-shadow:var(--hover-glow);
  }
}

/* Final profile and semantic-color refinements. Keep the outline to the standard 1px button border. */
body .button.button-danger:hover,
body .button.event-delete-button:hover,
body .button.cannot-button:hover,
body .event-detail-modal>.modal-footer .button[data-act="cancel-event"]:hover {
  color:var(--red)!important;
  background:var(--negative-bg)!important;
  border:1px solid var(--red)!important;
  outline:0!important;
  box-shadow:none!important;
}
body .button.can-button:hover,
body .approve-button.selected:hover {
  color:var(--positive-text-strong)!important;
  background:var(--positive-bg)!important;
  border:1px solid var(--positive-text-strong)!important;
  outline:0!important;
  box-shadow:none!important;
}
@media (hover:hover) {
  body .meeting-card .person-link:hover,
  body .meeting-card .person-link:focus-visible {
    border: 0;
    outline: 0;
    box-shadow: none;
  }
}
body .status-ready { color:var(--positive-text-strong)!important; }
body .status-declined { color:var(--red)!important; }
.profile-head {
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr);
  grid-template-rows:56px auto;
  align-items:start;
}
.profile-head>.avatar,
.profile-head>.avatar-preview-button { grid-column:1; grid-row:1; justify-self:center; }
.profile-head>.avatar-preview-button { width:56px; height:56px; }
.profile-head>.avatar-preview-button .avatar { width:56px; height:56px; flex-basis:56px; margin:0; }
.profile-head>.profile-identity {
  grid-column:2;
  grid-row:1 / span 2;
  align-self:start;
  min-width:0;
}
.profile-head>.profile-identity h2 {
  display:flex;
  align-items:center;
  min-height:56px;
  margin:0;
  line-height:1.2;
}
.profile-actions { border-top:1px solid var(--line); padding-top:18px; margin-top:22px; }
.avatar-preview-large { padding:22px 0 10px; }
.avatar-preview-large .avatar { width:160px; height:160px; flex-basis:160px; font-size:40px; }
.avatar-modal-actions { display:flex; justify-content:center; gap:10px; margin:18px 0 6px; }
@media(max-width:760px) {
  .profile-head {
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr);
    grid-template-rows:56px auto;
    align-items:start;
    flex-wrap:nowrap;
  }
}

.profile-contact {
  display:block;
  width:100%;
  margin:8px 0 0;
  padding:12px 14px;
  border:1px solid #c5c5cf;
  border-radius:10px;
  background:transparent;
  color:var(--muted-dark);
  font-size:11px;
  font-style:italic;
  line-height:1.5;
}
.profile-contact a { display:block; min-width:0; color:inherit; font-style:inherit; text-decoration:none; overflow-wrap:anywhere; }
.profile-contact a:hover { text-decoration:underline; }
body.theme-dark .profile-contact { border-color:#555560; color:#b8b8c1; }

/* Consistent profiles, compact event lineups, and task-card hierarchy. */
.artist-card { align-items:center; cursor:pointer; transition:border-color .16s,box-shadow .16s,background .16s; }
.artist-card:hover { border-color:var(--hover-outline); box-shadow:var(--hover-glow); }
.artist-card [data-act="profile"] { cursor:pointer; }
.artist-card-body { display:flex; flex-direction:column; align-items:flex-start; }
.profile-head { display:grid!important; grid-template-columns:56px minmax(0,1fr); align-items:center; }
.profile-head>.avatar { grid-column:1; grid-row:1; }
.profile-head .profile-identity { grid-column:2; grid-row:1; align-self:center; min-width:0; }
.profile-head .profile-identity h2 { margin:0; line-height:1.2; }
.profile-head { flex-wrap:nowrap; }
@media(max-width:760px) { .profile-head { flex-wrap:nowrap; } }
.profile-head>.avatar { flex:0 0 56px; }
.profile-head .profile-identity { flex:1 1 auto; min-width:0; }
.profile-identity { display:flex; flex-direction:column; justify-content:center; }
.profile-contacts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:20px; }
.profile-contact { display:grid; grid-template-columns:minmax(110px,.4fr) minmax(0,1fr); align-items:center; gap:12px; margin:0; font-style:normal; }
.profile-contact>span { color:var(--muted); font-size:10px; }
.profile-contact a { text-align:right; }
.profile-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.profile-actions .button { min-width:132px; }
.profile-actions { border-top:1px solid var(--line); padding-top:18px; margin-top:22px; }
.profile-actions .button-profile-logout { color:#202026; background:#fff; border-color:#d8d8df; }
.profile-actions .button-profile-logout:hover { color:#111116; background:#f5f5f8; }
.profile-actions .button-secondary { min-width:132px; }
.telegram-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; }
.telegram-code-content { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:6px 0 4px; }
.telegram-code-content p { margin:0; }
.telegram-code-content strong { font-weight:700; }
.telegram-code-value { min-width:150px; padding:15px 24px; border:1px solid var(--line); border-radius:10px; background:var(--slot-surface); color:var(--ink); font-family:inherit; font-size:24px; font-weight:700; line-height:1.1; letter-spacing:.12em; cursor:pointer; }
.telegram-code-value:hover { border-color:var(--hover-outline); box-shadow:var(--hover-glow); }
.telegram-code-hint { color:var(--muted); font-size:var(--text-body); line-height:1.5; }
.telegram-code-expiry { margin-top:0; }
.button-refresh-square .ui-pictogram { width:14px; height:14px; margin:0; stroke-width:2.3; }
.profile-actions .button[data-act="telegram-link"] { margin-right:auto; }
body.theme-dark .profile-actions .button-profile-logout { color:#111116; background:#fff; border-color:#fff; }
.feedback-delete-button{color:var(--ink)!important;background:#292930!important;border-color:#454550!important}
.feedback-delete-button:hover{color:var(--red)!important;background:var(--negative-bg)!important;border-color:var(--red)!important;box-shadow:none!important}
.avatar-preview-button { display:grid; place-items:center; width:64px; height:64px; padding:0; overflow:hidden; border:0; border-radius:50%; background:transparent; cursor:pointer; }
.avatar-preview-button .avatar { width:64px; height:64px; flex:0 0 64px; margin:0; }
.avatar-preview-button:hover { box-shadow:0 0 0 2px var(--hover-outline); }
.avatar-preview-large { display:grid; place-items:center; padding:20px 0 8px; }
.avatar-preview-large .avatar { width:160px; height:160px; flex:0 0 160px; margin:0; font-size:40px; }
.avatar-modal-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:18px; }
.avatar-modal-actions .button { min-width:150px; }
.profile-plan-list { display:grid; gap:0; margin-top:14px; }
.profile-plan-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 4px; border-bottom:1px solid var(--line); }
.profile-plan-row:last-child { border-bottom:0; }
.profile-plan-row>div { min-width:0; }
.profile-plan-row strong { font-size:11px; }
.profile-plan-row small { display:block; margin-top:5px; color:var(--muted); font-size:9px; }
.lineup-event-list { display:grid; gap:9px; }
.lineup-event { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.lineup-event>summary { list-style:none; cursor:pointer; border:0; border-radius:0; }
.lineup-event>summary::-webkit-details-marker { display:none; }
.lineup-event-body { padding:0 14px 14px; }
.lineup-event-body .lineup-final { margin-top:0; }
.lineup-final { border:0; border-top:1px solid var(--line); border-radius:0; padding:14px 0; margin:0 0 10px; }
.performance-card>summary { justify-content:space-between; }
.performance-summary-copy { display:grid; gap:4px; min-width:0; }
.performance-summary-copy strong { font-size:11px; }
.performance-summary-copy span { font-size:9px; color:var(--muted); }
.performance-card>summary>.status { margin-left:auto; }
.performance-card>summary { flex-wrap:nowrap; }
.performance-summary-copy { flex:1 1 auto; }
.performance-summary-status { display:flex; flex:0 0 auto; align-items:center; margin-left:auto; }
.performance-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:14px; }
.performance-actions .button-danger:hover { border-color:var(--negative-text); }
.task-card { grid-template-columns:minmax(0,1fr); }
.task-card-top { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; }
.task-card-top>h3 { flex:1; }
.task-statuses { display:flex; justify-content:flex-end; }
.task-recipients { display:flex; justify-content:flex-end; margin-top:16px; }
.task-recipient { display:flex; flex-direction:column; align-items:flex-end; gap:6px; text-align:right; }
.task-recipient strong { font-size:11px; font-weight:800; }
.task-meta-details { display:grid; gap:8px; margin-top:18px; padding-top:14px; border-top:1px solid var(--line); font:10px 'Manrope',sans-serif; }
.task-card-actions { display:flex; justify-content:flex-start; gap:9px; margin-top:16px; }
.task-card-actions .button { min-width:92px; }
body .button.button-primary:hover { background:var(--lime-soft); border-color:var(--lime); box-shadow:0 0 0 1px var(--lime); }
body .button.button-danger:hover { color:var(--red)!important; background:var(--negative-bg)!important; border:1px solid var(--red)!important; box-shadow:none!important; }
body .button.destructive-action { color:var(--ink); background:#292930; border-color:#454550; }
body .button.destructive-action:hover { color:var(--red)!important; background:var(--negative-bg)!important; border:1px solid var(--red)!important; box-shadow:none!important; }
body .event-detail-modal>.modal-footer .button[data-act="cancel-event"]:hover { border-color:var(--negative-text); }
body .button.cannot-button:hover { color:var(--red)!important; background:var(--negative-bg)!important; border:1px solid var(--red)!important; box-shadow:none!important; }
body .button.can-button:hover,
body .approve-button.selected:hover { color:var(--positive-text-strong)!important; background:var(--positive-bg)!important; border:1px solid var(--positive-text-strong)!important; box-shadow:none!important; }
body .button.can-button:hover { color:var(--positive-text-strong)!important; background:var(--positive-bg)!important; border:1px solid var(--positive-text-strong)!important; box-shadow:none!important; }
@media(max-width:760px) {
  .profile-contacts { grid-template-columns:1fr; }
  .profile-head { display:grid!important; grid-template-columns:56px minmax(0,1fr); grid-template-rows:56px auto; align-items:start; }
  .task-card-top { grid-template-columns:minmax(0,1fr) auto; }
  .task-recipient { align-items:flex-end; text-align:right; }
  .profile-plan-row { align-items:flex-start; }
}
/* Keep the avatar/name pair in a true two-column profile header. */
.profile-head { display:grid!important; grid-template-columns:56px minmax(0,1fr); grid-template-rows:56px auto; align-items:start; }
.profile-head>.avatar,.profile-head>.avatar-preview-button { grid-column:1; grid-row:1; justify-self:center; }
.profile-head>.profile-identity { grid-column:2; grid-row:1 / span 2; align-self:start; min-width:0; }
.profile-head>.profile-identity h2 { display:flex; align-items:center; min-height:56px; margin:0; }
@media(max-width:760px) {
  .profile-head { display:grid!important; grid-template-columns:56px minmax(0,1fr); grid-template-rows:56px auto; align-items:start; flex-wrap:nowrap; }
}

/* Explicit semantic hover outlines; these must win over legacy light/dark rules. */
@media (hover:hover) {
  body .button.button-danger:hover,
  body .button.event-delete-button:hover,
  body .button.cannot-button:hover,
  body .event-detail-modal>.modal-footer .button[data-act="cancel-event"]:hover {
    color:var(--negative-text)!important;
    background:var(--negative-bg)!important;
    border-color:var(--negative-text)!important;
    border-width:1px!important;
  }
  body .button.can-button:hover,
  body .approve-button.selected:hover {
    color:var(--positive-text)!important;
    background:var(--positive-bg)!important;
    color:var(--positive-text-strong)!important;
    border-color:var(--positive-text-strong)!important;
    border-width:1px!important;
  }
  body .artist-card:hover {
    border-color:#e4e4ec!important;
    outline:1px solid #e4e4ec;
    outline-offset:-2px;
  }
}

/* Profile: description below the avatar/name row and information cards in one column. */
.profile-head { grid-template-rows:56px; }
.profile-head>.profile-identity { grid-row:1; align-self:center; }
.profile-head>.profile-identity h2 { min-height:56px; }
.profile-description { width:100%; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.profile-description p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; white-space:pre-wrap; }
.profile-description .profile-genres { margin-top:8px; }
.profile-contacts { grid-template-columns:1fr!important; width:100%; }
.profile-contact { width:100%; }
@media(max-width:760px) {
  .profile-head { grid-template-rows:56px; }
}

/* Shared visual rhythm for the active server-backed UI. */
:root {
  --space-xs:8px;
  --space-sm:12px;
  --space-md:16px;
  --space-lg:24px;
  --text-body:12px;
  --text-meta:11px;
  --card-radius:12px;
  --slot-surface:#f6f6f9;
}
body.theme-dark { --slot-surface:#202027; }
body { font-size:var(--text-body); line-height:1.55; }
.page-body>.hero { margin-bottom:var(--space-lg); }
.hero { gap:var(--space-lg); }
.hero-actions:empty { display:none; }
.hero h1 { line-height:1.2; }
.hero p { margin-top:var(--space-sm); font-size:var(--text-body); line-height:1.6; }
.section-gap { margin-top:var(--space-lg); }
.section-gap:empty { display:none; }
.section-bottom { margin-bottom:var(--space-lg); }
.grid-2,.card-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:var(--space-md); align-items:stretch; }
.grid-2>.panel,.card-grid>.panel{min-width:0;height:100%}
.dashboard-director-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-md);align-items:stretch}
.dashboard-director-grid.single-column{grid-template-columns:1fr}
.dashboard-director-events{display:grid;grid-template-rows:auto auto;gap:var(--space-md);min-width:0}
.dashboard-director-events>.panel,.dashboard-director-tasks>.panel{min-width:0}
.dashboard-director-tasks{display:flex;min-width:0}
.dashboard-director-tasks>.panel{width:100%;height:100%}
.attention-list .calendar-event{width:100%;box-sizing:border-box}
.stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:stretch}
.artist-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.profile-statistics { align-items:start; grid-auto-rows:auto; }
.profile-layout{align-items:stretch}
.profile-layout{
  grid-template-columns:minmax(0,1.45fr) minmax(270px,.8fr);
  grid-template-areas:"profile-left profile-evaluations" "profile-future profile-future";
}
.profile-left-stack{grid-area:profile-left;display:grid;grid-template-rows:auto 1fr;gap:var(--space-md);min-width:0}
.profile-layout>.director-evaluations{grid-area:profile-evaluations;height:100%}
.profile-future-panel{grid-area:profile-future}
.profile-future-panel .event-list{gap:var(--space-md);margin-top:var(--space-md)}
.profile-layout:not(:has(.director-evaluations)){grid-template-columns:1fr;grid-template-areas:"profile-left" "profile-future"}
.profile-layout:not(:has(.profile-future-panel)){grid-template-areas:"profile-left profile-evaluations"}
.profile-layout:not(:has(.director-evaluations)):not(:has(.profile-future-panel)){grid-template-columns:1fr;grid-template-areas:"profile-left"}
/* Rating review and its separate, compact settings dialog. */
.rating-progress-panel{display:flex}
.rating-progress-panel-row h2{margin:0 0 var(--space-xs)}
.rating-progress-summary,.rating-progress-notice{line-height:1.55}
.rating-progress-notice{margin-top:var(--space-xs);color:var(--muted)}
.rating-progress-panel-row{display:flex;flex:1;align-items:center;justify-content:space-between;gap:var(--space-md);min-height:80px}
.rating-progress-panel-row>div{min-width:0}
.rating-progress-panel-row>.button{flex:0 0 auto}
.rating-progress-modal{width:min(900px,100%);max-height:92dvh;overflow:auto;scrollbar-width:none}
.rating-settings-modal{width:min(580px,100%);max-height:92dvh;overflow:auto;scrollbar-width:none}
.rating-progress-modal::-webkit-scrollbar,.rating-settings-modal::-webkit-scrollbar{display:none}
.rating-progress-modal .modal-header{margin-bottom:20px}
.rating-progress-modal .modal-header h2{margin:0}
.rating-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px}
.rating-title-line>.rating-relation-status{flex:0 1 auto}
.rating-progress-modal .modal-subtitle{margin:8px 0 0;color:var(--muted)}
.rating-progress-modal .rating-artist-name{color:var(--ink);font-weight:700}
.rating-metrics{display:grid;grid-template-columns:1.45fr 1fr 1.15fr .85fr .85fr;gap:16px}
.rating-metric{display:grid;gap:5px;align-content:start;min-width:0}
.rating-metric>span{font-size:11px;line-height:1.4;color:var(--muted)}
.rating-metric>strong{font-size:25px;font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums}
.rating-metric-current>strong{font-size:32px}
.rating-metric-streak>strong{color:var(--ink)}
.rating-metric>small{color:var(--muted);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.rating-progress-track-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px}
.rating-progress-track-heading>strong{font-size:13px}
.rating-progress-count{color:var(--ink);font-size:15px;font-weight:700;white-space:nowrap}
.rating-progress-track{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
.rating-progress-track>i{height:7px;border-radius:10px;background:var(--line)}
.rating-progress-track>i.complete{background:var(--ink)}
.rating-overview-caption{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 12px;margin-top:9px;color:var(--muted);font-size:11px;line-height:1.5}
.rating-relation-status{display:inline-flex;max-width:100%}
.rating-relation-status .status{white-space:normal}
.rating-review-notice,.rating-current-warning{margin:12px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;font-size:11px;line-height:1.6}
.rating-review-notice{border-color:var(--ink);background:var(--slot-surface)}
.rating-current-warning{color:var(--muted)}
.rating-chart-section{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);min-width:0}
.rating-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rating-chart-heading h3{margin:0;font-size:15px}
.rating-chart-heading .rating-period-filter{min-height:34px;padding:8px 13px}
.rating-chart-range{margin:4px 0 0;color:var(--muted);font-size:11px}
.rating-chart-scroll{max-width:100%;overflow:auto;scrollbar-width:thin}
.rating-chart-canvas{position:relative;min-width:var(--chart-min-width);margin:12px 0 0}
.rating-progress-graph{display:block;width:100%;height:auto;overflow:visible}
.rating-axis,.rating-grid-line,.rating-month-grid-line{stroke:var(--line);stroke-width:1}
.rating-progress-line{fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.rating-threshold-line{stroke:var(--ink);stroke-width:1.4}
.rating-threshold-label{fill:var(--ink);font:11px Manrope,sans-serif}
.rating-point-hit{fill:transparent;cursor:pointer;pointer-events:all}
.rating-point{fill:#fff;stroke:none;pointer-events:none}
.rating-point-group{-webkit-tap-highlight-color:transparent}
.rating-point-group:focus{outline:none}
.rating-point-group:focus-visible .rating-point{stroke:var(--ink);stroke-width:2}
.rating-month-label{fill:var(--muted);font:11px Manrope,sans-serif}
.rating-axis-label{fill:var(--muted);font:11px 'DM Mono',monospace}
.rating-empty-label{fill:var(--muted);font:12px Manrope,sans-serif}
.rating-chart-tooltip{position:absolute;left:clamp(4px,calc(var(--point-x) - 125px),calc(100% - 254px));top:calc(var(--point-y) + 6px);z-index:4;width:min(250px,calc(100% - 8px));max-height:145px;overflow:auto;padding:10px 12px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);font-size:11px;line-height:1.55;pointer-events:none}
.rating-chart-tooltip[hidden]{display:none}
.rating-chart-tooltip>strong,.rating-chart-tooltip>span{display:block}
.rating-chart-tooltip>span{color:var(--muted)}
.rating-chart-tooltip>strong{overflow-wrap:anywhere}
.rating-chart-tooltip .rating-tooltip-value{margin-top:8px}
.rating-chart-tooltip .rating-tooltip-warning{margin-top:6px;padding-bottom:6px;color:var(--red)}
.rating-month-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin:6px auto 0}
.rating-month-controls strong{min-width:124px;color:var(--ink);font-size:12px;text-align:center;font-weight:600}
.rating-month-controls .button{flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0}
.rating-chart-note{margin:10px 0 0;color:var(--muted);font-size:var(--text-meta);line-height:1.6}
.rating-conditions-form{margin-top:0}
.rating-condition-fields{display:grid;grid-template-columns:repeat(2,minmax(0,156px));justify-content:center;gap:12px;align-items:end}
.rating-condition-fields label{display:grid;gap:6px;color:var(--muted);font-size:11px;min-width:0}
.rating-condition-fields :is(input,select){width:100%;min-height:38px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--slot-surface);font:inherit}
.rating-condition-fields select{appearance:none;-webkit-appearance:none;background-image:none}
.rating-settings-modal .modal-header{margin-bottom:24px}
.rating-settings-modal>.modal-footer{align-items:center;justify-content:flex-end}
.rating-settings-modal>.modal-footer .button{min-height:38px}
.rating-progress-modal>.modal-footer{position:static;display:flex;justify-content:flex-end;gap:8px;margin-top:16px;padding:0}
.rating-progress-modal>.modal-footer .button{flex:0 0 96px;width:96px;min-height:38px;padding-inline:10px}
@media(max-width:600px){
  .rating-progress-modal{padding:18px;max-height:94dvh}
  .rating-progress-modal .modal-header h2{font-size:19px}
  .rating-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .rating-metric-current{grid-column:1 / span 2;grid-row:1}
  .rating-metric-streak{grid-column:3;grid-row:1}
  .rating-metric-current>strong,.rating-metric-streak>strong{font-size:28px}
  .rating-metric>strong{font-size:21px}
  .rating-metric>span{font-size:10px}
  .rating-metric>small{font-size:9px}
  .rating-overview-caption{font-size:10px}
  .rating-condition-fields{grid-template-columns:repeat(2,minmax(0,78px))}
}
.panel { padding:var(--space-lg); border-radius:var(--card-radius); }
.panel h2 { font-size:16px; line-height:1.4; }
.panel h3 { font-size:14px; line-height:1.4; }
.panel>h2,.panel>.panel-header h2 { margin:0; }
.button { line-height:normal; }
.hero-actions,.inline-actions { gap:var(--space-xs); }
.stats { margin-top:var(--space-lg); gap:var(--space-md); }
.stat { display:flex; flex-direction:column; }
.stat-label { min-height:34px; align-items:flex-start; }
.stat strong { margin-top:var(--space-md); }
.stat small,.eyebrow { font-size:var(--text-meta); line-height:1.5; }
.event-list,.attention-list,.task-list,.meeting-list,.notice-list,
.performance-list,.slot-detail-list,.assignment-list { gap:var(--space-sm); margin-top:var(--space-md); }
.home-next-calendar .calendar-event { margin-top:var(--space-md); }
.home-next-calendar .calendar-event:hover { border-color:var(--hover-outline); box-shadow:var(--hover-glow); }
.calendar-event-centered { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:var(--space-md); align-items:center; }
.calendar-event-centered .calendar-event-head { display:contents; }
.calendar-event-centered .calendar-event-copy { grid-column:1; grid-row:1; }
.calendar-event-centered .calendar-event-status { grid-column:2; grid-row:1; align-self:start; max-width:150px; }
.calendar-event-centered .calendar-slots { grid-column:1 / -1; grid-row:2; }
.calendar-event-centered .calendar-slot { padding:var(--space-xs) 0; background:transparent; }
.calendar-event-centered .calendar-slot:has(.calendar-slot-b2b-inline) { display:grid; align-items:start; gap:4px; min-width:0; }
.calendar-event-centered .calendar-slot:has(.calendar-slot-b2b-inline)>span { white-space:nowrap; }
.calendar-event-centered .calendar-slot-b2b-inline { display:flex; flex-wrap:wrap; white-space:normal; gap:6px; max-width:100%; }
.calendar-event-centered .calendar-slot-b2b-inline .calendar-slot-b2b-name { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.page-body>.hero+:is(.event-list,.meeting-list,.notice-list,.lineup-event-list,.section-gap,.stats) { margin-top:0; }
.lineup-event-list { margin-top:0; gap:var(--space-sm); }
.event-title,.calendar-event .calendar-event-title,.artist-card strong,
.performance-card>summary strong,.performance-summary-copy strong,
.profile-plan-row strong,.person-link strong,.meeting-responses .person-link strong {
  font-size:var(--text-body); line-height:1.5;
}
.event-meta,.calendar-event-meta,.calendar-slot,
.performance-card>summary span,.performance-summary-copy span,
.profile-plan-row small,.assignment-row small,.artist-card span:not(.avatar),
.frequency-label,.notice-item small,.comment-box small,.attention-row small {
  font-size:var(--text-meta); line-height:1.55;
}
.event-date small { font-size:10px; }
.status { line-height:normal; }
.performance-card>summary .status { font-size:9px; line-height:normal; }
.artist-grid { gap:var(--space-md); }
.artist-card { padding:var(--space-md); border-radius:var(--card-radius); gap:var(--space-md); }
.artist-card-body { gap:6px; }
.artist-card-body>span:not(.avatar) { margin-top:0; }
.artist-card-body>.frequency-label { margin-top:2px; }
.detail-row,.details-body,.comment-box,.assignment-row { font-size:var(--text-body); line-height:1.6; }
.detail-row { padding:var(--space-sm) 0; }
.details-body { padding:0 var(--space-md) var(--space-md); }
.details-body p { margin-top:var(--space-sm); }
.performance-card { padding:var(--space-md); }
.performance-card:not(.performance-event) { padding-right:var(--space-sm); }
.performance-card[open]>.details-body { padding:var(--space-md) 0 0; }
.performance-actions,.comment-actions { display:flex; gap:var(--space-xs); flex-wrap:wrap; margin-top:var(--space-md); }
.performance-period { font-size:10px; line-height:1.5; margin-top:var(--space-md); }
.profile-contact { padding:var(--space-sm) var(--space-md); gap:var(--space-md); }
.profile-contact>span { font-size:var(--text-meta); }
.profile-contact a,.profile-contact .profile-contact-empty { text-align:right; justify-self:end; min-width:0; }
.profile-description p { font-size:var(--text-body); line-height:1.65; }
.profile-contacts { gap:var(--space-sm); }
body .performance-card .rating-details:hover,
body .performance-card .rating-toggle:hover {
  border-color:var(--line)!important; box-shadow:none!important; outline:0!important; background:var(--surface);
}
body .performance-card:has(.rating-details:hover) { border-color:var(--line)!important; box-shadow:none!important; }
.performance-card .rating-summary { margin-top:var(--space-md); }
.performance-card .rating-toggle { font-size:var(--text-meta); padding:var(--space-xs) var(--space-sm); }
.rating-criteria div,.rating-details-body blockquote { font-size:var(--text-meta); line-height:1.6; }
.comment-box { padding:var(--space-md); margin-top:var(--space-md); border-radius:10px; }
.comment-box small { display:block; margin-top:var(--space-sm); }
.feedback-note,
.task-description-note {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--slot-surface);
  font-style: italic;
}
.feedback-note {
  font-style: italic;
}
.feedback-note strong,
.feedback-note small {
  font-style: normal;
}
.feedback-note p {
  font-style: italic;
}
.feedback-note-text {
  margin: var(--space-sm) 0 0;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  color: var(--muted-dark);
  font-style: italic;
  white-space: pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
body.theme-dark .feedback-note {
  background: var(--surface);
  border-color: var(--line);
}
body.theme-dark .feedback-note-text {
  background: #202027;
  border-color: #363640;
}
.feedback-note .button {
  font-style: normal;
}
.task-description-note {
  margin-top: var(--space-sm);
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.comment-actions .button { margin-top:0; }
.task-card { padding:var(--space-md); border-radius:var(--card-radius); }
.task-card h3 { font-size:14px; line-height:1.5; margin:0; }
.task-card p { margin-top:var(--space-xs); font-size:var(--text-body); line-height:1.6; }
.task-meta-details { font-size:var(--text-meta); margin-top:var(--space-md); padding-top:var(--space-md); gap:var(--space-xs); }
.task-meta-details .task-event-title { font-weight:700; }
.task-recipients { justify-content:flex-start; flex-wrap:wrap; gap:var(--space-sm); margin-top:var(--space-md); text-align:left; }
.task-recipients strong { font-size:var(--text-body); }
.task-recipients .task-recipient { align-items:flex-start; text-align:left; }
.task-card-actions { margin-top:var(--space-md); gap:var(--space-xs); }
.task-card-actions:empty { display:none; }
.task-card-actions .button {
  min-height: 38px;
  padding: 10px 14px;
}
.task-progress-times { display:grid; gap:3px; margin-top:5px; color:var(--muted); font-size:10px; font-weight:400; }
.dj-event-slot { display:grid; gap:var(--space-sm); padding:var(--space-sm); border:1px solid var(--line); border-radius:var(--card-radius); background:var(--surface); }
.dj-slot-heading { display:flex; align-items:center; justify-content:space-between; gap:var(--space-sm); }
.dj-slot-heading .calendar-slot { flex:1; }
.dj-invitation-list { display:grid; gap:var(--space-sm); margin-top:var(--space-md); }
.invitations-page .invitations-heading { margin:0 0 var(--space-lg); }
.invitations-page .dj-invitation-list { margin-top:0; }
.dj-invitation { display:grid; gap:var(--space-xs); padding:var(--space-md); border:1px solid var(--line); border-radius:var(--card-radius); background:var(--surface); }
.dj-invitation .calendar-slot { margin-top:var(--space-xs); }
.dj-invitation .inline-actions { display:flex; flex-wrap:wrap; gap:var(--space-xs); }
.dj-invitation .inline-actions .button { min-width:0; }
.slot-answer-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:var(--space-xs);width:100%}
.slot-answer-actions .can-button,.meeting-response-actions .can-button,
.slot-answer-actions .cannot-button,.meeting-response-actions .cannot-button {
  color:var(--ink); background:#292930; border-color:#454550;
}
.slot-answer-actions .can-button:hover,.meeting-response-actions .can-button:hover {
  color:var(--positive-text-strong)!important; background:var(--positive-bg)!important; border-color:var(--positive-text-strong)!important;
}
.slot-answer-actions .cannot-button:hover,.meeting-response-actions .cannot-button:hover {
  color:var(--red)!important; background:var(--negative-bg)!important; border-color:var(--red)!important;
}
.slot-answer-actions .selected-answer:disabled,.meeting-response-actions .selected-answer:disabled { opacity:.65; }
.event-detail-modal>.modal-footer .slot-answer-actions {
  width:auto;
  margin-right:auto;
  justify-content:flex-start;
}
body .slot-answer-actions .button.can-button,
body .slot-answer-actions .button.cannot-button,
body .meeting-response-actions .button.can-button,
body .meeting-response-actions .button.cannot-button {
  color:var(--ink)!important;
  background:#292930!important;
  border-color:#454550!important;
}
body .slot-answer-actions .button.can-button:hover,
body .meeting-response-actions .button.can-button:hover {
  color:var(--positive-text-strong)!important;
  background:var(--positive-bg)!important;
  border-color:var(--positive-text-strong)!important;
}
body .slot-answer-actions .button.cannot-button:hover,
body .meeting-response-actions .button.cannot-button:hover {
  color:var(--red)!important;
  background:var(--negative-bg)!important;
  border-color:var(--red)!important;
}
.slot-management{margin-top:var(--space-md);border-top:1px solid var(--line);padding-top:var(--space-sm)}
.slot-management>summary{cursor:pointer;color:var(--muted);font-size:var(--text-meta);text-align:center;list-style:none}
.slot-management>summary::-webkit-details-marker{display:none}
.slot-management-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:var(--space-xs);margin-top:var(--space-sm);padding-top:var(--space-sm);border-top:1px solid var(--line)}
.performance-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:var(--space-xs)}
.notice-actions { gap:16px; }
.notice-messages { border-bottom:0; }
.notice-group .details-body { border-top:0; }
.notice-actions { border-top:0; padding-top:0; }
.filters { gap:var(--space-sm); margin:0 0 var(--space-lg); }
.filters input,.filters select {
  min-height:44px; padding:11px 16px; border-radius:12px; font-size:var(--text-body); line-height:1.5;
}
.filters select { appearance:none; -webkit-appearance:none; background-image:none; cursor:pointer; min-width:160px; }
.filters select:focus-visible { outline:2px solid var(--hover-outline); outline-offset:2px; }
.lineup-event-body { padding:0 var(--space-md) var(--space-md); }
body .lineup-event,body .lineup-event>summary,body.theme-dark .lineup-event>summary,.lineup-event-body { background:var(--surface); }
.lineup-final { border:0; gap:var(--space-sm); padding:var(--space-md) 0; margin:0; }
.lineup-final>.calendar-slot { display:grid; grid-template-columns:1fr; gap:6px; font-size:var(--text-meta); }
.lineup-final>.calendar-slot,.performance-card .calendar-slot { border:1px solid var(--line); border-radius:var(--card-radius); }
.lineup-final .calendar-slot b { grid-column:auto; }
.lineup-final .calendar-slot span { color:inherit; }
.event-detail-modal:has(.lineup-final)>.modal-footer {
  margin-top: 0;
  padding-top: var(--space-md);
}
.meeting-modal .meeting-modal-responses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: 0;
  padding: var(--space-md) 0;
}
.meeting-modal {
  width: min(760px, 100%);
  padding: 24px 26px 18px;
}
.meeting-modal .modal-header {
  padding-bottom: 0;
}
.meeting-modal .modal-header h2 {
  font-size: 22px;
}
.meeting-modal .meeting-response-card {
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--slot-surface);
}
.meeting-modal .meeting-response-card .person-link {
  flex: 1;
  min-width: 0;
}
.meeting-modal .meeting-response-card .person-link strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.meeting-modal .meeting-response-card .response-mark {
  margin-left: auto;
}
.meeting-modal .meeting-response-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(320px, 100%);
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
}
.meeting-modal > .modal-footer {
  margin-top: 0;
  border-top: 1px solid #34343e;
  padding-top: var(--space-md);
}
.meeting-dj-modal > .modal-footer {
  justify-content: flex-end;
}
.meeting-dj-modal > .modal-footer:has(.meeting-response-actions) {
  justify-content: space-between;
}
.meeting-modal > .modal-footer .button {
  flex: 0 1 auto;
  min-height: 38px;
  padding: 9px 12px;
  font-size: 10px;
}
.meeting-modal .meeting-response-actions .button {
  min-width: 0;
}
body .meeting-modal .meeting-response-card .person-link:hover {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.meeting-modal .meeting-response-card .person-link:focus-visible {
  border-radius: 6px;
}
body.theme-dark .meeting-modal .meeting-response-card {
  background: var(--slot-surface);
  border-color: var(--line);
}
@media (max-width: 520px) {
  .meeting-modal {
    width: 100%;
    padding: 24px 18px 18px;
  }
  .meeting-modal .meeting-modal-responses {
    grid-template-columns: 1fr;
  }
}
@media (max-width:900px) {
  .dashboard-director-grid {
    grid-template-columns:1fr;
  }
  .dashboard-director-events {
    grid-template-rows:auto;
  }
  .dashboard-director-tasks>.panel {
    height:auto;
  }
  .profile-layout,
  .profile-layout:not(:has(.director-evaluations)),
  .profile-layout:not(:has(.profile-future-panel)),
  .profile-layout:not(:has(.director-evaluations)):not(:has(.profile-future-panel)) {
    grid-template-columns:1fr;
    grid-template-areas:"profile-left" "profile-evaluations" "profile-future";
  }
}
.modal .frequency-period { margin-top:12px; }
.lineup-event { cursor:pointer; transition:border-color .15s,box-shadow .15s; }
.lineup-event>.event-row,body.theme-dark .lineup-event>.event-row { border:0; border-radius:0; background:var(--surface); }
@media(hover:hover) {
  .lineup-event:hover { border-color:var(--hover-outline); box-shadow:var(--hover-glow); }
}
.meeting-card-heading h3 { font-size:14px; line-height:1.5; margin:0; }
.meeting-card-heading p { font-size:var(--text-meta); margin-top:var(--space-xs); line-height:1.55; }
.performance-history-slot { margin-top:var(--space-md); }
.event-detail-modal .performance-history-slot .slot-detail-summary {
  display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:46px; padding:11px 14px;
}
.performance-slot-rating { display:inline-block; margin-left:12px; white-space:nowrap; font:inherit; }
.performance-history-rating { display:block; margin-top:4px; color:var(--muted); font-size:var(--text-meta); font-weight:700; }
.performance-card { cursor:pointer; }
.performance-card.performance-event { padding:0; }
.performance-card.performance-event .event-row { border:0; border-radius:0; background:var(--surface); }
.profile-performance-slot {
  margin-top:0;
  background:var(--slot-surface);
  border-color:var(--line);
}
.profile-performance-slot .slot-detail-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:46px;
  padding:11px 14px;
}
.profile-performance-slot .slot-summary-time,
.profile-performance-slot .slot-summary-dj {
  min-width:0;
}
.profile-performance-slot .slot-summary-dj strong {
  font-size:var(--text-body);
  font-weight:700;
  overflow-wrap:anywhere;
  text-align:right;
}
.profile-performance-slot .event-row {
  grid-template-columns:44px minmax(0,1fr);
  padding-right:var(--space-lg);
}
.lineup-event>.event-row,
.performance-card.performance-event .event-row {
  grid-template-columns:44px minmax(0,1fr);
  padding-right:var(--space-lg);
}
.director-evaluations { position:relative; }
.evaluation-navigation { display:flex; gap:4px; }
.evaluation-navigation .panel-corner-toggle { position:static; width:22px; height:22px; font-size:12px; }
.evaluation-form-modal .modal-header { display:grid; grid-template-columns:minmax(0,1fr) auto 32px; column-gap:var(--space-md); }
.evaluation-form-modal .modal-header>div:first-child { min-width:0; }
.evaluation-form-modal .modal-header>.modal-close { grid-column:3; }
.evaluation-dialog-heading { min-width:0; }
.evaluation-dialog-heading h2 { margin-top:7px; }
.evaluation-target-caption { margin-top:var(--space-sm); color:var(--muted); font-size:var(--text-body); line-height:1.5; overflow-wrap:anywhere; }
.evaluation-target-caption strong { color:var(--ink); font-weight:800; }
.evaluation-header-navigation { display:flex; align-items:flex-start; gap:var(--space-xs); }
.evaluation-artist-button { padding:0; }
.director-evaluation-caption { margin:0 0 var(--space-sm); color:var(--muted); font-size:var(--text-meta); line-height:1.55; }
.director-evaluation-note { margin:var(--space-sm) 0 0; color:var(--muted); font-size:var(--text-meta); }
.quick-panel { padding:var(--space-md); gap:var(--space-lg); }
.quick-panel p { font-size:var(--text-meta); line-height:1.6; margin-top:var(--space-xs); }
.modal { padding:var(--space-lg); }
.modal-header { gap:var(--space-md); align-items:flex-start; }
.modal-header h2,.event-detail-modal .event-modal-heading h2 { font-size:22px; line-height:1.3; }
.modal .modal-subtitle,.modal .muted,.modal .compact-confirm-message { font-size:var(--text-meta); line-height:1.6; }
.modal .form-grid { margin-top:var(--space-lg); gap:var(--space-md); }
.modal .form-field label,.task-form-grid .field-label,
.task-form-grid .deadline-mode-field,.task-form-grid .deadline-date-field,
.task-form-grid .deadline-mode-field .field-label { font-size:var(--text-meta); line-height:1.5; }
.modal .form-field input,.modal .form-field select,.modal .form-field textarea,
.special-slot-times input { font-size:var(--text-body); padding:10px 12px; border-radius:10px; }
.modal .form-field :is(input,select) { min-height:42px; }
body .task-form-grid .form-field select { appearance:none; -webkit-appearance:none; background-image:none!important; padding-right:12px!important; }
.modal .form-field textarea { min-height:96px; line-height:1.6; }
.modal-footer { margin-top:var(--space-lg); gap:var(--space-xs); padding-top:0; }
.form-error:empty { display:none; }
.evaluation-form-modal input[type=number] { appearance:textfield; -moz-appearance:textfield; }
.evaluation-form-modal input[type=number]::-webkit-inner-spin-button,
.evaluation-form-modal input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.lineup-modal .lineup-dj-option strong,.lineup-modal .assigned-name { font-size:var(--text-body); line-height:1.45; }
body .lineup-modal .assigned-name,
body .lineup-modal .lineup-dj-option.selected strong {
  color:var(--ink);
}
.lineup-modal .lineup-dj-option small,.lineup-modal .choose-assignee,
.lineup-modal .lineup-assignee-row>span,.lineup-hint,.special-slot-times>label { font-size:var(--text-meta); line-height:1.5; }
.lineup-modal .lineup-zone-title,.event-detail-modal .event-zone>h3 { font-size:var(--text-meta); line-height:1.5; }
.lineup-modal .lineup-assignment-heading strong,.event-detail-modal .slot-summary-time strong,
.event-detail-modal .slot-summary-dj strong { font-size:var(--text-body); line-height:1.5; }
.event-detail-modal .event-modal-heading p,.event-detail-modal .event-date-line,
.event-detail-modal .rating-toggle,.event-detail-modal .rating-toggle strong,
.event-detail-modal .rating-criteria div,.event-detail-modal .rating-details-body blockquote,
.event-detail-modal .failure-card,.event-detail-modal .reserve-card { font-size:var(--text-meta); line-height:1.6; }
.notice-group>summary,.notice-item strong { font-size:var(--text-body); line-height:1.5; }
.check-row,.meeting-recipient-grid .recipient-name,.slot-zone-filter .zone-choice,
.lineup-step,.lineup-step-zone>span { font-size:var(--text-meta); line-height:1.5; }
.form-field input,.form-field select,.form-field textarea { border-color:var(--line); }
body .event-form-modal .form-field input[aria-invalid="true"] {
  border-color:var(--red);
  box-shadow:0 0 0 2px var(--negative-bg);
}
body .task-form-modal .form-field input[aria-invalid="true"],
body .meeting-form-modal .form-field input[aria-invalid="true"],
body #quickMeetingForm .form-field input[aria-invalid="true"] {
  border-color:var(--red);
  box-shadow:0 0 0 2px var(--negative-bg);
}
.segmented-date-time {
  appearance:none;
  -webkit-appearance:none;
}
.segmented-date-time::-webkit-calendar-picker-indicator,
.segmented-date-time::-webkit-inner-spin-button,
.segmented-date-time::-webkit-clear-button {
  display:none!important;
}
.segmented-date-time::-webkit-datetime-edit {
  padding:0;
}
.segmented-date-time::-webkit-date-and-time-value {
  text-align:left;
}
.auth-role-tab,.stack-form label,.auth-card>small { font-size:var(--text-meta); line-height:1.6; }
.stack-form input { font-size:var(--text-body); min-height:44px; border-radius:10px; }
.profile-mini strong,.profile-mini small,.breadcrumb,.nav-label,.sidebar .text-link { font-size:var(--text-meta); }
.calendar-event { padding:var(--space-sm); }
.calendar-event-head { padding-left:var(--space-xs); padding-right:0; }
.calendar-slots { gap:var(--space-xs); margin-top:var(--space-sm); }
.calendar-slot { padding:var(--space-xs); gap:6px; background:var(--slot-surface); }
.empty-state,.calendar-empty { font-size:var(--text-meta); line-height:1.6; padding:var(--space-md); }
@media(min-width:761px) and (max-width:1200px) {
  .calendar-event-head { flex-direction:row; gap:var(--space-xs); }
  .calendar-event-copy { width:auto; }
  .calendar-event-status { align-self:flex-start; }
  .calendar-event-status .status { overflow-wrap:anywhere; }
}
@media(min-width:761px) and (max-width:900px) {
  .calendar-event-head { flex-direction:column; gap:var(--space-xs); }
  .calendar-event-copy { width:100%; }
  .calendar-event-status { align-self:flex-start; }
}
@media(max-width:760px) {
  .panel,.modal { padding:var(--space-md); }
  .hero h1 { font-size:28px; }
  .page-body { padding:24px 16px 40px; }
  .task-card-top { grid-template-columns:minmax(0,1fr) auto; gap:var(--space-sm); }
  .filters select { min-width:0; width:100%; flex-basis:100%; }
  .modal .form-grid { column-gap:var(--space-sm); }
  .lineup-modal .lineup-dj-option { padding:10px 8px; }
  .calendar-slot { grid-template-columns:1fr; }
  .event-detail-modal .event-title-line { align-items:flex-start; flex-wrap:wrap; gap:var(--space-xs); }
  .lineup-event>summary { grid-template-columns:38px minmax(0,1fr); gap:var(--space-xs); }
  .lineup-event .event-heading-row { flex-wrap:nowrap; }
  .lineup-event .event-status { margin-top:0; }
  .lineup-event>.event-row,
  .performance-card.performance-event .event-row {
    grid-template-columns:38px minmax(0,1fr);
    padding-right:var(--space-md);
  }
  .modal .task-form-grid .task-options-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-sm); }
}

/* Final release consistency pass: shared spacing, controls and dark meeting cards. */
.form-field textarea[name="description"] {
  min-height: 96px;
  overflow: hidden;
  resize: none;
}
.notification-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs, 8px);
  align-items: center;
  margin: var(--space-md, 16px) 0;
}
.notification-filters .button {
  text-align: center;
  padding-inline: 14px;
}
.task-filter-control {
  position: relative;
  min-width: 0;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}
.task-filter-control span {
  pointer-events: none;
}
.task-filter-control select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.task-filter-control:has(select:focus-visible) {
  outline: 2px solid var(--hover-outline);
  outline-offset: 3px;
}
body .task-filter-control:hover,
body .task-filter-control:focus-within,
body .task-filter-control:has(select:focus-visible) {
  box-shadow:none;
  outline:0;
}
.task-filters {
  display: flex;
  flex-wrap: wrap;
  max-width: none;
  gap: var(--space-xs, 8px);
  margin: var(--space-md, 16px) 0;
}
.meeting-card > summary,
.meeting-card-body {
  color: var(--ink);
  background: var(--surface);
}
.meeting-card > summary {
  border-bottom: 0;
}
.meeting-card-body {
  padding-top: 14px;
}
.meeting-card-heading h3 { color: var(--ink); }
.meeting-card-heading p { color: var(--muted); }
.meeting-card .assignment-row,
.meeting-modal .assignment-row {
  color: var(--ink);
  background: var(--slot-surface);
  border-color: var(--line);
  border-radius: var(--card-radius);
}
.meeting-card .meeting-card-status .status {
  border: 1px solid currentColor;
}
.task-details {
  margin-top: var(--space-md, 16px);
  padding-top: var(--space-md, 16px);
  border-top: 1px solid var(--line);
}
.task-details .task-recipients {
  margin-top: 0;
}
.task-details .task-meta-details {
  margin-top: var(--space-sm, 12px);
  padding-top: 0;
  border-top: 0;
}
.task-progress-times {
  margin-top: var(--space-sm, 12px);
  line-height: 1.55;
}
.performance-period {
  font-size: 11px;
}
.frequency-period {
  font-size: 11px;
}
.performance-slot-frame,
.lineup-final > .calendar-slot,
.performance-card .calendar-slot,
.event-row {
  border-radius: 12px;
}
.performance-slot-frame {
  padding: var(--space-sm, 12px);
}
.event-list {
  margin-top: var(--space-sm, 12px);
}
.quick-meeting-controls {
  --quick-control-height: 44px;
}
body #quickMeetingForm .segmented-date-time {
  background:#fff;
}
body.theme-dark #quickMeetingForm .segmented-date-time {
  background:#292930;
}
.quick-meeting-fields,
.quick-meeting-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.quick-meeting-fields .form-field input,
.quick-meeting-actions .button {
  width: 100%;
  min-width: 0;
  height: var(--quick-control-height);
  min-height: var(--quick-control-height);
  padding: 8px 10px;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .quick-meeting-controls {
    --quick-control-height: 56px;
  }
}
.director-evaluation-event {
  display: grid;
  gap: 4px;
  margin-top: var(--space-lg, 24px);
  margin-bottom: var(--space-md, 16px);
}
.director-evaluation-event strong {
  font-size: var(--text-body, 13px);
  font-weight: 800;
}
.director-evaluation-event span {
  color: var(--muted);
  font-size: var(--text-meta, 11px);
}
.evaluation-navigation .panel-corner-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  text-align: center;
  font-size: 14px;
}
.director-evaluation-note {
  padding: var(--space-md, 16px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius, 10px);
  font-style: italic;
  white-space: pre-wrap;
}
.director-history-note {
  margin:var(--space-sm) 0 0;
  padding:var(--space-md);
  border:1px solid var(--line);
  border-radius:var(--card-radius);
  color:var(--muted);
  font-style:italic;
  white-space:pre-wrap;
}
/* Targeted visual corrections from the final QA pass. */
.task-progress-times {
  display: grid;
  gap: 4px;
  margin-top: var(--space-lg, 24px);
  color: var(--muted);
  font: var(--text-meta, 11px) 'Manrope', sans-serif;
  line-height: 1.55;
}
.task-details .task-meta-details {
  margin-top: var(--space-sm, 12px);
}
.task-details .task-progress-times {
  margin-bottom: 0;
}
.meeting-card-body::before {
  display: none;
}
body.theme-dark .meeting-card,
body.theme-dark .meeting-card > summary,
body.theme-dark .meeting-card-body {
  background: var(--surface);
}
.meeting-card .status {
  border: 1px solid currentColor;
}
body.theme-dark .meeting-card .status {
  border-color: currentColor;
}
.director-evaluation-panel-header {
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-sm, 12px);
}
.director-evaluation-panel-header h2 {
  order: 1;
  margin: 0;
}
.director-evaluation-panel-header .evaluation-navigation {
  order: 2;
  align-self: center;
  flex-shrink: 0;
}
.home-task-panel .panel-header {
  align-items: center;
}
.home-task-panel .evaluation-navigation {
  align-self: center;
  flex-shrink: 0;
}
.evaluation-navigation .evaluation-nav {
  position: relative;
  inset: auto;
}
.evaluation-navigation .evaluation-nav::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  z-index: 2;
  padding: 4px 7px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity .15s ease, transform .15s ease;
}
.evaluation-navigation .evaluation-nav:hover::after,
.evaluation-navigation .evaluation-nav:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.performance-modal .performance-slot-frame {
  margin-top: var(--space-lg, 24px);
}
.performance-modal .performance-actions .button,
.performance-modal .comment-actions .button,
.performance-modal > .modal-footer .button {
  min-height: 42px;
}
@media(max-width:760px) {
  .event-detail-modal .performance-history-slot .slot-detail-summary { min-height:48px; padding:11px 12px; }
  .evaluation-form-modal .modal-header { row-gap:var(--space-sm); }
  .evaluation-form-modal .modal-header>div:first-child { grid-column:1 / -1; grid-row:2; }
  .evaluation-header-navigation { grid-column:2; grid-row:1; }
  .evaluation-form-modal .modal-header>.modal-close { grid-row:1; }
  .calendar-event-centered { column-gap:var(--space-sm); }
  .calendar-event-centered .calendar-event-status { max-width:110px; }
}
.performance-modal .performance-actions {
  gap: var(--space-sm, 12px);
}

/* Actual-set cards use the same neutral slot surface as future sets. */
.performance-modal .performance-history-slot {
  background:var(--slot-surface);
  border-color:var(--line);
}
.profile-performance-slot {
  background:var(--slot-surface);
  border-color:var(--line);
}
body.theme-dark .performance-modal .performance-history-slot,
.performance-card.performance-event,
.performance-card.performance-event .event-row {
  background:var(--slot-surface);
  border-color:var(--line);
}

/* Art-meeting quick panel uses the neutral application palette. */
body .quick-panel {
  background:var(--surface);
  border-color:var(--line);
}
body .quick-spark {
  color:var(--muted-dark);
  background:var(--surface);
}
body.theme-dark .quick-panel {
  background:var(--surface);
  border-color:var(--line);
}
body.theme-dark .quick-spark {
  color:var(--ink);
  background:#292930;
}

/* Mobile audit: contain dialogs and preserve every action in both orientations. */
@media (min-width:761px) {
  .app-shell>.sidebar { padding-bottom:52px; }
}
@media (max-width:760px), (max-width:1024px) and (max-height:540px) {
  .attention-list { grid-template-columns:1fr; }
  .app-shell { display:block; }
  .sidebar { width:100%; min-height:0; }
  .main-content { width:100%; min-width:0; }
  .app-shell>.sidebar-bottom {
    display:grid;
    gap:12px;
    margin:0;
    padding:16px 16px 24px;
    background:#0b0b10;
    color:#fff;
  }
  .app-shell>.sidebar-bottom .button {
    color:#dedee3;
    background:#292930;
    border-color:#3a3a44;
  }
  .app-shell>.sidebar-bottom .text-link { color:#dedee3; }
  .modal-backdrop {
    padding:12px;
    padding-top:max(12px,env(safe-area-inset-top));
    padding-bottom:max(12px,env(safe-area-inset-bottom));
  }
  .modal-backdrop .modal {
    min-width:0;
    width:min(760px,100%);
    max-width:100%;
    max-height:calc(100dvh - 24px);
    max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .modal .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-field,.form-field label { min-width:0; }
  .modal-header>div { min-width:0; }
  .modal-header h2 { overflow-wrap:anywhere; }
  .modal-close { flex-shrink:0; }
  .modal .modal-footer .button { min-height:40px; }
}
@media (max-width:1024px) and (max-height:540px) {
  .sidebar {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px 16px;
    padding:12px 16px;
  }
  .sidebar>.venue-card { margin:0; }
  .sidebar>.venue-schedule { grid-column:1 / -1; margin:0; }
  .sidebar>.main-nav {
    grid-column:1 / -1;
    flex-direction:row;
    overflow-x:auto;
    min-width:0;
  }
  .sidebar .nav-label { display:none; }
  .sidebar .nav-item { flex:0 0 auto; width:auto; white-space:nowrap; }
  .main-content>.topbar { height:56px; padding:0 16px; }
  .page-body { padding:24px 16px 40px; }
  .main-content .month-headings { display:none; }
  .main-content .month-week { display:block; }
  .main-content .month-padding { display:none; }
  .main-content .mobile-weekday { display:block; }
  .main-content .month-day { border-right:0; border-bottom:1px solid var(--line); }
  .calendar-event-head { flex-direction:row; }
}

/* Hide scrollbar chrome everywhere without disabling wheel, touch or keyboard scrolling. */
* { scrollbar-width:none!important; }
*::-webkit-scrollbar { display:none!important; width:0!important; height:0!important; }

/* Invitation cards use the same lighter slot surface as the calendar cards. */
.dj-invitation-list .invitation-event-card > .event-row {
  background:var(--slot-surface);
}
