.home-command-home {
  gap: 16px;
}

.home-mode-switch {
  justify-self: stretch;
  position: sticky;
  top: calc(env(safe-area-inset-top) + 4px);
  z-index: 5;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(6, 13, 21, 0.86);
  backdrop-filter: blur(18px);
}

.home-mode-switch .orbit-home-view-switch__item {
  min-height: 36px;
  border-radius: 15px;
  color: rgba(220, 231, 239, 0.68);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.home-mode-switch .orbit-home-view-switch__item--active {
  border: 1px solid rgba(115, 245, 199, 0.34);
  background: rgba(115, 245, 199, 0.13);
  color: #fbf7ee;
}

.home-command-stage {
  gap: 14px;
  padding: 20px 18px 17px;
  border-radius: 30px;
}

.home-command-stage .orbit-stage__copy {
  gap: 10px;
}

.home-command-stage .orbit-stage__copy h1 {
  max-width: 13.5ch;
  font-size: clamp(1.88rem, 8vw, 2.45rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.home-command-stage .orbit-stage__copy p {
  max-width: 33ch;
  font-size: 0.95rem;
  line-height: 1.38;
}

.home-command-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-command-cell {
  display: grid;
  min-height: 96px;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.home-command-cell span,
.home-record-panel span,
.home-next-strip span,
.home-summary-card span,
.home-chart-strip > article > span,
.home-device-visual span {
  color: rgba(220, 231, 239, 0.62);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.home-command-cell strong {
  color: #fbf7ee;
  font-size: clamp(0.98rem, 3.8vw, 1.18rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-command-cell p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(220, 231, 239, 0.72);
  font-size: 0.72rem;
  line-height: 1.26;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-command-cell--trusted {
  border-color: rgba(115, 245, 199, 0.2);
  background: rgba(115, 245, 199, 0.065);
}

.home-command-cell--risk {
  border-color: rgba(255, 132, 105, 0.2);
  background: rgba(255, 132, 105, 0.07);
}

.home-command-cell--index {
  border-color: rgba(132, 213, 255, 0.17);
  background: rgba(132, 213, 255, 0.055);
}

.home-command-stage__visual {
  padding: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(132, 213, 255, 0.16), transparent 17rem),
    rgba(4, 12, 20, 0.72);
}

.home-record-visual {
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.home-record-panel,
.home-next-strip,
.home-device-visual article,
.home-summary-card,
.home-chart-strip article {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.047);
}

.home-record-panel {
  display: grid;
  min-height: 164px;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.home-record-panel strong {
  color: #fbf7ee;
  font-size: 1.28rem;
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-record-panel p,
.home-next-strip p,
.home-device-visual p,
.home-summary-card p {
  margin: 0;
  color: rgba(220, 231, 239, 0.74);
  font-size: 0.82rem;
  line-height: 1.34;
}

.home-record-panel em,
.home-next-strip small {
  color: rgba(220, 231, 239, 0.58);
  font-size: 0.74rem;
  font-style: normal;
  line-height: 1.25;
}

.home-carry-band,
.home-leak-meter {
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.home-carry-band i,
.home-leak-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.home-carry-band i {
  background: linear-gradient(90deg, #73f5c7, #53acff);
}

.home-leak-meter i {
  background: linear-gradient(90deg, #ff8469, #ffd28a);
}

.home-next-strip {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.home-next-strip strong {
  color: #fbf7ee;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-command-actions .shell-action {
  min-height: 42px;
  flex: 1 1 auto;
}

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

.home-summary-card {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.home-summary-card strong {
  color: #fbf7ee;
  font-size: 1.06rem;
  font-weight: 790;
  letter-spacing: -0.04em;
}

.home-summary-card__action {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.home-chart-strip {
  display: grid;
  gap: 10px;
}

.home-chart-strip article {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 15px;
}

.home-device-visual {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.home-device-visual article {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.home-device-visual strong {
  color: #fbf7ee;
  font-size: 1.05rem;
  font-weight: 790;
  letter-spacing: -0.035em;
}

.home-device-visual__backup {
  border-color: rgba(115, 245, 199, 0.18);
  background: rgba(115, 245, 199, 0.06);
}

.home-command-home--empty .home-command-stage__visual {
  padding: 12px;
}

@media (min-width: 410px) {
  .home-support-grid,
  .home-chart-strip,
  .home-device-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-chart-strip article,
  .home-device-visual__backup {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .home-command-proof,
  .home-record-visual__pair {
    grid-template-columns: 1fr;
  }

  .home-command-stage .orbit-stage__copy h1 {
    max-width: 11.5ch;
  }
}
