:root {
  --bg: #0b0a08;
  --bg-top: #16100b;
  --card: #17130f;
  --card-2: #1f1912;
  --card-3: #262019;
  --line: #2b241d;
  --line-2: #3a3129;
  --text: #f7f2ea;
  --muted: #9b9188;
  --muted-2: #6f665d;
  --orange: #ff6a2b;
  --orange-2: #ff8a3d;
  --orange-ink: #3a1c08;
  --orange-soft: rgba(255, 122, 51, 0.14);
  --amber: #f6a723;
  --green: #35c759;
  --red: #ff5a4d;
  --radius: 18px;
  --radius-lg: 22px;
  --sidebar: 248px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(255, 106, 43, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none; user-select: none;
  -webkit-font-smoothing: antialiased;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }

/* ---------------- shell ---------------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100dvh; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100dvh;
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent), #0f0c09;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, var(--orange-2), var(--orange)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(255,106,43,.35); }
.brand .logo svg { width: 22px; height: 22px; stroke-width: 2; }
.brand .logo-img { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; box-shadow: 0 6px 18px rgba(255,106,43,.3); }
.brand b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand b span { color: var(--orange); }
.nav-label { font-size: 11px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; padding: 14px 12px 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: var(--muted); font-weight: 500; width: 100%; text-align: left; transition: background .15s, color .15s; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--muted-2); background: var(--card-2); border-radius: 8px; padding: 1px 8px; }
.nav-item:hover { color: var(--text); background: var(--card); }
.nav-item.active { color: #fff; background: linear-gradient(135deg, var(--orange), #e85a20); box-shadow: 0 8px 20px rgba(255,106,43,.28); }
.nav-item.active .count { background: rgba(0,0,0,.22); color: #fff; }
.sidebar .spacer { flex: 1; }
.sb-status { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin-top: 10px; }
.sb-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex: 0 0 auto; }
.sb-status.bad .dot { background: var(--red); box-shadow: none; }
.sb-status .t { font-size: 13px; font-weight: 600; }
.sb-status .s { font-size: 11px; color: var(--muted); }
.sb-user { display: flex; gap: 10px; align-items: center; padding: 12px 8px 2px; }
.sb-user .av { width: 34px; height: 34px; border-radius: 10px; background: var(--card-3); color: var(--orange); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.sb-user .n { font-size: 13px; font-weight: 600; }
.sb-user .r { font-size: 11px; color: var(--muted); }

.main { min-width: 0; padding: 22px clamp(16px, 3vw, 34px) 40px; }

.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb b { color: var(--text); font-weight: 600; }
.topbar .search { margin-left: auto; display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; width: min(320px, 34vw); color: var(--muted); }
.topbar .search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 14px; }
.topbar .ico-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.topbar .ico-btn:hover { color: var(--text); }

/* ---------------- greeting ---------------- */
.hello { margin: 16px 0 18px; }
.hello .date { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .09em; }
.hello h1 { margin: 5px 0 3px; font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.hello p { margin: 0; color: var(--muted); }
.hello .row { display: flex; align-items: flex-end; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------------- generic ---------------- */
.grid-hero { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 16px; }
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 26px 28px; background: linear-gradient(120deg, #ff7e34 0%, #ff5f2a 52%, #f0511f 100%); color: #fff; min-height: 184px; display: flex; flex-direction: column; justify-content: center; }
.hero .tag { font-size: 12px; font-weight: 700; letter-spacing: .05em; display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.hero .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.hero h2 { margin: 12px 0 8px; font-size: 27px; font-weight: 700; line-height: 1.12; }
.hero p { margin: 0; max-width: 60%; opacity: .92; font-size: 14px; }
.hero .glow { position: absolute; right: -40px; bottom: -70px; width: 320px; height: 320px; opacity: .5; color: rgba(255,255,255,.5); }
.hero .glow svg { width: 100%; height: 100%; stroke-width: 1; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel.demo { position: relative; }
.demo-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--amber); background: rgba(246,167,35,.12); border-radius: 6px; padding: 2px 7px; }
.temp .k { font-size: 12px; color: var(--muted); letter-spacing: .05em; display: flex; align-items: center; justify-content: space-between; }
.temp .big { font-size: 44px; font-weight: 700; margin: 10px 0 2px; }
.temp .big small { font-size: 15px; color: var(--muted); font-weight: 500; }
.temp .sub { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.temp .sub b { color: var(--text); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.stat .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.stat .ic svg { width: 18px; height: 18px; }
.stat .v { font-size: 30px; font-weight: 700; margin-top: 12px; }
.stat .d { font-size: 12px; color: var(--muted-2); }
.stat .d .on { color: var(--green); }

.cols { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sec-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.sec-head .sub { color: var(--muted); font-size: 12.5px; }
.sec-head .more { color: var(--orange); font-size: 13px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip.active { background: var(--orange-soft); border-color: color-mix(in srgb, var(--orange) 45%, transparent); color: var(--orange-2); }

/* device cards */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 13px; }
.dev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .15s, background .15s, transform .08s; text-align: left; }
.dev:active { transform: scale(.985); }
.dev .row1 { display: flex; align-items: flex-start; justify-content: space-between; }
.dev .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--card-3); color: var(--muted); display: grid; place-items: center; }
.dev .ic svg { width: 21px; height: 21px; }
.dev .nm { font-weight: 600; margin-top: 14px; }
.dev .mt { font-size: 12.5px; color: var(--muted); }
.dev .st { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.dev .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.dev.on { background: linear-gradient(150deg, rgba(255,122,51,.15), var(--card)); border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.dev.on .ic { background: linear-gradient(145deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 6px 16px rgba(255,106,43,.3); }
.dev.on .st { color: var(--orange-2); }
.dev.on .st::before { background: var(--orange); box-shadow: 0 0 7px var(--orange); }
.dev.off-air { opacity: .62; }
.dev.off-air .st::before { background: var(--muted-2); }
.dev.busy .tg { opacity: .4; }

/* toggle */
.tg { width: 46px; height: 27px; border-radius: 999px; background: var(--card-3); border: 1px solid var(--line-2); position: relative; flex: 0 0 auto; transition: background .18s; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #d8d2c9; transition: transform .18s, background .18s; }
.dev.on .tg { background: linear-gradient(135deg, var(--orange-2), var(--orange)); border-color: transparent; }
.dev.on .tg::after { transform: translateX(19px); background: #fff; }
.dev.locked .tg { opacity: .35; }

/* scene / list rows */
.list { display: flex; flex-direction: column; gap: 10px; }
.scene-row { display: flex; align-items: center; gap: 13px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .15s; }
.scene-row:hover { border-color: var(--line-2); }
.scene-row .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.scene-row .tx { flex: 1; min-width: 0; }
.scene-row .tx b { font-weight: 600; display: block; }
.scene-row .tx span { font-size: 12px; color: var(--muted); }
.scene-row .go { width: 34px; height: 34px; border-radius: 10px; background: var(--card-3); color: var(--orange); display: grid; place-items: center; flex: 0 0 auto; }
.scene-row .go svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.energy .big { font-size: 34px; font-weight: 700; }
.energy .big small { font-size: 13px; color: var(--muted); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 92px; margin-top: 14px; }
.bars .b { flex: 1; background: linear-gradient(180deg, var(--orange-2), rgba(255,106,43,.25)); border-radius: 6px 6px 3px 3px; min-height: 6px; }
.badge-green { color: var(--green); background: rgba(53,199,89,.12); border-radius: 7px; padding: 2px 8px; font-size: 12px; font-weight: 600; }

.act-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: 0; }
.act-row .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--card-3); color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.act-row .ic svg { width: 16px; height: 16px; }
.act-row .tx { flex: 1; min-width: 0; }
.act-row .tx b { font-weight: 600; font-size: 13.5px; display: block; }
.act-row .tx span { font-size: 11.5px; color: var(--muted); }
.act-row .tm { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }

.notice { background: var(--card); border: 1px dashed color-mix(in srgb, var(--amber) 55%, transparent); border-radius: 14px; padding: 13px 15px; font-size: 13.5px; color: var(--text); margin-bottom: 14px; }
.notice b { color: var(--amber); }
.notice .btn { margin-top: 9px; }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

/* buttons */
.btn { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; color: var(--text); transition: border-color .15s, transform .08s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--orange-2), var(--orange)); border-color: transparent; color: #fff; }
.btn.small { min-height: 34px; padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .45; }
.row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.row.stretch > * { flex: 1; }

/* rooms list */
.room-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.room-card .rh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.room-card .rh .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.room-card .rh b { font-size: 17px; font-weight: 700; display: block; }
.room-card .rh span { font-size: 12.5px; color: var(--muted); }

/* detail view */
.detail-head { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.back-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.detail-head h1 { margin: 0; font-size: 24px; font-weight: 700; }
.detail-head .s { font-size: 13px; color: var(--muted); }

.vol { display: flex; align-items: center; gap: 11px; margin: 4px 0 16px; }
.vol input[type=range] { flex: 1; accent-color: var(--orange); height: 30px; }
.vol .val { width: 36px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dpad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 58px); gap: 7px; justify-content: center; margin: 14px auto; }
.dpad button { border-radius: 15px; background: var(--card-2); border: 1px solid var(--line); font-size: 18px; }
.dpad .ok { border-radius: 50%; background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #fff; border: none; font-weight: 700; font-size: 14px; }
.label { font-size: 11px; color: var(--muted-2); letter-spacing: .07em; text-transform: uppercase; margin: 16px 0 8px; font-weight: 600; }
.select { width: 100%; background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; font: inherit; font-size: 15px; }

/* Mouse e teclado virtuais da TV */
.tv-pad { height: 190px; border-radius: 16px; background: var(--card-2); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted-2); font-size: 12.5px; line-height: 1.6; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; margin-bottom: 9px; transition: border-color .15s, background .15s; }
.tv-pad.active { border-color: var(--orange); border-style: solid; background: var(--card-3); }
.tv-pad span { pointer-events: none; }
.tv-kbd { display: flex; gap: 8px; align-items: center; }
.kbd-state { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; color: var(--muted-2); }
.kbd-state.on { color: var(--orange); }
.tv-kbd input { flex: 1; min-width: 0; background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; font: inherit; font-size: 16px; }
.tv-kbd input:focus { outline: none; border-color: var(--orange); }
.tv-kbd .btn { min-width: 44px; height: 44px; font-size: 17px; }

.progress { height: 10px; border-radius: 999px; background: var(--card-3); overflow: hidden; margin: 10px 0 6px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--orange), var(--amber)); border-radius: 999px; transition: width .5s; }
.pstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 14px 0; }
.pstat { background: var(--card-2); border-radius: 13px; padding: 11px 13px; }
.pstat .k { font-size: 12px; color: var(--muted); }
.pstat .v { font-size: 19px; font-weight: 700; }
.pstat .v small { font-size: 12px; color: var(--muted); font-weight: 500; }
.swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid var(--line-2); vertical-align: -1px; }
.cam { margin-top: 14px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16/9; display: grid; place-items: center; position: relative; }
.cam img { width: 100%; height: 100%; object-fit: contain; }
.cam .msg { position: absolute; color: #bbb; font-size: 13px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 160px); background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .26s cubic-bezier(.2,.9,.3,1.3); z-index: 60; font-size: 14px; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); }

/* settings dialog */
dialog { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 0; width: min(640px, calc(100vw - 20px)); max-height: calc(100dvh - 36px); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.dlg-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 1; }
.dlg-head h2 { margin: 0; font-size: 18px; }
.dlg-body { padding: 6px 18px 22px; }
.dlg-body h3 { margin: 22px 0 8px; font-size: 16px; }
.dlg-body .help { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.dlg-body .help b, .dlg-body .help code { color: var(--text); }
.field { display: block; margin: 10px 0; }
.field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin: 10px 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--card-3); color: var(--muted); }
.badge.ok { color: var(--green); } .badge.warn { color: var(--amber); } .badge.bad { color: var(--red); }
details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
pre.logs { background: #000; color: #9fe6a0; font-size: 11px; padding: 10px; border-radius: 10px; max-height: 240px; overflow: auto; white-space: pre-wrap; user-select: text; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* tela de abertura (splash) */
#splash { position: fixed; inset: 0; z-index: 9999; background: #050505; display: flex; align-items: center; justify-content: center; transition: opacity .6s ease; }
#splash.hide { opacity: 0; pointer-events: none; }
#splash video { width: 100%; height: 100%; object-fit: cover; }
#splash-skip { position: fixed; z-index: 10000; bottom: calc(26px + env(safe-area-inset-bottom)); right: 22px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#splash-skip:active { transform: scale(.96); }

/* mobile bottom nav */
.botnav { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: calc(10px + env(safe-area-inset-top)) 16px calc(86px + env(safe-area-inset-bottom)); }
  .topbar .search { width: 100%; }
  .crumb { display: none; }
  .grid-hero { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero p { max-width: 100%; }
  .dev-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .dev { min-height: 120px; padding: 14px; }
  .dev .ic { width: 38px; height: 38px; }

  .botnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(13,11,9,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .botnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted-2); font-size: 10.5px; font-weight: 600; padding: 4px 0; }
  .botnav button svg { width: 23px; height: 23px; }
  .botnav button.active { color: var(--orange); }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: 1fr 1fr; }
}

/* modo convidado: só visualização */
body.guest [data-toggle], body.guest [data-tv], body.guest [data-btn], body.guest [data-app], body.guest [data-pr],
body.guest [data-scene], body.guest [data-pad], body.guest [data-kbd], body.guest .tv-pad, body.guest .tv-kbd,
body.guest #vol, body.guest #all-apps, body.guest #btn-profile { opacity: .45; pointer-events: none; }
