/* The receiver keeps the shared focused-sheet timing and action/field roles. */
.pc-dialog { width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line-hi); border-radius: var(--r-l); background: var(--panel); color: var(--fg); box-shadow: 0 1.5rem 5rem #0008; animation: pcIn .28s var(--ease) both; }
.pc-dialog::backdrop { background: #0009; backdrop-filter: blur(8px); animation: pcBackdropIn .28s var(--ease) both; }
.pc-dialog.is-leaving { animation: pcOut .18s var(--ease) both; }
.pc-dialog-body { padding: clamp(1.1rem, 4vw, 2rem); }
.pc-heading h1, .pc-heading h2 { margin: .5rem 0 .65rem; font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 730; line-height: 1.12; letter-spacing: -.045em; }
.pc-heading > p { max-width: var(--prose-tight); margin: 0; color: var(--dim); font-size: .8rem; line-height: 1.55; }
.pc-kicker { display: flex; align-items: center; gap: .4rem; color: var(--dim); font-size: .58rem; font-weight: 770; letter-spacing: .11em; }
.pc-kicker svg { flex: none; width: 1rem; height: 1rem; }
.pc-receiver-content { margin-top: 1.5rem; }
.pc-receiver-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.pc-qr { width: 100%; max-width: 15rem; margin: auto; overflow: hidden; border-radius: var(--r-m); background: #242424; }
.pc-qr svg { display: block; width: 100%; height: auto; }
.pc-compare .pc-kicker { font-size: .55rem; }
.pc-code { margin: .55rem 0; color: var(--fg); font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .065em; white-space: nowrap; }
.pc-compare p { margin: 0; color: var(--dim); font-size: .75rem; line-height: 1.45; }
.pc-compare small { display: block; margin-top: .7rem; color: var(--dim); font-size: .65rem; line-height: 1.4; }
.pc-message { min-height: 1.4em; margin: 1rem 0 .5rem; }
.pc-dialog-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.pc-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 12rem; gap: .65rem; padding: 1rem 0; text-align: center; }
.pc-state h2, .pc-state h3 { margin: 0; font-size: 1.15rem; font-weight: 710; letter-spacing: -.03em; }
.pc-state p { max-width: 23rem; margin: 0; color: var(--dim); font-size: .78rem; line-height: 1.5; }
.pc-state-mark { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .4rem; border: 1px solid var(--line-hi); border-radius: 50%; color: var(--dim); }
.pc-state-mark svg { width: 1.4rem; height: 1.4rem; }
.pc-loading { width: 1.6rem; height: 1.6rem; border: 2px solid var(--line-hi); border-top-color: var(--fg); border-radius: 50%; animation: pcSpin .8s linear infinite; }

/* Phone authorization is a page, with room to review the approval boundary. */
.pc-phone { min-height: 100dvh; background: var(--bg); color: var(--fg); }
.pc-phone-shell { max-width: 31rem; margin: auto; padding: calc(1.4rem + env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) calc(1.4rem + env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left)); }
.pc-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: 2.4rem; font-size: .65rem; font-weight: 850; letter-spacing: .16em; }
.pc-brand img { width: 1.5rem; height: 1.5rem; }
.pc-phone .pc-heading { margin-bottom: 1.5rem; }
.pc-phone .pc-message:empty { display: none; }
.pc-phone .pc-heading h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
.pc-phone-auth, .pc-approval { min-width: 0; border: 1px solid var(--line-hi); border-radius: var(--r-l); padding: 1.1rem; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.012) 72%); }
.pc-phone-auth > .ui-field-label { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.pc-phone-auth > .ui-field-label span { color: var(--dim); font-weight: 540; }
.pc-phone-auth > input { width: 100%; }
.pc-phone-auth > .pc-name-message { margin: .4rem 0 0; font-size: .67rem; line-height: 1.4; }
.pc-step-enter { animation: pcStepIn .22s var(--ease) both; }
.pc-create, .pc-signin, .pc-new-account, .pc-approve { width: 100%; margin-top: 1rem; }
.pc-phone-choice > .pc-signin { margin-top: 0; }
.pc-phone-return .pc-new-account { margin-top: 0; }
.pc-auth-back { margin-top: .7rem; }
.pc-auth-note { margin: .65rem 0 0; color: var(--dim); font-size: .67rem; line-height: 1.5; }
.pc-phone-return { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.pc-phone-return > span { color: var(--dim); font-size: .75rem; }
.pc-phone-return .pc-signin { margin-top: .5rem; }
.pc-phone-account { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; }
.pc-phone-account > span { min-width: 0; color: var(--dim); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.pc-phone-account b { color: var(--fg); font-weight: 700; }
.pc-approval .pc-compare { padding: 1rem; border: 1px solid var(--line-hi); border-radius: var(--r-m); background: rgba(255,255,255,.035); text-align: center; }
.pc-approval .pc-kicker { justify-content: center; }
.pc-approval .pc-code { font-size: 2.5rem; }
.pc-warning { margin: 1.1rem 0 .7rem; color: var(--dim); font-size: .75rem; line-height: 1.55; }
.pc-warning b { display: block; margin-bottom: .3rem; color: var(--fg); font-weight: 700; }
.pc-match { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .35rem 0; color: var(--fg); font-size: .75rem; line-height: 1.5; cursor: pointer; }
.pc-match input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); }
.pc-match input:focus-visible { outline: var(--ring-w) solid var(--ring-focus); outline-offset: .3rem; }
.pc-phone-actions { display: flex; justify-content: center; margin-top: .7rem; }
.pc-phone-success .pc-phone-actions { justify-content: flex-start; margin-top: 1.6rem; }
@keyframes pcIn { from { opacity: 0; transform: translateY(1rem) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pcOut { to { opacity: 0; transform: translateY(.6rem); } }
@keyframes pcBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcSpin { to { transform: rotate(360deg); } }
@keyframes pcStepIn { from { opacity: 0; transform: translateY(.35rem); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .pc-receiver-grid { grid-template-columns: 1fr; gap: 1.1rem; } .pc-qr { max-width: 13rem; } .pc-receiver-grid .pc-compare { text-align: center; } .pc-receiver-grid .pc-kicker { justify-content: center; } .pc-receiver-grid .pc-code { font-size: 2rem; } }
@media (max-height: 520px) and (min-width: 481px) { .pc-dialog-body { padding: 1.05rem 1.4rem; } .pc-heading h2 { font-size: 1.6rem; } .pc-receiver-content { margin-top: .8rem; } .pc-qr { max-width: 11rem; } .pc-message { margin-top: .65rem; } .pc-phone-shell { padding-top: 1rem; } .pc-brand { margin-bottom: 1rem; } }
@media (max-width: 360px), (max-height: 520px) { .pc-phone-shell { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); } .pc-phone .pc-brand { margin-bottom: 1.25rem; } .pc-phone .pc-heading { margin-bottom: 1.1rem; } .pc-phone .pc-heading h1 { font-size: 1.75rem; } .pc-phone-auth, .pc-approval { padding: .9rem; } }
@media (pointer: coarse) { .pc-match { min-height: 48px; } }
@media (prefers-reduced-motion: reduce) { .pc-dialog, .pc-dialog::backdrop, .pc-loading, .pc-step-enter { animation: none !important; } .pc-loading { border-style: dotted; } }
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) { .pc-dialog, .pc-phone-auth, .pc-approval, .pc-approval .pc-compare { background: var(--bg); } .pc-dialog::backdrop { backdrop-filter: none; } }
@media (forced-colors: active) { .pc-dialog, .pc-phone-auth, .pc-approval, .pc-approval .pc-compare { border: 1px solid CanvasText; } .pc-qr { forced-color-adjust: none; } }

/* The programmatic page heading announces navigation without a control ring. */
.pc-heading h1:focus { outline: none; }
