/* Public portal shortcut only. QR contrast remains black/white in both themes. */
.phone-remote-modal[hidden] { display: none !important; }
.phone-remote-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .58);
    overflow-y: auto;
}
.phone-remote-dialog {
    width: 760px;
    max-width: 100%;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--r-xl, 16px);
    color: var(--text);
    background: var(--surface-1);
    box-shadow: var(--shadow-lg);
}
.phone-remote-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.phone-remote-eyebrow { margin: 0 0 5px; color: var(--brand-500); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.phone-remote-header h2 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.phone-remote-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-md, 8px); color: var(--text-muted); background: var(--surface-0); font-size: 24px; cursor: pointer; }
.phone-remote-intro { margin: 12px 0 22px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.phone-remote-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; }
.phone-remote-scan { display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; }
.phone-remote-scan > strong { font-size: 12px; }
.phone-remote-qr { width: 240px; max-width: 100%; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.phone-remote-qr img { display: block; width: 100%; height: auto; }
.phone-remote-url { max-width: 100%; color: var(--brand-500); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; text-underline-offset: 3px; }
.phone-remote-status { min-height: 2.8em; margin: 0; font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.phone-remote-steps { list-style: none; counter-reset: phone-step; padding: 0; margin: 0; display: grid; gap: 15px; }
.phone-remote-steps li { position: relative; counter-increment: phone-step; padding-left: 34px; font-size: 12px; line-height: 1.6; }
.phone-remote-steps li::before { content: counter(phone-step); position: absolute; top: 0; left: 0; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: var(--brand-500); background: var(--brand-glow-soft); font-weight: 700; }
.phone-remote-steps strong, .phone-remote-steps span { display: block; }
.phone-remote-steps span { color: var(--text-muted); }
.phone-remote-capabilities { margin-top: 18px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-md, 8px); background: var(--surface-0); }
.phone-remote-capabilities h3 { margin: 0 0 6px; font-size: 12px; }
.phone-remote-capabilities p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-muted); }
.phone-remote-capabilities strong { color: var(--text); }
.phone-remote-bookmark { margin: 14px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-muted); }
.phone-remote-footer { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.phone-remote-footer p { margin: 0; flex: 1; font-size: 11px; line-height: 1.6; color: var(--text-muted); }
.phone-remote-modal :is(a, button):focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }
.phone-remote-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
    .phone-remote-modal { padding: 12px; }
    .phone-remote-dialog { padding: 20px; max-height: calc(100dvh - 24px); }
    .phone-remote-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .phone-remote-header h2 { font-size: 22px; }
    .phone-remote-footer { align-items: flex-start; gap: 12px; }
}
