/* ==========================================================================
   大锤智联（projects/iot）· 极简白 × 阳极铝 × 钴蓝暖黄工业设计语言
   完整适配 1:1 珠光日光浅色 & 曜石星夜深色模式 + 390/360px 零溢出
   ========================================================================== */

:root {
  --iot-bg: #ffffff;
  --iot-surface: #f5f7fb;
  --iot-card: #ffffff;
  --iot-card-glass: rgba(255, 255, 255, 0.88);
  --iot-ink: #0f172a;
  --iot-ink-2: #334155;
  --iot-muted: #5b677d;
  --iot-line: rgba(15, 23, 42, 0.09);
  --iot-line-strong: rgba(15, 23, 42, 0.16);
  --iot-cobalt: #2563eb;
  --iot-cobalt-soft: rgba(37, 99, 235, 0.1);
  --iot-amber: #d97706;
  --iot-amber-soft: rgba(245, 158, 11, 0.14);
  --iot-emerald: #059669;
  --iot-emerald-soft: rgba(16, 185, 129, 0.13);
  --iot-rose: #dc2626;
  --iot-rose-soft: rgba(239, 68, 68, 0.12);
  --iot-ice: #0284c7;
  --iot-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --iot-shadow-lg: 0 18px 46px rgba(15, 23, 42, 0.1);
  --iot-hw-chassis: linear-gradient(145deg, #ffffff 0%, #eef2f7 100%);
  --iot-hw-bezel: #dde3ec;
  --iot-grid-line: rgba(15, 23, 42, 0.045);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --iot-bg: #0b0f19;
  --iot-surface: #111827;
  --iot-card: #151e30;
  --iot-card-glass: rgba(21, 30, 48, 0.88);
  --iot-ink: #f8fafc;
  --iot-ink-2: #cbd5e1;
  --iot-muted: #94a3b8;
  --iot-line: rgba(255, 255, 255, 0.1);
  --iot-line-strong: rgba(255, 255, 255, 0.18);
  --iot-cobalt: #60a5fa;
  --iot-cobalt-soft: rgba(96, 165, 250, 0.16);
  --iot-amber: #fbbf24;
  --iot-amber-soft: rgba(251, 191, 36, 0.18);
  --iot-emerald: #34d399;
  --iot-emerald-soft: rgba(52, 211, 153, 0.16);
  --iot-rose: #f87171;
  --iot-rose-soft: rgba(248, 113, 113, 0.16);
  --iot-ice: #38bdf8;
  --iot-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --iot-shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.5);
  --iot-hw-chassis: linear-gradient(145deg, #222c40 0%, #172033 100%);
  --iot-hw-bezel: #32405a;
  --iot-grid-line: rgba(255, 255, 255, 0.045);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --iot-bg: #0b0f19;
    --iot-surface: #111827;
    --iot-card: #151e30;
    --iot-card-glass: rgba(21, 30, 48, 0.88);
    --iot-ink: #f8fafc;
    --iot-ink-2: #cbd5e1;
    --iot-muted: #94a3b8;
    --iot-line: rgba(255, 255, 255, 0.1);
    --iot-line-strong: rgba(255, 255, 255, 0.18);
    --iot-cobalt: #60a5fa;
    --iot-cobalt-soft: rgba(96, 165, 250, 0.16);
    --iot-amber: #fbbf24;
    --iot-amber-soft: rgba(251, 191, 36, 0.18);
    --iot-emerald: #34d399;
    --iot-emerald-soft: rgba(52, 211, 153, 0.16);
    --iot-rose: #f87171;
    --iot-rose-soft: rgba(248, 113, 113, 0.16);
    --iot-ice: #38bdf8;
    --iot-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --iot-shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.5);
    --iot-hw-chassis: linear-gradient(145deg, #222c40 0%, #172033 100%);
    --iot-hw-bezel: #32405a;
    --iot-grid-line: rgba(255, 255, 255, 0.045);
  }
}

.iot-body {
  background: var(--iot-bg);
  color: var(--iot-ink);
  --ink: var(--iot-ink);
  --secondary: var(--iot-muted);
  --rule: var(--iot-line);
  overflow-x: clip;
}

.iot-body * { box-sizing: border-box; }

/* ---- Topbar ---- */
.iot-topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--iot-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--iot-line);
}

.iot-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 60px;
  padding-block: 0.48rem;
}

.iot-brand-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.iot-topbar .identity {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--iot-ink);
  text-decoration: none;
  min-width: 0;
}

.iot-topbar .brand-icon {
  border-radius: 10px;
  flex-shrink: 0;
}

.iot-topbar .wordmark {
  font-weight: 760;
  font-size: 0.96rem;
  color: var(--iot-ink);
}

.iot-topbar .brand-name {
  font-size: 0.88rem;
  font-weight: 680;
  color: var(--iot-muted);
  white-space: nowrap;
}

.iot-home-back {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--iot-line);
  color: var(--iot-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s;
}
.iot-home-back:hover { background: var(--iot-surface); color: var(--iot-ink); }

.iot-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-inline: auto;
}
.iot-nav a {
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  color: var(--iot-ink-2);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.iot-nav a:hover { background: var(--iot-surface); color: var(--iot-cobalt); }

.iot-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--iot-line);
  background: var(--iot-card);
  color: var(--iot-ink-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.iot-theme-btn:hover { background: var(--iot-surface); color: var(--iot-ink); border-color: var(--iot-line-strong); }

.iot-topbar .site-account-pill {
  flex-shrink: 0;
  border-color: var(--iot-line);
  background: var(--iot-card);
  color: var(--iot-ink);
}

/* ---- Buttons ---- */
.iot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 42px;
  padding: 0.56rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 660;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.iot-btn:active { transform: translateY(1px); }
.iot-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.iot-btn--primary {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.iot-btn--primary:hover { background: #1e40af; }
.iot-btn--glass {
  background: var(--iot-card);
  border-color: var(--iot-line-strong);
  color: var(--iot-ink);
}
.iot-btn--glass:hover { background: var(--iot-surface); }
.iot-btn--dark-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}
.iot-btn--dark-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.iot-btn--full { width: 100%; }

.iot-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--iot-line-strong);
  background: var(--iot-card);
  color: var(--iot-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 640;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.iot-mini-btn:hover { background: var(--iot-surface); }
.iot-mini-btn--dark { background: #0f172a; border-color: transparent; color: #f8fafc; }
.iot-mini-btn--dark:hover { background: #1e293b; }
html[data-theme="dark"] .iot-mini-btn--dark { background: #f8fafc; color: #0f172a; }
.iot-mini-btn--amber { background: #f59e0b; border-color: transparent; color: #0f172a; }
.iot-mini-btn--amber:hover { background: #d97706; color: #ffffff; }

.iot-text-link {
  color: var(--iot-muted);
  font-size: 0.86rem;
  font-weight: 620;
  text-decoration: none;
  padding: 0.3rem 0.4rem;
}
.iot-text-link:hover { color: var(--iot-cobalt); }

.iot-link-btn {
  border: 0;
  background: transparent;
  color: #93c5fd;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.iot-link-btn:hover { text-decoration: underline; }

/* ---- Band 1: Hero + Pixel-Locked Collapsible Bar ---- */
.iot-hero-band {
  position: relative;
  background:
    radial-gradient(62% 72% at 88% 8%, rgba(37, 99, 235, 0.11), transparent 64%),
    radial-gradient(45% 65% at 8% 86%, rgba(245, 158, 11, 0.1), transparent 62%),
    linear-gradient(to right, var(--iot-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--iot-grid-line) 1px, transparent 1px),
    var(--iot-bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  border-bottom: 1px solid var(--iot-line);
}

.iot-hero-compact {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.56rem;
}
html[data-hero-collapsed="true"] .iot-hero-compact { display: flex; }
html[data-hero-collapsed="true"] #iot-hero-full { display: none; }

.iot-compact-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.iot-compact-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--iot-surface);
  border: 1px solid var(--iot-line);
  flex-shrink: 0;
}
.iot-compact-title { font-size: 0.94rem; white-space: nowrap; }
.iot-compact-pill {
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: var(--iot-cobalt-soft);
  color: var(--iot-cobalt);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.iot-compact-tag {
  color: var(--iot-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iot-compact-right {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 0;
}

.iot-compact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 32px;
  padding: 0.3rem 0.74rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--iot-muted);
}
.iot-compact-btn:hover { background: var(--iot-surface); color: var(--iot-ink); }
.iot-compact-btn--subtle { background: var(--iot-cobalt-soft); color: var(--iot-cobalt); }

.iot-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.35rem 2.2rem;
  padding-block: 0.56rem 2.1rem;
  align-items: center;
}

.iot-hero-top-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
  max-width: 100%;
}

.iot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  padding: 0.24rem 0.74rem;
  border-radius: 999px;
  background: var(--iot-card-glass);
  border: 1px solid var(--iot-line);
  font-size: 0.8rem;
  font-weight: 680;
  color: var(--iot-cobalt);
  min-height: 32px;
  min-width: 0;
  max-width: calc(100% - 96px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iot-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.iot-hero-copy h1 {
  margin: 0 0 0.78rem;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.iot-hero-copy h1 span {
  background: linear-gradient(110deg, #1d4ed8 0%, #2563eb 55%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .iot-hero-copy h1 span {
  background: linear-gradient(110deg, #60a5fa 0%, #93c5fd 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .iot-hero-copy h1 span {
    background: linear-gradient(110deg, #60a5fa 0%, #93c5fd 55%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.iot-lead {
  margin: 0 0 1.2rem;
  color: var(--iot-ink-2);
  font-size: 0.98rem;
  line-height: 1.72;
}

.iot-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.iot-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--iot-muted);
}

.iot-spotlight {
  background: var(--iot-card);
  border: 1px solid var(--iot-line);
  border-radius: 22px;
  padding: 0.65rem;
  box-shadow: var(--iot-shadow-lg);
}

.iot-hero-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--iot-surface);
}
.iot-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iot-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.iot-kpi-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.35rem;
  border-radius: 13px;
  background: var(--iot-surface);
  color: var(--iot-ink);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.iot-kpi-cell:hover { transform: translateY(-1px); background: var(--iot-cobalt-soft); }
.iot-kpi-cell strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.iot-kpi-cell span { font-size: 0.72rem; color: var(--iot-muted); margin-top: 0.15rem; white-space: nowrap; }
.iot-kpi-cell--amber strong { color: var(--iot-amber); }

/* ---- Shared Section Heads ---- */
.iot-band {
  padding-block: 3.1rem;
  scroll-margin-top: 76px;
}
.iot-lab-band { background: var(--iot-surface); border-bottom: 1px solid var(--iot-line); }
.iot-matrix-band { background: var(--iot-bg); }
.iot-protocol-band { background: var(--iot-bg); padding-block: 1.4rem 3.2rem; }
.iot-wishlist-band { background: var(--iot-surface); border-top: 1px solid var(--iot-line); border-bottom: 1px solid var(--iot-line); }

.iot-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}
.iot-section-kicker {
  margin: 0 0 0.32rem;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  color: var(--iot-cobalt);
}
.iot-section-head h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.5vw, 1.78rem);
  line-height: 1.25;
}
.iot-section-sub {
  margin: 0.38rem 0 0;
  color: var(--iot-muted);
  font-size: 0.92rem;
  max-width: 46rem;
}

/* ---- Band 2: Virtual Hardware Digital Twin Lab ---- */
.iot-lab-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}
.iot-lab-tabs::-webkit-scrollbar { display: none; }

.iot-lab-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--iot-line-strong);
  background: var(--iot-card);
  color: var(--iot-ink-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 640;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s, color 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.iot-lab-tab:hover { border-color: var(--iot-cobalt); color: var(--iot-cobalt); }
.iot-lab-tab[aria-selected="true"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}
html[data-theme="dark"] .iot-lab-tab[aria-selected="true"] { background: #2563eb; border-color: #2563eb; color: #ffffff; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .iot-lab-tab[aria-selected="true"] { background: #2563eb; border-color: #2563eb; color: #ffffff; }
}

.iot-lab-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 1.2rem;
  align-items: stretch;
}

.iot-twin-panel,
.iot-eco-live {
  background: var(--iot-card);
  border: 1px solid var(--iot-line);
  border-radius: 24px;
  padding: 1.3rem;
  box-shadow: var(--iot-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iot-twin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.iot-twin-header h3 { margin: 0; font-size: 1.08rem; }
.iot-twin-model {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: var(--iot-surface);
  color: var(--iot-muted);
  border: 1px solid var(--iot-line);
}

/* Tactile Hardware Device Chassis inside Lab */
.hw-device-chassis {
  position: relative;
  border-radius: 22px;
  background: var(--iot-hw-chassis);
  border: 2px solid var(--iot-hw-bezel);
  padding: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 26px rgba(15, 23, 42, 0.08);
}

/* 1. NutriScale Fold Digital Twin */
.hw-scale-deck {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}
.hw-fold-arms-visual {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -0.35rem;
}
.hw-fold-arms-visual .hw-arm {
  position: absolute;
  height: 7px;
  width: 96px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1, #f8fafc, #cbd5e1);
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.hw-fold-arms-visual .hw-arm--left { transform: translateX(-54px) rotate(-14deg); }
.hw-fold-arms-visual .hw-arm--right { transform: translateX(54px) rotate(14deg); }
.hw-fold-arms-visual .hw-arm--front { width: 32px; transform: translateY(6px); background: #2563eb; border-color: transparent; }
.hw-fold-arms-visual .hw-pivot-hub {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fafc, #94a3b8);
  border: 2px solid #f59e0b;
}

.hw-fold-pocket {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 196px;
  padding: 1.4rem 1.2rem;
}
.hw-pocket-bar {
  position: relative;
  width: min(370px, 100%);
  min-height: 68px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14), inset 0 2px 2px rgba(255, 255, 255, 0.9);
}
html[data-theme="dark"] .hw-pocket-bar {
  background: linear-gradient(145deg, #27344d 0%, #1a2438 100%);
  border-color: #475569;
  color: #f8fafc;
}
.hw-pocket-arm-line {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  flex-shrink: 0;
}
.hw-pocket-meta { min-width: 0; flex: 1; }
.hw-pocket-meta strong { display: block; font-size: 0.9rem; line-height: 1.25; }
.hw-pocket-meta small { display: block; font-size: 0.74rem; opacity: 0.78; margin-top: 0.15rem; }
.hw-pocket-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #f59e0b;
  background: linear-gradient(145deg, #e2e8f0, #94a3b8);
  flex-shrink: 0;
}
.hw-pocket-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.hw-pocket-tip {
  font-size: 0.82rem;
  color: var(--iot-muted);
  max-width: 30rem;
}
.hw-scale-pad {
  min-height: 92px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--iot-surface) 88%, #cbd5e1);
  border: 1.5px dashed var(--iot-line-strong);
  padding: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.hw-scale-empty { color: var(--iot-muted); font-size: 0.84rem; }
.hw-food-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.64rem;
  border-radius: 999px;
  background: var(--iot-card);
  border: 1px solid var(--iot-line-strong);
  font-size: 0.8rem;
  font-weight: 620;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.07);
}
.hw-scale-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
}
.hw-led-dots { display: flex; gap: 0.4rem; align-items: center; }
.hw-led-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  transition: background 0.2s, box-shadow 0.2s;
}
.hw-led-dot.is-green { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.hw-led-dot.is-amber { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.hw-led-dot.is-red { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.hw-led-dot.is-blue { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }

.hw-led-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.85rem;
  font-weight: 760;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}
.hw-led-number small { font-size: 0.9rem; color: #94a3b8; margin-left: 0.2rem; }

.hw-tare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid #f59e0b;
  background: linear-gradient(145deg, #e2e8f0, #94a3b8);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s;
}
.hw-tare-btn:active { transform: scale(0.94); }

.hw-food-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.hw-food-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.5rem 0.35rem;
  border-radius: 13px;
  border: 1px solid var(--iot-line-strong);
  background: var(--iot-surface);
  color: var(--iot-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 620;
  cursor: pointer;
  transition: transform 0.13s, border-color 0.15s, background 0.15s;
}
.hw-food-btn:hover { border-color: var(--iot-cobalt); background: var(--iot-cobalt-soft); transform: translateY(-1px); }
.hw-food-btn small { font-size: 0.7rem; color: var(--iot-muted); font-weight: 500; }

.hw-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.hw-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 620;
  color: var(--iot-ink-2);
  cursor: pointer;
}

/* 2. BodyScale Digital Twin */
.hw-bodyscale-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  border-radius: 22px;
  background: linear-gradient(155deg, #f8fafc 0%, #e7edf5 100%);
  border: 2px solid #cbd5e1;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  transition: box-shadow 0.35s;
}
html[data-theme="dark"] .hw-bodyscale-pad {
  background: linear-gradient(155deg, #1f293c 0%, #151d2e 100%);
  border-color: #3b4b68;
  color: #f8fafc;
}
.hw-halo-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid #10b981;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.45), inset 0 0 18px rgba(16, 185, 129, 0.25);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hw-halo-ring[data-tone="amber"] {
  border-color: #f59e0b;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.45), inset 0 0 18px rgba(245, 158, 11, 0.25);
}
.hw-halo-ring[data-tone="blue"] {
  border-color: #38bdf8;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45), inset 0 0 18px rgba(56, 189, 248, 0.25);
}
.hw-halo-smile { font-size: 2.1rem; line-height: 1; }
.hw-halo-caption { font-size: 0.78rem; font-weight: 700; margin-top: 0.55rem; }
.hw-scale-digits { font-family: ui-monospace, monospace; font-size: 2.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 3. Focus Knob Digital Twin */
.hw-knob-console {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 1.1rem;
  align-items: center;
}
.hw-eink-screen {
  background: #e9ece6;
  color: #181c1a;
  border: 3px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-family: ui-monospace, 'PingFang SC', monospace;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}
.hw-eink-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  opacity: 0.72;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  padding-bottom: 0.32rem;
  margin-bottom: 0.55rem;
}
.hw-eink-timer {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.hw-eink-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
  font-size: 0.8rem;
}
.hw-eink-tasks li.is-done { text-decoration: line-through; opacity: 0.52; }

.hw-knob-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.hw-rotary-dial {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid #94a3b8;
  background: radial-gradient(circle at 35% 30%, #f8fafc 0%, #cbd5e1 62%, #94a3b8 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.24), inset 0 2px 3px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 800;
  transition: transform 0.2s ease-out;
}
.hw-rotary-dot {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}
.hw-knob-side-key {
  padding: 0.42rem 0.9rem;
  border-radius: 11px;
  border: 0;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #1d4ed8;
  transition: transform 0.1s, box-shadow 0.1s;
}
.hw-knob-side-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #1d4ed8; }

/* 4. Hydration Coaster Digital Twin */
.hw-coaster-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  gap: 0.9rem;
}
.hw-coaster-disc {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e2e8f0);
  border: 4px solid #38bdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.45);
  transition: box-shadow 0.35s, border-color 0.35s;
}
.hw-coaster-disc.is-alert {
  border-color: #38bdf8;
  animation: iotBreatheIce 1.8s ease-in-out infinite;
}
.hw-coaster-disc.is-done {
  border-color: #10b981;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.5);
  animation: none;
}
@keyframes iotBreatheIce {
  0%, 100% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.38), 0 0 0 0 rgba(56, 189, 248, 0.3); }
  50% { box-shadow: 0 0 38px rgba(56, 189, 248, 0.88), 0 0 0 10px rgba(56, 189, 248, 0.12); }
}
.hw-mug-icon { font-size: 2.5rem; transition: transform 0.25s; }
.hw-mug-icon.is-lifted { transform: translateY(-16px) rotate(-10deg); }
.hw-coaster-grams { font-family: ui-monospace, monospace; font-weight: 800; font-size: 1rem; margin-top: 0.2rem; }
.hw-coaster-badge { font-size: 0.72rem; color: #0369a1; font-weight: 700; }

/* 5. Slide Clicker Digital Twin */
.hw-clicker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 26px;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 2px solid #cbd5e1;
  color: #0f172a;
  transition: transform 0.1s;
}
.hw-clicker-bar.is-vibrate { animation: iotVibrate 0.28s linear 2; }
@keyframes iotVibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.hw-clicker-oled {
  background: #090d16;
  color: #f8fafc;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  min-width: 112px;
  text-align: center;
  font-family: ui-monospace, monospace;
}
.hw-clicker-oled strong { display: block; font-size: 1.28rem; }
.hw-clicker-oled small { font-size: 0.68rem; color: #38bdf8; }
.hw-clicker-next {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  background: #f59e0b;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.45);
}
.hw-clicker-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

/* 6. NFC Smart Tag Digital Twin */
.hw-nfc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.hw-nfc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.6rem;
  border-radius: 18px;
  border: 2px solid var(--iot-line-strong);
  background: var(--iot-card);
  color: var(--iot-ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.hw-nfc-tile:hover { transform: translateY(-2px); border-color: var(--iot-cobalt); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14); }
.hw-nfc-tile.is-active { border-color: var(--iot-cobalt); background: var(--iot-cobalt-soft); }
.hw-nfc-tile strong { font-size: 0.86rem; }
.hw-nfc-tile small { font-size: 0.73rem; color: var(--iot-muted); }

/* Right Panel: Ecosystem Live Sync */
.iot-eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.iot-eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--iot-emerald-soft);
  color: var(--iot-emerald);
  font-size: 0.75rem;
  font-weight: 700;
}
.iot-eco-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.iot-eco-metric {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: var(--iot-surface);
  border: 1px solid var(--iot-line);
}
.iot-eco-metric span { display: block; font-size: 0.74rem; color: var(--iot-muted); }
.iot-eco-metric strong { display: block; font-size: 1.24rem; margin-top: 0.15rem; font-variant-numeric: tabular-nums; }

.iot-traffic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.iot-traffic-pill {
  padding: 0.48rem 0.35rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--iot-line);
  background: var(--iot-surface);
}
.iot-traffic-pill[data-level="green"] { background: var(--iot-emerald-soft); color: var(--iot-emerald); border-color: transparent; }
.iot-traffic-pill[data-level="amber"] { background: var(--iot-amber-soft); color: var(--iot-amber); border-color: transparent; }
.iot-traffic-pill[data-level="red"] { background: var(--iot-rose-soft); color: var(--iot-rose); border-color: transparent; }
.iot-traffic-pill small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.85; margin-top: 0.1rem; }

.iot-eco-callout {
  padding: 0.78rem 0.95rem;
  border-radius: 14px;
  background: var(--iot-cobalt-soft);
  color: var(--iot-ink);
  font-size: 0.84rem;
  line-height: 1.55;
  border-left: 3px solid var(--iot-cobalt);
}
.iot-eco-callout[data-tone="alert"] {
  background: rgba(56, 189, 248, 0.14);
  border-left-color: #0284c7;
}
.iot-eco-callout[data-tone="amber"] {
  background: var(--iot-amber-soft);
  border-left-color: var(--iot-amber);
}
.iot-eco-callout[data-tone="emerald"] {
  background: var(--iot-emerald-soft);
  border-left-color: var(--iot-emerald);
}

.iot-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--iot-surface);
  border: 1px solid var(--iot-line);
  overflow: hidden;
}
.iot-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transition: width 0.25s ease;
}

.iot-eco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

/* ---- Band 3: Six-Hardware Matrix ---- */
.iot-tier-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.iot-filter-pill {
  min-height: 36px;
  padding: 0.34rem 0.84rem;
  border-radius: 999px;
  border: 1px solid var(--iot-line-strong);
  background: var(--iot-card);
  color: var(--iot-ink-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 640;
  cursor: pointer;
}
.iot-filter-pill[aria-pressed="true"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
html[data-theme="dark"] .iot-filter-pill[aria-pressed="true"] { background: #2563eb; border-color: #2563eb; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .iot-filter-pill[aria-pressed="true"] { background: #2563eb; border-color: #2563eb; }
}

.iot-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.iot-hw-card {
  display: flex;
  flex-direction: column;
  background: var(--iot-card);
  border: 1px solid var(--iot-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--iot-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.iot-hw-card:hover { transform: translateY(-3px); box-shadow: var(--iot-shadow-lg); border-color: var(--iot-line-strong); }

.iot-hw-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--iot-surface);
  overflow: hidden;
}
.iot-hw-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.iot-hw-card:hover .iot-hw-visual img { transform: scale(1.03); }

.iot-hw-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
}
.iot-pill-tag {
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 660;
  backdrop-filter: blur(8px);
}
.iot-pill-tag--stage { background: rgba(37, 99, 235, 0.88); }
.iot-pill-tag--sampling { background: rgba(217, 119, 6, 0.9); }
.iot-pill-tag--shipping { background: rgba(5, 150, 105, 0.9); }

.iot-hw-body {
  padding: 1.05rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.iot-hw-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.iot-hw-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.iot-hw-price { font-size: 0.82rem; font-weight: 740; color: var(--iot-cobalt); white-space: nowrap; }
.iot-hw-en { margin: -0.25rem 0 0; font-size: 0.76rem; color: var(--iot-muted); font-weight: 600; }
.iot-hw-tagline { margin: 0; font-size: 0.85rem; color: var(--iot-ink-2); line-height: 1.56; }

.iot-hw-ecos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.iot-hw-ecos span {
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  background: var(--iot-surface);
  border: 1px solid var(--iot-line);
  font-size: 0.72rem;
  color: var(--iot-muted);
  font-weight: 600;
}

.iot-hw-actions {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--iot-line);
}
.iot-hw-actions .iot-mini-btn { flex: 1; min-width: 0; padding-inline: 0.55rem; }
.iot-mini-btn.is-voted {
  background: var(--iot-cobalt-soft);
  border-color: var(--iot-cobalt);
  color: var(--iot-cobalt);
}

/* ---- Band 4: Obsidian Web Bluetooth & ESP32 Open Protocol ---- */
.iot-obsidian-shell {
  background: linear-gradient(155deg, #0d1424 0%, #111b30 55%, #0f172a 100%);
  color: #f8fafc;
  border-radius: 28px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.25);
  display: grid;
  gap: 1.35rem;
}

.iot-obsidian-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.iot-obsidian-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  color: #60a5fa;
}
.iot-obsidian-head h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.72rem); color: #ffffff; }
.iot-obsidian-sub { margin: 0.35rem 0 0; color: #94a3b8; font-size: 0.9rem; max-width: 44rem; }

.iot-proto-pills { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.iot-proto-pills span {
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
  font-size: 0.76rem;
  font-family: ui-monospace, monospace;
}

.iot-protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.iot-proto-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.iot-proto-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.iot-proto-card-head h3 { margin: 0; font-size: 1.02rem; color: #ffffff; }

.iot-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}
.iot-status-dot[data-state="connected"] { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.iot-status-dot[data-state="sim"] { background: rgba(245, 158, 11, 0.22); color: #fbbf24; }

.iot-reward-pill {
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  font-size: 0.74rem;
  font-weight: 700;
}

.iot-proto-note { margin: 0; font-size: 0.83rem; color: #94a3b8; line-height: 1.55; }

.iot-ble-screen {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: #070b14;
  border: 1px solid rgba(96, 165, 250, 0.24);
  text-align: center;
}
.iot-ble-screen-label { display: block; font-size: 0.76rem; color: #93c5fd; }
.iot-ble-screen strong {
  display: block;
  margin: 0.22rem 0;
  font-family: ui-monospace, monospace;
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}
.iot-ble-screen strong small { font-size: 0.95rem; color: #94a3b8; }
.iot-ble-screen-sub { display: block; font-size: 0.74rem; color: #64748b; }

.iot-ble-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.75rem;
}
.iot-ble-actions .iot-btn { min-height: 36px; padding: 0.36rem 0.85rem; font-size: 0.82rem; }

.iot-ble-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

.iot-code-log {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 145px;
  white-space: pre-wrap;
  word-break: break-word;
}
.iot-code-log--sm { max-height: 100px; }
.iot-code-log--fw { max-height: 290px; white-space: pre; word-break: normal; }

.iot-dev-guest {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.iot-dev-guest p { margin: 0 0 0.85rem; font-size: 0.86rem; color: #cbd5e1; line-height: 1.6; }
.iot-dev-guest code { padding: 0.1rem 0.38rem; border-radius: 6px; background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.iot-dev-guest-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.iot-proto-hint { font-size: 0.78rem; color: #94a3b8; }

.iot-dev-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.5rem;
}
.iot-dev-form select,
.iot-dev-form input {
  min-height: 38px;
  padding: 0.38rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0b1220;
  color: #f8fafc;
  font: inherit;
  font-size: 0.83rem;
}
.iot-dev-form option { background: #0b1220; color: #f8fafc; }
.iot-dev-form .iot-btn { min-height: 38px; padding: 0.36rem 0.9rem; font-size: 0.82rem; }

.iot-token-reveal {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  display: grid;
  gap: 0.55rem;
}
.iot-token-reveal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8rem; color: #fde68a; }
.iot-token-reveal code {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #060911;
  color: #fbbf24;
  font-size: 0.84rem;
  word-break: break-all;
}
.iot-curl-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: #cbd5e1; margin-bottom: 0.3rem; }

.iot-subhead { margin: 0.2rem 0 0.45rem; font-size: 0.82rem; color: #cbd5e1; }
.iot-dev-lists { display: grid; gap: 0.75rem; }
.iot-dev-list, .iot-tel-list { display: grid; gap: 0.45rem; max-height: 168px; overflow-y: auto; }
.iot-dev-row, .iot-tel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.72rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.iot-dev-row small, .iot-tel-row small { display: block; color: #94a3b8; font-size: 0.73rem; }
.iot-dev-row-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }

/* Firmware Box */
.iot-firmware-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 0.75rem;
}
.iot-firmware-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.iot-firmware-head h3 { margin: 0; font-size: 1rem; color: #ffffff; }
.iot-firmware-tabs { display: flex; flex-wrap: wrap; gap: 0.38rem; }
.iot-fw-tab {
  min-height: 32px;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 640;
  cursor: pointer;
}
.iot-fw-tab[aria-selected="true"] { background: #2563eb; border-color: #2563eb; color: #ffffff; }

.iot-firmware-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #93c5fd;
}
.iot-firmware-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.iot-firmware-actions .iot-mini-btn:not(.iot-mini-btn--amber) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

/* ---- Band 5: Co-Creation Wishlist & Early-Bird ---- */
.iot-account-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.38rem 0.48rem 0.38rem 0.88rem;
  border-radius: 999px;
  background: var(--iot-card);
  border: 1px solid var(--iot-line);
  font-size: 0.82rem;
  color: var(--iot-ink-2);
}

.iot-toast {
  margin: 0 0 0.85rem;
  min-height: 1.2rem;
  font-size: 0.88rem;
  font-weight: 620;
  color: var(--iot-emerald);
}
.iot-toast[data-tone="error"] { color: var(--iot-rose); }

.iot-wish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.iot-wish-list { display: grid; gap: 0.78rem; }

.iot-wish-row {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1.05rem;
  border-radius: 20px;
  background: var(--iot-card);
  border: 1px solid var(--iot-line);
  box-shadow: var(--iot-shadow);
}
.iot-wish-rank {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
  background: var(--iot-surface);
  color: var(--iot-muted);
}
.iot-wish-rank--top { background: var(--iot-amber-soft); color: var(--iot-amber); }

.iot-wish-thumb {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--iot-surface);
}

.iot-wish-info { min-width: 0; }
.iot-wish-title-line { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.iot-wish-title-line strong { font-size: 0.95rem; }
.iot-stage-chip {
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--iot-cobalt-soft);
  color: var(--iot-cobalt);
}
.iot-wish-stats {
  font-size: 0.78rem;
  color: var(--iot-muted);
  margin: 0.24rem 0 0.36rem;
}
.iot-heat-track {
  height: 6px;
  border-radius: 999px;
  background: var(--iot-surface);
  overflow: hidden;
}
.iot-heat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
}

.iot-wish-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  min-width: 126px;
}

.iot-badge-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: var(--iot-amber-soft);
  color: var(--iot-amber);
  font-size: 0.74rem;
  font-weight: 760;
  white-space: nowrap;
}

.iot-wish-side { display: grid; gap: 1rem; }
.iot-side-card {
  background: var(--iot-card);
  border: 1px solid var(--iot-line);
  border-radius: 22px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--iot-shadow);
}
.iot-side-card h3 { margin: 0 0 0.8rem; font-size: 1rem; }

.iot-note-form { display: grid; gap: 0.72rem; }
.iot-note-form label { display: grid; gap: 0.28rem; font-size: 0.8rem; font-weight: 620; color: var(--iot-ink-2); }
.iot-note-form select,
.iot-note-form textarea,
.iot-reserve-form input {
  width: 100%;
  padding: 0.55rem 0.72rem;
  border-radius: 12px;
  border: 1px solid var(--iot-line-strong);
  background: var(--iot-surface);
  color: var(--iot-ink);
  font: inherit;
  font-size: 0.86rem;
}
.iot-note-form option { background: var(--iot-card); color: var(--iot-ink); }
.iot-side-footnote { margin: 0.75rem 0 0; font-size: 0.76rem; color: var(--iot-muted); }

.iot-notes-wall {
  display: grid;
  gap: 0.55rem;
  max-height: 310px;
  overflow-y: auto;
}
.iot-note-item {
  padding: 0.68rem 0.8rem;
  border-radius: 13px;
  background: var(--iot-surface);
  border: 1px solid var(--iot-line);
  font-size: 0.83rem;
}
.iot-note-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--iot-muted);
  margin-bottom: 0.22rem;
}
.iot-note-item p { margin: 0; color: var(--iot-ink-2); line-height: 1.5; }

/* ---- Band 6: Ecosystem Strip & Footer ---- */
.iot-eco-band { padding-block: 1.8rem; background: var(--iot-bg); }
.iot-eco-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.iot-eco-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: var(--iot-surface);
  border: 1px solid var(--iot-line);
  color: var(--iot-ink);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s;
}
.iot-eco-pill:hover { transform: translateY(-2px); border-color: var(--iot-cobalt); }
.iot-eco-pill strong { display: block; font-size: 0.9rem; }
.iot-eco-pill small { display: block; font-size: 0.73rem; color: var(--iot-muted); }

.iot-footer { color: var(--iot-muted); border-top: 1px solid var(--iot-line); }
.iot-footer .footer-brand { color: var(--iot-ink); }
.iot-footer a { color: var(--iot-muted); }
.iot-footer a:hover { color: var(--iot-ink); }

/* ---- Dialogs ---- */
.iot-dialog {
  width: min(680px, calc(100% - 1.5rem));
  max-height: min(88dvh, 780px);
  padding: 0;
  border: 1px solid var(--iot-line-strong);
  border-radius: 24px;
  background: var(--iot-card);
  color: var(--iot-ink);
  box-shadow: var(--iot-shadow-lg);
  overflow: hidden;
}
.iot-dialog--sm { width: min(480px, calc(100% - 1.5rem)); }
.iot-dialog::backdrop { background: rgba(15, 23, 42, 0.58); backdrop-filter: blur(6px); }

.iot-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--iot-line);
}
.iot-dialog-head h2 { margin: 0; font-size: 1.08rem; }
.iot-detail-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.iot-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--iot-line-strong);
  background: var(--iot-surface);
  color: var(--iot-ink);
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
}
.iot-dialog-body {
  padding: 1.2rem 1.25rem 1.35rem;
  overflow-y: auto;
  max-height: calc(88dvh - 70px);
}
.iot-detail-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0.95rem;
}
.iot-detail-list { margin: 0.5rem 0 1rem; padding-left: 1.15rem; display: grid; gap: 0.4rem; font-size: 0.88rem; color: var(--iot-ink-2); }
.iot-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}
.iot-spec-cell {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: var(--iot-surface);
  border: 1px solid var(--iot-line);
}
.iot-spec-cell span { display: block; font-size: 0.73rem; color: var(--iot-muted); }
.iot-spec-cell strong { display: block; font-size: 0.85rem; margin-top: 0.14rem; }

.iot-reserve-form { display: grid; gap: 0.85rem; }
.iot-reserve-desc { margin: 0; font-size: 0.9rem; color: var(--iot-ink-2); line-height: 1.6; }
.iot-reserve-meta {
  padding: 0.68rem 0.85rem;
  border-radius: 12px;
  background: var(--iot-amber-soft);
  color: var(--iot-amber);
  font-size: 0.84rem;
}
.iot-reserve-actions { display: flex; justify-content: flex-end; gap: 0.55rem; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .iot-hero-grid,
  .iot-lab-stage,
  .iot-protocol-grid,
  .iot-wish-layout { grid-template-columns: minmax(0, 1fr); }
  .iot-matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iot-eco-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .iot-topbar-wrap .iot-topbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding-block: 0.48rem;
  }
  .iot-topbar-wrap .iot-brand-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.42rem;
    margin-right: auto;
  }
  .iot-topbar-wrap .identity {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.38rem;
    width: auto;
  }
  .iot-topbar-wrap .brand-icon { width: 30px; height: 30px; }
  .iot-topbar-wrap .iot-home-back { padding: 0.2rem 0.5rem; font-size: 0.74rem; }
  .iot-topbar-wrap .site-account-pill {
    width: auto;
    min-height: 34px;
    padding: 0.25rem 0.68rem;
    font-size: 0.78rem;
    order: 2;
  }
  .iot-topbar-wrap .iot-theme-btn { order: 1; }
  .iot-topbar-wrap .iot-nav {
    order: 3;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.32rem;
    overflow-x: auto;
    padding-top: 0.38rem;
    border-top: 1px solid var(--iot-line);
    scrollbar-width: none;
  }
  .iot-topbar-wrap .iot-nav a {
    flex-shrink: 0;
    width: auto;
    padding: 0.26rem 0.62rem;
    font-size: 0.82rem;
    background: var(--iot-surface);
  }
  .iot-topbar-wrap .iot-nav::-webkit-scrollbar { display: none; }
  .iot-topbar .wordmark { display: none; }
  .iot-topbar .brand-name { color: var(--iot-ink); font-size: 0.94rem; font-weight: 740; }
  .iot-compact-tag { display: none; }
  .iot-matrix-grid { grid-template-columns: 1fr; }
  .iot-obsidian-shell { padding: 1.15rem; border-radius: 22px; }
  .iot-dev-form { grid-template-columns: 1fr; }
  .hw-food-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-knob-console { grid-template-columns: 1fr; }
  .hw-nfc-grid { grid-template-columns: 1fr; }
  .iot-wish-row { grid-template-columns: auto 56px minmax(0, 1fr); }
  .iot-wish-thumb { width: 56px; height: 42px; }
  .iot-wish-actions { grid-column: 1 / -1; flex-direction: row; }
  .iot-wish-actions > * { flex: 1; }
  .iot-eco-strip { grid-template-columns: 1fr; }
  .iot-spec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .iot-topbar-wrap .iot-topbar { gap: 0.28rem; }
  .iot-topbar-wrap .iot-brand-group { gap: 0.3rem; }
  .iot-topbar-wrap .brand-icon { width: 26px; height: 26px; }
  .iot-topbar-wrap .brand-name { font-size: 0.85rem; }
  .iot-topbar-wrap .iot-home-back { padding: 0.16rem 0.4rem; font-size: 0.7rem; }
  .iot-topbar-wrap .iot-theme-btn { width: 30px; height: 30px; }
  .iot-topbar-wrap .site-account-pill { min-height: 30px; padding: 0.2rem 0.52rem; font-size: 0.73rem; }
  .iot-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iot-traffic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iot-compact-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-coaster-disc.is-alert,
  .hw-clicker-bar.is-vibrate { animation: none; }
}
