/* One layout source for auth and customer account. No injected design overrides. */
.account-body{background:#11110f;color:#f5f0e8;color-scheme:dark;--account-header-height:108px}
.account-skip{position:fixed;top:-60px;left:16px;z-index:20;background:#e9b95e;color:#20170c;padding:12px;border-radius:6px}.account-skip:focus{top:12px}
.account-page{min-height:calc(100dvh - var(--account-header-height));padding:28px 0 36px;background:radial-gradient(ellipse at 50% 0,#25201755,transparent 65%)}
.account-shell{display:grid;grid-template-columns:228px minmax(0,1fr);gap:26px;max-width:1220px;align-items:start}.account-shell:has(#dashboardView[hidden]){display:block;max-width:735px}
.account-content{min-width:0;scroll-margin-top:calc(var(--account-header-height) + 20px)}.account-content h1{font-size:28px;line-height:1.2;letter-spacing:-.8px;margin:0;color:#f5f0e8}.account-content h2,#requestDialog h2{font-size:21px;line-height:1.3;letter-spacing:-.4px;margin:0 0 20px;color:#f5f0e8}
.account-side{position:sticky;top:calc(var(--account-header-height) + 20px);border:1px solid #3a342a;border-radius:14px;padding:16px;background:#191917;max-height:calc(100dvh - var(--account-header-height) - 40px);overflow-y:auto;scrollbar-width:thin;min-width:0;max-width:100%}
.account-user{display:flex;gap:12px;align-items:center;padding-bottom:18px;border-bottom:1px solid #39352d;margin-bottom:12px;min-width:0}.account-user>div:last-child{min-width:0}.account-user b{display:block;font-size:14px;overflow-wrap:anywhere}.account-user small{display:block;font-size:11px;color:#aaa49c;margin-top:4px;overflow-wrap:anywhere}
.avatar{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:#e9b95e;color:#20170c;font-weight:700}
.account-nav{display:grid;gap:3px}.account-nav button{border:0;background:transparent;color:#bdb7ad;text-align:left;padding:9px 10px;border-radius:7px;font-size:13px;min-height:36px}.account-nav button:hover,.account-nav button.active{background:#2b261e;color:#e9b95e}.account-nav .logout{color:#df988b;margin-top:10px;border-top:1px solid #39352d;border-radius:0;padding-top:14px}
.account-card{padding:24px;background:#191917;border:1px solid #3a342a;border-radius:14px;margin-top:20px;box-shadow:0 8px 24px #00000015}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px}.welcome p{font-size:11px;letter-spacing:2px;color:#e9b95e;margin:0 0 10px}.welcome h1 span{color:#e9b95e;overflow-wrap:anywhere}.account-link{font-size:13px;color:#e9b95e;white-space:nowrap}
.local-notice{font-size:12px;line-height:1.6;color:#b2ab9f;margin:20px 0 0;padding:12px 16px;background:#1d1b1666;border:1px solid #3a342a;border-radius:8px}
.auth-heading{margin-bottom:22px;text-align:center}.auth-heading h1{font-size:24px;font-weight:600}.auth-heading p{color:#aaa49c;font-size:14px;margin:8px 0 0}
#authView{padding:clamp(0px,4dvh,40px) 0 0}.auth-wrap{background:#191917;border:1px solid #3a342a;border-radius:10px;overflow:hidden;animation:accountIn .3s ease both}.auth-tabs{display:flex;border-bottom:1px solid #3a342a}.auth-tabs button{width:50%;background:transparent;border:0;border-bottom:2px solid transparent;padding:16px;color:#a9a39a;font-weight:500}.auth-tabs button.active{color:#e9b95e;border-bottom-color:#e9b95e}.auth-tabs button:hover{background:#252119}.auth-panel{padding:24px 28px 20px}.auth-submit{width:100%;margin-top:20px;min-height:48px}
.account-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.account-form label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;line-height:1.4;color:#cbc4b8}.account-form label>small{font-size:11px;color:#a9a39a}.account-form .full{grid-column:1/-1}.account-form input,.account-form textarea,.account-form select{width:100%;min-width:0;min-height:46px;padding:11px 12px;background:#11110f;border:1px solid #4b4236;border-radius:7px;color:#f5f0e8;font:inherit;outline:0}.account-form textarea{min-height:94px;resize:vertical}.account-form input::placeholder{color:#827b70}.account-form input:focus,.account-form textarea:focus,.account-form select:focus{border-color:#e9b95e;box-shadow:0 0 0 3px #e9b95e20}.account-form input:disabled{opacity:.55}
.account-button,.account-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border-radius:7px;border:1px solid #e9b95e;background:#e9b95e;color:#20170c;font-size:13px;font-weight:700;max-width:100%;text-align:center}.account-secondary{border-color:#504737;background:transparent;color:#c9c2b6;font-weight:500}.account-secondary.danger{color:#eaa797}.account-button:disabled{opacity:.55}.account-button:hover{filter:brightness(1.05)}
.account-body :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #e9b95e;outline-offset:3px}.account-body .password-toggle:hover{transform:translateY(-50%)}
.account-message{margin:10px 0 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#e9b95e}.account-message:empty{display:none}.account-message.error{color:#f0a699;background:#311d19;border:1px solid #704238;padding:10px 12px;border-radius:7px}.account-message.success{color:#92ddb0}.account-hint{color:#aaa49c;font-size:12px;line-height:1.6;margin:0 0 18px}.security-panel{margin-top:24px;padding-top:24px;border-top:1px solid #3a342a}.security-panel h3{font-size:17px;margin:0}
.password-wrap{position:relative;display:block}.password-wrap input{padding-right:78px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:8px 4px;background:transparent;border:0;color:#e9b95e;font-size:11px;min-height:36px}.password-strength{font-size:11px;min-height:0}.password-strength[data-level=error]{color:#f0a699}.password-strength[data-level=success]{color:#92ddb0}
.account-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.account-stat{background:#11110f;border:1px solid #353025;border-radius:9px;padding:16px;min-width:0}.account-stat b{display:block;font-size:23px;color:#e9b95e;overflow-wrap:anywhere}.account-stat span{display:block;font-size:12px;color:#aaa49c;margin-top:7px}#statNote{margin:14px 0 0}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}.quick-grid button{background:#242019;border:1px solid #443929;color:#e9b95e;border-radius:8px;padding:14px;font-size:12px;text-align:left}
.account-list{margin-top:20px;display:grid;gap:12px}.account-empty{padding:18px;border:1px dashed #504737;border-radius:8px;color:#aaa49c;font-size:13px;line-height:1.6}.record-card{border:1px solid #39342b;border-radius:9px;padding:16px;min-width:0;overflow-wrap:anywhere;background:#161614}.record-top{display:flex;justify-content:space-between;gap:12px}.record-card strong{font-size:14px}.record-card p{white-space:pre-wrap;font-size:13px;color:#b8b0a4;line-height:1.6;margin:10px 0}.record-card small{display:block;font-size:11px;color:#a9a39a;margin-top:6px}.record-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.record-actions a,.record-actions button{font-size:12px}.record-tag{font-size:10px;display:inline-block;padding:4px 7px;border:1px solid #4b4236;border-radius:5px;color:#e9b95e;margin:8px 0 0}.order-details{margin-top:12px;border-top:1px solid #39342b;padding-top:12px}.order-details summary{cursor:pointer;font-size:13px;color:#e9b95e;padding:5px 0}.order-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}.order-detail-grid ul{list-style:none;margin:0;padding:0;font-size:12px;line-height:1.7}.order-detail-grid li{display:flex;justify-content:space-between;gap:10px;padding:5px 0}.order-detail-grid p{margin:0}.account-links{display:grid;gap:10px}.account-links a{padding:12px;border:1px solid #39342b;border-radius:7px;color:#e9b95e;font-size:13px}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.panel-view{animation:accountIn .2s ease both}.account-body [hidden],.account-body .hidden{display:none!important}
#requestDialog{width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #5b4930;border-radius:14px;background:#191917;color:#f5f0e8;padding:24px;box-shadow:0 24px 70px #0008}#requestDialog::backdrop{background:#000a;backdrop-filter:blur(4px)}#requestDialog[open]{animation:accountIn .2s ease}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.dialog-heading button{border:1px solid #51483b;color:#ccc5ba;background:#11110f;width:34px;height:34px;border-radius:6px;font-size:22px}.dialog-heading h2{margin-bottom:16px}
@keyframes accountIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(min-width:900px) and (min-height:700px){.account-shell:has(#dashboardView[hidden]) #authView{padding-top:min(6dvh,50px)}}
@media(max-width:850px){.account-shell{grid-template-columns:minmax(0,1fr);gap:16px}.account-side{position:static;max-height:none;overflow:visible;padding:12px}.account-side .account-user{padding-bottom:12px;margin-bottom:8px}.account-nav{display:flex;overflow-x:auto;gap:6px;padding:4px 2px;scrollbar-width:thin;min-width:0;max-width:100%}.account-nav button{flex-shrink:0;white-space:nowrap}.account-nav .logout{margin:0;border:0;padding:9px 10px}.welcome{flex-wrap:wrap}.account-content h1{font-size:24px}.account-link{white-space:normal}.account-page{padding:22px 0}.account-card{padding:20px}}
@media(max-width:560px){.auth-heading{margin-bottom:18px}.auth-heading h1{font-size:23px}.auth-heading p{font-size:12px}.auth-panel{padding:20px 18px 18px}.account-form{gap:12px}.account-form input,.account-form select,.account-form textarea{font-size:16px}.account-stat-grid{grid-template-columns:1fr 1fr}.account-stat:last-child{grid-column:1/-1}.quick-grid{grid-template-columns:1fr}.order-detail-grid{grid-template-columns:1fr}.record-top{flex-wrap:wrap}.account-card{padding:18px}.local-notice{font-size:11px;padding:10px 12px}.account-stat b{font-size:21px}}
@media(max-width:359px){.account-form{grid-template-columns:1fr}.account-form .full{grid-column:1}.auth-panel{padding:16px 14px}.account-stat-grid{grid-template-columns:1fr}.account-stat:last-child{grid-column:auto}}
@media(min-width:560px) and (max-height:760px){.account-shell:has(#dashboardView[hidden]) #authView{padding-top:0}.account-shell:has(#dashboardView[hidden]){max-width:735px}.account-page:has(#dashboardView[hidden]){padding:18px 0}.auth-heading{margin-bottom:16px}.auth-panel{padding:18px 24px}.auth-panel .account-form{gap:10px}.auth-panel .account-form input{min-height:42px;padding:9px 12px}.auth-panel .account-form label{gap:5px}.auth-tabs button{padding:13px}.auth-submit{min-height:44px;margin-top:16px}.auth-panel .password-strength:empty{display:none}#authView .local-notice{margin-top:14px;padding:10px 14px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.account-body *,.account-body *::before,.account-body *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.account-body .account-button:hover{transform:none!important}}
/* The LAN HTTP preview cannot perform secure password derivation. */
.account-connection{max-width:735px;border:1px solid #715b35;border-radius:12px;padding:24px;background:#242017;color:#eee9df;box-sizing:border-box}.account-connection>strong{font-size:18px}.account-connection p{font-size:14px;line-height:1.8;color:#c8bfac;margin:14px 0 22px}.account-connection .account-button{display:inline-flex;text-decoration:none;max-width:100%;white-space:normal}.auth-wrap[hidden]{display:none!important}@media(max-width:700px){.account-connection{padding:20px}.account-connection .account-button{font-size:14px;text-align:center}}
