/* Delta de estilo do PWA Remote — reaproveita 100% os tokens/componentes de
 * ../styles.css (cores, cards, badges, botões). Aqui só o que é específico
 * de telas de toque/mobile: layout mobile-first, PTT gigante, pairing. */

html, body { overflow: auto; -webkit-user-select: text; user-select: text; }
.rmt-shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }

.rmt-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--sp-3);
  padding: max(env(safe-area-inset-top), var(--sp-3)) var(--sp-4) var(--sp-3);
  background: rgba(11,13,18,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.rmt-top .mark { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; background: linear-gradient(150deg,var(--accent),var(--accent-dim,#6355c9)); font-weight: 800; color: #fff; }
.rmt-top .proj { min-width: 0; flex: 1; }
.rmt-top .proj .pl { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.rmt-top .proj .pv { font-weight: 650; font-size: var(--fs-md); }

.rmt-body { flex: 1; padding: var(--sp-4); padding-bottom: calc(var(--sp-9) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--sp-5); max-width: 720px; margin: 0 auto; width: 100%; }

.rmt-ptt-zone { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-5) 0; }
.rmt-ptt {
  width: 128px; height: 128px; border-radius: 50%; border: none; display: grid; place-items: center;
  background: radial-gradient(circle at 42% 34%, var(--accent), var(--accent-dim,#4a3ba8) 72%); color: #fff;
  box-shadow: var(--shadow-2); transition: transform .12s var(--ease); touch-action: none; cursor: pointer;
}
.rmt-ptt svg { width: 44px; height: 44px; }
.rmt-ptt.holding { transform: scale(1.07); box-shadow: 0 0 0 14px var(--accent-soft), var(--shadow-2); }
.rmt-ptt:disabled { opacity: .5; }
.rmt-ptt-label { font-weight: 600; color: var(--text-dim); }
.rmt-fallback { display: flex; gap: var(--sp-2); width: 100%; }
.rmt-fallback input { flex: 1; }

.rmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (min-width: 560px) { .rmt-grid { grid-template-columns: repeat(3, 1fr); } }

.rmt-pairing { min-height: 100dvh; display: grid; place-items: center; padding: var(--sp-6); }
.rmt-pairing .card { max-width: 420px; width: 100%; }

.rmt-conn { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.rmt-conn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.rmt-conn.on .dot { background: var(--ok); }
.rmt-conn.off .dot { background: var(--danger); }

.rmt-tabs { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 2px; }
.rmt-tab { padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer; }
.rmt-tab.active { background: var(--accent-soft); border-color: var(--accent-line,rgba(124,108,240,.4)); color: var(--accent-strong); }
