/*
 * Welcoming Operations Desk — route-specific replacement layer.
 *
 * Coverage, field operations, Tech Tips, and QC share warm paper, white
 * records, espresso text, and quiet rules. Provested yellow is reserved for
 * the current view and primary action; teal and semantic colours explain
 * operational status. Dense data stays legible inside bounded scrollers.
 */

.platform-view[data-section='operations'],
.platform-view[data-section='tech-tips'],
.platform-view[data-section='qc'] {
  --ops-paper: #f7f4ea;
  --ops-record: #ffffff;
  --ops-recessed: #eee9da;
  --ops-ink: #2b2925;
  --ops-ink-deep: #211f1b;
  --ops-muted: #686154;
  --ops-rule: #ddd6c5;
  --ops-rule-strong: #a9a08f;
  --ops-yellow: #ffed71;
  --ops-yellow-hover: #f7df45;
  --ops-yellow-soft: #fff8c9;
  --ops-day-monday: #f2b705;
  --ops-day-tuesday: #1688f5;
  --ops-day-wednesday: #e65379;
  --ops-day-thursday: #20a66a;
  --ops-day-friday: #7655e8;
  --ops-teal: #2f7278;
  --ops-teal-deep: #20575d;
  --ops-teal-soft: #e8f3f2;
  --ops-green: #2f6e55;
  --ops-green-soft: #e8f3ed;
  --ops-warning: #8b5c12;
  --ops-warning-soft: #fff2d4;
  --ops-danger: #943b31;
  --ops-danger-soft: #f9e9e5;
  --ops-radius-sm: 12px;
  --ops-radius-md: 14px;
  --ops-radius-lg: 16px;
  --ops-control-height: 44px;
  --ops-focus: 0 0 0 3px rgba(255, 237, 113, 0.82), 0 0 0 5px rgba(43, 41, 37, 0.34);
  color: var(--ops-ink);
  font-family: var(--font-sans);
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .platform-layout,
.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .platform-inspector,
.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading,
.operations-surface,
.qc-dashboard {
  min-width: 0;
  max-width: 100%;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .platform-layout,
.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .platform-inspector {
  overflow-x: clip;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading {
  gap: 24px;
  margin-bottom: 26px;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading h1 {
  max-width: 18ch;
  color: var(--ops-ink-deep);
  font-family: var(--font-sans);
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading p {
  max-width: 68ch;
  color: var(--ops-muted);
  font-size: 17px;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) :is(.button, .heading-week-select select) {
  min-height: var(--ops-control-height);
  border-radius: var(--ops-radius-sm);
  box-shadow: none;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .button--primary {
  color: var(--ops-ink-deep);
  border-color: var(--ops-ink-deep);
  background: var(--ops-yellow);
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .button--primary:hover {
  color: var(--ops-ink-deep);
  background: var(--ops-yellow-hover);
  box-shadow: none;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .button--outline {
  color: var(--ops-ink-deep);
  border-color: var(--ops-rule-strong);
  background: var(--ops-record);
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .button--outline:hover {
  border-color: var(--ops-ink);
  background: var(--ops-yellow-soft);
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 0;
  box-shadow: var(--ops-focus);
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) :is(input, select, textarea) {
  color: var(--ops-ink);
  border-color: var(--ops-rule-strong);
  background: var(--ops-record);
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) :is(input, textarea)::placeholder {
  color: #746d61;
  opacity: 1;
}

.platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .platform-owner-badge {
  min-height: 32px;
  color: var(--ops-ink);
  border-color: var(--ops-rule);
  background: var(--ops-recessed);
}

.platform-view:is([data-section='operations'], [data-section='tech-tips']) .platform-owner-badge.is-editing {
  color: var(--ops-ink-deep);
  border-color: #d8bd2d;
  background: var(--ops-yellow-soft);
}

/* Shared route frame, tabs, controls, and state */

.operations-surface,
.qc-dashboard {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 2.6vw, 34px);
  color: var(--ops-ink);
  background: var(--ops-paper);
  font-family: var(--font-sans);
}

.operations-surface :is(button, input, select, textarea),
.qc-dashboard :is(button, input, select, textarea) {
  font-family: inherit;
}

.operations-subnav {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px;
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-md);
  background: var(--ops-record);
  scrollbar-width: thin;
}

.operations-subnav__button,
.term-button {
  min-height: var(--ops-control-height);
  padding: 0 14px;
  color: var(--ops-muted);
  border: 1px solid transparent;
  border-radius: var(--ops-radius-sm);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: none;
}

.operations-subnav__button {
  margin: 0;
}

.operations-subnav__button:hover,
.term-button:hover {
  color: var(--ops-ink);
  border-color: var(--ops-rule);
  background: var(--ops-paper);
}

.operations-subnav__button.is-active,
.term-button.is-active {
  color: var(--ops-ink-deep);
  border-color: #dbc431;
  background: var(--ops-yellow);
  box-shadow: none;
}

.term-switch {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-md);
  background: var(--ops-record);
}

.operations-toolbar,
.tech-surface-head,
.tech-tracker-toolbar,
.ideas-toolbar {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.operations-toolbar > div,
.tech-surface-head > div {
  min-width: 0;
}

.operations-toolbar p,
.tech-surface-head p,
.ideas-toolbar p,
.coverage-toolbar p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 15px;
  line-height: 1.45;
}

.operations-toolbar p strong {
  color: var(--ops-ink);
}

.operations-search {
  display: grid;
  width: min(330px, 100%);
  min-width: 220px;
  min-height: var(--ops-control-height);
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--ops-muted);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
}

.operations-search:focus-within {
  border-color: var(--ops-ink);
  box-shadow: var(--ops-focus);
}

.operations-search svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.operations-search input,
.operations-search input:not([type='checkbox']):not([type='radio']) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}

.operations-search input:focus,
.operations-search input:focus-visible {
  border: 0;
  box-shadow: none;
}

.operations-edit-error {
  color: var(--ops-danger);
  border-color: #c98f87;
  border-radius: var(--ops-radius-sm);
  background: var(--ops-danger-soft);
}

.operations-empty,
.operations-loading,
.coverage-empty,
.coverage-map-empty,
.coverage-editor-empty {
  color: var(--ops-muted);
}

.operations-empty,
.operations-loading {
  border-radius: var(--ops-radius-md);
  background: var(--ops-paper);
}

.operations-empty strong,
.operations-loading strong,
.coverage-empty strong,
.coverage-map-empty strong,
.coverage-editor-empty strong {
  color: var(--ops-ink-deep);
  font-size: 15px;
}

.operations-loading {
  min-height: min(480px, 62vh);
  border: 1px solid var(--ops-rule);
  background: var(--ops-yellow-soft);
}

.operations-source {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 17px 2px 0;
  color: var(--ops-muted);
  border-top: 1px solid var(--ops-rule);
}

.operations-source svg {
  color: var(--ops-teal-deep);
}

.operations-source strong {
  color: var(--ops-ink);
  font-size: 14px;
}

.operations-source small {
  max-width: 90ch;
  color: var(--ops-muted);
  font-size: 13px;
  line-height: 1.5;
}

.operations-source a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--ops-teal-deep);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.operations-source a:hover {
  color: var(--ops-ink-deep);
}

/* All Staff, Team, and Schedule records */

.operations-table-wrap,
.tech-table-wrap,
.ideas-table-wrap,
.schedule-board,
.schedule-editor-board {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-lg);
  background: var(--ops-record);
  box-shadow: none;
  scrollbar-gutter: stable;
}

.operations-table-wrap {
  max-height: min(720px, calc(100dvh - 330px));
}

.operations-table,
.tech-tips-table,
.ideas-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ops-ink);
  background: var(--ops-record);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.operations-table {
  min-width: 780px;
}

.operations-table thead,
.tech-tips-table thead,
.ideas-table thead {
  position: sticky;
  top: 0;
  z-index: 6;
  color: var(--ops-ink-deep);
  background: var(--ops-recessed);
}

.operations-table th,
.operations-table td,
.tech-tips-table th,
.tech-tips-table td,
.ideas-table th,
.ideas-table td {
  padding: 13px 14px;
  border-right: 1px solid var(--ops-rule);
  border-bottom: 1px solid var(--ops-rule);
  text-align: left;
  vertical-align: middle;
}

.operations-table thead th,
.tech-tips-table thead th,
.ideas-table thead th {
  color: #514c44;
  background: var(--ops-recessed);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.operations-table tbody tr:nth-child(even),
.tech-tips-table tbody tr:nth-child(even),
.ideas-table tbody tr:nth-child(even) {
  background: #fbfaf6;
}

.operations-table tbody tr:hover,
.tech-tips-table tbody tr:hover,
.ideas-table tbody tr:hover,
.operations-edit-row:hover {
  background: var(--ops-teal-soft);
}

.operations-person {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
}

.operations-person__mark,
.coverage-school-row__mark,
.coverage-school-summary__mark {
  color: var(--ops-ink-deep);
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-recessed);
  font-family: inherit;
  font-weight: 750;
}

.operations-person__mark {
  width: 38px;
  height: 38px;
}

.operations-person strong {
  color: var(--ops-ink-deep);
  font-size: 15px;
}

.operations-person small,
.school-chip-list small {
  color: var(--ops-muted);
  font-size: 14px;
}

.team-label,
.idea-status {
  min-height: 28px;
  padding: 4px 9px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-recessed);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.team-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team-label-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.team-label--ali,
.team-label--team-pro {
  color: #6e4930;
  border-color: #d7bca9;
  background: #f6e9df;
}

.team-label--nebraz,
.team-label--team-vested {
  color: var(--ops-teal-deep);
  border-color: #9fc4c2;
  background: var(--ops-teal-soft);
}

.team-label--management {
  color: var(--ops-ink-deep);
  border-color: var(--ops-yellow-hover);
  background: var(--ops-yellow-soft);
}

.team-membership-editor {
  min-width: 190px;
  margin: 0;
  padding: 0;
  border: 0;
}

.team-membership-editor legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.team-membership-editor > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.team-membership-option {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
}

.team-membership-option--management {
  grid-column: 1 / -1;
}

.team-membership-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--ops-teal);
}

.team-membership-option:has(input:checked) {
  color: var(--ops-ink-deep);
  border-color: var(--ops-teal);
  background: var(--ops-teal-soft);
}

.team-membership-option--management:has(input:checked) {
  border-color: var(--ops-yellow-hover);
  background: var(--ops-yellow-soft);
}

.team-membership-option:focus-within {
  outline: 2px solid var(--ops-ink-deep);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ops-yellow-soft);
}

.team-membership-editor > small {
  display: block;
  margin-top: 6px;
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1.35;
}

.school-chip-list {
  gap: 6px;
}

.school-chip-list > span {
  padding: 5px 8px;
  color: #4f4a42;
  border-color: var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  font-size: 14px;
  line-height: 1.35;
}

.operations-order-help {
  margin: -4px 0 -8px;
  color: var(--ops-muted);
  font-size: 14px;
}

.staff-drag-handle {
  width: 44px;
  min-height: 58px;
  color: var(--ops-muted);
  border-radius: var(--ops-radius-sm);
}

.staff-drag-handle:hover,
.staff-drag-handle:focus-visible {
  color: var(--ops-teal-deep);
  background: var(--ops-teal-soft);
}

.operations-edit-row.is-dragging {
  background: var(--ops-yellow-soft);
  box-shadow: 0 12px 28px rgba(43, 41, 37, 0.16);
}

.inline-edit-field {
  gap: 6px;
}

.inline-edit-field > span,
.schedule-editor-day label > span {
  color: var(--ops-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.inline-edit-field input,
.inline-edit-field select,
.inline-edit-field textarea,
.schedule-editor-day textarea {
  min-height: var(--ops-control-height);
  padding: 9px 10px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  font-size: 15px;
}

.inline-edit-field textarea {
  min-height: 76px;
}

.school-assignment-editor {
  min-width: 280px;
}

.school-assignment-editor__selected {
  display: flex;
  min-height: 40px;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.school-assignment-editor__empty {
  color: var(--ops-muted);
  font-size: 14px;
}

.school-assignment-chip {
  display: inline-flex;
  min-height: 32px;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 4px 9px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-recessed);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.school-assignment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-assignment-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.school-assignment-chip:hover,
.school-assignment-chip:focus-visible {
  color: var(--ops-danger);
  border-color: var(--ops-danger);
  background: var(--ops-danger-soft);
}

.school-assignment-editor > select {
  width: 100%;
}

.school-assignment-editor > small {
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1.35;
}

.inline-edit-field [aria-invalid='true'] {
  border-color: var(--ops-danger);
  background: var(--ops-danger-soft);
}

.icon-text-button,
.editor-add-row {
  min-height: var(--ops-control-height);
  padding: 0 12px;
  border-radius: var(--ops-radius-sm);
  box-shadow: none;
}

.editor-add-row {
  color: var(--ops-teal-deep);
  border-color: var(--ops-teal);
  background: var(--ops-teal-soft);
}

.editor-add-row:hover {
  color: var(--ops-ink-deep);
  border-color: var(--ops-ink);
  background: var(--ops-record);
}

.icon-text-button.is-danger {
  color: var(--ops-danger);
  border-color: #c98f87;
  background: var(--ops-danger-soft);
}

.schedule-board,
.schedule-editor-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  max-height: min(700px, calc(100dvh - 330px));
}

.schedule-day,
.schedule-editor-day {
  min-width: 210px;
  border-right: 1px solid var(--ops-rule);
}

.schedule-day:last-child,
.schedule-editor-day:last-child {
  border-right: 0;
}

.schedule-day header,
.schedule-editor-day header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 68px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--ops-rule-strong);
  background: var(--ops-recessed);
}

.schedule-day header strong,
.schedule-editor-day header strong {
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-size: 18px;
  font-weight: 750;
}

.schedule-day header span,
.schedule-editor-day header span {
  color: var(--ops-muted);
  font-size: 13px;
}

.schedule-day li {
  min-height: 44px;
  padding: 12px 14px;
  color: var(--ops-ink);
  border-bottom: 1px solid var(--ops-rule);
  background: var(--ops-record);
  font-size: 14px;
  line-height: 1.4;
}

.schedule-day li:nth-child(even) {
  background: #fbfaf6;
}

.schedule-editor-day {
  padding: 14px;
  background: var(--ops-record);
}

.schedule-editor-day header {
  margin: -14px -14px 14px;
}

.schedule-editor-day textarea {
  min-height: 430px;
  resize: vertical;
}

/* Coverage and OpenStreetMap */

.coverage-surface {
  gap: 18px;
  container-type: inline-size;
  container-name: coverage-workspace;
}

.coverage-workbook-nav {
  width: 100%;
}

.coverage-toolbar {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.coverage-toolbar > div:first-child {
  min-width: 0;
}

.coverage-toolbar__actions {
  gap: 9px;
}

.coverage-toolbar__actions .operations-search {
  width: min(300px, 100%);
}

.coverage-team-filter select,
.tech-tracker-filters select {
  min-height: var(--ops-control-height);
  padding: 0 38px 0 12px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background-color: var(--ops-record);
  font-size: 15px;
}

.coverage-day-switch {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-md);
  background: var(--ops-record);
}

.coverage-day-button {
  min-height: var(--ops-control-height);
  padding: 0 12px;
  color: var(--ops-muted);
  border: 1px solid transparent;
  border-radius: var(--ops-radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.coverage-day-button:hover {
  color: var(--ops-ink);
  border-color: var(--ops-rule);
  background: var(--ops-paper);
}

.coverage-day-button.is-active {
  color: var(--ops-ink-deep);
  border-color: #dbc431;
  background: var(--ops-yellow);
  box-shadow: none;
}

.coverage-day-button strong {
  color: currentColor;
  font-weight: 750;
}

.coverage-day-dot--ochre,
.coverage-day-pill--ochre::before,
.coverage-marker--ochre .coverage-marker__dot,
.coverage-marker__day--ochre::before,
.coverage-summary-day--ochre::before {
  background: #8a6c3d;
}

.coverage-day-dot--teal,
.coverage-day-pill--teal::before,
.coverage-marker--teal .coverage-marker__dot,
.coverage-marker__day--teal::before,
.coverage-summary-day--teal::before {
  background: var(--ops-teal);
}

.coverage-day-dot--terracotta,
.coverage-day-pill--terracotta::before,
.coverage-marker--terracotta .coverage-marker__dot,
.coverage-marker__day--terracotta::before,
.coverage-summary-day--terracotta::before {
  background: #a85947;
}

.coverage-day-dot--green,
.coverage-day-pill--green::before,
.coverage-marker--green .coverage-marker__dot,
.coverage-marker__day--green::before,
.coverage-summary-day--green::before {
  background: var(--ops-green);
}

.coverage-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.72fr) minmax(270px, 0.72fr);
  align-items: start;
  gap: 14px;
}

.coverage-map-panel,
.coverage-register,
.coverage-editor {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-lg);
  background: var(--ops-record);
  box-shadow: none;
}

.coverage-panel-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--ops-rule);
  background: var(--ops-record);
}

.coverage-panel-header h2,
.coverage-school-summary h3,
.coverage-editor-form__header h3 {
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.coverage-panel-header h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.08;
}

.coverage-panel-header p,
.coverage-editor-form__header p {
  color: var(--ops-muted);
  font-size: 14px;
}

.coverage-register > .coverage-panel-header {
  position: relative;
  overflow: visible;
}

.coverage-list-filter {
  position: relative;
  z-index: 14;
  flex: 0 0 auto;
}

.coverage-list-filter > summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  font-size: 13px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.coverage-list-filter > summary::-webkit-details-marker {
  display: none;
}

.coverage-list-filter > summary:hover,
.coverage-list-filter > summary.is-active,
.coverage-list-filter[open] > summary {
  border-color: var(--ops-ink-soft);
  background: var(--ops-yellow-soft);
}

.coverage-list-filter > summary:focus-visible {
  outline: 3px solid var(--ops-yellow);
  outline-offset: 2px;
}

.coverage-list-filter > summary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.coverage-list-filter__count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--ops-yellow);
  color: var(--ops-ink-deep);
  font-size: 11px;
  line-height: 1;
}

.coverage-list-filter__count[hidden] {
  display: none;
}

.coverage-list-filter__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 248px;
  padding: 14px;
  border-radius: var(--ops-radius-md);
  background: var(--ops-record);
  box-shadow: 0 14px 34px rgba(43, 41, 37, 0.18);
}

.coverage-list-filter__popover > strong {
  display: block;
  margin-bottom: 11px;
  color: var(--ops-ink-deep);
  font-size: 15px;
}

.coverage-list-filter__popover label {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 700;
}

.coverage-list-filter__popover select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 11px;
  color: var(--ops-ink-deep);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background-color: var(--ops-record);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.coverage-list-filter__popover .text-button {
  margin-top: 12px;
}

.coverage-list-filter__popover .text-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.coverage-map-count,
.coverage-register-note {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-recessed);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.coverage-map-canvas {
  position: relative;
  height: clamp(500px, calc(100dvh - 350px), 720px);
  min-height: 500px;
  overflow: hidden;
  border-radius: 0 0 calc(var(--ops-radius-lg) - 1px) calc(var(--ops-radius-lg) - 1px);
  background: #dce7e4;
}

.coverage-map-canvas:focus-visible {
  outline: 3px solid var(--ops-yellow);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 5px rgba(43, 41, 37, 0.46);
}

.coverage-osm-tile {
  filter: saturate(0.82) contrast(0.98);
}

.coverage-marker {
  width: 28px;
  height: 36px;
  min-width: 28px;
  min-height: 36px;
}

.coverage-marker:hover,
.coverage-marker.is-selected {
  filter: drop-shadow(0 5px 8px rgba(43, 41, 37, 0.22));
  transform: translate(-50%, -100%) scale(1.08);
}

.coverage-marker__dot {
  width: 16px;
  height: 16px;
  border: 3px solid var(--ops-record);
  background: var(--ops-ink);
  box-shadow: 0 0 0 2px rgba(43, 41, 37, 0.34);
}

.coverage-marker.is-selected .coverage-marker__dot {
  background: var(--ops-yellow);
  box-shadow: 0 0 0 3px var(--ops-ink-deep);
}

.coverage-marker.is-unconfirmed .coverage-marker__dot {
  outline-color: var(--ops-warning);
}

.coverage-marker__label {
  top: 26px;
  max-width: min(280px, calc(100vw - 48px));
  padding: 8px 10px;
  color: var(--ops-ink);
  border-color: var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 7px 18px rgba(43, 41, 37, 0.14);
  font-size: 13px;
}

.coverage-marker__label strong {
  color: var(--ops-ink-deep);
  font-size: 14px;
}

.coverage-marker__day,
.coverage-summary-day,
.coverage-day-pill {
  color: var(--ops-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.coverage-map-controls {
  top: 12px;
  right: 12px;
  grid-template-columns: 44px 44px auto;
  border-color: var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 16px rgba(43, 41, 37, 0.14);
}

.coverage-map-controls button {
  min-width: 44px;
  min-height: 44px;
  color: var(--ops-ink-deep);
  border-right-color: var(--ops-rule);
  font-family: inherit;
  font-size: 18px;
}

.coverage-map-controls button:last-child {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.coverage-map-controls button:hover,
.coverage-map-controls button:focus-visible {
  color: var(--ops-ink-deep);
  background: var(--ops-yellow);
}

.coverage-map-status,
.coverage-pin-instruction,
.coverage-map-coordinate-readout,
.coverage-map-attribution {
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
}

.coverage-pin-instruction {
  color: var(--ops-ink-deep);
  border-color: #dbc431;
  background: var(--ops-yellow);
}

.coverage-map-canvas.has-map-error .coverage-map-status,
.coverage-location-note,
.coverage-schedule-assignment.is-unmatched {
  color: var(--ops-warning);
  border-color: #cba95f;
  background: var(--ops-warning-soft);
}

.coverage-map-setup {
  border-color: var(--ops-rule-strong);
  border-radius: var(--ops-radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(43, 41, 37, 0.17);
}

.coverage-map-setup svg {
  color: var(--ops-teal-deep);
}

.coverage-school-list {
  height: clamp(500px, calc(100dvh - 350px), 720px);
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.coverage-school-group[hidden] {
  display: none;
}

.coverage-school-row[hidden],
.coverage-empty[hidden] {
  display: none;
}

.coverage-school-group + .coverage-school-group {
  border-top: 1px solid var(--ops-rule-strong);
}

.coverage-school-group__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--ops-rule);
  background: color-mix(in srgb, var(--ops-paper) 94%, transparent);
}

.coverage-school-group--review .coverage-school-group__header {
  background: color-mix(in srgb, var(--ops-warning-soft) 92%, var(--ops-paper));
}

.coverage-school-group__header > span,
.coverage-school-group__header strong,
.coverage-school-group__header small {
  display: block;
  min-width: 0;
}

.coverage-school-group__header strong {
  color: var(--ops-ink-deep);
  font-size: 14px;
  line-height: 1.25;
}

.coverage-school-group__header small {
  margin-top: 1px;
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1.3;
}

.coverage-school-group__header b {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  padding-inline: 7px;
  color: var(--ops-ink-deep);
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-record);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.coverage-school-row {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 72px;
  padding: 11px 13px;
  color: var(--ops-ink);
  border-bottom: 1px solid var(--ops-rule);
  background: var(--ops-record);
}

.coverage-school-row:nth-child(even) {
  background: #fbfaf6;
}

.coverage-school-row:hover {
  background: var(--ops-teal-soft);
}

.coverage-school-row.is-active {
  background: var(--ops-yellow-soft);
  box-shadow: inset 3px 0 var(--ops-yellow-hover);
}

.coverage-school-row__mark {
  width: 34px;
  height: 34px;
}

.coverage-school-row__body strong {
  color: var(--ops-ink-deep);
  font-size: 15px;
}

.coverage-school-row__body small {
  color: var(--ops-muted);
  font-size: 13px;
}

.coverage-school-row__body .coverage-school-row__assignment,
.coverage-school-row__body .coverage-school-row__status {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.coverage-school-row__body .coverage-school-row__status {
  margin-top: 2px;
  color: var(--ops-teal-deep);
  font-weight: 700;
}

.coverage-school-row__days {
  gap: 5px 8px;
}

.coverage-editor {
  max-height: clamp(578px, calc(100dvh - 272px), 798px);
  overflow: auto;
  padding: 17px;
  scrollbar-gutter: stable;
}

.coverage-editor-empty {
  min-height: 300px;
}

.coverage-editor-empty__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ops-ink-deep);
  border: 1px solid #dbc431;
  border-radius: 50%;
  background: var(--ops-yellow);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
}

.coverage-school-summary h3,
.coverage-editor-form__header h3 {
  font-size: 23px;
  line-height: 1.08;
}

.coverage-school-summary > header,
.coverage-editor-form__header {
  border-bottom-color: var(--ops-rule);
}

.coverage-summary-day,
.coverage-school-summary__people > span {
  min-height: 30px;
  border-color: var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
}

.coverage-school-summary__people > span {
  color: var(--ops-ink);
  font-size: 14px;
}

.coverage-editor-form {
  gap: 14px;
}

.coverage-editor-form .field > span,
.coverage-days-fieldset legend {
  color: var(--ops-ink);
  font-size: 14px;
  font-weight: 750;
}

.coverage-editor-form input[type='text'],
.coverage-editor-form input[type='number'],
.coverage-editor-form select,
.coverage-editor-form textarea {
  min-height: var(--ops-control-height);
  padding: 9px 10px;
  color: var(--ops-ink);
  border-color: var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  font-size: 15px;
}

.coverage-editor-form textarea {
  min-height: 94px;
}

.coverage-location-note,
.coverage-schedule-assignment {
  padding: 11px;
  border-radius: var(--ops-radius-sm);
}

.coverage-location-note.is-confirmed,
.coverage-schedule-assignment {
  color: var(--ops-teal-deep);
  border-color: #9fc4c2;
  background: var(--ops-teal-soft);
}

.coverage-location-note strong,
.coverage-schedule-assignment strong {
  color: var(--ops-ink-deep);
}

.coverage-schedule-assignment__people > span {
  color: var(--ops-ink);
  border-color: var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
}

.coverage-place-pin.is-active {
  color: var(--ops-ink-deep);
  border-color: var(--ops-ink-deep);
  background: var(--ops-yellow);
}

.coverage-location-review { display:grid; gap:8px; padding:10px; border:1px solid color-mix(in srgb,var(--ops-warning) 42%,var(--ops-rule)); border-radius:var(--ops-radius-sm); background:color-mix(in srgb,var(--ops-warning-soft) 74%,var(--ops-paper)); }
.coverage-location-review__status { display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; }
.coverage-location-review__status>span { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--ops-yellow); color:var(--ops-ink-deep); }
.coverage-location-review__status svg { width:17px; height:17px; }
.coverage-location-review__status h4,.coverage-location-review__status p { display:block; margin:0; }
.coverage-location-review__status h4 { color:var(--ops-ink-deep); font-size:15px; line-height:1.3; }
.coverage-location-review__status p { margin-top:3px; color:var(--ops-muted); font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.coverage-location-review dl { display:grid; gap:0; margin:0; border-block:1px solid var(--ops-rule); }
.coverage-location-review dl>div { display:grid; grid-template-columns:92px minmax(0,1fr); gap:8px; padding:6px 0; }
.coverage-location-review dt { color:var(--ops-muted); font-size:13px; font-weight:700; }
.coverage-location-review dd { margin:0; font-size:13px; overflow-wrap:anywhere; }
.coverage-location-review__actions { display:flex; flex-wrap:wrap; gap:7px; }
.coverage-location-review__actions .button { min-height:36px; padding:6px 10px; font-size:13px; }
.coverage-location-search-form { display:grid; gap:6px; padding-top:9px; border-top:1px solid color-mix(in srgb,var(--ops-warning) 26%,var(--ops-rule)); }
.coverage-location-search-form>label { color:var(--ops-ink-deep); font-size:13px; font-weight:750; }
.coverage-location-search-form>div { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; align-items:stretch; }
.coverage-location-search-form input { width:100%; min-width:0; min-height:38px; padding:7px 9px; color:var(--ops-ink); border:1px solid var(--ops-rule-strong); border-radius:var(--ops-radius-sm); background:var(--ops-record); font:inherit; font-size:13px; }
.coverage-location-search-form input:focus-visible { outline:3px solid color-mix(in srgb,var(--ops-teal) 28%,transparent); outline-offset:1px; border-color:var(--ops-teal-deep); }
.coverage-location-search-form .button { width:100%; min-height:38px; padding:7px 10px; font-size:12px; white-space:nowrap; }
.coverage-location-search-form small { color:var(--ops-muted); font-size:12px; line-height:1.35; }
.coverage-location-candidates { display:grid; gap:7px; }
.coverage-location-candidates>button { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; width:100%; padding:9px 10px; text-align:left; border:1px solid var(--ops-rule); border-radius:var(--ops-radius-sm); background:var(--ops-paper); color:var(--ops-ink); }
.coverage-location-candidates>button:hover { border-color:var(--ops-teal); background:var(--ops-teal-soft); }
.coverage-location-candidates strong,.coverage-location-candidates small { display:block; }
.coverage-location-candidates small { margin-top:2px; color:var(--ops-muted); font-size:13px; line-height:1.35; }
.coverage-location-candidates em { max-width:110px; color:var(--ops-teal-deep); font-size:13px; font-style:normal; font-weight:780; text-align:right; }
.coverage-location-search-empty { margin:0; color:var(--ops-muted); font-size:13px; line-height:1.4; }

.coverage-day-options {
  gap: 6px;
}

.coverage-day-option {
  min-height: var(--ops-control-height);
  color: var(--ops-muted);
  border-color: var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.coverage-day-option:has(input:checked) {
  color: var(--ops-ink-deep);
  border-color: #dbc431;
  background: var(--ops-yellow);
  box-shadow: none;
}

.coverage-day-option:focus-within {
  box-shadow: var(--ops-focus);
}

.coverage-editor-actions {
  gap: 10px;
}

/* Map-first field operations workspace */

.coverage-source-menu {
  position: relative;
  flex: 0 0 auto;
}

.coverage-source-menu summary {
  display: inline-flex;
  min-height: var(--ops-control-height);
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
  white-space: nowrap;
}

.coverage-source-menu summary::-webkit-details-marker {
  display: none;
}

.coverage-source-menu summary svg {
  width: 16px;
  height: 16px;
  color: var(--ops-teal-deep);
}

.coverage-source-menu[open] summary,
.coverage-source-menu summary:hover {
  border-color: var(--ops-ink);
  background: var(--ops-yellow-soft);
}

.coverage-source-menu > div {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(430px, calc(100vw - 48px));
  gap: 7px;
  padding: 15px;
  color: var(--ops-muted);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-md);
  background: var(--ops-record);
  box-shadow: 0 18px 46px rgba(43, 41, 37, 0.16), 0 3px 9px rgba(43, 41, 37, 0.08);
}

.coverage-source-menu > div strong {
  color: var(--ops-ink-deep);
  font-size: 14px;
}

.coverage-source-menu > div p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.coverage-source-menu > div a {
  justify-self: start;
  color: var(--ops-teal-deep);
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 3px;
}

.coverage-toolbar__days {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.coverage-result-count {
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.coverage-side-stack {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(220px, 0.56fr) minmax(210px, 0.44fr);
  gap: 10px;
}

.coverage-map-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.coverage-map-panel__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.coverage-location-sync {
  min-height: 34px;
  gap: 7px;
  padding-inline: 10px;
  border-color: color-mix(in srgb, var(--ops-teal) 45%, var(--ops-rule));
  background: var(--ops-record);
  color: var(--ops-teal-deep);
  font-size: 13px;
  white-space: nowrap;
}

.coverage-location-sync:hover:not(:disabled) {
  border-color: var(--ops-teal);
  background: var(--ops-teal-soft);
}

.coverage-location-sync svg {
  width: 16px;
  height: 16px;
}

.coverage-location-sync strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--ops-yellow);
  color: var(--ops-ink-deep);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.coverage-location-sync.is-syncing svg {
  animation: coverage-location-sync-spin 900ms linear infinite;
}

@keyframes coverage-location-sync-spin {
  to { transform: rotate(360deg); }
}

.coverage-map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.coverage-map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.coverage-legend-pin {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ops-record);
  border-radius: 50%;
  background: var(--ops-ink);
  box-shadow: 0 0 0 1px var(--ops-ink);
}

.coverage-legend-pin--pro {
  background: var(--ops-teal);
}

.coverage-legend-pin--vested {
  background: #a85947;
}

.coverage-legend-pin--pending {
  border-style: dashed;
  border-color: var(--ops-warning-soft);
  background: var(--ops-warning);
}

.coverage-legend-pin--day-monday,
.coverage-day-dot--ochre,
.coverage-day-pill--ochre::before,
.coverage-marker__day--ochre::before,
.coverage-summary-day--ochre::before {
  background: var(--ops-day-monday);
}

.coverage-legend-pin--day-tuesday,
.coverage-day-dot--teal,
.coverage-day-pill--teal::before,
.coverage-marker__day--teal::before,
.coverage-summary-day--teal::before {
  background: var(--ops-day-tuesday);
}

.coverage-legend-pin--day-wednesday,
.coverage-day-dot--terracotta,
.coverage-day-pill--terracotta::before,
.coverage-marker__day--terracotta::before,
.coverage-summary-day--terracotta::before {
  background: var(--ops-day-wednesday);
}

.coverage-legend-pin--day-thursday,
.coverage-day-dot--green,
.coverage-day-pill--green::before,
.coverage-marker__day--green::before,
.coverage-summary-day--green::before {
  background: var(--ops-day-thursday);
}

.coverage-legend-pin--day-friday,
.coverage-day-dot--ink,
.coverage-day-pill--ink::before,
.coverage-marker__day--ink::before,
.coverage-summary-day--ink::before {
  background: var(--ops-day-friday);
}

.coverage-marker {
  width: 40px;
  height: 46px;
  min-width: 40px;
  min-height: 46px;
  filter: drop-shadow(0 5px 8px rgba(33, 31, 27, 0.25));
}

.coverage-marker:hover {
  z-index: 4;
  filter: drop-shadow(0 8px 12px rgba(33, 31, 27, 0.3));
  transform: translate(-50%, -100%) scale(1.1);
}

.coverage-marker.is-selected {
  z-index: 5;
  filter: drop-shadow(0 9px 14px rgba(33, 31, 27, 0.34));
  transform: translate(-50%, -100%) scale(1.14);
}

.coverage-marker__dot {
  --coverage-pin-color: var(--ops-day-friday);
  width: 24px;
  height: 24px;
  border: 3px solid var(--ops-record);
  background: var(--coverage-pin-color);
  box-shadow: 0 0 0 2px var(--ops-ink-deep), 0 5px 12px rgba(33, 31, 27, 0.24);
}

.coverage-marker--day-monday .coverage-marker__dot {
  --coverage-pin-color: var(--ops-day-monday);
}

.coverage-marker--day-tuesday .coverage-marker__dot {
  --coverage-pin-color: var(--ops-day-tuesday);
}

.coverage-marker--day-wednesday .coverage-marker__dot {
  --coverage-pin-color: var(--ops-day-wednesday);
}

.coverage-marker--day-thursday .coverage-marker__dot {
  --coverage-pin-color: var(--ops-day-thursday);
}

.coverage-marker--day-friday .coverage-marker__dot {
  --coverage-pin-color: var(--ops-day-friday);
}

.coverage-marker.is-selected .coverage-marker__dot {
  border-color: var(--ops-record);
  background: var(--coverage-pin-color);
  box-shadow: 0 0 0 3px var(--ops-ink-deep), 0 0 0 6px var(--ops-yellow), 0 8px 18px rgba(33, 31, 27, 0.34);
}

.coverage-marker.is-unconfirmed .coverage-marker__dot {
  outline: 3px dashed var(--ops-warning);
  outline-offset: 4px;
}

.coverage-marker__label {
  top: 38px;
  display: grid;
  min-width: 180px;
  gap: 4px;
  padding: 9px 10px;
}

.coverage-marker__label small {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 600;
}

.coverage-school-row__mark {
  color: var(--ops-record);
  background: var(--ops-ink-deep);
}

.coverage-school-row--team-pro .coverage-school-row__mark {
  background: var(--ops-teal);
}

.coverage-school-row--team-vested .coverage-school-row__mark {
  background: #a85947;
}

.coverage-school-row--management .coverage-school-row__mark {
  color: var(--ops-ink-deep);
  background: var(--ops-yellow);
}

.coverage-school-row--mixed .coverage-school-row__mark {
  background: linear-gradient(135deg, var(--ops-teal) 0 50%, #a85947 50% 100%);
}

.coverage-school-row .coverage-school-row__mark--day-monday {
  color: var(--ops-ink-deep);
  background: var(--ops-day-monday);
}

.coverage-school-row .coverage-school-row__mark--day-tuesday {
  color: var(--ops-ink-deep);
  background: var(--ops-day-tuesday);
}

.coverage-school-row .coverage-school-row__mark--day-wednesday {
  color: var(--ops-ink-deep);
  background: var(--ops-day-wednesday);
}

.coverage-school-row .coverage-school-row__mark--day-thursday {
  color: var(--ops-ink-deep);
  background: var(--ops-day-thursday);
}

.coverage-school-row .coverage-school-row__mark--day-friday {
  color: var(--ops-record);
  background: var(--ops-day-friday);
}

.coverage-school-row.is-active {
  box-shadow: inset 3px 0 var(--ops-ink-deep);
}

@media (min-width: 941px) {
  #main-content.is-operations-workspace {
    height: calc(100dvh - 76px);
    min-height: 0;
    overflow: hidden;
    padding-block: 14px;
  }

  #main-content.is-operations-workspace .platform-view {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  #main-content.is-operations-workspace .platform-heading {
    min-height: 42px;
    align-items: center;
    gap: 18px;
    margin-bottom: 9px;
  }

  #main-content.is-operations-workspace .platform-heading > div:first-child {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 16px;
  }

  #main-content.is-operations-workspace .platform-heading h1 {
    flex: 0 0 auto;
    font-size: clamp(28px, 2.4vw, 34px);
    line-height: 1;
  }

  #main-content.is-operations-workspace .platform-heading p {
    max-width: 58ch;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #main-content.is-operations-workspace .operations-heading-actions {
    flex: 0 0 auto;
    gap: 7px;
  }

  #main-content.is-operations-workspace .operations-heading-actions .platform-owner-badge {
    display: none;
  }

  #main-content.is-operations-workspace .operations-heading-actions .button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 14px;
  }

  #main-content.is-operations-workspace .platform-layout,
  #main-content.is-operations-workspace .platform-inspector,
  #main-content.is-coverage-workspace .coverage-surface {
    height: 100%;
    min-height: 0;
  }

  #main-content.is-operations-workspace .platform-layout {
    overflow: hidden;
  }

  #main-content.is-coverage-workspace .coverage-surface {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    padding: 4px 8px 8px;
    background: transparent;
  }

  #main-content.is-operations-workspace .operations-workbook-nav {
    width: max-content;
    padding: 3px;
    border-radius: 12px;
  }

  #main-content.is-operations-workspace .operations-workbook-nav .operations-subnav__button {
    min-height: 34px;
    padding-inline: 11px;
    border-radius: 9px;
    font-size: 13px;
  }

  #main-content.is-operations-workspace .operations-surface--workbook {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 4px 8px 8px;
    background: transparent;
    container-type: inline-size;
    container-name: operations-workbook;
  }

  #main-content.is-operations-workspace .operations-workbook-toolbar {
    min-height: 42px;
    align-items: center;
    gap: 12px;
  }

  #main-content.is-operations-workspace .operations-workbook-toolbar p {
    font-size: 13px;
  }

  #main-content.is-operations-workspace .operations-workbook-toolbar .operations-search {
    width: min(320px, 36vw);
    min-height: 40px;
  }

  #main-content.is-operations-workspace .operations-workbook-content {
    display: grid;
    min-width: 0;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
  }

  #main-content.is-operations-workspace .operations-workbook-content:has(.operations-order-help),
  #main-content.is-operations-workspace .operations-workbook-content:has(.operations-rota-edit-note) {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  #main-content.is-operations-workspace .operations-workbook-content > :is(.operations-table-wrap, .schedule-board, .schedule-editor-board) {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  #main-content.is-operations-workspace .operations-surface--workbook .operations-source {
    min-height: 45px;
    padding-top: 9px;
  }

  #main-content.is-operations-workspace .operations-surface--workbook .operations-source small {
    display: block;
    overflow: hidden;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #main-content.is-coverage-workspace .coverage-toolbar {
    min-height: 42px;
    align-items: center;
    gap: 12px;
  }

  #main-content.is-coverage-workspace .coverage-toolbar__actions {
    flex-wrap: nowrap;
  }

  #main-content.is-coverage-workspace .coverage-day-switch {
    padding: 3px;
    border-radius: 12px;
  }

  #main-content.is-coverage-workspace .coverage-day-button {
    min-height: 34px;
    padding-inline: 9px;
    border-radius: 9px;
    font-size: 13px;
  }

  #main-content.is-coverage-workspace .coverage-toolbar__actions .operations-search {
    width: min(240px, 22vw);
    min-width: 180px;
    min-height: 40px;
  }

  #main-content.is-coverage-workspace .coverage-team-filter select,
  #main-content.is-coverage-workspace .coverage-source-menu summary {
    min-height: 40px;
  }

  #main-content.is-coverage-workspace .coverage-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    align-items: stretch;
    gap: 10px;
  }

  #main-content.is-coverage-workspace .coverage-panel-header {
    min-height: 58px;
    padding: 9px 13px;
  }

  #main-content.is-coverage-workspace .coverage-panel-header h2 {
    font-size: 19px;
  }

  #main-content.is-coverage-workspace .coverage-panel-header p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
  }

  #main-content.is-coverage-workspace .coverage-map-canvas {
    height: auto;
    min-height: 0;
  }

  #main-content.is-coverage-workspace .coverage-register {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  #main-content.is-coverage-workspace .coverage-school-list {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  #main-content.is-coverage-workspace .coverage-school-row {
    min-height: 62px;
    padding: 8px 10px;
  }

  #main-content.is-coverage-workspace .coverage-editor {
    height: 100%;
    max-height: none;
    overflow-y: auto;
    padding: 14px;
  }

  #main-content.is-coverage-workspace .coverage-editor-empty {
    min-height: 0;
    align-content: center;
  }

  #main-content.is-coverage-workspace .coverage-school-summary h3,
  #main-content.is-coverage-workspace .coverage-editor-form__header h3 {
    font-size: 19px;
  }
}

@media (min-width: 941px) and (max-width: 1180px) {
  #main-content.is-coverage-workspace .coverage-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  #main-content.is-coverage-workspace .coverage-toolbar__days {
    width: 100%;
    flex-wrap: wrap;
  }

  #main-content.is-coverage-workspace .coverage-day-switch {
    flex: 1 1 auto;
  }

  #main-content.is-coverage-workspace .coverage-toolbar__actions {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) auto auto;
    justify-content: stretch;
    gap: 8px;
  }

  #main-content.is-coverage-workspace .coverage-toolbar__actions .operations-search {
    width: 100%;
    min-width: 0;
  }

  #main-content.is-coverage-workspace .coverage-team-filter,
  #main-content.is-coverage-workspace .coverage-team-filter select {
    width: 100%;
  }
}

@media (min-width: 941px) and (max-height: 760px) {
  #main-content.is-operations-workspace {
    padding-block: 10px;
  }

  #main-content.is-operations-workspace .platform-heading {
    min-height: 36px;
    margin-bottom: 7px;
  }

  #main-content.is-operations-workspace .platform-heading h1 {
    font-size: 27px;
  }

  #main-content.is-coverage-workspace .coverage-surface {
    gap: 7px;
  }

  #main-content.is-coverage-workspace .coverage-side-stack {
    grid-template-rows: minmax(180px, 0.52fr) minmax(180px, 0.48fr);
  }

  #main-content.is-coverage-workspace .coverage-panel-header {
    min-height: 52px;
  }

  #main-content.is-coverage-workspace .coverage-map-panel__header p {
    display: none;
  }
}

@media (max-width: 1120px) and (min-width: 941px) {
  #main-content.is-operations-workspace .platform-heading p,
  #main-content.is-coverage-workspace .coverage-result-count,
  #main-content.is-coverage-workspace .coverage-map-legend {
    display: none;
  }

  #main-content.is-coverage-workspace .coverage-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

}

@media (min-width: 941px) {
  @container coverage-workspace (max-width: 1100px) {
    .coverage-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: stretch;
      gap: 8px;
    }

    .coverage-toolbar__days,
    .coverage-toolbar__actions {
      width: 100%;
    }

    #main-content.is-coverage-workspace .coverage-toolbar__days {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
    }

    .coverage-toolbar__actions {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(130px, 170px) max-content max-content;
      justify-content: stretch;
    }

    .coverage-toolbar__actions .operations-search {
      width: 100%;
      min-width: 0;
    }

    .coverage-team-filter,
    .coverage-team-filter select {
      width: 100%;
    }

    .coverage-side-stack {
      grid-template-rows: minmax(150px, 0.56fr) minmax(150px, 0.44fr);
    }
  }

  @container operations-workbook (max-width: 760px) {
    .operations-workbook-toolbar {
      display: grid;
      align-items: stretch;
    }

    .operations-workbook-toolbar .operations-search {
      width: 100%;
      min-width: 0;
    }
  }

  @container coverage-workspace (max-width: 900px) {
    .coverage-result-count {
      display: none;
    }
  }
}

@media (max-width: 940px) {
  .coverage-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .coverage-editor {
    max-height: 620px;
  }

  .coverage-map-panel__meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 690px) {
  #main-content.is-coverage-workspace .platform-heading {
    gap: 10px;
    margin-bottom: 12px;
  }

  #main-content.is-coverage-workspace .platform-heading h1 {
    font-size: 34px;
  }

  #main-content.is-coverage-workspace .platform-heading p,
  #main-content.is-coverage-workspace .operations-heading-actions .platform-owner-badge {
    display: none;
  }

  #main-content.is-coverage-workspace .operations-heading-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #main-content.is-coverage-workspace .coverage-surface {
    padding-top: 10px;
  }

  .coverage-toolbar__days {
    display: grid;
    width: 100%;
  }

  .coverage-result-count {
    padding-inline: 2px;
  }

  .coverage-side-stack {
    grid-template-columns: 1fr;
  }

  .coverage-toolbar__actions {
    grid-template-columns: minmax(0, 1fr) 132px;
  }

  .coverage-toolbar__actions .operations-search {
    min-width: 0;
  }

  .coverage-toolbar__actions .coverage-source-menu,
  .coverage-toolbar__actions > .button {
    grid-column: 1 / -1;
  }

  .coverage-map-panel__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .coverage-map-panel__meta {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .coverage-location-sync {
    min-height: 36px;
  }

  .coverage-map-legend {
    display: none;
  }

  .coverage-source-menu,
  .coverage-source-menu summary {
    width: 100%;
  }

  .coverage-source-menu summary {
    justify-content: center;
  }

  .coverage-source-menu > div {
    right: auto;
    left: 0;
    width: min(430px, calc(100vw - 40px));
  }
}

/* Tech Tips tracker and ideas register */

.tech-surface-head {
  align-items: center;
}

.save-note {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-recessed);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.platform-view.is-editing[data-section='tech-tips'] .save-note {
  border-color: #dbc431;
  background: var(--ops-yellow-soft);
}

.tech-tracker-filters {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.tech-progress {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 20px;
  padding: 11px 15px;
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-md);
  background: var(--ops-record);
}

.tech-progress > div {
  min-width: 170px;
  padding-right: 20px;
  border-right-color: var(--ops-rule);
}

.tech-progress strong {
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-size: 22px;
  font-weight: 750;
}

.tech-progress span {
  color: var(--ops-muted);
  font-size: 14px;
}

.tech-key {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 1px rgba(43, 41, 37, 0.18);
}

.tech-key--sent {
  background: var(--ops-green);
}

.tech-key--late {
  background: #9a6519;
}

.tech-key--pending {
  background: var(--ops-danger);
}

.tech-key--closed {
  background: #736d62;
}

.tech-table-wrap,
.ideas-table-wrap {
  max-height: min(720px, calc(100dvh - 370px));
}

.tech-tips-table {
  min-width: 1120px;
}

.tech-tips-table thead th:first-child,
.tech-tips-table tbody th {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 140px;
  min-width: 140px;
  background: var(--ops-record);
  box-shadow: 1px 0 0 var(--ops-rule);
}

.tech-tips-table thead th:first-child {
  z-index: 8;
  background: var(--ops-recessed);
}

.tech-tips-table thead th:nth-child(2),
.tech-tips-table tbody td:nth-child(2) {
  position: sticky;
  left: 140px;
  z-index: 4;
  width: 230px;
  min-width: 230px;
  background: var(--ops-record);
  box-shadow: 1px 0 0 var(--ops-rule);
}

.tech-tips-table tbody tr:nth-child(even) :is(th:first-child, td:nth-child(2)) {
  background: #fbfaf6;
}

.tech-tips-table tbody tr:hover :is(th:first-child, td:nth-child(2)) {
  background: var(--ops-teal-soft);
}

.tech-tips-table thead th:nth-child(2) {
  z-index: 8;
  background: var(--ops-recessed);
}

.tech-status {
  width: 100%;
  min-width: 124px;
  min-height: var(--ops-control-height);
  padding: 0 10px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  font-size: 13px;
  font-weight: 750;
}

.tech-status--sent {
  color: var(--ops-green);
  border-color: #9abda9;
  background: var(--ops-green-soft);
}

.tech-status--late {
  color: var(--ops-warning);
  border-color: #cba95f;
  background: var(--ops-warning-soft);
}

.tech-status--pending {
  color: var(--ops-danger);
  border-color: #d3a39d;
  background: var(--ops-danger-soft);
}

.tech-status--alternative {
  color: var(--ops-teal-deep);
  border-color: #9fc4c2;
  background: var(--ops-teal-soft);
}

.tech-status--declined,
.tech-status--not-scheduled {
  color: #5f5a51;
  border-color: var(--ops-rule);
  background: var(--ops-recessed);
}

.ideas-table {
  min-width: 1340px;
}

.ideas-table th:nth-child(2) {
  min-width: 300px;
  color: var(--ops-ink-deep);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  text-transform: none;
  white-space: normal;
}

.ideas-table td:nth-child(7) {
  min-width: 270px;
  color: var(--ops-muted);
}

.ideas-table--editing td:last-child {
  min-width: 120px;
}

.ideas-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 16px;
}

.ideas-toolbar__summary {
  display: flex;
  min-width: 128px;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 3px;
  white-space: nowrap;
}

.ideas-toolbar__summary strong {
  color: var(--ops-ink-deep);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.ideas-toolbar__summary span {
  color: var(--ops-muted);
  font-size: 13px;
}

.ideas-filters {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(190px, 1.35fr) repeat(3, minmax(130px, 0.8fr)) auto;
  align-items: end;
  gap: 9px;
}

.ideas-filter-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 750;
}

.ideas-filter-field > select,
.idea-assignee-select {
  width: 100%;
  min-width: 0;
  min-height: var(--ops-control-height);
  padding: 0 34px 0 10px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background-color: var(--ops-record);
  font-size: 14px;
}

.ideas-filter-field .operations-search {
  width: 100%;
  min-width: 0;
}

.ideas-filter-clear {
  min-height: var(--ops-control-height);
  padding-inline: 14px;
}

.ideas-filter-clear:disabled {
  opacity: 0.46;
}

.idea-assignee-select {
  min-width: 170px;
  font-weight: 700;
}

.idea-assignee-select.is-assigned {
  color: var(--ops-teal-deep);
  border-color: #9fc4c2;
  background-color: var(--ops-teal-soft);
}

.idea-assignee-select:disabled,
.idea-assignee-select[aria-busy='true'] {
  cursor: wait;
  opacity: 0.64;
}

.idea-assignee-name {
  color: var(--ops-muted);
}

.idea-assignee-name.is-assigned {
  color: var(--ops-teal-deep);
  font-weight: 750;
}

.idea-status--complete {
  color: var(--ops-green);
  border-color: #9abda9;
  background: var(--ops-green-soft);
}

.idea-status--progress {
  color: var(--ops-teal-deep);
  border-color: #9fc4c2;
  background: var(--ops-teal-soft);
}

.idea-status--open {
  color: var(--ops-warning);
  border-color: #cba95f;
  background: var(--ops-warning-soft);
}

@media (max-width: 940px) {
  .ideas-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .ideas-filter-field--search {
    grid-column: 1 / -1;
  }

  .ideas-filter-clear {
    width: 100%;
  }
}

@media (max-width: 690px) {
  .ideas-filters {
    grid-template-columns: 1fr;
  }

  .ideas-filter-field--search {
    grid-column: auto;
  }

  .idea-assignee-select {
    min-width: 150px;
  }
}

/* Quality command centre */

.qc-dashboard {
  background: var(--ops-paper);
}

.qc-command-register {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(620px, 1.28fr);
  gap: 28px;
  align-items: end;
  overflow: hidden;
  padding: 25px 28px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-lg);
  background: var(--ops-record);
  box-shadow: none;
}

.qc-command-register h2 {
  margin: 0;
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.qc-command-register p {
  max-width: 60ch;
  margin: 9px 0 0;
  color: #49453e;
  font-size: 14px;
  line-height: 1.55;
}

.qc-command-register > div > small {
  display: block;
  margin-top: 14px;
  color: #5f594f;
  font-size: 13px;
}

.qc-command-register dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.qc-command-register dl > div {
  min-width: 0;
  padding: 5px 16px;
  border-left: 1px solid rgba(43, 41, 37, 0.24);
}

.qc-command-register dl > div.is-attention {
  border-color: rgba(148, 59, 49, 0.28);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-danger-soft);
}

.qc-command-register dt,
.qc-command-register dd {
  margin: 0;
}

.qc-command-register dt {
  color: #5f594f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.qc-command-register dd {
  margin-top: 7px;
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-size: 30px;
  font-weight: 750;
  line-height: 1;
}

.qc-command-register dd span {
  color: #5f594f;
  font-size: 14px;
}

.qc-command-register dl small {
  display: block;
  margin-top: 7px;
  color: #5f594f;
  font-size: 13px;
  line-height: 1.35;
}

.qc-filter-bar {
  display: grid;
  grid-template-columns: 150px minmax(160px, 0.9fr) minmax(160px, 0.9fr) 170px minmax(230px, 1.2fr);
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-lg);
  background: var(--ops-record);
}

.qc-filter-bar label,
.qc-followup-form label,
.work-form label {
  color: var(--ops-ink);
  font-size: 13px;
  font-weight: 750;
}

.qc-filter-bar select,
.qc-filter-bar input,
.qc-followup-form select,
.qc-followup-form input,
.qc-followup-form textarea,
.work-form input,
.work-form select,
.work-form textarea {
  width: 100%;
  min-height: var(--ops-control-height);
  padding: 9px 11px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  font-family: inherit;
  font-size: 15px;
}

.qc-filter-search svg {
  bottom: 13px;
  color: var(--ops-muted);
  stroke: currentColor;
}

.qc-filter-search input {
  padding-left: 37px;
}

.qc-command-grid,
.qc-dashboard__grid {
  display: grid;
  min-width: 0;
  gap: 16px;
  align-items: stretch;
}

.qc-command-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
}

.qc-dashboard__grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.72fr);
}

.qc-trend-panel,
.qc-followup-queue,
.qc-ledger,
.qc-coaching,
.qc-visit-detail,
.work-form,
.qc-entry-form__section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-lg);
  background: var(--ops-record);
  box-shadow: none;
}

.qc-trend-panel > header,
.qc-followup-queue > header,
.qc-ledger > header,
.qc-coaching > header,
.qc-visit-detail > header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 19px;
  border-bottom: 1px solid var(--ops-rule);
  background: var(--ops-record);
}

.qc-dashboard h3,
.qc-visit-detail > header h3 {
  margin: 0;
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-weight: 750;
}

.qc-dashboard h3 {
  font-size: 17px;
  line-height: 1.25;
}

.qc-dashboard header p {
  color: var(--ops-muted);
  font-size: 14px;
  line-height: 1.45;
}

.qc-trend-panel > header > span,
.qc-followup-queue > header > span {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-recessed);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}

.qc-trend-chart {
  min-height: 250px;
  gap: clamp(9px, 1.5vw, 20px);
  padding: 27px 22px 19px;
  background: #fbfaf6;
}

.qc-trend-column {
  height: 190px;
}

.qc-trend-column__value {
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
}

.qc-trend-column__track {
  width: min(40px, 74%);
  border: 1px solid var(--ops-rule);
  border-bottom: 0;
  border-radius: var(--ops-radius-sm) var(--ops-radius-sm) 0 0;
  background: var(--ops-recessed);
}

.qc-trend-column__track i {
  background: var(--ops-teal);
}

.qc-trend-column__track i.is-empty {
  background: var(--ops-rule-strong);
}

.qc-trend-column small,
.qc-trend-column em {
  color: var(--ops-muted);
  font-size: 13px;
}

.qc-followup-queue > div {
  max-height: 300px;
  overflow: auto;
  overscroll-behavior: contain;
}

.qc-followup-row {
  min-height: 68px;
  padding: 13px 16px;
  color: var(--ops-ink);
  border-bottom-color: var(--ops-rule);
  background: var(--ops-record);
}

.qc-followup-row:hover,
.qc-followup-row:focus-visible {
  background: var(--ops-teal-soft);
}

.qc-followup-row.is-overdue {
  background: var(--ops-danger-soft);
}

.qc-followup-row strong,
.qc-coaching-row strong {
  color: var(--ops-ink-deep);
  font-size: 14px;
}

.qc-followup-row small,
.qc-coaching-row small {
  color: var(--ops-muted);
  font-size: 13px;
}

.qc-status,
.qc-coaching-signal,
.qc-attention,
.qc-clear {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.qc-status--open,
.qc-attention {
  color: var(--ops-warning);
  border-color: #cba95f;
  background: var(--ops-warning-soft);
}

.qc-status--in-progress,
.qc-coaching-signal--steady {
  color: var(--ops-teal-deep);
  border-color: #9fc4c2;
  background: var(--ops-teal-soft);
}

.qc-status--resolved,
.qc-clear,
.qc-coaching-signal--improving {
  color: var(--ops-green);
  border-color: #9abda9;
  background: var(--ops-green-soft);
}

.qc-status--dismissed {
  color: #5f5a51;
  border-color: var(--ops-rule);
  background: var(--ops-recessed);
}

.qc-coaching-signal--needs-review {
  color: var(--ops-danger);
  border-color: #d3a39d;
  background: var(--ops-danger-soft);
}

.qc-table-wrap {
  max-width: 100%;
  max-height: min(570px, calc(100dvh - 390px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.qc-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.qc-table-wrap th,
.qc-table-wrap td {
  padding: 12px 13px;
  color: var(--ops-ink);
  border-right: 1px solid var(--ops-rule);
  border-bottom: 1px solid var(--ops-rule);
  background: var(--ops-record);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
}

.qc-table-wrap th:last-child,
.qc-table-wrap td:last-child {
  border-right: 0;
}

.qc-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #514c44;
  background: var(--ops-recessed);
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.qc-table-wrap tbody tr:nth-child(even) td {
  background: #fbfaf6;
}

.qc-ledger-link strong {
  color: var(--ops-ink-deep);
  font-size: 14px;
}

.qc-ledger-link small {
  color: var(--ops-muted);
  font-size: 13px;
}

.qc-ledger-link:hover strong,
.qc-ledger-link:focus-visible strong {
  color: var(--ops-teal-deep);
}

.qc-coaching > div:not(.qc-source-note) {
  max-height: min(500px, calc(100dvh - 420px));
  overflow: auto;
}

.qc-coaching-row {
  min-height: 68px;
  border-bottom-color: var(--ops-rule);
}

.qc-coaching-row > span:nth-child(3) em {
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-weight: 750;
}

.qc-source-note {
  color: var(--ops-teal-deep);
  border-top: 1px solid #b5cfcd;
  background: var(--ops-teal-soft);
}

.qc-source-note a {
  color: var(--ops-teal-deep);
  font-weight: 750;
}

.qc-entry-form {
  max-width: 1180px;
}

.work-form {
  gap: 16px;
  padding: 20px;
}

.work-form__heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ops-rule);
}

.work-form__heading h3 {
  color: var(--ops-ink-deep);
  font-size: 19px;
  font-weight: 750;
}

.work-form__heading p {
  color: var(--ops-muted);
  font-size: 14px;
}

.qc-entry-form__section {
  gap: 13px;
  padding: 16px;
  border-color: var(--ops-rule);
  border-radius: var(--ops-radius-md);
  background: #fbfaf6;
}

.qc-entry-form__section > header strong {
  color: var(--ops-ink-deep);
  font-size: 15px;
}

.qc-entry-form__section > header span {
  color: var(--ops-muted);
  font-size: 13px;
}

.panel-close {
  width: 44px;
  height: 44px;
  color: var(--ops-muted);
  border: 1px solid var(--ops-rule);
  border-radius: 50%;
  background: var(--ops-record);
}

.panel-close:hover {
  color: var(--ops-ink-deep);
  border-color: var(--ops-ink);
  background: var(--ops-yellow-soft);
}

.qc-visit-detail {
  scroll-margin-top: 92px;
}

.qc-visit-detail > header h3 {
  font-size: 25px;
  line-height: 1.08;
}

.qc-visit-detail__grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
}

.qc-visit-evidence {
  padding: 18px;
  border-right-color: var(--ops-rule);
}

.qc-score-detail {
  border-color: var(--ops-rule-strong);
  border-radius: var(--ops-radius-md);
  background: #fbfaf6;
}

.qc-score-detail > div {
  min-height: 82px;
  padding: 12px;
  border-color: var(--ops-rule);
}

.qc-score-detail dt {
  color: var(--ops-muted);
  font-size: 12px;
  letter-spacing: 0.025em;
}

.qc-score-detail dd {
  color: var(--ops-ink-deep);
  font-family: inherit;
  font-size: 22px;
  font-weight: 750;
}

.qc-score-detail dd.is-text {
  font-family: inherit;
  font-size: 13px;
}

.qc-narrative-grid article {
  border-color: var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
}

.qc-narrative-grid h4 {
  color: var(--ops-ink-deep);
  font-size: 14px;
}

.qc-narrative-grid p {
  color: var(--ops-ink);
  font-size: 14px;
}

.qc-followup-form {
  gap: 14px;
  padding: 18px;
  background: var(--ops-paper);
}

.qc-followup-form h4 {
  color: var(--ops-ink-deep);
  font-size: 17px;
}

.qc-followup-form p {
  color: var(--ops-muted);
  font-size: 13px;
}

.qc-create-task {
  padding: 12px;
  border-color: var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
}

.qc-create-task input {
  accent-color: var(--ops-teal);
}

.qc-task-link {
  color: var(--ops-teal-deep);
  border: 1px solid #9fc4c2;
  border-radius: var(--ops-radius-sm);
  background: var(--ops-teal-soft);
}

.qc-followup-audit {
  color: var(--ops-muted);
  font-size: 13px;
}

/* Responsive operations desk */

@media (max-width: 1250px) {
  .coverage-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.72fr);
  }

  .coverage-editor {
    grid-column: 1 / -1;
    max-height: none;
    overflow: visible;
  }

  .coverage-editor-empty {
    min-height: 0;
    padding: 12px 0;
  }

  .coverage-editor-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage-editor-form__header,
  .coverage-editor-form > .field:first-of-type,
  .coverage-editor-form > .coverage-location-note,
  .coverage-editor-form > .coverage-confirm-location,
  .coverage-editor-form > .coverage-schedule-assignment,
  .coverage-editor-form > .coverage-days-fieldset,
  .coverage-editor-form > .coverage-editor-actions {
    grid-column: 1 / -1;
  }

  .qc-command-register {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .qc-filter-bar {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .qc-filter-search {
    grid-column: 1 / -1;
  }

  .qc-visit-detail__grid {
    grid-template-columns: 1fr;
  }

  .qc-visit-evidence {
    border-right: 0;
    border-bottom: 1px solid var(--ops-rule);
  }
}

@media (max-width: 940px) {
  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading {
    display: grid;
  }

  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading h1 {
    max-width: none;
  }

  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading-actions {
    justify-content: flex-start;
  }

  .operations-toolbar,
  .coverage-toolbar,
  .tech-surface-head,
  .tech-tracker-toolbar,
  .ideas-toolbar {
    display: grid;
    align-items: start;
  }

  .operations-search,
  .coverage-toolbar__actions .operations-search {
    width: 100%;
  }

  .coverage-toolbar__actions,
  .tech-tracker-filters {
    justify-content: stretch;
  }

  .coverage-toolbar__actions .operations-search,
  .tech-tracker-filters .operations-search {
    flex: 1 1 260px;
  }

  .coverage-layout {
    grid-template-columns: 1fr;
  }

  .coverage-editor {
    grid-column: auto;
  }

  .coverage-map-canvas,
  .coverage-school-list {
    height: clamp(420px, 58dvh, 620px);
    min-height: 420px;
  }

  .qc-command-grid,
  .qc-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .qc-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qc-command-register dl,
  .qc-score-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qc-score-detail > div:nth-child(even) {
    border-right: 0;
  }

  .qc-coaching > div:not(.qc-source-note),
  .qc-table-wrap {
    max-height: 520px;
  }
}

@media (max-width: 690px) {
  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading {
    gap: 16px;
    margin-bottom: 20px;
  }

  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1;
  }

  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading p {
    font-size: 16px;
  }

  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading-actions,
  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) .view-heading-actions :is(.button, .heading-week-select, select) {
    width: 100%;
  }

  .platform-view[data-section='operations'] .operations-heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-view[data-section='operations'] .operations-heading-actions .platform-owner-badge {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
  }

  .operations-surface,
  .qc-dashboard {
    gap: 17px;
    padding: 18px 12px 24px;
  }

  .operations-subnav {
    display: flex;
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .operations-subnav::-webkit-scrollbar,
  .coverage-day-switch::-webkit-scrollbar {
    display: none;
  }

  .operations-subnav__button {
    min-width: 132px;
    flex: 0 0 auto;
    padding-inline: 8px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .operations-subnav__button:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .term-switch {
    width: 100%;
  }

  .term-button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 8px;
  }

  .operations-toolbar,
  .coverage-toolbar,
  .tech-surface-head,
  .tech-tracker-toolbar,
  .ideas-toolbar,
  .coverage-toolbar > div:first-child,
  .coverage-toolbar__actions,
  .tech-surface-head > div,
  .tech-tracker-filters {
    width: 100%;
  }

  .coverage-toolbar__actions,
  .tech-tracker-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .coverage-team-filter,
  .coverage-team-filter select,
  .tech-tracker-filters label,
  .tech-tracker-filters select,
  .coverage-toolbar__actions .button {
    width: 100%;
  }

  .coverage-day-switch {
    display: flex;
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .coverage-day-button {
    min-width: 88px;
    flex: 0 0 auto;
    justify-content: center;
    padding-inline: 7px;
    scroll-snap-align: start;
  }

  .coverage-panel-header {
    min-height: 74px;
    align-items: flex-start;
  }

  .coverage-map-count,
  .coverage-register-note {
    flex: 0 0 auto;
  }

  .coverage-map-canvas,
  .coverage-school-list {
    height: clamp(360px, 56dvh, 520px);
    min-height: 360px;
  }

  .coverage-map-controls {
    top: 10px;
    right: 10px;
  }

  .coverage-map-status,
  .coverage-pin-instruction {
    top: 64px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .coverage-map-coordinate-readout {
    display: none;
  }

  .coverage-editor-form {
    grid-template-columns: 1fr;
  }

  .coverage-editor-form__header,
  .coverage-editor-form > .field:first-of-type,
  .coverage-editor-form > .coverage-location-note,
  .coverage-editor-form > .coverage-confirm-location,
  .coverage-editor-form > .coverage-schedule-assignment,
  .coverage-editor-form > .coverage-days-fieldset,
  .coverage-editor-form > .coverage-editor-actions {
    grid-column: auto;
  }

  .coverage-form-grid {
    grid-template-columns: 1fr;
  }

  .coverage-day-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-board,
  .schedule-editor-board {
    grid-template-columns: repeat(5, 230px);
    max-height: 620px;
  }

  .tech-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .tech-progress > div {
    min-width: 0;
    grid-column: 1 / -1;
    padding: 0 0 9px;
    border-right: 0;
    border-bottom: 1px solid var(--ops-rule);
  }

  .tech-table-wrap,
  .ideas-table-wrap,
  .operations-table-wrap {
    max-height: 620px;
    border-radius: var(--ops-radius-md);
  }

  .tech-tips-table {
    min-width: 920px;
  }

  .tech-tips-table thead th:first-child,
  .tech-tips-table tbody th {
    width: 110px;
    min-width: 110px;
  }

  .tech-tips-table thead th:nth-child(2),
  .tech-tips-table tbody td:nth-child(2) {
    left: 110px;
    width: 150px;
    min-width: 150px;
  }

  .qc-command-register {
    gap: 20px;
    padding: 20px;
  }

  .qc-command-register dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qc-command-register dl > div {
    padding: 11px 10px;
    border-top: 1px solid rgba(43, 41, 37, 0.24);
    border-left: 0;
  }

  .qc-command-register dl > div:nth-child(odd) {
    border-right: 1px solid rgba(43, 41, 37, 0.24);
  }

  .qc-filter-bar,
  .qc-narrative-grid {
    grid-template-columns: 1fr;
  }

  .qc-filter-search {
    grid-column: auto;
  }

  .qc-trend-chart {
    gap: 5px;
    padding-inline: 10px;
  }

  .qc-trend-column em::after {
    content: '';
  }

  .qc-followup-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .qc-followup-row > span:last-child {
    text-align: left;
  }

  .qc-coaching-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .qc-coaching-signal {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .qc-entry-form__section > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-form__grid,
  .qc-followup-form .work-form__grid {
    grid-template-columns: 1fr;
  }

  .work-form__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-form__actions .button {
    width: 100%;
  }

  .qc-score-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qc-task-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .qc-task-link .text-button {
    grid-column: 2;
    justify-self: start;
  }
}

.rota-upload-button svg { width: 18px; height: 18px; }
.rota-upload-button.is-scanning svg { animation: rota-upload-pulse 1s ease-in-out infinite; }
@keyframes rota-upload-pulse { 50% { transform: translateY(-2px); opacity: 0.58; } }

.coverage-rota-week {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 9px;
  color: var(--ops-teal-deep);
  border: 1px solid color-mix(in srgb, var(--ops-teal) 35%, var(--ops-rule));
  border-radius: 999px;
  background: var(--ops-teal-soft);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}
.coverage-rota-week svg { width: 15px; height: 15px; }

.rota-import-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(33, 31, 27, 0.48);
  backdrop-filter: blur(5px);
  animation: rota-backdrop-in 180ms var(--ease, ease-out) both;
}
.rota-import-dialog {
  display: grid;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 40px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule-strong);
  border-radius: 18px;
  background: var(--ops-record);
  box-shadow: 0 24px 80px rgba(33, 31, 27, 0.24);
  animation: rota-dialog-in 240ms var(--ease, ease-out) both;
}
.rota-import-backdrop.is-updating,
.rota-import-backdrop.is-updating .rota-import-dialog { animation: none; }
@keyframes rota-backdrop-in { from { opacity: 0; } }
@keyframes rota-dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }

.rota-import-dialog__header,
.rota-import-dialog__footer,
.rota-review-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.rota-import-dialog__header { padding: 22px 24px 18px; }
.rota-import-dialog__header h2 {
  margin: 4px 0 3px;
  color: var(--ops-ink-deep);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.rota-import-dialog__header p,
.rota-review-section header p,
.rota-import-dialog__footer span { margin: 0; color: var(--ops-muted); }

.rota-import-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--ops-rule);
  background: var(--ops-paper);
}
.rota-import-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  color: var(--ops-muted);
  border-right: 1px solid var(--ops-rule);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.rota-import-steps span:last-child { border-right: 0; }
.rota-import-steps span.is-complete { color: var(--ops-green); }
.rota-import-steps span.is-active { color: var(--ops-ink-deep); background: var(--ops-yellow-soft); }
.rota-import-steps svg { width: 15px; height: 15px; }

.rota-import-dialog__body {
  min-height: 0;
  padding: 20px 24px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ops-paper);
}
.rota-review-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-md);
  background: var(--ops-record);
}
.rota-review-summary > div {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-right: 1px solid var(--ops-rule);
}
.rota-review-summary > div:last-child { border-right: 0; }
.rota-review-summary strong { color: var(--ops-ink-deep); font-size: 24px; letter-spacing: -0.025em; }
.rota-review-summary span { color: var(--ops-muted); font-size: 12px; }
.rota-review-summary .needs-review { background: var(--ops-warning-soft); }

.rota-special-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rota-special-strip > strong { margin-right: 2px; font-size: 13px; }
.rota-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-record);
  font-size: 12px;
  font-weight: 720;
}
.rota-status--absent { color: var(--ops-danger); border-color: color-mix(in srgb, var(--ops-danger) 32%, var(--ops-rule)); background: var(--ops-danger-soft); }
.rota-status--wfh-admin,
.rota-status--qc { color: var(--ops-teal-deep); border-color: color-mix(in srgb, var(--ops-teal) 34%, var(--ops-rule)); background: var(--ops-teal-soft); }

.rota-review-section,
.rota-review-details { margin-top: 16px; border-top: 1px solid var(--ops-rule-strong); }
.rota-review-section > header { padding: 16px 0 12px; }
.rota-review-section h3 { margin: 0 0 3px; color: var(--ops-ink-deep); font-size: 17px; }
.rota-review-section > header > span,
.rota-review-details summary span {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--ops-warning-soft);
  font-size: 12px;
  font-weight: 780;
}
.rota-review-matches,
.rota-conflict-list { display: grid; gap: 8px; }
.rota-review-match,
.rota-conflict-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
}
.rota-review-match > span,
.rota-conflict-row > span { display: grid; gap: 3px; min-width: 0; }
.rota-review-match small,
.rota-conflict-row small { color: var(--ops-muted); overflow-wrap: anywhere; }
.rota-review-match select,
.rota-conflict-row select { width: 100%; min-height: 40px; }
.rota-review-match__controls { display: grid; gap: 7px; min-width: 0; }
.rota-review-match__controls .text-button { width: fit-content; }

.rota-review-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-top: 3px;
  padding: 3px 8px;
  color: var(--ops-muted);
  border: 1px solid var(--ops-rule);
  border-radius: 999px;
  background: var(--ops-recessed);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.2;
}
.rota-review-state--matched,
.rota-review-state--confirmed {
  color: var(--ops-green);
  border-color: color-mix(in srgb, var(--ops-green) 34%, var(--ops-rule));
  background: var(--ops-green-soft);
}
.rota-review-state--needs-review {
  color: var(--ops-warning);
  border-color: color-mix(in srgb, var(--ops-warning) 34%, var(--ops-rule));
  background: var(--ops-warning-soft);
}
.rota-review-state--new-staff {
  color: var(--ops-teal-deep);
  border-color: color-mix(in srgb, var(--ops-teal) 34%, var(--ops-rule));
  background: var(--ops-teal-soft);
}
.rota-review-state--new-school {
  color: var(--ops-ink-deep);
  border-color: color-mix(in srgb, var(--ops-yellow-hover) 60%, var(--ops-rule));
  background: var(--ops-yellow-soft);
}
.rota-review-state--ignored { color: var(--ops-muted); background: var(--ops-recessed); }
.rota-review-state--conflict {
  color: var(--ops-danger);
  border-color: color-mix(in srgb, var(--ops-danger) 34%, var(--ops-rule));
  background: var(--ops-danger-soft);
}

.rota-create-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--ops-rule);
  background: var(--ops-paper);
}
.rota-create-form > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
  gap: 12px;
}

.rota-team-membership-editor > div {
  grid-template-columns: 1fr;
}
.rota-create-form label,
.rota-entry-editor label { display: grid; align-content: start; gap: 5px; min-width: 0; }
.rota-create-form label > span,
.rota-entry-editor label > span { color: var(--ops-ink-deep); font-size: 13px; font-weight: 740; }
.rota-create-form input,
.rota-create-form select,
.rota-entry-editor input,
.rota-entry-editor select {
  width: 100%;
  min-height: 42px;
  padding-inline: 11px;
  border: 1px solid var(--ops-rule-strong);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
  color: var(--ops-ink);
  font: inherit;
}
.rota-create-warning {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--ops-warning) 34%, var(--ops-rule));
  border-radius: var(--ops-radius-sm);
  background: var(--ops-warning-soft);
}
.rota-create-warning p { margin: 3px 0 8px; color: var(--ops-muted); font-size: 13px; }
.rota-create-warning > div { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.rota-location-review { display:grid; gap:8px; min-width:0; margin:0; padding:12px; border:1px solid var(--ops-rule-strong); border-radius:var(--ops-radius-sm); background:var(--ops-record); }
.rota-location-review legend { padding:0 4px; color:var(--ops-ink-deep); font-size:14px; font-weight:780; }
.rota-location-review>p { margin:0; color:var(--ops-muted); font-size:13px; line-height:1.45; }
.rota-location-review>div { display:grid; gap:7px; }
.rota-location-option { display:grid!important; grid-template-columns:auto minmax(0,1fr) auto; align-items:start!important; gap:9px!important; padding:10px; border:1px solid var(--ops-rule); border-radius:var(--ops-radius-sm); background:var(--ops-paper); cursor:pointer; }
.rota-location-option:has(input:checked) { border-color:var(--ops-teal); box-shadow:0 0 0 2px color-mix(in srgb,var(--ops-teal) 18%,transparent); }
.rota-location-option input { width:auto; min-height:0; margin-top:3px; accent-color:var(--ops-teal-deep); }
.rota-location-option strong,.rota-location-option small { display:block; }
.rota-location-option small { margin-top:2px; color:var(--ops-muted); font-size:13px; line-height:1.35; }
.rota-location-option small a { color:var(--ops-teal-deep); font-weight:740; }
.rota-location-option em { max-width:110px; color:var(--ops-teal-deep); font-size:13px; font-style:normal; font-weight:760; text-align:right; }
.rota-location-option--missing { border-style:dashed; }
.rota-create-form__actions,
.rota-entry-editor__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.rota-review-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: var(--ops-ink-deep);
  cursor: pointer;
  font-weight: 760;
}
.rota-review-details ul { display: grid; max-height: 250px; margin: 0; padding: 0 0 10px; overflow: auto; list-style: none; }
.rota-review-details li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--ops-rule);
  font-size: 13px;
}
.rota-review-details li svg { width: 15px; color: var(--ops-muted); }

.rota-assignment-table-wrap {
  max-height: 390px;
  overflow: auto;
  border: 1px solid var(--ops-rule);
  border-radius: var(--ops-radius-sm);
  background: var(--ops-record);
}
.rota-assignment-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.rota-assignment-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 10px 12px;
  color: var(--ops-muted);
  border-bottom: 1px solid var(--ops-rule-strong);
  background: var(--ops-recessed);
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rota-assignment-table td { padding: 9px 12px; border-bottom: 1px solid var(--ops-rule); vertical-align: top; font-size: 13px; }
.rota-assignment-table td > strong,
.rota-assignment-table td > small { display: block; }
.rota-assignment-table td > small { margin-top: 2px; color: var(--ops-muted); }
.rota-assignment-table tr.needs-review { background: var(--ops-warning-soft); }
.rota-assignment-table tr.is-skipped { color: var(--ops-muted); background: var(--ops-recessed); }
.rota-entry-row--needs-review { background: var(--ops-warning-soft); }
.rota-entry-row--new-staff { background: var(--ops-teal-soft); }
.rota-entry-row--new-school { background: var(--ops-yellow-soft); }
.rota-entry-row--confirmed { background: var(--ops-green-soft); }
.rota-entry-row--ignored { color: var(--ops-muted); background: var(--ops-recessed); }
.rota-entry-row--conflict { background: var(--ops-danger-soft); }
.rota-entry-row td:last-child { min-width: 118px; }
.rota-entry-row td:last-child .text-button { display: block; margin-top: 4px; }

.rota-schedule-review > header { align-items: center; }
.rota-schedule-review > header > div:last-child { display: flex; align-items: center; gap: 9px; }
.rota-schedule-review > header > div:last-child > span {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--ops-recessed);
  font-size: 12px;
  font-weight: 780;
}
.rota-schedule-review .button { min-height: 40px; }

.rota-entry-editor-row > td { padding: 0; background: var(--ops-record); }
.rota-entry-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-block: 1px solid var(--ops-rule-strong);
  background: var(--ops-paper);
}
.rota-entry-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rota-entry-editor > header > div { display: grid; gap: 3px; }
.rota-entry-editor > header span,
.rota-entry-editor label small { color: var(--ops-muted); font-size: 13px; }
.rota-entry-editor__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rota-entry-editor__grid [hidden] { display: none; }
.rota-entry-ignore { margin-right: auto; color: var(--ops-danger); }

.rota-import-dialog__footer {
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--ops-rule);
  background: var(--ops-record);
}
.rota-import-dialog__footer > div { display: grid; min-width: 0; margin-right: auto; }

.operations-rota-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--ops-rule); }
.operations-rota-strip > small { flex-basis: 100%; color: var(--ops-teal-deep); font-weight: 760; }
.operations-rota-entry {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 2px 6px;
  padding: 5px 7px;
  color: var(--ops-ink);
  border: 1px solid var(--ops-rule);
  border-radius: 9px;
  background: var(--ops-record);
  font-size: 11px;
}
.operations-rota-entry small { grid-column: 1 / -1; color: var(--ops-muted); }
.operations-rota-entry--absent { background: var(--ops-danger-soft); }
.operations-rota-entry--qc,
.operations-rota-entry--wfh-admin { background: var(--ops-teal-soft); }
.operations-rota-edit-note { margin-bottom: 12px; padding: 10px 12px; color: var(--ops-teal-deep); border-left: 3px solid var(--ops-teal); background: var(--ops-teal-soft); font-size: 13px; }

.schedule-board--rota .schedule-day header > div { display: grid; gap: 2px; }
.schedule-board--rota .schedule-day header small { color: var(--ops-muted); font-size: 11px; font-weight: 600; }
.schedule-board--rota .schedule-day li { display: grid; gap: 3px; }
.schedule-board--rota .schedule-day li small { color: var(--ops-muted); line-height: 1.45; }
.schedule-assignment-list { display: grid; gap: 7px; }
.schedule-assignment-editor { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.schedule-assignment-editor select { min-width: 0; min-height: 34px; max-width: 100%; flex: 1 1 120px; padding: 5px 28px 5px 8px; color: var(--ops-ink-deep); border: 1px solid var(--ops-rule-strong); border-radius: var(--ops-radius-sm); background-color: var(--ops-record); font: inherit; font-weight: 700; }
.schedule-assignment-editor select:focus-visible { outline: 2px solid var(--ops-ink-deep); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ops-yellow-soft); }
.schedule-assignment-editor > span { color: var(--ops-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-board--rota .schedule-status-row--absent { background: var(--ops-danger-soft); }
.schedule-board--rota .schedule-status-row--qc,
.schedule-board--rota .schedule-status-row--wfh-admin { background: var(--ops-teal-soft); }

.coverage-school-summary__rota > div { display: grid; gap: 6px; margin-top: 7px; }
.coverage-school-summary__rota span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--ops-teal-soft);
}
.coverage-school-summary__rota small { color: var(--ops-teal-deep); }

@media (max-width: 760px) {
  .rota-import-backdrop { padding: 0; }
  .rota-import-dialog { width: 100%; max-height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  .rota-import-dialog__header,
  .rota-import-dialog__body,
  .rota-import-dialog__footer { padding-inline: 16px; }
  .rota-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rota-review-summary > div { border-bottom: 1px solid var(--ops-rule); }
  .rota-review-match,
  .rota-conflict-row { grid-template-columns: 1fr; gap: 8px; }
  .rota-create-form > div:first-child,
  .rota-entry-editor__grid { grid-template-columns: 1fr; }
  .rota-schedule-review > header { align-items: flex-start; }
  .rota-schedule-review > header,
  .rota-schedule-review > header > div:last-child { display: grid; }
  .rota-entry-editor__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rota-entry-ignore { grid-column: 1 / -1; margin-right: 0; }
  .rota-import-dialog__footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rota-import-dialog__footer > div { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .rota-upload-button.is-scanning svg,
  .coverage-location-sync.is-syncing svg,
  .rota-import-backdrop,
  .rota-import-dialog { animation: none; }
}

@media (prefers-contrast: more) {
  .platform-view[data-section='operations'],
  .platform-view[data-section='tech-tips'],
  .platform-view[data-section='qc'] {
    --ops-muted: #4f4a42;
    --ops-rule: #a49b8b;
    --ops-rule-strong: #6d665b;
  }

  .operations-table tbody tr:nth-child(even),
  .tech-tips-table tbody tr:nth-child(even),
  .ideas-table tbody tr:nth-child(even),
  .qc-table-wrap tbody tr:nth-child(even) td,
  .schedule-day li:nth-child(even) {
    background: #f3efe4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']),
  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) *,
  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) *::before,
  .platform-view:is([data-section='operations'], [data-section='tech-tips'], [data-section='qc']) *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .coverage-marker:hover,
  .coverage-marker.is-selected,
  .staff-drag-handle:active {
    transform: none;
  }

  .coverage-marker,
  .coverage-marker:hover,
  .coverage-marker.is-selected {
    transform: translate(-50%, -100%);
  }
}
