.remote-dialog{width:min(980px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:26px;color:var(--text);background:var(--panel);border:1px solid var(--line)}
.remote-dialog h2{margin:3px 0;font-size:1.75rem}.remote-dialog h3{font-size:1.125rem;margin:0 0 12px}.remote-dialog .eyebrow{margin:0}.remote-dialog p,.remote-dialog li{font-size:1rem;line-height:1.6}.remote-dialog .small,.remote-dialog small{font-size:.875rem;line-height:1.5}.remote-dialog button,.remote-dialog select{min-height:44px;font-size:.9375rem}.remote-dialog a{text-decoration:underline;text-underline-offset:3px}.remote-intro{margin:0 0 18px;color:var(--muted)}
.remote-status-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft);margin-bottom:22px}.remote-status-bar p{margin:0;flex:1 1 280px;overflow-wrap:anywhere}.remote-status-bar .check{margin:0;white-space:nowrap}
.remote-setup-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:26px;margin:0 0 26px}.remote-setup-grid>section{min-width:0}.remote-steps{padding-left:22px;margin:0}.remote-steps li{padding:0 0 12px 4px}.remote-dialog details{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}.remote-dialog summary{cursor:pointer;font-weight:600;min-height:44px;padding:8px 0;font-size:1rem}.remote-source label,#remote-device-row label{display:block;font-size:.9375rem;margin-bottom:7px}.remote-source select,#remote-device-row select{width:100%}#remote-device-row{margin-top:12px}
.remote-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.remote-actions button{flex:1}.remote-test,.remote-capture{padding:16px;border:1px solid var(--line);border-radius:10px;margin:16px 0;background:var(--soft)}.remote-test:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.remote-test strong,.remote-capture>strong{font-size:1.0625rem}.remote-test p{margin:8px 0;color:var(--text);overflow-wrap:anywhere}.remote-test small{color:var(--muted)}.remote-capture{border:2px solid var(--accent)}.remote-capture p{margin:4px 0 12px}#remote-feedback{min-height:1.5em;color:var(--text)}
.remote-bindings{border:1px solid var(--line);border-radius:10px;overflow:hidden}.remote-binding{display:grid;grid-template-columns:minmax(160px,1fr) minmax(110px,.75fr) auto;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.remote-binding:last-child{border-bottom:0}.remote-binding[data-active=true]{background:var(--soft);box-shadow:inset 4px 0 var(--accent);color:var(--text)}.remote-binding strong{font-size:1rem;display:block}.remote-binding small{display:block;color:var(--muted);margin-top:3px}.remote-bound-key{font-size:.9375rem;overflow-wrap:anywhere}.remote-row-actions{display:flex;gap:7px}.remote-notes{margin-top:24px}.remote-notes p{margin:10px 0}.remote-key-list{border:1px solid var(--line);border-radius:8px;padding:4px 12px}.remote-key-list>div{display:grid;grid-template-columns:130px 65px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.9375rem}.remote-key-list>div:last-child{border:0}.remote-resources{padding-left:22px}.remote-resources li{margin:10px 0}.remote-resources span{color:var(--muted);font-size:.875rem}#remote-review[data-connected=true]{border-color:var(--accent)}
@media(max-width:700px){.remote-dialog{padding:18px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.remote-dialog .dialog-heading{align-items:flex-start;gap:12px}.remote-dialog h2{font-size:1.4rem}.remote-setup-grid{grid-template-columns:1fr;gap:22px}.remote-binding{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}.remote-bound-key{grid-column:1;grid-row:2}.remote-row-actions{grid-column:2;grid-row:1 / 3;flex-direction:column}.remote-key-list>div{grid-template-columns:1fr 1fr}.remote-key-list>div>span:last-child{grid-column:1 / -1}.remote-status-bar .check{white-space:normal}.remote-dialog .primary{white-space:normal}}
