/* These controls belong to the simulated Devices screen only. */
body[data-screen="devices"] {
  --dev-ink:#16283b; --dev-muted:#465e75; --dev-line:#d6e1ea;
  --dev-card:#fff; --dev-guide:#f4f7fa; --dev-soft:#fcf3eb; --dev-hover:#f8e3d2;
  --dev-copper:#7a4328; --dev-edge:#b38567; --dev-selected:#83492e; --dev-on-selected:#fff;
}
html[data-theme="dark"] body[data-screen="devices"] {
  --dev-ink:#f1f6fc; --dev-muted:#b6c7db; --dev-line:#344a5e;
  --dev-card:#102031; --dev-guide:#172c40; --dev-soft:#35281f; --dev-hover:#503728;
  --dev-copper:#f3c4a4; --dev-edge:#a57758; --dev-selected:#edb68e; --dev-on-selected:#2c1c11;
}
[data-screen="devices"] #app main.shell { width:min(1080px,calc(100% - 28px)); padding:0 0 24px; }
[data-screen="devices"] .device-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 24px; border:1px solid #324f69; border-radius:18px; background:radial-gradient(ellipse at 95% 0%,#34495b 0,transparent 47%),linear-gradient(125deg,#132d48,#153a57); color:#fff; box-shadow:0 6px 18px #091a2812; }
[data-screen="devices"] .device-hero h1 { margin:0 0 5px; font-size:clamp(1.75rem,3vw,2.25rem); line-height:1.04; letter-spacing:-.035em; }
[data-screen="devices"] .device-hero p { margin:0; max-width:64ch; color:#dce6ef; font-size:1rem; line-height:1.45; }
[data-screen="devices"] .device-board { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:10px; margin-top:10px; }
[data-screen="devices"] #app .device-board .card { margin:0; min-width:0; border:1px solid var(--dev-line) !important; background:var(--dev-card) !important; border-radius:16px; padding:clamp(14px,1.6vw,21px); box-shadow:0 3px 12px #0a192209; color:var(--dev-ink) !important; }
[data-screen="devices"] .device-board h2 { margin:0 0 5px; font-size:1.09rem; line-height:1.2; letter-spacing:-.02em; }
[data-screen="devices"] .device-board h3 { margin:0 0 4px; font-size:.92rem; line-height:1.25; }
[data-screen="devices"] #app .device-board p { margin:0; color:var(--dev-muted) !important; font-size:.95rem; line-height:1.48; }
[data-screen="devices"] .device-install { grid-row:span 2; }
[data-screen="devices"] .device-install-head { display:flex; align-items:center; gap:12px; }
[data-screen="devices"] .device-install-head img { border-radius:10px; }
[data-screen="devices"] .device-install .install-platforms { margin:13px 0 12px; padding:3px; margin-left:-3px; flex-wrap:wrap; gap:6px; justify-content:flex-start; overflow:visible; }
[data-screen="devices"] .device-guide { padding:11px 14px; border-radius:11px; border-inline-start:3px solid var(--dev-edge); background:var(--dev-guide); }
[data-screen="devices"] .device-requirements { padding-top:13px; }
[data-screen="devices"] #app .device-registered .device { gap:10px; flex-wrap:wrap; padding:8px 0 0; background:transparent !important; }
[data-screen="devices"] #app #ring-state { color:var(--dev-muted) !important; font-size:.86rem; line-height:1.35; }
[data-screen="devices"] .device-android .device-action { margin-top:9px; }
[data-screen="devices"] .device-routing { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:16px; }
html[data-theme] body[data-screen="devices"] #app :is(.device-action,.install-platform) {
  box-sizing:border-box; display:inline-flex; flex:0 0 auto; width:auto; align-items:center; justify-content:center; min-height:44px; height:auto; padding:8px 16px;
  border:1px solid var(--dev-edge) !important; border-radius:999px; background:var(--dev-soft) !important; color:var(--dev-copper) !important;
  font:inherit; font-size:.91rem; line-height:1.2; font-weight:700; text-decoration:none; cursor:pointer; box-shadow:none; transform:none;
}
html[data-theme] body[data-screen="devices"] #app .install-platform { padding:7px 12px; font-size:.86rem; }
html[data-theme] body[data-screen="devices"] #app :is(.device-action,.install-platform):is(:hover,:focus-visible) { background:var(--dev-hover) !important; color:var(--dev-copper) !important; border-color:var(--dev-copper) !important; }
html[data-theme] body[data-screen="devices"] #app .install-platform[aria-pressed="true"] { background:var(--dev-selected) !important; color:var(--dev-on-selected) !important; border-color:var(--dev-selected) !important; box-shadow:inset 0 -2px currentColor; }
html[data-theme] body[data-screen="devices"] #app .device-primary { color:#281a11 !important; background:linear-gradient(150deg,#f2c4a2,#dc976c) !important; border-color:#f1bd94 !important; }
html[data-theme] body[data-screen="devices"] #app .device-primary:hover { background:#ffd2af !important; }
html[data-theme] body[data-screen="devices"] #app :is(.device-action,.install-platform):focus-visible { outline:3px solid var(--demo-focus,#1680bd); outline-offset:2px; }
@media(max-width:740px) {
  [data-screen="devices"] #app main.shell { width:calc(100% - 20px); }
  [data-screen="devices"] .device-board { grid-template-columns:1fr; gap:8px; }
  [data-screen="devices"] .device-install { grid-row:auto; }
  [data-screen="devices"] .device-hero,[data-screen="devices"] .device-routing { align-items:flex-start; flex-direction:column; gap:11px; }
  [data-screen="devices"] .device-hero { padding:17px; }
  [data-screen="devices"] #app .device-registered .device { flex-direction:row; align-items:center; }
}
