/* Phone remote: the pairing dialog (phone_controls.js) and the phone's connection banner (phone_bridge.js). */
.phone-dialog{width:min(520px,calc(100vw - 32px))}
.phone-dialog .phone-lead{margin-top:8px;color:var(--label-2)}
.phone-networks{display:flex;gap:2px;margin-top:16px;padding:3px;background:var(--fill-2);border-radius:11px;overflow-x:auto;scrollbar-width:none}
.phone-networks[hidden]{display:none}
.phone-networks button{flex:1 0 auto;border:0;border-radius:8px;background:none;color:var(--label-2);font-size:12px;font-weight:600;height:30px;padding:0 10px;white-space:nowrap}
.phone-networks button[aria-selected=true]{background:var(--surface);color:var(--label);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.phone-pair{display:flex;align-items:center;gap:18px;margin-top:16px;padding:14px;border:1px solid var(--hairline);border-radius:var(--radius-group);background:var(--fill)}
.phone-pair img{flex:none;width:196px;height:196px;border-radius:10px;background:#fff;image-rendering:pixelated}
.phone-pair-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.phone-pair-copy code{font-family:var(--mono);font-size:13px;color:var(--label);user-select:all;word-break:break-all}
.phone-pair-copy span{font-size:12px;line-height:1.45;color:var(--label-2)}
.phone-dialog .phone-choose{margin-top:14px;font-size:12px;line-height:1.45;color:var(--label-2)}
.phone-dialog .phone-choose[hidden]{display:none}
.phone-pair-copy .phone-use{color:var(--label);font-weight:500}
.phone-pair-copy .phone-why[hidden]{display:none}
.phone-pair-copy .phone-expiry{color:var(--label-3);font-variant-numeric:tabular-nums}
.phone-steps{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:9px}
.phone-steps li{font-size:12.5px;line-height:1.45;color:var(--label-2)}
.phone-steps strong{color:var(--label);font-weight:650}
.phone-footer{display:flex;align-items:center;gap:8px;margin-top:20px}
.phone-footer #phone-status{flex:1;font-size:12px;color:var(--label-3)}
.phone-footer #phone-status[data-tone=warn]{color:var(--orange)}
.phone-footer .primary-button{width:auto;min-height:40px;margin:0;padding:0 22px}
@media(max-width:560px){.phone-pair{flex-direction:column;text-align:center}.phone-pair-copy{align-items:center}}

/* On the phone itself: pairing another phone starts from the laptop. */
.phone-remote #phone-toggle{display:none}
/* Tony out of reach: a small pill in a bottom corner, lifted above any bar pinned to the bottom (phone_bridge.js place()),
   never over the header (James, 8 Nov: the top banner "gets in the way"). With no network it offers Bluetooth, and closes. */
.phone-offline{position:fixed;z-index:40;right:16px;bottom:calc(env(safe-area-inset-bottom) + 12px);max-width:min(440px,calc(100vw - 32px));
  box-sizing:border-box;padding:8px 14px;border-radius:24px;background:var(--orange-wash);color:var(--orange);font-size:13px;font-weight:600;
  line-height:1.3;box-shadow:0 6px 24px rgba(17,24,39,.12)}
.phone-offline[hidden]{display:none}
.phone-offline.phone-ble-offer{display:flex;align-items:center;gap:6px;padding:4px 4px 4px 14px}
.phone-ble-offer span{flex:1;min-width:0}
.phone-ble-offer button{flex:none;min-height:40px;border:0;border-radius:999px;padding:0 14px;background:var(--orange);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.phone-ble-offer button:disabled{opacity:.6}
.phone-ble-offer .phone-offline-hide{min-width:40px;padding:0;background:transparent;color:var(--orange);font-size:20px;line-height:1}
@media(max-width:640px){.phone-offline{left:12px;right:12px;width:fit-content;max-width:calc(100vw - 24px);margin:0 auto}}
.phone-ble-code{border:0;border-radius:18px;padding:20px;width:min(92vw,400px);box-shadow:0 20px 60px rgba(0,0,0,.25)}
.phone-ble-code::backdrop{background:rgba(0,0,0,.35)}
.phone-ble-code h2{margin:0 0 6px;font-size:20px}.phone-ble-code p{margin:0;color:var(--label-2);font-size:14px}
.phone-ble-code input{box-sizing:border-box;width:100%;min-height:48px;margin:14px 0;border:1px solid var(--separator,#e5e5ea);border-radius:12px;padding:0 12px;font:inherit;letter-spacing:.06em}
.phone-ble-code div{display:flex;gap:10px}.phone-ble-code div button{flex:1;min-height:44px;border:0;border-radius:12px;font:inherit;font-weight:600;cursor:pointer}
.phone-ble-code button[value=cancel]{background:var(--fill-2,#f0f0f3)}.phone-ble-code button[value=ok]{background:var(--blue,#0071e3);color:#fff}
