#po-profile{width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line,#e3e8f0);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#1b2333);box-shadow:0 20px 70px #00173540;overflow:hidden}
#po-profile::backdrop{background:#071b35a6}
#po-profile[open]{display:flex;flex-direction:column}
#po-profile header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line,#e3e8f0);flex-shrink:0}
#po-profile h2{margin:0;font-size:20px;color:var(--heading,#0d2347)}
#po-profile header button{width:44px;height:44px;font-size:28px;border:0;background:none;color:inherit;cursor:pointer}
#pe-form{min-height:0;display:flex;flex-direction:column;margin:0}
#po-profile .pe-body{padding:20px;overflow-y:auto;min-height:0}
#po-profile label{display:block;font-size:13px;font-weight:600;margin-bottom:14px}
#po-profile label>span{display:block;margin-bottom:6px}
#po-profile input:not([type=range]){display:block;box-sizing:border-box;width:100%;height:46px;padding:10px 12px;border:1px solid var(--line,#e3e8f0);border-radius:9px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:16px}
#po-profile input:focus-visible,#po-profile button:focus-visible{outline:2px solid var(--blue,#1257b8);outline-offset:2px}
#po-profile .pe-hint{font-size:12px;line-height:1.6;color:var(--muted,#6b7688);margin:-6px 0 18px}
#po-profile footer{display:flex;justify-content:flex-end;gap:10px;flex-shrink:0;padding:14px 20px;border-top:1px solid var(--line,#e3e8f0)}
#po-profile footer button,#pe-send-code{min-height:44px;padding:9px 16px;border:1px solid var(--line,#e3e8f0);border-radius:9px;background:var(--surface,#fff);color:var(--heading,#0d2347);font:inherit;font-weight:600;cursor:pointer}
#po-profile #pe-save{background:#1257b8;color:#fff;border-color:#1257b8}
#po-profile button:disabled{opacity:.5;cursor:default}
#po-profile .pe-code-row{display:flex;align-items:flex-end;gap:10px}
#po-profile .pe-code-row label{flex:1;min-width:0;margin-bottom:0}
#pe-code-status{font-size:12px;color:var(--muted,#6b7688);overflow-wrap:anywhere}
#pe-msg{font-size:13px;color:#bb3131;line-height:1.5;min-height:1.5em;margin-bottom:0}
@media(prefers-color-scheme:dark){body:has(#m-main) #pe-msg{color:#ffb0a7}}
@media(max-width:420px){#po-profile .pe-body{padding:16px}#po-profile header,#po-profile footer{padding:12px 16px}.pe-code-row{flex-wrap:wrap}#pe-send-code{font-size:13px}}

#m-logout{margin-top:20px;color:var(--heading,#0d2347)}
#po-my-account .po-my-logout{margin-top:16px;justify-content:center;border:1px solid var(--line,#e3e8f0);border-radius:10px;padding:14px}
