:root {
  --bg: #f7f5ef;
  --panel: #fffefa;
  --ink: #1f2933;
  --muted: #687383;
  --line: #ded8ca;
  --brand: #b3261e;
  --brand-dark: #841811;
  --green: #26734d;
  --blue: #2767a7;
  --yellow: #f3b61f;
  --danger: #c24132;
  --shadow: 0 12px 30px rgba(31, 41, 51, 0.09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: var(--brand-dark); }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(31, 41, 51, .42), rgba(31, 41, 51, .35)),
    url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1600&q=80") center / cover;
}
.login-card {
  width: min(460px, 100%);
  background: rgba(255, 254, 250, .96);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.login-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.login-copy p {
  margin: 0;
}
.brand-lockup { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.logo {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--brand);
  color: white; display: grid; place-items: center;
  font-weight: 900; letter-spacing: 0;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field span { font-size: 13px; color: var(--muted); font-weight: 700; }
.field.compact-field { margin: 0; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
.btn, .btn-secondary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
}
.btn { background: var(--brand); color: white; }
.btn:hover { background: var(--brand-dark); }
.btn-secondary { background: #263238; color: white; }
.btn-ghost { background: #eee8da; color: #2f3742; }
.btn-danger { background: var(--danger); color: white; }
.demo-logins {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.demo-label {
  margin: 18px 0 0;
}
.demo-logins button {
  justify-content: space-between;
  background: white;
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.demo-logins strong {
  overflow-wrap: anywhere;
}
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.app-shell.nav-collapsed { grid-template-columns: 82px 1fr; }
.sidebar {
  background: #231f20;
  color: white;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .logo { background: #f3b61f; color: #231f20; }
.nav-toggle {
  width: 100%;
  min-height: 34px;
  background: rgba(255,255,255,.1);
  color: white;
}
.nav { display: grid; gap: 6px; margin-top: 24px; }
.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: rgba(255,255,255,.82);
  padding: 11px 12px;
  border-radius: 8px;
}
.nav button.active, .nav button:hover { background: rgba(255,255,255,.12); color: white; }
.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,.1);
  font-weight: 900;
  flex: 0 0 28px;
}
.nav-collapsed .sidebar {
  padding: 16px 12px;
}
.nav-collapsed .brand-lockup {
  justify-content: center;
}
.nav-collapsed .brand-text,
.nav-collapsed .nav-label {
  display: none;
}
.nav-collapsed .nav {
  margin-top: 16px;
}
.nav-collapsed .nav button {
  justify-content: center;
  padding: 10px;
}
.nav-collapsed .nav-icon {
  margin: 0;
}
.content { min-width: 0; }
.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(255,254,250,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(10px);
}
.topbar-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.topbar select { min-width: 210px; }
main { padding: 24px; max-width: 1480px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(31,41,51,.04);
}
.metric { display: grid; gap: 8px; }
.metric strong { font-size: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #eee8da;
  color: #344054;
  white-space: nowrap;
}
.pill.green { background: #dff3e9; color: #17623d; }
.pill.red { background: #fee4df; color: #a13b2f; }
.pill.blue { background: #e3effd; color: #255d97; }
.pill.yellow { background: #fff1c7; color: #785700; }
.warning-list { display: grid; gap: 8px; }
.warning {
  border-left: 5px solid var(--yellow);
  background: #fff8df;
  padding: 10px 12px;
  border-radius: 8px;
}
.warning.danger { border-left-color: var(--danger); background: #fff0ed; }
.publish-warnings {
  margin-bottom: 14px;
}
.publish-warnings.ready {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.publish-warnings.ready p {
  flex-basis: 100%;
  margin: 0;
}
.publish-warnings summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.publish-warnings summary > div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}
.publish-warnings > p {
  margin: 12px 0;
}
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ebe6da; vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #fbf8f0; }
tr:last-child td { border-bottom: 0; }
.hours-table { min-width: 680px; }
.hours-table input:not([type="checkbox"]),
.hours-table select {
  max-width: 128px;
  min-height: 36px;
  padding: 7px 9px;
}
.hours-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}
.hours-table tr.closed-row {
  background: #f4f1ea;
}
.hours-table tr.closed-row select {
  opacity: .55;
}
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar > * { width: auto; }
.week-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
  margin-bottom: 14px;
  max-width: 420px;
}
.week-picker-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  text-align: center;
}
.icon-btn {
  min-width: 38px;
  padding: 0;
}
.week-picker-days,
.week-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.week-picker-days span {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
}
.week-day {
  aspect-ratio: 1;
  min-height: 36px;
  padding: 0;
  background: #f8f5ec;
  border: 1px solid #e5ddce;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.week-day.monday {
  background: #fffefa;
  border-color: var(--brand);
  color: var(--brand-dark);
}
.week-day.selected {
  background: var(--brand);
  color: white;
}
.week-day.not-monday,
.week-day.other-month {
  color: #a4a09a;
  background: #eeeae1;
}
.week-day:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.day-col {
  min-width: 180px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.day-head { padding: 12px; background: #fbf8f0; border-bottom: 1px solid var(--line); }
.day-body { padding: 10px; display: grid; gap: 9px; min-height: 360px; align-content: start; }
.shift {
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 6px;
}
.shift.open { border-left-color: var(--danger); background: #fff9f7; }
.shift .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.shift .actions button { min-height: 30px; padding: 5px 8px; font-size: 12px; }
.requirements { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31,41,51,.48);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 10;
}
.modal {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--panel);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.check-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  margin: 0;
}
.check-panel legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.check-grid label,
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-weight: 700;
}
.check-grid input,
.inline-check input {
  width: 18px;
  min-height: 18px;
}
.inline-check {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.segmented button {
  min-height: 34px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
}
.segmented button.active {
  background: #263238;
  color: white;
}
.availability-legend,
.availability-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
}
.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.av-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.availability-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  max-height: 620px;
}
.availability-grid {
  display: grid;
  gap: 2px;
  min-width: 980px;
  padding: 8px;
}
.availability-corner,
.availability-time,
.availability-day {
  position: sticky;
  background: #fbf8f0;
  z-index: 1;
}
.availability-corner {
  left: 8px;
  top: 8px;
  z-index: 3;
  border-radius: 6px;
}
.availability-time {
  top: 8px;
  min-height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  border-radius: 6px;
  white-space: nowrap;
}
.availability-day {
  left: 8px;
  z-index: 2;
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
}
.availability-cell {
  min-width: 34px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #e9e1d1;
  background: #f4f1ea;
  cursor: crosshair;
}
.availability-cell.available,
.av-swatch.available { background: #7ed6a5; border-color: #3b9f68; }
.availability-cell.preferred,
.av-swatch.preferred { background: #8ec5ff; border-color: #3b82c4; }
.availability-cell.unavailable,
.av-swatch.unavailable { background: #ece7dc; border-color: #d3cab9; }
.availability-cell.school-conflict,
.av-swatch.school-conflict { background: #ffe08a; border-color: #d69e2e; }
.availability-cell.closed-business {
  background-image: radial-gradient(rgba(31, 41, 51, .5) 1px, transparent 1.5px);
  background-size: 7px 7px;
}
.availability-cell.outside-staffing {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(31, 41, 51, .78) 0,
    rgba(31, 41, 51, .78) 2px,
    rgba(255, 255, 255, .78) 2px,
    rgba(255, 255, 255, .78) 7px
  );
  background-blend-mode: multiply;
  cursor: not-allowed;
  opacity: .82;
}
.av-swatch.closed-business {
  background: radial-gradient(#263238 1px, #fff 1.5px);
  background-size: 7px 7px;
}
.av-swatch.outside-staffing {
  background: repeating-linear-gradient(
    135deg,
    #263238 0,
    #263238 2px,
    #fff 2px,
    #fff 7px
  );
}
.availability-cell:hover:not(:disabled) {
  outline: 2px solid #263238;
  outline-offset: -2px;
}
.staffing-summary .card {
  text-align: left;
  cursor: pointer;
}
.staffing-role-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
}
.staffing-role-card.active {
  outline: 2px solid #263238;
  outline-offset: 0;
}
.staffing-scroll {
  max-height: 680px;
}
.staffing-grid {
  display: grid;
  gap: 2px;
  min-width: 1680px;
  padding: 8px;
}
.staffing-cell {
  min-height: 76px;
  border: 1px solid #e0d8ca;
  border-radius: 6px;
  padding: 7px;
  background: white;
  display: grid;
  gap: 6px;
  align-content: space-between;
}
.staffing-cell.gap { background: #fff0ed; border-color: #e6a69d; }
.staffing-cell.covered { background: #eefaf3; border-color: #a8dabc; }
.staffing-cell.extra { background: #e8f2ff; border-color: #aacbf0; }
.staffing-cell.requirement-cell.needed { background: #fff8df; border-color: #f0cc66; }
.staffing-cell.requirement-cell.empty { background: #fbf8f0; border-color: #e0d8ca; }
.staffing-cell.closed-business {
  background-image: radial-gradient(rgba(31, 41, 51, .26) 1px, transparent 1.5px);
  background-size: 7px 7px;
}
.staffing-cell.outside-staffing {
  background: repeating-linear-gradient(135deg, #263238 0, #263238 2px, #fff 2px, #fff 7px);
  opacity: .65;
  place-items: center;
}
.staffing-counts {
  display: grid;
  gap: 2px;
}
.requirement-count {
  display: grid;
  gap: 2px;
}
.staffing-counts strong {
  font-size: 20px;
}
.requirement-count strong {
  font-size: 24px;
}
.staffing-counts span,
.requirement-count span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}
.staffing-names {
  font-size: 11px;
  color: #344054;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.staffing-cell-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.staffing-cell-actions button {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 12px;
  background: #263238;
  color: white;
}
.coverage-summary .card {
  text-align: left;
  cursor: pointer;
}
.coverage-role-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
}
.coverage-role-card.active {
  outline: 2px solid #263238;
  outline-offset: 0;
}
.coverage-days {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.coverage-day {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.coverage-day summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  background: #fbf8f0;
  border-bottom: 1px solid transparent;
}
.coverage-day[open] summary {
  border-bottom-color: var(--line);
}
.coverage-day summary > div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}
.coverage-scroll {
  overflow: auto;
  background: white;
}
.coverage-grid {
  display: grid;
  gap: 2px;
  min-width: 1180px;
  padding: 8px;
}
.coverage-cell {
  min-height: 68px;
  border: 1px solid #e0d8ca;
  border-radius: 6px;
  padding: 7px;
  background: white;
  display: grid;
  gap: 4px;
  align-content: center;
}
.coverage-cell strong {
  font-size: 24px;
  line-height: 1;
}
.coverage-cell span {
  font-size: 11px;
  color: #344054;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.coverage-cell.covered { background: #eefaf3; border-color: #a8dabc; }
.coverage-cell.empty { background: #fbf8f0; border-color: #e0d8ca; }
.coverage-cell.closed-business {
  background-image: radial-gradient(rgba(31, 41, 51, .26) 1px, transparent 1.5px);
  background-size: 7px 7px;
}
.coverage-cell.outside-staffing {
  background: repeating-linear-gradient(135deg, #263238 0, #263238 2px, #fff 2px, #fff 7px);
  opacity: .65;
  place-items: center;
}
.print-banner { display: none; }
.employee-shell {
  min-height: 100vh;
  background: var(--bg);
}
.employee-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,254,250,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.employee-topbar .brand-lockup {
  margin: 0;
}
.employee-main {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 22px;
}
.employee-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.employee-section {
  margin-top: 18px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.employee-card-list {
  display: grid;
  gap: 10px;
}
.employee-shift-card,
.open-shift-card {
  display: grid;
  gap: 10px;
}
.open-shift-card .warning {
  margin: 0;
}
.shift-time {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbf8f0;
  color: var(--muted);
}
.employee-calendar-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.employee-calendar-card code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 10px;
  border-radius: 8px;
  background: #f4f1ea;
  color: #344054;
}
.domain-note {
  background: #e3effd;
  border: 1px solid #b7d0ee;
  padding: 12px;
  border-radius: 8px;
}
@media (max-width: 920px) {
  body { overflow-x: hidden; }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  .login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    background: var(--panel);
  }
  .login-card {
    width: min(100%, 430px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .login-card .brand-lockup {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .login-card .logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }
  .login-copy {
    margin-bottom: 18px;
  }
  .login-copy h1 {
    font-size: 32px;
  }
  .login-card .field {
    margin: 12px 0;
  }
  .login-card input,
  .login-card .btn {
    min-height: 48px;
  }
  .demo-label {
    margin-top: 22px;
  }
  .demo-logins {
    gap: 8px;
  }
  .demo-logins button {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2px;
    min-height: 48px;
    padding: 9px 12px;
  }
  .demo-logins span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .app-shell,
  .app-shell.nav-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    z-index: 8;
    padding: 10px 12px;
  }
  .sidebar .brand-lockup {
    margin-bottom: 8px;
  }
  .sidebar .logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .sidebar h3 { font-size: 15px; }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav button {
    width: auto;
    min-width: 44px;
    min-height: 40px;
    flex: 0 0 auto;
    justify-content: center;
    padding: 8px;
  }
  .nav-label { display: none; }
  .nav-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }
  .topbar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .topbar-controls > * { width: auto; }
  .topbar select {
    min-width: 0;
    width: 100%;
  }
  #logout {
    white-space: nowrap;
    padding-inline: 12px;
  }
  main {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }
  .page-head {
    gap: 10px;
    margin-bottom: 14px;
  }
  .page-head > * {
    min-width: 0;
  }
  .page-head .toolbar,
  .toolbar {
    width: 100%;
  }
  .toolbar > *,
  .toolbar button,
  .toolbar select,
  .toolbar .field {
    width: 100%;
  }
  .publish-warnings summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .week-picker {
    max-width: none;
    width: 100%;
    padding: 8px;
  }
  .week-day {
    min-height: 34px;
  }
  .schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .day-col {
    min-width: 0;
  }
  .day-body {
    min-height: 0;
  }
  .form-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .modal-backdrop {
    align-items: start;
    place-items: start center;
    padding: 10px;
  }
  .modal {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }
  .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .availability-legend {
    gap: 6px 8px;
  }
  .availability-scroll,
  .coverage-scroll,
  .table-wrap {
    max-width: 100%;
  }
  .coverage-day summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .coverage-grid {
    display: block;
    min-width: 0;
    padding: 8px;
  }
  .coverage-grid .availability-corner,
  .coverage-grid .availability-time,
  .coverage-grid .availability-day {
    display: none;
  }
  .coverage-cell {
    min-height: 0;
    grid-template-columns: 76px 44px 1fr;
    align-items: center;
    margin-bottom: 6px;
  }
  .coverage-cell::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
  }
  .coverage-cell strong {
    font-size: 20px;
  }
  .employee-topbar {
    padding: 10px 12px;
  }
  .employee-topbar .logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .employee-main {
    padding: 14px 12px 24px;
  }
  .employee-hero {
    display: grid;
  }
  .employee-hero .btn-secondary,
  .employee-calendar-card .btn {
    width: 100%;
  }
  .section-heading {
    align-items: flex-start;
  }
  .shift-time {
    font-size: 22px;
  }
}
@media print {
  body { background: white; }
  .sidebar, .topbar, .toolbar, .page-head button, .shift .actions { display: none !important; }
  .app-shell { display: block; }
  main { max-width: none; padding: 0; }
  .card, .day-col { box-shadow: none; break-inside: avoid; }
  .print-banner { display: block; margin-bottom: 12px; }
  .schedule-grid { grid-template-columns: repeat(7, 1fr); overflow: visible; gap: 6px; }
}
