/* Account layout: viewport-sized split panel; the shared header lives in layout.css. */
.account-page{display:flex;flex-direction:column;min-height:100svh;background:radial-gradient(ellipse at 0 20%,#965ee514,transparent 50%),var(--bg)}
.account-page .header{flex:none}
.account-shell{width:calc(100% - var(--site-gutter)*2);max-width:var(--site-width);margin:0 auto;display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:0 20px 60px #34184c0b}
.account-card{padding:clamp(22px,3.3vh,42px) clamp(26px,4vw,62px);min-width:0;align-self:center;width:100%;max-height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;scroll-padding-block:20px}
.account-card h1{font-size:clamp(1.9rem,3.2vw,2.7rem);font-weight:600;letter-spacing:-.035em;line-height:1.12;margin:10px 0}
.account-card .eyebrow{font-size:12px}
.account-intro{color:var(--muted);font-size:16px;line-height:1.5;margin-bottom:20px;max-width:480px}
.account-form{display:flex;flex-direction:column;gap:13px}
.field-group{display:flex;flex-direction:column;gap:6px;min-width:0}
.account-form label{font-size:14px;font-weight:550;line-height:1.35}
.account-form input:not([type=hidden]):not([type=checkbox]),.account-form select{width:100%;min-width:0;font:inherit;font-size:16px;line-height:1.4;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:44px}
.account-form input:focus-visible,.account-form select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.account-form input[type=checkbox]{width:19px;height:19px;accent-color:var(--accent);flex:none;margin:0}
.account-form .check-line{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:400;margin:1px 0;min-height:32px}
.account-form .button{margin-top:1px;min-height:46px;padding:11px 20px;font-size:16px}
.account-form .button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.field-hint{font-size:13px;color:var(--muted);line-height:1.5;margin:0}
.account-links{display:flex;flex-wrap:wrap;column-gap:18px;row-gap:9px;font-size:14px;line-height:1.5;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.account-links>span{flex-basis:100%}
.account-links a,.account-home,.text-button{color:var(--accent)}
.account-links a:hover,.account-home:hover,.text-button:hover{text-decoration:underline}
.account-alert{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0;font-size:14px;line-height:1.5;color:var(--ink);background:var(--subtle)}
.account-alert.error{border-color:#c86b8455}.account-alert.success{border-color:#8b66b875}
.account-home{display:inline-block;margin-top:15px;font-size:14px;line-height:1.5;padding:3px 0}
.account-footer{flex:none;font-size:12px;color:var(--muted);text-align:center;padding:12px 16px;line-height:1.4}
.account-visual{position:relative;min-height:0;margin:0;isolation:isolate;overflow:hidden;background:#362047;border-left:1px solid var(--line)}
.account-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:54% center}
.account-visual:after{content:'';position:absolute;inset:0;background:linear-gradient(155deg,#37166038 0%,#7341a426 45%,#391659aa 100%);pointer-events:none}
.account-register .account-visual img{object-position:51% center}
.account-register .account-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
.account-register .account-form>.full-row,.account-register .account-form>.button{grid-column:1/-1}
.account-register .field-group label{min-height:19px}
.account-identity{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:14px;padding:20px;margin:25px 0;overflow-wrap:anywhere}
.account-identity strong{font-size:21px}.account-identity>span{font-size:15px;color:var(--muted)}.account-identity .verified-label{font-size:13px;color:var(--accent)}
.account-form h2{font-size:26px;margin:13px 0 3px}
.logout-form{border-top:1px solid var(--line);padding-top:24px;margin-top:28px}
.text-button{padding:0;background:none;border:0;font:inherit;font-size:15px}
.account-shell.account-dashboard{display:block;max-width:var(--site-width);flex:none;background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface) 94%,var(--accent)));overflow:visible}
.account-shell.account-dashboard .account-card{max-width:1180px;margin:auto;overflow:visible;padding:clamp(34px,5vw,70px);align-self:auto}
.account-shell.account-dashboard .account-card>h1{font-size:clamp(2.25rem,4vw,3.5rem);max-width:720px;margin-top:13px}
.account-shell.account-dashboard .account-intro{max-width:680px;font-size:17px;margin-bottom:28px}
.dashboard-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:26px}
.dashboard-actions .launch-efb{min-width:220px;justify-content:space-between;box-shadow:0 14px 34px color-mix(in srgb,var(--accent) 25%,transparent)}
.dashboard-actions .launch-efb b{font-size:1.25rem}.dashboard-actions .admin-button{background:var(--subtle);border:1px solid var(--line)}
.dashboard-grid{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(420px,1.18fr);gap:20px;align-items:start}
.dashboard-panel{border:1px solid var(--line);border-radius:22px;padding:clamp(22px,3vw,32px);background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:0 16px 45px #2812380b;min-width:0}
.dashboard-panel-heading{margin-bottom:22px}.dashboard-panel-heading h2{font-size:clamp(1.6rem,2.4vw,2rem);margin:5px 0 4px}.panel-kicker{display:block;color:var(--accent);font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.profile-panel{position:sticky;top:calc(var(--header-block) + 14px)}
.account-shell.account-dashboard .account-identity{display:flex;flex-direction:row;align-items:center;gap:18px;padding:0 0 24px;margin:0 0 24px;border:0;border-bottom:1px solid var(--line)}
.account-shell.account-dashboard .account-identity>div:last-child{display:grid;gap:5px;min-width:0}.account-shell.account-dashboard .account-identity strong{font-size:24px}.account-shell.account-dashboard .account-identity>div:last-child>span{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.account-shell.account-dashboard .verified-label{color:var(--accent)!important;font-size:13px!important}
.dashboard-avatar{width:86px;height:86px;border-radius:24px;overflow:hidden;display:grid;place-items:center;flex:none;background:linear-gradient(145deg,var(--accent),#bd67ed);color:#fff;box-shadow:0 12px 30px color-mix(in srgb,var(--accent) 22%,transparent)}
.dashboard-avatar img{width:100%;height:100%;object-fit:cover}.dashboard-avatar span{font-size:2rem;font-weight:700}
.avatar-upload-form{display:grid;gap:10px}.avatar-upload-form label{font-size:14px;font-weight:600}.avatar-upload-form input[type=file]{width:100%;min-width:0;padding:10px;border:1px dashed var(--line);border-radius:12px;background:var(--bg);color:var(--muted)}.avatar-upload-form .button{justify-self:start;padding:11px 16px;border:1px solid var(--line);background:var(--subtle)}
.preferences-panel .account-form{gap:12px}.preferences-panel .account-form h2{margin:5px 0}.preferences-panel .account-form .button{margin-top:7px}
.dashboard-footer-actions{display:flex;align-items:center;gap:24px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.dashboard-footer-actions .logout-form{border:0;padding:0;margin:0}.dashboard-footer-actions .account-home{margin:0}
@media(min-width:1000px) and (min-height:620px){
 .account-entry{height:100dvh;min-height:0;overflow:hidden}
 .account-entry .account-shell{overflow:hidden}
}
@media(min-width:1000px) and (max-height:760px){
 .account-card{padding:20px 30px}
 .account-card h1{font-size:32px;margin:8px 0}
 .account-intro{margin-bottom:14px}
 .account-form{gap:10px}
 .account-register .account-form{gap:10px 14px}
 .account-links{margin-top:13px;padding-top:12px}
 .account-home{margin-top:10px}
 .account-footer{padding:9px 16px}
}
@media(max-width:999px){
 .account-shell{grid-template-columns:1.1fr .9fr;min-height:560px;flex:1}
 .account-card{padding:28px;overflow:visible;max-height:none}
 .account-register .account-form{grid-template-columns:1fr}
 .account-visual img{object-position:56% center}
 .account-shell.account-dashboard .account-card{padding:34px}
 .dashboard-grid{grid-template-columns:1fr}
 .profile-panel{position:static}
}
@media(max-width:760px){
 .account-shell{display:flex;flex-direction:column;min-height:0;overflow:visible}
 .account-card{padding:24px;order:1}
 .account-visual{order:0;min-height:110px;height:clamp(100px,16svh,150px);flex:none;border:0;border-radius:25px 25px 0 0}
 .account-visual img{object-position:50% 56%;border-radius:inherit}
 .account-register .account-visual img{object-position:50% 55%}
 .account-card h1{font-size:32px}
 .account-register .account-form{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-register .field-group:nth-of-type(1),.account-register .field-group:nth-of-type(2){grid-column:1/-1}
 .account-register .field-group label{min-height:38px;display:flex;align-items:flex-end}
 .account-register .field-group:nth-of-type(1) label,.account-register .field-group:nth-of-type(2) label{min-height:0}
 .account-footer{padding:10px 16px}
 .account-shell.account-dashboard{width:calc(100% - 24px)}
 .account-shell.account-dashboard .account-card{padding:26px 18px}
 .account-shell.account-dashboard .account-card>h1{font-size:2.25rem}
 .dashboard-actions{display:grid;grid-template-columns:1fr;margin-bottom:18px}
 .dashboard-actions .button{width:100%}
 .dashboard-grid{gap:14px}
 .dashboard-panel{padding:20px;border-radius:18px}
 .account-shell.account-dashboard .account-identity{align-items:flex-start}
 .dashboard-avatar{width:72px;height:72px;border-radius:20px}
 .dashboard-footer-actions{align-items:flex-start;flex-direction:column;gap:15px}
}
@media(max-width:760px) and (max-height:850px){
 .account-visual{display:none}
 .account-card{padding:22px}
 .account-intro{margin-bottom:16px}
 .account-register .account-form{gap:10px}
}
@media(max-width:380px){
 .account-card{padding:20px 17px}
 .account-card h1{font-size:29px}
 .account-register .account-form{grid-template-columns:1fr}
 .account-register .field-group label{min-height:0}
}
@media(max-height:619px){
 .account-entry{height:auto;min-height:100svh;overflow:visible}
 .account-shell{min-height:0;flex:none}
 .account-card{overflow:visible;max-height:none;padding-top:24px;padding-bottom:24px}
 .account-visual{display:none}
 .account-shell{grid-template-columns:1fr}
 .account-card{max-width:640px;margin:auto}
}
