/* Readability pass: larger type, stronger secondary contrast, comfortable table density */

:root {
  --ink-3: #66717f;
  --ink-4: #8994a2;
  --line: #e2e8ef;
  --line-strong: #d2dce5;
}

html {
  font-size: 16px;
}

body {
  color: #263445;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}

/* Header */
.topbar-brand-copy strong {
  font-size: 21px;
}

.topbar-brand-copy small {
  font-size: 8.5px;
}

.breadcrumb {
  font-size: 12px;
}

.breadcrumb strong {
  font-size: 13px;
}

.sync-chip {
  height: 29px;
  font-size: 11px;
}

.date-chip {
  font-size: 11px;
}

.profile-copy strong {
  font-size: 12.5px;
}

.profile-copy small {
  font-size: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
}

/* Page heading */
.eyebrow {
  font-size: 11px;
}

.page-head h1 {
  font-size: 33px;
}

.page-head p {
  font-size: 13.5px;
  line-height: 1.8;
}

.btn {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.sm {
  height: 33px;
  font-size: 12.5px;
}

.text-btn {
  font-size: 12px;
}

/* KPI */
.kpi-card {
  min-height: 140px;
  padding: 19px 21px;
}

.kpi-label {
  font-size: 12px;
}

.kpi-value {
  font-size: 32px;
}

.kpi-value .unit {
  font-size: 12px;
}

.kpi-foot {
  font-size: 11px;
}

.kpi-trend {
  font-size: 10.5px;
}

/* Cards */
.card-head h2 {
  font-size: 19px;
}

.card-head p {
  font-size: 12px;
}

.card-chip {
  padding: 4px 8px;
  font-size: 11px;
}

.chart-summary {
  font-size: 11px;
}

.chart-summary strong {
  font-size: 12px;
}

.chart-axis-label,
.chart-month {
  font-size: 10.5px;
}

.chart-footer span {
  font-size: 10.5px;
}

.chart-footer strong {
  font-size: 19px;
}

.chart-legend {
  font-size: 10px;
}

/* Attention / todos / activity */
.attention-copy strong {
  font-size: 13px;
}

.attention-copy span {
  font-size: 11.5px;
}

.attention-action {
  height: 32px;
  font-size: 11.5px;
}

.todo-copy strong {
  font-size: 13px;
}

.todo-copy small {
  font-size: 11px;
}

.todo-due {
  font-size: 10px;
}

.todo-due small {
  font-size: 8.5px;
}

.todo-empty strong {
  font-size: 18px;
}

.todo-empty span {
  font-size: 10.5px;
}

.activity-copy strong {
  font-size: 12px;
}

.activity-copy p,
.activity-label {
  font-size: 11px;
}

.activity-item time,
.activity-foot {
  font-size: 10px;
}

.fleet-row {
  font-size: 11.5px;
}

.fleet-row small {
  font-size: 9.5px;
}

.fleet-note {
  font-size: 10.5px;
}

.utilization-head {
  font-size: 10.5px;
}

.utilization p {
  font-size: 9.5px;
}

/* Lists */
.search-box {
  height: 38px;
}

.search-box input {
  font-size: 13px;
}

.search-box kbd {
  font-size: 8.5px;
}

.filter-tab {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.tab-count {
  min-width: 16px;
  height: 16px;
  font-size: 9.5px;
}

.select-wrap {
  height: 34px;
}

.select-wrap select {
  font-size: 11.5px;
}

.sort-hint {
  font-size: 10.5px;
}

.data-table th {
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.entity-cell strong,
.person-cell strong,
.stack-cell strong {
  font-size: 13px;
}

.entity-cell small,
.person-cell small,
.stack-cell small {
  font-size: 10.5px;
}

.person-compact strong {
  font-size: 12px;
}

.subtle-pill {
  font-size: 9px;
}

.doc-stack {
  font-size: 11.5px;
}

.doc-stack small {
  font-size: 10px;
}

.score em {
  font-size: 12px;
}

.score small {
  font-size: 9px;
}

.date-cell strong {
  font-size: 11px;
}

.date-cell small {
  font-size: 9.5px;
}

.type-cell strong {
  font-size: 11.5px;
}

.type-cell small {
  font-size: 9.5px;
}

.amount {
  font-size: 12.5px;
}

.record-type {
  font-size: 9px;
}

.muted-text {
  font-size: 10.5px;
}

.status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

.row-readonly {
  font-size: 10px;
}

.pager-info {
  font-size: 10.5px;
}

.pager-btn {
  min-width: 29px;
  height: 29px;
  font-size: 10.5px;
}

.row-action {
  width: 29px;
  height: 29px;
}

.summary-card > span {
  font-size: 11px;
}

.summary-card strong {
  font-size: 24px;
}

.summary-card small {
  font-size: 9.5px;
}

.notice-strip strong {
  font-size: 12px;
}

.notice-strip span {
  font-size: 11px;
}

.empty-state h3 {
  font-size: 20px;
}

.empty-state p {
  font-size: 12px;
}

.empty-readonly {
  font-size: 11px;
}

/* Forms and modals */
.modal-head h2 {
  font-size: 24px;
}

.modal-head p {
  font-size: 12px;
}

.form-field > label {
  font-size: 12px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-size: 14px;
}

.form-field input,
.form-field select {
  height: 44px;
}

.field-help {
  font-size: 10px;
}

.form-error {
  font-size: 11.5px;
}

/* Settings */
.settings-stat > div > span {
  font-size: 11px;
}

.settings-stat strong {
  font-size: 28px;
}

.sync-copy strong {
  font-size: 18px;
}

.sync-copy p {
  font-size: 11px;
}

.info-rows span,
.info-rows strong {
  font-size: 11px;
}

.permission-row {
  min-height: 37px;
  font-size: 11.5px;
}

.permission-head {
  font-size: 10.5px;
}

.role-pill {
  font-size: 10px;
}

.account-status {
  font-size: 10.5px;
}

.system-note {
  font-size: 10px;
}

/* Left navigation */
.sidebar .brand-copy strong {
  font-size: 21px;
}

.sidebar .brand-copy small {
  font-size: 9px;
}

.sidebar .nav-label {
  font-size: 10px;
}

.sidebar .nav-item {
  height: 42px;
  font-size: 14px;
}

.sidebar .nav-badge {
  min-width: 17px;
  height: 17px;
  font-size: 9px;
}

.sidebar .sidebar-note {
  font-size: 10px;
}

.sidebar .sidebar-version {
  font-size: 9px;
}

/* Login */
.login-copy p {
  font-size: 14px;
}

.visual-card-head {
  font-size: 11px;
}

.visual-stats span {
  font-size: 11px;
}

.visual-card-foot {
  font-size: 10px;
}

.login-tag {
  font-size: 11px;
}

.login-form-wrap h2 {
  font-size: 32px;
}

.login-sub {
  font-size: 13px;
}

.login-field > span {
  font-size: 12px;
}

.login-input {
  height: 48px;
}

.login-input input {
  font-size: 14px;
}

.login-submit {
  height: 48px;
  font-size: 15px;
}

.login-meta,
.login-panel-foot {
  font-size: 11px;
}

/* Mobile */
.mobile-nav em {
  font-size: 10px;
}

@media (max-width: 1080px) {
  .sidebar .nav-item {
    height: 44px;
    font-size: 15px;
  }

  .sidebar .nav-label {
    font-size: 10.5px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .page-head h1 {
    font-size: 29px;
  }

  .page-head p {
    font-size: 13px;
  }

  .kpi-value {
    font-size: 28px;
  }

  .kpi-label {
    font-size: 11.5px;
  }

  .kpi-foot {
    font-size: 10.5px;
  }

  .card-head h2 {
    font-size: 18px;
  }

  .card-head p {
    font-size: 11.5px;
  }

  .filter-tab {
    font-size: 11.5px;
  }

  .search-box input {
    font-size: 13px;
  }

  .mobile-title strong {
    font-size: 13.5px;
  }

  .mobile-meta {
    font-size: 11px;
  }

  .login-form-wrap h2 {
    font-size: 30px;
  }
}
