:root {
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#203b39;
  background:#f5f7f7;
  font-synthesis:none;
  --ink:#173b36;
  --muted:#778582;
  --line:#e6ecea;
  --green:#16775f;
  --sidebar:#102b29;
}

.login-panel {
  max-width: 650px;
  margin: 65px auto;
  padding: 40px;
}
.login-panel .eyebrow { display: block; margin-top: 24px; }
.login-panel p { font-size: 14px; line-height: 1.8; color: #778582; margin: 20px 0 30px; }
.message-id { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-row > div { min-width: 0; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.notice { margin-bottom: 20px; }

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select {
  font:inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  opacity:.45;
  cursor:not-allowed;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #43b99d;
  outline-offset:3px;
}

a {
  color:inherit;
  text-decoration:none;
}

.icon {
  width:20px;
  height:20px;
  flex-shrink:0;
  vertical-align:middle;
}

button .icon {
  width:17px;
  height:17px;
}

.mono {
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:12px;
}

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

.hidden {
  display:none!important;
}

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

.app-shell {
  display:flex;
  min-height:100vh;
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:240px;
  background:var(--sidebar);
  color:#adbfbb;
  padding:34px 20px 0;
  display:flex;
  flex-direction:column;
  z-index:10;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  padding:0 12px;
}

.brand>span:last-child {
  font-size:30px;
  font-weight:750;
  letter-spacing:-1.5px;
  line-height:1;
}

.brand small {
  display:block;
  font-size:8px;
  font-weight:500;
  letter-spacing:2.3px;
  margin-top:9px;
  color:#9db9b2;
}

.brand-mark {
  display:grid;
  place-items:center;
  width:38px;
  height:43px;
  background:#c0e9d8;
  border-radius:11px;
  color:#153f34;
}

.brand-mark .icon {
  width:25px;
  height:25px;
}

.workspace {
  display:flex;
  align-items:center;
  gap:11px;
  padding:17px 12px;
  margin-top:34px;
  border:1px solid #2d4742;
  border-radius:8px;
}

.workspace-avatar {
  width:30px;
  height:30px;
  background:#304e46;
  display:grid;
  place-items:center;
  color:#d7e9de;
  border-radius:6px;
  font-size:13px;
}

.workspace strong {
  font-size:12px;
  color:#edf4f1;
  font-weight:550;
}

.workspace small {
  display:block;
  font-size:10px;
  color:#91aaa2;
  margin-top:5px;
}

.nav-label {
  font-size:9px;
  letter-spacing:1.7px;
  margin:32px 14px 15px;
  color:#75928b;
}

nav {
  display:flex;
  flex-direction:column;
  gap:6px;
}

nav button {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:transparent;
  color:#a4bcb4;
  padding:13px 14px;
  border-radius:7px;
  font-size:12px;
  text-align:left;
}

nav button.active {
  background:#24473d;
  color:#d3f2d9;
}

nav button:hover {
  background:#1e3c35;
  color:#fff;
}

nav button.active:before {
  content:"";
  position:absolute;
  left:0;
  height:23px;
  width:3px;
  background:#b4dfc3;
  border-radius:0 3px 3px 0;
}

.nav-dot,.dot,.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  display:inline-block;
  flex-shrink:0;
  background:currentColor;
}

.nav-dot {
  margin-left:auto;
  background:#94c5a9;
  width:5px;
  height:5px;
}

.sidebar-bottom {
  margin-top:auto;
}

.region {
  border-top:1px solid #2d4742;
  padding:22px 12px;
  display:flex;
  gap:11px;
  font-size:10px;
  align-items:center;
}

.region .status-dot {
  background:#b7d3a0;
  box-shadow:0 0 0 4px #b7d3a012;
}

.region strong {
  display:block;
  color:#d5e3dd;
  font-size:11px;
  font-weight:500;
  margin-top:6px;
}

.profile {
  border-top:1px solid #2d4742;
  display:flex;
  align-items:center;
  gap:10px;
  padding:20px 3px;
}

.profile strong {
  color:#dce9e3;
  font-size:11px;
  font-weight:500;
}

.profile small {
  display:block;
  color:#8aa69b;
  font-size:10px;
  margin-top:4px;
}

.avatar {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#d5e5ca;
  color:#244333;
  font-size:12px;
  font-weight:600;
}

.version {
  margin-left:auto;
  color:#8ba49a;
  font-size:10px;
}

.main-shell {
  margin-left:240px;
  min-width:0;
  flex:1;
}

.topbar {
  height:73px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 38px;
  background:#fff;
}

.breadcrumb {
  font-size:11px;
  color:#82908b;
  display:flex;
  align-items:center;
  gap:15px;
}

.breadcrumb strong {
  font-weight:500;
  color:#385149;
}

.demo-pill {
  font-size:9px;
  letter-spacing:1px;
  border:1px solid #e1e7dc;
  background:#f5f8ef;
  color:#64734e;
  border-radius:5px;
  padding:7px 9px;
}

main {
  max-width:1520px;
  padding:25px 38px 0;
  margin:auto;
}

.demo-notice {
  display:flex;
  gap:9px;
  align-items:center;
  font-size:11px;
  color:#706b44;
  background:#f6f3e7;
  border:1px solid #eae5cd;
  border-radius:7px;
  padding:10px 14px;
}

.demo-notice .icon {
  width:16px;
  height:16px;
}

.demo-notice p {
  margin:0;
  line-height:1.7;
}

.demo-notice strong {
  font-weight:600;
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:28px 0;
}

.eyebrow {
  font-size:9px;
  letter-spacing:1.7px;
  color:#82948a;
  font-weight:600;
}

h1 {
  font-size:27px;
  font-weight:600;
  letter-spacing:-.9px;
  margin:9px 0 8px;
  color:#183d32;
}

.page-heading p {
  color:#819087;
  font-size:12px;
  margin:0;
  line-height:1.7;
}

.heading-actions {
  display:flex;
  gap:15px;
  align-items:center;
}

.heading-actions>span {
  font-size:10px;
  color:#89968e;
  white-space:nowrap;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:37px;
  border-radius:6px;
  padding:9px 13px;
  font-size:11px;
  font-weight:550;
  border:1px solid #dce4df;
}

.secondary {
  background:white;
  color:#3a5146;
}

.secondary:hover {
  background:#f1f6f2;
  border-color:#b3cbbd;
}

.primary {
  background:#1c5844;
  border-color:#1c5844;
  color:#fff;
}

.primary:hover {
  background:#153e32;
}

.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
  margin-bottom:23px;
}

.metric {
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:19px 20px 16px;
}

.metric-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:11px;
  color:#6b7e73;
}

.metric-icon {
  width:29px;
  height:29px;
  border-radius:7px;
  background:#f4f6f5;
  color:#6d8679;
  display:grid;
  place-items:center;
}

.metric-icon .icon {
  width:16px;
  height:16px;
}

.metric-icon.good {
  background:#edf6ef;
  color:#39875f;
}

.metric-icon.warn {
  background:#faf4e9;
  color:#a88b41;
}

.metric>strong {
  display:block;
  font-size:31px;
  letter-spacing:-1px;
  font-weight:600;
  color:#204436;
  margin-top:6px;
}

.metric p {
  margin:9px 0 0;
  font-size:9px;
  color:#8c998f;
  line-height:1.6;
}

.overview-grid {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);
  gap:22px;
  align-items:start;
}

.panel {
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  overflow:hidden;
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:21px 23px 17px;
}

h2 {
  font-size:13px;
  font-weight:600;
  letter-spacing:-.1px;
  margin:0;
  color:#294a3c;
}

.panel-heading p {
  font-size:10px;
  color:#8b9a90;
  margin:7px 0 0;
  line-height:1.6;
}

.subtle-label {
  font-size:9px;
  color:#87978b;
  background:#f5f7f5;
  border:1px solid #e9ede7;
  padding:6px 8px;
  border-radius:5px;
  white-space:nowrap;
}

.text-button {
  border:0;
  background:transparent;
  color:#547b63;
  font-size:10px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 0;
  white-space:nowrap;
}

.text-button:hover {
  color:#174d35;
  text-decoration:underline;
}

.text-button .icon {
  width:14px;
  height:14px;
}

.distribution {
  padding:11px 23px 19px;
  display:grid;
  gap:17px;
}

.distribution-row {
  display:grid;
  grid-template-columns:104px minmax(30px,1fr) 20px;
  align-items:center;
  gap:12px;
  font-size:10px;
  color:#748579;
}

.distribution-row strong {
  font-weight:550;
  color:#506b5a;
  text-align:right;
  font-family:monospace;
}

.bar-track {
  height:10px;
  background:#f4f7f4;
  border-radius:3px;
  overflow:hidden;
}

.bar {
  height:100%;
  min-width:4px;
  border-radius:3px;
}

.bar.green {
  background:#5a9272;
}

.bar.blue {
  background:#89aabb;
}

.bar.teal {
  background:#93beb0;
}

.bar.red {
  background:#c69589;
}

.bar.amber {
  background:#c6b27c;
}

.bar.gray {
  background:#b8c3bb;
}

.panel-note {
  display:flex;
  align-items:flex-start;
  gap:8px;
  background:#fafbf9;
  border-top:1px solid var(--line);
  padding:13px 23px;
  font-size:9px;
  color:#8a998c;
  line-height:1.8;
}

.panel-note .icon {
  width:13px;
  height:13px;
  margin-top:2px;
}

.device-heading {
  display:flex;
  gap:9px;
  align-items:center;
  padding:2px 22px 14px;
}

.device-icon {
  width:32px;
  height:32px;
  border-radius:7px;
  background:#edf3ee;
  color:#63856a;
  display:grid;
  place-items:center;
}

.device-heading h3 {
  font-size:11px;
  font-weight:550;
  margin:0;
  color:#425b48;
}

.device-heading p {
  font-size:9px;
  margin:5px 0 0;
  color:#8b9b8b;
}

.device-heading>.badge {
  margin-left:auto;
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:9px;
  font-weight:500;
  border:1px solid transparent;
  padding:5px 7px;
  border-radius:5px;
  white-space:nowrap;
}

.badge .dot {
  width:4px;
  height:4px;
}

.badge.good {
  background:#f0f7ed;
  color:#588453;
  border-color:#e1eddc;
}

.badge.neutral {
  background:#f0f4f5;
  color:#688896;
  border-color:#e3ebee;
}

.badge.warn {
  background:#fbf6e9;
  color:#aa8d45;
  border-color:#f1e9ce;
}

.badge.bad {
  background:#fbefec;
  color:#b57668;
  border-color:#f3dfd9;
}

.device-map {
  margin:0 22px 15px;
  background:radial-gradient(#cbd8ca 1px,transparent 1px);
  background-size:11px 11px;
  height:105px;
  border-radius:7px;
  border:1px solid #eef2ec;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.board {
  width:91px;
  height:74px;
  background:#3b6251;
  border:4px solid #274a3b;
  border-radius:6px;
  position:relative;
  padding:5px 8px;
  transform:rotate(-5deg);
  box-shadow:0 5px 7px #2d4a3315;
}

.board>span {
  font-size:7px;
  color:#c7d6bd;
  letter-spacing:1.5px;
}

.chip {
  background:#b1b4a5;
  border:3px solid #7c8b7d;
  border-radius:3px;
  width:48px;
  position:absolute;
  right:6px;
  top:20px;
  color:#304032;
  text-align:center;
  padding:3px 0;
  font-size:9px;
  font-weight:650;
}

.chip small {
  font-size:5px;
  display:block;
  margin-top:2px;
}

.board-pins {
  position:absolute;
  bottom:-7px;
  left:1px;
  letter-spacing:-1px;
  color:#c3b58c;
  font-size:9px;
  white-space:nowrap;
}

.connection-lines {
  display:flex;
  width:34px;
  flex-direction:column;
  gap:6px;
}

.connection-lines i {
  height:1px;
  background:#becdb9;
}

.network-label {
  background:#fff;
  padding:8px;
  border:1px solid #e1e8dd;
  border-radius:5px;
  font-size:8px;
  display:flex;
  align-items:center;
  gap:5px;
  color:#6f8a65;
}

.network-label .icon {
  width:16px;
  height:16px;
}

.facts {
  margin:0;
  padding:0 23px;
  display:grid;
  gap:12px;
}

.facts>div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:10px;
}

.facts dt {
  color:#8a998d;
}

.facts dd {
  margin:0;
  color:#556e58;
  font-weight:500;
  text-align:right;
}

.facts dd .status-dot {
  width:5px;
  height:5px;
  background:#78a16b;
  margin-right:6px;
  vertical-align:middle;
}

.caption {
  margin:16px 0 0;
  padding:11px 18px;
  background:#fafbf9;
  border-top:1px solid var(--line);
  font-size:8px;
  color:#8d9d90;
  text-align:center;
}

.table-scroll {
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  white-space:nowrap;
}

th {
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-weight:500;
  color:#8b9a90;
  background:#fafbf9;
  padding:12px 23px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

td {
  font-size:10px;
  color:#5f7467;
  padding:13px 23px;
  border-bottom:1px solid #f0f3ee;
}

tr:last-child td {
  border-bottom:0;
}

td small {
  display:block;
  font-size:8px;
  color:#9aa69b;
  margin-top:5px;
}

td .mono {
  font-size:10px;
}

.icon-button {
  background:transparent;
  border:0;
  padding:6px;
  color:#8da08e;
  border-radius:5px;
}

.icon-button:hover {
  background:#eff4ed;
  color:#4d7054;
}

.icon-button .icon {
  width:15px;
  height:15px;
}

.detail-row td {
  white-space:normal;
  color:#7b805e;
  background:#faf9f2;
  font-size:10px;
  line-height:1.7;
}

.table-tools {
  display:flex;
  gap:14px;
  padding:0 23px 20px;
  align-items:center;
}

.search {
  display:flex;
  align-items:center;
  gap:9px;
  background:#f9fbf8;
  border:1px solid #e6ece2;
  padding:8px 11px;
  border-radius:6px;
  flex:1;
}

.search .icon {
  width:15px;
  height:15px;
  color:#97a88f;
}

.search input {
  border:0;
  background:transparent;
  width:100%;
  font-size:11px;
  color:#4c6651;
  min-width:0;
}

.search input::placeholder {
  color:#96a28f;
}

select {
  background:white;
  color:#6b7e6a;
  font-size:10px;
  border:1px solid #e0e8db;
  border-radius:6px;
  padding:9px;
  max-width:180px;
}

.quick-action {
  background:#fff;
  width:100%;
  border:0;
  border-top:1px solid #f0f3ed;
  display:flex;
  align-items:center;
  gap:11px;
  padding:19px 22px;
  text-align:left;
}

.quick-action:hover {
  background:#f8fbf6;
}

.command-icon {
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  background:#f1f5ee;
  border-radius:8px;
  color:#7b9973;
  flex-shrink:0;
}

.command-icon .icon {
  width:17px;
  height:17px;
}

.quick-action strong {
  display:block;
  font-size:11px;
  font-weight:500;
  color:#536e51;
}

.quick-action small {
  display:block;
  font-size:9px;
  color:#98a58f;
  margin-top:6px;
}

.quick-action>.icon {
  margin-left:auto;
  color:#9aac91;
  width:15px;
  height:15px;
}

.quick-foot {
  font-size:9px;
  color:#98a78f;
  padding:14px 23px;
  border-top:1px solid var(--line);
  background:#fafcf8;
  display:flex;
  gap:7px;
  align-items:center;
}

.quick-foot .dot {
  width:4px;
  height:4px;
}

.gateway-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.system-facts {
  padding:15px 23px 30px;
  gap:24px;
}

.command-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:23px;
}

.command-card {
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
  padding:24px;
}

.command-card h3 {
  font-size:13px;
  font-weight:550;
  color:#365d43;
  margin:20px 0 9px;
}

.command-card p {
  font-size:11px;
  color:#889a83;
  line-height:1.8;
  min-height:42px;
  margin-bottom:22px;
}

.command-card .button {
  width:100%;
  justify-content:space-between;
}

.command-history {
  padding:0 23px;
}

.history-row {
  display:flex;
  gap:13px;
  border-top:1px solid var(--line);
  padding:20px 0;
}

.history-row>div {
  flex:1;
}

.history-check {
  color:#729264;
  margin-top:2px;
}

.history-check .icon {
  width:17px;
  height:17px;
}

.history-row strong {
  font-size:11px;
  font-weight:550;
}

.history-row p {
  font-size:10px;
  color:#8b9c84;
  line-height:1.8;
  margin:7px 0;
}

.history-row small {
  font-size:9px;
  color:#97a28f;
}

.history-row>.badge {
  align-self:flex-start;
}

.count {
  font-size:10px;
  padding:5px 8px;
  border-radius:5px;
  background:#f0f5ec;
  color:#7b8f6b;
}

.empty,.empty-state {
  padding:40px 24px;
  text-align:center;
  color:#8b9b82;
  font-size:11px;
}

.empty-state>.icon {
  width:28px;
  height:28px;
  margin-bottom:8px;
}

.empty-state h3 {
  font-size:13px;
  color:#5c7753;
  font-weight:500;
}

.empty-state p {
  font-size:11px;
  line-height:1.8;
}

.service-row {
  display:flex;
  gap:16px;
  align-items:center;
  padding:23px;
  border-top:1px solid var(--line);
}

.step-number {
  font-size:10px;
  font-family:monospace;
  color:#a4b19a;
}

.service-row>.icon {
  color:#79966e;
}

.service-row>div {
  flex:1;
}

.service-row h3 {
  font-size:12px;
  font-weight:550;
  margin:0;
  color:#486b43;
}

.service-row p {
  font-size:10px;
  margin:7px 0 0;
  color:#8c9e81;
  line-height:1.8;
}

.notice {
  margin-top:20px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#8b997c;
  padding:16px 18px;
  border:1px solid #e5ebdc;
  border-radius:7px;
  background:#f7f9f2;
}

.notice .icon {
  width:16px;
  height:16px;
  margin-top:2px;
}

.notice p {
  font-size:11px;
  margin:0;
  line-height:1.8;
}

.toast {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:12px 16px;
  margin:0 0 20px;
  background:#e9f3e5;
  border:1px solid #d9e9d0;
  border-radius:6px;
  font-size:11px;
  align-items:center;
  color:#4b7141;
}

.modal-backdrop {
  position:fixed;
  inset:0;
  background:#102b2966;
  z-index:100;
  display:grid;
  place-items:center;
  padding:25px;
  backdrop-filter:blur(3px);
}

.modal {
  background:#fff;
  border:1px solid #dce6d6;
  border-radius:15px;
  padding:30px;
  max-width:480px;
  box-shadow:0 18px 70px #0b201e25;
}

.modal>.eyebrow {
  display:block;
  margin:23px 0 10px;
}

.modal h2 {
  font-size:22px;
  line-height:1.4;
  letter-spacing:-.5px;
}

.modal p {
  font-size:12px;
  line-height:1.9;
  color:#839478;
  margin:15px 0 25px;
}

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

footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  color:#a1ad9a;
  font-size:9px;
  border-top:1px solid #e6ece2;
  margin-top:29px;
  padding:20px 0;
}

@media(min-width:1600px) {
  main {
    padding-top:32px;
  }
  .page-heading {
    margin:34px 0;
  }
  .metric {
    padding:24px;
  }
  .metrics {
    gap:22px;
  }
  .metric>strong {
    font-size:36px;
  }
  .overview-grid {
    gap:25px;
  }
  .distribution {
    gap:22px;
    padding-bottom:24px;
  }
}

@media(max-width:1200px) {
  .sidebar {
    width:210px;
    padding-left:14px;
    padding-right:14px;
  }
  .main-shell {
    margin-left:210px;
  }
  main {
    padding:23px;
  }
  .topbar {
    padding:0 23px;
  }
  .heading-actions>span {
    display:none;
  }
  .metrics {
    gap:10px;
  }
  .metric {
    padding:14px;
  }
  .metric-top {
    font-size:10px;
  }
  .metric p {
    font-size:8px;
  }
  .overview-grid {
    grid-template-columns:minmax(0,1fr) minmax(285px,.8fr);
    gap:15px;
  }
  th,td {
    padding-left:14px;
    padding-right:14px;
  }
  .panel-heading {
    padding-left:18px;
    padding-right:18px;
  }
  .command-grid {
    gap:12px;
  }
  .command-card {
    padding:18px;
  }
}

@media(max-width:980px) {
  .sidebar {
    width:75px;
    padding:28px 11px 0;
  }
  .brand {
    padding:0;
    justify-content:center;
  }
  .brand>span:last-child,.workspace,.nav-label,nav button>span,.sidebar-bottom {
    display:none;
  }
  nav {
    margin-top:40px;
  }
  nav button {
    justify-content:center;
    padding:14px;
  }
  .brand-mark {
    width:36px;
    height:39px;
  }
  .main-shell {
    margin-left:75px;
  }
  .overview-grid {
    grid-template-columns:minmax(0,1fr) minmax(270px,.9fr);
  }
  .metrics {
    grid-template-columns:repeat(2,1fr);
  }
  .metric p {
    font-size:10px;
  }
  .metric-top {
    font-size:12px;
  }
  .command-grid {
    grid-template-columns:1fr;
  }
  .command-card {
    display:grid;
    grid-template-columns:36px 1fr auto;
    gap:0 16px;
    align-items:center;
  }
  .command-card>.command-icon {
    grid-row:1/3;
  }
  .command-card h3 {
    margin:0;
  }
  .command-card p {
    margin:6px 0 0;
    min-height:0;
    grid-column:2;
  }
  .command-card>.button {
    grid-column:3;
    grid-row:1/3;
    width:auto;
  }
  .gateway-layout {
    grid-template-columns:1fr;
  }
  .service-row {
    gap:10px;
  }
}

@media(max-width:760px) {
  main {
    padding:18px 16px 0;
  }
  .topbar {
    height:59px;
    padding:0 16px;
  }
  .breadcrumb {
    font-size:10px;
    gap:8px;
  }
  .demo-pill {
    font-size:7px;
    padding:6px;
  }
  .demo-notice {
    font-size:10px;
    align-items:flex-start;
  }
  .demo-notice .icon {
    margin-top:3px;
  }
  .page-heading {
    align-items:flex-start;
    margin:24px 0;
    gap:12px;
  }
  h1 {
    font-size:24px;
  }
  .page-heading p {
    font-size:10px;
  }
  .heading-actions {
    padding-top:20px;
  }
  .heading-actions .button {
    font-size:0;
    padding:9px;
  }
  .heading-actions .icon {
    width:17px;
  }
  .overview-grid {
    grid-template-columns:1fr;
  }
  .activity-panel {
    order:1;
  }
  .gateway-panel {
    order:3;
  }
  .messages-panel {
    order:2;
  }
  .quick-panel {
    order:4;
  }
  .metric-top {
    font-size:10px;
  }
  .metric p {
    font-size:9px;
  }
  .metric>strong {
    font-size:28px;
  }
  .device-map {
    height:120px;
  }
  .facts>div {
    font-size:11px;
  }
  .facts {
    gap:16px;
  }
  .caption {
    font-size:9px;
  }
  .command-card {
    display:block;
  }
  .command-card h3 {
    margin:16px 0 8px;
  }
  .command-card p {
    margin-bottom:18px;
  }
  .command-card>.button {
    width:100%;
  }
  .service-row {
    flex-wrap:wrap;
  }
  .service-row>.badge {
    margin-left:55px;
  }
  .service-row>div {
    flex-basis:65%;
  }
  .table-tools {
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .table-tools select {
    max-width:100%;
  }
  .table-tools input {
    font-size:10px;
  }
  .history-row>.badge {
    display:none;
  }
  footer {
    flex-direction:column;
    gap:8px;
    font-size:8px;
  }
  .modal {
    padding:24px;
  }
  .modal-actions {
    flex-direction:column-reverse;
  }
  .modal-actions .button {
    width:100%;
  }
}

@media(prefers-reduced-motion:no-preference) {
  button,a {
    transition:background .15s,color .15s;
  }
  .modal {
    animation:appear .15s ease-out;
  }
  @keyframes appear {
    from {
      opacity:0;
      transform:translateY(6px);
    }
    to {
      opacity:1;
      transform:translateY(0);
    }
  }
}
