:root {
  --navy: #101b50;
  --muted: #52618f;
  --teal: #00b58f;
  --teal-dark: #007d69;
  --teal-soft: #dcfaf1;
  --border: #dfe7f3;
  --surface: #fff;
  --wash: #f5f8fd;
  --red: #c82742;
  --amber: #946000;
  --sidebar: 224px;
  font-family: Arial, "Segoe UI", sans-serif;
  color: var(--navy);
  background: #fbfcff;
  font-size: 13px;
}
.auth-panel {
  max-width: 480px;
}
.auth-panel .eyebrow {
  display: block;
  margin-top: 20px;
  letter-spacing: 0.5px;
}
.auth-panel h1 {
  font-size: 24px;
  line-height: 1.3;
}
.auth-panel h2 {
  font-size: 19px;
  line-height: 1.4;
}
.auth-help {
  color: var(--muted);
  line-height: 1.65;
}
.auth-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-panel input {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
  margin-bottom: 8px;
}
.auth-panel label {
  font-size: 13px;
  font-weight: 600;
}
.auth-panel button {
  min-height: 44px;
}
.auth-panel .primary {
  border: 0;
  color: white;
  background: var(--navy);
  font-size: 14px;
}
.auth-panel .primary:hover {
  background: #26386e;
}
.auth-panel .otp-input {
  text-align: center;
  font-size: 31px;
  letter-spacing: 14px;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  padding-inline-start: 22px;
  min-height: 62px;
}
.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
#auth-error {
  color: var(--red);
  background: #fff1f3;
  padding: 10px;
  border-radius: 6px;
  line-height: 1.6;
}
#expiration {
  color: var(--muted);
  font-size: 12px;
}
[dir="rtl"] {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
bdi {
  unicode-bidi: isolate;
}
.trend-section {
  margin: 12px 0;
}
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.trend-grid article {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.trend-grid svg {
  width: 100%;
  height: 95px;
  color: var(--teal-dark);
  display: block;
  margin: 8px 0;
}
.trend-grid small,
.trend-grid p {
  color: var(--muted);
  font-size: 11px;
}
.kpi strong bdi {
  direction: ltr;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
select,
input {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  min-height: 34px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  color: #5b6583;
  background: #edf1f7;
}
a {
  color: #245ad3;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:hover:not(:disabled) {
  background: #eef5ff;
}
input,
select {
  padding: 8px 10px;
}
input {
  min-width: 0;
}
button {
  padding: 6px 11px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #3267c8;
  outline-offset: 2px;
}
svg {
  width: 21px;
  height: 22px;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  inset-inline-start: 12px;
  padding: 12px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--sidebar);
  background: white;
  border-inline-end: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 4px 13px;
}
.brand img {
  object-fit: contain;
  max-width: 145px;
  height: 45px;
}
.icon-button {
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.identity > svg {
  color: #1965d9;
  background: #f0f6ff;
  width: 29px;
  height: 29px;
  padding: 5px;
}
.identity strong {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
}
.identity span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 38px;
  padding: 8px 10px;
  color: #263870;
  border-radius: 6px;
}
.sidebar nav a[aria-current] {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
}
.sidebar nav a:hover {
  background: var(--wash);
  text-decoration: none;
}
.platform-status {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px;
  font-size: 11px;
  color: var(--navy);
}
.platform-status strong,
.platform-status span {
  display: block;
}
.platform-status span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.platform-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #7c89a5;
  border-radius: 50%;
  margin-inline-end: 7px;
}
.workspace {
  margin-inline-start: var(--sidebar);
  min-width: 0;
}
.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8faff;
}
.global-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(450px, 45%);
  margin-inline-end: auto;
}
.global-search > span {
  position: absolute;
  inset-inline-start: 10px;
  color: #586a9f;
}
.global-search svg {
  width: 16px;
  height: 17px;
}
.global-search input {
  width: 100%;
  padding-inline: 33px 65px;
  background: white;
  font-size: 12px;
}
.global-search kbd {
  position: absolute;
  inset-inline-end: 7px;
  background: var(--wash);
  border: 1px solid var(--border);
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
}
.search-results {
  position: absolute;
  top: 40px;
  width: 100%;
  z-index: 35;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 12px 40px #10234b22;
  border-radius: 7px;
  padding: 6px;
  max-height: 420px;
  overflow: auto;
}
.search-results button {
  display: block;
  text-align: start;
  width: 100%;
  border: 0;
  padding: 10px;
}
.search-results small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.notification {
  position: relative;
  border: 0;
  background: transparent;
}
.notification b {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  font-size: 9px;
  background: var(--red);
  color: white;
  border-radius: 20px;
  min-width: 15px;
  padding: 2px;
}
.profile {
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: start;
  white-space: nowrap;
  font-size: 11px;
}
.profile small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.avatar {
  background: var(--teal-soft);
  border-radius: 50%;
  padding: 4px;
  color: var(--teal-dark);
}
#menu {
  display: none;
}
main {
  padding: 16px 18px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.page-title h1 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.page-title p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.title-controls {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}
.title-controls select,
.title-controls button {
  font-size: 11px;
}
.source-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #edf4ff;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 10px;
  line-height: 1.5;
}
.source-notice.demo {
  background: #effaf7;
  border-color: #b7e9da;
}
.source-notice strong {
  font-size: 10px;
  color: var(--teal-dark);
  white-space: nowrap;
}
.source-notice small {
  margin-inline-start: auto;
  max-width: 235px;
  color: var(--muted);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
  background: white;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.kpi-icon svg {
  width: 26px;
  height: 28px;
}
.kpi-icon.alert-icon {
  background: #ffeaee;
  color: var(--red);
}
.kpi > div {
  min-width: 0;
}
.kpi > div > span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  line-height: 1.4;
}
.kpi strong {
  font-size: 24px;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
}
.kpi small {
  font-size: 10px;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 10px;
}
.dashboard-main,
.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 10px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.card h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-head a {
  font-size: 10px;
  white-space: nowrap;
}
.section-subtitle {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
  padding-inline-start: 31px;
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.region-card {
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: block;
  text-align: start;
  min-width: 0;
}
.region-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.region-heading strong {
  font-size: 10px;
  flex: 1;
  line-height: 1.4;
}
.region-heading .badge {
  font-size: 8px;
}
.region-icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ebf2ff;
  color: #3166c9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.region-icon svg {
  width: 18px;
  height: 19px;
}
.region-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  margin: 8px 0;
}
.region-card dl {
  font-size: 10px;
  margin: 0;
}
.region-card dl > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eef2f8;
  padding: 7px 0;
  gap: 4px;
}
.region-card dl > div:last-child {
  border: 0;
}
.region-card dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.region-card dd {
  text-align: end;
  overflow-wrap: anywhere;
}
.badge {
  white-space: nowrap;
  display: inline-block;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.good {
  color: #006f50;
  background: #d8faed;
}
.bad {
  color: #a51732;
  background: #ffe6eb;
}
.warn {
  color: #865000;
  background: #fff0cb;
}
.neutral {
  color: #415378;
  background: #edf2f9;
}
.health-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.health-list button {
  border: 0;
  background: var(--wash);
  display: flex;
  gap: 7px;
  align-items: center;
  text-align: start;
  padding: 5px 7px;
  font-size: 10px;
}
.health-list button > span:first-child {
  margin-inline-end: auto;
  max-width: 125px;
}
.health-bars {
  display: flex;
  gap: 3px;
}
.health-bars i {
  width: 4px;
  height: 14px;
  background: var(--teal);
  border-radius: 2px;
}
.warning-bars i:nth-last-child(-n + 4) {
  background: #d89a24;
}
.unknown-bars i {
  background: #cad3e4;
}
.health-list .badge {
  font-size: 8px;
}
.alerts button {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 9px 3px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  text-align: start;
}
.alerts button:last-child {
  border: 0;
}
.alerts strong {
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
}
.alerts small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.alerts button > span:last-child {
  margin-inline-start: auto;
  text-align: end;
  max-width: 108px;
}
.severity {
  width: 8px;
  height: 8px;
  background: #eea31e;
  flex-shrink: 0;
  border-radius: 50%;
  margin-top: 4px;
}
.critical {
  background: #e34c62;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.quick-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  background: var(--wash);
  padding: 10px 3px;
  text-align: center;
  color: var(--navy);
  font-size: 9px;
}
.filters {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.filters input {
  width: 230px;
}
.filters input,
.filters select {
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
  border-radius: 5px;
  max-width: 100%;
}
table {
  min-width: 640px;
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: start;
}
th {
  background: #f0f5fc;
  padding: 7px 8px;
  color: #415883;
  font-weight: 600;
  text-align: start;
  white-space: nowrap;
}
td {
  padding: 4px 8px;
  border-bottom: 1px solid #edf2f9;
  max-width: 230px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
td:first-child {
  font-weight: 600;
}
td .badge {
  font-size: 9px;
}
td .text-button {
  font-size: 10px;
  padding: 0;
  min-height: 22px;
  border: 0;
  text-align: start;
  background: transparent;
  font-weight: 600;
}
.table-wrap .icon-button {
  padding: 0;
  vertical-align: middle;
  line-height: 1;
  font-size: 15px;
  min-width: 26px;
  min-height: 24px;
  border: 0;
}
@media (min-width: 1101px) {
  .fleet {
    position: relative;
  }
  .fleet > .card-head {
    min-height: 34px;
  }
  .fleet > .filters {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 80px;
    margin: 0;
    gap: 6px;
    max-width: calc(100% - 260px);
    flex-wrap: nowrap;
  }
  .fleet > .filters input {
    width: 145px;
  }
  .fleet > .filters select {
    max-width: 115px;
  }
}
.dashboard-bottom {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
}
.recent button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 8px 3px;
  width: 100%;
  text-align: start;
  font-size: 10px;
}
.recent button:last-child {
  border: 0;
}
.recent button > small,
.recent button > .badge:last-child {
  margin-inline-start: auto;
}
.recent strong {
  font-size: 10px;
  font-weight: 600;
}
.recent small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.rollout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rollout > div {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
}
.rollout small {
  color: var(--muted);
  font-size: 10px;
}
.rollout strong {
  display: block;
  font-size: 17px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.guard {
  padding: 10px 3px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.guard button {
  font-size: 10px;
  flex-shrink: 0;
}
.guard small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.pagination > span {
  margin-inline-end: auto;
  color: var(--muted);
  font-size: 11px;
}
.pagination button {
  font-size: 11px;
}
.empty {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
  padding: 14px;
}
.empty strong {
  font-size: 12px;
}
.empty span {
  font-size: 11px;
}
.empty svg {
  color: #8296b5;
}
.loading {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.skeleton {
  width: 70%;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3fa, #f9fcff, #eef3fa);
  background-size: 200%;
  animation: shimmer 1.5s infinite;
}
.error {
  padding: 20px;
}
.error a {
  margin-inline-start: 14px;
}
.startup {
  padding: 40px;
}
.login {
  max-width: 560px;
  margin: 10vh auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  line-height: 1.8;
}
.login h1 {
  font-size: 26px;
}
.login h2 {
  font-size: 20px;
}
.primary {
  display: inline-block;
  background: var(--navy);
  color: white;
  border-radius: 6px;
  padding: 8px 14px;
}
.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.source-list article {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 7px;
}
.source-list strong {
  display: block;
  margin-bottom: 7px;
}
.source-list p,
.source-list small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.security-summary {
  margin-bottom: 12px;
}
.security-summary dl > div,
dialog dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.security-summary dt,
dialog dt {
  color: var(--muted);
}
.alert-detail {
  display: block;
  text-align: start;
  width: 100%;
  margin: 7px 0;
  padding: 10px;
}
dialog {
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: min(680px, 92vw);
  padding: 24px;
  max-height: 88vh;
  overflow: auto;
}
dialog::backdrop {
  background: #12244d55;
}
dialog #close-detail {
  float: inline-end;
}
dialog h2 {
  font-size: 22px;
  margin-top: 12px;
}
dialog dd {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  color: var(--teal-dark);
  font-weight: 700;
}
footer {
  padding: 15px 20px;
  color: var(--muted);
  font-size: 10px;
}
.sidebar-collapsed {
  --sidebar: 74px;
}
.sidebar-collapsed .brand img,
.sidebar-collapsed .identity,
.sidebar-collapsed .sidebar nav span,
.sidebar-collapsed .platform-status {
  display: none;
}
.sidebar-collapsed .sidebar nav {
  margin-top: 20px;
}
.sidebar-collapsed .sidebar nav a {
  justify-content: center;
}
.sidebar-collapsed .brand {
  justify-content: center;
}
.sidebar-collapsed #menu {
  display: inline-flex;
}
@keyframes shimmer {
  to {
    background-position: -200%;
  }
}
@media (min-width: 1600px) {
  main {
    padding: 18px;
  }
  .kpi {
    padding: 18px 14px;
  }
  .region-card {
    padding: 12px;
  }
  .region-card p {
    font-size: 11px;
  }
  .region-card dl {
    font-size: 11px;
  }
  table {
    font-size: 11px;
  }
  td {
    padding: 7px 9px;
  }
  .regions-grid {
    gap: 9px;
  }
}
@media (max-width: 1300px) {
  :root {
    --sidebar: 205px;
  }
  .kpi {
    gap: 8px;
    padding: 12px 9px;
  }
  .kpi-icon {
    width: 35px;
    height: 35px;
  }
  .kpi-icon svg {
    width: 22px;
    height: 23px;
  }
  .kpi strong {
    font-size: 21px;
  }
  .kpi small {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 2.8fr) minmax(260px, 1fr);
  }
  .region-heading .badge {
    font-size: 7px;
  }
  .region-card p {
    font-size: 9px;
  }
  .region-card dl {
    font-size: 9px;
  }
  .health-bars {
    gap: 2px;
  }
  .health-bars i {
    width: 3px;
  }
  .topbar {
    gap: 10px;
  }
  .profile {
    font-size: 10px;
  }
  .global-search {
    width: 38%;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .page-title p {
    max-width: 430px;
    line-height: 1.5;
  }
  .guard {
    flex-wrap: wrap;
  }
}
@media (max-width: 1100px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-side > .card:last-child {
    grid-column: 1/-1;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-bottom > .card:last-child {
    grid-column: 1/-1;
  }
  .profile > span:not(.avatar) {
    display: none;
  }
  .source-notice {
    flex-wrap: wrap;
  }
  .source-notice small {
    margin-inline-start: 0;
  }
  .page-title {
    align-items: flex-start;
  }
  .title-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .source-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 850px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 224px;
    transform: translateX(-105%);
    box-shadow: 4px 0 30px #10244f22;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  [dir="rtl"] .sidebar {
    transform: translateX(105%);
  }
  [dir="rtl"] .sidebar.open {
    transform: none;
  }
  #menu {
    display: inline-flex;
  }
  .global-search {
    width: auto;
    flex: 1;
  }
  .topbar {
    padding: 10px 12px;
    gap: 10px;
  }
  .regions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .region-heading .badge {
    font-size: 9px;
  }
  .region-card dl {
    font-size: 11px;
  }
  .region-card p {
    font-size: 11px;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .page-title p {
    font-size: 11px;
  }
  .kpi small {
    font-size: 10px;
  }
  .sidebar-collapsed {
    --sidebar: 0px;
  }
  .sidebar-collapsed .sidebar {
    width: 224px;
  }
  .sidebar-collapsed .brand img,
  .sidebar-collapsed .identity,
  .sidebar-collapsed .sidebar nav span,
  .sidebar-collapsed .platform-status {
    display: revert;
  }
  .sidebar-collapsed .sidebar nav a {
    justify-content: flex-start;
  }
}
@media (max-width: 550px) {
  main {
    padding: 12px;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .global-search {
    min-width: calc(100% - 50px);
    order: 1;
  }
  .global-search input {
    min-height: 40px;
  }
  .topbar #menu {
    order: 0;
  }
  .topbar > select {
    order: 2;
    margin-inline-start: 44px;
    flex: 1;
  }
  .notification {
    order: 3;
  }
  .profile {
    order: 4;
  }
  .page-title {
    display: block;
  }
  .title-controls {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .source-notice {
    gap: 5px;
    padding: 8px;
    font-size: 10px;
  }
  .source-notice strong {
    white-space: normal;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi:last-child {
    grid-column: 1/-1;
  }
  .kpi {
    min-height: 90px;
  }
  .dashboard-side,
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .dashboard-bottom > .card:last-child,
  .dashboard-side > .card:last-child {
    grid-column: auto;
  }
  .regions-grid {
    grid-template-columns: 1fr 1fr;
  }
  .region-card {
    padding: 8px;
  }
  .region-heading strong {
    font-size: 11px;
  }
  .region-heading {
    gap: 5px;
  }
  .region-icon {
    display: none;
  }
  .region-card dl > div {
    flex-wrap: wrap;
  }
  .region-card dd {
    font-size: 10px;
  }
  .filters input {
    width: 100%;
  }
  .filters select {
    max-width: 100%;
    flex: 1;
  }
  .card-head h2 {
    font-size: 13px;
  }
  .card-head a {
    font-size: 10px;
  }
  .card-head svg {
    width: 18px;
  }
  .source-list {
    grid-template-columns: 1fr;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .login {
    margin: 5vh 12px;
    padding: 24px;
  }
  dialog {
    padding: 18px;
  }
  dialog dl > div,
  .security-summary dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  button,
  select {
    min-height: 38px;
  }
  .sidebar nav a {
    min-height: 42px;
  }
  .title-controls select {
    max-width: 145px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
