:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --surface-muted: #f2f4f8;
  --border: #d8dde6;
  --border-strong: #bcc5d3;
  --text: #162033;
  --muted: #667085;
  --brand: #d71920;
  --brand-dark: #b30f15;
  --brand-ink: #ffffff;
  --ok-bg: #eefbf3;
  --ok-bd: #b7ebcb;
  --ok-tx: #166534;
  --off-bg: #fff3d6;
  --off-bd: #f6cf73;
  --off-tx: #8a4b00;
  --timeoff-bg: #fdecec;
  --timeoff-bd: #f3b3b3;
  --timeoff-tx: #9f1239;
  --overlay-bg: #eef2ff;
  --overlay-bd: #c7d2fe;
  --overlay-tx: #3730a3;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --wrap: 1280px;
  --ticker-h: 40px;
  --font-ui: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(16, 24, 40, 0.05), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}
button, select, input {
  font: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}

.scheduler-root {
  min-height: 100vh;
}

.ticker-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  height: var(--ticker-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: linear-gradient(90deg, var(--brand) 0%, #e1282e 100%);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.ticker-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding-right: 12px;
  white-space: nowrap;
}
.ticker-track {
  position: relative;
  overflow: hidden;
  height: 24px;
  display: flex;
  align-items: center;
}
.ticker-marquee {
  display: inline-flex;
  min-width: max-content;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
  padding-inline-end: 48px;
  font-size: 17px;
  font-weight: 800;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-track.is-paused .ticker-marquee,
.ticker-track.is-static .ticker-marquee {
  animation-play-state: paused;
  transform: translateX(0);
}
.ticker-track.is-static .ticker-marquee {
  min-width: 100%;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #101828;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.page-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px;
}

.page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.brand-block {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ef4444 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 28px;
  box-shadow: var(--shadow-sm);
}
.brand-text h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}
.brand-text p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role-badge--action {
  margin-top: 0;
  min-height: 34px;
  padding: 0 11px;
  border-color: #f0d6d9;
  background: #fff8f8;
  color: #8f2d2d;
  font-size: 11px;
  letter-spacing: 0.08em;
  align-self: center;
  box-shadow: none;
  cursor: default;
  user-select: none;
  pointer-events: none;
}
.header-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.meta-strip,
.action-strip,
.utility-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.action-group--admin {
  padding-left: 4px;
}
.action-group--support {
  padding-left: 4px;
  margin-left: 4px;
  border-left: 1px solid rgba(188, 197, 211, 0.8);
}
html[data-mode="admin"] .meta-strip {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.status-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.pill-button,
.ghost-button,
.outline-button,
.primary-button,
.select-field,
.date-field,
.text-field {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.pill-button,
.ghost-button,
.outline-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 700;
}
.primary-button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.support-entry-button {
  min-height: 36px;
  padding: 0 14px;
  border-style: dashed;
  color: #334155;
  background: #fffdfd;
}
.action-group [hidden] {
  display: none !important;
}
.ghost-button[disabled],
.outline-button[disabled],
.primary-button[disabled],
.pill-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.status-chip[data-state="loading"] {
  border-color: #f6cf73;
  color: #8a4b00;
  background: #fff9eb;
}
.status-chip[data-state="ready"] {
  border-color: #b7ebcb;
  color: #166534;
  background: #f4fdf7;
}
.status-chip[data-state="error"] {
  border-color: #f3b3b3;
  color: #9f1239;
  background: #fff5f5;
}

.filter-shell,
.period-shell,
.stats-shell,
.utility-panel,
.schedule-shell,
.advanced-shell {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(188, 197, 211, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filter-shell,
.period-shell,
.advanced-shell {
  padding: 14px;
}
.advanced-shell {
  scroll-margin-top: 20px;
}
.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.field {
  display: grid;
  gap: 6px;
}
.field label,
.period-shell .field-title,
.stats-card .label,
.utility-header .label,
.banner-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.select-field,
.date-field,
.text-field {
  width: 100%;
  padding: 0 14px;
  font-weight: 700;
}
.print-button {
  width: 100%;
  justify-content: center;
}

.period-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}
.period-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.period-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.period-caption {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
  background: #fff;
}
.banner[data-state="info"],
.banner[data-state="empty"] {
  border-color: var(--border);
  background: #fff;
}
.banner[data-state="missing"] {
  border-color: #f3b3b3;
  background: #fff6f6;
}
.banner[data-state="partial"] {
  border-color: #f6cf73;
  background: #fff9ed;
}
.banner[data-state="placeholder-only"] {
  border-color: #c7d2fe;
  background: #f5f7ff;
}
.banner-copy {
  font-size: 14px;
  line-height: 1.45;
}
.banner-meta {
  font-size: 12px;
  color: var(--muted);
}

.stats-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.stats-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fff;
}
.stats-card .value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.stats-card .caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.schedule-shell {
  overflow: hidden;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
}
.section-subcopy {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
#support-runtime-meta {
  margin-top: 10px;
}
.table-scroll {
  overflow: auto;
  max-height: calc(100vh - 320px);
  border-top: 1px solid var(--border);
}
.schedule-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  background: #fff;
}
.schedule-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-strong);
}
.schedule-table th,
.schedule-table td {
  border-right: 1px solid #e6eaf1;
  border-bottom: 1px solid #e6eaf1;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.schedule-table th:first-child,
.schedule-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  min-width: 280px;
  max-width: 280px;
}
.schedule-table thead th:first-child {
  z-index: 6;
  background: #f8fafc;
}
.schedule-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}
.schedule-table tbody tr:nth-child(even) td:first-child {
  background: #f7f9fc;
}
.schedule-table .weekend {
  background: #faf7f2;
}
.schedule-table .today {
  background: #fff7db;
}
.team-row td {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #eff3f8 !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475467;
}
.associate-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.associate-subline {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.day-name {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-date {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.shift-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  background: #fff;
}
.shift-token[data-kind="work"] {
  background: var(--ok-bg);
  border-color: var(--ok-bd);
  color: var(--ok-tx);
}
.shift-token[data-kind="off"] {
  background: var(--off-bg);
  border-color: var(--off-bd);
  color: var(--off-tx);
}
.shift-token[data-kind="timeoff"] {
  background: var(--timeoff-bg);
  border-color: var(--timeoff-bd);
  color: var(--timeoff-tx);
}
.shift-token[data-kind="overlay"] {
  background: var(--overlay-bg);
  border-color: var(--overlay-bd);
  color: var(--overlay-tx);
}
.shift-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.cell-edit-button {
  display: grid;
  width: 100%;
  gap: 4px;
  justify-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
  cursor: pointer;
}
.cell-edit-button:focus-visible {
  outline: 2px solid rgba(215, 25, 32, 0.4);
  outline-offset: 2px;
  border-radius: 14px;
}
.utility-form {
  display: grid;
  gap: 14px;
}
.support-card {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.support-actions,
.utility-actions,
.utility-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.utility-inline-form {
  margin-top: 10px;
}
.utility-list-section {
  display: grid;
  gap: 10px;
}
.nested-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.nested-item {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.checkbox-field input {
  width: 16px;
  height: 16px;
}
.checkbox-field-compact {
  font-size: 11px;
  font-weight: 700;
}
.support-auth-field {
  min-width: min(320px, 100%);
}
.empty-state {
  padding: 24px;
  font-size: 14px;
  color: var(--muted);
}
.utility-panel {
  padding: 16px;
}
.workflow-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.workflow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
}
.workflow-dialog {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(188, 197, 211, 0.82);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}
.workflow-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.workflow-header h3 {
  margin: 4px 0 0;
  font-size: 26px;
}
.workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.workflow-tab {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.workflow-tab[aria-selected="true"] {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.workflow-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.workflow-body,
.workflow-side {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.workflow-panel,
.workflow-side-card,
.workflow-list-card,
.heatmap-month {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.workflow-panel,
.workflow-side-card,
.workflow-list-card {
  padding: 16px;
}
.workflow-stack,
.workflow-list,
.workflow-list-grid {
  display: grid;
  gap: 12px;
}
.workflow-filter-bar,
.workflow-form-grid,
.workflow-legend,
.workflow-side-actions {
  display: grid;
  gap: 12px;
}
.workflow-filter-bar,
.workflow-form-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.workflow-filter-bar--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.workflow-form-grid--request {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.workflow-wide {
  grid-column: 1 / -1;
}
.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.workflow-side-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}
.workflow-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.workflow-item-title {
  font-size: 16px;
  font-weight: 800;
}
.workflow-item-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.workflow-item-status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.workflow-item-status[data-status="approved"] {
  background: #f4fdf7;
  border-color: #b7ebcb;
  color: #166534;
}
.workflow-item-status[data-status="pending"] {
  background: #fff9eb;
  border-color: #f6cf73;
  color: #8a4b00;
}
.workflow-item-status[data-status="declined"],
.workflow-item-status[data-status="cancelled"] {
  background: #fff5f5;
  border-color: #f3b3b3;
  color: #9f1239;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.heatmap-month {
  padding: 12px;
}
.heatmap-month-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.heatmap-month-title {
  font-size: 14px;
  font-weight: 800;
}
.heatmap-calendar {
  display: grid;
  gap: 8px;
}
.heatmap-weekdays,
.heatmap-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.heatmap-weekdays span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.heatmap-day,
.heatmap-day--empty {
  min-height: 52px;
  border-radius: 14px;
}
.heatmap-day {
  display: grid;
  justify-items: start;
  align-content: space-between;
  padding: 8px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.heatmap-day[data-level="0"] {
  background: #fff;
}
.heatmap-day[data-level="1"] {
  background: rgba(215, 25, 32, 0.08);
}
.heatmap-day[data-level="2"] {
  background: rgba(215, 25, 32, 0.14);
}
.heatmap-day[data-level="3"] {
  background: rgba(215, 25, 32, 0.22);
}
.heatmap-day[data-level="4"] {
  background: rgba(215, 25, 32, 0.3);
}
.heatmap-day[data-tone="pending"] {
  border-color: #f6cf73;
}
.heatmap-day[data-tone="approved"] {
  background: rgba(22, 101, 52, 0.12);
  border-color: #b7ebcb;
}
.heatmap-day[data-tone="closed"] {
  background: rgba(148, 163, 184, 0.12);
  border-color: #cbd5e1;
}
.heatmap-day[data-tone="mixed"] {
  background: rgba(99, 102, 241, 0.12);
  border-color: #c7d2fe;
}
.heatmap-day.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.12);
}
.heatmap-day--empty {
  border: 1px dashed rgba(188, 197, 211, 0.55);
  background: transparent;
}
.heatmap-day-number {
  font-size: 13px;
  font-weight: 800;
}
.heatmap-day-count {
  font-size: 11px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.72);
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}
.legend-swatch[data-level="0"] { background: #fff; }
.legend-swatch[data-level="1"] { background: rgba(215, 25, 32, 0.08); }
.legend-swatch[data-level="2"] { background: rgba(215, 25, 32, 0.14); }
.legend-swatch[data-level="3"] { background: rgba(215, 25, 32, 0.22); }
.legend-swatch[data-level="4"] { background: rgba(215, 25, 32, 0.3); }
.legend-swatch[data-tone="pending"] { background: #fff4d9; border-color: #f6cf73; }
.legend-swatch[data-tone="approved"] { background: #e8f8ee; border-color: #b7ebcb; }
.legend-swatch[data-tone="closed"] { background: #eff3f8; border-color: #cbd5e1; }
.legend-swatch[data-tone="mixed"] { background: #eef2ff; border-color: #c7d2fe; }
.workflow-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.utility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.utility-header h3 {
  margin: 4px 0 0;
  font-size: 18px;
}
.utility-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.utility-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.utility-item .title {
  font-weight: 800;
}
.utility-item .meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.utility-item .status {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
}
.advanced-shell details {
  display: grid;
  gap: 12px;
}
.advanced-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.data-sheet-table th,
.data-sheet-table td {
  vertical-align: top;
}
.maintenance-ok {
  color: var(--ok-tx);
  font-weight: 700;
}
.maintenance-protected {
  color: var(--timeoff-tx);
  font-weight: 700;
}
.maintenance-pre {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.footer-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .page-header {
    grid-template-columns: 1fr;
  }
  .header-meta {
    justify-items: start;
  }
  html[data-mode="admin"] .meta-strip {
    align-items: flex-start;
  }
  .meta-strip,
  .action-strip,
  .utility-strip {
    justify-content: flex-start;
  }
  .action-group--support {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .stats-shell {
    grid-template-columns: 1fr;
  }
  .workflow-layout,
  .workflow-filter-bar,
  .workflow-form-grid,
  .workflow-form-grid--request,
  .heatmap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
  }
  .ticker-bar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .ticker-label {
    display: none;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .period-shell {
    align-items: stretch;
  }
  .schedule-table th:first-child,
  .schedule-table td:first-child {
    min-width: 220px;
    max-width: 220px;
  }
  .table-scroll {
    max-height: calc(100vh - 280px);
  }
  .workflow-modal {
    padding: 0;
  }
  .workflow-dialog {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    padding: 16px;
  }
  .workflow-header {
    align-items: flex-start;
  }
  .workflow-actions {
    justify-content: stretch;
  }
  .workflow-actions .pill-button,
  .workflow-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  body {
    background: #fff;
  }
  .ticker-bar,
  .action-strip,
  .advanced-shell,
  .utility-panel,
  .footer-note,
  .ticker-button,
  [data-print-hide="true"] {
    display: none !important;
  }
  .page-shell {
    max-width: none;
    padding: 0;
  }
  .filter-shell,
  .period-shell,
  .stats-shell,
  .schedule-shell,
  .banner {
    box-shadow: none;
    border-color: #cbd5e1;
    background: #fff;
  }
  .table-scroll {
    overflow: visible;
    max-height: none;
  }
  .schedule-table {
    width: 100%;
    min-width: 0;
  }
  .schedule-table thead th {
    position: static;
  }
  .schedule-table th:first-child,
  .schedule-table td:first-child,
  .team-row td {
    position: static;
  }
  .schedule-table tr,
  .schedule-table td,
  .schedule-table th {
    break-inside: avoid;
  }
  @page {
    size: landscape;
    margin: 10mm;
  }
}
