:root{color-scheme:dark;font-family:Inter,system-ui,'Microsoft Yahei',sans-serif;background:#090e15;color:#e8e6e0}*{box-sizing:border-box}body{min-height:100vh;margin:0;display:flex;align-items:center;justify-content:center;padding:32px 16px;background:radial-gradient(circle at 50% 10%,#27231b 0%,#111820 35%,#090e15 75%)}.shell{width:min(100%,448px)}.brand{text-align:center;letter-spacing:.12em;color:#d9b477;font-weight:800;font-size:30px;margin:0 0 5px}.subtitle{text-align:center;color:#a3acba;font-size:13px;margin:0 0 22px}.panel{padding:26px;border:1px solid #524632;border-radius:17px;background:#151b23;box-shadow:0 24px 80px #0006}h1{font-size:18px;font-weight:700;margin:0 0 16px}.tabs{display:flex;gap:8px;margin:0 0 20px}.tabs button{flex:1}.tabs .on{border-color:#b99b5f;color:#f2d297;background:#2b261d}label{display:block;font-size:12px;color:#c8ccd0;margin:14px 0 7px}input{width:100%;background:#0d131b;border:1px solid #424b54;color:#f3f1ec;padding:12px 13px;border-radius:8px;outline:none;font-size:14px}input:focus{border-color:#c4a36b;box-shadow:0 0 0 2px #c4a36b22}button{cursor:pointer;border:1px solid #464c52;background:#202733;color:#e3e4e5;border-radius:8px;padding:11px 13px;font-size:13px}button:hover{border-color:#bba06c}button:disabled{cursor:not-allowed;opacity:.48}.primary{width:100%;background:#a98747;border-color:#c9a45c;color:#101419;font-weight:700;margin-top:20px}.secondary{width:100%;margin-top:12px}.line{margin:20px 0;display:flex;align-items:center;gap:10px;color:#7e8996;font-size:11px}.line:before,.line:after{content:'';height:1px;background:#3a4148;flex:1}.helper{color:#98a3ad;font-size:12px;line-height:1.65;margin-top:12px}.hint{font-size:12px;color:#dcc294;line-height:1.65;margin-top:12px;min-height:20px;white-space:pre-wrap}.hint.error{color:#f4a2a2}.inline{display:flex;justify-content:space-between;align-items:center;gap:10px}.link{padding:0;border:0;background:none;color:#e1bf7e;text-decoration:none;font-size:12px}.hidden{display:none!important}.readonly{padding:12px;background:#1f2934;border-radius:8px;color:#d9be89;overflow-wrap:anywhere}.fineprint{font-size:11px;color:#83909e;text-align:center;line-height:1.6;margin-top:20px}p{line-height:1.7}
/* v0.2.2 registration flow */
.notice{display:flex;gap:12px;align-items:flex-start;padding:15px;border-radius:10px;margin-bottom:18px;border:1px solid #6c603c;background:#24291f;color:#e6d6b0}
.notice.success{border-color:#8e7749;background:#292920}.notice strong{font-size:14px;color:#f2d6a0}.notice p{font-size:12px;line-height:1.75;margin:5px 0 0;color:#c1bbaa}.notice-icon{font-size:19px;flex:none;color:#e9c176}.notice.quiet{margin:16px 0;background:#1c242b;border-color:#35414b;color:#d9ba7d}.notice.quiet p{margin:0}.waiting{background:#1b242d;border:1px solid #394a51;border-radius:8px;padding:14px 12px;color:#b6c5c7;font-size:12px;line-height:1.7;margin:16px 0}.pulse{display:inline-block;width:7px;height:7px;border-radius:100%;background:#d2ab68;margin-right:6px}.text-button{width:100%;border:0;background:transparent;color:#b9a98d;margin-top:12px}.anchor-primary{display:block;text-align:center;text-decoration:none;border-radius:8px;padding:13px 12px;font-size:13px}details{border:1px solid #3d4550;border-radius:10px;padding:13px;margin-top:20px}details summary{cursor:pointer;color:#e0c18c;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600;list-style:none}details summary::-webkit-details-marker{display:none}details summary:after{content:'⌄';opacity:.75}details[open] summary:after{content:'⌃'}details summary span{font-size:11px;color:#8b9aa5;font-weight:400}details form{margin-top:16px}#register-wait>h1{margin-top:20px}

/* Integrated Gallery return link (CSP-safe, no inline style). */
.auth-return-desktop{display:block!important;text-align:center;text-decoration:none;box-sizing:border-box}
.password-field{display:flex;align-items:stretch;gap:7px}.password-field input{flex:1;min-width:0}.password-toggle{flex:0 0 auto;padding:0 12px;margin:0;color:#e1bf7e;background:#1a222c;border-color:#4a515a;font-size:12px}

/* Restore the previously reviewed compact account UI. */
body{align-items:flex-start;background:radial-gradient(ellipse at 50% 0,rgba(63,69,63,.12),transparent 60%),#0a1015;padding:32px 16px;color:#c5ced5;font-family:system-ui,"Microsoft YaHei",sans-serif}
.shell{width:min(100%,420px);margin:clamp(8px,5vh,48px) auto}.auth-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.auth-header .brand{font-size:13px;font-weight:650;letter-spacing:.08em;color:#a8956d;margin:0}.auth-header .auth-return-desktop{display:inline-flex!important;width:auto;margin:0;padding:0;border:0;background:none;color:#96a4ad;font-size:12px;text-decoration:none}.auth-header .auth-return-desktop:hover{color:#c9b27d}
.panel{padding:24px;border-color:rgba(190,203,213,.14);border-radius:14px;background:linear-gradient(180deg,#171e25,#10171d);box-shadow:0 20px 60px #0005}h1{font-size:22px;font-weight:650;color:#d8dfe4;margin-bottom:20px}.profile-summary{padding-bottom:18px;border-bottom:1px solid #ffffff0d}.readonly{margin:0;padding:0;border:0;background:none;border-radius:0;color:#cbb581;font-size:18px;font-weight:600;line-height:1.4}.profile-summary .helper{margin:8px 0 0;color:#8b99a4;font-size:12px}
label{font-size:12px;color:#abb8c1;font-weight:450}input{height:42px;padding:0 12px;border-color:rgba(187,201,211,.18);background:#0a1218;color:#cdd6dd;font-family:inherit}.primary{height:40px;border-radius:9px;background:linear-gradient(120deg,#c7ad6b,#ac8e4d);color:#171810;font-family:inherit;font-size:13px;font-weight:650}.helper{font-size:12px;color:#8e9ca6;line-height:1.6}
#account-settings{border:0;padding:0;margin-top:20px;border-radius:0}#account-settings summary{font-size:14px;color:#bdc8cf;font-weight:600}#account-settings summary:after{content:'';width:14px;height:14px;background:center/14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a1ab' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}#account-settings[open] summary:after{transform:rotate(180deg)}#account-settings form{margin-top:16px}#rename-hint{margin-top:12px}.account-logout{display:block;width:auto;margin:24px 0 0;padding:0;border:0;background:none;color:#9c8d87;font-size:12px}.account-logout:hover{color:#c19086}#message:empty{display:none}
.password-field{position:relative;display:block}.password-field input{padding-right:42px}.password-toggle{position:absolute;inset:0 0 0 auto;display:grid;place-items:center;width:40px;padding:0;border:0;background:none;color:#82929f}.password-toggle:hover{background:none;color:#c4ad77}.password-toggle svg{width:18px;height:18px;pointer-events:none}.password-toggle:focus-visible{outline:1px solid #b59a68;outline-offset:-4px}
@media(max-width:480px){body{padding:20px 14px}.shell{margin:8px auto}.panel{padding:20px}}
/* Account summary is the default view; editing is an explicit action. */
.auth-header .auth-return-desktop{min-height:34px;padding:0 12px;border:1px solid #8fa0aa33;border-radius:8px;background:linear-gradient(180deg,#1c272e,#131d24);color:#bdc8d0;font-size:12px;align-items:center;justify-content:center;gap:6px}
.auth-header .auth-return-desktop:hover{border-color:#baa16888;background:#202b32;color:#d8c292}.auth-return-desktop:focus-visible{outline:2px solid #b59a68;outline-offset:3px}
#profile h1{font-size:18px;margin:0 0 22px;font-weight:600;color:#cdd5db}
.profile-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;border:0}
.profile-identity{min-width:0}.profile-summary .readonly{font-size:16px;font-weight:550;color:#c2b18b}.profile-summary .helper{font-size:12px;margin-top:5px}
.account-edit{flex:none;min-height:32px;padding:0 12px;border:1px solid #abbcc42b;background:#ffffff03;color:#aebdc7;font-family:inherit;font-size:12px;border-radius:8px}.account-edit:hover{border-color:#b7a17177;color:#c6b384}
#account-settings{margin:20px 0 0;padding-top:16px;border-top:1px solid #ffffff0d}#account-settings[hidden]{display:none}
#rename-hint{margin:0 0 16px;font-size:11px}#account-settings form{margin:0}#rename-form label:first-child{margin-top:0}
#rename-form .primary:disabled{background:#253038;border-color:#46545d55;color:#84919b;opacity:1;cursor:default}
.account-footer{margin-top:24px;padding-top:16px;border-top:1px solid #ffffff0d}.account-footer .account-logout{margin:0;padding:5px 0;color:#96928f}.account-footer .account-logout:hover{color:#c39187}

/* One account surface for desktop, mobile and the standalone return route. */
body{background:var(--account-bg,#070b0f);color:var(--account-text,#d4dde2)}
[hidden]{display:none!important}.panel{background:radial-gradient(ellipse at 0 0,rgba(var(--account-atmo,201,171,92),.05),transparent 70%),linear-gradient(145deg,color-mix(in srgb,rgb(var(--account-panel,14,21,27)) 93%,white),rgb(var(--account-panel,14,21,27)));border-color:rgba(var(--account-atmo,201,171,92),.22)}
.account-dialog-head{display:flex;align-items:center;gap:8px;padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid #ffffff0b}.account-dialog-head strong{font-size:15px;font-weight:550}.account-icon{display:grid;place-items:center;margin:0;padding:0;min-width:40px;width:40px;height:40px;border:0;background:transparent;color:#99a7ae;font-size:22px;line-height:1}.account-icon:hover{background:transparent;color:#d7dfe2}#account-close{margin-left:auto}
#profile h1{display:none}.profile-summary .readonly{font-size:20px}.profile-quota{font-size:11px;color:var(--account-muted);padding:14px 0 20px}.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:60px;margin:0;padding:13px 0;background:transparent;border:0;border-top:1px solid #ffffff0b;border-radius:0;color:var(--account-text);font-size:13px;text-align:left;font-weight:450}.account-row:hover{background:#ffffff03}.account-row small{display:block;margin-top:5px;font-size:11px;color:var(--account-muted)}
#profile.is-editing .profile-summary,#profile.is-editing .profile-quota{display:none}#account-settings{margin:0;padding:0;border:0}#email-settings form,#password-settings form{margin:0}.account-row>span:last-child{font-size:18px;color:var(--account-muted)}
input{background:rgb(var(--account-panel2,10,16,21));font-size:16px}.account-footer{margin-top:0}.account-footer .account-logout{min-height:40px}.account-embedded{margin:0;padding:0;display:block;min-height:0;background:rgb(var(--account-panel,14,21,27))}.account-embedded .shell{width:100%;margin:0;max-width:none}.account-embedded .auth-header{display:none}.account-embedded .panel{padding:16px 22px 22px;border:0;border-radius:0;box-shadow:none}.account-embedded .account-dialog-head{margin:-8px -10px 20px;padding-bottom:8px}.account-embedded .account-dialog-head strong{margin-left:10px}.account-embedded .tabs{margin-top:0}.account-embedded #guest h1{font-size:18px}.account-embedded .line{font-size:11px}.account-embedded #message{margin-bottom:0}

/* CNPL uses the existing account controls and platform sizing. */
.cnpl-login{display:flex;align-items:center;justify-content:center;gap:9px}.cnpl-login img,.cnpl-label img{width:14px;height:18px;object-fit:contain;flex:none}.cnpl-label{display:inline-flex;align-items:center;gap:8px}.cnpl-note{font-size:11px!important;color:#b9a46e!important;margin:8px 0 0!important}.cnpl-account-row-copy{display:block}#cnpl-settings>.helper{margin:0 0 14px}#cnpl-flow h1{font-size:18px;margin-top:0}#cnpl-unbind-form{margin-top:15px;padding-top:12px;border-top:1px solid #ffffff10}#cnpl-unbind-confirm{color:#d99a91;border-color:#8b5c54}#cnpl-create-form input{box-sizing:border-box}

#cnpl-flow-copy,#cnpl-current-status{overflow-wrap:anywhere}

/* Compact identity/settings, common to the embedded PC and Mobile account. */
.profile-summary{justify-content:flex-start;gap:12px}.profile-identity{flex:1;min-width:0}.profile-summary .readonly{display:flex;align-items:center;gap:5px;font-size:19px;line-height:1.4;overflow-wrap:anywhere}.profile-summary .helper{margin-top:3px}
.profile-quota{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px 0}.profile-quota>span{display:flex;flex-direction:column;gap:4px;text-align:center}.profile-quota small{font-size:11px;color:var(--account-muted)}.profile-quota strong{font-size:16px;font-weight:600;color:var(--account-text)}
.account-row{min-height:50px;padding:12px 0;gap:10px}.account-row>span:first-child{display:flex;align-items:center;gap:8px;flex:1;min-width:0;flex-wrap:wrap}.account-row small{margin:0 0 0 auto;font-size:11px;text-align:right;overflow-wrap:anywhere;max-width:60%}.account-row .cnpl-account-row-copy{display:flex}.account-footer{padding-top:14px;border-bottom:0}.account-footer .account-logout{width:100%;min-height:38px;border:1px solid #aab5bb25;border-radius:9px;background:#ffffff03;text-align:center;margin:0;padding:7px 12px}
#cnpl-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}#cnpl-settings[hidden]{display:none!important}#cnpl-settings>p,#cnpl-settings>form,#cnpl-bind{grid-column:1/-1}#cnpl-settings>p:empty{display:none}#cnpl-current-status{margin-bottom:0!important}#cnpl-check,.cnpl-unbind-button{margin:0;min-height:42px;display:flex;align-items:center;justify-content:center;border:1px solid #9eacb32b;border-radius:9px;background:#ffffff03;font:500 13px/1.4 inherit}.cnpl-verified-state{color:#9dc4af}.cnpl-unbind-button{color:var(--account-text)}#cnpl-bind{background:#ffffff04;border-color:rgba(var(--account-atmo),.45);color:var(--account-text);margin-top:0}
.cnpl-label img{box-sizing:content-box;width:14px;height:14px;padding:4px;border:1px solid #a7b5bd2b;border-radius:50%;background:#10181f}#password-forgot-signed-in{display:block;margin:0 0 18px;text-align:left}
@media(max-width:360px){.account-embedded .panel{padding-inline:16px}.profile-summary .readonly{font-size:17px}.account-row small{max-width:54%}}
#profile.is-editing>section:not([id]){display:none!important}

.cnpl-label img{padding:0;border:0;background:transparent;width:20px;height:20px;object-fit:contain}

#profile-quota{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap;text-align:left;font-size:12px;font-weight:450}#profile-quota span{white-space:nowrap;margin:0;padding:0}#profile-quota b{display:inline;font-size:inherit;font-weight:650;font-variant-numeric:tabular-nums}#existing-account-actions:not([hidden]){display:flex;justify-content:center;gap:12px}

#profile-quota>span{display:inline-flex;flex-direction:row;align-items:baseline;gap:4px}

#account-email-required-note{margin:0 0 16px;padding:10px 12px;border:1px solid rgba(var(--account-atmo,201,171,92),.28);border-radius:8px;background:rgba(var(--account-atmo,201,171,92),.07);color:var(--account-text,#d4dde2);font-size:13px;line-height:1.6}
#account-email-required-note strong{display:block;margin-bottom:4px;color:var(--account-gold,#c7aa68);font-size:14px}
