:root {
  --ui-font-v351: "Segoe UI", Arial, Helvetica, sans-serif;
  --ui-ink-v351: #102037;
  --ui-muted-v351: #607087;
  --ui-line-v351: #d5dee8;
  --ui-card-v351: #ffffff;
  --ui-red-v351: #a1262b;
  --ui-radius-v351: 8px;
}

/* v351: one deliberate type scale for every authenticated workspace. */
body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) {
  color: var(--ui-ink-v351) !important;
  font-family: var(--ui-font-v351) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(h1, h2, h3, h4, p, span, small, strong, b, a, button, input, select, textarea, th, td, label) {
  font-family: inherit !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(h1, h2, h3, h4, .eyebrow, .section-eyebrow, button, .btn, th) {
  letter-spacing: 0 !important;
}

/* Shell typography follows the supplied command-center reference. */
@media (min-width: 901px) {
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    #platformSidebar .brand-subtitle {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    #platformSidebar .brand-tag {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    #platformSidebar .nav-module-v294 > summary span {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    #platformSidebar .nav-module-v294 > summary small {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    #platformSidebar .nav-module-body-v294 .nav-link {
    min-height: 41px !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    .ops-topbar-brand-v291 small {
    font-size: 9px !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    .ops-topbar-brand-v291 strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    .ops-command-v291 input {
    font-size: 13px !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    .ops-tabs-v291 a {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    .ops-weather-copy-v342 span,
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    .ops-weather-copy-v342 strong {
    font-size: 10px !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    .ops-weather-copy-v342 small {
    font-size: 9px !important;
  }
}

/* Common modules: no random 34px titles beside 10px controls. */
body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.module-header h1, .lab-hero h1, .reports-hero-v36 h1, .system-health-hero-v298 h1,
    .stuffing-command-head-v295 h1, .stuffing-booking-title-v295 h1,
    .stuffing-workspace-v295 h1, .stuffing-label-page-v301 h1) {
  margin-block: 4px 6px !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.module-header p, .lab-hero p, .reports-hero-v36 p, .system-health-hero-v298 p,
    .stuffing-command-head-v295 p, .stuffing-booking-title-v295 p,
    .stuffing-workspace-v295 p, .stuffing-label-page-v301 p) {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.software-panel h2, .card h2, .stuffing-panel-v295 h2, .lab-card-v298 h2,
    .nc-panel-v298 h2, .cov-panel-v293 h2) {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.software-panel p, .card p, .stuffing-panel-v295 p, .lab-card-v298 p,
    .nc-panel-v298 p, .cov-panel-v293 p) {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.eyebrow, .section-eyebrow, .cc-panel-v291 header span, .module-header .eyebrow) {
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.card, .software-panel, .stuffing-panel-v295, .lab-card-v298, .system-health-card-v298,
    .nc-panel-v298, .cov-panel-v293, .cc-panel-v291, .filter-bar, .module-header) {
  border-radius: var(--ui-radius-v351) !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 40px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.btn, .btn-primary, .btn-secondary, button:not(.maplibregl-ctrl button)) {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.table, .data-table, .lineup-table, .stuffing-table-v295 table, .cov-table-v293) th {
  height: 36px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
  :where(.table, .data-table, .lineup-table, .stuffing-table-v295 table, .cov-table-v293) td {
  min-height: 42px !important;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}

/* Command Center: type proportions from the approved screenshot. */
body.endpoint-main-dashboard .cc-hero-v291 h1 {
  max-width: 520px !important;
  font-size: 31px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

body.endpoint-main-dashboard .cc-hero-v291 p {
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body.endpoint-main-dashboard .cc-hero-actions-v297 a {
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

body.endpoint-main-dashboard .cc-kpi-copy-v297 small {
  font-size: 9px !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.endpoint-main-dashboard .cc-kpi-copy-v297 strong {
  max-width: 100% !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

body.endpoint-main-dashboard .cc-kpi-copy-v297 span {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

body.endpoint-main-dashboard .cc-panel-v291 h2 {
  font-size: 16px !important;
  font-weight: 800 !important;
}

body.endpoint-main-dashboard .cc-panel-v291 header a,
body.endpoint-main-dashboard .cc-panel-v291 header button {
  font-size: 11px !important;
}

body.endpoint-main-dashboard .cc-table-wrap-v291 th {
  font-size: 9.5px !important;
}

body.endpoint-main-dashboard .cc-table-wrap-v291 td {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

body.endpoint-main-dashboard .cc-ai-v291 a {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}

body.endpoint-main-dashboard .cc-weather-v291 #ccWeatherNow {
  font-size: 13px !important;
}

body.endpoint-main-dashboard .cc-weather-days-v291 article {
  font-size: 10px !important;
}

/* Operation Atlas keeps executive density without 6px or 7px interface copy. */
.atlas44-head h1 {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.atlas44-head p {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.atlas44-head-actions button,
.atlas44-toolbar :where(input, select, button),
.atlas44-rail-tabs button {
  font-size: 11px !important;
}

.atlas44-layer-controls button {
  min-width: 82px !important;
  padding-inline: 9px !important;
  font-size: 9.5px !important;
  white-space: nowrap !important;
}

.atlas44-layer-controls button span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.atlas44-kpis small {
  font-size: 9px !important;
  line-height: 1.15 !important;
}

.atlas44-kpis strong {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.atlas44-kpis em {
  font-size: 9px !important;
  line-height: 1.2 !important;
}

.atlas44-coverage-main b {
  font-size: 11px !important;
}

.atlas44-coverage-main small,
.atlas44-coverage dt {
  font-size: 9px !important;
}

.atlas44-coverage dd {
  font-size: 16px !important;
}

.atlas44-rail-tabs button {
  font-weight: 750 !important;
}

.atlas44-branch-list > button {
  min-height: 70px !important;
}

.atlas44-branch-list > button b {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.atlas44-branch-list > button small {
  font-size: 9px !important;
  line-height: 1.25 !important;
}

.atlas44-inspector > header h2,
.atlas44-decision-deck header h2 {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.atlas44-inspector > header span,
.atlas44-decision-deck header span,
.atlas44-decision-deck header em {
  font-size: 9px !important;
}

.atlas44-inspector > p,
.atlas44-finance p,
.atlas44-selection p,
.atlas44-weather p,
.atlas44-service-mix p {
  font-size: 10px !important;
  line-height: 1.4 !important;
}

.atlas44-inspector-metrics small,
.atlas44-finance small,
.atlas44-selection small,
.atlas44-weather small,
.atlas44-data-readiness small {
  font-size: 8.5px !important;
}

.atlas44-inspector-metrics b,
.atlas44-finance b,
.atlas44-selection b,
.atlas44-weather b,
.atlas44-data-readiness b {
  font-size: 11px !important;
}

.atlas44-service-mix b,
.atlas44-service-mix em,
.atlas44-network-table th {
  font-size: 9px !important;
}

.atlas44-network-table td {
  font-size: 10.5px !important;
}

.atlas44-branch-marker b,
.atlas44-operation-marker.stuffing b {
  font-size: 8px !important;
}

.atlas44-branch-marker small,
.atlas44-operation-marker.stuffing small {
  font-size: 7px !important;
}

/* Stuffing workspaces use the same scale as Operations and Laboratory. */
.stuffing-command-kpis-v295 span > span,
.stuffing-command-kpis-v295 a span:not(:has(b)) {
  font-size: 9.5px !important;
}

.stuffing-command-kpis-v295 b {
  font-size: 24px !important;
  line-height: 1 !important;
}

.stuffing-command-kpis-v295 small {
  font-size: 11px !important;
}

.stuffing-command-main-v295 > header h2,
.stuffing-command-side-v295 h2,
.stuffing-panel-v295 > header h2 {
  font-size: 17px !important;
}

.stuffing-command-main-v295 > header p,
.stuffing-command-side-v295 p,
.stuffing-panel-v295 > header p {
  font-size: 12px !important;
}

.stuffing-command-table-v295 .head {
  font-size: 9.5px !important;
}

.stuffing-command-table-v295 .row {
  font-size: 12px !important;
}

.stuffing-command-table-v295 .row b {
  font-size: 12.5px !important;
}

.stuffing-command-table-v295 .row small {
  font-size: 10.5px !important;
}

.stuffing-workspace-nav-v295 a {
  min-height: 46px !important;
  font-size: 12px !important;
}

.stuffing-booking-strip-v295 span {
  font-size: 9.5px !important;
}

.stuffing-booking-strip-v295 b {
  font-size: 14px !important;
}

.stuffing-form-v295 label,
.stuffing-report-options-v302 label {
  font-size: 10.5px !important;
}

.stuffing-form-v295 input,
.stuffing-form-v295 select,
.stuffing-form-v295 textarea,
.stuffing-report-options-v302 select,
.stuffing-report-options-v302 button {
  font-size: 13px !important;
}

/* Mobile keeps readable 16px data entry while reducing surrounding chrome. */
@media (max-width: 900px) {
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) {
    font-size: 14px !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    :where(.module-header h1, .lab-hero h1, .reports-hero-v36 h1, .system-health-hero-v298 h1,
      .stuffing-command-head-v295 h1, .stuffing-booking-title-v295 h1, .stuffing-workspace-v295 h1) {
    font-size: 24px !important;
  }

  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body)
    :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 46px !important;
    font-size: 16px !important;
  }

  .atlas44-head h1 {
    font-size: 24px !important;
  }

  .atlas44-kpis strong {
    font-size: 20px !important;
  }

  body.endpoint-main-dashboard .cc-hero-v291 h1 {
    font-size: 26px !important;
  }

  body.endpoint-main-dashboard .cc-hero-v291 p {
    font-size: 13px !important;
  }
}

@media print {
  body {
    font-family: Arial, Helvetica, sans-serif !important;
  }
}
