/* Shared page rhythm and touch targets across the existing portal. */
body {
  line-height: 1.5;
}
h1 {
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -0.7px;
}
.page-title {
  align-items: flex-start;
  gap: 18px;
}
.page-title p {
  line-height: 1.7;
}
.panel,
.ticket-card,
.site-card,
.crew-card,
.shiftbar,
.time-widget,
.modal {
  border-radius: 12px;
}
.panel-heading {
  border-radius: 12px 12px 0 0;
}
.panel-heading h2 {
  font-size: 16px;
  line-height: 1.45;
}
.stats {
  gap: 14px;
}
.stats > div {
  border-radius: 10px;
}
.stats span,
.stats small {
  line-height: 1.5;
}
.sidebar nav button,
#ops-inbox-link {
  min-height: 44px;
}
#ops-inbox-link {
  background: transparent;
  border: 1px solid transparent;
  color: #b6cbd9;
  justify-content: flex-start;
  text-align: left;
  padding: 13px 14px;
  gap: 13px;
  width: 100%;
  font-size: 13px;
}
#ops-inbox-link:hover {
  background: #102637;
  color: #fff;
}
.topbar {
  gap: 16px;
}
.topbar .top-actions {
  gap: 10px;
}
.ticket-card,
.site-card {
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.toolbar {
  row-gap: 12px;
}
.toolbar input,
.toolbar select {
  min-height: 44px;
}
.ops-workspace .toolbar input,
.ops-workspace .toolbar select {
  min-height: 44px;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
table th,
table td {
  line-height: 1.6;
}
.drawer-body,
.modal {
  scrollbar-gutter: stable;
}
.drawer-heading h2,
.modal-heading h2 {
  line-height: 1.45;
}
.drawer-tabs button,
.ops-workspace .ops-tabs button,
.site-map-tabs button {
  min-height: 44px;
}
.evidence-panel figure,
.closeout-review figure {
  overflow: hidden;
}
.nab-auth-content h1 {
  margin-bottom: 14px;
}
.nab-auth-content form {
  margin: 24px 0 18px;
}
.nab-auth-content label {
  line-height: 1.6;
}
.nab-account-footer {
  border-top: 1px solid var(--dark-line, #304354);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--dark-muted, #adbfce);
}
.nab-account-footer span {
  display: block;
}
.nab-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  transform: translateY(-180%);
  background: #163e59;
  color: #fff;
  border: 2px solid #79cfff;
  border-radius: 6px;
  font-size: 13px;
}
.nab-skip:focus {
  transform: translateY(0);
}
.account-secret {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}
.nab-auth-content .account-secret input {
  margin-top: 0;
  min-width: 0;
}
.nab-auth-content .account-secret-toggle {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  min-height: 46px;
  font-size: 12px;
}
.nab-auth-content form[aria-busy="true"] {
  cursor: progress;
}
.leaflet-control-layers-toggle {
  background-image: url(map-layer.svg);
}
.leaflet-retina .leaflet-control-layers-toggle {
  background-image: url(map-layer.svg);
  background-size: 26px 26px;
}
@media (max-width: 1100px) {
  .topbar .private-label {
    display: none;
  }
  .topbar .account-security-link {
    font-size: 10px;
    padding: 8px;
  }
}
@media (max-width: 850px) {
  .topbar .top-actions {
    gap: 5px;
  }
  .page-title {
    gap: 14px;
  }
  .topbar {
    gap: 8px;
  }
  .panel-heading {
    padding: 18px;
  }
  .ops-workspace .ops-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .drawer-heading,
  .modal-heading {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .page-title {
    flex-wrap: wrap;
  }
  .page-title > button {
    min-height: 44px;
  }
  .stats {
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .shiftbar {
    padding: 16px;
  }
  .shift-actions {
    flex-wrap: wrap;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar .search {
    min-width: 0;
    width: 100%;
  }
  .nab-auth-content {
    padding: 26px 22px;
  }
  .nab-account-footer {
    margin-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-card,
  .site-card {
    transition: none;
  }
}

.badge,
.carrier-badge,
.ticket-row > .badge {
  font-size: 11px;
  line-height: 1.4;
}
button.small {
  min-height: 40px;
}
button.icon-button {
  min-width: 40px;
  min-height: 40px;
}
@media (max-width: 650px) {
  button.small,
  button.text-button {
    min-height: 44px;
  }
  .leaflet-touch .leaflet-bar a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}
