/* Account screens inherit GLORIES typography, colours and touch behaviour. */
[hidden]{display:none!important}
body.auth-locked{background:#121413;color:#f2eadf;color-scheme:dark}
.auth-locked #app{display:none}
.auth-locked .skip-link{display:none}
.auth-locked #authScreen{--bg:#121413;--surface-solid:#1a1d1b;--surface-elevated:#222522;--ink:#f2eadf;--muted:#b6b4a8;--line:rgba(225,212,180,.16);--gold:#cfaa72;--gold-strong:#e0c08f;--sand:#2b302a}
.account-shell{min-height:100svh;display:grid;grid-template-columns:1.05fr 1fr;max-width:1800px;margin:auto}
.account-visual{position:relative;background:#282c23 url('assets/heritage-panorama.png') center/cover;min-height:100%;overflow:hidden}
.account-visual-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,20,16,.12),rgba(16,20,16,.25) 38%,rgba(14,18,15,.94))}
.account-visual-copy{position:sticky;top:60vh;padding:64px 9%;color:#f3eddf}
.account-visual-copy .eyebrow{color:#debf88;font-size:12px}
.account-visual-copy h2{font-family:Georgia,serif;font-size:clamp(42px,4.9vw,78px);font-weight:400;line-height:1.06;letter-spacing:-.035em;margin:18px 0 22px}
.account-visual-copy p{color:#d5d2c3;font-size:16px;max-width:400px}
.account-seven{display:flex;align-items:center;gap:16px;margin-top:40px;font-size:11px;letter-spacing:.16em;color:#e0c08f}
.account-seven span{height:1px;width:100px;background:rgba(224,192,143,.45)}
.account-panel{display:flex;flex-direction:column;padding:36px clamp(24px,5vw,82px) 26px;min-width:0}
.account-top{display:flex;align-items:center;justify-content:space-between;gap:24px}
.account-top img{width:60px;height:60px;object-fit:cover;border-radius:17px;border:1px solid rgba(224,192,143,.3)}
.account-top .pill-btn{background:transparent;border:1px solid var(--line);color:var(--ink);min-width:60px;min-height:44px}
.account-content{width:100%;max-width:438px;margin:auto; padding:60px 0}
.account-content .eyebrow{font-size:10px;letter-spacing:.18em;color:var(--gold)}
.account-content h1{font-family:Georgia,serif;font-size:clamp(38px,3.4vw,54px);font-weight:400;letter-spacing:-.035em;line-height:1.1;margin:18px 0 16px;color:#f2eadf;outline:none}
.account-intro{color:var(--muted);font-size:14px;margin:0 0 32px;line-height:1.7}
.welcome-actions{display:grid;gap:14px;margin-top:48px}
.welcome-actions .btn{width:100%;justify-content:center;min-height:56px}
.welcome-actions .btn-gold{display:flex;justify-content:space-between;padding-inline:24px}
.account-signoff{text-align:center;color:#928f80;font-size:10px;letter-spacing:.04em;line-height:1.6}
.account-field{margin-bottom:18px;min-width:0}
.account-field label{display:block;color:var(--ink);font-size:12px;font-weight:600;margin-bottom:8px;letter-spacing:.02em}
.account-input-wrap{position:relative}
.account-input-wrap input{width:100%;min-height:52px;border:1px solid var(--line);border-radius:13px;background:var(--surface-solid);color:var(--ink);padding:13px 15px;transition:border-color .15s;box-shadow:none;font-size:16px}
.account-input-wrap input:focus{border-color:var(--gold);outline:2px solid rgba(207,170,114,.17);outline-offset:1px}
.account-input-wrap input[aria-invalid=true]{border-color:#de8b7a}
.account-input-wrap:has(.password-toggle) input{padding-right:57px}
.account-input-wrap input[dir=ltr]{direction:ltr!important;unicode-bidi:normal!important;text-align:left}
.password-toggle{position:absolute;right:4px;top:4px;width:44px;height:44px;border:0;display:grid;place-items:center;border-radius:10px;background:none;color:var(--muted)}
.password-toggle svg{width:20px;height:20px}
.field-error{display:block;color:#e8a696;font-size:12px;line-height:1.5;margin-top:6px}
.field-error:empty{display:none}
.account-hint{font-size:12px;color:var(--muted);line-height:1.65;margin:0 0 20px}
.account-form-links{text-align:right;margin-top:-7px;margin-bottom:24px}
.account-link{border:0;background:none;color:var(--gold);font-size:12px;font-weight:650;padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.account-link:disabled{opacity:.45;cursor:wait}
.account-submit{width:100%;min-height:54px;display:flex;justify-content:space-between;margin:8px 0}
.account-small{text-align:center;color:var(--muted);font-size:12px;line-height:1.65;margin:18px 0 0}
.account-small .account-link{padding:4px;min-height:36px}
.account-message{padding:14px 16px;border:1px solid var(--line);background:var(--sand);border-radius:12px;color:var(--ink);font-size:13px;line-height:1.6;margin:0 0 22px;overflow-wrap:anywhere}
.account-resend{display:flex;align-items:center;justify-content:center;gap:14px;padding-top:12px}
.resend-status{color:var(--muted);font-size:12px}
.account-loading{padding:26px 0;color:var(--gold);font-size:14px}
[aria-busy=true] .account-submit span:first-child::after{content:' …'}
.account-panel button:disabled,.account-editor button:disabled{opacity:.5;cursor:wait}
.account-email{overflow-wrap:anywhere;font-size:13px!important}
.account-verified{display:inline-flex;align-items:center;gap:6px;color:var(--gold);font-size:11px;margin-top:8px}
.profile-heading .profile-avatar{flex-shrink:0;overflow:hidden;color:var(--gold);font-size:27px;font-family:Georgia,serif}
.profile-heading>div{min-width:0}
.profile-heading h1{overflow-wrap:anywhere}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.account-settings .menu-row{min-height:66px}
.account-danger{color:#d68c7a!important}
.account-dialog{border:1px solid var(--line-strong);background:var(--surface-solid);color:var(--ink);width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 36px);padding:0;border-radius:26px;box-shadow:var(--shadow-lg);overflow:auto}
.account-dialog::backdrop{background:rgba(4,7,5,.72);backdrop-filter:blur(7px)}
.account-editor{padding:28px}
.account-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:28px}
.account-editor-head h2{font-size:24px;margin:8px 0 0;font-family:Georgia,serif;font-weight:400}
.account-editor-head .eyebrow{font-size:10px;color:var(--gold)}
.account-editor-actions{display:flex;gap:12px;margin-top:24px}
.account-editor-actions .btn{flex:1;min-height:50px;justify-content:center}
.btn-danger{background:#a3493e;border:1px solid #c47162;color:#fff5ee}
.account-photo-preview{width:112px;height:112px;margin:0 auto 25px;background:var(--sand);display:grid;place-items:center;border-radius:50%;overflow:hidden;color:var(--gold)}
.account-photo-preview img{width:100%;height:100%;object-fit:cover}
.account-photo-preview svg{width:48px;height:48px}
.account-file-label{display:block;font-size:13px;color:var(--gold);margin-bottom:18px}
.account-file-label input{display:block;max-width:100%;width:100%;margin-top:12px;font-size:12px;color:var(--muted)}
.account-file-label input::file-selector-button{min-height:44px;padding:10px 15px;margin-right:10px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--surface-elevated);font:inherit}
.account-cancel{display:block;margin:16px auto 0}
body.language-ar :is(.account-content h1,.account-visual-copy h2,.account-editor h2){font-family:var(--font-arabic);letter-spacing:0;font-weight:500}
body.language-ar .account-content h1{font-size:36px;line-height:1.5}
@media(max-width:760px){
 .account-shell{display:flex;flex-direction:column;min-height:100svh}
 .account-visual{height:196px;min-height:196px;background-position:center 43%;flex-shrink:0}
 .account-visual-overlay{background:linear-gradient(180deg,rgba(18,20,19,.08),rgba(18,20,19,.23) 35%,#121413)}
 .account-visual-copy{position:relative;top:0;padding:45px 27px 20px}
 .account-visual-copy .eyebrow{font-size:9px}
 .account-visual-copy h2{font-size:34px;margin:10px 0;line-height:1.05}
 .account-visual-copy p,.account-seven{display:none}
 .account-panel{padding:0 27px 24px;margin-top:-24px;z-index:1;flex:1}
 .account-top img{width:46px;height:46px;border-radius:13px}
 .account-top .pill-btn{font-size:12px;min-height:40px}
 .account-content{padding:34px 0;max-width:460px}
 .account-content h1{font-size:38px;max-width:330px;margin:13px 0}
 .account-intro{font-size:13px;margin-bottom:26px}
 .account-content .eyebrow{font-size:9px}
 .welcome-actions{margin-top:30px}
 .account-signoff{margin-top:auto;padding-top:12px;font-size:9px}
 .account-dialog{width:100%;max-width:100%;max-height:calc(100dvh - 20px);margin:auto 0 0;border-radius:26px 26px 0 0}
 .account-editor{padding:26px 22px max(26px,env(safe-area-inset-bottom))}
 .account-settings .menu-row small{font-size:10px}
 body.language-ar .account-content h1{font-size:31px}
}
@media(prefers-reduced-motion:reduce){.account-shell *{animation:none!important;transition:none!important}}
