/* A focused, phone-shaped PIN surface. Scoped so account and business dialogs keep their styles. */
#device-pin-dialog{color-scheme:dark;width:min(370px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:24px;border:1px solid #34524c;border-radius:34px;background:radial-gradient(ellipse at 50% 0%,#183e35 0%,#111d1b 48%,#101716 100%);color:#f5faf8;box-shadow:0 32px 100px #0008;overflow:auto;overscroll-behavior:contain;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#device-pin-dialog::backdrop{background:#0b1516b8;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#device-pin-dialog .pin-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#device-pin-dialog .pin-brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:700;letter-spacing:-.6px}
#device-pin-dialog .pin-brand img{width:32px;height:32px;border-radius:8px}
#device-pin-dialog .pin-close{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #ffffff20;border-radius:50%;background:#ffffff0d;color:#d8e6e1;font-size:25px;line-height:1}
#device-pin-dialog .pin-heading{text-align:center;margin:28px 0 24px}
#device-pin-dialog .pin-eyebrow{font-size:9px;font-weight:650;letter-spacing:2px;color:#87b9aa;margin:0 0 12px}
#device-pin-dialog h2{font-size:27px;line-height:1.2;font-weight:600;letter-spacing:-.8px;margin:0 0 10px;color:#fff}
#device-pin-dialog .pin-description{font-size:13px;line-height:1.55;max-width:260px;margin:auto;color:#bfd0ca;min-height:21px}
#device-pin-dialog form{display:block;margin:0}
#device-pin-dialog .pin-dots{display:flex;justify-content:center;gap:15px;padding:0 0 4px}
#device-pin-dialog .pin-dots span{display:block;width:13px;height:13px;border:1.5px solid #9ec6ba;border-radius:50%;background:transparent;transition:background .1s,box-shadow .1s}
#device-pin-dialog .pin-dots .is-filled{background:#00c3a6;border-color:#00c3a6;box-shadow:0 0 12px #00c3a62b}
#device-pin-dialog .pin-message{display:grid;place-items:center;min-height:54px;text-align:center;padding:8px 0}
#device-pin-dialog .pin-message p{grid-area:1/1;margin:0;font-size:12px;line-height:1.4}
#device-pin-dialog [data-pin-error]{color:#ffc4b8}
#device-pin-dialog [data-pin-status]{color:#a6ddd0}
#device-pin-dialog .pin-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 16px;width:min(280px,100%);margin:0 auto}
#device-pin-dialog .pin-key{justify-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;width:clamp(55px,8.5dvh,72px);height:clamp(55px,8.5dvh,72px);padding:0;border:1px solid #ffffff16;border-radius:50%;background:#ffffff10;color:#fff;font-size:31px;font-weight:400;line-height:1.05;box-shadow:none;touch-action:manipulation;user-select:none;-webkit-user-select:none}
#device-pin-dialog .pin-key small{display:block;font-size:8px;font-weight:600;letter-spacing:2px;line-height:1;margin-top:6px;margin-left:2px;color:#ceded7}
#device-pin-dialog .pin-delete{display:grid;place-items:center;align-self:center;justify-self:center;width:64px;height:55px;padding:12px;background:transparent;color:#d3e7df;border:0;border-radius:50%}
#device-pin-dialog .pin-delete svg{width:27px;height:25px;stroke:currentColor;stroke-width:1.5;fill:none}
#device-pin-dialog .pin-key:active,#device-pin-dialog .pin-key.is-pressed{background:#f2f8f5;border-color:#fff;color:#10201b;transform:scale(.96)}
#device-pin-dialog .pin-key:active small,#device-pin-dialog .pin-key.is-pressed small{color:#29493e}
#device-pin-dialog button:focus-visible{outline:3px solid #00d1b2;outline-offset:4px}
#device-pin-dialog button:disabled{cursor:wait;opacity:.5}
#device-pin-dialog .pin-footer{display:flex;flex-direction:column;align-items:center;gap:12px;margin:24px 0 0;text-align:center}
#device-pin-dialog .pin-footer button{width:auto;min-height:30px;padding:4px 10px;border:0;border-radius:8px;background:transparent;color:#8fe5d1;font-size:13px;font-weight:500}
#device-pin-dialog .pin-footer [data-pin-restart]{font-size:12px;color:#d2e1db}
#device-pin-dialog [hidden]{display:none!important}
#device-pin-dialog .pin-footer p{margin:0;color:#91a89e;font-size:10px;line-height:1.5}
#device-pin-dialog .pin-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-height:700px){#device-pin-dialog{padding:18px 22px;border-radius:28px}#device-pin-dialog .pin-heading{margin:17px 0 18px}#device-pin-dialog .pin-message{min-height:46px}#device-pin-dialog .pin-keypad{gap:9px 15px}#device-pin-dialog .pin-footer{margin-top:15px;gap:6px}}
@media(prefers-reduced-motion:reduce){#device-pin-dialog .pin-dots span{transition:none}#device-pin-dialog .pin-key:active,#device-pin-dialog .pin-key.is-pressed{transform:none}}

/* Initial focus belongs to the dialog, not a digit; keyboard users retain button focus rings. */
#device-pin-dialog:focus{outline:none}

#device-pin-dialog .pin-delete:active,#device-pin-dialog .pin-delete.is-pressed{background:#f2f8f5;color:#10201b}

/* Fast two-thumb input: no browser pan/double-tap gesture on the number pad. */
#device-pin-dialog .pin-keypad,#device-pin-dialog .pin-keypad button{touch-action:none}
