:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --iot-bg: #f5f9ff;
  --iot-bg-soft: #eef6ff;
  --iot-surface: rgba(255, 255, 255, 0.86);
  --iot-surface-solid: #ffffff;
  --iot-line: rgba(50, 96, 144, 0.14);
  --iot-line-strong: rgba(35, 119, 204, 0.2);
  --iot-text: #10243a;
  --iot-muted: #6d8298;
  --iot-blue: #1677ff;
  --iot-blue-strong: #075ed1;
  --iot-cyan: #16b9d4;
  --iot-green: #10b981;
  --iot-violet: #7165ff;
  --iot-shadow:
    0 24px 70px rgba(38, 83, 128, 0.12),
    0 3px 12px rgba(38, 83, 128, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--iot-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 82% 7%,
      rgba(22, 119, 255, 0.12),
      transparent 30rem
    ),
    radial-gradient(
      circle at 18% 32%,
      rgba(22, 185, 212, 0.09),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      #fbfdff 0%,
      #f4f9ff 48%,
      #f8fbff 100%
    );
  color: var(--iot-text);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(40, 105, 175, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(40, 105, 175, 0.035) 1px,
      transparent 1px
    );
  background-size: 32px 32px;
  content: "";
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.7),
      transparent 72%
    );
  pointer-events: none;
}

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

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

.iot-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: min(1380px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--iot-line);
  background: rgba(250, 253, 255, 0.78);
  backdrop-filter: blur(18px);
}

.iot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.iot-brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #e7f4ff 48%,
      #dcfbff 100%
    );
  color: var(--iot-blue);
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 8px 24px rgba(22, 119, 255, 0.12);
}

.iot-brand-mark::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(22, 185, 212, 0.25);
  border-radius: 50%;
  content: "";
}

.iot-brand strong,
.iot-brand small {
  display: block;
}

.iot-brand strong {
  color: #132d47;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.iot-brand small {
  margin-top: 2px;
  color: var(--iot-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.iot-top-actions,
.iot-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iot-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.iot-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.iot-button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: 3px;
}

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

.iot-button-primary {
  border-color: rgba(7, 94, 209, 0.2);
  background:
    linear-gradient(
      135deg,
      #1688ff 0%,
      #1677ff 55%,
      #075ed1 100%
    );
  color: #ffffff;
  box-shadow:
    0 12px 28px rgba(22, 119, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.iot-button-primary:not(:disabled):hover {
  box-shadow:
    0 16px 34px rgba(22, 119, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.iot-button-ghost {
  border-color: var(--iot-line);
  background: rgba(255, 255, 255, 0.72);
  color: #294762;
  box-shadow: 0 5px 18px rgba(43, 86, 126, 0.05);
}

.iot-button-large {
  min-height: 49px;
  padding: 12px 20px;
  border-radius: 14px;
}

.iot-user-chip {
  max-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, 0.1);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(240, 247, 255, 0.8);
  color: #55718d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-hero {
  display: grid;
  width: min(1240px, calc(100% - 40px));
  min-height: calc(100vh - 155px);
  margin: 0 auto;
  padding: 72px 0 68px;
  align-items: center;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(360px, 0.92fr);
  gap: clamp(42px, 7vw, 90px);
}

.iot-kicker {
  display: inline-flex;
  margin: 0 0 15px;
  align-items: center;
  gap: 8px;
  color: var(--iot-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.iot-kicker::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--iot-blue), var(--iot-cyan));
  box-shadow: 0 0 0 5px rgba(22, 119, 255, 0.07);
  content: "";
}

.iot-hero h1 {
  max-width: 790px;
  margin: 0;
  color: #10243a;
  font-size: clamp(43px, 6.2vw, 76px);
  font-weight: 830;
  letter-spacing: -0.055em;
  line-height: 1.01;
}

.iot-hero h1::selection,
.iot-page-head h1::selection {
  background: #cfe7ff;
}

.iot-lead {
  max-width: 700px;
  margin: 26px 0 0;
  color: #607a94;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.72;
}

.iot-hero-actions {
  margin-top: 32px;
  flex-wrap: wrap;
}

.iot-auth-note {
  margin: 14px 0 0;
  color: #7d91a6;
  font-size: 12px;
}

.iot-device-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(39, 115, 193, 0.14);
  border-radius: 28px;
  padding: 21px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(239, 248, 255, 0.9)
    );
  box-shadow: var(--iot-shadow);
}

.iot-device-panel::before {
  position: absolute;
  inset: -105px -80px auto auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(22, 119, 255, 0.17),
      rgba(22, 185, 212, 0.04) 58%,
      transparent 70%
    );
  content: "";
}

.iot-device-panel::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(22, 185, 212, 0.11);
  border-radius: 50%;
  content: "";
}

.iot-device-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #66809a;
  font-size: 12px;
}

.iot-device-head > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iot-device-head strong {
  color: #26455f;
  font-size: 11px;
  letter-spacing: 0.07em;
}

.iot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iot-green);
  box-shadow:
    0 0 0 5px rgba(16, 185, 129, 0.09),
    0 0 16px rgba(16, 185, 129, 0.22);
}

.iot-device-screen {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 250px;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(22, 119, 255, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(22, 185, 212, 0.11),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      #f8fcff 0%,
      #edf7ff 100%
    );
}

.iot-device-screen::before,
.iot-device-screen::after {
  position: absolute;
  border: 1px solid rgba(22, 119, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.iot-device-screen::before {
  width: 190px;
  height: 190px;
}

.iot-device-screen::after {
  width: 120px;
  height: 120px;
}

.iot-device-screen span,
.iot-device-screen strong,
.iot-device-screen small {
  position: relative;
  z-index: 2;
}

.iot-device-screen span {
  color: var(--iot-cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.iot-device-screen strong {
  margin-top: 7px;
  background:
    linear-gradient(
      120deg,
      #0d5bc0 0%,
      #1677ff 45%,
      #13a9c8 100%
    );
  background-clip: text;
  color: transparent;
  font-size: 58px;
  letter-spacing: -0.06em;
}

.iot-device-screen small {
  margin-top: 8px;
  color: #6e879f;
}

.iot-device-grid {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: 13px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.iot-device-grid > div {
  border: 1px solid rgba(45, 107, 169, 0.11);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.68);
}

.iot-device-grid small,
.iot-device-grid strong {
  display: block;
}

.iot-device-grid small {
  color: #8297aa;
  font-size: 10px;
}

.iot-device-grid strong {
  margin-top: 5px;
  color: #274963;
  font-size: 12px;
}

.iot-feature-grid {
  display: grid;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 90px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.iot-feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--iot-line);
  border-radius: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 34px rgba(48, 91, 131, 0.06);
  backdrop-filter: blur(12px);
}

.iot-feature-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 3px;
  border-radius: 0 20px 0 999px;
  background:
    linear-gradient(
      90deg,
      var(--iot-blue),
      var(--iot-cyan)
    );
  content: "";
  opacity: 0.65;
}

.iot-feature-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(22, 119, 255, 0.1);
  border-radius: 12px;
  background: #eef6ff;
  color: var(--iot-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.iot-feature-card h2 {
  margin: 24px 0 8px;
  color: #18334c;
  font-size: 18px;
}

.iot-feature-card p {
  margin: 0;
  color: #6b8299;
  font-size: 13px;
  line-height: 1.68;
}

.iot-shell {
  display: grid;
  width: min(1380px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  grid-template-columns: 230px minmax(0, 1fr);
}

.iot-sidebar {
  display: flex;
  padding: 28px 20px 28px 0;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--iot-line);
}

.iot-side-nav {
  display: grid;
  gap: 6px;
}

.iot-side-nav a,
.iot-side-nav button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: #6f8498;
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.iot-side-nav a.is-active {
  border: 1px solid rgba(22, 119, 255, 0.11);
  background:
    linear-gradient(
      90deg,
      rgba(22, 119, 255, 0.1),
      rgba(22, 185, 212, 0.045)
    );
  color: #145fae;
  font-weight: 760;
}

.iot-side-nav span {
  width: 20px;
  color: var(--iot-blue);
  text-align: center;
}

.iot-side-nav button:disabled {
  opacity: 0.43;
}

.iot-sidebar-foot {
  display: grid;
  gap: 4px;
  color: #7f93a6;
  font-size: 10px;
}

.iot-sidebar-foot span {
  color: #587491;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iot-dashboard {
  min-width: 0;
  padding: 40px 0 60px 38px;
}

.iot-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.iot-page-head h1 {
  margin: 0;
  color: #142c43;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.iot-page-head p:not(.iot-kicker) {
  max-width: 650px;
  margin: 10px 0 0;
  color: #70879d;
  font-size: 13px;
  line-height: 1.6;
}

.iot-stat-grid {
  display: grid;
  margin-top: 34px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.iot-stat-grid article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--iot-line);
  border-radius: 18px;
  padding: 19px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(51, 91, 128, 0.055);
}

.iot-stat-grid article::before {
  position: absolute;
  top: 0;
  left: 18px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background:
    linear-gradient(
      90deg,
      var(--iot-blue),
      var(--iot-cyan)
    );
  content: "";
}

.iot-stat-grid small,
.iot-stat-grid strong,
.iot-stat-grid span {
  display: block;
}

.iot-stat-grid small {
  color: #758ba0;
  font-size: 11px;
}

.iot-stat-grid strong {
  margin-top: 12px;
  color: #173652;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.iot-stat-grid span {
  margin-top: 4px;
  overflow: hidden;
  color: #8b9caf;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-empty-state {
  position: relative;
  display: grid;
  min-height: 330px;
  margin-top: 18px;
  place-items: center;
  overflow: hidden;
  grid-template-columns: 180px minmax(0, 520px);
  justify-content: center;
  gap: 30px;
  border: 1px dashed rgba(39, 115, 193, 0.2);
  border-radius: 22px;
  padding: 34px;
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(22, 185, 212, 0.08),
      transparent 25%
    ),
    rgba(255, 255, 255, 0.68);
}

.iot-empty-state h2 {
  margin: 0;
  color: #193852;
  font-size: 24px;
}

.iot-empty-state p:not(.iot-kicker) {
  margin: 10px 0 0;
  color: #71889e;
  font-size: 13px;
  line-height: 1.7;
}

.iot-empty-orbit {
  position: relative;
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  border: 1px solid rgba(22, 119, 255, 0.15);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(22, 185, 212, 0.09),
      rgba(22, 119, 255, 0.025) 55%,
      transparent 70%
    );
  box-shadow:
    inset 0 0 30px rgba(22, 119, 255, 0.05),
    0 12px 40px rgba(22, 119, 255, 0.06);
}

.iot-empty-orbit::before,
.iot-empty-orbit::after {
  position: absolute;
  border: 1px solid rgba(22, 119, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.iot-empty-orbit::before {
  width: 88px;
  height: 88px;
}

.iot-empty-orbit::after {
  width: 46px;
  height: 46px;
}

.iot-empty-orbit span {
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--iot-blue),
      var(--iot-cyan)
    );
  box-shadow:
    0 0 0 7px rgba(22, 119, 255, 0.06),
    0 0 24px rgba(22, 119, 255, 0.24);
}

@media (max-width: 980px) {
  .iot-hero {
    min-height: auto;
    padding-top: 58px;
    grid-template-columns: 1fr;
  }

  .iot-device-panel {
    max-width: 640px;
  }

  .iot-feature-grid {
    grid-template-columns: 1fr;
  }

  .iot-shell {
    grid-template-columns: 1fr;
  }

  .iot-sidebar {
    display: none;
  }

  .iot-dashboard {
    padding-left: 0;
  }

  .iot-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .iot-topbar {
    width: min(100% - 24px, 1380px);
  }

  .iot-top-actions .iot-user-chip,
  .iot-top-actions .iot-button-ghost {
    display: none;
  }

  .iot-hero,
  .iot-feature-grid,
  .iot-shell {
    width: min(100% - 24px, 1240px);
  }

  .iot-hero {
    padding: 42px 0 52px;
  }

  .iot-hero h1 {
    font-size: clamp(38px, 13vw, 55px);
  }

  .iot-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .iot-device-grid {
    grid-template-columns: 1fr;
  }

  .iot-dashboard {
    padding-top: 28px;
  }

  .iot-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .iot-stat-grid {
    grid-template-columns: 1fr;
  }

  .iot-empty-state {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* QBT_IOT_DASHBOARD_V3 */
.iot-dashboard-page .iot-sidebar {
  background:
    linear-gradient(
      180deg,
      rgba(242, 249, 255, 0.72),
      rgba(248, 252, 255, 0.38)
    );
}

.iot-dashboard-page .iot-side-nav a,
.iot-dashboard-page .iot-side-nav button {
  color: #5f7891;
  font-weight: 650;
}

.iot-dashboard-page .iot-side-nav button:disabled {
  opacity: 0.7;
}

.iot-nav-icon {
  display: grid;
  width: 24px !important;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(22, 119, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #3d8be8 !important;
  font-size: 11px;
  font-weight: 850;
}

.iot-side-nav .is-active .iot-nav-icon {
  border-color: rgba(22, 119, 255, 0.18);
  background: linear-gradient(135deg, #e7f3ff, #e8fbff);
  color: #0b68d7 !important;
  box-shadow: 0 5px 15px rgba(22, 119, 255, 0.09);
}

.iot-add-kit-button:disabled {
  opacity: 0.78;
  color: #ffffff;
}

.iot-health-strip {
  display: flex;
  min-height: 62px;
  margin-top: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 17px;
  padding: 12px 16px;
  background:
    linear-gradient(
      90deg,
      rgba(232, 253, 246, 0.86),
      rgba(239, 250, 255, 0.86)
    );
  box-shadow: 0 8px 25px rgba(45, 100, 120, 0.045);
}

.iot-health-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iot-health-main strong,
.iot-health-main small {
  display: block;
}

.iot-health-main strong {
  color: #24506b;
  font-size: 13px;
}

.iot-health-main small {
  margin-top: 3px;
  color: #7690a5;
  font-size: 11px;
}

.iot-health-pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #10b981;
  box-shadow:
    0 0 0 6px rgba(16, 185, 129, 0.09),
    0 0 18px rgba(16, 185, 129, 0.2);
}

.iot-health-badge {
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #138862;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.iot-dashboard-page .iot-stat-grid {
  margin-top: 14px;
}

.iot-stat-card {
  min-height: 150px;
}

.iot-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iot-stat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 900;
}

.iot-stat-icon.is-blue {
  background: #e9f3ff;
  color: #1677ff;
}

.iot-stat-icon.is-cyan {
  background: #e7fbff;
  color: #0ca9c6;
}

.iot-stat-icon.is-violet {
  background: #f0eeff;
  color: #7165ff;
}

.iot-stat-icon.is-green {
  background: #e9fbf4;
  color: #10a878;
}

.iot-stat-value {
  display: flex;
  margin-top: 14px;
  align-items: baseline;
  gap: 7px;
}

.iot-stat-value strong {
  margin: 0;
}

.iot-stat-value span {
  color: #95a5b6;
  font-size: 11px;
}

.iot-stat-card p {
  margin: 6px 0 0;
  color: #8498aa;
  font-size: 10px;
}

.iot-dashboard-grid {
  display: grid;
  margin-top: 16px;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 16px;
}

.iot-panel {
  min-width: 0;
  border: 1px solid var(--iot-line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(51, 91, 128, 0.055);
}

.iot-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.iot-panel-eyebrow {
  margin: 0 0 4px;
  color: #7f95aa;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.iot-panel h2 {
  margin: 0;
  color: #1d3d58;
  font-size: 17px;
}

.iot-panel-state {
  border: 1px solid rgba(22, 119, 255, 0.1);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f3f8ff;
  color: #6b86a0;
  font-size: 9px;
  font-weight: 750;
}

.iot-fleet-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  grid-template-columns: 150px minmax(0, 380px);
  justify-content: center;
  gap: 26px;
}

.iot-fleet-empty strong {
  color: #31516b;
  font-size: 14px;
}

.iot-fleet-empty p {
  margin: 6px 0 0;
  color: #8196aa;
  font-size: 11px;
  line-height: 1.6;
}

.iot-network-visual {
  position: relative;
  width: 122px;
  height: 122px;
  border: 1px solid rgba(22, 119, 255, 0.11);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(22, 185, 212, 0.08),
      transparent 62%
    );
}

.iot-network-visual::before,
.iot-network-visual::after {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(22, 119, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.iot-network-visual::after {
  inset: 46px;
}

.iot-network-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #7fbfff;
  box-shadow: 0 3px 10px rgba(22, 119, 255, 0.18);
}

.iot-network-node.is-center {
  top: 56px;
  left: 56px;
  background: #1677ff;
}

.iot-network-node.is-one {
  top: 18px;
  left: 72px;
}

.iot-network-node.is-two {
  right: 15px;
  bottom: 31px;
  background: #16b9d4;
}

.iot-network-node.is-three {
  bottom: 18px;
  left: 27px;
  background: #10b981;
}

.iot-activity-list {
  display: grid;
  margin-top: 18px;
  gap: 4px;
}

.iot-activity-item {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  border-bottom: 1px solid rgba(51, 95, 139, 0.08);
}

.iot-activity-item:last-child {
  border-bottom: 0;
}

.iot-activity-item strong,
.iot-activity-item small {
  display: block;
}

.iot-activity-item strong {
  color: #3b5a72;
  font-size: 11px;
}

.iot-activity-item small {
  margin-top: 3px;
  color: #8da0b2;
  font-size: 9px;
}

.iot-activity-item time {
  color: #99a9b8;
  font-size: 9px;
}

.iot-activity-item.is-muted {
  opacity: 0.58;
}

.iot-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9c7d4;
}

.iot-activity-dot.is-success {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.iot-getting-started {
  display: grid;
  margin-top: 16px;
  align-items: center;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  border: 1px solid var(--iot-line);
  border-radius: 20px;
  padding: 20px 22px;
  background:
    linear-gradient(
      120deg,
      rgba(244, 250, 255, 0.94),
      rgba(250, 253, 255, 0.86)
    );
}

.iot-getting-copy .iot-kicker {
  margin-bottom: 9px;
}

.iot-getting-copy h2 {
  margin: 0;
  color: #203f59;
  font-size: 20px;
}

.iot-getting-copy > p:not(.iot-kicker) {
  margin: 7px 0 0;
  color: #7c92a6;
  font-size: 11px;
  line-height: 1.6;
}

.iot-step-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
}

.iot-step-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 13px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.iot-step-list li > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #eaf4ff;
  color: #1677ff;
  font-size: 10px;
  font-weight: 850;
}

.iot-step-list strong,
.iot-step-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-step-list strong {
  color: #3d5c75;
  font-size: 10px;
}

.iot-step-list small {
  margin-top: 3px;
  color: #98a7b5;
  font-size: 8px;
}

@media (max-width: 1120px) {
  .iot-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .iot-step-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .iot-health-strip,
  .iot-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .iot-fleet-empty,
  .iot-getting-started {
    grid-template-columns: 1fr;
  }

  .iot-step-list {
    grid-template-columns: 1fr;
  }
}


/* QBT_IOT_ACCOUNT_MENU_V1 */
.iot-account-menu {
  position: relative;
}

.iot-account-menu > summary {
  list-style: none;
}

.iot-account-menu > summary::-webkit-details-marker {
  display: none;
}

.iot-account-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(46, 103, 159, 0.13);
  border-radius: 14px;
  padding: 6px 10px 6px 7px;
  background: rgba(255, 255, 255, 0.78);
  color: #294861;
  box-shadow: 0 8px 22px rgba(39, 82, 122, 0.06);
  cursor: pointer;
  user-select: none;
}

.iot-account-trigger:hover {
  border-color: rgba(22, 119, 255, 0.2);
  background: #ffffff;
}

.iot-account-trigger:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.14);
  outline-offset: 3px;
}

.iot-account-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(22, 119, 255, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #eef7ff,
      #e9fbff
    );
  color: #126fdc;
  font-size: 11px;
  font-weight: 850;
}

.iot-account-name {
  max-width: 180px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-account-chevron {
  color: #7f94a8;
  font-size: 11px;
  transition: transform 140ms ease;
}

.iot-account-menu[open] .iot-account-chevron {
  transform: rotate(180deg);
}

.iot-account-dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% + 9px);
  right: 0;
  width: 220px;
  overflow: hidden;
  border: 1px solid rgba(44, 101, 155, 0.13);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 22px 55px rgba(42, 80, 118, 0.15),
    0 5px 15px rgba(42, 80, 118, 0.06);
  backdrop-filter: blur(16px);
}

.iot-account-meta {
  padding: 9px 10px 10px;
}

.iot-account-meta strong,
.iot-account-meta small {
  display: block;
}

.iot-account-meta strong {
  overflow: hidden;
  color: #24445e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-account-meta small {
  margin-top: 3px;
  color: #8b9dac;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.iot-account-dropdown > a {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  padding: 0 10px;
  color: #4b657d;
  font-size: 11px;
  font-weight: 650;
}

.iot-account-dropdown > a:hover {
  background: #f2f7fc;
  color: #176fcf;
}

.iot-account-dropdown > a > span {
  width: 17px;
  color: #6d9bd0;
  text-align: center;
}

.iot-account-dropdown hr {
  height: 1px;
  margin: 6px 4px;
  border: 0;
  background: rgba(50, 96, 144, 0.1);
}

.iot-account-dropdown > a.iot-account-logout {
  color: #a84a4a;
}

.iot-account-dropdown > a.iot-account-logout > span {
  color: #c56b6b;
}

.iot-account-dropdown > a.iot-account-logout:hover {
  background: #fff4f4;
  color: #9c3434;
}

@media (max-width: 620px) {
  .iot-account-name {
    max-width: 105px;
  }

  .iot-account-dropdown {
    width: min(220px, calc(100vw - 24px));
  }
}


/* QBT_IOT_CORE_V2 */
.iot-kit-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.iot-kit-card {
  border: 1px solid var(--iot-line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(51, 91, 128, 0.055);
}

.iot-kit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.iot-kit-card h2 {
  margin: 5px 0 0;
  color: #203f59;
  font-size: 18px;
}

.iot-kit-model {
  color: #6e88a1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.iot-kit-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(98, 128, 158, 0.13);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f5f8fb;
  color: #74889c;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.iot-kit-status.is-online {
  border-color: rgba(16, 185, 129, 0.13);
  background: #ecfbf5;
  color: #12825f;
}

.iot-kit-status.is-unpaired {
  border-color: rgba(22, 119, 255, 0.12);
  background: #eef6ff;
  color: #2772c5;
}

.iot-kit-meta {
  display: grid;
  margin: 20px 0 0;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.iot-kit-meta div {
  min-width: 0;
  border: 1px solid rgba(45, 107, 169, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: #f9fcff;
}

.iot-kit-meta dt {
  color: #91a2b2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.iot-kit-meta dd {
  margin: 5px 0 0;
  overflow: hidden;
  color: #4c677f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-kit-meta code {
  font-size: 9px;
}

.iot-kit-empty {
  display: grid;
  min-height: 340px;
  margin-top: 28px;
  place-items: center;
  grid-template-columns: 160px minmax(0, 460px);
  justify-content: center;
  gap: 34px;
  border: 1px dashed rgba(39, 115, 193, 0.18);
  border-radius: 22px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.62);
}

.iot-kit-empty h2 {
  margin: 0;
  color: #203f59;
}

.iot-kit-empty p:not(.iot-kicker) {
  color: #7890a5;
  font-size: 12px;
  line-height: 1.65;
}

.iot-form-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.iot-back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #52718d;
  font-size: 12px;
  font-weight: 700;
}

.iot-form-card {
  border: 1px solid var(--iot-line);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--iot-shadow);
}

.iot-form-card h1 {
  margin: 0;
  color: #183852;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.iot-form-card > p:not(.iot-kicker):not(.iot-secret-warning) {
  margin: 9px 0 0;
  color: #768da2;
  font-size: 12px;
  line-height: 1.65;
}

.iot-kit-form {
  display: grid;
  margin-top: 24px;
  gap: 16px;
}

.iot-kit-form label {
  display: grid;
  gap: 7px;
}

.iot-kit-form label > span {
  color: #4c677f;
  font-size: 11px;
  font-weight: 760;
}

.iot-kit-form input,
.iot-kit-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(47, 103, 158, 0.16);
  border-radius: 12px;
  padding: 0 13px;
  background: #fbfdff;
  color: #243f58;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.iot-kit-form input:focus,
.iot-kit-form select:focus {
  border-color: rgba(22, 119, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
}

.iot-form-note {
  display: flex;
  gap: 9px;
  border: 1px solid rgba(22, 119, 255, 0.1);
  border-radius: 12px;
  padding: 11px 12px;
  background: #f3f8ff;
  color: #70879d;
  font-size: 10px;
}

.iot-form-note strong {
  flex: 0 0 auto;
  color: #2672c3;
}

.iot-form-error {
  margin-top: 18px;
  border: 1px solid rgba(190, 75, 75, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff5f5;
  color: #a34747;
  font-size: 11px;
}

.iot-secret-card {
  overflow: hidden;
}

.iot-secret-field {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(39, 112, 183, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: #f7fbff;
}

.iot-secret-field.is-secret {
  border-color: rgba(113, 101, 255, 0.14);
  background: #f8f7ff;
}

.iot-secret-field > div {
  min-width: 0;
}

.iot-secret-field small,
.iot-secret-field code {
  display: block;
}

.iot-secret-field small {
  color: #8a9cad;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.iot-secret-field code {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #2d526f;
  font-size: 11px;
}

.iot-copy-button {
  flex: 0 0 auto;
  border: 1px solid rgba(22, 119, 255, 0.13);
  border-radius: 9px;
  padding: 7px 9px;
  background: #ffffff;
  color: #2473c9;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.iot-secret-warning {
  margin: 14px 0 20px;
  border-left: 3px solid #f2b84b;
  padding: 8px 10px;
  background: #fffaf0;
  color: #7c6a48;
  font-size: 10px;
  line-height: 1.6;
}

.iot-dashboard-kit-list {
  display: grid;
  margin-top: 18px;
  gap: 8px;
}

.iot-dashboard-kit-row {
  display: grid;
  min-height: 54px;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid rgba(45, 107, 169, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fbfdff;
}

.iot-dashboard-kit-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #e9f4ff, #e8fbff);
  color: #1677ff;
  font-size: 10px;
  font-weight: 900;
}

.iot-dashboard-kit-row strong,
.iot-dashboard-kit-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-dashboard-kit-row strong {
  color: #35546e;
  font-size: 11px;
}

.iot-dashboard-kit-row small {
  margin-top: 3px;
  color: #90a1b1;
  font-size: 8px;
}

@media (max-width: 760px) {
  .iot-kit-grid,
  .iot-kit-meta {
    grid-template-columns: 1fr;
  }

  .iot-kit-empty {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* QBT_IOT_CORE_V21 */
.iot-kit-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.iot-kit-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.2);
  box-shadow: 0 16px 38px rgba(41, 91, 137, 0.09);
}

.iot-kit-status.is-paired {
  border-color: rgba(113, 101, 255, 0.13);
  background: #f2f0ff;
  color: #6659d8;
}

.iot-kit-status.is-offline {
  border-color: rgba(239, 155, 50, 0.16);
  background: #fff7ea;
  color: #a66a18;
}

.iot-kit-status.is-revoked {
  border-color: rgba(190, 75, 75, 0.14);
  background: #fff2f2;
  color: #a34747;
}

.iot-kit-detail-shell {
  width: min(840px, calc(100% - 32px));
}

.iot-kit-detail-shell .iot-form-card + .iot-form-card {
  margin-top: 16px;
}

.iot-kit-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.iot-kit-detail-head > div {
  min-width: 0;
}

.iot-kit-detail-head p:last-child {
  margin-top: 8px !important;
}

.iot-kit-detail-head code {
  color: #607b94;
  font-size: 11px;
}

.iot-kit-detail-grid {
  display: grid;
  margin: 24px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.iot-kit-detail-grid > div {
  min-width: 0;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 13px;
  padding: 12px;
  background: #f9fcff;
}

.iot-kit-detail-grid dt {
  color: #91a3b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.iot-kit-detail-grid dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: #405f78;
  font-size: 11px;
}

.iot-pairing-note,
.iot-credential-once {
  margin-top: 20px;
  border: 1px solid rgba(22, 119, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(
      120deg,
      rgba(238, 247, 255, 0.96),
      rgba(241, 252, 255, 0.9)
    );
}

.iot-pairing-note strong,
.iot-credential-once > strong {
  color: #2c5c82;
  font-size: 11px;
}

.iot-pairing-note p,
.iot-credential-once > p {
  margin: 6px 0 0;
  color: #718a9f;
  font-size: 10px;
  line-height: 1.6;
}

.iot-credential-once {
  border-color: rgba(113, 101, 255, 0.13);
  background:
    linear-gradient(
      120deg,
      rgba(247, 245, 255, 0.98),
      rgba(241, 249, 255, 0.94)
    );
}

.iot-credential-actions {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.iot-button-danger {
  border: 1px solid rgba(185, 66, 66, 0.14);
  background: #fff4f4;
  color: #a13d3d;
}

.iot-button-danger:hover {
  border-color: rgba(185, 66, 66, 0.24);
  background: #ffeded;
}

.iot-protocol-card h2 {
  margin: 0 0 18px;
  color: #203f59;
  font-size: 20px;
}

.iot-protocol-step {
  display: grid;
  min-height: 62px;
  align-items: center;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  border-top: 1px solid rgba(50, 96, 144, 0.08);
  padding: 11px 0;
}

.iot-protocol-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #eaf4ff;
  color: #1677ff;
  font-size: 10px;
  font-weight: 850;
}

.iot-protocol-step strong,
.iot-protocol-step code,
.iot-protocol-step small {
  display: block;
}

.iot-protocol-step strong {
  color: #3f5e77;
  font-size: 11px;
}

.iot-protocol-step code {
  margin-top: 3px;
  color: #176fcf;
  font-size: 10px;
}

.iot-protocol-step small {
  margin-top: 4px;
  color: #8a9dad;
  font-size: 9px;
}

.iot-protocol-foot {
  margin: 12px 0 0;
  border-left: 3px solid #16b9d4;
  padding: 7px 10px;
  background: #f2fbfd;
  color: #648196;
  font-size: 10px;
}

@media (max-width: 720px) {
  .iot-kit-detail-head {
    flex-direction: column;
  }

  .iot-kit-detail-grid {
    grid-template-columns: 1fr;
  }

  .iot-credential-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .iot-credential-actions form,
  .iot-credential-actions button {
    width: 100%;
  }
}


/* QBT_IOT_CORE_V22 */
.iot-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.iot-section-head h2 {
  margin: 0;
  color: #203f59;
  font-size: 19px;
}

.iot-text-link {
  color: #2672c3;
  font-size: 10px;
  font-weight: 750;
}

.iot-bus-list {
  display: grid;
  margin-top: 18px;
  gap: 10px;
}

.iot-bus-card {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.6fr);
  gap: 18px;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 14px;
  padding: 14px;
  background: #f9fcff;
}

.iot-bus-card > div:first-child strong,
.iot-bus-index {
  display: block;
}

.iot-bus-index {
  color: #1677ff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.iot-bus-card > div:first-child strong {
  margin-top: 4px;
  color: #375873;
  font-size: 12px;
}

.iot-bus-card dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.iot-bus-card dt {
  color: #91a2b2;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.iot-bus-card dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #526f88;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-device-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid rgba(45, 107, 169, 0.08);
  border-radius: 14px;
}

.iot-device-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.iot-device-table th,
.iot-device-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(45, 107, 169, 0.07);
  color: #587189;
  font-size: 9px;
  text-align: left;
  white-space: nowrap;
}

.iot-device-table th {
  background: #f7fbff;
  color: #8598aa;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.iot-device-table tbody tr:last-child td {
  border-bottom: 0;
}

.iot-device-table a {
  color: #176fcf;
  font-weight: 750;
}

.iot-registry-empty {
  margin-top: 18px;
  border: 1px dashed rgba(39, 115, 193, 0.18);
  border-radius: 14px;
  padding: 18px;
  background: #fbfdff;
}

.iot-registry-empty strong {
  color: #405f78;
  font-size: 11px;
}

.iot-registry-empty p {
  margin: 6px 0 0;
  color: #8195a8;
  font-size: 10px;
  line-height: 1.6;
}

.iot-device-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.iot-device-card {
  display: block;
  min-width: 0;
  border: 1px solid var(--iot-line);
  border-radius: 18px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(49, 88, 124, 0.05);
  color: inherit;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.iot-device-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.2);
  box-shadow: 0 15px 34px rgba(49, 88, 124, 0.09);
}

.iot-device-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.iot-device-slave {
  display: grid;
  min-width: 30px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #eaf4ff;
  color: #1677ff;
  font-size: 9px;
  font-weight: 900;
}

.iot-driver-state {
  display: inline-flex;
  border: 1px solid rgba(113, 101, 255, 0.11);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f4f2ff;
  color: #7367d8;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.iot-device-card h2 {
  margin: 14px 0 0;
  overflow: hidden;
  color: #294a64;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-device-card > p {
  margin: 5px 0 0;
  color: #899cad;
  font-size: 9px;
}

.iot-device-card dl {
  display: grid;
  margin: 16px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.iot-device-card dl div {
  min-width: 0;
  border-radius: 10px;
  padding: 8px;
  background: #f8fbfe;
}

.iot-device-card dt {
  color: #94a4b3;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.iot-device-card dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #59738b;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .iot-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iot-bus-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .iot-device-grid {
    grid-template-columns: 1fr;
  }

  .iot-bus-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* QBT_IOT_CORE_V23 */
.iot-driver-state.is-bound {
  border-color: rgba(16, 185, 129, 0.15);
  background: #ecfbf5;
  color: #11835f;
}

.iot-driver-proof {
  display: grid;
  margin-top: 20px;
  align-items: center;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 15px;
  padding: 14px;
  background:
    linear-gradient(
      120deg,
      rgba(238, 253, 247, 0.96),
      rgba(241, 250, 255, 0.94)
    );
}

.iot-driver-proof-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #0d8f70,
      #20a8bc
    );
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 22px rgba(16, 151, 127, 0.16);
}

.iot-driver-proof strong {
  color: #2f5e54;
  font-size: 11px;
}

.iot-driver-proof p {
  margin: 5px 0 0;
  color: #728f88;
  font-size: 9px;
  line-height: 1.65;
}

.iot-runtime-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.iot-runtime-card {
  min-width: 0;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 14px;
  padding: 13px;
  background:
    linear-gradient(
      150deg,
      #ffffff,
      #f8fbff
    );
}

.iot-runtime-card small,
.iot-runtime-card strong,
.iot-runtime-card code {
  display: block;
}

.iot-runtime-card small {
  overflow: hidden;
  color: #8b9eaf;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.iot-runtime-card strong {
  margin-top: 9px;
  color: #284c68;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.iot-runtime-card strong span {
  color: #7790a4;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.iot-runtime-card code {
  margin-top: 7px;
  color: #3d83c8;
  font-size: 8px;
}

@media (max-width: 900px) {
  .iot-runtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .iot-driver-proof {
    grid-template-columns: 1fr;
  }

  .iot-runtime-grid {
    grid-template-columns: 1fr;
  }
}


/* QBT_IOT_CORE_V24 */
.iot-profile-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.iot-profile-card {
  display: block;
  min-width: 0;
  border: 1px solid var(--iot-line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(49, 88, 124, 0.05);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.iot-profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.2);
  box-shadow: 0 15px 34px rgba(49, 88, 124, 0.09);
}

.iot-profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.iot-profile-card h2 {
  margin: 5px 0 0;
  color: #294a64;
  font-size: 15px;
}

.iot-profile-card > p {
  margin: 14px 0 0;
  color: #889bad;
  font-size: 9px;
}

.iot-profile-form-shell,
.iot-profile-detail-shell {
  width: min(980px, calc(100% - 32px));
}

.iot-profile-form {
  margin-top: 22px;
}

.iot-profile-param-grid {
  display: grid;
  margin: 18px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.iot-profile-param {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 14px;
  padding: 12px;
  background: #f9fcff;
}

.iot-profile-param > span strong,
.iot-profile-param > span small {
  display: block;
}

.iot-profile-param > span strong {
  color: #2f5878;
  font-size: 10px;
}

.iot-profile-param > span small {
  margin-top: 3px;
  color: #8da0b1;
  font-size: 8px;
}

.iot-profile-param input,
.iot-profile-param select,
.iot-profile-compare-form select {
  width: 100%;
  border: 1px solid rgba(45, 107, 169, 0.13);
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
  color: #3e5e77;
  font: inherit;
  font-size: 10px;
  outline: none;
}

.iot-profile-param input:focus,
.iot-profile-param select:focus,
.iot-profile-compare-form select:focus {
  border-color: rgba(22, 119, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.07);
}

.iot-param-input-wrap {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.iot-param-input-wrap em {
  color: #71899e;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.iot-readonly-banner {
  display: flex;
  margin: 16px 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(22, 185, 212, 0.12);
  border-radius: 13px;
  padding: 11px 13px;
  background: #f1fbfd;
}

.iot-readonly-banner strong {
  color: #2d6d78;
  font-size: 10px;
}

.iot-readonly-banner span {
  color: #78919d;
  font-size: 9px;
  text-align: right;
}

.iot-profile-value-list {
  display: grid;
  margin-top: 20px;
  gap: 7px;
}

.iot-profile-value-list article {
  display: grid;
  min-height: 54px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid rgba(45, 107, 169, 0.08);
}

.iot-profile-value-list article:last-child {
  border-bottom: 0;
}

.iot-profile-value-list strong,
.iot-profile-value-list small {
  display: block;
}

.iot-profile-value-list strong {
  color: #345771;
  font-size: 10px;
}

.iot-profile-value-list small {
  margin-top: 3px;
  color: #8a9dad;
  font-size: 8px;
}

.iot-profile-value-list article > span {
  color: #244a69;
  font-size: 12px;
  font-weight: 800;
}

.iot-profile-value-list em {
  color: #8095a7;
  font-size: 8px;
  font-style: normal;
}

.iot-profile-compare-form {
  display: grid;
  margin-top: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.iot-diff-summary {
  display: flex;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 7px;
}

.iot-diff-summary span {
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f8fbff;
  color: #667f94;
  font-size: 8px;
  font-weight: 800;
}

.iot-diff-state {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.iot-diff-state.is-match {
  background: #eafaf3;
  color: #13835f;
}

.iot-diff-state.is-diff {
  background: #fff5e9;
  color: #a76a16;
}

.iot-diff-state.is-missing {
  background: #f1f4f7;
  color: #748697;
}

@media (max-width: 900px) {
  .iot-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .iot-profile-grid,
  .iot-profile-param-grid {
    grid-template-columns: 1fr;
  }

  .iot-profile-compare-form {
    grid-template-columns: 1fr;
  }

  .iot-readonly-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .iot-readonly-banner span {
    text-align: left;
  }
}


/* QBT_IOT_CORE_V25 */
.iot-plan-create-form {
  display: flex;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iot-plan-create-form small {
  max-width: 520px;
  color: #7f93a5;
  font-size: 8px;
  line-height: 1.55;
  text-align: right;
}

.iot-plan-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.iot-plan-card {
  display: block;
  min-width: 0;
  border: 1px solid var(--iot-line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(49, 88, 124, 0.05);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.iot-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.2);
  box-shadow: 0 15px 34px rgba(49, 88, 124, 0.09);
}

.iot-plan-card-head,
.iot-plan-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.iot-plan-card h2 {
  margin: 5px 0 0;
  color: #294a64;
  font-size: 15px;
}

.iot-plan-card > p {
  margin: 14px 0;
  color: #879aab;
  font-size: 9px;
}

.iot-plan-card-foot {
  border-top: 1px solid rgba(45, 107, 169, 0.07);
  padding-top: 10px;
}

.iot-plan-card-foot code {
  color: #4d75a1;
  font-size: 8px;
}

.iot-plan-card-foot span {
  color: #6f8d7e;
  font-size: 8px;
  font-weight: 800;
}

.iot-plan-status {
  display: inline-flex;
  border: 1px solid rgba(113, 101, 255, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f4f2ff;
  color: #6d61d1;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.iot-plan-detail-shell {
  width: min(1040px, calc(100% - 32px));
}

.iot-plan-hash {
  display: grid;
  margin-top: 18px;
  gap: 6px;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 12px;
  padding: 11px 12px;
  background: #f8fbff;
}

.iot-plan-hash span {
  color: #8c9ead;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.iot-plan-hash code {
  overflow-wrap: anywhere;
  color: #3d6e9b;
  font-size: 9px;
}

.iot-plan-check-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.iot-plan-check-grid article {
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 13px;
  padding: 12px;
  background: #f9fcff;
}

.iot-plan-check-grid span,
.iot-plan-check-grid strong {
  display: block;
}

.iot-plan-check-grid span {
  color: #8c9ead;
  font-size: 8px;
}

.iot-plan-check-grid strong {
  margin-top: 5px;
  color: #315c7c;
  font-size: 10px;
}

@media (max-width: 900px) {
  .iot-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iot-plan-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .iot-plan-create-form {
    align-items: stretch;
    flex-direction: column;
  }

  .iot-plan-create-form small {
    text-align: left;
  }

  .iot-plan-grid,
  .iot-plan-check-grid {
    grid-template-columns: 1fr;
  }
}


/* QBT_IOT_CORE_V26 */
.iot-plan-status.is-approved {
  border-color: rgba(16, 185, 129, 0.16);
  background: #ecfbf5;
  color: #11835f;
}

.iot-plan-status.is-rejected {
  border-color: rgba(190, 75, 75, 0.14);
  background: #fff2f2;
  color: #a34747;
}

.iot-plan-status.is-expired {
  border-color: rgba(239, 155, 50, 0.16);
  background: #fff7ea;
  color: #a66a18;
}

.iot-decision-card,
.iot-execution-contract {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.iot-decision-card > div,
.iot-execution-contract > div {
  min-width: 0;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 13px;
  padding: 11px;
  background: #f9fcff;
}

.iot-decision-card span,
.iot-decision-card strong,
.iot-execution-contract span,
.iot-execution-contract code {
  display: block;
}

.iot-decision-card span,
.iot-execution-contract span {
  color: #8b9dad;
  font-size: 8px;
}

.iot-decision-card strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #315a79;
  font-size: 9px;
}

.iot-execution-contract code {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #3c6d99;
  font-size: 8px;
}

.iot-decision-reason {
  margin: 12px 0 0;
  border-left: 3px solid rgba(22, 119, 255, 0.28);
  padding: 8px 10px;
  background: #f7fbff;
  color: #6f8598;
  font-size: 9px;
}

.iot-approval-actions {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.iot-approval-actions form {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(45, 107, 169, 0.09);
  border-radius: 14px;
  padding: 13px;
  background: #f9fcff;
}

.iot-approval-actions input {
  width: 100%;
  border: 1px solid rgba(45, 107, 169, 0.13);
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
  color: #3e5e77;
  font: inherit;
  font-size: 9px;
}

.iot-execution-prepare {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iot-execution-prepare small {
  color: #7d92a5;
  font-size: 8px;
  text-align: right;
}

.iot-execution-token {
  display: grid;
  margin-top: 16px;
  gap: 7px;
  border: 1px solid rgba(113, 101, 255, 0.14);
  border-radius: 14px;
  padding: 13px;
  background: #f8f7ff;
}

.iot-execution-token strong {
  color: #5b50b5;
  font-size: 10px;
}

.iot-execution-token code {
  overflow-wrap: anywhere;
  color: #44399c;
  font-size: 9px;
}

.iot-execution-token small {
  color: #827bb1;
  font-size: 8px;
}

@media (max-width: 800px) {
  .iot-decision-card,
  .iot-execution-contract,
  .iot-approval-actions {
    grid-template-columns: 1fr;
  }

  .iot-execution-prepare {
    align-items: stretch;
    flex-direction: column;
  }

  .iot-execution-prepare small {
    text-align: left;
  }
}


/* QBT_IOT_CORE_V30 */
.iot-write-runtime-banner {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(190, 75, 75, 0.14);
  border-radius: 13px;
  padding: 11px 13px;
  background: #fff4f4;
}

.iot-write-runtime-banner.is-enabled {
  border-color: rgba(239, 155, 50, 0.18);
  background: #fff8ed;
}

.iot-write-runtime-banner strong {
  color: #9b4545;
  font-size: 10px;
}

.iot-write-runtime-banner.is-enabled strong {
  color: #9a651a;
}

.iot-write-runtime-banner span {
  max-width: 660px;
  color: #7f909f;
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.iot-execution-arm {
  display: grid;
  margin-top: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.iot-execution-arm input {
  min-width: 0;
  border: 1px solid rgba(45, 107, 169, 0.13);
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
  color: #3e5e77;
  font: inherit;
  font-size: 9px;
}

.iot-execution-arm small {
  grid-column: 1 / -1;
  color: #7d92a5;
  font-size: 8px;
}

@media (max-width: 700px) {
  .iot-write-runtime-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .iot-write-runtime-banner span {
    text-align: left;
  }

  .iot-execution-arm {
    grid-template-columns: 1fr;
  }
}
