:root {
  --navy-950: #0e1a2e;
  --navy-900: #13233d;
  --navy-800: #1a2e4f;
  --ink: #182943;
  --muted: #72819a;
  --muted-2: #9ba8bb;
  --line: #e4e9f1;
  --panel: #ffffff;
  --page: #f4f7fb;
  --control: #fbfcfe;
  --purple: #6f5be7;
  --purple-2: #ede9ff;
  --teal: #1f9c93;
  --teal-2: #ddf6f2;
  --lime: #c9e86b;
  --orange: #ec9450;
  --orange-2: #fff0e4;
  --red: #cf5c63;
  --red-2: #ffebed;
  --shadow: 0 12px 34px rgba(32, 56, 92, 0.08);
  --shadow-soft: 0 3px 14px rgba(32, 56, 92, 0.05);
  --radius: 18px;
  --radius-sm: 11px;
}

html[data-theme="dark"] {
  --navy-950: #070b13;
  --navy-900: #0e1727;
  --navy-800: #182944;
  --ink: #edf3fc;
  --muted: #9aa8bc;
  --muted-2: #718096;
  --line: #293548;
  --panel: #151d2b;
  --page: #0b111c;
  --control: #101927;
  --purple-2: #292445;
  --teal-2: #123a38;
  --orange-2: #3d2a1d;
  --red-2: #3d242a;
  --shadow: 0 12px 34px rgba(0, 0, 0, .28);
  --shadow-soft: 0 3px 14px rgba(0, 0, 0, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
select { color-scheme: inherit; }
option { color: var(--ink); background: var(--panel); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 21px; height: 21px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  color: #dfe7f3;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: auto;
}

.brand { display: flex; gap: 11px; align-items: center; padding: 2px 10px 30px; }
.brand-mark { position: relative; display: grid; width: 35px; height: 35px; place-items: center; color: var(--navy-950); background: var(--lime); border-radius: 10px 10px 10px 3px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -1px; }
.brand-mark::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 11px; height: 11px; background: var(--orange); border-radius: 50%; border: 3px solid var(--navy-900); }
.brand-copy { display: flex; flex-direction: column; gap: 0; }
.brand-name { color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.brand-sub { color: #8f9eb6; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.sidebar-label { padding: 0 10px 9px; color: #70809b; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; border-radius: 11px; padding: 11px 12px; color: #aebbd0; background: transparent; text-align: left; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active { color: #f7f9ff; background: #294363; box-shadow: inset 3px 0 0 var(--lime); }
.nav-item .icon { color: #8392aa; }
.nav-item.active .icon { color: var(--lime); }
.nav-item-copy { display: flex; flex: 1; justify-content: space-between; align-items: center; }
.nav-count { display: grid; min-width: 21px; height: 21px; place-items: center; border-radius: 999px; color: #c7d5e9; background: rgba(255,255,255,.1); font-size: 11px; }
.sidebar-spacer { flex: 1; min-height: 35px; }
.sidebar-help { margin: 14px 7px 18px; padding: 14px; border: 1px solid rgba(201,232,107,.19); border-radius: 14px; background: rgba(201,232,107,.07); }
.sidebar-help .icon { color: var(--lime); }
.sidebar-help strong { display: block; margin-top: 9px; color: #f2f8de; font-size: 12px; }
.sidebar-help p { margin: 4px 0 0; color: #a7b6c9; font-size: 11px; line-height: 1.5; }
.user-card { display: flex; gap: 10px; align-items: center; padding: 12px 9px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; flex: 0 0 auto; width: 33px; height: 33px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #7b6cf0, #4a90b8); font-size: 12px; font-weight: 700; }
.avatar.avatar-sm { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }
.user-copy { min-width: 0; flex: 1; }
.user-name { overflow: hidden; color: #eef3fb; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-role { margin-top: 2px; color: #8090aa; font-size: 11px; }
.icon-button { display: grid; width: 33px; height: 33px; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #92a2b8; background: transparent; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.1); }

.main { min-width: 0; }
.topbar { position: sticky; z-index: 4; top: 0; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 42px; border-bottom: 1px solid rgba(222,229,239,.85); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.topbar-left { display: flex; align-items: center; gap: 15px; min-width: 0; }
.mobile-menu { display: none; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #50bd82; box-shadow: 0 0 0 4px #e0f5e9; }
.page-title { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.week-picker { display: flex; height: 39px; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.week-picker button { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.week-picker button:hover { color: var(--ink); background: var(--page); }
.week-label { min-width: 139px; padding: 0 6px; text-align: center; color: var(--ink); font-size: 12px; font-weight: 700; }
.week-picker .week-label { display: block; width: auto; height: auto; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.week-picker .week-label:hover { color: var(--purple); background: var(--page); transform: none; }
.field-help { display: block; margin: 4px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.button { display: inline-flex; height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--purple); font-size: 12px; font-weight: 700; box-shadow: 0 5px 12px rgba(111,91,231,.16); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { background: #5f4bd4; box-shadow: 0 8px 16px rgba(111,91,231,.22); transform: translateY(-1px); }
.button.button-ghost { color: var(--ink); border-color: var(--line); background: #fff; box-shadow: none; }
.button.button-ghost:hover { color: var(--purple); border-color: #d9d3ff; background: #fbfaff; box-shadow: none; }
.button.button-dark { color: #fff; background: var(--navy-900); box-shadow: none; }
.button.button-dark:hover { background: var(--navy-800); box-shadow: none; }
.button.button-small { height: 33px; padding: 0 11px; border-radius: 9px; font-size: 11px; }
.button.button-link { height: auto; padding: 0; color: var(--purple); background: transparent; box-shadow: none; }
.button.button-link:hover { background: transparent; box-shadow: none; transform: none; }
.button.button-danger { color: #fff; background: var(--red); box-shadow: 0 5px 12px rgba(207,92,99,.16); }
.button.button-danger:hover { background: #b94c55; box-shadow: 0 8px 16px rgba(207,92,99,.22); }

.page { max-width: 1540px; margin: 0 auto; padding: 33px 42px 58px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 27px; }
.page-heading h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 28px; letter-spacing: -.8px; }
.page-heading p { max-width: 600px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.status-note { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #dce5f0; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.72); font-size: 11px; }
.status-note .icon { color: var(--teal); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.stat-card { position: relative; min-height: 124px; overflow: hidden; padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-soft); }
.stat-card::after { position: absolute; right: -22px; bottom: -27px; width: 92px; height: 92px; content: ""; border-radius: 50%; background: var(--purple-2); opacity: .55; }
.stat-card.teal::after { background: var(--teal-2); }
.stat-card.orange::after { background: var(--orange-2); }
.stat-card.lime::after { background: #f3f9d8; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stat-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: var(--purple); background: var(--purple-2); }
.stat-card.teal .stat-icon { color: var(--teal); background: var(--teal-2); }
.stat-card.orange .stat-icon { color: var(--orange); background: var(--orange-2); }
.stat-card.lime .stat-icon { color: #769616; background: #f3f9d8; }
.stat-value { position: relative; z-index: 1; margin-top: 16px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 31px; font-weight: 700; letter-spacing: -1px; }
.stat-meta { position: relative; z-index: 1; margin-top: 2px; color: var(--muted); font-size: 11px; }
.stat-meta .up { color: var(--teal); font-weight: 700; }
.stat-meta .warn { color: var(--orange); font-weight: 700; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-soft); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 23px 18px; }
.panel-header h2 { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 16px; letter-spacing: -.3px; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 0 23px 23px; }
.subtle-divider { height: 1px; background: var(--line); }

.availability-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.availability-panel { overflow: hidden; }
.save-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; color: var(--teal); background: var(--teal-2); font-size: 11px; font-weight: 700; }
.day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.day-card { display: block; min-height: 151px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.day-card:hover { border-color: #cfc8ff; }
.day-card.is-on { border-color: #cfc8ff; background: #faf9ff; box-shadow: inset 0 0 0 1px #eeeaff; }
.day-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.day-name { display: block; color: var(--ink); font-size: 12px; font-weight: 700; }
.day-date { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.switch { position: relative; display: inline-block; width: 29px; height: 18px; flex: 0 0 auto; }
.switch input { width: 0; height: 0; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 20px; background: #d9e0e9; transition: background .18s ease; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; content: ""; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10,20,35,.18); transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--purple); }
.switch input:checked + .switch-track::after { transform: translateX(11px); }
.time-fields { display: flex; align-items: center; gap: 4px; margin-top: 24px; }
.time-fields input { width: 100%; min-width: 0; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; text-align: center; }
.time-fields input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.time-fields input:disabled { color: #aab4c3; background: #f1f4f8; }
.time-fields span { color: var(--muted-2); font-size: 11px; }
.day-footnote { display: flex; align-items: center; gap: 5px; margin-top: 13px; color: var(--muted); font-size: 10px; }
.day-footnote .icon { width: 13px; height: 13px; }
.day-card.is-off .day-footnote { color: #aeb8c6; }
.availability-form-section { margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.form-section-title h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-section-title p { margin: 0; color: var(--muted); font-size: 11px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { position: relative; }
.choice-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-chip label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.choice-chip label:hover { border-color: #cfc8ff; color: var(--purple); }
.choice-chip input:checked + label { border-color: #bcb2ff; color: #5c4bd1; background: var(--purple-2); }
.choice-chip input:checked + label::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--purple); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 21px; }
.form-hint { margin-right: auto; color: var(--muted); font-size: 11px; }

.side-stack { display: flex; flex-direction: column; gap: 18px; }
.profile-panel { padding: 22px; }
.profile-overview { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-overview .avatar { width: 45px; height: 45px; border-radius: 14px; font-size: 15px; }
.profile-overview h3 { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 15px; }
.profile-overview p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.profile-stat-row { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-stat-label { color: var(--muted); font-size: 11px; }
.profile-stat-value { color: var(--ink); font-size: 11px; font-weight: 700; text-align: right; }
.progress { height: 7px; overflow: hidden; margin-top: 12px; border-radius: 99px; background: #edf1f6; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #9a8cff); }
.tip-panel { padding: 18px 19px; border: 0; color: #eef5dc; background: linear-gradient(135deg, #395051, #253e4a); box-shadow: none; }
.tip-panel .tip-kicker { display: flex; align-items: center; gap: 7px; color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tip-panel h3 { margin: 12px 0 6px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 15px; }
.tip-panel p { margin: 0; color: #c5d4ce; font-size: 11px; line-height: 1.6; }

.dashboard-toolbar { display: flex; align-items: center; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.toolbar-label { display: flex; align-items: center; gap: 7px; margin-right: 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.toolbar-label .icon { color: var(--purple); }
.select-wrap { position: relative; }
.select-wrap select { min-width: 131px; height: 35px; appearance: none; padding: 0 32px 0 10px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: var(--control); font-size: 11px; font-weight: 600; }
.select-wrap select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.select-wrap .icon { position: absolute; top: 10px; right: 9px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.search-box { position: relative; margin-left: auto; }
.search-box .icon { position: absolute; top: 10px; left: 10px; color: var(--muted-2); }
.search-box input { width: 180px; height: 35px; padding: 0 10px 0 32px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: var(--control); font-size: 11px; }
.search-box input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .95fr); gap: 18px; margin-top: 18px; align-items: start; }
.schedule-column { display: flex; flex-direction: column; gap: 14px; }
.staff-schedule-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.staff-schedule-column { min-width: 0; }
.compact-empty { min-height: 180px; }
.staff-schedule-tip { margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 16px; letter-spacing: -.25px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.section-heading .count { display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 7px; color: var(--purple); background: var(--purple-2); font-size: 10px; font-weight: 700; }
.shift-card { overflow: hidden; padding: 17px 18px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.shift-head { display: flex; gap: 13px; align-items: flex-start; }
.date-tile { display: flex; width: 49px; height: 54px; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 12px; color: var(--purple); background: var(--purple-2); }
.date-tile .day { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.date-tile .number { margin-top: -2px; font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; }
.shift-info { min-width: 0; flex: 1; }
.shift-title-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.shift-title-line h3 { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 14px; letter-spacing: -.2px; }
.game-pill { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 6px; color: #4d6889; background: #edf3fb; font-size: 9px; font-weight: 700; }
.shift-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.shift-meta .icon { width: 13px; height: 13px; }
.open-badge { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 8px; border-radius: 7px; color: var(--orange); background: var(--orange-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.open-badge.full { color: var(--teal); background: var(--teal-2); }
.slot-list { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.slot-row { display: flex; min-height: 34px; align-items: center; gap: 9px; }
.slot-role { display: flex; width: 124px; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.role-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--purple); }
.role-dot.producer { background: var(--orange); }
.role-dot.observer { background: #55a2dc; }
.role-dot.caster { background: var(--purple); }
.role-dot.pbp { background: var(--purple); }
.role-dot.color { background: #dc70a7; }
.role-dot.stream, .role-dot.stream-tech { background: var(--teal); }
.slot-person { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 600; }
.slot-person.open { color: var(--orange); font-weight: 700; }
.slot-person .avatar { width: 25px; height: 25px; border-radius: 8px; font-size: 9px; }
.slot-actions { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.slot-request-count { display: inline-flex; align-items: center; margin-left: 5px; padding: 2px 5px; border-radius: 5px; color: var(--purple); background: var(--purple-2); font-size: 9px; font-weight: 800; }
.assign-button { display: inline-flex; height: 27px; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 700; }
.assign-button:hover { border-color: #cfc8ff; color: var(--purple); background: #fbfaff; }
.request-button { color: var(--purple); }
.request-button:disabled { border-color: transparent; color: var(--teal); background: var(--teal-2); cursor: default; opacity: 1; }
.request-button:disabled:hover { border-color: transparent; color: var(--teal); background: var(--teal-2); }
.request-status { display: inline-flex; align-items: center; height: 27px; padding: 0 7px; border-radius: 7px; font-size: 10px; font-weight: 800; }
.request-status.approved { color: var(--teal); background: var(--teal-2); }
.shift-footer { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.shift-footer .button { height: 29px; padding: 0 9px; border-radius: 8px; font-size: 10px; }
.shift-footer .button.button-ghost { color: var(--muted); }
.shift-footer .button.danger-button { color: var(--red); }
.shift-footer .button.danger-button:hover { border-color: #f1c4c8; color: var(--red); background: var(--red-2); }
.shift-footer .button:last-child { margin-left: auto; }
.empty-state { display: flex; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border: 1px dashed #d7dfeb; border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.6); text-align: center; }
.empty-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 10px; border-radius: 14px; color: var(--purple); background: var(--purple-2); }
.empty-state h3 { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 14px; }
.empty-state p { max-width: 300px; margin: 5px 0 14px; font-size: 11px; }

.coverage-panel { overflow: hidden; }
.coverage-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 23px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfe; }
.coverage-number { color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; }
.coverage-copy { color: var(--muted); font-size: 11px; }
.coverage-copy strong { color: var(--ink); }
.coverage-summary .progress { width: 115px; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 23px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 23px; border-bottom: 1px solid #eef1f5; color: var(--ink); font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.staff-cell { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.staff-cell-copy { min-width: 0; }
.staff-cell strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.staff-cell small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.role-pills { display: flex; flex-wrap: wrap; gap: 4px; max-width: 150px; }
.role-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; color: #5d6d84; background: #f0f3f7; font-size: 9px; font-weight: 700; }
.role-pill.producer { color: #b86a25; background: var(--orange-2); }
.role-pill.observer { color: #2872a8; background: #e4f3fc; }
.role-pill.caster, .role-pill.pbp { color: #5c4bd1; background: var(--purple-2); }
.role-pill.color { color: #a34778; background: #fbe9f2; }
.role-pill.stream, .role-pill.stream-tech { color: #167c73; background: var(--teal-2); }
.availability-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 0 7px; border-radius: 7px; color: var(--teal); background: var(--teal-2); font-size: 9px; font-weight: 800; white-space: nowrap; }
.availability-link { border: 0; font: inherit; cursor: pointer; }
.availability-link:hover { color: var(--purple); background: var(--purple-2); }
.availability-pill.missing { color: var(--red); background: var(--red-2); }
.availability-pill .icon { width: 12px; height: 12px; }
.game-list { max-width: 150px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.team-panel { overflow: hidden; }
.team-toolbar { display: flex; align-items: center; gap: 9px; padding: 0 23px 18px; }
.team-toolbar .search-box { margin-left: 0; }
.team-toolbar .search-box input { width: 250px; }
.team-toolbar .select-wrap select { min-width: 135px; }
.team-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mini-kpi { padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.mini-kpi-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.mini-kpi-value { margin-top: 4px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 23px; font-weight: 700; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 18px; align-items: start; }
.settings-panel { overflow: hidden; }
.settings-people, .settings-templates { grid-column: 1 / -1; }
.settings-toolbar { display: flex; align-items: center; gap: 12px; padding: 0 23px 17px; }
.settings-toolbar .search-box { margin-left: 0; }
.settings-inline-stat { margin-left: auto; color: var(--muted); font-size: 11px; }
.settings-inline-stat strong { color: var(--ink); }
.settings-roster { padding: 0 23px; }
.settings-person-row { display: grid; grid-template-columns: auto minmax(160px, 1.05fr) minmax(150px, .9fr) auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #eef1f5; }
.settings-person-info { min-width: 0; }
.settings-person-info strong { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.settings-person-info span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.settings-role-pills { max-width: 220px; }
.settings-person-actions { display: flex; align-items: center; gap: 6px; }
.settings-person-actions .danger-button { color: var(--red); }
.settings-person-actions .danger-button:hover { border-color: #f1c4c8; color: var(--red); background: var(--red-2); }
.settings-form { padding: 0 23px 23px; }
.settings-subsection { padding: 18px 0; border-top: 1px solid var(--line); }
.settings-subsection:first-child { padding-top: 0; border-top: 0; }
.settings-subhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 11px; }
.settings-subhead h3 { margin: 0; color: var(--ink); font-size: 12px; }
.settings-subhead p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.settings-count { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--purple); background: var(--purple-2); font-size: 10px; font-weight: 800; }
.catalog-list { display: flex; flex-direction: column; gap: 7px; }
.catalog-row { display: flex; align-items: center; gap: 7px; }
.catalog-row input { min-width: 0; width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: #fbfcfe; font-size: 11px; }
.catalog-row input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.catalog-row .icon-button { width: 31px; height: 31px; flex: 0 0 auto; color: var(--muted-2); }
.catalog-row .icon-button:hover { color: var(--red); background: var(--red-2); }
.inline-add { display: flex; gap: 7px; margin-top: 9px; }
.inline-add input { min-width: 0; flex: 1; height: 34px; padding: 0 9px; border: 1px dashed #cfd8e4; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font-size: 11px; }
.inline-add input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.settings-callout { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 10px 11px; border: 1px solid #dbece8; border-radius: 9px; color: #3b6e69; background: #f1fbf8; font-size: 10px; line-height: 1.5; }
.settings-callout .icon { color: var(--teal); flex: 0 0 auto; }
.delete-warning { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border: 1px solid #f2c8cc; border-radius: 11px; color: var(--red); background: var(--red-2); }
.delete-warning > .icon { flex: 0 0 auto; margin-top: 1px; }
.delete-warning strong, .delete-warning span, .delete-warning p { display: block; }
.delete-warning strong { color: var(--ink); font-size: 12px; }
.delete-warning span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.delete-warning p { margin: 9px 0 0; color: #8f4a50; font-size: 10px; line-height: 1.5; }
.settings-toggle-row { display: flex; flex-wrap: wrap; gap: 15px; }
.check-line { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 600; }
.check-line input { accent-color: var(--purple); }
.settings-template-list { display: flex; flex-direction: column; padding: 0 23px; }
.settings-template-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #eef1f5; }
.settings-template-row .date-tile { width: 42px; height: 42px; border-radius: 10px; }
.settings-template-row .date-tile .day { display: grid; place-items: center; height: 17px; }
.settings-template-row .date-tile .number { font-size: 17px; }
.settings-template-info { min-width: 0; flex: 1; }
.settings-template-info strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.settings-template-info span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.settings-template-info small { display: block; overflow: hidden; margin-top: 3px; color: var(--purple); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.settings-template-row > .icon-button { color: var(--muted-2); }
.settings-template-row > .icon-button:hover { color: var(--red); background: var(--red-2); }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(10, 22, 40, .58); backdrop-filter: blur(4px); }
.modal { width: min(100%, 570px); max-height: min(780px, calc(100vh - 44px)); overflow: auto; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: #fff; box-shadow: 0 25px 70px rgba(11,28,52,.3); animation: modal-in .22s ease both; }
.modal.modal-small { width: min(100%, 430px); }
.modal.modal-wide { width: min(100%, 930px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 22px 23px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: -.4px; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 20px 23px 23px; }
.modal-close { width: 32px; height: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--ink); font-size: 11px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: var(--control); font-size: 12px; }
.form-field textarea { min-height: 75px; padding-top: 9px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.availability-detail-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
.availability-detail-meta { display: flex; max-width: 52%; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; text-align: right; }
.availability-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.availability-detail-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 11px; }
.availability-detail-day span { color: var(--teal); font-weight: 800; }
.availability-calendar { display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)); gap: 9px; overflow-x: auto; padding-bottom: 3px; }
.availability-day-column { min-width: 125px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
.availability-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 10px; }
.availability-day-heading span { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 6px; color: var(--purple); background: var(--purple-2); font-size: 9px; font-weight: 800; }
.availability-calendar-entry { display: flex; width: 100%; flex-direction: column; gap: 3px; margin-top: 7px; padding: 8px; border: 1px solid #e4defd; border-radius: 8px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.availability-calendar-entry:hover { border-color: #bcb2ff; background: #fbfaff; }
.availability-calendar-entry strong { overflow: hidden; color: var(--purple); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.availability-calendar-entry span { color: var(--muted); font-size: 9px; }
.calendar-empty { padding: 15px 3px 7px; color: var(--muted-2); font-size: 9px; line-height: 1.4; text-align: center; }
.role-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-option { position: relative; }
.role-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.role-option label { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); font-size: 11px; font-weight: 600; cursor: pointer; }
.role-option input:checked + label { border-color: #bcb2ff; color: var(--purple); background: var(--purple-2); }
.role-option input:checked + label::after { width: 6px; height: 6px; margin-left: auto; content: ""; border-radius: 50%; background: var(--purple); }
.assign-list { display: flex; flex-direction: column; gap: 8px; max-height: 395px; overflow: auto; }
.assignee-option { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--panel); text-align: left; transition: border-color .15s ease, background .15s ease; }
.assignee-option:hover { border-color: #bcb2ff; background: #fbfaff; }
.assignee-option .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }
.assignee-info { min-width: 0; flex: 1; }
.assignee-info strong { display: block; font-size: 11px; }
.assignee-info span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.eligibility { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 9px; font-weight: 800; }
.eligibility .icon { width: 12px; height: 12px; }
.clear-assignee { margin-top: 11px; color: var(--red); }
.assign-context { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; color: var(--muted); background: #f7f9fc; font-size: 11px; }
.assign-context strong { color: var(--ink); }
.request-panel { margin-bottom: 14px; padding: 11px 12px; border: 1px solid #e5defb; border-radius: 11px; background: #fbfaff; }
.request-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--purple); font-size: 11px; }
.request-panel-heading span { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; color: var(--purple); background: var(--purple-2); font-size: 10px; }
.request-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 0; border-top: 1px solid #ebe7fb; }
.request-row:first-of-type { border-top: 0; }
.request-row > div:first-child { min-width: 0; flex: 1; }
.request-row strong { display: block; color: var(--ink); font-size: 11px; }
.request-row span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.request-row-actions { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.request-row-actions .button { height: 27px; padding: 0 8px; font-size: 10px; }
.assignment-history { margin-bottom: 14px; padding: 11px 12px 4px; border: 1px solid #dce8f2; border-radius: 11px; background: #f8fbfd; }
.assignment-history-muted { border-color: #f1e4c8; background: #fffaf0; }
.assignment-history-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--ink); font-size: 11px; }
.assignment-history-heading > div { display: flex; align-items: center; gap: 7px; }
.assignment-history-heading span { color: var(--muted); font-size: 9px; font-weight: 600; }
.assignment-history-row { display: flex; gap: 9px; padding: 8px 0; border-top: 1px solid #e6eef4; }
.assignment-history-row:first-of-type { border-top: 0; }
.assignment-history-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.assignment-history-dot.reassigned { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-2); }
.assignment-history-dot.unassigned { background: var(--red); box-shadow: 0 0 0 3px var(--red-2); }
.assignment-history-copy { min-width: 0; flex: 1; }
.assignment-history-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.assignment-history-main strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.assignment-history-action { color: var(--purple); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.assignment-history-action.reassigned { color: var(--orange); }
.assignment-history-action.unassigned { color: var(--red); }
.assignment-history-copy p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.assignment-history-copy small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.assignment-history-empty { margin: 0 0 8px; color: var(--muted); font-size: 10px; }

.availability-save-needed { color: var(--orange); background: var(--orange-2); }
.availability-week-context { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 13px 14px; border: 1px solid #e4defb; border-radius: 12px; background: linear-gradient(135deg, #fbfaff, #f8fbff); }
.availability-week-context .eyebrow { margin-bottom: 3px; color: var(--purple); font-size: 9px; }
.availability-week-context strong { display: block; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 15px; letter-spacing: -.2px; }
.availability-week-context p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.availability-source-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 8px; color: var(--orange); background: var(--orange-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.availability-source-badge.is-submitted { color: var(--teal); background: var(--teal-2); }
.availability-context-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.availability-deadline { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.availability-deadline .icon { color: var(--purple); }

.role-quantity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-quantity-row { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.role-quantity-label { display: flex; min-width: 0; align-items: center; gap: 7px; }
.role-quantity-label > span:last-child { min-width: 0; }
.role-quantity-label strong, .role-quantity-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-quantity-label strong { color: var(--ink); font-size: 11px; }
.role-quantity-label small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.role-quantity-control { display: inline-flex; flex: 0 0 auto; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--control); }
.role-quantity-button { display: grid; width: 25px; height: 27px; place-items: center; padding: 0; border: 0; color: var(--purple); background: transparent; font-size: 16px; line-height: 1; }
.role-quantity-button:hover { background: var(--purple-2); }
.role-quantity-button:disabled { color: var(--muted-2); background: transparent; cursor: not-allowed; opacity: .55; }
.role-quantity-input { width: 27px !important; min-height: 27px !important; padding: 0 !important; border: 0 !important; border-right: 1px solid var(--line) !important; border-left: 1px solid var(--line) !important; border-radius: 0 !important; color: var(--ink) !important; background: var(--panel) !important; font-size: 11px !important; font-weight: 800; text-align: center; }
.role-quantity-input:focus { box-shadow: none !important; }

.planner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.planner-toolbar-copy { min-width: 0; }
.planner-toolbar-copy .toolbar-label { margin-bottom: 3px; color: var(--purple); }
.planner-toolbar-copy strong, .planner-toolbar-copy > span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planner-toolbar-copy strong { color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 14px; }
.planner-toolbar-copy > span:last-child { margin-top: 3px; color: var(--muted); font-size: 10px; }
.planner-toolbar > .select-wrap select { min-width: 100px; }
.planner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.planner-week { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.planner-week-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff, #fbfcff); }
.planner-week-heading .eyebrow { margin-bottom: 4px; color: var(--purple); font-size: 9px; }
.planner-week-heading h2 { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 15px; letter-spacing: -.3px; }
.planner-week-heading .count { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 7px; color: var(--purple); background: var(--purple-2); font-size: 9px; font-weight: 800; white-space: nowrap; }
.planner-days { display: flex; flex-direction: column; }
.planner-day { padding: 11px 13px 12px; border-bottom: 1px solid #eef1f5; }
.planner-day:last-child { border-bottom: 0; }
.planner-day.is-today { background: #fbfaff; box-shadow: inset 3px 0 0 var(--purple); }
.planner-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.planner-day-heading > div { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.planner-day-heading strong { color: var(--ink); font-size: 11px; }
.planner-day-heading span { color: var(--muted); font-size: 10px; }
.planner-day-heading .assign-button { height: 25px; color: var(--purple); border-color: #dfdafb; background: #fbfaff; }
.planner-day-heading .assign-button:hover { border-color: #bcb2ff; background: var(--purple-2); }
.planner-day-shifts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.planner-day-empty { padding: 5px 7px; border: 1px dashed #dfe5ee; border-radius: 7px; color: var(--muted-2); font-size: 9px; }
.planner-shift { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid #e5e9f1; border-radius: 9px; color: var(--ink); background: #fff; text-align: left; transition: border-color .15s ease, background .15s ease; }
.planner-shift:hover { border-color: #cfc8ff; background: #fbfaff; }
.planner-shift-copy { min-width: 0; }
.planner-shift-copy strong, .planner-shift-copy span, .planner-shift-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planner-shift-copy strong { color: var(--ink); font-size: 10px; }
.planner-shift-copy span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.planner-shift-copy small { margin-top: 2px; color: var(--purple); font-size: 9px; font-weight: 700; }
.planner-shift-status { flex: 0 0 auto; padding: 4px 6px; border-radius: 6px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.planner-shift-status.is-open { color: var(--orange); background: var(--orange-2); }
.planner-shift-status.is-covered { color: var(--teal); background: var(--teal-2); }
.planner-shift-status.is-signup { color: var(--purple); background: var(--purple-2); }

.calendar-toolbar { margin-top: 18px; }
.month-stats { margin-top: 18px; }
.month-calendar-panel { margin-top: 18px; overflow: hidden; }
.month-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 700; }
.month-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.month-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.month-legend-dot.is-open { background: var(--orange); }
.month-legend-dot.is-draft { background: var(--purple); }
.month-legend-dot.is-covered { background: var(--teal); }
.month-calendar-shell { min-width: 0; }
.month-calendar { width: 100%; }
.month-weekday-row, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-weekday-row { gap: 1px; margin-bottom: 1px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.month-weekday-row span { padding: 7px 4px; }
.month-grid { gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.month-day { min-width: 0; min-height: 132px; padding: 8px; background: #fff; }
.month-day.is-outside { background: #f8fafc; }
.month-day.is-today { box-shadow: inset 0 3px 0 var(--purple); }
.month-day-header { display: flex; min-height: 21px; align-items: center; gap: 5px; }
.month-day-number { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.month-day.is-today .month-day-number { color: #fff; background: var(--purple); }
.month-day.is-outside .month-day-number { color: var(--muted-2); }
.month-today-label { color: var(--purple); font-size: 8px; font-weight: 800; }
.month-add { display: grid; width: 22px; height: 22px; place-items: center; margin-left: auto; padding: 0; border: 1px solid #ded9fb; border-radius: 7px; color: var(--purple); background: #fbfaff; }
.month-add:hover { border-color: #bcb2ff; background: var(--purple-2); }
.month-add .icon { width: 12px; height: 12px; }
.month-day-shifts { display: flex; max-height: 204px; flex-direction: column; gap: 4px; margin-top: 5px; overflow-y: auto; }
.month-shift { display: flex; width: 100%; min-width: 0; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px; overflow: hidden; border: 1px solid #dfe5ee; border-radius: 8px; color: var(--ink); background: #fff; text-align: left; }
.month-shift:hover { border-color: #bcb2ff; background: #fbfaff; }
.month-shift.is-open { border-color: #f5d2b3; background: var(--orange-2); }
.month-shift.is-covered { border-color: #bfe8e2; background: var(--teal-2); }
.month-shift.is-draft { border-color: #d8d1fb; background: var(--purple-2); }
.month-shift.is-signup { border-color: #cfc8ff; background: var(--purple-2); }
.month-shift-time { color: var(--muted); font-size: 8px; font-weight: 800; }
.month-shift strong { display: block; width: 100%; overflow: hidden; color: var(--ink); font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.month-shift-game { display: block; width: 100%; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.month-shift-status { color: var(--purple); font-size: 8px; font-weight: 800; }
.month-shift.is-open .month-shift-status { color: var(--orange); }
.month-shift.is-covered .month-shift-status { color: var(--teal); }
.month-shift.is-signup .month-shift-status { color: var(--purple); }
.month-day-empty { display: block; padding: 9px 2px; color: var(--muted-2); font-size: 9px; text-align: center; }
.month-day.is-outside .month-day-empty { visibility: hidden; }
.month-agenda { display: none; }
.month-calendar-help { margin: 12px 0 0; color: var(--muted); font-size: 10px; }

.auth-screen { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); background: var(--page); }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px 11vw 43px 9vw; color: #fff; background: radial-gradient(circle at 77% 18%, rgba(112,91,231,.38), transparent 29%), linear-gradient(135deg, #162946, #0f1a2e 65%); }
.auth-visual::before, .auth-visual::after { position: absolute; content: ""; border: 1px solid rgba(201,232,107,.16); border-radius: 50%; }
.auth-visual::before { width: 620px; height: 620px; right: -230px; top: -180px; }
.auth-visual::after { width: 440px; height: 440px; right: -130px; top: -90px; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.auth-brand .brand-mark { width: 38px; height: 38px; }
.auth-brand .brand-name { font-size: 18px; }
.auth-story { position: relative; z-index: 1; max-width: 540px; margin: auto 0; }
.auth-story .eyebrow { color: var(--lime); }
.auth-story h1 { max-width: 560px; margin: 17px 0 17px; font-family: "Space Grotesk", sans-serif; font-size: clamp(37px, 4.5vw, 62px); line-height: 1.01; letter-spacing: -2.2px; }
.auth-story p { max-width: 460px; margin: 0; color: #b8c6d9; font-size: 15px; line-height: 1.7; }
.auth-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.auth-point { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #d8e2ef; background: rgba(255,255,255,.06); font-size: 11px; }
.auth-point .icon { color: var(--lime); width: 14px; height: 14px; }
.auth-visual-footer { position: relative; z-index: 1; display: flex; gap: 26px; color: #8293ad; font-size: 11px; }
.auth-visual-footer strong { display: block; margin-bottom: 2px; color: #e3eaf3; font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 7vw; background: #fbfcfe; }
.auth-form-wrap { width: min(100%, 385px); }
.auth-form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.auth-form-top .eyebrow { margin: 0; }
.auth-form-top .theme-toggle { height: 32px; min-width: 0; padding-inline: 10px; font-size: 10px; }
.auth-form-wrap h2 { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 27px; letter-spacing: -.8px; }
.auth-form-wrap > p { margin: 8px 0 27px; color: var(--muted); font-size: 13px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.auth-field label { color: var(--ink); font-size: 11px; font-weight: 700; }
.auth-field input { height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: #fff; font-size: 13px; }
.auth-field input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-2); }
.auth-submit { width: 100%; height: 44px; margin-top: 6px; }
.auth-link { display: block; margin: 13px auto 0; padding: 0; border: 0; color: var(--purple); background: transparent; font-size: 11px; font-weight: 700; }
.auth-link:hover { color: #5f4bd4; text-decoration: underline; }
.demo-button { display: flex; width: 100%; height: 40px; align-items: center; justify-content: center; gap: 7px; margin-top: 11px; border: 0; border-radius: 10px; color: var(--purple); background: var(--purple-2); font-size: 11px; font-weight: 800; }
.demo-button:hover { background: #e3defe; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 24px 0 17px; color: var(--muted-2); font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.auth-note { display: flex; gap: 9px; padding: 12px; border: 1px solid #dbece8; border-radius: 11px; color: #3b6e69; background: #f1fbf8; font-size: 10px; line-height: 1.55; }
.auth-note .icon { flex: 0 0 auto; color: var(--teal); }
.auth-error { display: none; margin: 0 0 13px; padding: 10px 12px; border-radius: 9px; color: var(--red); background: var(--red-2); font-size: 11px; }
.auth-error.visible { display: block; }
.auth-success { display: none; margin: 0 0 13px; padding: 10px 12px; border: 1px solid #dbece8; border-radius: 9px; color: #3b6e69; background: #f1fbf8; font-size: 11px; line-height: 1.5; }
.auth-success.visible { display: block; }
.live-config-note { margin-top: 14px; color: var(--muted); font-size: 10px; text-align: center; }

.toast-region { position: fixed; z-index: 50; right: 23px; bottom: 23px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; max-width: 340px; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid #d9eee7; border-radius: 11px; color: #2c6359; background: #f7fffc; box-shadow: 0 10px 26px rgba(18,46,61,.13); font-size: 11px; font-weight: 700; animation: toast-in .22s ease both; }
.toast .icon { color: var(--teal); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .topbar { padding: 15px 27px; }
  .page { padding: 28px 27px 50px; }
  .availability-layout { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr); }
  .day-grid { gap: 7px; }
  .day-card { padding-inline: 9px; }
  .schedule-layout { grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); }
}

@media (max-width: 980px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; min-height: 0; padding: 13px 16px; }
  .brand { padding: 0 8px 13px; }
  .sidebar-label, .sidebar-help, .user-card { display: none; }
  .sidebar-spacer { display: none; }
  .nav { flex-direction: row; gap: 4px; overflow-x: auto; padding-bottom: 1px; }
  .nav-item { width: auto; flex: 0 0 auto; padding: 9px 12px; }
  .nav-item.active { box-shadow: inset 0 -3px 0 var(--lime); }
  .nav-count { display: none; }
  .topbar { position: relative; padding: 16px 23px; }
  .mobile-menu { display: grid; }
  .availability-layout, .schedule-layout, .staff-schedule-columns, .planner-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-people, .settings-templates { grid-column: auto; }
  .side-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tip-panel { min-height: 100%; }
}

@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .week-picker { flex: 1; }
  .week-label { flex: 1; }
  .topbar-actions > .button { flex: 0 0 auto; }
  .page { padding: 24px 16px 42px; }
  .page-heading { flex-direction: column; margin-bottom: 22px; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .heading-actions .button { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 108px; padding: 14px; }
  .stat-value { margin-top: 11px; font-size: 27px; }
  .panel-header { padding: 18px 16px 15px; }
  .panel-body { padding: 0 16px 17px; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .day-card:last-child { grid-column: span 2; }
  .availability-week-context, .planner-toolbar { align-items: flex-start; flex-direction: column; }
  .availability-context-meta { align-items: flex-start; }
  .availability-source-badge { align-self: flex-start; }
  .planner-toolbar { gap: 11px; }
  .planner-toolbar > .select-wrap, .planner-toolbar > .select-wrap select { width: 100%; }
  .role-quantity-list { grid-template-columns: 1fr; }
  .dashboard-toolbar { flex-wrap: wrap; padding: 11px; }
  .toolbar-label { width: 100%; }
  .select-wrap { flex: 1; }
  .select-wrap select { width: 100%; min-width: 0; }
  .search-box { width: 100%; margin-left: 0; }
  .search-box input { width: 100%; }
  .side-stack { grid-template-columns: 1fr; }
  .settings-toolbar { flex-wrap: wrap; }
  .settings-toolbar .search-box { width: 100%; }
  .settings-toolbar .search-box input { width: 100%; }
  .settings-inline-stat { width: 100%; margin-left: 0; }
  .settings-person-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .settings-person-row .settings-role-pills { grid-column: 2 / 3; }
  .settings-person-row .availability-pill { grid-column: 3; grid-row: 1 / span 2; }
  .settings-person-actions { grid-column: 2 / 3; justify-self: start; }
  .settings-form { padding-inline: 16px; }
  .settings-roster, .settings-template-list { padding-inline: 16px; }
  .team-kpis { grid-template-columns: 1fr 1fr; }
  .team-kpis .mini-kpi:last-child { grid-column: span 2; }
  .team-toolbar { flex-wrap: wrap; padding: 0 16px 16px; }
  .team-toolbar .search-box, .team-toolbar .search-box input { width: 100%; }
  .slot-role { width: 104px; }
  .shift-card { padding-inline: 13px; }
  .shift-footer { flex-wrap: wrap; }
  .shift-footer .button:last-child { margin-left: 0; }
  .availability-detail-summary { flex-direction: column; }
  .availability-detail-meta { max-width: none; text-align: left; }
  .month-calendar { display: none; }
  .month-agenda { display: flex; flex-direction: column; gap: 14px; }
  .month-agenda-day { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
  .month-agenda-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
  .month-agenda-heading strong { color: var(--ink); font-size: 12px; }
  .month-agenda-heading span { color: var(--muted); font-size: 9px; }
  .month-agenda-shifts { display: flex; flex-direction: column; gap: 6px; }
  .month-agenda .month-shift { padding: 9px; }
  .month-agenda-empty { display: flex; }
  .auth-screen { display: block; }
  .auth-visual { min-height: 260px; padding: 24px 24px 27px; }
  .auth-story { margin: 55px 0 15px; }
  .auth-story h1 { margin: 11px 0; font-size: 37px; letter-spacing: -1.4px; }
  .auth-story p, .auth-points, .auth-visual-footer { display: none; }
  .auth-form-side { padding: 32px 24px 42px; }
  .auth-form-wrap { width: min(100%, 420px); }
  .modal-backdrop { padding: 10px; }
  .modal-header, .modal-body { padding-inline: 17px; }
}

@media (max-width: 420px) {
  .day-grid { grid-template-columns: 1fr; }
  .day-card:last-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .role-selector { grid-template-columns: 1fr; }
  .role-quantity-row { padding-inline: 8px; }
  .slot-role { width: 91px; font-size: 10px; }
  .slot-person { font-size: 10px; }
  .slot-person .avatar { display: none; }
  .slot-actions .assign-button { padding-inline: 6px; font-size: 9px; }
  .request-row { align-items: flex-start; flex-direction: column; }
  .request-row-actions { width: 100%; justify-content: flex-end; }
  .availability-detail-list { grid-template-columns: 1fr; }
  .availability-calendar { grid-template-columns: 1fr; }
  th, td { padding-inline: 13px; }
}

/* Theme and optional staff sign-up affordances. */
.theme-toggle { min-width: 108px; }
.theme-toggle .icon { color: var(--purple); }
.shift-signup-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding: 9px 10px; border: 1px solid #d9e9e7; border-radius: 10px; color: #2e716b; background: #f2fbf9; font-size: 10px; font-weight: 700; }
.shift-signup-note > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.shift-signup-note > span .icon { color: var(--teal); }
.signup-button { flex: 0 0 auto; color: var(--teal); border-color: #bfe8e2; background: #fff; }
.signup-button:hover { color: #167c73; border-color: #8ed8cf; background: var(--teal-2); }
.signup-button.is-active { color: #fff; border-color: var(--teal); background: var(--teal); }
.signup-button.is-active:hover { color: #fff; border-color: #167c73; background: #167c73; }
.signup-assigned { flex: 0 0 auto; color: var(--teal); font-size: 10px; font-weight: 800; }
.shift-signup-count { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 9px; font-weight: 800; }
.signup-setting { position: relative; padding: 13px 42px 12px 13px; border: 1px solid #d9e9e7; border-radius: 11px; background: #f2fbf9; }
.signup-setting.is-disabled { border-color: #ecdcbf; background: #fffaf0; }
.signup-setting .check-line { font-size: 12px; }
.signup-setting p { max-width: 650px; margin: 5px 0 0 24px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.signup-setting-badge { position: absolute; top: 12px; right: 12px; padding: 4px 6px; border-radius: 6px; color: var(--teal); background: var(--teal-2); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.signup-setting.is-disabled .signup-setting-badge { color: var(--orange); background: var(--orange-2); }
.shift-signup-list { padding: 12px 13px 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.shift-signup-list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.shift-signup-list-heading > div { display: flex; flex-direction: column; gap: 2px; }
.shift-signup-list-heading strong { color: var(--ink); font-size: 11px; }
.shift-signup-list-heading span { color: var(--muted); font-size: 9px; }
.shift-signup-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.shift-signup-row > div { min-width: 0; }
.shift-signup-row strong, .shift-signup-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-signup-row strong { color: var(--ink); font-size: 10px; }
.shift-signup-row div span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.shift-signup-empty { margin: 8px 0 3px; color: var(--muted); font-size: 10px; }

html[data-theme="dark"] .topbar { border-bottom-color: rgba(63,78,101,.7); background: rgba(15,23,37,.9); }
html[data-theme="dark"] .week-picker,
html[data-theme="dark"] .button.button-ghost,
html[data-theme="dark"] .dashboard-toolbar,
html[data-theme="dark"] .shift-card,
html[data-theme="dark"] .assign-button,
html[data-theme="dark"] .mini-kpi,
html[data-theme="dark"] .planner-toolbar,
html[data-theme="dark"] .planner-week,
html[data-theme="dark"] .planner-shift,
html[data-theme="dark"] .month-shift,
html[data-theme="dark"] .availability-detail-day,
html[data-theme="dark"] .availability-calendar-entry,
html[data-theme="dark"] .auth-form-side,
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .catalog-row input,
html[data-theme="dark"] .inline-add input,
html[data-theme="dark"] .role-quantity-row,
html[data-theme="dark"] .role-quantity-control,
html[data-theme="dark"] .role-quantity-input { color: var(--ink); background: var(--panel); }
html[data-theme="dark"] .button.button-ghost:hover { border-color: #51489a; background: #211d3b; }
html[data-theme="dark"] .select-wrap select,
html[data-theme="dark"] .search-box input { color: var(--ink); background: var(--control); color-scheme: dark; }
html[data-theme="dark"] option { color: var(--ink); background: var(--panel); }
html[data-theme="dark"] .role-quantity-input { color: var(--ink) !important; background: var(--panel) !important; color-scheme: dark; }
html[data-theme="dark"] .week-picker button:hover,
html[data-theme="dark"] .week-picker .week-label:hover { background: #1b2638; }
html[data-theme="dark"] .status-note,
html[data-theme="dark"] .choice-chip label,
html[data-theme="dark"] .time-fields input,
html[data-theme="dark"] .month-agenda-day { color: var(--ink); background: var(--panel); }
html[data-theme="dark"] .switch-track { background: #3a475b; }
html[data-theme="dark"] .time-fields input:disabled { color: #728096; background: #1b2638; }
html[data-theme="dark"] .progress { background: #263246; }
html[data-theme="dark"] .game-pill { color: #a9c4e4; background: #1c2c43; }
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .month-day,
html[data-theme="dark"] .month-day.is-outside,
html[data-theme="dark"] .coverage-summary,
html[data-theme="dark"] .availability-day-column,
html[data-theme="dark"] .availability-detail-summary,
html[data-theme="dark"] .assign-context { background: #101927; }
html[data-theme="dark"] .day-card.is-on,
html[data-theme="dark"] .planner-day.is-today,
html[data-theme="dark"] .month-shift:hover,
html[data-theme="dark"] .planner-shift:hover,
html[data-theme="dark"] .availability-calendar-entry:hover { background: #211d3b; }
html[data-theme="dark"] .planner-week-heading { background: linear-gradient(135deg, #151d2b, #101927); }
html[data-theme="dark"] .empty-state { border-color: #334258; background: rgba(21,29,43,.72); }
html[data-theme="dark"] .table-footer,
html[data-theme="dark"] td,
html[data-theme="dark"] .settings-person-row,
html[data-theme="dark"] .settings-template-row,
html[data-theme="dark"] .planner-day { border-color: #293548; }
html[data-theme="dark"] .role-pill { color: #b6c3d6; background: #222d3e; }
html[data-theme="dark"] .role-pill.producer { color: #f3b276; }
html[data-theme="dark"] .role-pill.observer { color: #83c5f1; background: #17354d; }
html[data-theme="dark"] .role-pill.caster,
html[data-theme="dark"] .role-pill.pbp { color: #c0b7ff; }
html[data-theme="dark"] .role-pill.color { color: #efa7cb; background: #402638; }
html[data-theme="dark"] .role-pill.stream,
html[data-theme="dark"] .role-pill.stream-tech { color: #81d8cf; }
html[data-theme="dark"] .settings-callout,
html[data-theme="dark"] .auth-note { color: #a8dfd6; background: #12302e; border-color: #255b55; }
html[data-theme="dark"] .delete-warning { background: #3d242a; border-color: #70434a; }
html[data-theme="dark"] .delete-warning p { color: #efadb2; }
html[data-theme="dark"] .request-panel,
html[data-theme="dark"] .availability-week-context { background: #211d3b; border-color: #453b7a; }
html[data-theme="dark"] .request-row,
html[data-theme="dark"] .assignment-history-row { border-color: #303d52; }
html[data-theme="dark"] .assignment-history { background: #101b28; border-color: #2d4658; }
html[data-theme="dark"] .assignment-history-muted { background: #302619; border-color: #594830; }
html[data-theme="dark"] .modal { background: var(--panel); box-shadow: 0 25px 70px rgba(0,0,0,.55); }
html[data-theme="dark"] .toast { color: #a8dfd6; background: #122b2a; border-color: #255b55; }
html[data-theme="dark"] .signup-setting,
html[data-theme="dark"] .shift-signup-note { color: #a8dfd6; background: #12302e; border-color: #255b55; }
html[data-theme="dark"] .signup-setting.is-disabled { background: #302619; border-color: #594830; }
html[data-theme="dark"] .signup-setting-badge { color: #a8dfd6; }
html[data-theme="dark"] .signup-setting.is-disabled .signup-setting-badge { color: #f3b276; }
html[data-theme="dark"] .signup-button { color: #a8dfd6; border-color: #367970; background: #172b32; }
html[data-theme="dark"] .signup-button:hover { color: #d5fffa; background: #1c453f; }
html[data-theme="dark"] .signup-button.is-active { color: #071512; background: #73d0c4; border-color: #73d0c4; }
html[data-theme="dark"] .shift-signup-list { background: #101927; }

@media (max-width: 700px) {
  .theme-toggle { min-width: 0; padding-inline: 10px; }
  .theme-toggle span { display: none; }
  .shift-signup-note { align-items: flex-start; flex-direction: column; }
  .signup-button { width: 100%; }
  .signup-setting { padding-right: 13px; }
  .signup-setting-badge { position: static; display: inline-flex; width: fit-content; margin-top: 8px; }
}
