/* PatchTV 3.9.1 (T523): "Sync with your phone" card on /tv (code + QR, the phone links the TV via /link). */
.tv-sync391{position:fixed;z-index:26;left:max(18px,env(safe-area-inset-left));bottom:max(96px,calc(env(safe-area-inset-bottom) + 96px));display:flex;gap:18px;align-items:center;max-width:min(600px,calc(100vw - 36px));padding:16px 18px;border:1px solid #5a7a42;border-radius:18px;background:#0f1713f0;box-shadow:0 24px 70px #000c;backdrop-filter:blur(14px);color:#eef4ea}
.tv-sync391[hidden]{display:none}
.tv-sync391 .tv-sync-qr{flex:none;width:118px;height:118px;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden}
.tv-sync391 .tv-sync-qr img{width:106px;height:106px;image-rendering:pixelated}
.tv-sync391 .tv-sync-qr img[hidden]{display:none}
.tv-sync391 .tv-sync-copy{min-width:0;display:grid;gap:6px}
.tv-sync391 .eyebrow{margin:0;font-size:11px;letter-spacing:.16em;color:#bde886}
.tv-sync391 .pair-code{font-size:34px;font-weight:900;letter-spacing:.12em;line-height:1;font-variant-numeric:tabular-nums;color:#d8ff8a}
.tv-sync391 p{margin:0;font-size:13px;line-height:1.45;color:#b8c8b4}
.tv-sync391 p b{color:#fff}
.tv-sync391 #pair-status{color:#9bb093;font-size:12px}
.tv-sync391 #pair-status[data-state="error"]{color:#ffb5aa}
.tv-sync391 .tv-sync-actions{display:flex;gap:8px;margin-top:4px}
.tv-sync391 button{border:1px solid #4a5f43;border-radius:999px;background:#1a2620;color:#e6efe0;font-weight:800;font-size:13px;padding:8px 14px;cursor:pointer;min-height:38px}
.tv-sync391 button:hover{border-color:#8fb86a}
.tv-sync391 button:focus-visible{outline:3px solid #eabc67;outline-offset:3px}
.tv-sync391 button[hidden]{display:none}
.ptv-tv-mode .tv-sync391{left:48px;bottom:140px;padding:22px 24px;gap:24px;max-width:720px}
.ptv-tv-mode .tv-sync391 .tv-sync-qr{width:160px;height:160px}
.ptv-tv-mode .tv-sync391 .tv-sync-qr img{width:146px;height:146px}
.ptv-tv-mode .tv-sync391 .pair-code{font-size:46px}
.ptv-tv-mode .tv-sync391 p{font-size:17px}
.ptv-tv-mode .tv-sync391 button{font-size:17px;min-height:46px;padding:10px 18px}
@media(max-width:680px){
  .tv-sync391{left:12px;right:12px;max-width:none;bottom:max(84px,calc(env(safe-area-inset-bottom) + 84px));gap:12px;padding:12px}
  .tv-sync391 .tv-sync-qr{width:84px;height:84px}
  .tv-sync391 .tv-sync-qr img{width:76px;height:76px}
  .tv-sync391 .pair-code{font-size:26px}
  .tv-sync391 p{font-size:12px}
}
