/* TJK-Chess v14.5.8 passwordless account UI */
.site-profile-button{display:flex;align-items:center;gap:10px;padding:4px 6px;border:0;border-radius:10px;background:transparent;color:inherit;cursor:pointer;text-align:left}
.site-profile-button:hover,.site-profile-button:focus-visible{background:#eef4ff;outline:none}
.account-overlay{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;padding:20px;background:rgba(7,20,46,.58);backdrop-filter:blur(3px)}
.account-overlay[hidden]{display:none}
.account-dialog{width:min(520px,calc(100vw - 28px));max-height:min(780px,calc(100vh - 28px));overflow:auto;border:1px solid #cfd9e8;border-radius:18px;background:#fff;color:#0b1739;box-shadow:0 28px 90px rgba(6,20,50,.32)}
.account-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px 14px;border-bottom:1px solid #e1e7f0}
.account-dialog-header h2{margin:4px 0 0;font-size:1.65rem}.account-close{width:36px;height:36px;border:1px solid #d7dfeb;border-radius:9px;background:#fff;cursor:pointer;font-size:1.25rem}
.account-body{padding:22px 24px 25px}.account-grid{display:grid;gap:14px}.account-field{display:grid;gap:6px;font-weight:760}.account-field input,.account-field select{width:100%;min-height:44px;padding:9px 11px;border:1px solid #c6d1e1;border-radius:9px;background:#fff;color:#0b1739}
.account-field small{color:#64748b;font-weight:500;line-height:1.4}.account-primary,.account-secondary{min-height:44px;padding:9px 14px;border-radius:9px;cursor:pointer;font-weight:850}.account-primary{border:1px solid #0b5fe7;background:#0b5fe7;color:#fff}.account-secondary{border:1px solid #cbd5e1;background:#fff;color:#0b1739}
.account-primary:disabled,.account-secondary:disabled{opacity:.55;cursor:wait}.account-message{padding:12px 13px;border:1px solid #d8e3f2;border-radius:9px;background:#f4f8fe;color:#38506f;line-height:1.45}.account-message.is-error{border-color:#f0b9b4;background:#fff3f2;color:#9f2f25}.account-message.is-good{border-color:#a9d8b8;background:#eff9f2;color:#087a39}
.account-summary{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;padding:15px;border:1px solid #dce5f1;border-radius:12px;background:#f8fafc}.account-summary-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:14px;background:#102a56;color:#fff;font-size:1.4rem;font-weight:900}.account-summary strong{display:block;font-size:1.2rem}.account-summary span{display:block;color:#64748b;font-size:.88rem;margin-top:3px}.account-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.account-sync-note{color:#64748b;font-size:.82rem;line-height:1.45}.account-dev-link{display:block;margin-top:9px;overflow-wrap:anywhere;color:#0b5fe7;font-weight:750}
@media(max-width:620px){.site-profile-copy{display:none}.account-dialog-header,.account-body{padding-left:17px;padding-right:17px}.account-actions{grid-template-columns:1fr}}

/* TJK-Chess 14.6.4 saved computer analyses */
.account-review-library{display:grid;gap:7px;padding:12px;border:1px solid #dce5f1;border-radius:11px;background:#f8fafc}.account-review-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.account-review-heading button{padding:4px 8px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#0b5fe7;cursor:pointer;font-size:.78rem;font-weight:750}.account-review-library>p{margin:3px 0;color:#64748b;font-size:.82rem}.account-review-item{display:grid;gap:2px;width:100%;padding:9px 10px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0b1739;text-align:left;cursor:pointer}.account-review-item:hover{border-color:#95b8ec;background:#f2f7ff}.account-review-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:780}.account-review-item small{color:#64748b}

/* TJK-Chess 14.6.6 complete played-game archive */
.account-game-library{display:grid;gap:7px;padding:12px;border:1px solid #cfdcf0;border-radius:11px;background:#f4f8fe}
.account-game-library>p{margin:3px 0;color:#64748b;font-size:.82rem;line-height:1.4}
.account-game-item{display:grid;gap:3px;width:100%;padding:9px 10px;border:1px solid #d7e2f0;border-radius:8px;background:#fff;color:#0b1739;text-align:left;cursor:pointer}
.account-game-item:hover{border-color:#83aee9;background:#eef5ff}
.account-game-item>span{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.account-game-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-game-item em{flex:0 0 auto;color:#0b5fe7;font-style:normal;font-weight:900}
.account-game-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b}
.account-load-more{min-height:36px;border:1px solid #b8cae4;border-radius:8px;background:#fff;color:#0b5fe7;cursor:pointer;font-weight:800}
.account-load-more:disabled{opacity:.55;cursor:wait}
.account-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:8px;padding:16px;border:1px solid rgba(190,45,45,.35);border-radius:12px;background:rgba(190,45,45,.055)}.account-danger-zone>div{display:grid;gap:4px}.account-danger-zone small{color:var(--muted,#667085);max-width:520px}.account-danger-zone button{border:1px solid #b93434;background:transparent;color:#b93434;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer;white-space:nowrap}@media(max-width:620px){.account-danger-zone{align-items:stretch;flex-direction:column}.account-danger-zone button{width:100%}}

/* TJK-Chess 15.1.33 authentication */
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;padding:5px;border-radius:14px;background:#eef3fd}
.account-tabs button{border:0;border-radius:10px;padding:12px 14px;background:transparent;color:#66728b;font:inherit;font-weight:850;cursor:pointer}
.account-tabs button.is-active{background:#fff;color:#102040;box-shadow:0 2px 10px #13275514}
.account-divider{display:flex;align-items:center;gap:12px;color:#7a859c;font-size:.86rem;font-weight:750;text-align:center}
.account-divider::before,.account-divider::after{content:"";height:1px;flex:1;background:#dce4f1}
.account-google{width:100%;display:flex;align-items:center;justify-content:center;gap:11px;min-height:48px;padding:11px 16px;border:1px solid #cfd8e8;border-radius:12px;background:#fff;color:#18233b;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 1px 2px #101e3b0a}
.account-google:hover{background:#f7f9fc;border-color:#aebbd0}
.account-google-mark{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-family:Arial,sans-serif;font-weight:900;color:#4285f4;background:conic-gradient(from 45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);-webkit-background-clip:text;background-clip:text}
.account-google-disabled{padding:12px 14px;border:1px dashed #c5cee0;border-radius:12px;background:#f7f9fd;color:#68758f;font-size:.9rem;line-height:1.4}
.account-magic-panel{margin-top:14px;border:1px solid #dce4f1;border-radius:14px;background:#f9fbff;overflow:hidden}
.account-magic-panel summary{cursor:pointer;padding:14px 16px;color:#435271;font-weight:800}
.account-magic-panel[open] summary{border-bottom:1px solid #dce4f1}
.account-magic-panel .account-grid{padding:16px}
.account-auth-methods{display:grid;gap:12px;padding:16px;border:1px solid #dbe3f0;border-radius:16px;background:#f8faff}
.account-auth-method{display:flex;align-items:center;justify-content:space-between;gap:15px}
.account-auth-method>div{display:grid;gap:3px}.account-auth-method small{color:#6c7891;line-height:1.35}
.account-method-status{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:#e8edf6;color:#79849a;font-weight:900}
.account-method-status.is-active{background:#dcf5e4;color:#16733a}
.account-password-form{display:grid;gap:10px;padding:14px;border-radius:12px;background:#fff;border:1px solid #e1e7f1}
.account-summary-photo{object-fit:cover;padding:0;background:#eef2f8}
@media(max-width:640px){.account-tabs{grid-template-columns:1fr}.account-auth-method{align-items:flex-start}.account-method-status{margin-top:2px}}
