.otos-account-entry{position:fixed;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:100;display:flex;justify-content:flex-end;pointer-events:none}
.otos-account-entry button{pointer-events:auto;cursor:pointer;margin:0;text-decoration:none;border:1px solid #d9dddf;background:#fff;color:#171a1c;box-shadow:0 8px 28px #1118201a;font:700 13px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.otos-account-entry button:hover{transform:translateY(-1px);border-color:#aab1b5;box-shadow:0 12px 32px #11182024}
.otos-account-entry button:focus-visible,#otos-account-close:focus-visible,.otos-hub-actions>a:focus-visible,.otos-hub-actions>button:focus-visible{outline:3px solid #526574;outline-offset:3px}
#otos-account-login{min-height:44px;padding:0 17px;border-radius:999px}
#otos-account-avatar{position:relative;display:grid;place-items:center;width:48px;height:48px;padding:0;overflow:visible;border-radius:50%;background:#315a6b;color:#fff;border:2px solid #fff;font-size:16px;letter-spacing:-.02em}
#otos-account-avatar[data-avatar-tone="0"]{background:#315a6b}
#otos-account-avatar[data-avatar-tone="1"]{background:#604c78}
#otos-account-avatar[data-avatar-tone="2"]{background:#75483b}
#otos-account-avatar[data-avatar-tone="3"]{background:#3f625b}
#otos-account-avatar[data-avatar-tone="4"]{background:#525b82}
#otos-account-avatar[data-avatar-tone="5"]{background:#68533d}
#otos-account-avatar[hidden],#otos-account-login[hidden]{display:none!important}
#otos-account-avatar-initial{display:grid;place-items:center;width:100%;height:100%;border-radius:inherit;font-weight:800}
.otos-account-update-indicator{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#d97706;box-shadow:0 1px 4px #0003}
.otos-account-update-indicator[hidden]{display:none!important}
#otos-account-hub{box-sizing:border-box;width:min(510px,calc(100vw - 32px));max-height:min(88dvh,760px);margin:auto;padding:28px;border:1px solid #e2e5e7;border-radius:24px;background:#fff;color:#171a1c;box-shadow:0 28px 100px #11182052;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;overflow:auto}
#otos-account-hub::backdrop{background:#11182099;backdrop-filter:blur(3px)}
.otos-hub-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.otos-hub-kicker{margin:0 0 7px;color:#68747b;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
#otos-account-heading{margin:0;font-size:27px;line-height:1.22;letter-spacing:-.045em;color:#101315}
#otos-account-name{margin:8px 0 0;color:#667078;font-size:13px;font-weight:600}
#otos-account-close{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;margin:0;padding:0;border:1px solid #e2e5e7;border-radius:50%;background:#f6f7f7;color:#252b2f;font-size:23px;line-height:1;cursor:pointer}
#otos-account-status{margin:22px 0 20px;padding:13px 15px;border:1px solid #e3e7e9;border-radius:12px;background:#f7f8f8;color:#4e5a61;font-size:13px;line-height:1.6}
#otos-account-status[data-state="ready"]{border-color:#d9e4de;background:#f3f7f5;color:#354a40}
#otos-account-status[data-state="loading"]{color:#59636a;background:linear-gradient(100deg,#f4f5f5 20%,#fafafa 42%,#f4f5f5 64%);background-size:240% 100%;animation:otos-account-loading 1.5s ease infinite}
.otos-hub-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.otos-hub-actions>a,.otos-hub-actions>button{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;width:100%;min-width:0;margin:0;padding:17px;min-height:102px;border:1px solid #e0e4e6;border-radius:15px;background:#fff;text-align:left;color:#171a1c;text-decoration:none;cursor:pointer;font:inherit;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.otos-hub-actions strong{font-size:15px;line-height:1.3;letter-spacing:-.02em}
.otos-hub-actions span{color:#6b757c;font-size:12px;line-height:1.5}
.otos-hub-actions>[hidden]{display:none!important}
.otos-hub-actions>button:disabled{background:#f5f6f6;border-color:#e8eaeb;color:#858c91;cursor:default}
.otos-hub-actions>a:hover,.otos-hub-actions>button:not(:disabled):hover{border-color:#7f8d95;background:#f8f9f9;transform:translateY(-1px)}
.otos-update-link{display:flex;flex-direction:column;gap:4px;width:100%;margin:14px 0 0;padding:14px 16px;border:1px solid #aeb8bd;border-radius:12px;background:#fff;color:#263137;text-align:left;cursor:pointer}
.otos-update-link strong{font-size:15px}.otos-update-link span{font-size:12px;color:#657178}
.otos-update-link:disabled{border-color:#dfe3e5;background:#f4f5f5;color:#7b8388;cursor:default}
body.otos-account-return-pending #purchase-dialog[open]{visibility:hidden}
body[data-otos-access-kind="internal_test"] #purchase-dialog .buyer-ebook,body[data-otos-access-kind="internal_test"] #purchase-dialog .install-help,body[data-otos-access-kind="internal_test"] #purchase-dialog .otos-update-link{display:none!important}
@keyframes otos-account-loading{to{background-position:-240% 0}}
@media(max-width:560px){.otos-account-entry{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}#otos-account-avatar{width:44px;height:44px}#otos-account-hub{width:100%;max-width:none;max-height:92dvh;margin:auto 0 0;padding:23px 20px calc(22px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;border-width:1px 0 0}#otos-account-heading{font-size:24px}.otos-hub-actions{grid-template-columns:1fr}.otos-hub-actions>a,.otos-hub-actions>button{min-height:82px;padding:15px 16px}}
@media(prefers-reduced-motion:reduce){.otos-account-entry button,.otos-hub-actions>a,.otos-hub-actions>button{transition:none}#otos-account-status[data-state="loading"]{animation:none}}
