:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef2f6;
  --text: #18202b;
  --muted: #667085;
  --line: #d9e0e8;
  --accent: #157f73;
  --accent-strong: #0f5e55;
  --warn: #a45b12;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-brand {
  margin-bottom: 22px;
  padding: 0;
}

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

.auth-hint {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background: #17212f;
  color: #ecf2f8;
  padding: 24px 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 0 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
}

.brand-name {
  font-weight: 800;
}

.brand-subtitle {
  color: #a9b6c6;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active {
  background: #233146;
  color: #ffffff;
}

.sidebar-account {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 18px 8px 0;
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.sidebar-workspace {
  color: #ffffff;
  font-weight: 800;
}

.sidebar-email {
  color: #a9b6c6;
  font-size: 13px;
  line-height: 1.35;
}

.sidebar-logout {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 0 0;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.hygiene-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.delivery-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  gap: 12px;
  min-height: 118px;
  padding: 18px;
}

.dashboard-card {
  position: relative;
  grid-template-rows: auto auto 1fr auto;
}

.dashboard-card[draggable="true"] {
  cursor: grab;
}

.dashboard-card.is-dragging {
  opacity: 0.55;
}

.dashboard-card.is-drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.16), var(--shadow);
}

.dashboard-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
}

.metric-drag-handle,
.metric-order-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.metric-drag-handle {
  min-width: 34px;
  padding: 6px 7px;
  letter-spacing: 1px;
}

.metric-order-actions {
  display: flex;
  gap: 4px;
}

.metric-order-button {
  width: 26px;
  height: 26px;
  padding: 0;
}

.metric-drag-handle:hover,
.metric-order-button:hover {
  color: var(--text);
  border-color: var(--accent);
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.metric strong {
  font-size: 34px;
  line-height: 1;
}

.metric small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.panel {
  padding: 22px;
  margin-bottom: 18px;
}

.hygiene-table-panel {
  padding: 0;
  overflow: hidden;
}

.subpanel {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}

.panel p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f1c27d;
  border-radius: 8px;
  background: #fff7ed;
  color: var(--warn);
  font-weight: 750;
}

.notice.success {
  border-color: #9bd8ca;
  background: #ecfdf7;
  color: var(--accent-strong);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font-weight: 850;
  padding: 0 14px;
  text-decoration: none;
}

button.action-button {
  cursor: pointer;
  font: inherit;
}

.action-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.destinations-create-button {
  font-weight: 650;
}

.secondary-button {
  min-height: 38px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-weight: 850;
  padding: 0 14px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  align-items: end;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-label {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.data-table select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

.form-grid textarea {
  resize: vertical;
}

.inline-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  align-items: center;
}

.form-grid .checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.form-grid .checkbox-chip input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
}

.empty-inline {
  color: #667085;
  font-size: 13px;
}

.variable-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.variable-list code {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  background: #f8fafc;
  color: #253142;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
}

.form-grid button,
.data-table button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
  padding: 0 14px;
  cursor: pointer;
}

.form-grid button:disabled,
.data-table button:disabled {
  background: #98a2b3;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.compact-form {
  align-items: end;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.subsection-heading {
  margin: 4px 0 10px;
}

.subsection-heading h3 {
  color: #101828;
  font-size: 15px;
  margin: 0;
}

.compact-table-wrap {
  margin-bottom: 20px;
}

.data-table button.small-button {
  min-height: 30px;
  padding: 0 10px;
}

.inline-form {
  align-items: center;
  display: flex;
  gap: 8px;
}

.inline-form select {
  min-height: 34px;
  min-width: 150px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actions-heading,
.actions-cell {
  text-align: center;
}

.actions-cell {
  white-space: nowrap;
}

.table-action-form {
  display: inline-flex;
  margin: 0;
}

.table-action,
.data-table button.table-action {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.table-action:hover,
.data-table button.table-action:hover {
  border-color: #9fb1c3;
  background: #f8fafc;
  color: var(--accent-strong);
}

.table-action:focus-visible,
.data-table button.table-action:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 113, 0.18);
}

.table-action:disabled,
.data-table button.table-action:disabled {
  border-color: #d8e1ea;
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
}

.table-action-danger,
.data-table button.table-action-danger {
  color: #b42318;
}

.table-action-danger:hover,
.data-table button.table-action-danger:hover {
  border-color: #f2b8b5;
  background: #fff5f5;
  color: #912018;
}

.table-action-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.switch-form {
  display: inline-flex;
  align-items: center;
}

.setting-switch-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
}

.setting-switch-form p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ios-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  cursor: pointer;
}

.ios-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ios-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background 160ms ease;
}

.ios-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.24);
  transition: transform 160ms ease;
}

.ios-switch input:checked + span {
  background: #12b76a;
}

.ios-switch input:checked + span::after {
  transform: translateX(18px);
}

.ios-switch input:focus-visible + span {
  outline: 3px solid rgba(21, 112, 239, 0.28);
  outline-offset: 2px;
}

.disabled-table-wrap {
  opacity: 0.55;
}

.disabled-table-wrap select,
.disabled-table-wrap input,
.disabled-table-wrap button {
  cursor: not-allowed;
}

.inline-stack-form {
  display: grid;
  gap: 8px;
  min-width: 180px;
  margin-bottom: 8px;
}

.form-grid button.danger-button,
.data-table button.danger-button {
  background: #b42318;
}

.upload-status {
  min-height: 38px;
  border: 1px solid #d9e0e8;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  padding: 10px 12px;
  line-height: 1.4;
}

.upload-status.active {
  border-color: #9bd8ca;
  background: #ecfdf7;
  color: var(--accent-strong);
  font-weight: 800;
}

.upload-status.error {
  border-color: #f1c27d;
  background: #fff7ed;
  color: var(--warn);
}

.copy-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.source-post-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-copy-panel {
  margin-top: 0;
}

.copy-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.copy-panel h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.copy-panel p {
  max-width: 940px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.copy-button {
  min-height: 34px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0 12px;
  white-space: nowrap;
}

.code-buffer {
  overflow-x: auto;
  margin: 0;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  background: #ffffff;
  color: #253142;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  padding: 12px;
  white-space: pre;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.detail-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 12px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.field-display {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.field-display span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.field-display strong {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.route-destination-list {
  display: grid;
  gap: 10px;
}

.route-destination-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: end;
}

.route-remove-destination {
  width: 40px;
  height: 50px;
  min-height: 50px;
}

.route-remove-destination[hidden] {
  display: none;
}

.route-form-panel {
  padding: 26px;
}

.route-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 18px;
  align-items: stretch;
}

.route-form .route-section {
  grid-column: 1;
}

.route-form .route-section {
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

.route-form .route-section legend {
  float: left;
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 850;
}

.route-form .route-section legend + p {
  clear: both;
}

.route-form .route-section p,
.route-form .route-section small {
  margin: 0;
  color: #536179;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.route-two-column,
.route-three-column {
  display: grid;
  gap: 28px;
}

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

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

.route-form .route-section label {
  display: grid;
  gap: 8px;
  color: #243044;
  font-size: 14px;
  font-weight: 850;
}

.route-form .route-section input,
.route-form .route-section select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #b9c7d6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 10px 14px;
}

.route-form .route-section input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: #1473e6;
  padding: 0;
}

.route-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  min-height: 24px;
}

.route-half-width {
  max-width: calc(50% - 14px);
}

.route-field-display strong {
  min-height: 50px;
  border: 1px solid #b9c7d6;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 650;
}

.route-add-destination {
  width: fit-content;
  border-color: var(--accent) !important;
  background: #ffffff !important;
  color: var(--accent) !important;
  font-weight: 900 !important;
}

.route-add-destination span {
  font-size: 18px;
  line-height: 1;
}

.route-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 2px -26px -26px;
  border-top: 1px solid var(--line);
  padding: 24px 26px;
  background: #ffffff;
}

.route-form-actions .action-button,
.route-form-actions button {
  min-width: 138px;
  min-height: 48px;
}

.route-form-actions .action-button {
  border-color: #b9c7d6;
}

.route-form-actions button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0 14px;
}

.route-back-button {
  min-height: 48px;
  gap: 8px;
}

.detail-grid strong {
  overflow-wrap: anywhere;
}

.step-editor {
  display: grid;
  gap: 8px;
}

.step-editor-header,
.step-editor-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.step-editor-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.warmup-builder {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.warmup-top-grid,
.warmup-limit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.warmup-field {
  display: grid;
  gap: 9px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.warmup-field.full {
  grid-column: 1 / -1;
}

.warmup-field input,
.warmup-field select,
.warmup-rule-line input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 9px 13px;
}

.warmup-rule-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.warmup-rule-line input {
  width: 78px;
  flex: 0 0 78px;
  text-align: center;
}

.warmup-preview {
  display: grid;
  justify-items: stretch;
  gap: 10px;
  padding-top: 6px;
}

.warmup-preview-table-wrap {
  width: 100%;
  max-height: 520px;
  margin-top: 0;
  overflow-x: visible;
}

.warmup-preview-table {
  min-width: 0;
  table-layout: fixed;
}

.warmup-preview-table th,
.warmup-preview-table td {
  text-align: center;
}

.warmup-preview-table input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 6px 8px;
  text-align: center;
}

.warmup-edit-row {
  cursor: text;
}

.warmup-builder button[type="submit"] {
  justify-self: start;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  padding: 0 14px;
}

.warmup-builder .secondary-button {
  min-height: 38px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-weight: 850;
  padding: 0 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.records-panel-header {
  align-items: flex-start;
}

.subsection-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.subsection-header h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.date-filter-form {
  display: flex;
  align-items: end;
  gap: 10px;
}

.date-filter-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.date-filter-form input {
  min-height: 38px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

.date-filter-form button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
  padding: 0 14px;
  cursor: pointer;
}

.date-filter-form .secondary-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e7f5f2;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.compact {
  min-height: 22px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11px;
}

.status-pill.neutral {
  background: #eef2f6;
  color: #475467;
}

.status-pill.warn {
  background: #fff7ed;
  color: var(--warn);
}

.status-pill.danger {
  background: #fef3f2;
  color: var(--danger);
}

.health-metrics .metric strong {
  font-size: 30px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.health-kv {
  display: grid;
  gap: 6px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.health-kv span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.health-kv strong {
  min-width: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.health-kv small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.health-table {
  min-width: 1120px;
}

.health-table .stream-subjects {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.pipeline-pressure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pipeline-pressure-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.pipeline-pressure-card-header {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pipeline-pressure-card-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.pipeline-pressure-card-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.pipeline-pressure-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.pipeline-pressure-metrics div {
  min-width: 0;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.pipeline-pressure-metrics span,
.pipeline-pressure-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.pipeline-pressure-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pipeline-pressure-details {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
}

.pipeline-pressure-details div {
  display: grid;
  grid-template-columns: minmax(88px, 45%) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.pipeline-pressure-details dt,
.pipeline-pressure-details dd {
  margin: 0;
}

.pipeline-pressure-details dd {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-align: right;
}

.pipeline-pressure-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.pipeline-pressure-table {
  min-width: 760px;
}

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

.jetstream-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.jetstream-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.jetstream-card-header {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.jetstream-card-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.jetstream-card-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.jetstream-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.jetstream-card-metrics div {
  min-width: 0;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.jetstream-card-metrics span,
.jetstream-card-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.jetstream-card-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.jetstream-card-details {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.jetstream-card-details div {
  display: grid;
  grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.jetstream-card-details dt,
.jetstream-card-details dd {
  margin: 0;
}

.jetstream-card-details dd {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #b8c4d2;
  border-radius: 8px;
  background: #ffffff;
}

.reporting-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-top: 18px;
}

.reporting-key-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.reporting-key-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reporting-key-card h3 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.reporting-key-card code {
  overflow-wrap: anywhere;
}

.reporting-key-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.reporting-key-metadata div {
  min-width: 0;
}

.reporting-key-metadata dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.reporting-key-metadata dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.reporting-key-card form,
.reporting-key-card button {
  width: 100%;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sources-table {
  min-width: 900px;
}

.source-summary-table {
  min-width: 760px;
}

.source-metrics-table {
  min-width: 1480px;
}

.domain-summary-table {
  min-width: 640px;
}

.hygiene-table {
  min-width: 1900px;
}

.delivery-overview-table {
  min-width: 2100px;
}

.throttle-capacity-panel {
  background: #f8fafc;
}

.throttle-capacity-list {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.throttle-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
  padding: 20px;
}

.throttle-card-header,
.throttle-metric-title,
.reconciliation-split,
.capacity-breakdown-row,
.adjustment-history-item {
  display: flex;
  align-items: center;
}

.throttle-card-header {
  justify-content: space-between;
  gap: 14px;
}

.throttle-card-header h3,
.throttle-overview h3,
.throttle-reconciliation h3 {
  margin: 0;
  color: #101828;
  font-size: 19px;
  line-height: 1.25;
}

.throttle-card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.throttle-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.throttle-metric,
.throttle-overview,
.throttle-reconciliation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.throttle-metric {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 18px;
}

.throttle-metric-title {
  gap: 10px;
  color: #101828;
  font-size: 15px;
}

.throttle-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.throttle-icon-blue {
  background: #e8f0ff;
  color: #1264e8;
}

.throttle-icon-green {
  background: #e6f7f1;
  color: #057a55;
}

.throttle-icon-purple {
  background: #eeeafe;
  color: #513be0;
}

.throttle-triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.throttle-triplet span,
.reconciliation-split span {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.throttle-triplet small,
.reconciliation-split small,
.throttle-overview-box span,
.current-reconciliation span {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.throttle-triplet strong,
.reconciliation-split strong {
  color: #101828;
  font-size: 21px;
  line-height: 1.1;
  overflow-wrap: normal;
  white-space: nowrap;
}

.throttle-triplet .blue,
.capacity-breakdown-row b {
  color: #1264e8;
}

.throttle-triplet .green,
.reconciliation-split .green,
.current-reconciliation strong {
  color: #047857;
}

.capacity-bar {
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  gap: 3px;
}

.capacity-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.capacity-bar-fill.used {
  width: calc(var(--used, 0) * 1%);
  background: #1264e8;
}

.capacity-bar-fill.left {
  width: calc(var(--left, 0) * 1%);
  background: #20b86f;
}

.capacity-bar-fill.remaining {
  flex: 1 1 auto;
  min-width: 22px;
  background: #d9dee7;
}

.reconciliation-summary {
  background: #fbfdff;
}

.reconciliation-split {
  justify-content: space-between;
  gap: 18px;
}

.reconciliation-split span + span {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.reconciliation-split em,
.current-reconciliation em {
  width: fit-content;
  border-radius: 999px;
  background: #d9f2e7;
  color: #0f6b51;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 10px;
}

.throttle-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 18px;
}

.throttle-overview,
.throttle-reconciliation {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.throttle-overview-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.throttle-overview-box div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.throttle-overview-box div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.throttle-overview-box div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.throttle-overview-box strong {
  color: #101828;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.throttle-overview h4,
.adjustment-history h4 {
  margin: 0;
  color: #101828;
  font-size: 15px;
}

.capacity-breakdown {
  display: grid;
  gap: 14px;
}

.capacity-breakdown-row {
  display: grid;
  grid-template-columns: 80px minmax(150px, 1fr) repeat(3, max-content);
  gap: 12px;
  min-width: 0;
  color: #667085;
  font-size: 12px;
}

.capacity-breakdown-row span {
  white-space: nowrap;
}

.current-reconciliation {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  border: 1px solid #cde8df;
  border-radius: 8px;
  background: #effaf6;
  padding: 16px;
}

.current-reconciliation strong {
  grid-column: 1;
  font-size: 27px;
  line-height: 1;
}

.current-reconciliation em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.throttle-reconciliation-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.throttle-reconciliation-form label {
  display: grid;
  gap: 8px;
  color: #101828;
  font-size: 13px;
  font-weight: 750;
}

.throttle-reconciliation-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.throttle-reconciliation-form button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.adjustment-history {
  display: grid;
  gap: 14px;
}

.adjustment-history-item {
  position: relative;
  align-items: flex-start;
  gap: 14px;
  padding-left: 18px;
}

.adjustment-history-item::before {
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: -16px;
  width: 1px;
  background: var(--line);
  content: "";
}

.adjustment-history-item:last-child::before {
  display: none;
}

.history-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #10a36d;
}

.adjustment-history-item div {
  flex: 1 1 auto;
  min-width: 0;
}

.adjustment-history-item strong {
  color: #047857;
  font-size: 16px;
}

.adjustment-history-item p {
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.adjustment-history-item .secondary-button {
  min-height: 34px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: #101828;
  font: inherit;
  font-weight: 850;
  padding: 0 14px;
  cursor: pointer;
}

@media (min-width: 1680px) {
  .throttle-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hygiene-table th,
.hygiene-table td {
  text-align: right;
}

.hygiene-table th:nth-child(1),
.hygiene-table td:nth-child(1),
.hygiene-table th:nth-child(2),
.hygiene-table td:nth-child(2) {
  text-align: left;
}

.page-tabs {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  border-bottom: 1px solid #b8c4d2;
}

.page-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border-bottom: 1px solid #b8c4d2;
}

.page-tabs-row .page-tabs {
  border-bottom: 0;
  margin-top: 0;
  margin-bottom: -1px;
}

.panel-action-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.page-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: #475467;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.page-tab:hover {
  color: var(--accent-strong);
}

.page-tab.active {
  border-color: #b8c4d2;
  background: #ffffff;
  color: var(--accent-strong);
  margin-bottom: -1px;
}

.destination-tab-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 8px;
}

.destination-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.destination-search-form input[type="search"] {
  width: min(280px, 32vw);
  min-height: 38px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

.modal-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid #b8c4d2;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
  padding: 0;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.modal-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.modal-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

.form-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  margin: 0 0 2px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.modal-form .form-fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.modal-form .form-fieldset input {
  width: auto;
  min-height: 0;
  padding: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions button[type="submit"] {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
  padding: 0 14px;
  cursor: pointer;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #e9eef5;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.table-link {
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.data-table td {
  color: #344054;
  font-size: 14px;
  line-height: 1.35;
}

.data-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.data-table tbody tr:hover td {
  background: #eef8f6;
}

.num {
  text-align: right;
}

.records-table th:nth-child(1),
.records-table td:nth-child(1) {
  width: 96px;
}

.records-table th:nth-child(2),
.records-table td:nth-child(2),
.records-table th:nth-child(3),
.records-table td:nth-child(3) {
  width: 140px;
}

.records-table th:nth-child(4),
.records-table td:nth-child(4),
.records-table th:nth-child(5),
.records-table td:nth-child(5) {
  width: 210px;
}

.records-table th:nth-child(6),
.records-table td:nth-child(6),
.records-table th:nth-child(7),
.records-table td:nth-child(7),
.records-table th:nth-child(8),
.records-table td:nth-child(8) {
  width: 112px;
}

.records-table th:nth-child(9),
.records-table td:nth-child(9) {
  width: 190px;
}

.sources-table th:nth-child(1),
.sources-table td:nth-child(1),
.sources-table th:nth-child(2),
.sources-table td:nth-child(2) {
  width: 180px;
}

.sources-table th:nth-child(3),
.sources-table td:nth-child(3),
.sources-table th:nth-child(4),
.sources-table td:nth-child(4),
.sources-table th:nth-child(5),
.sources-table td:nth-child(5) {
  width: 130px;
}

.sources-table th:nth-child(6),
.sources-table td:nth-child(6) {
  width: 110px;
}

.source-fields-table {
  min-width: 820px;
}

.source-imports-table {
  min-width: 1320px;
}

.source-import-rows-table {
  min-width: 1680px;
}

.source-fields-table th:nth-child(1),
.source-fields-table td:nth-child(1) {
  width: 280px;
}

.source-fields-table th:nth-child(2),
.source-fields-table td:nth-child(2) {
  width: 150px;
}

.source-fields-table th:nth-child(3),
.source-fields-table td:nth-child(3),
.source-fields-table th:nth-child(4),
.source-fields-table td:nth-child(4) {
  width: 190px;
}

.cell-main {
  color: var(--text);
  font-weight: 750;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timestamp {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

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

.token {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  background: #f8fafc;
  color: #253142;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pipeline li {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: #344054;
  font-weight: 800;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 16px;
  }

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

  .sidebar-account {
    margin-top: 18px;
  }

  .main {
    padding: 20px 16px;
  }

  .topbar {
    display: grid;
  }

  .records-panel-header,
  .date-filter-form {
    display: grid;
    justify-content: stretch;
  }

  .page-tabs-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .page-tabs-row .page-tabs {
    overflow-x: auto;
  }

  .destination-tab-actions,
  .destination-search-form {
    justify-content: stretch;
  }

  .destination-search-form {
    flex: 1;
  }

  .destination-search-form input[type="search"] {
    width: 100%;
  }

  .warmup-top-grid,
  .warmup-limit-grid,
  .route-two-column,
  .route-three-column,
  .inline-field-grid {
    grid-template-columns: 1fr;
  }

  .route-form-panel {
    padding: 20px;
  }

  .route-form .route-section {
    padding: 18px;
  }

  .route-half-width {
    max-width: none;
  }

  .route-form-actions {
    margin: 0 -20px -20px;
    padding: 18px 20px;
  }

  .metric-grid,
  .hygiene-metric-grid,
  .dashboard-ops-grid,
  .health-grid,
  .pipeline-pressure-grid,
  .jetstream-grid,
  .throttle-metric-grid,
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-pressure-split {
    grid-template-columns: 1fr;
  }

  .throttle-detail-grid {
    grid-template-columns: 1fr;
  }

  .capacity-breakdown-row {
    grid-template-columns: 72px minmax(120px, 1fr);
  }

  .capacity-breakdown-row span {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .destination-tab-actions,
  .destination-search-form {
    display: grid;
  }

  .destination-tab-actions .action-button {
    width: 100%;
  }

  .route-form-actions {
    display: grid;
  }

  .route-form-actions .action-button,
  .route-form-actions button {
    width: 100%;
  }

  .nav,
  .metric-grid,
  .hygiene-metric-grid,
  .dashboard-ops-grid,
  .health-grid,
  .pipeline-pressure-grid,
  .worker-role-grid,
  .jetstream-grid,
  .throttle-metric-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .throttle-card {
    padding: 16px;
  }

  .throttle-card-header,
  .reconciliation-split {
    align-items: flex-start;
    flex-direction: column;
  }

  .reconciliation-split span + span {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .throttle-overview,
  .throttle-reconciliation {
    padding: 16px;
  }

  .throttle-overview-box,
  .throttle-reconciliation-form {
    grid-template-columns: 1fr;
  }

  .throttle-overview-box div,
  .throttle-overview-box div:nth-child(odd),
  .throttle-overview-box div:nth-child(n + 3) {
    border: 0;
    border-top: 1px solid var(--line);
  }

  .throttle-overview-box div:first-child {
    border-top: 0;
  }

  .capacity-breakdown-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }
}
