.page-smart-home {
  background:
    radial-gradient(circle at top center, rgba(88, 219, 255, 0.12), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(120, 94, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(6, 10, 22, 0.98), rgba(4, 8, 18, 1));
}

.smart-home-page {
  gap: 18px;
}

.smart-home-header {
  align-items: end;
}

.smart-home-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(114, 223, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 24, 44, 0.88), rgba(7, 12, 25, 0.95)),
    radial-gradient(circle at top left, rgba(85, 221, 255, 0.12), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 20px 44px rgba(0, 0, 0, 0.28);
}

.smart-home-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.smart-home-meta {
  font-size: 13px;
  color: rgba(198, 220, 242, 0.74);
}

.smart-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.smart-home-hub-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.smart-home-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 229, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    0 24px 48px rgba(3, 18, 34, 0.32),
    0 0 0 1px rgba(96, 214, 255, 0.12);
}

.smart-home-hub-card:focus-visible {
  outline: 2px solid rgba(130, 232, 255, 0.7);
  outline-offset: 3px;
}

.smart-home-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.smart-home-brand {
  display: grid;
  gap: 10px;
}

.smart-home-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(242, 249, 255, 0.96);
  background: rgba(255,255,255,0.04);
}

.smart-home-logo--sonos {
  letter-spacing: 0.22em;
  color: rgba(121, 233, 255, 0.98);
}

.smart-home-logo--alexa {
  color: rgba(145, 210, 255, 0.98);
}

.smart-home-logo--simplisafe {
  font-size: 16px;
  letter-spacing: 0.12em;
  color: rgba(141, 255, 207, 0.96);
}

.smart-home-logo--nest {
  letter-spacing: 0.18em;
  color: rgba(255, 188, 112, 0.96);
}

.smart-home-title {
  font-size: 24px;
  font-weight: 700;
  color: rgba(240, 248, 255, 0.98);
}

.smart-home-route {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(168, 199, 229, 0.66);
}

.smart-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.smart-home-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.smart-home-badge--ok {
  color: #7df6b3;
  background: rgba(31, 85, 58, 0.32);
  border: 1px solid rgba(125, 246, 179, 0.18);
}

.smart-home-badge--warn {
  color: #ffd088;
  background: rgba(90, 59, 24, 0.3);
  border: 1px solid rgba(255, 208, 136, 0.18);
}

.smart-home-badge--error {
  color: #ff8f8f;
  background: rgba(92, 30, 36, 0.32);
  border: 1px solid rgba(255, 143, 143, 0.2);
}

.smart-home-summary {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(231, 241, 250, 0.9);
}

.smart-home-detail {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(178, 201, 225, 0.76);
}

.smart-home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(163, 190, 216, 0.72);
}

.smart-home-link-label {
  color: rgba(131, 226, 255, 0.95);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.smart-home-empty {
  padding: 26px;
  text-align: center;
  color: rgba(194, 216, 237, 0.76);
}

@media (max-width: 900px) {
  .smart-home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .smart-home-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .smart-home-card-head,
  .smart-home-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .smart-home-logo {
    min-width: 0;
    width: fit-content;
  }
}
