:root {
  --bg: #f5f5f1;
  --paper: #ffffff;
  --paper-soft: #fafaf7;
  --ink: #171715;
  --muted: #6d6d67;
  --accent: #171715;
  --accent-dark: #171715;
  --line: #e4e4dd;
  --success: #2d7d56;
  --danger: #a63b2d;
  --draft: #f6efe4;
  --open: #f2f6ef;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.6rem 0.8rem 1.2rem;
}

.topbar,
.nav,
.panel,
.auth-card,
.day-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
}

.brand {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--ink);
}

.tagline {
  display: none;
}

.topbar-actions,
.nav,
.toolbar,
.toolbar-actions,
.row-actions,
.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-actions,
.row-actions {
  flex-wrap: wrap;
}

.nav {
  margin-top: 0.45rem;
  padding: 0.25rem 0.3rem;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  padding: 0 0.24rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
}

.content {
  margin-top: 0.55rem;
}

.panel,
.auth-card {
  padding: 0.8rem;
}

.auth-card,
.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack-form p {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

textarea {
  min-height: 6rem;
}

.primary-button,
.ghost-button,
.link-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.38rem 0.58rem;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.primary-button {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.primary-button:hover {
  background: var(--ink);
}

.ghost-button,
.link-button {
  background: var(--paper);
  color: var(--ink);
}

.link-button {
  padding: 0;
  background: transparent;
}

.danger {
  color: var(--danger);
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.user-chip {
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  max-width: 100%;
}

.language-form select {
  width: auto;
  min-width: 3.6rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.3rem 0.4rem;
  font-size: 0.76rem;
}

.push-test-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
}

.day-card {
  padding: 1rem;
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.day-card h2,
.panel h1,
.panel h2,
.auth-card h1 {
  margin: 0 0 0.35rem;
}

.shift-list,
.list,
.messages,
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shift-list,
.list {
  display: grid;
  gap: 0.75rem;
}

.shift-card,
.list li {
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.shift-card.draft {
  background: var(--draft);
}

.shift-main,
.shift-meta {
  display: grid;
  gap: 0.15rem;
}

.shift-meta,
.user-chip,
.empty-state,
small {
  color: var(--muted);
}

.template-actions,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}

.mini-link,
.chip {
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.78rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.message {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.message.success {
  border-color: rgba(31, 111, 74, 0.35);
}

.message.error {
  border-color: rgba(156, 46, 32, 0.35);
}

.page-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-tabs::-webkit-scrollbar,
.nav::-webkit-scrollbar {
  display: none;
}

.page-tab {
  padding: 0.08rem 0 0.22rem;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: normal;
  line-height: 1.15;
}

.page-tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

.schedule-hero {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.schedule-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.schedule-eyebrow {
  margin: 0 0 0.12rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-heading h1 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.schedule-subtitle {
  display: none;
}

.schedule-stats {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.schedule-stat {
  padding: 0.22rem 0.42rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.schedule-stat span {
  display: inline;
  color: var(--muted);
  font-size: 0.68rem;
}

.schedule-stat strong {
  display: inline;
  margin-left: 0.24rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.schedule-command-bar {
  display: block;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.schedule-calendar-toolbar {
  margin-bottom: 0.45rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-nav-copy {
  display: grid;
  gap: 0.1rem;
  margin-right: auto;
}

.calendar-nav-copy strong {
  font-size: 0.82rem;
}

.calendar-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.schedule-view-toggle {
  display: inline-flex;
  padding: 0.12rem;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.schedule-view-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.schedule-view-toggle .is-active {
  background: white;
  color: var(--ink);
  box-shadow: none;
}

.calendar-nav-copy span {
  color: var(--muted);
  font-size: 0.74rem;
}

.calendar-nav .ghost-button,
.schedule-heading .primary-button,
.schedule-heading .ghost-button {
  padding: 0.32rem 0.5rem;
  font-size: 0.74rem;
}

.schedule-command-copy p {
  display: none;
}

.schedule-command-copy h2 {
  margin: 0;
  font-size: 0.86rem;
}

.schedule-template-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.schedule-template-chip {
  padding: 0.2rem 0.38rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.schedule-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.55rem;
  align-items: end;
}

.schedule-filter-grid label {
  display: grid;
  gap: 0.28rem;
}

.schedule-filter-grid span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-filter-grid select,
.schedule-filter-grid input {
  padding: 0.38rem 0.48rem;
  font-size: 0.78rem;
}

.schedule-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.2rem;
}

.schedule-check input {
  width: auto;
}

.schedule-board-panel {
  padding: 0;
  overflow: hidden;
}

.schedule-board {
  overflow-x: auto;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 250px repeat(7, minmax(150px, 1fr));
  min-width: 1220px;
}

.schedule-grid + .schedule-grid {
  border-top: 1px solid var(--line);
}

.schedule-grid-summary .schedule-grid-label,
.schedule-grid-summary .schedule-cell {
  min-height: 78px;
  background: #fbfbf8;
}

.schedule-summary-label {
  display: grid;
  gap: 0.2rem;
}

.schedule-summary-label small {
  color: var(--muted);
}

.schedule-grid-label,
.schedule-day-heading,
.schedule-cell {
  min-height: 72px;
  padding: 0.42rem;
  border-right: 1px solid var(--line);
}

.schedule-grid-label:last-child,
.schedule-day-heading:last-child,
.schedule-cell:last-child {
  border-right: 0;
}

.schedule-grid-header .schedule-grid-label,
.schedule-grid-header .schedule-day-heading {
  min-height: auto;
  padding: 0.38rem 0.42rem;
  background: var(--paper-soft);
}

.schedule-grid-corner {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-day-heading {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  position: relative;
}

.schedule-day-heading strong {
  font-size: 0.78rem;
}

.schedule-day-heading span {
  color: var(--muted);
  font-size: 0.72rem;
}

.schedule-day-heading.is-today {
  background: #f0f0ea;
}

.schedule-day-title {
  display: grid;
  gap: 0.08rem;
}

.schedule-day-meta {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.schedule-day-meta small {
  padding: 0.03rem 0.16rem;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
}

.schedule-mini-action {
  position: absolute;
  right: 0.45rem;
  top: 0.45rem;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.68rem;
}

.schedule-resource-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper-soft);
}

.resource-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.64rem;
}

.employee-pill {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.employee-avatar {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 6px;
  background: var(--paper-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.64rem;
}

.employee-pill small,
.schedule-resource-label small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.68rem;
}

.schedule-cell {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  background: var(--paper);
}

.schedule-cell-open {
  background: #f7f8f3;
}

.schedule-summary-cell {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.coverage-card {
  display: grid;
  gap: 0.18rem;
  padding: 0.26rem 0.3rem;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.coverage-card strong {
  font-size: 0.66rem;
}

.coverage-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.coverage-line span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coverage-chips {
  display: flex;
  gap: 0.28rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.coverage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  padding: 0.08rem 0.16rem;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
}

.coverage-chip-approved {
  background: #edf3ee;
  color: #4e6253;
}

.coverage-chip-pending {
  background: #f1f1ef;
  color: #5e6760;
}

.coverage-chip-empty {
  background: #f2f2ed;
  color: #8a8a80;
}

.coverage-chip-scheduled {
  background: #efefea;
  color: #57574e;
}

.coverage-chip-gap {
  background: #f3eee6;
  color: #6d6557;
}

.coverage-empty {
  min-height: 100%;
  font-size: 0.68rem;
}

.shift-block {
  display: grid;
  gap: 0.18rem;
  padding: 0.34rem 0.38rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 2px solid var(--shift-color, var(--accent));
  background: white;
  box-shadow: none;
}

a.shift-block {
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

a.shift-block:hover {
  transform: none;
  box-shadow: none;
}

.scheduled-shift {
  background: #f8f8f4;
}

.draft-shift {
  background: var(--draft);
}

.open-shift {
  background: #f2f4ee;
}

.shift-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #5d5d53;
  font-size: 0.68rem;
}

.shift-block strong {
  font-size: 0.7rem;
}

.shift-block span {
  color: #4d5149;
  font-weight: 600;
  font-size: 0.68rem;
}

.shift-block .shift-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.1rem 0.26rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
}

.shift-state-pending {
  background: #eef4fb;
  color: #2e5f93;
}

.shift-state-approved {
  background: #e8f6ef;
  color: #13724f;
}

.shift-state-denied {
  background: #fbecee;
  color: #9f3b4d;
}

.shift-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.schedule-mini-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.schedule-empty {
  min-height: 1.9rem;
  border: 1px dashed #d7d7cf;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #97978d;
  font-size: 0.68rem;
  background: var(--paper-soft);
}

.schedule-empty-minimal {
  min-height: 100%;
  background: #fafaf6;
}

.mobile-schedule {
  display: none;
  gap: 0.65rem;
}

.mobile-day-card {
  padding: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.mobile-day-header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.mobile-day-header span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
}

.mobile-day-stats {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.mobile-day-stats span {
  margin: 0;
  padding: 0.16rem 0.3rem;
  border-radius: 999px;
  background: #f1f1ec;
  color: #626259;
  font-size: 0.68rem;
  font-weight: 700;
}

.mobile-lane + .mobile-lane {
  margin-top: 0.6rem;
}

.mobile-lane h3 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-shift-stack,
.mobile-roster {
  display: grid;
  gap: 0.45rem;
}

.mobile-roster-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbf8;
}

.mobile-roster-head,
.mobile-shift-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.mobile-shift-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.compact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shift-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.shift-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 21, 0.22);
  backdrop-filter: blur(1px);
}

.shift-modal-backdrop a {
  display: block;
  width: 100%;
  height: 100%;
}

.shift-modal {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 1.6rem);
  overflow: auto;
  padding: 0.7rem;
}

.shift-modal-header,
.shift-modal-footer,
.shift-assign-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.shift-modal-header h2 {
  margin: 0;
  font-size: 1rem;
}

.shift-modal-body {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.shift-modal-summary,
.shift-modal-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  background: #fbfbf8;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ecece5;
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row span {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
}

.detail-row strong {
  text-align: right;
  font-size: 0.84rem;
}

.detail-row-notes {
  align-items: flex-start;
}

.shift-modal-section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}

.modal-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.modal-metric {
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.modal-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-metric strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.84rem;
}

.modal-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.shift-modal-actions {
  display: grid;
  gap: 0.5rem;
}

.claim-status-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}

.claim-status-card strong {
  font-size: 0.82rem;
}

.claim-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.claim-status-card-pending {
  background: #f8fbff;
  border-color: #d6e4f4;
}

.claim-status-card-approved {
  background: #f3fbf7;
  border-color: #d4eadf;
}

.claim-status-card-denied {
  background: #fff7f8;
  border-color: #f0d7dc;
}

.shift-modal-footer {
  margin-top: 0.55rem;
  justify-content: flex-end;
}

.shift-create-modal {
  width: min(480px, 100%);
}

.shift-form p {
  margin-bottom: 0.55rem;
}

.shift-form label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.shift-form input,
.shift-form select,
.shift-form textarea {
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

.shift-form textarea {
  min-height: 5rem;
}

.request-layout,
.request-queue-grid,
.request-self-grid {
  display: grid;
  gap: 0.7rem;
}

.request-queue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-self-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.queue-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.queue-stat {
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbf8;
}

.queue-stat span {
  display: inline;
  color: var(--muted);
  font-size: 0.68rem;
}

.queue-stat strong {
  display: inline;
  margin-left: 0.2rem;
  font-size: 0.76rem;
}

.queue-list li {
  display: grid;
  gap: 0.28rem;
}

.queue-list .row-actions {
  justify-content: flex-start;
  gap: 0.35rem;
}

.request-kicker {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 960px) {
  .two-column,
  .three-column,
  .request-queue-grid,
  .request-self-grid,
  .schedule-filter-grid,
  .modal-metric-grid {
    grid-template-columns: 1fr;
  }

  .desktop-schedule {
    display: none;
  }

  .mobile-schedule {
    display: grid;
  }

  .toolbar,
  .schedule-heading,
  .schedule-command-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .toolbar-actions,
  .topbar-actions,
  .schedule-stats {
    flex-wrap: wrap;
  }

  .schedule-stats {
    flex-wrap: wrap;
  }

  .calendar-nav,
  .shift-modal-header,
  .shift-modal-footer,
  .shift-assign-form,
  .compact-list li,
  .detail-row {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-nav-copy,
  .detail-row strong {
    text-align: left;
  }

  .calendar-nav-actions {
    justify-content: flex-end;
  }

  .queue-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0.55rem 0.55rem 1rem;
  }

  .topbar,
  .nav,
  .panel,
  .auth-card {
    border-radius: 10px;
  }

  .topbar {
    padding: 0.55rem 0.6rem;
  }

  .brand {
    font-size: 0.96rem;
  }

  .tagline {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .user-chip {
    flex: 1 1 auto;
    min-width: 0;
  }

  .language-form {
    flex: 0 0 auto;
  }

  .nav {
    gap: 0.2rem;
    padding: 0.25rem 0.3rem;
  }

  .nav-link,
  .ghost-button,
  .primary-button {
    padding: 0.32rem 0.48rem;
  }

  .schedule-heading h1 {
    font-size: 1rem;
  }

  .schedule-subtitle {
    display: none;
  }

  .schedule-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-stat {
    padding: 0.2rem 0.36rem;
  }

  .mobile-day-card {
    padding: 0.65rem;
    border-radius: 10px;
  }

  .mobile-day-header .ghost-button {
    width: auto;
  }

  .mobile-shift-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-avatar {
    width: 1.35rem;
    height: 1.35rem;
  }

  .page-tabs {
    flex-wrap: nowrap;
  }
}
