/* Account controls inherit Zvutera's reading/preparation palette. */
.account-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;margin:0 0 20px;border-bottom:1px solid var(--edge)}
.account-summary p{margin:0;color:var(--muted)}
.account-summary button{display:inline-flex;align-items:center;gap:8px;min-width:48px}
.account-summary svg,.account-lock svg{flex:none;width:24px;height:24px}
.account-dialog{--account-padding:24px;box-sizing:border-box;width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:var(--account-padding);border:1px solid var(--edge);border-radius:14px;color:var(--text);background:var(--surface);overflow:auto;font:inherit}
.account-dialog::backdrop{background:rgb(0 0 0 / .72)}
.account-dialog header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:4px 0;background:var(--surface)}
.account-dialog header::before{content:"";position:absolute;inset:calc(-1 * var(--account-padding)) calc(-1 * var(--account-padding)) 0;z-index:-1;pointer-events:none;background:var(--surface)}
.account-dialog h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.02em}
.account-dialog h3{font-size:17px;margin:24px 0 8px}
.account-dialog p{margin:12px 0;overflow-wrap:anywhere}
.account-dialog label{display:block;margin:16px 0 6px;font-weight:600}
.account-dialog input:not([type=checkbox]){box-sizing:border-box;display:block;width:100%;min-height:48px;border:1px solid var(--field-border,var(--edge));border-radius:10px;padding:12px;background:var(--control);color:var(--text);font:inherit}
.account-dialog input::placeholder{color:var(--muted);opacity:1}
.account-dialog input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.account-dialog .account-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.account-dialog .account-actions button{white-space:normal;height:auto;min-height:48px;flex:1 1 180px}
.account-dialog .account-close{flex:none;min-width:48px;width:48px;padding:12px}
.account-dialog .account-close svg{width:24px;height:24px}
.account-muted{color:var(--muted)}
.account-dialog .account-check{box-sizing:border-box;min-height:48px;display:flex;align-items:flex-start;gap:12px;font-weight:400;padding:8px 0;margin:8px 0}
.account-check input{width:22px;height:22px;min-width:22px;accent-color:var(--accent);margin:2px 0}
.account-progress{display:flex;align-items:center;gap:12px;min-height:48px;font-weight:600}
.account-progress[hidden]{display:none}
.account-spinner{width:22px;height:22px;flex:none;animation:account-spin 1s linear infinite}
.account-status{min-height:1.5em;font-weight:600;overflow-wrap:anywhere}
.account-error{padding:12px;background:var(--accent);color:#111;font-weight:700;border-radius:10px}
.account-error:empty{display:none}
.account-restore-options{padding-top:12px;margin-top:20px;border-top:1px solid var(--edge)}
.account-device-list{padding:0;list-style:none;margin:0}
.account-device-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--edge)}
.account-lock{display:none;box-sizing:border-box;max-width:560px;margin:12vh auto;padding:24px;color:var(--text)}
.account-lock h1{font-size:26px;line-height:1.2}
.account-lock button{margin-top:12px}
html[data-account-locked] .shell,html[data-account-locked] body>dialog:not(#accountDialog){display:none!important}
html[data-account-locked] body>:not(#accountProfileLock):not(#accountDialog):not(script):not(style):not(link){display:none!important}
html[data-account-locked] .account-lock{display:block}
html[data-account-locked] body{height:auto!important;overflow:auto!important}
@keyframes account-spin{to{transform:rotate(360deg)}}
@media(max-width:440px){.account-dialog{--account-padding:16px}.account-summary{align-items:flex-start;flex-wrap:wrap}.account-summary button{margin-left:auto}.account-dialog h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.account-spinner{animation-duration:2s}}
