:root {
  --ink: #071013;
  --panel: rgba(10, 18, 20, 0.76);
  --panel-strong: rgba(7, 14, 16, 0.92);
  --line: rgba(235, 226, 207, 0.16);
  --line-strong: rgba(235, 226, 207, 0.28);
  --ivory: #f1ede4;
  --muted: #9ea8a4;
  --bronze: #c49a67;
  --bronze-light: #e2bd8c;
  --petrol: #4f8989;
  --success: #79baa5;
  --danger: #dc8d7a;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ivory);
  background: var(--ink);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }

.app { position: relative; width: 100vw; height: 100vh; min-width: 1024px; min-height: 650px; isolation: isolate; background: #071013; }
.backdrop { position: absolute; inset: 0; z-index: -3; background: center / cover no-repeat; transition: opacity .35s ease, transform 1.2s ease; transform: scale(1.015); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,8,9,.72) 0%, rgba(3,8,9,.22) 48%, rgba(3,8,9,.5) 100%); }
.veil { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(3,9,11,.56), transparent 24%, transparent 68%, rgba(3,9,11,.74)), radial-gradient(circle at 72% 45%, transparent 0 25%, rgba(3,8,9,.26) 78%); }

.rail { position: absolute; inset: 0 auto 0 0; width: 92px; padding: 26px 16px 22px; border-right: 1px solid var(--line); background: rgba(4,10,12,.8); backdrop-filter: blur(24px); display: flex; flex-direction: column; align-items: center; z-index: 5; }
.brand { width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255,255,255,.04); position: relative; cursor: pointer; }
.brand-mark { font: 300 24px/1 Georgia, serif; color: var(--bronze-light); }
.brand-pulse { position: absolute; right: 1px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
#mainNav { display: flex; flex-direction: column; gap: 10px; margin: auto 0; }
.nav-button, .icon-button { width: 56px; min-height: 56px; border: 0; border-radius: 18px; background: transparent; display: grid; place-items: center; cursor: pointer; color: #8f9996; transition: .2s ease; position: relative; }
.nav-button svg, .icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-button:hover, .nav-button.active { color: var(--ivory); background: rgba(255,255,255,.07); }
.nav-button small { display: none; }
.nav-button.active::before { content: ""; position: absolute; left: -16px; width: 2px; height: 22px; border-radius: 2px; background: var(--bronze-light); box-shadow: 0 0 14px var(--bronze); }
.profile-button { margin-top: auto; }
.avatar { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 10px; letter-spacing: .1em; color: var(--bronze-light); }

.topbar { position: absolute; top: 0; right: 0; left: 92px; height: 94px; padding: 24px 38px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.eyebrow, .section-kicker, .popover-label { display: block; color: var(--bronze-light); font-size: 10px; letter-spacing: .22em; font-weight: 650; }
.location-select { margin: 6px 0 0; padding: 0; background: transparent; border: 0; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 17px; font-weight: 480; }
.location-select svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.top-status { display: flex; align-items: center; gap: 25px; font-size: 12px; }
.status-item { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.online { background: var(--success); box-shadow: 0 0 10px var(--success); }
.muted { color: var(--muted); }
#clock { min-width: 48px; font-size: 15px; font-variant-numeric: tabular-nums; }
.device-label { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.language-picker { position: relative; }
.language-button { height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(7,14,16,.76); display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 11px; }
.language-button img, .language-menu img { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.language-chevron { margin-left: 2px; color: var(--muted); font-size: 13px; }
.language-menu { position: absolute; z-index: 30; top: 42px; right: 0; width: 190px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(7,14,16,.97); backdrop-filter: blur(24px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.language-menu button { width: 100%; min-height: 42px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer; font-size: 11px; }
.language-menu button:hover, .language-menu button.active { background: rgba(196,154,103,.14); }
.language-menu small { color: var(--bronze-light); }

.content { position: absolute; inset: 94px 0 0 92px; padding: 24px 38px 34px; overflow: hidden; }
.home-view { height: 100%; display: grid; grid-template-columns: minmax(480px, 1fr) 345px; gap: 28px; align-items: end; }
.hero-copy { align-self: end; padding-bottom: 28px; max-width: 760px; }
.hero-copy h1 { margin: 10px 0 10px; font: 300 clamp(48px, 6vw, 84px)/.92 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.hero-copy p { max-width: 480px; margin: 0 0 28px; color: #c8cfcc; font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; }
.primary-button, .glass-button { min-height: 46px; padding: 0 20px; border-radius: 14px; cursor: pointer; border: 1px solid var(--line-strong); background: rgba(8,16,18,.55); backdrop-filter: blur(14px); }
.primary-button { background: var(--ivory); color: #142022; border-color: var(--ivory); font-weight: 650; }
.primary-button:hover { background: white; }

.overview-panel { padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); backdrop-filter: blur(26px); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.overview-panel h2 { margin: 7px 0 18px; font: 400 22px/1.2 Georgia, serif; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { min-height: 90px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.metric-icon { color: var(--bronze-light); font-size: 16px; }
.metric strong { display: block; margin-top: 12px; font-size: 19px; font-weight: 500; }
.metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.scene-strip { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.scene-strip header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.scene-strip header span:first-child { font-size: 12px; }
.scene-strip header span:last-child { color: var(--muted); font-size: 10px; }
.scene-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.scene-chip { min-height: 58px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); color: #aeb7b4; cursor: pointer; font-size: 10px; }
.scene-chip span { display: block; margin: 0 auto 7px; font-size: 15px; }
.scene-chip.active { border-color: rgba(226,189,140,.65); background: rgba(196,154,103,.13); color: var(--ivory); }

.deck-view, .room-view, .section-view { height: 100%; display: grid; grid-template-columns: minmax(480px,1fr) 360px; gap: 28px; }
.view-intro { align-self: start; padding-top: 30px; }
.view-intro h1, .room-heading h1, .section-heading h1 { margin: 8px 0 10px; font: 300 clamp(38px,4vw,62px)/1 Georgia, serif; letter-spacing: -.035em; }
.view-intro p, .section-heading p { max-width: 560px; color: #b4bfbb; line-height: 1.6; }
.deck-stack { width: min(760px, 92%); margin-top: 34px; display: flex; flex-direction: column; gap: 8px; }
.deck-level { height: 47px; padding: 0 18px; border: 1px solid var(--line); background: rgba(7,15,17,.54); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #a7b1ae; clip-path: polygon(2% 0, 94% 0, 100% 50%, 94% 100%, 2% 100%, 0 50%); transition: .22s ease; }
.deck-level:nth-child(1), .deck-level:nth-child(2) { margin-inline: 15%; }
.deck-level:nth-child(3) { margin-inline: 10%; }
.deck-level:nth-child(4) { margin-inline: 5%; }
.deck-level:hover, .deck-level.active { color: var(--ivory); border-color: rgba(226,189,140,.7); background: linear-gradient(90deg, rgba(196,154,103,.2), rgba(7,15,17,.63)); transform: translateX(8px); }
.deck-level span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.deck-level small { color: var(--muted); }

.glass-panel { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(26px); border-radius: 24px; }
.room-list-panel { align-self: stretch; padding: 22px; overflow: hidden; }
.room-list-panel h2 { margin: 6px 0 15px; font: 400 22px Georgia, serif; }
.room-list { display: flex; flex-direction: column; gap: 9px; }
.room-card { min-height: 67px; padding: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 14px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.room-card img { width: 70px; height: 50px; object-fit: cover; border-radius: 9px; filter: saturate(.8); }
.room-card strong { display: block; font-size: 12px; font-weight: 520; }
.room-card small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.room-card:hover, .room-card.active { border-color: rgba(226,189,140,.58); background: rgba(196,154,103,.1); }

.room-view { grid-template-columns: minmax(470px,1fr) 390px; align-items: end; }
.room-heading { align-self: end; padding-bottom: 72px; }
.room-heading p { color: #c5ceca; max-width: 470px; }
.room-tags { display: flex; gap: 8px; margin-top: 19px; }
.room-tag { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #bac3c0; font-size: 10px; background: rgba(4,10,12,.4); }
.control-panel { align-self: stretch; padding: 22px; overflow: auto; scrollbar-width: none; }
.control-panel::-webkit-scrollbar { display: none; }
.control-panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.control-panel-title h2 { margin: 5px 0 0; font: 400 22px Georgia, serif; }
.power-toggle { width: 42px; height: 24px; border: 0; border-radius: 99px; background: rgba(255,255,255,.12); padding: 3px; cursor: pointer; }
.power-toggle::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #93a09c; transition: .2s; }
.power-toggle.on { background: rgba(121,186,165,.35); }
.power-toggle.on::after { transform: translateX(18px); background: #a8dbc9; }
.control-group { padding: 16px 0; border-top: 1px solid var(--line); }
.control-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-size: 11px; color: #c8cfcd; }
.control-value { color: var(--bronze-light); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 3px; appearance: none; border-radius: 10px; outline: 0; background: linear-gradient(90deg, var(--bronze-light) var(--range,65%), rgba(255,255,255,.14) var(--range,65%)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--ivory); border: 4px solid #8e714e; box-shadow: 0 0 0 3px rgba(226,189,140,.18); }
.temp-control { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; }
.temp-control button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-size: 18px; }
.temperature { font-size: 31px; font-weight: 300; }
.temperature small { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.source-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.source-button { min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); color: #aab4b1; cursor: pointer; font-size: 10px; }
.source-button.active { color: var(--ivory); border-color: rgba(226,189,140,.6); background: rgba(196,154,103,.12); }

.section-view { grid-template-columns: 1fr; }
.section-heading { padding-top: 30px; }
.feature-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.feature-card { min-height: 170px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(7,15,17,.58); backdrop-filter: blur(18px); cursor: pointer; transition: .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(226,189,140,.48); }
.feature-card .feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(196,154,103,.14); color: var(--bronze-light); }
.feature-card h3 { margin: 22px 0 7px; font: 400 18px Georgia, serif; }
.feature-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.location-popover { position: absolute; z-index: 20; top: 82px; left: 116px; width: 230px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(7,14,16,.96); backdrop-filter: blur(26px); box-shadow: 0 22px 55px rgba(0,0,0,.35); }
.location-popover .popover-label { padding: 7px 9px 10px; }
.location-popover button { width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: #b8c1be; text-align: left; cursor: pointer; font-size: 12px; }
.location-popover button:hover { background: rgba(255,255,255,.06); color: white; }
.toast { position: absolute; left: 50%; bottom: 26px; z-index: 30; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(6,13,15,.9); backdrop-filter: blur(20px); color: var(--ivory); font-size: 11px; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1180px) {
  .rail { width: 78px; padding-inline: 11px; }
  .topbar { left: 78px; padding-inline: 25px; }
  .content { left: 78px; padding-inline: 25px; }
  .home-view { grid-template-columns: 1fr 315px; }
  .deck-view, .room-view { grid-template-columns: 1fr 340px; }
}

@media (max-height: 760px) {
  .topbar { height: 78px; padding-block: 16px; }
  .content { top: 78px; padding-top: 12px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-copy h1 { font-size: 58px; }
  .metric { min-height: 76px; }
  .room-card { min-height: 58px; }
  .room-card img { height: 42px; }
  .control-group { padding: 12px 0; }
}

/* Crestron TSW-880 · native 1280 × 800 composition */
.app[data-device="tsw"] .rail { width: 76px; padding: 18px 10px; }
.app[data-device="tsw"] .brand { width: 48px; height: 48px; }
.app[data-device="tsw"] .nav-button,
.app[data-device="tsw"] .icon-button { width: 52px; min-height: 52px; border-radius: 16px; }
.app[data-device="tsw"] .nav-button.active::before { left: -12px; }
.app[data-device="tsw"] .topbar { left: 76px; height: 78px; padding: 15px 24px; }
.app[data-device="tsw"] .top-status { gap: 15px; }
.app[data-device="tsw"] .content { inset: 78px 0 0 76px; padding: 14px 24px 22px; }
.app[data-device="tsw"] .home-view { grid-template-columns: minmax(420px,1fr) 315px; gap: 20px; }
.app[data-device="tsw"] .hero-copy { padding-bottom: 8px; }
.app[data-device="tsw"] .hero-copy h1 { font-size: 58px; }
.app[data-device="tsw"] .hero-copy p { margin-bottom: 18px; }
.app[data-device="tsw"] .overview-panel { padding: 18px; border-radius: 22px; }
.app[data-device="tsw"] .metric { min-height: 76px; padding: 11px; }
.app[data-device="tsw"] .metric strong { margin-top: 7px; }
.app[data-device="tsw"] .scene-chip { min-height: 50px; }
.app[data-device="tsw"] .deck-view,
.app[data-device="tsw"] .room-view { grid-template-columns: minmax(400px,1fr) 330px; gap: 20px; }
.app[data-device="tsw"] .view-intro,
.app[data-device="tsw"] .section-heading { padding-top: 10px; }
.app[data-device="tsw"] .deck-stack { margin-top: 18px; }
.app[data-device="tsw"] .deck-level { height: 43px; }
.app[data-device="tsw"] .room-list-panel,
.app[data-device="tsw"] .control-panel { padding: 16px; }
.app[data-device="tsw"] .room-card { min-height: 58px; }
.app[data-device="tsw"] .room-card img { height: 42px; }
.app[data-device="tsw"] .control-group { padding: 11px 0; }
.app[data-device="tsw"] .feature-card { min-height: 145px; }

/* Phone · native 390 × 844 composition */
.app[data-device="mobile"] { min-width: 0; min-height: 0; }
.app[data-device="mobile"] .backdrop::after { background: linear-gradient(180deg,rgba(3,8,9,.38),rgba(3,8,9,.16) 35%,rgba(3,8,9,.82) 78%); }
.app[data-device="mobile"] .rail { inset: auto 0 0; width: 100%; height: 72px; padding: 7px 9px; border: 0; border-top: 1px solid var(--line); flex-direction: row; gap: 6px; }
.app[data-device="mobile"] .brand { width: 42px; height: 42px; flex: 0 0 42px; }
.app[data-device="mobile"] .brand-mark { font-size: 20px; }
.app[data-device="mobile"] #mainNav { min-width: 0; margin: 0; flex: 1; flex-direction: row; justify-content: space-around; gap: 1px; }
.app[data-device="mobile"] .nav-button { width: 48px; min-height: 54px; border-radius: 13px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.app[data-device="mobile"] .nav-button svg { width: 18px; height: 18px; }
.app[data-device="mobile"] .nav-button small { display: block; max-width: 46px; overflow: hidden; text-overflow: ellipsis; font-size: 7px; white-space: nowrap; }
.app[data-device="mobile"] .nav-button.active::before { left: 13px; right: 13px; top: -7px; width: auto; height: 2px; }
.app[data-device="mobile"] .profile-button { display: none; }
.app[data-device="mobile"] .topbar { left: 0; height: 64px; padding: 10px 13px; }
.app[data-device="mobile"] .eyebrow { font-size: 8px; }
.app[data-device="mobile"] .location-select { max-width: 190px; margin-top: 3px; font-size: 14px; }
.app[data-device="mobile"] #locationName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app[data-device="mobile"] .top-status { gap: 8px; }
.app[data-device="mobile"] .top-status .status-item,
.app[data-device="mobile"] .device-label { display: none; }
.app[data-device="mobile"] .language-button { height: 30px; padding: 0 6px; gap: 5px; }
.app[data-device="mobile"] .language-button img { width: 22px; height: 15px; }
.app[data-device="mobile"] .language-menu { top: 37px; right: -45px; width: 180px; }
.app[data-device="mobile"] #clock { min-width: 40px; font-size: 13px; }
.app[data-device="mobile"] .content { inset: 64px 0 72px; padding: 10px 12px 12px; overflow: auto; scrollbar-width: none; }
.app[data-device="mobile"] .content::-webkit-scrollbar { display: none; }
.app[data-device="mobile"] .home-view { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.app[data-device="mobile"] .hero-copy { padding: 0; }
.app[data-device="mobile"] .hero-copy h1 { margin: 6px 0; font-size: 39px; }
.app[data-device="mobile"] .hero-copy p { display: none; }
.app[data-device="mobile"] .hero-actions { gap: 7px; }
.app[data-device="mobile"] .primary-button,
.app[data-device="mobile"] .glass-button { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 11px; }
.app[data-device="mobile"] .overview-panel { padding: 13px; border-radius: 19px; }
.app[data-device="mobile"] .overview-panel h2 { margin: 4px 0 10px; font-size: 18px; }
.app[data-device="mobile"] .status-grid { gap: 7px; }
.app[data-device="mobile"] .metric { min-height: 57px; padding: 9px 11px; }
.app[data-device="mobile"] .metric:nth-child(n+3) { display: none; }
.app[data-device="mobile"] .metric-icon { float: right; }
.app[data-device="mobile"] .metric strong { margin-top: 1px; font-size: 17px; }
.app[data-device="mobile"] .scene-strip { margin-top: 10px; padding-top: 10px; }
.app[data-device="mobile"] .scene-chip { min-height: 45px; font-size: 8px; }
.app[data-device="mobile"] .scene-chip span { margin-bottom: 4px; }
.app[data-device="mobile"] .deck-view,
.app[data-device="mobile"] .room-view,
.app[data-device="mobile"] .section-view { height: auto; min-height: 100%; display: flex; flex-direction: column; gap: 11px; }
.app[data-device="mobile"] .view-intro,
.app[data-device="mobile"] .section-heading { padding-top: 2px; }
.app[data-device="mobile"] .view-intro h1,
.app[data-device="mobile"] .room-heading h1,
.app[data-device="mobile"] .section-heading h1 { margin: 5px 0 7px; font-size: 34px; }
.app[data-device="mobile"] .view-intro p,
.app[data-device="mobile"] .section-heading > p { margin: 0; font-size: 11px; line-height: 1.45; }
.app[data-device="mobile"] .deck-stack { width: 100%; margin-top: 13px; gap: 5px; }
.app[data-device="mobile"] .deck-level { height: 42px; padding: 0 13px; }
.app[data-device="mobile"] .deck-level:nth-child(n) { margin-inline: 0; }
.app[data-device="mobile"] .deck-level:hover,
.app[data-device="mobile"] .deck-level.active { transform: none; }
.app[data-device="mobile"] .room-list-panel { padding: 13px; overflow: visible; }
.app[data-device="mobile"] .room-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.app[data-device="mobile"] .room-card { min-width: 0; min-height: 59px; padding: 7px; }
.app[data-device="mobile"] .room-card img { width: 51px; height: 43px; }
.app[data-device="mobile"] .room-card small { display: none; }
.app[data-device="mobile"] .room-heading { padding: 130px 0 0; }
.app[data-device="mobile"] .room-heading p { display: none; }
.app[data-device="mobile"] .room-tags { margin-top: 8px; overflow: hidden; }
.app[data-device="mobile"] .room-tag { flex: 0 0 auto; }
.app[data-device="mobile"] .room-tag:nth-child(n+3) { display: none; }
.app[data-device="mobile"] .control-panel { padding: 13px; overflow: visible; }
.app[data-device="mobile"] .control-panel-title { margin-bottom: 10px; }
.app[data-device="mobile"] .control-panel-title h2 { font-size: 18px; }
.app[data-device="mobile"] .control-group { padding: 11px 0; }
.app[data-device="mobile"] .source-button { min-height: 43px; }
.app[data-device="mobile"] .control-panel > .scene-strip { display: none; }
.app[data-device="mobile"] .feature-grid { margin-top: 15px; grid-template-columns: 1fr 1fr; gap: 8px; }
.app[data-device="mobile"] .feature-card { min-height: 125px; padding: 13px; border-radius: 16px; }
.app[data-device="mobile"] .feature-card h3 { margin: 12px 0 5px; font-size: 14px; }
.app[data-device="mobile"] .feature-card p { font-size: 9px; }
.app[data-device="mobile"] .location-popover { top: 59px; left: 12px; width: 220px; max-height: 70vh; overflow: auto; }
.app[data-device="mobile"] .toast { bottom: 82px; max-width: calc(100% - 24px); white-space: nowrap; }
