:root {
  --ink: #1d2523;
  --muted: #6b7772;
  --line: #d7dfda;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --sidebar: #202623;
  --sidebar-muted: #aab6ae;
  --accent: #167664;
  --accent-soft: #e0f0ea;
  --amber: #d47b1f;
  --blue: #256e9d;
  --danger: #c44343;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 1080px; background: var(--paper); color: var(--ink); }
button, a { font: inherit; }
button { cursor: pointer; }

.auth-pending .app-shell { visibility: hidden; }
.auth-mode { min-width: 760px; background: #eef2ef; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 42px; }
.auth-panel { width: min(440px, 100%); padding: 30px; border: 1px solid #cbd5cf; border-radius: 6px; background: #ffffff; box-shadow: 0 18px 48px rgba(29, 42, 35, 0.12); }
.auth-brand { margin-bottom: 28px; color: var(--ink); font-size: 26px; font-weight: 780; }
.auth-brand span { color: var(--accent); }
.auth-heading { margin-bottom: 22px; }
.auth-heading h1 { margin: 5px 0 8px; font-size: 24px; }
.auth-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-message { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--danger); background: #fff3f3; color: #8b3434; font-size: 12px; line-height: 1.5; }
.auth-hint { margin: -6px 0 0; color: var(--muted); font-size: 11px; }
.auth-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.auth-switch button { padding: 0; border: 0; background: transparent; color: var(--accent); font-weight: 750; }
.auth-secondary-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; }
.auth-secondary-actions button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.auth-secondary-actions button:hover { color: var(--accent); }
.auth-link { display: grid; place-items: center; color: #ffffff; text-decoration: none; }
.auth-back { width: 100%; margin-top: 12px; }

.platform-mode { background: #f4f6f4; }
.platform-mode .auth-shell { min-height: 100vh; display: block; padding: 0; }
.platform-console { min-height: 100vh; }
.operator-header { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid #36423c; background: #202623; color: #ffffff; }
.operator-header > div { display: flex; align-items: center; gap: 18px; }
.operator-header .auth-brand { margin: 0; color: #ffffff; font-size: 22px; }
.operator-header p { margin: 0; padding-left: 18px; border-left: 1px solid #526059; color: #b8c4bd; font-size: 12px; }
.operator-header > div:last-child > span { color: #d7dfda; font-size: 12px; }
.operator-header .outline-button { border-color: #55635c; color: #edf2ef; }
.operator-header .outline-button:hover { border-color: #7dd1b6; color: #7dd1b6; }
.operator-main { max-width: 1540px; margin: 0 auto; padding: 30px 34px 54px; }
.operator-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.operator-title h1 { margin: 5px 0 0; font-size: 24px; }
.billing-connection { padding: 6px 9px; border: 1px solid #d5a66e; border-radius: 4px; background: #fff8ee; color: #8a5315; font-size: 11px; font-weight: 750; }
.billing-connection.connected { border-color: #8fbbaa; background: #edf7f2; color: #176550; }
.operator-metrics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 22px; border-top: 1px solid #cbd5cf; border-bottom: 1px solid #cbd5cf; background: #ffffff; }
.operator-metrics > div { min-height: 84px; display: grid; align-content: center; gap: 6px; padding: 13px 17px; border-right: 1px solid var(--line); }
.operator-metrics > div:last-child { border-right: 0; }
.operator-metrics span { color: var(--muted); font-size: 10px; font-weight: 700; }
.operator-metrics strong { font-size: 20px; }
.operator-layout { min-height: 610px; display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: start; gap: 20px; }
.operator-organizations { border: 1px solid var(--line); background: #ffffff; }
.operator-list-head, .operator-org-columns { display: grid; grid-template-columns: minmax(0, 1fr) 48px 92px; align-items: center; gap: 8px; padding: 11px 13px; }
.operator-list-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.operator-list-head strong { font-size: 14px; }
.operator-list-head span { color: var(--muted); font-size: 11px; }
.operator-org-columns { background: #f0f3f1; color: var(--muted); font-size: 9px; font-weight: 750; text-align: center; }
.operator-org-columns span:first-child { text-align: left; }
.operator-org-row { width: 100%; min-height: 66px; display: grid; grid-template-columns: minmax(0, 1fr) 48px 92px; align-items: center; gap: 8px; padding: 9px 13px; border: 0; border-top: 1px solid #e1e6e3; background: #ffffff; color: var(--ink); text-align: center; }
.operator-org-row:hover { background: #f3f8f5; }
.operator-org-row.selected { box-shadow: inset 3px 0 0 var(--accent); background: #eaf4ef; }
.operator-org-row > span:first-child { min-width: 0; display: grid; gap: 4px; text-align: left; }
.operator-org-row strong, .operator-org-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator-org-row strong { font-size: 12px; }
.operator-org-row small { color: var(--muted); font-size: 9px; }
.subscription-state { display: inline-grid; place-items: center; min-height: 24px; padding: 3px 6px; border: 1px solid #c8d0cc; border-radius: 4px; background: #f5f7f6; color: #6e7873; font-size: 9px; font-weight: 750; }
.subscription-state.active, .subscription-state.trialing { border-color: #92bdac; background: #eaf5f0; color: #176651; }
.subscription-state.past_due { border-color: #d8aa72; background: #fff4e5; color: #8b5415; }
.subscription-state.canceled { border-color: #d9a0a0; background: #fff0f0; color: #943939; }
.subscription-state.large { min-height: 30px; padding-inline: 10px; font-size: 11px; }
.operator-detail { min-width: 0; border: 1px solid var(--line); background: #ffffff; }
.operator-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.operator-detail-head h2 { margin: 4px 0 5px; font-size: 19px; }
.operator-detail-head p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.operator-billing-band { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #f7f9f7; }
.operator-billing-band > div { min-height: 65px; display: grid; align-content: center; gap: 5px; padding: 10px 12px; border-right: 1px solid var(--line); }
.operator-billing-band > div:last-child { border-right: 0; }
.operator-billing-band span, .operator-policy-grid span { color: var(--muted); font-size: 9px; font-weight: 700; }
.operator-billing-band strong { font-size: 12px; }
.operator-usage-band { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 9px 20px; border-bottom: 1px solid var(--line); color: #66726c; font-size: 10px; }
.operator-department { padding: 18px 20px 20px; border-top: 6px solid #eef2ef; }
.operator-department:first-of-type { border-top: 0; }
.operator-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.operator-section-head h2, .operator-section-head h3 { margin: 4px 0 0; }
.operator-section-head h3 { font-size: 15px; }
.operator-inline-stats { display: flex; gap: 18px; margin: 0; }
.operator-inline-stats div { display: grid; gap: 3px; text-align: right; }
.operator-inline-stats dt { color: var(--muted); font-size: 8px; }
.operator-inline-stats dd { margin: 0; font-size: 10px; font-weight: 750; }
.operator-policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; background: var(--line); border: 1px solid var(--line); }
.operator-policy-grid > div { min-height: 58px; display: grid; align-content: center; gap: 5px; padding: 9px 11px; background: #fbfcfb; }
.operator-policy-grid strong { overflow-wrap: anywhere; font-size: 10px; line-height: 1.4; }
.operator-slot-table th, .operator-slot-table td { padding: 8px 10px; }
.operator-slot-table td { font-size: 10px; }
.operator-slot-table td strong { font-size: 11px; }
.operator-payments { margin-top: 22px; border: 1px solid var(--line); background: #ffffff; }
.operator-payments > .operator-section-head { margin: 0; padding: 14px 16px; }
.operator-payments .operator-section-head p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.operator-payments th, .operator-payments td { padding: 10px 12px; }
.operator-empty { min-height: 160px; display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); transition: grid-template-columns 160ms ease; }
.sidebar { min-height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 18px; background: var(--sidebar); color: #f2f6f3; overflow: hidden; }
.brand-row { height: 36px; display: flex; align-items: center; justify-content: space-between; margin: 0 4px 30px; }
.brand { color: #ffffff; text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: 0; white-space: nowrap; }
.brand span { color: #6ed1af; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.icon-button:disabled { cursor: default; opacity: 0.38; }
.icon-button:disabled:hover { border-color: var(--line); color: var(--ink); }
.sidebar .icon-button { border-color: #4c5852; background: transparent; color: #e8efeb; }
.workspace { display: grid; gap: 6px; padding: 16px 14px; border: 1px solid #3a4640; border-radius: 6px; }
.workspace strong { font-size: 15px; line-height: 1.45; }
.workspace span:not(.eyebrow) { color: var(--sidebar-muted); font-size: 13px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.sidebar .eyebrow { color: #a9bbb1; }
.primary-nav { display: grid; gap: 4px; margin-top: 30px; }
.nav-item { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 5px; color: #d1d9d4; text-decoration: none; font-size: 14px; }
.primary-nav .nav-item { width: 100%; border: 0; background: transparent; text-align: left; }
.nav-item:hover { background: #303a35; }
.nav-item.active { background: #e1f1eb; color: #155e50; font-weight: 700; }
.nav-symbol { width: 18px; font-size: 12px; font-weight: 800; text-align: center; }
.policy-summary { display: grid; gap: 12px; margin-top: auto; padding: 20px 14px; border-top: 1px solid #3a4640; }
.policy-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.policy-summary strong { font-size: 15px; }
.policy-summary span:not(.eyebrow) { color: var(--sidebar-muted); font-size: 12px; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; color: var(--sidebar-muted); font-size: 12px; white-space: nowrap; }
.account-summary { min-width: 0; flex: 1; display: grid; gap: 2px; }
.account-summary strong { overflow: hidden; color: #dce4df; font-size: 11px; text-overflow: ellipsis; }
.account-summary small { color: var(--sidebar-muted); font-size: 9px; }
.sidebar-logout { width: 26px; height: 26px; flex: 0 0 auto; border: 0; border-radius: 4px; background: transparent; color: var(--sidebar-muted); font-size: 17px; }
.sidebar-logout:hover { background: #303a35; color: #ffffff; }
.environment-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ed1af; flex: 0 0 auto; }

.main-content { min-width: 0; padding: 24px 30px 36px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; margin-bottom: 28px; }
.month-control, .topbar-actions { display: flex; align-items: center; gap: 10px; }
h1 { margin: 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: 0; }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: #136351; font-size: 12px; font-weight: 700; }
.outline-button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; }
.outline-button:hover { border-color: var(--accent); color: var(--accent); }
.outline-button.compact { min-height: 30px; padding-inline: 9px; font-size: 11px; }
.calendar-toolbar { max-width: 1120px; display: grid; gap: 7px; margin: 0 auto 10px; }
.calendar-action-row { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calendar-month-row { display: flex; justify-content: center; }
.key-hint { color: var(--muted); font-size: 11px; white-space: nowrap; }
kbd { min-width: 20px; display: inline-grid; place-items: center; padding: 2px 5px; border: 1px solid #bdc8c1; border-bottom-width: 2px; border-radius: 4px; background: #ffffff; color: var(--ink); font: 700 10px "Segoe UI", sans-serif; }
.calendar-section { max-width: 1120px; margin: 0 auto; }
.calendar-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.calendar-note { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.weekday-row { display: grid; grid-template-columns: 92px repeat(7, minmax(105px, 1fr)); border: 1px solid var(--line); border-bottom: 0; background: #eff3f0; }
.weekday-row span { display: grid; place-items: center; padding: 7px 6px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: center; }
.weekday-row span:first-child { color: #68736e; }
.weekday-row span:nth-child(2) { color: var(--danger); }
.weekday-row span:last-child { color: var(--blue); }
.calendar-weeks { display: grid; gap: 0; }
.calendar-row { display: grid; grid-template-columns: 92px repeat(7, minmax(105px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.week-axis { min-width: 0; display: grid; grid-template-rows: 20px 18px minmax(0, 1fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f5f7f5; }
.week-number { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 5px; color: #668077; font-size: 10px; font-weight: 800; }
.week-badge { min-width: 27px; padding: 1px 4px; border: 1px solid var(--week-color); border-radius: 4px; background: #ffffff; color: #56635e; text-align: center; }
.week-off-label { display: flex; align-items: center; justify-content: center; padding: 0 5px; border-bottom: 1px dashed #c3ccc7; color: #8a9690; font-size: 9px; font-weight: 750; text-align: center; }
.week-slot-list, .assignment-list { min-height: 0; display: grid; grid-auto-rows: minmax(18px, auto); }
.week-slot-label { min-width: 0; min-height: 18px; display: flex; align-items: center; justify-content: center; padding: 1px 4px; border-bottom: 1px solid var(--line); color: #53615b; font-size: 11px; font-weight: 750; text-align: center; overflow-wrap: anywhere; }
.week-slot-label:last-child { border-bottom: 0; }
.calendar-cell { position: relative; min-width: 0; min-height: 92px; display: grid; grid-template-rows: 20px 18px minmax(0, 1fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.calendar-cell:last-child { border-right: 1px solid var(--line); }
.calendar-cell.holiday { background: #fffefa; }
.calendar-cell.outside-month { background: #f2f4f2; }
.calendar-cell.outside-month .date-row,
.calendar-cell.outside-month .off-roster,
.calendar-cell.outside-month .assignment-list { opacity: 0.56; }
.calendar-cell.outside-month .assignment-slot,
.calendar-cell.outside-month .assignment { background: #f2f4f2; }
.calendar-cell.outside-month .assignment-button { cursor: default; }
.calendar-cell.outside-month .assignment-button:hover { box-shadow: none; }
.date-row { position: relative; min-width: 0; display: flex; align-items: center; justify-content: end; gap: 4px; padding: 1px 6px; }
.day-labels { min-width: 0; display: flex; align-items: center; justify-content: end; gap: 4px; overflow: hidden; }
.date-quick-actions { position: absolute; left: 4px; top: 1px; z-index: 4; display: flex; gap: 2px; opacity: 0; pointer-events: none; }
.calendar-cell:hover .date-quick-actions, .date-quick-actions:focus-within { opacity: 1; pointer-events: auto; }
.calendar-cell:hover .day-labels { visibility: hidden; }
.date-quick-button { width: 20px; height: 18px; display: grid; place-items: center; padding: 0; border: 1px solid #bfcac4; border-radius: 3px; background: #ffffff; color: #68746e; font-size: 8px; font-weight: 800; line-height: 1; }
.date-quick-button:last-child { width: 26px; }
.date-quick-button:hover { border-color: var(--accent); color: var(--accent); }
.date-quick-button.active { border-color: #8aaf9f; background: #e3f1eb; color: #155f50; }
.date-setting-button { min-width: 20px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 750; text-align: center; }
.date-setting-button:hover { color: var(--accent); text-decoration: underline; }
.weekday-0 .date-setting-button { color: var(--danger); }
.weekday-6 .date-setting-button { color: var(--blue); }
.day-mode, .holiday-name { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.day-mode { color: #8b5a14; }
.day-mode.partial-work { color: #356759; }
.holiday-name { max-width: 72px; }
.off-roster { min-width: 0; min-height: 18px; display: flex; align-content: center; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 5px; padding: 0 3px; border-bottom: 1px dashed #c3ccc7; color: #89938e; font-size: 10px; line-height: 1.1; text-align: center; }
.off-roster span { white-space: nowrap; }
.off-roster.empty::after { content: ""; }
.assignment-slot { min-width: 0; min-height: 18px; display: grid; align-items: stretch; border-bottom: 1px solid var(--line); background: #ffffff; }
.assignment-slot:last-child { border-bottom: 0; }
.calendar-row.has-split .assignment-slot, .calendar-row.has-split .week-slot-label { min-height: 34px; }
.assignment { min-width: 0; min-height: 16px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; padding: 0 3px; border: 0; background: #ffffff; }
.assignment.has-period { grid-template-columns: 21px minmax(0, 1fr); }
.assignment.has-period + .assignment.has-period { border-top: 1px dotted #c9d2cd; }
.assignment-button { width: 100%; color: var(--ink); text-align: center; }
.assignment-button:hover { box-shadow: inset 0 0 0 1px #89b9aa; }
.calendar-section.drag-active .assignment-button { cursor: move; }
.assignment-button.drop-pending { position: relative; z-index: 3; box-shadow: inset 0 0 0 2px #8d9993; background: #f2f4f3; }
.assignment-button.drop-valid { position: relative; z-index: 3; box-shadow: inset 0 0 0 2px #23836c; background: #e5f4ee; }
.assignment-button.drop-warning { position: relative; z-index: 3; box-shadow: inset 0 0 0 2px #d48a2c; background: #fff3df; }
.assignment-button.drop-invalid { position: relative; z-index: 3; box-shadow: inset 0 0 0 2px #c74b4b; background: #fbe7e7; }
.period-label { color: #8a7560; font-size: 8px; font-weight: 800; }
.assignment-names { min-width: 0; display: flex; align-items: stretch; justify-content: center; }
.resident-name { min-width: 0; flex: 1; display: grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.assignment.empty { color: #a1aaa5; background: #ffffff; }
.assignment.empty em { font-size: 10px; font-style: normal; }
.assignment.has-period.empty em { grid-column: 2; }
.staff-row { width: 100%; display: grid; grid-template-columns: repeat(var(--staff-count, 1), minmax(0, 1fr)); gap: 2px; }
.staff-row span { min-width: 0; display: grid; place-items: center; overflow: hidden; color: #4f5e57; font-size: 11px; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.assigned-name.worker-highlighted, .off-roster .worker-highlighted { background: var(--worker-highlight); color: #202824; box-shadow: inset 0 0 0 1px rgba(70, 93, 82, 0.16); }
.week-tone-1 { --week-color: #e5aebe; }
.week-tone-2 { --week-color: #9fcfb9; }
.week-tone-3 { --week-color: #bcaee0; }
.week-tone-4 { --week-color: #ecc096; }
.week-tone-5 { --week-color: #9fc9df; }
.week-tone-6 { --week-color: #dacb8d; }
.week-outline::after { content: ""; position: absolute; inset: -1px 0; z-index: 2; border-top: 2px solid var(--week-color); border-bottom: 2px solid var(--week-color); pointer-events: none; }
.week-outline.week-edge-left::after { border-left: 2px solid var(--week-color); border-radius: 5px 0 0 5px; }
.week-outline.week-edge-right::after { border-right: 2px solid var(--week-color); border-radius: 0 5px 5px 0; }
.week-outline.week-edge-left.week-edge-right::after { border-radius: 5px; }
.calendar-loading { grid-column: 1 / -1; min-height: 400px; display: grid; place-items: center; color: var(--muted); background: var(--surface); }
.calendar-loading.error { color: var(--danger); }
.toast { position: fixed; right: 28px; bottom: 24px; z-index: 5; max-width: 320px; padding: 12px 14px; border-radius: 5px; background: #202623; color: #ffffff; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #8f3636; }

.primary-button { min-height: 34px; padding: 0 14px; border: 1px solid #12604f; border-radius: 5px; background: var(--accent); color: #ffffff; font-size: 13px; font-weight: 700; }
.primary-button:hover { background: #0e6655; }
.danger-button { min-height: 34px; padding: 0 14px; border: 1px solid #9b3434; border-radius: 5px; background: #a83c3c; color: #ffffff; font-size: 13px; font-weight: 700; }
.danger-button:hover { background: #8f2f2f; }
.quiet-button { min-height: 34px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.quiet-button:hover { color: var(--danger); }
.view-loading { min-height: 420px; display: grid; place-items: center; color: var(--muted); }
.view-loading.error { color: var(--danger); }
.topbar > div > .eyebrow { margin-bottom: 4px; }
.topbar > div > h1 { margin-left: 0; }
.preview-banner { display: flex; align-items: center; gap: 12px; margin: -12px 0 18px; padding: 10px 12px; border: 1px solid #86bbaa; border-radius: 5px; background: #edf8f3; color: #175b4d; font-size: 13px; }
.preview-banner span { color: #527068; margin-right: auto; }
.quick-assignment { max-width: 1120px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; margin: 8px auto 0; padding: 7px 9px; border: 1px solid var(--line); background: var(--surface); }
.quick-assignment-head { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.quick-worker-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; }
.quick-worker-group { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 5px; }
.quick-worker-group > span { padding-top: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.quick-worker-group > div { display: flex; flex-wrap: wrap; gap: 5px; }
.worker-chip { height: 25px; min-height: 25px; padding: 0 7px; border: 1px solid #cbd6d0; border-radius: 4px; background: #ffffff; color: var(--ink); font-size: 11px; line-height: 23px; }
.worker-chip:hover { border-color: var(--accent); color: var(--accent); }
.worker-chip.selected { border-color: #12604f; background: var(--accent); color: #ffffff; }
.worker-chip:focus-visible { outline: 2px solid #8fc4b4; outline-offset: 1px; }
.clear-worker-button[disabled] { visibility: hidden; }
.assigned-name[draggable="true"] { cursor: grab; user-select: none; }
.assigned-name[draggable="true"]:active { cursor: grabbing; }
.assigned-name.drag-source { opacity: 0.28; }
.drag-status-bubble { position: fixed; z-index: 30; max-width: 340px; padding: 7px 9px; border: 1px solid #83908a; border-radius: 5px; background: #28312d; color: #ffffff; box-shadow: 0 5px 18px rgba(20, 31, 25, 0.2); font-size: 11px; font-weight: 700; line-height: 1.35; pointer-events: none; }
.drag-status-bubble[data-status="allowed"] { border-color: #1f7b65; background: #176754; }
.drag-status-bubble[data-status="confirm"] { border-color: #b86c18; background: #985817; }
.drag-status-bubble[data-status="blocked"] { border-color: #b83e3e; background: #913636; }
.replacement-popover { position: fixed; z-index: 28; width: min(350px, calc(100vw - 16px)); max-height: min(520px, calc(100vh - 16px)); overflow: auto; border: 1px solid #b9c5be; border-radius: 6px; background: #ffffff; box-shadow: 0 14px 34px rgba(25, 39, 31, 0.22); }
.replacement-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 11px 12px 9px; border-bottom: 1px solid var(--line); background: #f5f7f5; }
.replacement-head > div { min-width: 0; display: grid; gap: 3px; }
.replacement-head strong { font-size: 13px; }
.replacement-head span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.replacement-close { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.replacement-close:hover { color: var(--danger); }
.replacement-list { display: grid; }
.replacement-candidate { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-bottom: 1px solid #e3e8e5; background: #ffffff; color: var(--ink); text-align: left; }
.replacement-candidate:hover { background: #eaf4f0; }
.replacement-candidate.confirm { background: #fffaf1; }
.replacement-candidate.confirm:hover { background: #fff1d8; }
.replacement-rank { color: #357765; font-size: 12px; font-weight: 800; text-align: center; }
.replacement-person { min-width: 0; display: grid; gap: 2px; }
.replacement-person strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.replacement-person small, .replacement-person > span { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.replacement-person .replacement-issue { color: #9a5c14; font-weight: 700; }
.replacement-command { color: var(--accent); font-size: 10px; font-weight: 750; }
.replacement-excluded { padding: 9px 11px 11px; background: #f8f9f8; }
.replacement-excluded > div { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.replacement-excluded ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.replacement-excluded li { min-width: 0; display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 7px; color: #6d7772; font-size: 9px; }
.replacement-excluded li strong { color: #555f5a; }
.replacement-excluded li span { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.replacement-loading, .replacement-empty { min-height: 82px; display: grid; place-items: center; margin: 0; padding: 14px; color: var(--muted); font-size: 11px; }
.replacement-loading.error { color: var(--danger); }

.workload-overlay { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 24px; }
.workload-backdrop { position: absolute; inset: 0; background: rgba(24, 32, 28, 0.42); }
.workload-panel { position: relative; width: min(1600px, calc(100vw - 70px)); height: min(820px, calc(100vh - 48px)); display: grid; grid-template-rows: auto minmax(0, 1fr); border: 1px solid #bfcac3; border-radius: 6px; background: #ffffff; box-shadow: 0 22px 60px rgba(26, 42, 33, 0.22); overflow: hidden; }
.workload-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.workload-panel-head h2 { margin: 3px 0 0; font-size: 18px; }
.workload-panel-actions { display: flex; align-items: center; gap: 12px; }
.workload-panel-actions > span { color: var(--muted); font-size: 11px; }
.workload-loading { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.workload-table-scroll { min-height: 0; overflow: auto; padding: 14px; }
.workload-table { min-width: 1180px; table-layout: fixed; font-size: 11px; }
.workload-table th, .workload-table td { height: 38px; padding: 6px 7px; border: 1px solid var(--line); text-align: center; white-space: nowrap; }
.workload-table thead th { position: sticky; top: 0; z-index: 2; background: #eef3f0; }
.workload-table thead tr:nth-child(2) th { top: 38px; }
.workload-table thead th small { display: block; margin-top: 2px; color: #849089; font-size: 8px; font-weight: 600; }
.workload-table .workload-name { position: sticky; left: 0; z-index: 3; width: 116px; background: #f5f7f5; text-align: left; }
.workload-table thead .workload-name { z-index: 4; }
.workload-table .workload-name strong { display: inline; margin-right: 6px; font-size: 12px; }
.workload-table .workload-name span { color: var(--muted); font-size: 9px; }
.workload-table .week-total { background: #f2f7f4; font-weight: 800; }
.workload-table .week-total.warning { background: #fff1d9; color: #8a5315; }
.workload-table .week-total.danger { background: #fbe1e1; color: #963535; }
.workload-table .month-total { background: #e7f2ed; font-weight: 800; }

.management-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); align-items: start; gap: 22px; max-width: 1500px; }
.account-security-strip { max-width: 1200px; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line); background: #ffffff; }
.account-security-strip > div { display: grid; gap: 3px; }
.account-security-strip strong { font-size: 12px; }
.account-security-strip span { color: var(--muted); font-size: 10px; }
.account-security-actions { display: flex; gap: 8px; }
.members-layout { display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); align-items: start; gap: 22px; max-width: 1200px; }
.members-heading { padding: 12px 14px; }
.member-table { min-width: 680px; }
.member-table select { min-width: 120px; font-size: 12px; }
.member-table td:last-child { width: 142px; }
.member-actions { display: flex; align-items: center; justify-content: end; gap: 4px; }
.current-account-label { display: inline-block; margin-top: 3px; color: var(--accent) !important; font-size: 9px !important; font-weight: 750; }
.succession-note { display: grid; gap: 5px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.succession-note strong { font-size: 12px; }
.succession-note span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.member-security-form { padding-top: 18px; }
.member-security-form > p:first-child { margin: 0; color: var(--ink); font-size: 13px; }
.modal-form-actions { display: flex; justify-content: end; gap: 8px; margin-top: 6px; }
.permission-note { display: grid; gap: 6px; padding: 18px; border-left: 3px solid var(--accent); background: #ffffff; }
.permission-note strong { font-size: 14px; }
.permission-note span { color: var(--muted); font-size: 12px; }
.audit-surface { max-width: 1200px; margin-top: 22px; }
.audit-surface table { min-width: 840px; }
.audit-path { color: var(--muted); font-family: Consolas, monospace; font-size: 10px; }
.invite-result { display: grid; gap: 14px; padding-top: 18px; }
.invite-result p { margin: 0; color: var(--muted); font-size: 12px; }
.invite-result > div { display: flex; justify-content: end; gap: 8px; }
.invite-result a { text-decoration: none; display: grid; place-items: center; }
.form-surface, .table-surface, .settings-band { border: 1px solid var(--line); background: var(--surface); }
.form-surface { padding: 18px; }
.table-surface { min-width: 0; }
.section-heading { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-surface .section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.35; }
.section-heading .eyebrow { margin-bottom: 3px; }
.stack-form { display: grid; gap: 15px; }
.stack-form label, .settings-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
input, select { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid #c8d2cc; border-radius: 4px; background: #ffffff; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #dff1ea; }
.check-label { display: flex !important; align-items: center; gap: 7px !important; color: var(--ink) !important; font-size: 13px !important; font-weight: 500 !important; }
.check-label input { width: 15px; min-height: 15px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f1f4f2; color: var(--muted); font-size: 11px; font-weight: 750; }
td strong { display: block; font-weight: 700; }
td span { color: var(--muted); font-size: 11px; }
.table-actions { width: 88px; text-align: right; white-space: nowrap; }
.table-icon { width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 15px; }
.table-icon:hover { border-color: var(--line); color: var(--accent); }
.table-icon.danger:hover { color: var(--danger); }
.empty-row { padding: 42px; color: var(--muted); text-align: center; }

.settings-form { display: grid; gap: 18px; max-width: 1280px; }
.settings-band { padding: 20px; }
.settings-band > .section-heading { margin-bottom: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.settings-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.settings-grid.five-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.settings-grid.six-columns { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.settings-grid.seven-columns { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.compound-input { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 5px; }
.duty-break-grid { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e7e4; }
.duty-break-grid small { color: #8b9690; font-size: 9px; font-weight: 500; }
.ratio-row { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ratio-row > span { margin-right: 8px; }
.ratio-row label { display: grid; grid-template-columns: auto 72px; align-items: center; gap: 6px; }
.slot-editor { margin: 0 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 5px; }
.slot-editor:last-child { margin-bottom: 0; }
.slot-editor-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; }
.slot-checks { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.slot-checks .check-label { font-size: 12px !important; }
.service-choice-block { display: grid; gap: 8px; margin-top: 14px; }
.service-choice-block > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.service-choice-grid { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 10px 11px; border: 1px solid var(--line); background: #f8faf8; }
.service-choice-grid .check-label { font-size: 12px !important; }
.service-editors { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 8px 14px; }
.service-editor { display: grid; grid-template-columns: 26px minmax(0, 1fr) 32px; align-items: center; gap: 7px; }
.service-editor > span { color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }
.bulk-rotation-surface { max-width: 1280px; }
.bulk-rotation-form { display: grid; gap: 16px; padding: 20px; }
.bulk-heading { margin: 0; }
.bulk-rotation-table input { min-width: 150px; }
.bulk-rotation-table .check-label { white-space: nowrap; }
.bulk-submit { display: flex; justify-content: end; }
.rotation-group-band { max-width: 1500px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid var(--line); background: var(--surface); }
.rotation-group-band > .section-heading { margin-bottom: 10px; }
.group-name-grid { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 8px 12px; }
.group-name-editor { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto 30px; align-items: center; gap: 6px; }
.group-name-editor > span { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.rotation-layout { max-width: 1500px; grid-template-columns: 260px minmax(0, 1fr); }
.rotation-summary > .section-heading { padding: 11px 14px; }
.rotation-summary table { min-width: 940px; }
.rotation-summary td { padding: 7px 8px; }
.rotation-summary input, .rotation-summary select { min-width: 125px; font-size: 12px; }
.rotation-summary .rotation-select-cell { width: 38px; padding-inline: 8px; text-align: center; }
.rotation-summary .rotation-select-cell input { width: 15px; min-width: 15px; min-height: 15px; }
.rotation-period-divider th { padding: 8px 12px; border-top: 2px solid #bdcbc3; border-bottom: 1px solid #d7e0da; background: #edf2ee; color: #405149; text-align: left; }
.rotation-period-divider th span { font-size: 12px; font-weight: 800; }
.rotation-period-divider th small { margin-left: 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.rotation-period-divider:first-child th { border-top-width: 1px; }
.rotation-bulk-edit { display: grid; grid-template-columns: 82px repeat(4, minmax(120px, 1fr)) auto; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f9f7; }
.rotation-bulk-edit > strong { align-self: center; color: #52625b; font-size: 11px; }
.rotation-bulk-edit label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.rotation-bulk-edit input, .rotation-bulk-edit select { min-width: 0; min-height: 32px; font-size: 11px; }
.rotation-bulk-edit button[disabled] { cursor: default; opacity: 0.5; }

.modal-layer { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 28px; background: rgba(25, 33, 29, 0.44); }
.modal-layer[hidden] { display: none; }
.modal-panel { width: min(880px, 100%); max-height: calc(100vh - 56px); overflow: auto; padding: 22px; border: 1px solid #cdd8d1; border-radius: 6px; background: #ffffff; box-shadow: 0 20px 55px rgba(19, 35, 27, 0.22); }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 4px 0 0; font-size: 19px; }
.candidate-list { display: grid; gap: 10px; padding-top: 16px; }
.candidate-option { display: grid; grid-template-columns: 120px 1fr 176px; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; }
.candidate-option strong { display: block; font-size: 16px; }
.candidate-option > div > span { color: var(--muted); font-size: 12px; }
.candidate-option dl { display: flex; gap: 16px; margin: 0; }
.candidate-option dl div { display: grid; gap: 3px; }
.candidate-option dt { color: var(--muted); font-size: 11px; }
.candidate-option dd { margin: 0; font-size: 15px; font-weight: 750; }
.candidate-actions { display: flex; justify-content: end; gap: 6px; }
.validation-summary { display: flex; gap: 8px; padding: 14px 0; }
.validation-summary span { display: inline-flex; min-height: 29px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.summary-error { background: #f8e6e6; color: #9b3030; }
.summary-warning { background: #fff1dc; color: #9c5c14; }
.validation-list { display: grid; gap: 12px; }
.validation-section { padding: 13px 14px; border-left: 3px solid var(--amber); background: #fffaf3; }
.validation-section.error { border-left-color: var(--danger); background: #fff5f5; }
.validation-section h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 13px; }
.validation-section h3 span { color: var(--muted); font-size: 12px; }
.validation-section ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: #4e5a54; font-size: 12px; line-height: 1.5; }
.validation-ok { padding: 34px 0; color: var(--accent); text-align: center; font-weight: 700; }
.assignment-modal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr); gap: 20px; padding-top: 18px; }
.assignment-modal h3 { margin: 0 0 10px; font-size: 13px; }
.assigned-worker-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.assigned-worker-list li { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 4px 8px; border: 1px solid var(--line); font-size: 13px; }
.assigned-worker-list .assignment-empty { color: var(--muted); }
.modal-form { padding-top: 18px; }
.day-split-time-fields { display: grid; gap: 8px; padding: 11px 12px; border: 1px solid var(--line); background: #f7f9f7; }
.day-split-time-fields .settings-grid { gap: 10px; }
.day-split-time-fields .form-hint { margin: 0; }
.institution-time-default { color: var(--muted); font-size: 10px; }
.radio-set { display: grid; gap: 9px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 4px; }
.radio-set legend { padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.form-hint { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-top: 14px; }
.help-grid section { min-height: 76px; display: grid; align-content: start; gap: 6px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.help-grid section:nth-child(odd) { border-right: 1px solid var(--line); }
.help-grid strong { font-size: 13px; }
.help-grid span { color: var(--muted); font-size: 11px; line-height: 1.55; }

.tour-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.tour-mask { position: fixed; background: rgba(20, 27, 23, 0.62); pointer-events: auto; }
.tour-focus { position: fixed; border: 2px solid #72d2b2; border-radius: 6px; box-shadow: 0 0 0 2px rgba(16, 83, 67, 0.28); pointer-events: none; }
.tour-callout { position: fixed; width: min(390px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 18px; border: 1px solid #aebcb4; border-radius: 6px; background: #ffffff; box-shadow: 0 18px 44px rgba(15, 28, 21, 0.28); pointer-events: auto; }
.tour-callout-head { display: flex; align-items: center; justify-content: space-between; }
.tour-callout-head > div { display: flex; align-items: center; gap: 8px; }
.tour-stage { color: var(--accent); font-size: 11px; font-weight: 800; }
.tour-progress { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; }
.tour-callout-head button { width: 27px; height: 27px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 15px; }
.tour-callout-head button:hover { background: #f0f4f1; color: var(--danger); }
.tour-callout h2 { margin: 10px 0 7px; font-size: 17px; }
.tour-callout .tour-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tour-points { display: grid; gap: 5px; margin: 11px 0 0; padding-left: 18px; color: #45534c; font-size: 11px; line-height: 1.5; }
.tour-accent { display: block; margin-top: 12px; padding: 10px 11px; border-left: 3px solid var(--accent); background: #edf7f2; color: #165f50; font-size: 12px; line-height: 1.5; }
.tour-accent[hidden] { display: none; }
.tour-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.tour-actions button[disabled] { visibility: hidden; }
.tour-running .tour-target.date-row .date-quick-actions,
.tour-running .tour-target .date-quick-actions { opacity: 1; pointer-events: none; }
.tour-running .tour-target.date-row .day-labels,
.tour-running .tour-target .day-labels { visibility: hidden; }

.sidebar-collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.sidebar-collapsed .sidebar { padding-inline: 12px; }
.sidebar-collapsed .brand-row { margin-inline: 2px; justify-content: center; }
.sidebar-collapsed .brand, .sidebar-collapsed .workspace, .sidebar-collapsed .nav-label, .sidebar-collapsed .policy-summary { display: none; }
.sidebar-collapsed .primary-nav { justify-items: center; }
.sidebar-collapsed .nav-item { width: 42px; justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-footer { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .sidebar-footer .environment-dot { display: none; }

@media (max-width: 1220px) {
  .main-content { padding-inline: 22px; }
  .weekday-row, .calendar-row { grid-template-columns: 88px repeat(7, minmax(102px, 1fr)); }
  .calendar-cell { min-height: 104px; }
  .week-slot-label { padding-inline: 6px; font-size: 9px; }
  .settings-grid.four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid.five-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid.six-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid.seven-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .candidate-option { grid-template-columns: 100px 1fr 158px; }
  .assignment-modal { grid-template-columns: 1fr; }
  .group-name-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  .rotation-bulk-edit { grid-template-columns: 76px repeat(2, minmax(130px, 1fr)); }
  .quick-assignment { grid-template-columns: 150px minmax(0, 1fr); }
  .quick-worker-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
