:root {
  --bg: #0b1220;
  --sidebar: #0e1626;
  --panel: #121b2c;
  --line: #243247;
  --text: #e8eef7;
  --muted: #8ea2b8;
  --green: #22c55e;
  --green-2: #15803d;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 700px at 0% 0%, #132038, var(--bg));
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #101a2c, var(--sidebar));
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; border-bottom: 1px solid var(--line); }
.brand-badge {
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; padding: 0; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.35);
  background: #1a4740;
  display: grid; place-items: center;
}
.brand-badge img,
.brand-badge svg { width: 42px; height: 42px; display: block; }
.brand h1 { margin: 0; font-size: 14px; line-height: 1.25; }
.nav-section-title { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 8px 10px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 12px; border-radius: 12px; color: var(--muted); border: 1px solid transparent;
}
.nav-item.active { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: #bbf7d0; }
.nav-item .left { display: flex; align-items: center; gap: 10px; }
.badge {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--red); color: #fff;
}
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.btn-channel {
  border: none; border-radius: 12px; padding: 12px;
  background: linear-gradient(180deg, #22c55e, #15803d); color: #04120a; font-weight: 800;
}
.user-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.02); }
.user-card .name { font-weight: 700; }
.user-card .role { color: var(--muted); font-size: 12px; }
.user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.user-actions button { border: 1px solid var(--line); background: #152033; border-radius: 10px; padding: 8px; }

.main { padding: 22px; min-width: 0; }
.view { display: none; }
.view.active { display: block; }
.page-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-head h2 { margin: 0 0 6px; font-size: 28px; }
.page-head p { margin: 0; color: var(--muted); }
.head-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); background: #152033;
}
.pill.red { background: rgba(239,68,68,.15); color: #fecaca; border-color: rgba(239,68,68,.35); }
.pill.green { background: rgba(34,197,94,.15); color: #bbf7d0; border-color: rgba(34,197,94,.35); }
.pill.orange { background: rgba(245,158,11,.15); color: #fcd34d; border-color: rgba(245,158,11,.35); }

/* Login — FOREST canopy (match reference) */
.login-body {
  --login-cream: #f5e8d3;
  --login-ink: #0a1613;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px 56px;
  position: relative;
  overflow: hidden;
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--login-cream);
  background:
    radial-gradient(900px 520px at 50% 18%, #2a6b57 0%, transparent 58%),
    radial-gradient(700px 420px at 12% 8%, rgba(61, 140, 118, 0.35), transparent 55%),
    linear-gradient(180deg, #143f35 0%, #0d2a24 38%, #081814 100%);
}
.login-aurora {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 28%, rgba(70, 160, 130, 0.28), transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(196, 163, 90, 0.08), transparent 36%);
  filter: blur(2px);
}
.login-canopy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 340px);
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%230a1a16' d='M0 320V168c120-48 210-108 330-108s190 88 320 88 250-120 380-120 250 100 410 100v192z'/%3E%3Cpath fill='%23060d12' opacity='.95' d='M0 320V200c140-36 240-84 360-84s220 70 350 70 280-100 420-100 220 70 310 70v164z'/%3E%3C/svg%3E")
      bottom center / 100% 100% no-repeat;
}
.login-lang-top {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 10;
}
.login-lang-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 232, 211, 0.28);
  background: rgba(8, 24, 20, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
}
.login-lang-pill select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23f5e8d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right 12px center / 12px no-repeat;
  color: var(--login-cream);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 32px 8px 14px;
  min-width: 108px;
  cursor: pointer;
}
.login-lang-pill select:focus { outline: none; }
.login-lang-pill option { color: #122826; background: #f5e8d3; }

.login-stage {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  display: grid;
  gap: 28px;
}
.login-hero { text-align: center; }
.login-hero-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.35);
}
.login-hero-mark svg {
  width: 72px;
  height: 72px;
  display: block;
}
.login-hero-brand {
  margin: 0;
  font-family: "Fraunces", "Noto Serif SC", Georgia, serif;
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--login-cream);
}
.login-hero-line {
  margin: 14px auto 0;
  max-width: 28ch;
  font-size: 15px;
  font-weight: 400;
  color: rgba(245, 232, 211, 0.82);
  letter-spacing: 0.01em;
}
.login-form {
  display: grid;
  gap: 16px;
}
.login-form .form-row {
  display: grid;
  gap: 8px;
  margin: 0;
}
.login-form .form-row > span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 232, 211, 0.88);
}
.login-form .field {
  width: 100%;
  border: 1px solid rgba(245, 232, 211, 0.12);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(6, 16, 14, 0.38);
  backdrop-filter: blur(12px);
  color: var(--login-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.login-form .field:focus {
  outline: none;
  border-color: rgba(245, 232, 211, 0.35);
  box-shadow: 0 0 0 3px rgba(245, 232, 211, 0.1);
}
.login-submit {
  width: 100%;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--login-cream);
  color: var(--login-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.login-submit:hover { filter: brightness(1.03); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: 0.7; cursor: wait; }
.login-submit-ico { flex-shrink: 0; }
.login-error {
  color: #ffd4d4;
  background: rgba(214, 69, 69, 0.18);
  border: 1px solid rgba(255, 160, 160, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 18px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-card {
  width: min(440px, 100%);
  background: #0f1728;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.log-list { display: grid; gap: 8px; }
.log-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #101a2c;
  display: grid;
  gap: 4px;
}
.log-item .log-type { font-weight: 800; font-size: 13px; }
.log-item .log-type.connected { color: #86efac; }
.log-item .log-type.disconnected { color: #fca5a5; }
.log-item .log-meta { color: var(--muted); font-size: 12px; }
.log-item .log-meta strong { color: var(--text); font-weight: 700; }

.toolbar { display: grid; gap: 12px; margin-bottom: 14px; }
.search, .field, textarea, select {
  border-radius: 12px; border: 1px solid var(--line);
  background: #101a2c; padding: 12px 14px;
}
.search, .field, textarea { width: 100%; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--line); background: #132033; color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font-weight: 600;
}
.filter-btn.active { background: rgba(34,197,94,.16); border-color: rgba(34,197,94,.45); color: #bbf7d0; }

.table-card {
  background: color-mix(in srgb, var(--panel) 94%, black);
  border: 1px solid var(--line); border-radius: 18px; overflow: auto; box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 900px; }
.device-table { table-layout: fixed; min-width: 1100px; }
.device-table th, .device-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(36,50,71,.85);
  vertical-align: middle;
}
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(36,50,71,.85); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; background: rgba(255,255,255,.02); }
.col-left, .device-table .col-left { text-align: left; }
.col-center, .device-table .col-center { text-align: center; }
.col-right, .device-table .col-right { text-align: right; }
.device-table .col-center .status,
.device-table .col-center .battery,
.device-table .col-center .btn-control,
.device-table .col-center .btn-secondary {
  margin-left: auto;
  margin-right: auto;
}
.device-table .col-center .battery { display: inline-block; text-align: left; }
.device-table .actions-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-comment.has-note {
  border-color: rgba(34,197,94,.45);
  color: #bbf7d0;
}
.comment-editor { display: grid; gap: 12px; height: 100%; }
.comment-editor textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101a2c;
  padding: 12px 14px;
  color: var(--text);
  line-height: 1.45;
}
.comment-meta { color: var(--muted); font-size: 12px; }
.device-cell .title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.device-cell .id { margin-top: 4px; color: var(--muted); font-size: 12px; word-break: break-all; }
.tag-new { font-size: 10px; font-weight: 800; color: #fff; background: var(--red); border-radius: 6px; padding: 2px 6px; }
.status {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 700;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.online { background: rgba(34,197,94,.14); color: #86efac; }
.status.idle { background: rgba(245,158,11,.14); color: #fcd34d; }
.status.offline { background: rgba(148,163,184,.14); color: #cbd5e1; }
.battery { min-width: 110px; }
.battery .row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.battery .track { height: 7px; border-radius: 999px; background: #243247; overflow: hidden; }
.battery .fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #4ade80); }
.battery.low .fill { background: linear-gradient(90deg, #ef4444, #f97316); }
.battery.mid .fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.btn-control, .btn-primary {
  border: none; border-radius: 10px; padding: 9px 14px;
  background: linear-gradient(180deg, #22c55e, #15803d); color: #04120a; font-weight: 800;
}
.btn-control:disabled, .btn-offline, .btn-secondary {
  background: #334155; color: #94a3b8; border: 1px solid var(--line);
}
.btn-secondary { border-radius: 10px; padding: 9px 14px; font-weight: 700; color: var(--text); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

.control-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.control-top .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.back-btn { border: 1px solid var(--line); background: #152033; border-radius: 10px; padding: 8px 12px; margin-right: 10px; }
.control-layout { display: grid; grid-template-columns: 1fr 340px; gap: 14px; min-height: calc(100vh - 120px); }
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .control-layout { grid-template-columns: 1fr; }
}
.screen-stage {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px;
  min-height: 0; height: calc(100vh - 140px); max-height: calc(100vh - 140px);
}
.screen-tools {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: #0d1524;
  flex: 0 0 auto;
}
.tools-left, .tools-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #152033; display: grid; place-items: center; color: #c7d2e0; font-size: 16px;
}
.icon-btn:hover { border-color: rgba(34,197,94,.45); color: #fff; }
.icon-btn.active {
  background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.55); color: #86efac;
}
.screen-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px;
  min-height: 0; height: 100%; overflow: hidden;
}
@media (max-width: 900px) { .screen-grid { grid-template-columns: 1fr; } }
.screen-panel {
  border: 1px solid var(--line); border-radius: 16px;
  background:
    linear-gradient(rgba(34,197,94,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,.04) 1px, transparent 1px), #0a1220;
  background-size: 28px 28px, 28px 28px, auto;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0; height: 100%; overflow: hidden; position: relative;
}
/* Video is locked inside the panel — never expands UI to phone native pixels */
.video-frame {
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.video-frame video,
.video-frame .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
}
.screen-panel.fit-contain .video-frame video {
  object-fit: contain;
  object-position: center center;
  background: #000;
}
.screen-panel.fit-cover .video-frame video {
  object-fit: cover;
  object-position: center center;
  background: #000;
}
#screen-hit { touch-action: none; user-select: none; cursor: crosshair; }
.screen-stage.is-fullscreen {
  position: fixed; inset: 10px; z-index: 50;
  height: calc(100vh - 20px); max-height: calc(100vh - 20px);
  box-shadow: var(--shadow);
}
.screen-stage.is-fullscreen .screen-grid { grid-template-columns: 1fr; height: 100%; }
.screen-stage.is-fullscreen .module-panel { display: none; }
.module-panel { background: #0f1728; }
.module-workspace {
  min-height: 0; height: 100%; overflow: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.module-workspace .mod-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.module-workspace .mod-head h4 { margin: 0; font-size: 15px; }
.module-workspace .mod-body { flex: 1; min-height: 0; overflow: auto; }
.module-workspace .mod-foot {
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.placeholder { display: grid; place-items: center; color: var(--muted); gap: 8px; text-align: center; padding: 20px; }
.placeholder .big { font-size: 34px; opacity: .7; }
.nav-keys {
  display: flex; justify-content: center; gap: 28px; padding: 12px;
  border-top: 1px solid rgba(36,50,71,.8); background: rgba(0,0,0,.25);
}
.nav-keys button {
  width: 42px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #152033;
}
.side-tools { display: grid; grid-template-rows: 1fr auto; gap: 14px; min-height: 0; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 12px; font-size: 15px; }
.fn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fn-item {
  border: 1px solid var(--line); background: #152033; border-radius: 14px;
  padding: 10px 6px; display: grid; justify-items: center; gap: 6px; min-height: 78px;
}
.fn-item:hover, .fn-item.active { border-color: rgba(34,197,94,.45); }
.fn-item .icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; color: #04120a; font-weight: 800;
}
.fn-item span { font-size: 11px; color: var(--muted); text-align: center; }
.lock-row { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.diag-row {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(36,50,71,.7); font-size: 13px;
}
.diag-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.diag-actions button { border: none; border-radius: 10px; padding: 10px; font-weight: 700; }
.diag-actions .start { background: linear-gradient(180deg, #22c55e, #15803d); color: #04120a; }
.diag-actions .secondary { background: #243247; border: 1px solid var(--line); }
.diag-actions button:disabled,
#btn-stop-display:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.35);
}
.stream-lock-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.4);
  background: rgba(245,158,11,.12);
  color: #fcd34d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.stream-lock-banner[hidden] { display: none !important; }

/* Module drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40;
  display: none; align-items: stretch; justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }
.drawer {
  width: min(520px, 100%); background: #0f1728; border-left: 1px solid var(--line);
  display: grid; grid-template-rows: auto 1fr auto; box-shadow: var(--shadow);
  max-height: 100vh;
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; }
.drawer-body { padding: 16px 18px; overflow: auto; min-height: 0; }
.drawer-foot {
  padding: 12px 18px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end;
}
.drawer-sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; word-break: break-all; }
.drawer-body .log-list {
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: visible;
}
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
.form-row label { font-size: 12px; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.list {
  border: 1px solid var(--line); border-radius: 12px; background: #101a2c;
  max-height: 360px; overflow: auto;
}
.list-item {
  padding: 10px 12px; border-bottom: 1px solid rgba(36,50,71,.8); font-size: 13px;
}
.list-item:last-child { border-bottom: none; }
.list-item .sub { color: var(--muted); font-size: 12px; margin-top: 3px; word-break: break-all; }
.mono {
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  white-space: pre-wrap; word-break: break-word;
  background: #0b1220; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  max-height: 280px; overflow: auto;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
  border: 1px solid var(--line); background: #152033; border-radius: 999px;
  padding: 5px 10px; font-size: 12px;
}
.chip.on { border-color: rgba(34,197,94,.5); color: #bbf7d0; }
.toast {
  position: fixed; right: 18px; bottom: 18px; background: #152033;
  border: 1px solid var(--line); padding: 10px 14px; border-radius: 12px;
  opacity: 0; transform: translateY(8px); transition: .2s ease; z-index: 60;
}
.toast.show { opacity: 1; transform: none; }
.conn-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  margin-right: 6px; background: #64748b;
}
.conn-dot.on { background: var(--green); box-shadow: 0 0 10px rgba(34,197,94,.7); }
.thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #000;
  border: 1px solid var(--line);
}
